diff --git a/raspberrypi/python2.7/acrcloud/recognizer.py b/raspberrypi/python2.7/acrcloud/recognizer.py index 302a551..d840e6d 100644 --- a/raspberrypi/python2.7/acrcloud/recognizer.py +++ b/raspberrypi/python2.7/acrcloud/recognizer.py @@ -171,12 +171,12 @@ def recognize(self, wav_audio_buffer): res = ACRCloudStatusCode.get_result_error(ACRCloudStatusCode.UNKNOW_ERROR_CODE, str(e)) return res - def recognize_by_file(self, file_path, start_seconds=0, rec_length=10, filter_e=0): + def recognize_by_file(self, file_path, start_seconds=0, rec_length=10): res = '' try: query_data = {} if self.recognize_type == ACRCloudRecognizeType.ACR_OPT_REC_AUDIO or self.recognize_type == ACRCloudRecognizeType.ACR_OPT_REC_BOTH: - query_data['sample'] = acrcloud_extr_tool.create_fingerprint_by_file(file_path, start_seconds, rec_length, False, filter_e) + query_data['sample'] = acrcloud_extr_tool.create_fingerprint_by_file(file_path, start_seconds, rec_length, False) if self.recognize_type == ACRCloudRecognizeType.ACR_OPT_REC_HUMMING or self.recognize_type == ACRCloudRecognizeType.ACR_OPT_REC_BOTH: query_data['sample_hum'] = acrcloud_extr_tool.create_humming_fingerprint_by_file(file_path, start_seconds, rec_length)