Skip to content

Raspberry Pi software to control the speech recognition, IR sensors and lighting aboard the model USS Enterprise NCC-1701-A

License

Notifications You must be signed in to change notification settings

EthanHaid/Enterprise-Computer

Repository files navigation

USS Enterprise

🌐 Enterprise: Shields up! 🌐
Raspberry Pi software to control the speech recognition and lighting aboard the model USS Enterprise NCC-1701-A
Powered by SnowBoy offline hotword recognition

Raspberry Pi Installation

Clone the repository folder, and run:

sudo apt install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev flac build-essential swig libpulse-dev python-pyaudio python3-pyaudio sox libatlas-base-dev
pip3 install -r requirements.txt
python3 enterprise.py

To run on startup, append to /etc/rc.local

python3 /home/pi/Enterprise-Computer/src/enterprise.py

To stop the process, use ctrl-c or run

sudo kill -9 $(ps -aux | grep "enterprise.py" | awk '{print $2; exit}')

To enable IR detection, follow this guide. The enterprise_controller.lircd.conf file will need to be modified and copied to /etc/lirc/lircd.conf.d.

You may need to update your ~/.asoundrc file to help portaudio find your mic, as documented here

Hotword Models 🔥

SnowBoy hotword recognition works using pre-trained models. I have trained them on my voice, but consider recording yourself and downloading the models at the following links for more consistent results.

About

Raspberry Pi software to control the speech recognition, IR sensors and lighting aboard the model USS Enterprise NCC-1701-A

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages