mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-22 18:29:38 +00:00
Remove unused variable.
This commit is contained in:
parent
2343523bb6
commit
5a9c96508f
|
@ -13,17 +13,13 @@ use tts::*;
|
||||||
fn main() -> Result<(), Error> {
|
fn main() -> Result<(), Error> {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let mut tts = TTS::default()?;
|
let mut tts = TTS::default()?;
|
||||||
let Features {
|
|
||||||
utterance_callbacks,
|
|
||||||
..
|
|
||||||
} = tts.supported_features();
|
|
||||||
let mut bottles = 99;
|
let mut bottles = 99;
|
||||||
while bottles > 0 {
|
while bottles > 0 {
|
||||||
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;
|
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;
|
||||||
tts.speak(format!("{} bottles of beer,", bottles), false)?;
|
tts.speak(format!("{} bottles of beer,", bottles), false)?;
|
||||||
tts.speak("Take one down, pass it around", false)?;
|
tts.speak("Take one down, pass it around", false)?;
|
||||||
tts.speak("Give us a bit to drink this...", false)?;
|
tts.speak("Give us a bit to drink this...", false)?;
|
||||||
let time = time::Duration::from_secs(5);
|
let time = time::Duration::from_secs(10);
|
||||||
thread::sleep(time);
|
thread::sleep(time);
|
||||||
bottles -= 1;
|
bottles -= 1;
|
||||||
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;
|
tts.speak(format!("{} bottles of beer on the wall,", bottles), false)?;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user