1

I'm working on an AI assistant, and for text-to-speech recognition in Python I used google, but it's way to slow and not really accurate. So I created an account in IBM and get text-to-speech credentials, but as you can see the format asks for the input, username and password but IBM migrated to API keys.

I don't know what should I put in username and password since I only have the key. What should I put there?

AI Text to speech

baao
  • 71,625
  • 17
  • 143
  • 203

1 Answers1

1

In general, there is a new IAM Authenticator wrapper / package / module which handles authentication for the services. You can see the IAM Authenticator in this Python text-to-speech sample.

If you happen to use some API which requires username and password, then use apikey as username and the API key as password.

data_henrik
  • 16,724
  • 2
  • 28
  • 49
  • Thank you for the quick response!:), I tried using "apikey" as username and the service credential API key as password but it doesn't seem to work, it doest pop any error but it just freezes. this is my code: speech = r.recognize_ibm(input, username="apikey", password= "zEcMt01NR1tX7z82_XXxxXxxXSPKe-ylT-GxdjrTYQoXZEy4") am I doing something wrong? – Iker Handsome Castillo Oct 14 '20 at 21:20
  • it gives me this error ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123) – Iker Handsome Castillo Oct 14 '20 at 21:41
  • What library / module is `r.recognize_ibm` based on? It is not the IBM Watson module – data_henrik Oct 15 '20 at 04:58
  • it's speech_recognition – Iker Handsome Castillo Oct 15 '20 at 13:44
  • mark this answer complete and ask a new question regarding the SSL cert issue - and make it clear that you are using this one https://github.com/Uberi/speech_recognition/ (I guess) – data_henrik Oct 15 '20 at 15:00