mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-25 04:50:01 -06:00
fix: fix audio encoding
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user