PhxDemo.TTS.ElevenLabs (phx_demo v0.1.1)

Copy Markdown View Source

Narration with the ElevenLabs text-to-speech API.

config :phx_demo, :tts, {PhxDemo.TTS.ElevenLabs, voice_id: "21m00Tcm4TlvDq8ikWAM"}

Options:

  • :api_key: defaults to the ELEVENLABS_API_KEY environment variable
  • :voice_id: default "21m00Tcm4TlvDq8ikWAM" (Rachel)
  • :model_id: default "eleven_multilingual_v2"
  • :output_format: default "mp3_44100_128"
  • :base_url: default "https://api.elevenlabs.io/v1"