pub struct TokenAttributes {
pub role: Option<String>,
}
Expand description
The token element allows the author to indicate its content is a token and to eliminate token (word) segmentation ambiguities of the synthesis processor.
The token element is necessary in order to render languages
- that do not use white space as a token boundary identifier, such as Chinese, Thai, and Japanese
- that use white space for syllable segmentation, such as Vietnamese
- that use white space for other purposes, such as Urdu
Use of this element can result in improved cues for prosodic control (e.g., pause) and may assist the synthesis processor in selection of the correct pronunciation for homographs. Other elements such as break, mark, and prosody are permitted within token to allow annotation at a sub-token level (e.g., syllable, mora, or whatever units are reasonable for the current language).
“Speech Synthesis Markup Language (SSML) Version 1.1” Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Fields§
§role: Option<String>
role
is an OPTIONAL defined attribute on the token element. The role
attribute takes as its value one or more white space separated QNames
(as defined in Section 4 of Namespaces in XML (1.0 [XMLNS 1.0] or 1.1
[XMLNS 1.1], depending on the version of XML being used)). A QName in
the attribute content is expanded into an expanded-name using the
namespace declarations in scope for the containing token element. Thus,
each QName provides a reference to a specific item in the designated
namespace. In the second example below, the QName within the role
attribute expands to the “VV0” item in the
“http://www.example.com/claws7tags” namespace. This mechanism allows
for referencing defined taxonomies of word classes, with the expectation
that they are documented at the specified namespace URI.
The role attribute is intended to be of use in synchronizing with other specifications, for example to describe additional information to help the selection of the most appropriate pronunciation for the contained text inside an external lexicon (see lexicon documents).
Trait Implementations§
Source§impl Clone for TokenAttributes
impl Clone for TokenAttributes
Source§fn clone(&self) -> TokenAttributes
fn clone(&self) -> TokenAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more