// Import the dependencies use fakeyou_api::{voice::*, *}; fn main() { // You can create a default client without any api key. // You can also load the API key from environment FAKEYOU_API_KEY. // You can also hadcode through `Auth::new()`, but it is not recommended. let auth = Auth::default(); let fakeyou = FakeYou::new(auth, FAKEYOU_API_URL); // Call the Voices API let voices_result = fakeyou.tts_voices().unwrap(); // Do what you need with the result println!("{:#?}", voices_result); }