4e28f3fb84bc4d530fd7f32e4f8eefee1d3d304d
Changes to backend/services/tts.py: - Add temperature: 0.9 and applyTextNormalization: "ON" to Inworld payload (text normalization auto-speaks "$5,432", "Dr.", phone numbers, dates, etc.) - Add _emotional_register_to_params() mapping caller's emotional_register to (temperature, speed_adjust) across 5 families: sadness/grief, anger/aggression, manic/excited, nervous/earnest, gruff/restrained. - generate_speech_inworld() and generate_speech() now accept optional emotional_register kwarg; all providers take it via the dispatch lambdas (only inworld uses it; others ignore) - Clamp speed to 0.5-1.5 after both emotional-register and per-text adjustments In backend/main.py: plumb emotional_register through the two caller-dialog TTS calls (auto-respond and ai-respond) by reading from the slim caller background dict. Devon and cohost/announcer calls pass empty string and hit the default (0.9, 0.0) branch — no behavior change.
Languages
HTML
78.2%
Python
17.3%
JavaScript
2%
CSS
1.3%
Lua
1%
Other
0.2%