|
|
@ -17,6 +17,8 @@ import com.ouxuan.oxface.utils.LogManager; |
|
|
|
import com.ouxuan.oxface.utils.VenueSceneUtils; |
|
|
|
import com.ouxuan.oxface.device.GateABController; |
|
|
|
import com.ouxuan.oxface.device.OxUDP; |
|
|
|
import com.ouxuan.oxface.device.voice.VoicePlayerManager; |
|
|
|
import com.ouxuan.oxface.device.voice.VoiceType; |
|
|
|
import java.util.concurrent.ScheduledExecutorService; |
|
|
|
import java.util.concurrent.Executors; |
|
|
|
import java.util.concurrent.ScheduledFuture; |
|
|
@ -466,6 +468,19 @@ public class GateUnavailableDialog { |
|
|
|
|
|
|
|
isAGateListening = true; |
|
|
|
|
|
|
|
// 播放"请1人进场进行核销"语音 |
|
|
|
try { |
|
|
|
VoicePlayerManager voicePlayerManager = VoicePlayerManager.getInstance(); |
|
|
|
if (voicePlayerManager != null) { |
|
|
|
voicePlayerManager.playVoice(VoiceType.ONE_PERSON_ENTRY); |
|
|
|
LogManager.logInfo(TAG, "播放'请1人进场进行核销'语音提示"); |
|
|
|
} else { |
|
|
|
LogManager.logWarning(TAG, "语音播放管理器未初始化,跳过语音播放"); |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
LogManager.logError(TAG, "播放语音时发生异常", e); |
|
|
|
} |
|
|
|
|
|
|
|
// 创建A门状态监听器 |
|
|
|
aGateStateListener = new AGateStateListener() { |
|
|
|
@Override |
|
|
|