mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Add phoneme on to dectalk
This commit is contained in:
@@ -72,7 +72,7 @@ module.exports = class DECTalkCommand extends Command {
|
|||||||
const inputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.txt`);
|
const inputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.txt`);
|
||||||
await writeFile(inputFile, input);
|
await writeFile(inputFile, input);
|
||||||
const outputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.wav`);
|
const outputFile = path.join(__dirname, '..', '..', 'tmp', `${id}.wav`);
|
||||||
await execAsync(`xvfb-run wine say.exe -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