Stream a short audio preview of a specific TTS voice from a given provider.
Stream a short audio sample of a specific voice directly from the TTS provider. When users are building Voice Agents, reading that a voice is “warm and energetic” often isn’t enough—they need to hear it. This endpoint proxies the audio preview from providers like ElevenLabs or Cartesia so you can play it directly in your application’s UI.Documentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
x-api-key header to authenticate this request.providerId: The ID of the provider hosting the voice (e.g., elevenlabs, cartesia).url: The exact URL of the preview audio file. You can find this URL inside the previewUrl field when querying the List Provider Voices endpoint.The internal ID of the TTS provider hosting the voice.
cartesia, elevenlabs, deepgram, inworld, rime, sarvam "elevenlabs"
The specific preview URL for the voice (typically obtained from the tts-voices or realtime-options endpoints).
"https://example.com/audio/voice_sample.wav"
Audio bytes streamed successfully with the provider's content-type.
The raw binary audio stream of the voice preview.