module

Arcana::AI::TTS

Constants

AUDIO_FORMATS = Set {"mp3", "wav", "aac", "flac", "opus", "pcm"}
DEFAULT_READ_TIMEOUT = 120.seconds

How long a provider waits for the speech by default. It can be slow: OpenAI sends gpt-4o-mini-tts's events only once the clip is done, which has taken over a minute for five seconds of audio.

VOICE_OPTIONS = ["alloy", "ash", "ballad", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer", "verse"] of ::String

Nested types