remove the example changing voice.

the default() voice working properly for av_foundation
This commit is contained in:
François Caddet 2020-09-05 10:55:23 +02:00
parent 0fb6c62d83
commit 1b8809aaeb
1 changed files with 2 additions and 2 deletions

View File

@ -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")]