IBM / watson-voice-bot

Create a Watson Assistant chatbot that uses voice over a web browser.
https://developer.ibm.com/patterns/create-a-web-based-voice-chatbot/
Apache License 2.0
120 stars 155 forks source link

There is still a problem with the credentials. There is a known problem with the assistant and speech-to-text creds role. There is a workaround. #64

Open markstur opened 3 years ago

markstur commented 3 years ago

There is still a problem with the credentials. There is a known problem with the assistant and speech-to-text creds roles. There is a workaround that works for both.

Go to the Cloud Foundry App -> Runtime -> Environment Variables and add the Assistant and STT creds (APIKey and URL) using the same key/values described for use in the local runtime .env. We'll need to document this if we don't come up with an alternative.

Adding a screenshot here for now:

runtime_env

Originally posted by @markstur in https://github.com/IBM/watson-voice-bot/issues/55#issuecomment-646940575

markstur commented 3 years ago

Note: For assistant make sure you are using the APIKEY from the "Service" and not the "Cloud Foundry Service".

Same for STT.

TTS seems to be working fine from the CF provided VCAP_SERVICES runtime variable. You should not need to add these as shown in the image. Just ASSISTANT_APIKEY and URL and SPEECH_TO_TEXT_APIKEY and URL

markstur commented 2 years ago

Update: Seems to work better if you also specify runtime env for TEXT_TO_SPEECH_APIKEY and TEXT_TO_SPEECH_URL.