mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 15:39:38 +00:00
remove the example changing voice.
the default() voice working properly for av_foundation
This commit is contained in:
parent
0fb6c62d83
commit
1b8809aaeb
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user