Stream Voice Preview
Configs API Endpoints
Stream Voice Preview
Stream a short audio preview of a specific TTS voice from a given provider.
GET
Stream Voice Preview
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.
Authentication Required: You must include your API key in the
x-api-key header to authenticate this request.Required Parameters
You must provide two query parameters to successfully fetch the audio: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 thepreviewUrlfield when querying the List Provider Voices endpoint.
Authorizations
Query Parameters
The internal ID of the TTS provider hosting the voice.
Available options:
cartesia, elevenlabs, deepgram, inworld, rime, sarvam Example:
"elevenlabs"
The specific preview URL for the voice (typically obtained from the tts-voices or realtime-options endpoints).
Example:
"https://example.com/audio/voice_sample.wav"
Response
Audio bytes streamed successfully with the provider's content-type.
The raw binary audio stream of the voice preview.