No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2018-03-23 15:16:09 +00:00
audio Working audio example 2018-03-23 11:29:22 +00:00
dtmfa Updated 2018-03-23 14:05:00 +00:00
DTMFAKeyPress.workflow/Contents MacOS Workflow 2018-03-23 11:58:48 +00:00
tests Updated tsets 2018-03-23 14:47:49 +00:00
.gitignore Updated 2018-03-23 09:53:39 +00:00
.travis.yml Added build deps 2018-03-23 15:16:09 +00:00
py-key-press.py Updated 2018-03-23 14:05:00 +00:00
README.md Updated 2018-03-23 09:45:40 +00:00
requirements.txt Lots of cleaning up[ 2018-03-23 10:40:56 +00:00

Introduction

This is the python repo that listens to DTMF tones and prints them out.

Setup

Install portaudio brew install portaudio

Install virtualenv pip install virtualenv Setup your virtualenv for this project: virtualenv --python python2.7 venv/ Activate it source venv/bin/activate Install requirements: pip install -r requirements.txt

Testing

Run the DTMF parsing tests (run against the file audio/output.wav) python -m pytest tests/

If you add your files to audio/ with the filename '${expectedcode}.wav' - then the tests will pick them up.

Run the app

python dtmfa/app.py