tts 0.26.3

High-level Text-To-Speech (TTS) interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)?;
    }
}