fix sending narrated audio on whatsapp android and ios

This commit is contained in:
Davidson Gomes
2023-06-13 11:41:17 -03:00
parent 2847a95c57
commit 9201bc1022
3 changed files with 2 additions and 1 deletions

View File

@@ -1158,7 +1158,7 @@ export class WAStartupService {
return new Promise((resolve, reject) => {
exec(
`${ffmpegPath.path} -i ${tempAudioPath} -vn -c:a libopus -b:a 128k -ar 48000 ${outputAudio} -y`,
`${ffmpegPath.path} -i ${tempAudioPath} -c:a libopus ${outputAudio} -y`,
(error, _stdout, _stderr) => {
fs.unlinkSync(tempAudioPath);
if (error) reject(error);