Skip to content

Commit

Permalink
Show Eleven Labs supported languages
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Oct 6, 2023
1 parent 036f957 commit 77c62f2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions daras_ai_v2/text_to_speech_settings_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ class TextToSpeechProviders(Enum):
"eleven_monolingual_v1": "English V1 - Low latency English TTS",
}

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


BARK_SUPPORTED_LANGS = [
("English", "en"),
("German", "de"),
Expand Down Expand Up @@ -238,16 +241,9 @@ def text_to_speech_settings():
key="elevenlabs_similarity_boost",
)

col1, _ = st.columns(2)
with col1:
st.selectbox(
"""
###### Voice Model
""",
key="elevenlabs_model",
format_func=ELEVEN_LABS_MODELS.__getitem__,
options=ELEVEN_LABS_MODELS.keys(),
)
with st.expander("Eleven Labs Supported Languages"):
st.caption("With Multilingual V2 voice model")
st.caption(", ".join(ELEVEN_LABS_SUPPORTED_LANGS))


@st.cache_data()
Expand Down

0 comments on commit 77c62f2

Please sign in to comment.