Speech-to-Speech and Expressive Voice › Where expressivity lives
Language AI HandbookAll chapters Prosody is the set of features that carry how a thing is said rather than what is said. In practice, for a neural system, prosody decomposes into:
- Pitch contour (fundamental frequency over time), including range, contour shape, and declination.
- Energy contour, including stress placement and dynamic range.
- Timing, including segment durations, pauses, and speech rate.
- Voice quality, including breathiness, creak, and glottal features.
Emotion is a coarser label that correlates with these features. In TTS this is usually modeled as style control. Modern systems offer several mechanisms:
- Style from a reference. Some synthesizers use a representation of how a reference sounds. Check separately whether it carries information about who spoke, and use approved synthetic examples for evaluation.
- Style tag conditioning. Choose a supported label such as warm or serious. Measure how listeners perceive the resulting delivery.
- Prosody conditioning. Give the synthesis stage a pitch, level or timing target where its interface supports one.
- Level and duration. Expose these controls directly when they cover the user's request.
Reference-based control brings a separate identity question. Check whether the reference can alter recognizability, and keep authorization independent of the acoustic control.
We can look at prosody as a numerical input rather than a stylistic adjective. The code below constructs illustrative pitch and level arrays. A prosody-controlled synthesizer could use arrays like these as targets.
PythonIn [13]Expand
# Build a 2-second voiced segment with a deliberate prosodic shape:
# a fall over the first clause, a pause, then a rise before the final word.
seg_len = 200 # frames at 10 ms hop
t_seg = np.arange(seg_len) * 0.01
# Pitch: Hz, base 180 with a fall to 110, then a rise to 220
pitch = np.empty(seg_len)
early = t_seg < 1.0
pitch[early] = 180 - 70 * (t_seg[early] / 1.0)
pause = (t_seg >= 1.0) & (t_seg < 1.3)
pitch[pause] = np.nan
late = t_seg >= 1.3
pitch[late] = 160 + 60 * ((t_seg[late] - 1.3) / 0.7)
# Loudness in dB: louder at the start, softer in the phrase end, back up for the rise
loudness = (
60 + 4 * np.sin(np.linspace(0, np.pi, seg_len)) - 6 * pause.astype(float)
)ConsoleOut [14]Expand
first-frame pitch (Hz): 180.0 Pause frames without defined pitch: 30 last-frame pitch (Hz): 219.1 pitch range (Hz): 108.4
The pitch range summarizes this contour. It does not identify an emotion. Prosody controls describe the intended movement of the signal; judge the perceived delivery separately and report what the listeners rated.
VisualizationOut [15]Expand

VisualizationOut [16]Expand

Emotion as a categorical label is a leaky abstraction
A label such as warm is easier to request than a pitch curve. Listeners can disagree about what warm sounds like. Pair style labels with measurable changes in pitch, level or timing, and check the delivered effect with listeners.
Even with similar prosody, voices can sound different in timbre and articulation. A speaker representation can retain information useful for comparing identity. Its similarity score still depends on the examples and evaluation setup.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!