1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-22 19:09:37 +00:00

Add unused example of setting on_utterance_stop.

This commit is contained in:
Nolan Darilek 2020-10-08 09:06:48 -05:00
parent 0c13c43a77
commit ba90cd66ba

View File

@ -23,6 +23,9 @@ fn main() -> Result<(), Error> {
tts.on_utterance_end(Some(Box::new(|utterance| {
println!("Finished speaking {:?}", utterance)
})))?;
tts.on_utterance_stop(Some(Box::new(|utterance| {
println!("Stopped speaking {:?}", utterance)
})))?;
}
tts.speak("Hello, world.", false)?;
let Features { rate, .. } = tts.supported_features();