[修改]语音识别校验接口要求匹配率提高到70%
CI / Docker-Build (push) Failing after 1m49s Details

This commit is contained in:
thesai 2024-06-07 18:10:20 +08:00
parent dbe197eba6
commit 495681db5d
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class VoiceTrainingService implements IVoiceTrainingService {
byte[] monoData = convertToMonoChannel(fileData); byte[] monoData = convertToMonoChannel(fileData);
VoiceRecognitionResult voiceRecognitionResult = voiceRecognition( VoiceRecognitionResult voiceRecognitionResult = voiceRecognition(
new VoiceRecognitionVO(monoData, contentType)); new VoiceRecognitionVO(monoData, contentType));
boolean match = StrUtils.isMatch(text, voiceRecognitionResult.getResult(), 20); boolean match = StrUtils.isMatch(text, voiceRecognitionResult.getResult(), 70);
return new VoiceVerifyResultVO(voiceRecognitionResult.getResult(), match); return new VoiceVerifyResultVO(voiceRecognitionResult.getResult(), match);
} }