feat: support VOICEVOX version 0.19.2

This commit is contained in:
kurotakazuki
2024-06-11 21:50:37 +09:00
parent d7e51ed671
commit 26f01a6170
4 changed files with 22 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use voicevox_client::Client;
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 audio = audio_query.synthesis(1, true).await?;
let mut file = File::create("examples/hello.wav").unwrap();
file.write_all(&audio).unwrap();
Ok(())