sapi-lite 0.1.1

A simplified wrapper around Microsoft's Speech API (SAPI) library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! A bare-bones TTS example.

use sapi_lite::tts::SyncSynthesizer;

fn main() {
    // Initialize SAPI.
    sapi_lite::initialize().unwrap();

    // Create a speech synthesizer.
    let synth = SyncSynthesizer::new().unwrap();

    // Speak the phrase and wait until the speech is finished.
    synth.speak("Hello, world!", None).unwrap();

    // We don't need SAPI anymore. Clean up and free the resources.
    sapi_lite::finalize();
}