# tts-urls This crate formats URLs to retrieve audio from TTS (text to speech) services like Google Translate or VoiceRSS. # Examples Google Translate TTS: ```rust let url = tts_urls::google_translate::url("Hello, World!", "en"); assert_eq!(url, "https://translate.google.com/translate_tts?ie=UTF-8&q=Hello%2C%20World%21&tl=en&tk=418730.60457&client=webapp"); ``` VoiceRSS: ```rust use tts_urls::voicerss::VoiceRSSOptions; let key = "key"; let url = VoiceRSSOptions::new() .language("de-de") .audio_format("32khz_16bit_stereo") .codec("mp3") .url(key, "Hallo Welt!"); assert_eq!(url, "http://api.voicerss.org/?key=key&hl=de-de&c=mp3&f=32khz_16bit_stereo&src=Hallo%20Welt%21"); ``` # Credits This crate started out as a fork of [google\_translate\_tts](https://github.com/portstrom/google_translate_tts).