mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-14 17:19:37 +00:00
15 lines
316 B
Rust
15 lines
316 B
Rust
|
use std::io;
|
||
|
|
||
|
use tts::*;
|
||
|
|
||
|
fn main() -> Result<(), Error> {
|
||
|
env_logger::init();
|
||
|
let mut tts = TTS::default()?;
|
||
|
println!("Press Enter and wait for speech.");
|
||
|
loop {
|
||
|
let mut _input = String::new();
|
||
|
io::stdin().read_line(&mut _input)?;
|
||
|
tts.speak("Hello, world.", true)?;
|
||
|
}
|
||
|
}
|