use openai_rst::audio::{self, AudioSpeechRequest, TTS_1};
use openai_rst::client::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::from_env().unwrap();
let req = AudioSpeechRequest::new(
TTS_1.to_string(),
String::from("Money is not problem, Problem is no money"),
audio::VOICE_ALLOY.to_string(),
String::from("problem.mp3"),
);
let result = client.audio_speech(req).await?;
println!("{:?}", result);
Ok(())
}