Sean Thammakhoune
Sean Thammakhoune

Reputation: 33

How can I obtain tokens for IBM Watson's Text-to-Speech service?

we are creating a medical chatbot that utilizes Watson Assistant and Discovery using OpenWhisk. We would now like to be able to use speech-to-text and text-to-speech, but are having trouble obtaining tokens for the synthesize() function. Right now, we are using the command

curl -u "apikey:apikey" --output token "https://stream.watsonplatform.net/authorization/api/v1/token?url=https://stream.watsonplatform.net/text-to-speech/api"

but we are getting

{"code":401,"error":"Unauthorized","description":"ERCD250-LDAP-DN-AUTHERR"} 

as an output. Could someone help point us in the right direction?

Upvotes: 2

Views: 129

Answers (1)

Zepse Wolf
Zepse Wolf

Reputation: 41

Tip: To see all your created app here. https://console.bluemix.net/dashboard/apps

Did you input the api key ? enter image description here curl -u "apikey:apikey" --output token "https://stream.watsonplatform.net/authorization/api/v1/token?url=https://stream.watsonplatform.net/text-to-speech/api"

Upvotes: 1

Related Questions