diff --git a/examples/hello_world.rs b/examples/hello_world.rs index d21fe9d..4a35999 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -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();