mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 21:49:37 +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.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")]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user