From eaf0d8fdb16b4db959db0649df96b4343164e80c Mon Sep 17 00:00:00 2001 From: karen-hedges <133129444+karen-hedges@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:03:05 +0000 Subject: [PATCH] DMP-4385 Filter out 0 second audios from ATS processing Added tests for ATS filtering to filter out audio files that have less than a second apart --- .../darts/audio/component/impl/OutboundFileProcessorImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/uk/gov/hmcts/darts/audio/component/impl/OutboundFileProcessorImpl.java b/src/main/java/uk/gov/hmcts/darts/audio/component/impl/OutboundFileProcessorImpl.java index c9d69872b3..a50fd3aeb2 100644 --- a/src/main/java/uk/gov/hmcts/darts/audio/component/impl/OutboundFileProcessorImpl.java +++ b/src/main/java/uk/gov/hmcts/darts/audio/component/impl/OutboundFileProcessorImpl.java @@ -103,7 +103,7 @@ public List processAudioForPlaybacks(Map media // Used for logging only String audioFilenames = null; if (log.isDebugEnabled()) { - audioFileInfos.stream().map(AudioFileInfo::getMediaFile).collect(Collectors.joining(", ")); + audioFilenames = audioFileInfos.stream().map(AudioFileInfo::getMediaFile).collect(Collectors.joining(", ")); } List concatenationsList = new ArrayList<>();