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

@ -19,6 +19,7 @@
* tweaks in docker-compose to pass variables
* Adjust the route getProfileBusiness to fetchProfileBusiness
* fix error after logout and try to get status or to connect again
* fix sending narrated audio on whatsapp android and ios
# 1.0.9 (2023-06-10)

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);

Binary file not shown.