mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 22:59:37 +00:00
Add unused example of setting on_utterance_stop.
This commit is contained in:
parent
0c13c43a77
commit
ba90cd66ba
|
@ -23,6 +23,9 @@ fn main() -> Result<(), Error> {
|
||||||
tts.on_utterance_end(Some(Box::new(|utterance| {
|
tts.on_utterance_end(Some(Box::new(|utterance| {
|
||||||
println!("Finished speaking {:?}", utterance)
|
println!("Finished speaking {:?}", utterance)
|
||||||
})))?;
|
})))?;
|
||||||
|
tts.on_utterance_stop(Some(Box::new(|utterance| {
|
||||||
|
println!("Stopped speaking {:?}", utterance)
|
||||||
|
})))?;
|
||||||
}
|
}
|
||||||
tts.speak("Hello, world.", false)?;
|
tts.speak("Hello, world.", false)?;
|
||||||
let Features { rate, .. } = tts.supported_features();
|
let Features { rate, .. } = tts.supported_features();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user