aristech-tts-client 1.0.1

A Rust client library for the Aristech Text-to-Speech API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let protos_dir = "./protos";
    let types_proto = format!("{}/TTSTypes.proto", protos_dir);
    let services_proto = format!("{}/TTSServices.proto", protos_dir);

    tonic_build::configure()
        .build_server(false)
        .compile_protos(&[&types_proto, &services_proto], &[protos_dir])?;

    println!("cargo:rerun-if-changed={}", types_proto);
    println!("cargo:rerun-if-changed={}", services_proto);
    Ok(())
}