This API can be directly requested and played as streaming mp3 audio. This API can also be accessed via /api/tts/simple-generate.mp3
Request
Query Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://v1.vocu.ai/api/tts/simple-generate?token&voiceId&text'
Responses
🟢200Successfully generated audio
application/octet-stream
Body
Example
// This interface responds with mp3 chunked stream upon success
// You can read X-Reecho-Audio-Id and X-Reecho-Response-Data from response headers, which contain URLs that can be repeatedly streamed for several hours, and you can also read return data like credit_used from them