# `PhxDemo.TTS.ElevenLabs`
[🔗](https://github.com/thenatespack/phoenix_demo/blob/main/lib/phx_demo/tts/eleven_labs.ex#L1)

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"`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
