mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Save folder in dec-talk folder
This commit is contained in:
@@ -69,9 +69,9 @@ module.exports = class DECTalkCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async tts(id, input) {
|
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);
|
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}`, {
|
await execAsync(`xvfb-run wine say.exe -pre "[:phoneme on]" -w ${outputFile} < ${inputFile}`, {
|
||||||
cwd: path.join(__dirname, '..', '..', 'dectalk'),
|
cwd: path.join(__dirname, '..', '..', 'dectalk'),
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
|
|||||||
Reference in New Issue
Block a user