1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 21:29:37 +00:00

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

View File

@ -47,7 +47,7 @@ fn main() -> Result<(), Error> {
tts.speak("This is normal volume.", false)?; tts.speak("This is normal volume.", false)?;
tts.set_volume(original_volume)?; tts.set_volume(original_volume)?;
} }
let Features { voices, .. } = tts.supported_features(); /* let Features { voices, .. } = tts.supported_features();
if voices { if voices {
let original_voice = tts.voice()?; let original_voice = tts.voice()?;
let voices_list = tts.list_voices(); let voices_list = tts.list_voices();
@ -60,7 +60,7 @@ fn main() -> Result<(), Error> {
tts.speak(v,false)?; tts.speak(v,false)?;
} }
tts.set_voice(original_voice)?; tts.set_voice(original_voice)?;
} }*/
tts.speak("Goodbye.", false)?; tts.speak("Goodbye.", false)?;
let mut _input = String::new(); let mut _input = String::new();
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]