pub struct PhonemeAttributes {
pub ph: String,
pub alphabet: Option<PhonemeAlphabet>,
}
Expand description
The phoneme element provides a phonemic/phonetic pronunciation for the contained text. The phoneme element may be empty. However, it is recommended that the element contain human-readable text that can be used for non-spoken rendering of the document. For example, the content may be displayed visually for users with hearing impairments.
“Speech Synthesis Markup Language (SSML) Version 1.1” Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Fields§
§ph: String
The ph attribute is a required attribute that specifies the phoneme/phone string.
alphabet: Option<PhonemeAlphabet>
The alphabet attribute is an optional attribute that specifies the phonemic/phonetic pronunciation alphabet. A pronunciation alphabet in this context refers to a collection of symbols to represent the sounds of one or more human languages. The only valid values for this attribute are “ipa”, values defined in the Pronunciation Alphabet Registry and vendor-defined strings of the form “x-organization” or “x-organization-alphabet”. For example, the Japan Electronics and Information Technology Industries Association (JEITA) might wish to encourage the use of an alphabet such as “x-JEITA” or “x-JEITA-IT-4002” for their phoneme alphabet (JEIDAALPHABET).
Trait Implementations§
Source§impl Clone for PhonemeAttributes
impl Clone for PhonemeAttributes
Source§fn clone(&self) -> PhonemeAttributes
fn clone(&self) -> PhonemeAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more