I am having problem using Google cloud platform.
I bought Google AIY voice kit from AliExpress.com. I discovered it was an old version. Two weeks ago, I used Etcher to flash aiyprojects-2021-04-02.img.xz from GitHub on an SD card and set up my voice kit. Hardware testing was good. I then created a project, named “Voice Kit”, on google cloud following directions given on "aiyprojects.withgoogle.com/voice-v1/". I had the following experience:
- I used “src/examples/voice/assistant_library_demo.py” command, and signed in with my google account. After some warnings and authentication, google assistant responded to commands. It worked.
- I used “src/examples/voice/assistant_grpc_demo.py” command and got error when I pressed the button. The error ended with “grpc_message”: “invalid ‘dialog_state_in’: unsupported language_code.”,”grpc_status”: 3}”
- I created a billing account and a service account, but my cloud_speech.json credentials did not download after following the instructions stated at aiyprojects.withgoogle.com/voice-v1. I checked ”service account” on google cloud platform. Under the e-mail column, my-billing-account@voice kit…. was listed. Status column had Ok. Name column had “my billing account”. However, the key ID column had “No keys”.
It would be appreciated if I could be educated on the following:
- How do I get cloud_speech_credentials to download automatically as stated in the instructions I am following? Don’t I need keys? If I do, how do I get them?
- The instructions on aiyprojects.withgoogle.com/voice-v1 asked us to enter “Cloud Speech API” into the search bar, then click the name to enable. But one sees both speech-to-text, and text-to speech APIs after the search. Do we enable both?
- The instructions ask us to add ourselves as test users, but the token for test users expire after 7 days. I will want to continue using my assistant for years. What do I do to ensure that I do not end up with expired token again after seven days?
- How do I correct the fault I am having with the “src/examples/voice/assistant_grpc_demo.py” command?