Skip to content

Commit

Permalink
Update default model to Turbo 2.5 and add languages (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno authored Jul 24, 2024
1 parent 8505616 commit 6f28c63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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

0 comments on commit 6f28c63

Please sign in to comment.