Reputation: 33
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
Reputation: 41
Tip: To see all your created app here. https://console.bluemix.net/dashboard/apps
Did you input the api key ?
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