sound.speech.prosody

index · sound.speech

Overview

Prosody-lite for the formant TTS (sound.speech).

Takes the flat phoneme event list (with stress marks and SIL/punct boundaries from G2P + text normalization) and fills in what the synthesizer needs:

Events that already carry dur or f0 are left untouched — that is the inflection/singing hook: hand-set values always win (sound.speech.synth).

Voice knobs consumed here: f0 (base pitch), f0_range, speed.

Functions

NameSignature
applyapply(events, voice) -> events

apply(events, voice) -> events

Assign durations and an F0 contour to a phoneme event list

Mutates and returns events. Each event is { ph, stress, emph?, punct?, dur?, f0? }; dur/f0 already present are preserved. SIL events carry the punct mark that closes their phrase ("." / "?" / "!" / ",").