pub struct SSML { /* private fields */ }
Expand description
SSML format support
Note: to use the characters &, <, and > within the SSML element’s value or text, you must use the entity format. Specifically you must use & in place of &, use < in place of <, and use > in place of >. Otherwise the SSML will not be parsed correctly.
If you would like to create a most simple SSML document, you will find
Speak::voice_content
very helpful. Just convert the Speak
instance to SSML
and that’s done.
§Example
use rust_ai::azure::{ssml::Speak, Locale, VoiceName, SSML};
let ssml = SSML::from(
Speak::voice_content(
VoiceName::zh_CN_YunhaoNeural,
"亲爱的朋友,美丽中国欢迎你!",
)
.lang(Locale::zh_CN),
);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SSML
impl RefUnwindSafe for SSML
impl Send for SSML
impl Sync for SSML
impl Unpin for SSML
impl UnwindSafe for SSML
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