mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 12:09:36 +00:00
Nolan Darilek
d830f44c55
`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. |
||
---|---|---|
.github/workflows | ||
examples | ||
src | ||
winrt_bindings | ||
.gitignore | ||
Cargo.toml | ||
README.md |
TTS-RS
This library provides a high-level Text-To-Speech (TTS) interface supporting various backends. Currently supported backends are:
- Speech Dispatcher (Linux)
- WebAssembly
- Windows
- Screen readers/SAPI via Tolk
- WinRT