tests for voice
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -1m32s

This commit is contained in:
2025-08-24 15:11:11 -05:00
parent 7f45387dac
commit 6ab158cee0
7 changed files with 1655 additions and 8 deletions

View File

@@ -165,9 +165,9 @@ function voiceLines(voice: Voice, num: number): string[] {
tokens.push(LINES.POINT);
tokens.push(...digitByDigit(parts[1]));
}
return tokens.map(l => path.join(voice.directory, `${l}.${voice.extension}`));
return tokens.map(l => path.join(voice.directory, `${l}${voice.extension.length > 0 && voice.extension.charAt(0) !== '.' ? '.' : ''}${voice.extension}`));
}
export default voiceLines;
export { voiceLines };
export { voiceLines, LINES };
export type { Voice, Voices };