From 1b8809aaeb7061ca0e08c7bc1d35ef13fae8984c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Caddet?= Date: Sat, 5 Sep 2020 10:55:23 +0200 Subject: [PATCH] remove the example changing voice. the default() voice working properly for av_foundation --- examples/hello_world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello_world.rs b/examples/hello_world.rs index f3e054e..a34f5f8 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -47,7 +47,7 @@ fn main() -> Result<(), Error> { tts.speak("This is normal volume.", false)?; tts.set_volume(original_volume)?; } - let Features { voices, .. } = tts.supported_features(); +/* let Features { voices, .. } = tts.supported_features(); if voices { let original_voice = tts.voice()?; let voices_list = tts.list_voices(); @@ -60,7 +60,7 @@ fn main() -> Result<(), Error> { tts.speak(v,false)?; } tts.set_voice(original_voice)?; - } + }*/ tts.speak("Goodbye.", false)?; let mut _input = String::new(); #[cfg(target_os = "macos")]