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):