pub struct SpeechMarkdownParser;Implementations§
Source§impl SpeechMarkdownParser
impl SpeechMarkdownParser
Sourcepub fn to_ssml(input: &str, platform: Platform) -> Result<String>
pub fn to_ssml(input: &str, platform: Platform) -> Result<String>
Convert SpeechMarkdown to SSML for the specified platform
Sourcepub fn to_smd(ssml: &str) -> Result<String>
pub fn to_smd(ssml: &str) -> Result<String>
Convert SSML to SpeechMarkdown (best-effort, lossy for unsupported elements)
Sourcepub fn supported_ssml(platform: Platform) -> PlatformCapabilities
pub fn supported_ssml(platform: Platform) -> PlatformCapabilities
Get supported SSML elements for a platform
Sourcepub fn is_speech_markdown(input: &str) -> bool
pub fn is_speech_markdown(input: &str) -> bool
Check if a string contains SpeechMarkdown syntax
Auto Trait Implementations§
impl Freeze for SpeechMarkdownParser
impl RefUnwindSafe for SpeechMarkdownParser
impl Send for SpeechMarkdownParser
impl Sync for SpeechMarkdownParser
impl Unpin for SpeechMarkdownParser
impl UnsafeUnpin for SpeechMarkdownParser
impl UnwindSafe for SpeechMarkdownParser
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