From 6e78cfd73d024ad1762129c28bb74cc60b296883 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Sat, 8 Apr 2023 16:34:09 +0900 Subject: [PATCH] bump version --- Cargo.toml | 3 +-- README.md | 9 +++++---- examples/basic.rs | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2e7a4f8..6e8f83e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,10 @@ [package] name = "voicevox-client" description = "Unofficial voicevox engine wrapper" -version = "0.1.0" +version = "0.1.1" edition = "2021" repository = "https://github.com/voicevox-client/rust" license = "MIT" -license-file = "LICENSE" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index b7f8a91..03a36e2 100644 --- a/README.md +++ b/README.md @@ -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(()) } ``` \ No newline at end of file diff --git a/examples/basic.rs b/examples/basic.rs index a8fca7a..ecb0ad3 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -1,14 +1,15 @@ 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(()) } \ No newline at end of file