errorSoundHumanVoice static method
扫码失败的人声 考虑到扫码频率快 如果使用单例audioplayer则必须等待上一次音频播放完成才能播放下一个 导致音频播放节奏跟不上扫码速度 不太符合实际场景 故每次播放都新建一个audioplayer
Implementation
static void errorSoundHumanVoice({bool playErrorSoundDudu = true}) async {
_checkIsInit();
await _scanFailureAudioPlayer.resume();
if (playErrorSoundDudu) {
errorSoundDudu();
}
}