call intent_manager.recognise method with client ip and port

This commit is contained in:
Mathieu B 2021-08-01 11:47:51 +02:00
parent b9c1cfae9a
commit 217f6d881c

View File

@ -31,7 +31,8 @@ def process_audio_request():
result_stt = r.recognize_google(audio, language=languages_utils.get_language_only_country()) 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): def get_data_in_request(flask_request):