Merge pull request #3226 from pipecat-ai/filipi/elevenlabs_http_voice_settings

Fixed an issue where ElevenLabsHttpTTSService was not updating voice settings
This commit is contained in:
kompfner
2025-12-16 16:07:34 -05:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

2
changelog/3226.fixed.md Normal file
View File

@@ -0,0 +1,2 @@
- Fixed an issue where `ElevenLabsHttpTTSService` was not updating
voice settings when receiving a `TTSUpdateSettingsFrame`.

View File

@@ -868,6 +868,11 @@ class ElevenLabsHttpTTSService(WordTTSService):
def _set_voice_settings(self):
return build_elevenlabs_voice_settings(self._settings)
async def _update_settings(self, settings: Mapping[str, Any]):
await super()._update_settings(settings)
# Update voice settings for the next context creation
self._voice_settings = self._set_voice_settings()
def _reset_state(self):
"""Reset internal state variables."""
self._cumulative_time = 0