diff --git a/stt/app.py b/stt/app.py index 3824cbe..4e91a31 100644 --- a/stt/app.py +++ b/stt/app.py @@ -1,11 +1,16 @@ # this program will record audio while the button is pressed # and then will transcribe it by hitting our api +# NOTE: run export PYTHONPATH=$PYTHONPATH:$(pwd) to run this file from the root directory of the project +# so that all different modules can be used + import RPi.GPIO as GPIO import audio.audio as audio import simple_recorder.apa102 as apa102 +API_URL = "http://192.168.50.159:5001/transcribe" + BUTTON = 17 GPIO.setmode(GPIO.BCM) diff --git a/stt/requirements.txt b/stt/requirements.txt new file mode 100644 index 0000000..ba92c3c --- /dev/null +++ b/stt/requirements.txt @@ -0,0 +1,5 @@ +certifi==2022.12.7 +charset-normalizer==3.1.0 +idna==3.4 +requests==2.29.0 +urllib3==1.26.15