pub struct BreakAttributes {
pub strength: Option<Strength>,
pub time: Option<TimeDesignation>,
}
Expand description
The break element is an empty element that controls the pausing or other prosodic boundaries between tokens. The use of the break element between any pair of tokens is optional. If the element is not present between tokens, the synthesis processor is expected to automatically determine a break based on the linguistic context. In practice, the break element is most often used to override the typical automatic behavior of a synthesis processor.
“Speech Synthesis Markup Language (SSML) Version 1.1” Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Fields§
§strength: Option<Strength>
The strength attribute is an optional attribute having one of the following values: “none”, “x-weak”, “weak”, “medium” (default value), “strong”, or “x-strong”. This attribute is used to indicate the strength of the prosodic break in the speech output. The value “none” indicates that no prosodic break boundary should be outputted, which can be used to prevent a prosodic break which the processor would otherwise produce. The other values indicate monotonically non-decreasing (conceptually increasing) break strength between tokens. The stronger boundaries are typically accompanied by pauses. “x-weak” and “x-strong” are mnemonics for “extra weak” and “extra strong”, respectively.
time: Option<TimeDesignation>
The time attribute is an optional attribute indicating the duration of a pause to be inserted in the output in seconds or milliseconds. It follows the time value format from the Cascading Style Sheets Level 2 Recommendation [CSS2], e.g. “250ms”,
Trait Implementations§
Source§impl Clone for BreakAttributes
impl Clone for BreakAttributes
Source§fn clone(&self) -> BreakAttributes
fn clone(&self) -> BreakAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more