Skip to content

Commit

Permalink
Merge pull request #109 from watson-developer-cloud/stabilize-package
Browse files Browse the repository at this point in the history
Stabilize package
  • Loading branch information
dpopp07 authored Mar 18, 2019
2 parents afd8c98 + c3d835b commit 7f29910
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 6 deletions.
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

0 comments on commit 7f29910

Please sign in to comment.