Generate talking-head avatar videos from a script. Handles ElevenLabs TTS audio generation and video synthesis. Use for content creation, deal outreach videos, or personalized messaging.
Create lip-synced avatar videos from text scripts.
~/.config/elevenlabs/api_key~/.config/fal/api_key (for video generation)EL_KEY=$(cat ~/.config/elevenlabs/api_key)
# List available voices
curl -s "https://api.elevenlabs.io/v1/voices" \
-H "xi-api-key: $EL_KEY" | python3 -c "
import sys, json
for v in json.load(sys.stdin)['voices'][:20]:
print(f\"{v['voice_id']}: {v['name']}\")"
# Generate TTS audio
curl -s -X POST "https://api.elevenlabs.io/v1/text-to-speech/VOICE_ID" \
-H "xi-api-key: $EL_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Your script here", "model_id": "eleven_multilingual_v2"}' \
--output audio.mp3
# Then use Fal API for video synthesis with the audio