Skip to content

voicevox-client/rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voicevox-client

This wrapper is for voicevox-engine that can easy to use.

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(), None);
    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(())
}

Releases

No releases published

Packages

No packages published

Languages