Commit Graph

39 Commits

Author SHA1 Message Date
65311abdeb Remove unwrap in favor of expect. 2020-11-24 12:20:02 -06:00
e2c1bfa7c9 Eliminate Clippy warnings. 2020-11-17 19:43:57 -06:00
e483f3467b Add Utterance as tool script to work around https://github.com/godot-rust/godot-rust/issues/614. 2020-10-09 09:35:55 -05:00
e19d154b99 Add support for separating Tolk dependency for use on UWP. 2020-10-08 20:44:05 -05:00
9243ea4e7f Implement utterance_stop signal on Android. 2020-10-08 11:10:16 -05:00
1dabd5afd3 Implement stop signals. 2020-10-08 08:56:56 -05:00
69b5c39f66 Eliminate Option in return. 2020-09-30 16:03:04 -05:00
ff247a3f19 Only set an utterance ID on the returned variant if we have one. 2020-09-30 15:25:59 -05:00
ed7f3920f6 Add signal support to Android. 2020-09-30 15:13:17 -05:00
c7563fa997 Pass utterance IDs into signals, and return an utterance ID when speaking. 2020-09-30 13:45:20 -05:00
68d1d9e011 WIP: Try passing in utterance to signals. 2020-09-30 11:57:50 -05:00
a71bf417b6 Bridge TTS callbacks to signals. 2020-09-29 11:41:00 -05:00
abe9ab3f55 Add property indicating whether utterance callbacks are supported. 2020-09-29 10:53:35 -05:00
795cc4790c Add utterance_begin and utterance_end signals.
Unfortunately, I can't figure out how to pass the utterance ID to these signals because I don't see that the GDNative Rust bindings support objects of one type creating objects of another (I.e. nodes creating references.) If I'm wrong, PRs or suggestions welcome.
2020-09-29 10:44:52 -05:00
ddfc262278 We do, in fact, seem to need 0.9.0-preview.0.
This resolves the previously-noticed bindgen issue, where gdnative and speech-dispatcher require conflicting versions.

The early iOS build failures appear due to attempting to link AppKit on iOS, where it doesn't exist. This seemed to work on Rust 1.45, but now fails on 1.46.

Hopefully, this plus tts-rs changes get this building under iOS again.
2020-09-02 17:49:37 -05:00
54222b1fcb Ugh, off my game today. For some reason, the previous revert was impartial. 2020-09-02 14:55:20 -05:00
6bbddcc6dd Bump to 0.9.0 preview API for godot-rust. 2020-09-02 13:19:25 -05:00
f0834feea5 Changes necessary to get working on Android. 2020-08-18 17:23:05 -05:00
d3b90f48e7 Use deprecated API so compatibility down to 18 can be maintained. 2020-08-18 13:50:32 -05:00
5395256385 Switch to Gradle for builds. 2020-08-18 10:28:53 -05:00
30a82fc6b0 WIP: Try downloading Godot AAR. 2020-08-14 09:43:09 -05:00
e0f419aaf6 Add Bazel build for standalone Android plugin. 2020-07-09 12:32:14 -05:00
574edcf93c Eliminate an unreachable code warning, since conditional compilation is used to fail fast where possible. 2020-06-17 18:11:19 -05:00
85492b52dc Integrate env_logger. 2020-06-11 13:12:49 -05:00
a4c61a421f Refactor to cfg! where possible. 2020-06-11 13:11:09 -05:00
0d7ba71769 Various improvements.
* Add ability to detect when speaking. Doesn't yet work under Linux or WinRT.
* Add signal to indicate when speaking is done.
* Refine screen reader detection under Android.
2020-06-02 16:23:45 -05:00
f81486a02c Add return statements to (hopefully) make conditional compilation actually compile. 2020-05-19 09:14:40 -05:00
aa718c5fe6 Implement screen reader detection for everything but Android.
Android support is waiting on Godot 3.2.2 when the new plugin system lands.
2020-05-19 08:56:41 -05:00
495c5eddad Major tts-rs update.
* Initial WinRT driver, used when no Windows screen reader is detected.
 * Enhanced rate support, tracking min/max/normal rate per synthesizer.
 * `rate_percentage` properties make working with differing rate ranges easier.
2020-05-19 07:49:28 -05:00
735c7ebfa6 Bump GDNative dependency and refactor. 2020-03-19 13:16:56 -05:00
4429e5fb46 Remove or guard unwrap calls in rate getter/setter so they don't fail on unsupported synthesizers. 2019-10-17 08:30:16 -05:00
e233b97fff Use print_debug to, theoretically, only print TTS speech/interrupt status when in debug mode.
And yet it still prints in exported builds not using the debug templates. *sigh*
2019-10-16 08:01:34 -05:00
ec99d318d3 #2: Cast rate setter value and u8::MAX to f32 to prevent overflow/padding. 2019-10-16 07:50:38 -05:00
c9c2f182cd If rate values > 100 are passed in, cap them at 100. 2019-10-09 16:12:47 -05:00
1bb0f56f40 Make rate a percentage, and add getter to determine if rate selection is supported. 2019-10-09 16:10:14 -05:00
ca79ca99bd Add rate property. 2019-09-27 13:03:19 -05:00
05d8e3ac06 Switch to tts crate. 2019-09-10 10:09:04 -05:00
b7b32e16a7 Update Rust dependencies and get this thing actually working. 2019-09-03 08:54:36 -05:00
7d9c3adc4c Initial commit. 2018-06-13 12:14:03 +00:00