#[tokio::main]
async fn main() {
let mut args = std::env::args().skip(1);
let out = args
.next()
.unwrap_or_else(|| "/tmp/car_tts_probe.wav".into());
let text = args
.next()
.unwrap_or_else(|| "The common agent runtime now speaks locally.".to_string());
let engine = car_inference::InferenceEngine::new(car_inference::InferenceConfig::default());
let req = car_inference::SynthesizeRequest {
text,
output_path: Some(out.clone()),
..Default::default()
};
match engine.synthesize(req).await {
Ok(r) => {
println!("OK model={:?} voice={:?}", r.model_used, r.voice_used);
println!(" audio_path={}", r.audio_path);
}
Err(e) => println!("ERR {e}"),
}
}