Skip to content

Commit

Permalink
fix typo: synthesier_key -> synthesizer_key
Browse files Browse the repository at this point in the history
  • Loading branch information
prateeksachan committed Oct 17, 2024
1 parent 0592c1d commit 90621fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bolna/synthesizer/cartesia_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

class CartesiaSynthesizer(BaseSynthesizer):
def __init__(self, voice_id, voice, model="sonic-english", audio_format="mp3", sampling_rate="16000",
stream=False, buffer_size=400, synthesier_key=None, caching=True, **kwargs):
stream=False, buffer_size=400, synthesizer_key=None, caching=True, **kwargs):
super().__init__(stream)
self.api_key = os.environ["CARTESIA_API_KEY"] if synthesier_key is None else synthesier_key
self.api_key = os.environ["CARTESIA_API_KEY"] if synthesizer_key is None else synthesizer_key
self.version = '2024-06-10'
self.voice_id = voice_id
self.model = model
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 @@ -19,10 +19,10 @@

class ElevenlabsSynthesizer(BaseSynthesizer):
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,
stream=False, buffer_size=400, temperature=0.9, similarity_boost=0.5, synthesizer_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.api_key = os.environ["ELEVENLABS_API_KEY"] if synthesizer_key is None else synthesizer_key
self.voice = voice_id
self.model = model
self.stream = True # Issue with elevenlabs streaming that we need to always send the text quickly
Expand Down
4 changes: 2 additions & 2 deletions bolna/synthesizer/smallest_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

class SmallestSynthesizer(BaseSynthesizer):
def __init__(self, voice, voice_id, model="lightning", audio_format="mp3", sampling_rate="8000",
stream=False, buffer_size=400, synthesier_key=None, **kwargs):
stream=False, buffer_size=400, synthesizer_key=None, **kwargs):
super().__init__(stream)
self.api_key = os.environ["SMALLEST_API_KEY"] if synthesier_key is None else synthesier_key
self.api_key = os.environ["SMALLEST_API_KEY"] if synthesizer_key is None else synthesizer_key
self.voice_id = voice_id
self.model = model
self.stream = False
Expand Down

0 comments on commit 90621fa

Please sign in to comment.