RapidAPI logo

GoogleCloudSpeech

FREE
By stefan.skliarov
Updated 4 months ago
Communication
6/10
Popularity Score
303ms
Latency
100%
Success Rate

GoogleCloudSpeech API Documentation

Convert audio to text with neural network models.

View API Details
POSTgetAccessToken
POSTgetSpeechRecognition
POSTgetSpeechRecognitionFromURL
POSTgetAccessToken

Get OAuth access token

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiSecretCREDENTIALS
REQUIREDApi secret from Google Console
redirectUrlSTRING
REQUIREDRedirect URL (your app url)
apiKeyCREDENTIALS
REQUIREDApi key from Google Console
codeSTRING
REQUIREDCode provided by client
Code Snippet
unirest.post("https://GoogleCloudSpeechstefan-skliarovV1.p.rapidapi.com/getAccessToken")
.header("X-RapidAPI-Host", "GoogleCloudSpeechstefan-skliarovV1.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://GoogleCloudSpeechstefan-skliarovV1.p.rapidapi.com/getAccessToken
Request Method: POST
Response Headers
Response Body
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://GoogleCloudSpeechstefan-skliarovV1.p.rapidapi.com/getAccessToken")
.header("X-RapidAPI-Host", "GoogleCloudSpeechstefan-skliarovV1.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