1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 19:19:36 +00:00
tts-rs/examples/ramble.rs

16 lines
330 B
Rust
Raw Normal View History

use std::{thread, time};
use tts::*;
fn main() -> Result<(), Error> {
env_logger::init();
let mut tts = TTS::default()?;
let mut phrase = 1;
loop {
2020-11-17 22:00:02 +00:00
tts.speak(format!("Phrase {}", phrase), false)?;
let time = time::Duration::from_secs(5);
thread::sleep(time);
phrase += 1;
}
}