Expand description
§SSML document editing module
This module provide functionalities for you to create SSML elements, and convert it into XML string.
§Example
use rust_ai::azure::types::{ssml::{SSML, voice_name::VoiceName, Speak}, Locale};
let ssml = SSML::from(
Speak::voice_content(
VoiceName::zh_CN_YunhaoNeural,
"亲爱的朋友,美丽中国欢迎你!",
)
.lang(Locale::zh_CN),
);
§Basic Structure
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="https://www.w3.org/2001/mstts" xml:lang="string">
<mstts:backgroundaudio src="string" volume="string" fadein="string" fadeout="string"/>
<voice name="string" effect="string">
<audio src="string"/></audio>
<bookmark mark="string"/>
<break strength="string" time="string" />
<emphasis level="value"></emphasis>
<lang xml:lang="string"></lang>
<lexicon uri="string"/>
<math xmlns="http://www.w3.org/1998/Math/MathML"></math>
<mstts:audioduration value="string"/>
<mstts:express-as style="string" styledegree="value" role="string"></mstts:express-as>
<mstts:silence type="string" value="string"/>
<mstts:viseme type="string"/>
<p></p>
<phoneme alphabet="string" ph="string"></phoneme>
<prosody pitch="value" contour="value" range="value" rate="value" volume="value"></prosody>
<s></s>
<say-as interpret-as="string" format="string" detail="string"></say-as>
<sub alias="string"></sub>
</voice>
</speak>
Re-exports§
pub use self::tag::*;
Modules§
- tag
- voice_
name - Auto-generated file, you should NOT update its contents directly
Structs§
- SSML
- SSML format support