Skip to content

Commit

Permalink
11labs: Add turbo model and extra language
Browse files Browse the repository at this point in the history
**Changes:**
* Add eleven turbo model for extremely low-latency English TTS
* Add 29th supported language for multilingual v2 model
* Remove trailing space in text_to_speech_widget file
  • Loading branch information
nikochiko committed Nov 20, 2023
1 parent 493ceb9 commit 746caea
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions daras_ai_v2/text_to_speech_settings_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,42 +76,43 @@ class TextToSpeechProviders(Enum):

# Mapping from Model ID -> Title in UI
ELEVEN_LABS_MODELS = {
"eleven_multilingual_v2": "Multilingual V2",
"eleven_monolingual_v1": "English V1 - Low latency English TTS",
"eleven_multilingual_v2": "Multilingual V2 - High quality speech in 29 languages",
"eleven_turbo_v2": "English V2 - Very low latency text-to-speech",
"eleven_monolingual_v1": "English V1 - Low latency text-to-speech",
}

ELEVEN_LABS_SUPPORTED_LANGS = [
"English",
"Japanese",
"Chinese",
"Spanish",
"German",
"Hindi",
"Portuguese",
"French",
"German",
"Japanese",
"Arabic",
"Korean",
"Indonesian",
"Portuguese",
"Italian",
"Spanish",
"Indonesian",
"Dutch",
"Turkish",
"Filipino",
"Polish",
"Swedish",
"Filipino",
"Malay",
"Bulgarian",
"Romanian",
"Ukrainian",
"Greek",
"Arabic",
"Czech",
"Danish",
"Greek",
"Finnish",
"Bulgarian",
"Croatian",
"Malay",
"Slovak",
"Danish",
"Tamil",
"Ukrainian",
"Russian",
]


BARK_SUPPORTED_LANGS = [
("English", "en"),
("German", "de"),
Expand Down Expand Up @@ -184,7 +185,7 @@ def text_to_speech_settings(page):
with col1:
st.slider(
"""
###### Speaking rate
###### Speaking rate
*`1.0` is the normal native speed of the speaker*
""",
min_value=0.3,
Expand Down Expand Up @@ -219,7 +220,7 @@ def text_to_speech_settings(page):
with col1:
st.slider(
"""
###### Speaking rate
###### Speaking rate
*`1.0` is the normal native speed of the speaker*
""",
min_value=0.5,
Expand Down

0 comments on commit 746caea

Please sign in to comment.