INNER CODE UNIT · Python

get_available_voices

rohitg00/awesome-ai-apps · multimodal-apps/hedra-live-avatars-demo/hedra-avatar-backend/app/main.py:241

async def get_available_voices():
    """Get all available voice options"""
    try:
        elevenlabs_voices = await get_elevenlabs_voices()
        gtts_voices = get_gtts_voices()
        
        return {
            "hedra_voices": elevenlabs_voices,  # For backward compatibility with frontend
            "elevenlabs_voices": elevenlabs_voices,
            "gtts_voices": gtts_voices,
            "total_hedra": len(elevenlabs_voices),
            "total_elevenlabs": len(elevenlabs_voices),
            "total_gtts": len(gtts_voices)
        }
    except Exception as e:
        logger.error(f"❌ Error fetching voices: {str(e)}")
        return {
            "hedra_voices": [],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…