forked from React-Group/interstellar_ai
		
	Merge branch 'main' of interstellardevelopment.org:YasinOnm08/interstellar_ai
This commit is contained in:
		
						commit
						077b748849
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -100,7 +100,7 @@ class API: | ||||||
|         @self.app.route('/interstellar_ai/api/voice_recognition', methods=['POST']) |         @self.app.route('/interstellar_ai/api/voice_recognition', methods=['POST']) | ||||||
|         def voice_recognition(): |         def voice_recognition(): | ||||||
|             recognition_type = request.args.get('type') |             recognition_type = request.args.get('type') | ||||||
|             audio = request.files['audio'] |             audio = request.args.get('audio') | ||||||
|             option = request.args.get('option') |             option = request.args.get('option') | ||||||
|             if recognition_type == "basic": |             if recognition_type == "basic": | ||||||
|                 return jsonify({'status': 200, 'response': self.voice.basic_recognition(audio, option)}) |                 return jsonify({'status': 200, 'response': self.voice.basic_recognition(audio, option)}) | ||||||
|  |  | ||||||
|  | @ -12,4 +12,5 @@ google-generativeai | ||||||
| python-weather | python-weather | ||||||
| pycouchdb | pycouchdb | ||||||
| pyttsx3 | pyttsx3 | ||||||
| pip-licenses | pip-licenses | ||||||
|  | openai-whisper | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue