Welcome to the Text2Audio API! Follow the instructions below to convert text to audio using our API.
Use the following curl command to make a sample request to convert text to audio:
curl -X POST -H "Content-Type: application/json" -d '{"language": "en-US", "paragraphs": "test paragraph", "splitParagraph": true}' https://text2audio.cc/api/audio
A successful response will be an array of objects like this:
[
{
"url": "https://example.com/audio.mp3",
"text": "Hello, world!"
}
]
Each object in the array contains a URL and the corresponding text.