Files
BitLit_test1/README.md
T
2018-12-29 14:07:00 +08:00

38 lines
1.4 KiB
Markdown

# Run
To run the program once installed
>> python BitLit_decoder1.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..
# Setup
- clone the repositry
Requirements:
- Python2, pip
- for mac
- Brew (mac: sudo apt-get install linuxbrew-wrapper)
- PIP (sudo apt-get install python-pip)
- PortAudio (mac: brew install portaudio)
- for ubuntu:
- PortAudio (sudo apt install portaudio19-dev)
- python package `pip install -r requirements.txt`
- snowboy v1.1.1
- either get
- a precompiled version for you platform and python version here (http://docs.kitt.ai/snowboy/#downloads)
- or compile it yourself by cloning the repo, then going into swig/python and running make
- Copy the resources folder and the compiled files into the snowboy subdirectory.
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`
- never commit this file!