add: default header

This commit is contained in:
mc_fdc
2023-04-08 18:47:03 +00:00
parent 10c077a1dd
commit 126f4b7d7b
4 changed files with 14 additions and 9 deletions

View File

@ -1,10 +1,10 @@
use voicevox_client::Client;
use reqwest::Result;
use reqwest::{Result, header::HeaderMap};
use std::{io::Write, fs::File};
#[tokio::main]
async fn main() -> Result<()> {
let client = Client::new("http://localhost:50021".to_string());
let client = Client::new("http://localhost:50021".to_string(), None);
let audio_query = client
.create_audio_query("こんにちは", 1, None)
.await?;