Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ var sttAuthService = new AuthorizationV1(
Object.assign(
{
username: process.env.SPEECH_TO_TEXT_USERNAME, // or hard-code credentials here
password: process.env.SPEECH_TO_TEXT_PASSWORD,
iam_apikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY // if using an RC service
password: process.env.SPEECH_TO_TEXT_PASSWORD
// iam_apikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY // if using an RC service
},
vcapServices.getCredentials('speech_to_text') // pulls credentials from environment in bluemix, otherwise returns {}
)
Expand Down
2 changes: 1 addition & 1 deletion speech-to-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
/**
* @see RecognizeStream
*/
RecognizeStream: require('watson-developer-cloud/lib/recognize-stream'),
RecognizeStream: require('./recognize-stream'),
/**
* @see FilePlayer
*/
Expand Down
2 changes: 1 addition & 1 deletion speech-to-text/recognize-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

'use strict';
var BlobStream = require('readable-blob-stream');
var RecognizeStream = require('watson-developer-cloud/lib/recognize-stream');
var RecognizeStream = require('./recognize-stream.js');
var FilePlayer = require('./file-player.js');
var FormatStream = require('./format-stream.js');
var TimingStream = require('./timing-stream.js');
Expand Down
2 changes: 1 addition & 1 deletion speech-to-text/recognize-microphone.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';
var getUserMedia = require('get-user-media-promise');
var MicrophoneStream = require('microphone-stream');
var RecognizeStream = require('watson-developer-cloud/lib/recognize-stream');
var RecognizeStream = require('./recognize-stream.js');
var L16 = require('./webaudio-l16-stream.js');
var FormatStream = require('./format-stream.js');
var assign = require('object.assign/polyfill')();
Expand Down
Loading