2018-12-30 10:54:18 +08:00
2018-12-28 11:25:59 +08:00
2018-12-29 14:07:00 +08:00
2018-12-28 11:25:59 +08:00
2018-12-28 11:25:10 +08:00
2018-12-29 14:46:15 +08:00
2018-12-29 15:44:59 +08:00
2018-12-30 10:54:18 +08:00
2018-12-22 19:58:36 +08:00
2018-12-29 14:55:04 +08:00
2018-12-30 10:54:18 +08:00

Run

To run the program once installed

python BitLit_decoder.py HiBitLit.pmdl

This will start snowboy listening for the phrase "Hi BitLit". Then it will ask for seed phrases for a poem.

Setup

  • clone the repositry

Requirements:

  • Python3, 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 python3-portaudio)
  • AVbin, any version (for pyglet) from http://avbin.github.io/AVbin/Download.html
  • python packages 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 (sudo apt install python3-all-dev)
    • Copy the resources folder and the compiled files into the snowboy subdirectory.

API Keys:

Tree

When setup the layout should look something like

├── BitLit_decoder.py ├── BitLit_main.py ├── BitLit_main.pyc ├── BitLit_model_param.py ├── BitLit_model_param.pyc ├── HiBitLit.pmdl ├── README.md ├── logger.py ├── logger.pyc ├── outputs ├── poem_generator.py ├── poem_generator.pyc ├── requirements.txt ├── secrets │ ├── google_cloud_credentials.json │ └── google_cloud_credentials.template.json ├── snowboy │ ├── _snowboydetect.so │ ├── resources │ │ ├── alexa.umdl │ │ ├── alexa_02092017.umdl │ │ ├── common.res │ │ ├── ding.wav │ │ ├── dong.wav │ │ └── snowboy.umdl │ ├── snowboydetect.py │ └── snowboydetect.pyc ├── snowboydecoder.py ├── snowboydecoder.pyc └── weights ├── model_poems.npy └── model_rhymes.npy

S
Description
Voice_input to voice output poetbot
Readme 50 MiB
Languages
Python 100%