pub struct TextToPhonemesOptions {
pub preserve_punctuation: bool,
pub flatten_clauses: bool,
pub markup: bool,
}Expand description
Controls formatting of IPA returned by EspeakNg::text_to_phonemes_with_options.
The default preserves the output format of EspeakNg::text_to_phonemes.
Fields§
§preserve_punctuation: boolReinsert input punctuation into the generated IPA.
flatten_clauses: boolReplace clause-separating newlines with spaces.
markup: boolInterpret SSML markup in the input (equivalent to the -m CLI flag).
Trait Implementations§
Source§impl Clone for TextToPhonemesOptions
impl Clone for TextToPhonemesOptions
Source§fn clone(&self) -> TextToPhonemesOptions
fn clone(&self) -> TextToPhonemesOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextToPhonemesOptions
Source§impl Debug for TextToPhonemesOptions
impl Debug for TextToPhonemesOptions
Source§impl Default for TextToPhonemesOptions
impl Default for TextToPhonemesOptions
Source§fn default() -> TextToPhonemesOptions
fn default() -> TextToPhonemesOptions
Returns the “default value” for a type. Read more
impl Eq for TextToPhonemesOptions
Source§impl PartialEq for TextToPhonemesOptions
impl PartialEq for TextToPhonemesOptions
impl StructuralPartialEq for TextToPhonemesOptions
Auto Trait Implementations§
impl Freeze for TextToPhonemesOptions
impl RefUnwindSafe for TextToPhonemesOptions
impl Send for TextToPhonemesOptions
impl Sync for TextToPhonemesOptions
impl Unpin for TextToPhonemesOptions
impl UnsafeUnpin for TextToPhonemesOptions
impl UnwindSafe for TextToPhonemesOptions
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