working and using google cloud speech

This commit is contained in:
wassname
2018-12-29 14:20:04 +08:00
parent 76bee538ca
commit c328ccfeac
8 changed files with 192 additions and 108 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
# Run
To run the program once installed
>> python BitLit_decoder1.py HiBitLit.pmdl
>> python BitLit_decoder.py HiBitLit.pmdl
After sometimes you should say " HI BitLit" then wait till the poetbot speak to you..and enjoy the rest.. At the end you just need to say again " Hi BitLit" to a different vocal input for so that the poetbot can generate a new poem and the cycle can go days and weeks..
WARNING::: Might be slow depending on your computer capabilities..
@@ -31,7 +31,7 @@ API Keys:
- `cp secrets.template.json to secrets.json`
- get an API key for google cloud
- make a project or use an existing project
- download a credentials json for that project
- enable the speech recognition api https://console.cloud.google.com/apis/api/speech.googleapis.com/overview
- put the credentials in `./secrets/google_cloud_credintials.json`
- download a credentials json for that project (using edit, create key) https://console.cloud.google.com/apis/api/speech.googleapis.com/credentials
- enable the speech recognition api for that project (make sure you've selected your project) https://console.cloud.google.com/apis/api/speech.googleapis.com/overview
- place the credientials json at this path `./secrets/google_cloud_credintials.json`
- never commit this file!