#client #wrapper #voicevox #engine

voicevox-client

Unofficial voicevox engine wrapper

2 releases

0.1.1 Apr 8, 2023
0.1.0 Apr 8, 2023

#943 in Audio

Download history 13/week @ 2024-02-22 11/week @ 2024-02-29 18/week @ 2024-03-28 9/week @ 2024-04-04 2/week @ 2024-04-11 79/week @ 2024-04-18

108 downloads per month

MIT license

10KB
145 lines

Rust

Example

use voicevox_client::Client;
use reqwest::Result;
use std::{io::Write, fs::File};

#[tokio::main]
async fn main() -> Result<()> {
    let client = Client::new("http://localhost:50021".to_string());
    let audio_query = client
        .create_audio_query("こんにちは", 1, None)
        .await?;
    let audio = audio_query.synthesis(1).await?;
    let mut file = File::create("examples/hello.wav").unwrap();
    file.write_all(&audio).unwrap();
    Ok(())
}

Dependencies

~4–20MB
~287K SLoC