diff --git a/Audio/voice/ch-1.wav b/Audio/voice/ch-1.wav index d8988c3..acbb42c 100644 Binary files a/Audio/voice/ch-1.wav and b/Audio/voice/ch-1.wav differ diff --git a/Audio/voice/ch-3.wav b/Audio/voice/ch-3.wav index e0e981a..b5ff378 100644 Binary files a/Audio/voice/ch-3.wav and b/Audio/voice/ch-3.wav differ diff --git a/Audio/voice/ch-4.wav b/Audio/voice/ch-4.wav index 7c7833b..6ee87a7 100644 Binary files a/Audio/voice/ch-4.wav and b/Audio/voice/ch-4.wav differ diff --git a/Audio/voice/ch-5.wav b/Audio/voice/ch-5.wav index 86b4ba3..bb3f08a 100644 Binary files a/Audio/voice/ch-5.wav and b/Audio/voice/ch-5.wav differ diff --git a/Audio/voice/ch-7.wav b/Audio/voice/ch-7.wav index b694fde..b2d006b 100644 Binary files a/Audio/voice/ch-7.wav and b/Audio/voice/ch-7.wav differ diff --git a/Audio/voice/ch-8.wav b/Audio/voice/ch-8.wav index e1b4d77..618a154 100644 Binary files a/Audio/voice/ch-8.wav and b/Audio/voice/ch-8.wav differ diff --git a/CloudServer/server.js b/CloudServer/server.js index bc9936a..50cd8f7 100644 --- a/CloudServer/server.js +++ b/CloudServer/server.js @@ -1235,6 +1235,14 @@ function getOrCreateHlsStreamState(streamName) { return hlsStreams[streamName]; } +function findFileCaseInsensitive(dir, filename) { + if (!fs.existsSync(dir)) return null; + const files = fs.readdirSync(dir); + const lowerFilename = filename.toLowerCase(); + const match = files.find(f => f.toLowerCase() === lowerFilename); + return match ? path.join(dir, match) : null; +} + function resolveSequenceFiles(seq) { ensureSilenceWav(); const files = []; @@ -1245,14 +1253,19 @@ function resolveSequenceFiles(seq) { continue; } - const candidates = [ - path.join(audioStationDir, `${item}.wav`), - path.join(audioLineDir, `${item}.wav`), - path.join(audioVoiceDir, `${item}.wav`), - ...getBeepAudioDirs().map(dir => path.join(dir, `${item}.wav`)) + const dirsToSearch = [ + audioStationDir, + audioLineDir, + audioVoiceDir, + ...getBeepAudioDirs() ]; - const found = candidates.find(p => fs.existsSync(p)); + let found = null; + for (const dir of dirsToSearch) { + found = findFileCaseInsensitive(dir, `${item}.wav`); + if (found) break; + } + if (found) { files.push(found); } else {