Skip to content

Commit f7be21f

Browse files
authored
Merge pull request #595 from D3V4N5H/patch-1
IAM token instead of Username and Password
2 parents f946d69 + 1790ff7 commit f7be21f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/microphone-speech-to-text.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636

3737
# initialize speech to text service
3838
speech_to_text = SpeechToTextV1(
39-
username='YOUR SERVICE USERNAME',
40-
password='YOUR SERVICE PASSWORD',
41-
url='https://stream.watsonplatform.net/speech-to-text/api')
39+
iam_apikey='{YOUR_IAM_API_KEY}',
40+
url='{YOUR_GATEWAY_URL}')
4241

4342
# define callback for the speech to text service
4443
class MyRecognizeCallback(RecognizeCallback):

0 commit comments

Comments
 (0)