Skip to content

Commit e4e3f5b

Browse files
committed
Add ElevenLabs Turbo v2.5 voice selection with enhanced options
1 parent 980186d commit e4e3f5b

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

frontend/lib/constants/config.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const AI_MODELS = {
1515
export const AGENT_DEFAULTS = {
1616
PERSONALITY_TONE: 'professional' as const,
1717
COMMUNICATION_STYLE: 'balanced' as const,
18-
VOICE: 'cartesia/sonic-3:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc', // Jacqueline (default)
18+
VOICE: 'elevenlabs/eleven_turbo_v2_5:21m00Tcm4TlvDq8ikWAM', // ElevenLabs Turbo - Rachel (default, most natural)
1919
TEMPERATURE: 0.7,
2020
MAX_TOKENS: 800,
2121
MODEL: 'gpt-4o-mini',
@@ -36,11 +36,16 @@ export const VOICE_OPTIONS = [
3636
{ value: 'cartesia/sonic-3:f31cc6a7-c1e8-4764-980c-60a361443dd1', label: 'Cartesia - Robyn (Neutral, Mature Australian Female, en-AU)' },
3737
{ value: 'cartesia/sonic-3:5c5ad5e7-1020-476b-8b91-fdcbe9cc313c', label: 'Cartesia - Daniela (Calm, Trusting Mexican Female, es-MX)' },
3838

39-
// ElevenLabs
40-
{ value: 'elevenlabs/eleven_turbo_v2_5:Xb7hH8MSUJpSbSDYk0k2', label: 'ElevenLabs - Alice (Clear, Engaging British Female, en-GB)' },
41-
{ value: 'elevenlabs/eleven_turbo_v2_5:iP95p4xoKVk53GoZ742B', label: 'ElevenLabs - Chris (Natural American Male, en-US)' },
42-
{ value: 'elevenlabs/eleven_turbo_v2_5:cgSgspJ2msm6clMCkdW9', label: 'ElevenLabs - Jessica (Young, Playful American Female, en-US)' },
43-
{ value: 'elevenlabs/eleven_turbo_v2_5:cjVigY5qzO86Huf0OWal', label: 'ElevenLabs - Eric (Smooth Tenor Mexican Male, es-MX)' },
39+
// ElevenLabs Turbo v2.5 (Most Natural with Emotion Support)
40+
{ value: 'elevenlabs/eleven_turbo_v2_5:21m00Tcm4TlvDq8ikWAM', label: 'ElevenLabs Turbo - Rachel (Natural, Professional Female, en-US) ⭐ Recommended' },
41+
{ value: 'elevenlabs/eleven_turbo_v2_5:Xb7hH8MSUJpSbSDYk0k2', label: 'ElevenLabs Turbo - Alice (Clear, Engaging British Female, en-GB)' },
42+
{ value: 'elevenlabs/eleven_turbo_v2_5:AZnzlk1XvdvUeBnXmlld', label: 'ElevenLabs Turbo - Domi (Energetic, Confident Female, en-US)' },
43+
{ value: 'elevenlabs/eleven_turbo_v2_5:EXAVITQu4vr4xnSDxMaL', label: 'ElevenLabs Turbo - Bella (Calm, Soothing Female, en-US)' },
44+
{ value: 'elevenlabs/eleven_turbo_v2_5:ErXwobaYiN019PkySvjV', label: 'ElevenLabs Turbo - Antoni (Professional, Warm Male, en-US)' },
45+
{ value: 'elevenlabs/eleven_turbo_v2_5:MF3mGyEYCl7XYWbV9V6O', label: 'ElevenLabs Turbo - Elli (Friendly, Conversational Female, en-US)' },
46+
{ value: 'elevenlabs/eleven_turbo_v2_5:iP95p4xoKVk53GoZ742B', label: 'ElevenLabs Turbo - Chris (Natural American Male, en-US)' },
47+
{ value: 'elevenlabs/eleven_turbo_v2_5:cgSgspJ2msm6clMCkdW9', label: 'ElevenLabs Turbo - Jessica (Young, Playful American Female, en-US)' },
48+
{ value: 'elevenlabs/eleven_turbo_v2_5:cjVigY5qzO86Huf0OWal', label: 'ElevenLabs Turbo - Eric (Smooth Tenor Mexican Male, es-MX)' },
4449

4550
// Rime
4651
{ value: 'rime/arcana:astra', label: 'Rime - Astra (Chipper, Upbeat American Female, en-US)' },

services/voice-agent/src/agent.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,11 @@ async def entrypoint(ctx: JobContext):
349349
if not tts_voice:
350350
# Use ElevenLabs if API key is configured, otherwise fallback to Cartesia
351351
if settings.elevenlabs_api_key:
352-
# Default ElevenLabs voice (Rachel - natural, professional female voice)
353-
# Format: elevenlabs/{voice_id} - can be customized in agent voice_settings
354-
tts_voice = "elevenlabs/rachel" # Natural, professional female voice
355-
logger.info("Using ElevenLabs TTS for more natural voice quality")
352+
# Default ElevenLabs Turbo v2.5 voice (Rachel - Natural, Professional Female)
353+
# Format: elevenlabs/eleven_turbo_v2_5:{voice_id} - uses most natural model with emotion support
354+
# This format ensures we use the turbo v2.5 model which has better prosody and emotion handling
355+
tts_voice = "elevenlabs/eleven_turbo_v2_5:21m00Tcm4TlvDq8ikWAM" # Rachel - natural, professional female voice
356+
logger.info("Using ElevenLabs Turbo v2.5 TTS for more natural voice quality with emotion support")
356357
else:
357358
# Fallback to Cartesia if ElevenLabs not configured
358359
tts_voice = "cartesia/sonic-3:9626c31c-bec5-4cca-baa8-f8ba9e84c8bc"

0 commit comments

Comments
 (0)