语音识别改为百度

This commit is contained in:
joylink_zhangsai 2022-05-27 11:25:07 +08:00
parent 8a52efacdf
commit e39dd0a539
3 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ public class VoiceTrainingService implements IVoiceTrainingService {
private CompetitionErrorSetDAO competitionErrorSetDAO;
@Autowired
@Qualifier("XunFeiVoiceService")
@Qualifier("baiDuVoiceService")
private IVoiceService iVoiceService;
@Autowired

View File

@ -35,7 +35,7 @@ public class ConversationManagerService {
private GroupSimulationCache groupSimulationCache;
@Autowired
@Qualifier("XunFeiVoiceService")
@Qualifier("baiDuVoiceService")
private IVoiceService iVoiceService;
@Autowired

View File

@ -37,12 +37,12 @@ public abstract class ControllableVrDevice<C> extends VirtualRealityDevice {
}
public boolean control(C command) {
if (this.command != null && this.command.equals(command)) { //相同指令
if (this.command == null)
return false;
}
if (!this.checkConditionBeforeControl(command)) { //是否符合条件
if (this.command.equals(command)) //相同指令
return false;
if (!this.checkConditionBeforeControl(command)) //是否符合条件
return false;
}
this.command = command;
this.remain = this.turnTime;
return true;