From 87aa7b279e871887036caa064c8e3cb0597a853b Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 28 Apr 2023 15:46:28 -0700 Subject: [PATCH] starting to integrate requests --- stt/app.py | 5 +++++ stt/requirements.txt | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 stt/requirements.txt 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