This commit is contained in:
tuna2134
2023-04-08 16:15:53 +09:00
parent afc781e8c4
commit 38419643b9
3 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
use voicevox_client::Client;
use std::{io::Write, fs::File};
#[tokio::main]
async fn main() {
@ -8,5 +9,6 @@ async fn main() {
.await
.unwrap();
let audio = audio_query.synthesis(1).await.unwrap();
println!("audio: {:?}", audio);
let mut file = File::create("examples/hello.wav").unwrap();
file.write_all(&audio).unwrap();
}