Save folder in dec-talk folder

This commit is contained in:
Dragon Fire
2021-04-04 11:36:42 -04:00
parent 06c838ab85
commit 5776cadd14
+2 -2
View File
@@ -69,9 +69,9 @@ module.exports = class DECTalkCommand extends Command {
}
async tts(id, input) {
const inputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.txt`);
const inputFile = path.join(__dirname, '..', '..', 'tmp', 'dec-talk', `${id}.txt`);
await writeFile(inputFile, input);
const outputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.wav`);
const outputFile = path.join(__dirname, '..', '..', 'tmp', 'dec-talk', `${id}.wav`);
await execAsync(`xvfb-run wine say.exe -pre "[:phoneme on]" -w ${outputFile} < ${inputFile}`, {
cwd: path.join(__dirname, '..', '..', 'dectalk'),
timeout: 30000