main
Kevin López 2021-01-13 00:32:59 -03:00
parent d15845a793
commit 325c5e9751
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ app.post('/get', (req, res, next) => {
if (err) throw err;
fs.writeFile(path, req.body.sourceText, {encoding: "utf-8"}, ()=> {
exec(`${eSpeakExecutable} -v"${req.body.selectedLanguage}" -q -f "${path}" --ipa"`, ((error, stdout, stderr) => {
exec(`${eSpeakExecutable} -v"${req.body.selectedLanguage}" -q -f "${path}" --ipa`, ((error, stdout, stderr) => {
res.json({out: stdout.trim(), stderr})
}))
})