Stream Voice Preview
curl --request GET \
--url https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview \
--header 'x-api-key: <api-key>'import requests
url = "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"{
"error": "Invalid query params",
"issues": [
{}
],
"example": {}
}Stream Voice Preview
Stream a short audio preview of a specific TTS voice from a given provider.
GET
/
config
/
tts-voice-preview
Stream Voice Preview
curl --request GET \
--url https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview \
--header 'x-api-key: <api-key>'import requests
url = "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://voice-livekit.studio.lyzr.ai/v1/config/tts-voice-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body"<string>"{
"error": "Invalid query params",
"issues": [
{}
],
"example": {}
}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.
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.