diff --git a/lib/js/src/manager/screen/utils/_PresentAlertOperation.js b/lib/js/src/manager/screen/utils/_PresentAlertOperation.js index cfa671bc..0a7fd476 100644 --- a/lib/js/src/manager/screen/utils/_PresentAlertOperation.js +++ b/lib/js/src/manager/screen/utils/_PresentAlertOperation.js @@ -338,13 +338,11 @@ class _PresentAlertOperation extends _Task { const alertAudioData = alertView.getAudio(); const ttsChunks = []; - if (!this.supportsAlertAudioFile()) { - for (const chunk of alertAudioData.getAudioData()) { - if (chunk.getType() === SpeechCapabilities.FILE && !this.supportsAlertAudioFile()) { - continue; - } - ttsChunks.push(chunk); + for (const chunk of alertAudioData.getAudioData()) { + if (chunk.getType() === SpeechCapabilities.FILE && !this.supportsAlertAudioFile()) { + continue; } + ttsChunks.push(chunk); } return ttsChunks.length > 0 ? ttsChunks : null;