Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11labs: Add turbo model and extra language #215

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Comment on lines 85 to 106
Copy link
Member Author

@nikochiko nikochiko Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reordering is because the API query returned a different order. No languages were removed.

"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
Loading