语音识别改为百度
This commit is contained in:
parent
8a52efacdf
commit
e39dd0a539
@ -24,7 +24,7 @@ public class VoiceTrainingService implements IVoiceTrainingService {
|
||||
private CompetitionErrorSetDAO competitionErrorSetDAO;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("XunFeiVoiceService")
|
||||
@Qualifier("baiDuVoiceService")
|
||||
private IVoiceService iVoiceService;
|
||||
|
||||
@Autowired
|
||||
|
@ -35,7 +35,7 @@ public class ConversationManagerService {
|
||||
private GroupSimulationCache groupSimulationCache;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("XunFeiVoiceService")
|
||||
@Qualifier("baiDuVoiceService")
|
||||
private IVoiceService iVoiceService;
|
||||
|
||||
@Autowired
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user