Custom TTS API Requirements
A POST request with application/www-urlencode data will be sent to the provided API address:
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 voice role name / string
rate: Speed adjustment value, either 0 or '+number%' '-number%', representing the percentage increase or decrease from the normal speed / string
ostype: Operating system type: win32, mac, or linux / string
extra: Extra parameters / string
The interface is expected to return data in JSON format:
{ code: 0 = synthesis successful, a number > 0 represents failure msg: 'ok' = synthesis successful, other values indicate the reason for failure data: When synthesis is successful, returns the complete URL address of the mp3 file for downloading within the software. Empty on failure. }
