Convert Text to Speech API
Text to speech API: send text or a PDF by upload or URL, pick a male or female voice, and get an MP3 as a download or signed link. Free tier, no card. The…
AI & machine learning#text-analysis
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Text to speech API: send text or a PDF by upload or URL, pick a male or female voice, and get an MP3 as a download or signed link. Free tier, no card.
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.
Authenticate every request with your ApyHub token in the apy-token header. Documentation: https://apyhub.com/utility/text-to-speech
Endpoints 6
- POSTConvert uploaded document to MP3
/apyhub/convert-text-to-speech/file/fileUpload a text file and choose a voice gender to generate speech. - POSTConvert uploaded document to signed MP3 link
/apyhub/convert-text-to-speech/file/linkConvert a file to speech by uploading the file and choosing a voice gender. - POSTConvert JSON text to MP3 download
/apyhub/convert-text-to-speech/text/fileSend text and a gender to generate speech audio from the supplied text. - POSTConvert JSON text to signed MP3 link
/apyhub/convert-text-to-speech/text/linkSend the text and voice gender to generate a speech synthesis link. - POSTConvert document URL to MP3
/apyhub/convert-text-to-speech/url/fileConvert a file from a URL into speech by sending the file URL and voice gender. - POSTConvert document URL to signed MP3 link
/apyhub/convert-text-to-speech/url/linkConvert a file URL to speech by sending the source URL and voice gender.
API details
- Base URL
https://api.eu.apyhub.com- Authentication
- An API key in the apy-token header
- Operations
- 6 operations on 6 pathsPOST 6
- Response formats
application/json- Description format
- OpenAPI 3.0.3, API version
1.0.0 - Links
- Documentation · OpenAPI document
How to test the Convert Text to Speech API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Convert Text to Speech API collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the apy-token header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Convert uploaded document to MP3” (POST /apyhub/convert-text-to-speech/file/file), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Convert Text to Speech API?
Text to speech API: send text or a PDF by upload or URL, pick a male or female voice, and get an MP3 as a download or signed link. Free tier, no card. The… It is listed under AI & machine learning and has 6 endpoints.
Who publishes the Convert Text to Speech API?
It is listed from ApyHub's public API description (an OpenAPI document), not published by ApyHub on Swastik Codes. Anyone who controls apyhub.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Convert Text to Speech API?
Requests go to https://api.eu.apyhub.com. Endpoint paths are added to this base URL.
How do I authenticate with the Convert Text to Speech API?
With an API key in the apy-token header.
How many endpoints does the Convert Text to Speech API have?
6 operations on 6 paths (6 POST).
Is forking the Convert Text to Speech API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.