mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 15:14:49 -06:00
fix(audio): ensure full WhatsApp compatibility for audio conversion (libopus, 48kHz, mono)
This commit is contained in:
parent
ccbd866e42
commit
aaa103a842
@ -3001,7 +3001,20 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
.noVideo()
|
||||
.audioCodec('libopus')
|
||||
.addOutputOptions('-avoid_negative_ts make_zero')
|
||||
.audioBitrate('128k')
|
||||
.audioFrequency(48000)
|
||||
.audioChannels(1)
|
||||
.outputOptions([
|
||||
'-write_xing', '0',
|
||||
'-compression_level', '10',
|
||||
'-application', 'voip',
|
||||
'-fflags', '+bitexact',
|
||||
'-flags', '+bitexact',
|
||||
'-id3v2_version', '0',
|
||||
'-map_metadata', '-1',
|
||||
'-map_chapters', '-1',
|
||||
'-write_bext', '0'
|
||||
])
|
||||
.pipe(outputAudioStream, { end: true })
|
||||
.on('error', function (error) {
|
||||
console.log('error', error);
|
||||
|
Loading…
Reference in New Issue
Block a user