starting to integrate requests

This commit is contained in:
talksik
2023-04-28 15:46:28 -07:00
parent 583740df0f
commit 87aa7b279e
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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)
+5
View File
@@ -0,0 +1,5 @@
certifi==2022.12.7
charset-normalizer==3.1.0
idna==3.4
requests==2.29.0
urllib3==1.26.15