Skip to content

Commit ae09158

Browse files
authored
Merge pull request #193 from chughts/sttbug
Sttbug
2 parents 995d314 + a4e427e commit ae09158

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Node-RED Watson Nodes for IBM Bluemix
77

88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

10+
### New in version 0.4.16
11+
- Oops! fix to Speech to Text Node
12+
1013
### New in version 0.4.15
1114
- Name space fixes to Speech to Text Node
1215

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.4.15",
3+
"version": "0.4.16",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"alchemy-api": "^1.3.0",

services/speech_to_text/v1.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ module.exports = function (RED) {
158158
// it should be called here or after the service returns and passed
159159
// control back to cbdone.
160160
function performAction(audio, format, cbdone, cbcleanup) {
161-
var speech_to_text = watson.speech_to_text({
161+
var speech_to_text = new sttV1({
162162
username: username,
163-
password: password,
164-
version: 'v1',
165-
url: 'https://stream.watsonplatform.net/speech-to-text/api'
163+
password: password
166164
});
167165

168166
// If we get to here then the audio is in one of the supported formats.

0 commit comments

Comments
 (0)