Skip to content

Commit

Permalink
Updated At&t speechToText URI endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
smcguinness committed Mar 24, 2014
1 parent 69f4c14 commit ec64c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/watson.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Watson.prototype.speechToText = function(speechFile, accessToken, callback) {
'X-SpeechContext': this.context, // Possible Values: Generic, UVerseEPG, BusinessSearch, Websearch, SMS, Voicemail, QuestionAndAnswer
'X-Arg': this.xarg // Occasionally used for custom grammar sets. Unnecessary by default.
},
uri: "https://" + this.api_domain + "/rest/1/SpeechToText"
uri: "https://" + this.api_domain + "/speech/v3/speechToText"
};
// !Pipe the Speech file from the Node.js server to the AT&T API server
fs.createReadStream(speechFile).pipe(request(
Expand All @@ -87,4 +87,4 @@ Watson.prototype.speechToText = function(speechFile, accessToken, callback) {
}
)
);
};
};

0 comments on commit ec64c93

Please sign in to comment.