mirror of
https://github.com/mii443/rust.git
synced 2025-08-22 16:25:37 +00:00
add: default header
This commit is contained in:
@ -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?;
|
||||
|
Reference in New Issue
Block a user