Sign Up

Log In

Text to Speech - TTS

FREEMIUM
By VIOMATIC.com
Updated 2 months ago
Media
2.6/10
Popularity Score
3204ms
Latency
100%
Success Rate

Text to Speech - TTS API Documentation

Turns text into an mp3 file. Simple+Fast. Male+Female Voice. Many Languages. Try it!

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POST/getmp3
POST/getmp3

converts text into MP3 audio file and returns the link and duration of the audio file in seconds

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDtext that should be spoken
languageSTRING
REQUIREDlanguage of the text (en, fr, de, it, ru, es, pt, pl)
Optional Parameters
sexSTRING
OPTIONALsex of the voice. "male" or "female"
Request Snippet
unirest.post("https://viomatic-com-text-to-speech-tts-v1.p.rapidapi.com/getmp3?sex=undefined&text=<required>&language=<required>")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://viomatic-com-text-to-speech-tts-v1.p.rapidapi.com/getmp3?sex=undefined&text=<required>&language=<required>")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard