List available TTS models and voices
curl --request GET \
--url http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/modelsimport requests
url = "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models")
.asString();require 'uri'
require 'net/http'
url = URI("http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"name": "melo-tts-en",
"display_name": "MeloTTS English",
"version": "1.0.0",
"description": "MeloTTS text-to-speech model with English support",
"voices": [
{
"name": "default",
"language": "en",
"display_name": "Default Voice",
"language_name": "English",
"gender": "neutral",
"style": "neutral",
"sample_rate": 44100,
"description": "Default voice for English"
}
],
"capabilities": {
"supports_gender": true,
"supports_style": true,
"supports_sample_rate": true,
"supports_ssml": true,
"supports_speed_control": true,
"supports_pitch_control": true,
"supports_volume_control": true,
"supports_resampling": true
},
"parameters": {
"max_text_length": 123,
"supported_formats": [
"<string>"
],
"sample_rates": [
123
],
"speed_range": [
123
],
"pitch_range": [
123
],
"volume_range": [
123
]
}
}
]{
"error": {
"message": "Invalid request, missing 'file' parameter",
"type": "invalid_request_error",
"param": "file",
"code": null
}
}List available TTS models and voices
Returns available TTS models with voices, capabilities, and supported sample rates.
Filter by language using the language query parameter.
GET
/
tts
/
models
List available TTS models and voices
curl --request GET \
--url http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/modelsimport requests
url = "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models")
.asString();require 'uri'
require 'net/http'
url = URI("http://{device-ip}:{device-port}/audio-analytics/v1/api/tts/models")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"name": "melo-tts-en",
"display_name": "MeloTTS English",
"version": "1.0.0",
"description": "MeloTTS text-to-speech model with English support",
"voices": [
{
"name": "default",
"language": "en",
"display_name": "Default Voice",
"language_name": "English",
"gender": "neutral",
"style": "neutral",
"sample_rate": 44100,
"description": "Default voice for English"
}
],
"capabilities": {
"supports_gender": true,
"supports_style": true,
"supports_sample_rate": true,
"supports_ssml": true,
"supports_speed_control": true,
"supports_pitch_control": true,
"supports_volume_control": true,
"supports_resampling": true
},
"parameters": {
"max_text_length": 123,
"supported_formats": [
"<string>"
],
"sample_rates": [
123
],
"speed_range": [
123
],
"pitch_range": [
123
],
"volume_range": [
123
]
}
}
]{
"error": {
"message": "Invalid request, missing 'file' parameter",
"type": "invalid_request_error",
"param": "file",
"code": null
}
}Query Parameters
Filter by ISO 639-1 language code (e.g., 'en' for English)
Example:
"en"
Response
List of available TTS models
Unique model identifier
Example:
"melo-tts-en"
Human-readable model name
Example:
"MeloTTS English"
Model version
Example:
"1.0.0"
Model description
Example:
"MeloTTS text-to-speech model with English support"
Available voices for this model
Show child attributes
Show child attributes
Model capabilities
Show child attributes
Show child attributes
Model parameters and constraints
Show child attributes
Show child attributes
Was this page helpful?
⌘I

