Skip to content

Custom TTS API Interface Requirements

A POST request will be sent to the API address you fill in, with application/www-urlencode data:

text: The text/string to be synthesized language: The language code of the text (zh-cn,zh-tw,en,ja,ko,ru,de,fr,tr,th,vi,ar,hi,hu,es,pt,it) / string voice: The name of the dubbing role / string rate: Speed up/down value, 0 or '+number%' '-number%', representing the percentage of speed up/down based on normal speed / string ostype: win32 or mac or linux operating system type / string extra: Extra parameters / string

Expect JSON format data to be returned from the interface:

json
{
    code: 0 = success, >0 numbers represent failure
    msg: ok = success, others are the reason for failure
    data: When the synthesis is successful, return the complete URL address of the mp3 file for download in the software. Empty when failed
}