Skip to content

Commit

Permalink
Merge pull request #356 from bolna-ai/elevenlabs_turbo_2_5
Browse files Browse the repository at this point in the history
updating default elevenlabs model
  • Loading branch information
prateeksachan authored Aug 2, 2024
2 parents 63d94fe + fd8c80f commit bfb52aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Once you have the above docker setup and running, you can create agents and init
"stream": true,
"provider_config": {
"voice": "Meera - high quality, emotive",
"model": "eleven_multilingual_v2",
"model": "eleven_turbo_v2_5",
"voice_id": "TTa58Hl9lmhnQEvhp1WM"
},
"buffer_size": 100.0
Expand Down
4 changes: 2 additions & 2 deletions bolna/synthesizer/elevenlabs_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@


class ElevenlabsSynthesizer(BaseSynthesizer):
def __init__(self, voice, voice_id, model="eleven_multilingual_v1", audio_format="mp3", sampling_rate="16000",
def __init__(self, voice, voice_id, model="eleven_turbo_v2_5", audio_format="mp3", sampling_rate="16000",
stream=False, buffer_size=400, temperature = 0.9, similarity_boost = 0.5, synthesier_key=None,
caching=True, **kwargs):
super().__init__(stream)
self.api_key = os.environ["ELEVENLABS_API_KEY"] if synthesier_key is None else synthesier_key
self.voice = voice_id
self.use_turbo = kwargs.get("use_turbo", False)
self.model = "eleven_turbo_v2" if self.use_turbo else "eleven_multilingual_v2"
self.model = model
logger.info(f"Using turbo or not {self.model}")
self.stream = False # Issue with elevenlabs streaming that we need to always send the text quickly
self.websocket_connection = None
Expand Down
2 changes: 1 addition & 1 deletion local_setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Once you have the above docker setup and running, you can create agents and init
"stream": true,
"provider_config": {
"voice": "Meera - high quality, emotive",
"model": "eleven_multilingual_v2",
"model": "eleven_turbo_v2_5",
"voice_id": "TTa58Hl9lmhnQEvhp1WM"
},
"buffer_size": 100.0
Expand Down

0 comments on commit bfb52aa

Please sign in to comment.