bump version

This commit is contained in:
tuna2134
2023-04-08 16:34:09 +09:00
parent 7aedb8e5bd
commit 6e78cfd73d
3 changed files with 11 additions and 10 deletions

View File

@ -3,17 +3,18 @@
## Example
```rust
use voicevox_client::Client;
use reqwest::Result;
use std::{io::Write, fs::File};
#[tokio::main]
async fn main() {
async fn main() -> Result<()> {
let client = Client::new("http://localhost:50021".to_string());
let audio_query = client
.create_audio_query("こんにちは", 1, None)
.await
.unwrap();
let audio = audio_query.synthesis(1).await.unwrap();
.await?;
let audio = audio_query.synthesis(1).await?;
let mut file = File::create("examples/hello.wav").unwrap();
file.write_all(&audio).unwrap();
Ok(())
}
```