diff --git a/src/VoiceInterface/StreamDispatcher.ts b/src/VoiceInterface/StreamDispatcher.ts index 8f72da7..644f20d 100644 --- a/src/VoiceInterface/StreamDispatcher.ts +++ b/src/VoiceInterface/StreamDispatcher.ts @@ -193,7 +193,11 @@ class StreamDispatcher extends EventEmitter { } } - this.audioPlayer.play(resource); + try { + this.audioPlayer.play(resource); + } catch(e) { + this.emit("error", e as AudioPlayerError); + } return this; }