How to get username & password for Watson Text to Speech Service?

百般思念 提交于 2019-12-06 01:34:44

As you spotted, the services have moved over to using API keys through the IBM Cloud IAM.

The watson-developer-cloud sdks will still work but you need to provide an iam_apikey value instead of the username and password. Hopefully the samples will be updated in the very near future.

Also make sure to check the credentials object provided to you by IBM Cloud as some of the service urls have changed and need to be explicitly declared using url in your config object.

Instead of userName use the word apikey as written here and in the password the api key of your service. so your credentials should be as follow :

userName: "apikey"
password: your service api key
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!