diff --git a/py/api.py b/py/api.py index 1c4e089..404f41d 100644 --- a/py/api.py +++ b/py/api.py @@ -100,7 +100,7 @@ class API: @self.app.route('/interstellar_ai/api/voice_recognition', methods=['POST']) def voice_recognition(): recognition_type = request.args.get('type') - audio = request.files['audio'] + audio = request.args.get('audio') option = request.args.get('option') if recognition_type == "basic": return jsonify({'status': 200, 'response': self.voice.basic_recognition(audio, option)}) diff --git a/py/requirements.txt b/py/requirements.txt index 47523c5..8c6a016 100644 --- a/py/requirements.txt +++ b/py/requirements.txt @@ -12,4 +12,5 @@ google-generativeai python-weather pycouchdb pyttsx3 -pip-licenses \ No newline at end of file +pip-licenses +openai-whisper \ No newline at end of file