use soloud::*; fn main() -> Result<(), Box> { let mut sl = Soloud::default()?; sl.set_global_volume(4.0); let mut speech = audio::Speech::default(); speech.set_text("Hello World")?; sl.play(&speech); while sl.active_voice_count() > 0 { std::thread::sleep(std::time::Duration::from_millis(100)); } speech.set_text("1 2 3")?; sl.play(&speech); while sl.active_voice_count() > 0 { std::thread::sleep(std::time::Duration::from_millis(100)); } speech.set_text("Can you hear me?")?; sl.play(&speech); while sl.active_voice_count() > 0 { std::thread::sleep(std::time::Duration::from_millis(100)); } Ok(()) }