Skip to content

Keyword Detection/Spotting with pocketsphinx speech recognition engine, always listening with a trigger command: "jarvis"

License

Notifications You must be signed in to change notification settings

itechdivyanshu/Keyword-Detection

Repository files navigation

Python Always Listening Keyword Detection

This project provides example code for device that can trigger off of a keyword that is always listening using Python. This can be used for to augment any project that requires the user to initiate any action. As an example, the phrase "Jarvis" can trigger a call to the SpeechRecognition library, where the users next sentence can be captured and parsed.

Requirements

  • Python 3.4+

     sudo apt-get install python3-pyaudio
     sudo apt-get install python3 python3-all-dev python3-pip build-essential swig git libpulse-dev libasound2-dev
     pip3 install pocketsphinx
  • Microphone

Using CMU Sphinx

The code in this repository is based on an example in the pocketsphinx GitHub repository.

pocketsphinx/swig/python/test/kws_test.py

Cross-Platform

This code has only been tested on Windows. The final goal is for this project to work out of the box on a Raspberry Pi and on Windows.

Bugs

If you run into any bugs, please create an issue on GitHub. Don't hesitate to submit bugs for the README as well! I can't promise that I will get to it quickly, but I will do my best to keep this project as bug free as possible.

License

MIT - See LICENSE

Change Log

  • Version 0.1 - Initial commit

Contributing

If you're new to contributing to Open Source on Github, this guide can help you get started. We're a warm and welcoming community of open source contributors. Please join. All types of contribution are welcome.

This repository is just a small subset of work put together by a much larger pool of voluntary efforts contributed by generous people all around the world. Reach out to us through itechindrustries@gmail.com

About

Keyword Detection/Spotting with pocketsphinx speech recognition engine, always listening with a trigger command: "jarvis"

Topics

Resources

License

Stars

Watchers

Forks

Languages