Skip to content

Commit 9201bc1

Browse files
committed
fix sending narrated audio on whatsapp android and ios
1 parent 2847a95 commit 9201bc1

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* tweaks in docker-compose to pass variables
2020
* Adjust the route getProfileBusiness to fetchProfileBusiness
2121
* fix error after logout and try to get status or to connect again
22+
* fix sending narrated audio on whatsapp android and ios
2223

2324
# 1.0.9 (2023-06-10)
2425

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ export class WAStartupService {
11581158

11591159
return new Promise((resolve, reject) => {
11601160
exec(
1161-
`${ffmpegPath.path} -i ${tempAudioPath} -vn -c:a libopus -b:a 128k -ar 48000 ${outputAudio} -y`,
1161+
`${ffmpegPath.path} -i ${tempAudioPath} -c:a libopus ${outputAudio} -y`,
11621162
(error, _stdout, _stderr) => {
11631163
fs.unlinkSync(tempAudioPath);
11641164
if (error) reject(error);

temp/audio.opus

-48.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)