pub enum PitchContour {
Elements(Vec<ContourElement>),
}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§
Elements(Vec<ContourElement>)
List of pitch contours
Trait Implementations§
Source§impl Clone for PitchContour
impl Clone for PitchContour
Source§fn clone(&self) -> PitchContour
fn clone(&self) -> PitchContour
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PitchContour
impl Debug for PitchContour
Source§impl Display for PitchContour
impl Display for PitchContour
Source§impl FromStr for PitchContour
impl FromStr for PitchContour
Source§impl PartialEq for PitchContour
impl PartialEq for PitchContour
Source§fn eq(&self, other: &PitchContour) -> bool
fn eq(&self, other: &PitchContour) -> bool
self and other values to be equal, and is used by ==.