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

Update default model to Turbo 2.5 and add languages #142

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ data:
voice: Bella
stability: 1
similarity: 1
style: 0.3 #Not supported in Model V1
use_speaker_boost: "true" #Not supported in Model V1
model: eleven_multilingual_v1
style: 0.3 # Only supported in eleven_multilingual_v2
use_speaker_boost: "true" # Only supported in eleven_multilingual_v2
model: eleven_multilingual_v2
optimize_streaming_latency: 3
target:
entity_id: tts.elevenlabstts
Expand Down
2 changes: 1 addition & 1 deletion custom_components/elevenlabs_tts/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
CONF_SIMILARITY = "similarity"
DEFAULT_SIMILARITY = 0.9
CONF_MODEL = "model"
DEFAULT_MODEL = "eleven_multilingual_v1"
DEFAULT_MODEL = "eleven_turbo_v2_5"
CONF_OPTIMIZE_LATENCY = "optimize_streaming_latency"
DEFAULT_OPTIMIZE_LATENCY = 0
CONF_STYLE = "style"
Expand Down
5 changes: 4 additions & 1 deletion custom_components/elevenlabs_tts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def default_language(self) -> str:
@property
def supported_languages(self) -> list[str]:
"""Return list of supported languages."""
# This is for eleven_multilingual_v2, not all are supported in other models
# This is for eleven_turbo_v2_5, not all are supported in other models
return [
"en", # English
"ja", # Japanese
Expand Down Expand Up @@ -89,6 +89,9 @@ def supported_languages(self) -> list[str]:
"da", # Danish
"ta", # Tamil
"uk", # Ukrainian
"vi", # Vietnamese
"hu", # Hungarian
"no", # Norwegian
]

@property
Expand Down