Retrieve available TTS voices
April 18, 2025
Table of contents
This endpoint retrieves a list of available text-to-speech voices from Kling.
https://api.useapi.net/v1/kling/tts/voices?…
Request Headers
Authorization: Bearer {API token}
API token
is required, see Setup useapi.net for details.
Query Parameters
email
is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-
{ "ttsList": [ { "name": "Voice Name 1", "speakerId": "voice_id_1", "exampleUrl": "https://s21-kling.klingai.com/....mp3", "new": false, "emotions": [ { "name": "Happy", "key": "happy", "enable": true }, { "name": "Sad", "key": "sad", "enable": true } ] }, { "name": "Voice Name 2", "speakerId": "voice_id_2", "exampleUrl": "https://s21-kling.klingai.com/....mp3", "new": true, "emotions": [] } ], "lastSpeakerId": "voice_id_1", "typeList": ["en", "zh"] }
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
ttsList: {
name: string
speakerId: string
exampleUrl: string
new: boolean
emotions: {
name: string
key: string
enable: boolean
}[]
}[]
lastSpeakerId: string
typeList: string[]
}
Examples
-
curl "https://api.useapi.net/v1/kling/tts/[email protected]" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const email = "Previously configured account email"; const apiUrl = `https://api.useapi.net/v1/kling/tts/voices?email=${email}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" email = "Previously configured account email" apiUrl = f"https://api.useapi.net/v1/kling/tts/voices?email={email}" headers = { "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())