mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -06:00
Merge pull request #1425 from edisonmartinsmkt/develop
fix(audio): ensure full WhatsApp compatibility for audio conversion
This commit is contained in:
commit
d2f1985913
@ -3001,7 +3001,29 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
.noVideo()
|
.noVideo()
|
||||||
.audioCodec('libopus')
|
.audioCodec('libopus')
|
||||||
.addOutputOptions('-avoid_negative_ts make_zero')
|
.addOutputOptions('-avoid_negative_ts make_zero')
|
||||||
|
.audioBitrate('128k')
|
||||||
|
.audioFrequency(48000)
|
||||||
.audioChannels(1)
|
.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 })
|
.pipe(outputAudioStream, { end: true })
|
||||||
.on('error', function (error) {
|
.on('error', function (error) {
|
||||||
console.log('error', error);
|
console.log('error', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user