What it does
The Text to Speech API turns written content into MP3 audio. Send up to 75,000 characters of text in a JSON body, upload a document as a file, or pass a document url, and choose a male or female voice with gender. The /file endpoints return the MP3 directly, and the /link endpoints return a JSON data field with a signed URL.
Because it accepts documents as well as text, it also works as a PDF to audio API: send a PDF and get it read aloud as an MP3, with no text extraction step on your side. Teams use the text to speech API to add read-aloud buttons to articles, narrate reports and training material, make content accessible to people who prefer listening, and send voice notifications from apps. It works from Python, Node.js or any language that can send an HTTP request.
There are two voices, male and female. For many voices, voice cloning or fine pronunciation control, a dedicated speech platform is a better fit.
To go the other way, use the Speech to Text API. To shorten long documents before narrating them, use the AI Summarize API. AI agents can also call it through ApyHub MCP, for example to turn a summary into an MP3.