From 0912e5ca1716a6d2e516638b8ae0334c58714b87 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Sun, 1 Aug 2021 10:51:08 +0200 Subject: [PATCH] renamed frame_data to raw_audio_date --- jarvis/utils/server_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/utils/server_utils.py b/jarvis/utils/server_utils.py index 0292aae..1ea3a8e 100644 --- a/jarvis/utils/server_utils.py +++ b/jarvis/utils/server_utils.py @@ -10,7 +10,7 @@ from jarvis.utils import config_utils 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" headers = CaseInsensitiveDict() @@ -19,7 +19,7 @@ def send_record_to_server(frame_data): response = requests.post(url_service, headers=headers, - data=frame_data) + data=raw_audio_data) print(response.content)