The Text-to-Speech API is available at the following endpoint: https://api.pawan.krd/tts
The API supports the following methods:
- GET
- POST
The API accepts the following parameters:
text
: (Required) The text to be converted to speech.voice
: (Required) The voice to use for the conversion. The available voices are: "adam", "antoni", "arnold", "bella", "josh", "rachel", "domi", "elli", "sam".
To use the API with the GET method, you can make a request to the following URL: https://api.pawan.krd/tts?text=hello&voice=arnold
To use the API with the POST method, you can make a request with the following payload:
json
{ "text": "hello", "voice": "arnold" }
The API will return an audio file in response to a successful request. The format of the audio file will be determined by the API.
If there is an error in the request, the API will return a JSON object with the error message.
It works, but is pretty slow. Some requests take ~20 seconds