//! `cargo run --example get_voices` use playht_rs::{ api::{self, voice::get_stock_voices}, prelude::*, }; use tokio; #[tokio::main] async fn main() -> Result<()> { let voices = get_stock_voices().await?; println!("Got {} voices", voices.len()); let voices = api::Client::new().get_stock_voices().await?; println!("Got {} voices", voices.len()); Ok(()) }