This commit is contained in:
parent
dbe197eba6
commit
495681db5d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user