Closed amaynut closed 3 years ago
See the answer to your question on stack overflow - https://stackoverflow.com/questions/65973220/ibm-watson-text-to-speech-api-method-failed-with-status-code-403-forbidden/65990867#65990867
the url should be https://api.us-east.text-to-speech.watson.cloud.ibm.com
, if your instance is US east.
I'm able to use the API via CURL.
I don't think that the endpoint is the issue if Curl succeeds. The older endpoints still work for now (although deprecated), so stream.watsonplatform.net/text-to-speech/api
and api.us-south.text-to-speech.watson.cloud.ibm.com
work for the Dallas location with the same API key.
The endpoints you list above are for speech-to-text, text to speech and combinations of both. Can you confirm that you are using the text to speech endpoint that you are using in the curl command in your application? It might be helpful to provide both the curl command and sample authentication code you are using in your application (API keys redacted).
Looking into this issue again, we have located the source of the error and determined a viable solution. We expect a patch release for this in the coming days
This issue has been patched in version 5.2.1. Closing as resolved
Overview Enable to use IBM Watson API with Python. I keep getting 403 error (forbidden) no matter which URL I used I tried the following URLs:
But none of them work.
Code sample
I'm able to use the API via CURL.
Expected behavior Getting a success response from the API
Actual behavior Getting 403 (forbidden)
Screenshots
SDK Version Latest
Additional information: