call intent_manager.recognise method with client ip and port
This commit is contained in:
parent
b9c1cfae9a
commit
217f6d881c
@ -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):
|
||||||
|
Reference in New Issue
Block a user