1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 12:09:36 +00:00
Go to file
Nolan Darilek d830f44c55 Handle corner case where WinRT speech that doesn't interrupt, and is played after a delay, causes recently-spoken utterances to replay.
`MediaPlayer` only seems to have states for playing and paused, but not stopped. Further, playing when the queue is finished seems to restart playback from the beginning.

Here we clear the list of items to play if the player is paused and we're on the last item. We assume we're done with all items to speak, and clear the list before appending a new item and beginning playback again.

The correct solution is probably to investigate how events work in winrt-rs, but callbacks and Rust have always been a disaster when I've tried them, so I'm hesitant. This does seem to handle the basic scenarios I've thrown at it.
2020-06-17 18:54:34 -05:00
.github/workflows Install LLVM. 2020-06-17 18:01:09 -05:00
examples Clean up speech synthesis properties, and implement everything for WinRT. 2020-05-18 18:12:59 -05:00
src Handle corner case where WinRT speech that doesn't interrupt, and is played after a delay, causes recently-spoken utterances to replay. 2020-06-17 18:54:34 -05:00
winrt_bindings Set license. 2020-06-17 17:54:23 -05:00
.gitignore Add .gitignore. 2019-09-10 10:41:08 -05:00
Cargo.toml Refactor to use separate tts_winrt_bindings crate, and bump version. 2020-06-17 17:25:43 -05:00
README.md README updates. 2020-06-09 11:03:58 -05:00

TTS-RS

This library provides a high-level Text-To-Speech (TTS) interface supporting various backends. Currently supported backends are: