From 217f6d881c0ebf1f0a3e1fee7cc91acf22101e45 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Sun, 1 Aug 2021 11:47:51 +0200 Subject: [PATCH] call intent_manager.recognise method with client ip and port --- jarvis/utils/flask_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jarvis/utils/flask_utils.py b/jarvis/utils/flask_utils.py index 3ac66a7..5e69c99 100644 --- a/jarvis/utils/flask_utils.py +++ b/jarvis/utils/flask_utils.py @@ -31,7 +31,8 @@ def process_audio_request(): result_stt = r.recognize_google(audio, language=languages_utils.get_language_only_country()) - return jsonify(intent_manager.recognise(sentence=result_stt)) + return jsonify( + intent_manager.recognise(result_stt, request.headers.get('Client-Ip'), request.headers.get('Client-Port'))) def get_data_in_request(flask_request):