@@ -89,14 +89,14 @@ var sttAuthService = new AuthorizationV1(
89
89
{
90
90
username : process . env . SPEECH_TO_TEXT_USERNAME , // or hard-code credentials here
91
91
password : process . env . SPEECH_TO_TEXT_PASSWORD ,
92
- iam_apikey : process . env . SPEECH_TO_TEXT_IAM_APIKEY , // if using an RC service
92
+ // iam_apikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY, // if using an RC service
93
93
url : process . env . SPEECH_TO_TEXT_URL ? process . env . SPEECH_TO_TEXT_URL : SpeechToTextV1 . URL
94
94
} ,
95
95
vcapServices . getCredentials ( 'speech_to_text' ) // pulls credentials from environment in bluemix, otherwise returns {}
96
96
)
97
97
) ;
98
98
app . use ( '/api/speech-to-text/token' , function ( req , res ) {
99
- sttAuthService . getToken ( { } , function ( err , token ) {
99
+ sttAuthService . getToken ( function ( err , token ) {
100
100
if ( err ) {
101
101
console . log ( 'Error retrieving token: ' , err ) ;
102
102
res . status ( 500 ) . send ( 'Error retrieving token' ) ;
@@ -119,7 +119,7 @@ var ttsAuthService = new AuthorizationV1(
119
119
)
120
120
) ;
121
121
app . use ( '/api/text-to-speech/token' , function ( req , res ) {
122
- ttsAuthService . getToken ( { } , function ( err , token ) {
122
+ ttsAuthService . getToken ( function ( err , token ) {
123
123
if ( err ) {
124
124
console . log ( 'Error retrieving token: ' , err ) ;
125
125
res . status ( 500 ) . send ( 'Error retrieving token' ) ;
0 commit comments