From d5ce1ae7fd444d91e43425e51fa81cc26cc628c4 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 28 Aug 2021 16:13:01 +0200 Subject: [PATCH] forgot to return the error message (see previous commit) --- jarvis/utils/flask_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jarvis/utils/flask_utils.py b/jarvis/utils/flask_utils.py index 1ad2fc2..b06a4d4 100644 --- a/jarvis/utils/flask_utils.py +++ b/jarvis/utils/flask_utils.py @@ -37,7 +37,9 @@ def process_audio_request(): intent_manager.recognise(result_stt, request.headers.get('Client-Ip'), request.headers.get('Client-Port'))) except sr.UnknownValueError: - print("[Error] No speech detected in the send audio!") + error_msg = "[Error] No speech detected in the send audio!" + print(error_msg) + return jsonify(error_msg) def get_data_in_request(flask_request):