Skip to content

Commit

Permalink
Add language param to ElevenLabs TTS update_options
Browse files Browse the repository at this point in the history
  • Loading branch information
cch41 committed Jan 2, 2025
1 parent e5c2ef8 commit 1a23ea6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,17 @@ def update_options(
*,
voice: Voice = DEFAULT_VOICE,
model: TTSModels | str = "eleven_turbo_v2_5",
language: str | None = None,
) -> None:
"""
Args:
voice (Voice): Voice configuration. Defaults to `DEFAULT_VOICE`.
model (TTSModels | str): TTS model to use. Defaults to "eleven_turbo_v2_5".
language (str | None): Language code for the TTS model. Optional.
"""
self._opts.model = model or self._opts.model
self._opts.voice = voice or self._opts.voice
self._opts.language = language or self._opts.language

def synthesize(
self,
Expand Down

0 comments on commit 1a23ea6

Please sign in to comment.