renamed frame_data to raw_audio_date
This commit is contained in:
parent
88f0b4119c
commit
0912e5ca17
@ -10,7 +10,7 @@ from jarvis.utils import config_utils
|
|||||||
server_ip = None
|
server_ip = None
|
||||||
|
|
||||||
|
|
||||||
def send_record_to_server(frame_data):
|
def send_record_to_server(raw_audio_data):
|
||||||
url_service = "http://" + str(get_server_ip()) + ":" + str(get_server_port()) + "/process_audio_request"
|
url_service = "http://" + str(get_server_ip()) + ":" + str(get_server_port()) + "/process_audio_request"
|
||||||
|
|
||||||
headers = CaseInsensitiveDict()
|
headers = CaseInsensitiveDict()
|
||||||
@ -19,7 +19,7 @@ def send_record_to_server(frame_data):
|
|||||||
|
|
||||||
response = requests.post(url_service,
|
response = requests.post(url_service,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
data=frame_data)
|
data=raw_audio_data)
|
||||||
|
|
||||||
print(response.content)
|
print(response.content)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user