pub struct VoiceRSSOptions { /* private fields */ }Expand description
§Example usage:
use tts_urls::voicerss::{VoiceRSSOptions, Language, Codec};
let key = "key";
let url = VoiceRSSOptions::new()
.language(Language::German)
.audio_format("32khz_16bit_stereo")
.codec(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");Implementations§
Source§impl VoiceRSSOptions
impl VoiceRSSOptions
Sourcepub fn language(&mut self, language: Language) -> &mut Self
pub fn language(&mut self, language: Language) -> &mut Self
see VoiceRSS documentation for possible values
Sourcepub fn voice(&mut self, voice: impl Into<Cow<'static, str>>) -> &mut Self
pub fn voice(&mut self, voice: impl Into<Cow<'static, str>>) -> &mut Self
see VoiceRSS documentation for possible values
Sourcepub fn codec(&mut self, codec: Codec) -> &mut Self
pub fn codec(&mut self, codec: Codec) -> &mut Self
see VoiceRSS documentation for possible values
Sourcepub fn audio_format(
&mut self,
audio_format: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn audio_format( &mut self, audio_format: impl Into<Cow<'static, str>>, ) -> &mut Self
see [www.voicerss.org/api/documentation.aspx](VoiceRSS documentation for possible values)
Trait Implementations§
Source§impl Default for VoiceRSSOptions
impl Default for VoiceRSSOptions
Source§fn default() -> VoiceRSSOptions
fn default() -> VoiceRSSOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VoiceRSSOptions
impl RefUnwindSafe for VoiceRSSOptions
impl Send for VoiceRSSOptions
impl Sync for VoiceRSSOptions
impl Unpin for VoiceRSSOptions
impl UnwindSafe for VoiceRSSOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more