Text to speech
the output type is 'Content-Type', 'audio/mpeg', if directly calling from browser it should directly steam. HTML + JS ``` <!DOCTYPE html> <html> <head> <title>Audio Player</title> </head> <body> <script> const audioPlayer = document.getElementById('audioPlayer'); // API endpoint URL const endpointUrl = 'your-api-endpoint-url'; // Fetch the audio…
Text to speech endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
send text to speech stream /speech |
text to speech text = the text you want to speak language = default en , get the list of supported language for get /tts/speech/lang ``` console.log(response); audio.pause();… |
| GET |
get language /speech/lang |
get list of available language for text to speech |
Text to speech pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $0.99 / month | — |
|
| ULTRA | $5.99 / month | — |
|
| MEGA Recommended | $10 / month | — |
|