pub enum ContourElement {
Element((f32, PitchRange)),
}Expand description
The pitch contour is defined as a set of white space-separated targets at specified time positions in the speech output. The algorithm for interpolating between the targets is processor-specific. In each pair of the form (time position,target), the first value is a percentage of the period of the contained text (a number followed by “%”) and the second value is the value of the pitch attribute (a number followed by “Hz”, a relative change, or a label value). Time position values outside 0% to 100% are ignored. If a pitch value is not defined for 0% or 100% then the nearest pitch target is copied. All relative values for the pitch are relative to the pitch value just before the contained text.
“Speech Synthesis Markup Language (SSML) Version 1.1” Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
Variants§
Element((f32, PitchRange))
Pitch contouring element.
Trait Implementations§
Source§impl Clone for ContourElement
impl Clone for ContourElement
Source§fn clone(&self) -> ContourElement
fn clone(&self) -> ContourElement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ContourElement
Source§impl Debug for ContourElement
impl Debug for ContourElement
Source§impl Display for ContourElement
impl Display for ContourElement
Source§impl FromStr for ContourElement
impl FromStr for ContourElement
Source§impl PartialEq for ContourElement
impl PartialEq for ContourElement
Source§fn eq(&self, other: &ContourElement) -> bool
fn eq(&self, other: &ContourElement) -> bool
self and other values to be equal, and is used by ==.