starting to integrate requests
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
# this program will record audio while the button is pressed
|
# this program will record audio while the button is pressed
|
||||||
# and then will transcribe it by hitting our api
|
# 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 RPi.GPIO as GPIO
|
||||||
|
|
||||||
import audio.audio as audio
|
import audio.audio as audio
|
||||||
import simple_recorder.apa102 as apa102
|
import simple_recorder.apa102 as apa102
|
||||||
|
|
||||||
|
API_URL = "http://192.168.50.159:5001/transcribe"
|
||||||
|
|
||||||
BUTTON = 17
|
BUTTON = 17
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BCM)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
certifi==2022.12.7
|
||||||
|
charset-normalizer==3.1.0
|
||||||
|
idna==3.4
|
||||||
|
requests==2.29.0
|
||||||
|
urllib3==1.26.15
|
||||||
Reference in New Issue
Block a user