[Bugfix][Multimodal] Normalize single-channel audio to 1D (#56691)

Signed-off-by: Ylean <61880605+Woolgathererer@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Ylean
2026-10-04 06:11:41 +00:00
committed by GitHub
co-authored by Codex Cyrus Leung
parent 18f8f96025
commit 0872ddf4b9
2 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ def normalize_audio(
# No reduction needed if already at target
if num_channels == spec.target_channels:
return audio
return audio[0] if num_channels == 1 else audio
# Cannot expand channels
if num_channels < spec.target_channels: