feat: remove CN_043 voice bypass for kr and en

This commit is contained in:
Haoyu Xu
2025-11-15 21:22:24 +08:00
parent 14509596a1
commit 97da1052f5
2 changed files with 2 additions and 23 deletions

View File

@@ -156,21 +156,8 @@ export const build = async (namesToBuild: string[]) => {
)
const voiceFileList = file.readdirSync(voiceSubFolder)
voiceList[voiceSubFolderMapping.lookup_region].map((item) => {
// an exception for detecting file existence
if (
item.endsWith('043') &&
voiceFileList.includes(`${item}.ogg`) &&
(voiceSubFolderMapping.name === 'kr' ||
voiceSubFolderMapping.name === 'en')
) {
console.log(
`Voice folder ${voiceSubFolderMapping.name} for ${name} has ${item}.ogg`
)
}
if (
!voiceFileList.includes(`${item}.ogg`) &&
// make an exception
!item.endsWith('043')
!voiceFileList.includes(`${item}.ogg`)
) {
err.push(
`Voice folder ${voiceSubFolderMapping.name} for ${name} is missing ${item}.ogg`