Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@
"eleven_flash_v2_5",
"eleven_flash_v2",
"eleven_v3",
"eleven_v3_conversational",
]

# Synthesized via text-to-dialogue instead of text-to-speech (see tts.py).
DIALOGUE_TTS_MODEL_PREFIX = "eleven_v3"


def is_dialogue_model(model: str) -> bool:
"""Whether `model` must be synthesized via the text-to-dialogue API."""
return model.startswith(DIALOGUE_TTS_MODEL_PREFIX)
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.


# https://elevenlabs.io/docs/api-reference/text-to-speech/convert#request.query.output_format
TTSEncoding = Literal[
"mp3_22050_32",
Expand Down
Loading