Struct ibm_watson::tts::PronunciationOptions [−][src]
pub struct PronunciationOptions<'a> {
pub format: PhonemeFormat,
pub text: &'a str,
pub voice: AvailableVoices,
}Expand description
Pronunciation options to be passed to pronunciation.
Fields
format: PhonemeFormatThe PhonemeFormat to be used in pronunciation.
text: &'a strThe text to be used in pronunciation.
voice: AvailableVoicesThe voice (ideally of the same language) to use in getting pronunciation Voices
Implementations
Creates a new pronunciation definition.
Arguments
format- the format to be used in the request for pronunciation.text- pronunciation query.voice- the AvailableVoices to use, ideally of the same language as the query.
Examples
let mut options = PronunciationOptions::new(
PhonemeFormat::default(),
"aujourd-hui",
AvailableVoices::fr_FR_Renee,
);Updates the voice used in pronunciation query.
Arguments
voice- AvailableVoices to use in getting pronunciation.
Examples
options.set_voice(AvailableVoices::fr_FR_NicolasV3);Updates the format used in pronunciation query.
Arguments
format- PhonemeFormat
Examples
options.set_format(PhonemeFormat::IBM);Auto Trait Implementations
impl<'a> RefUnwindSafe for PronunciationOptions<'a>
impl<'a> Send for PronunciationOptions<'a>
impl<'a> Sync for PronunciationOptions<'a>
impl<'a> Unpin for PronunciationOptions<'a>
impl<'a> UnwindSafe for PronunciationOptions<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
