IBMWatsonTTS

FREE
By sapirlasry1
Updated 4 months ago
Communication
3.4/10
Popularity Score
318ms
Latency
100%
Success Rate

IBMWatsonTTS API Documentation

Convert text to natural-sounding speech.

View API Details
POSTaddSingleWordToVoiceModel
POSTaddWordsToVoiceModel
POSTcreateVoiceModel
POSTdeleteVoiceModel
POSTdeleteVoiceModelSingleWord
POSTgetPronunciation
POSTgetSingleVoice
POSTgetSingleVoiceModel
POSTgetVoiceModelSingleWord
POSTgetVoiceModelWords
POSTgetVoiceModels
POSTgetVoices
POSTsynthesizesTextToAudio
POSTupdateVoiceModel
POSTaddSingleWordToVoiceModel

Adds a single word and its translation to the specified custom voice model. Adding a new translation for a word that already exists in a custom model overwrites the word's existing translation.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
wordSTRING
REQUIREDThe word that is to be added to the custom voice model.
passwordCREDENTIALS
REQUIREDpassword obtained from IBM Bluemix.
usernameCREDENTIALS
REQUIREDusername obtained from IBM Bluemix.
customizationIdSTRING
REQUIREDThe GUID of the custom voice model that is to be updated. You must make the request with the service credentials of the model's owner.
translationSTRING
REQUIREDThe phonetic or sounds-like translation for the word. A phonetic translation is based on the SSML format for representing the phonetic string of a word either as an IPA or IBM SPR translation. A sounds-like translation consists of one or more words that, when combined, sound like the word.
Code Snippet
unirest.post("https://IBMWatsonTTSsapirlasry1V1.p.rapidapi.com/addSingleWordToVoiceModel")
.header("X-RapidAPI-Host", "IBMWatsonTTSsapirlasry1V1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://IBMWatsonTTSsapirlasry1V1.p.rapidapi.com/addSingleWordToVoiceModel
Request Method: POST
Response Headers
Response Body

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://IBMWatsonTTSsapirlasry1V1.p.rapidapi.com/addSingleWordToVoiceModel")
.header("X-RapidAPI-Host", "IBMWatsonTTSsapirlasry1V1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.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