mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-21 03:27:22 -06:00
fix: fix audio encoding
This commit is contained in:
parent
b6c56551bc
commit
c45538684d
@ -2100,7 +2100,7 @@ export class BaileysStartupService extends WAStartupService {
|
|||||||
content: {
|
content: {
|
||||||
audio: Buffer.from(audio, 'base64'),
|
audio: Buffer.from(audio, 'base64'),
|
||||||
ptt: true,
|
ptt: true,
|
||||||
mimetype: 'audio/ogg; codecs=opus',
|
mimetype: 'audio/mp4',
|
||||||
},
|
},
|
||||||
option: {
|
option: {
|
||||||
statusJidList: status.statusJidList,
|
statusJidList: status.statusJidList,
|
||||||
@ -2451,7 +2451,7 @@ export class BaileysStartupService extends WAStartupService {
|
|||||||
{
|
{
|
||||||
audio: Buffer.from(audio, 'base64'),
|
audio: Buffer.from(audio, 'base64'),
|
||||||
ptt: true,
|
ptt: true,
|
||||||
mimetype: 'audio/ogg; codecs=opus',
|
mimetype: 'audio/mp4',
|
||||||
},
|
},
|
||||||
{ presence: 'recording', delay: data?.options?.delay },
|
{ presence: 'recording', delay: data?.options?.delay },
|
||||||
isChatwoot,
|
isChatwoot,
|
||||||
|
Loading…
Reference in New Issue
Block a user