Skip to content

Commit efd924c

Browse files
committed
Examples server was not parsing the IAM API key for STT (fixes #110)
1 parent 7f29910 commit efd924c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ var sttAuthService = new AuthorizationV1(
8888
Object.assign(
8989
{
9090
username: process.env.SPEECH_TO_TEXT_USERNAME, // or hard-code credentials here
91-
password: process.env.SPEECH_TO_TEXT_PASSWORD
92-
// iam_apikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY // if using an RC service
91+
password: process.env.SPEECH_TO_TEXT_PASSWORD,
92+
iam_apikey: process.env.SPEECH_TO_TEXT_IAM_APIKEY // if using an RC service
9393
},
9494
vcapServices.getCredentials('speech_to_text') // pulls credentials from environment in bluemix, otherwise returns {}
9595
)

0 commit comments

Comments
 (0)