voicevox-client

Crates.iovoicevox-client
lib.rsvoicevox-client
version0.1.1
sourcesrc
created_at2023-04-08 07:30:19.0951
updated_at2023-04-08 07:37:43.650245
descriptionUnofficial voicevox engine wrapper
homepage
repositoryhttps://github.com/voicevox-client/rust
max_upload_size
id833479
size30,532
コマリン親衛隊 (tuna2134)

documentation

README

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(())
}
Commit count: 18

cargo fmt