INNER CODE UNIT · Python
VideoGeneration
rohitg00/awesome-ai-apps · multimodal-apps/hedra-live-avatars-demo/hedra-avatar-backend/app/main.py:58
class VideoGeneration(BaseModel):
session_id: str
text_prompt: str
duration: Optional[float] = None
voice_id: Optional[str] = None
voice_provider: Optional[str] = "elevenlabs"
class ChatMessage(BaseModel):
session_id: str
message: str
# Helper functions
async def get_elevenlabs_voices():
"""Get available voices from ElevenLabs API"""
try:
logger.info("🎤 Fetching ElevenLabs voices...")
response = elevenlabs_client.voices.search()