feat(audio): support LPCM and fix waveform distortion by edisonmartinsmkt · Pull Request #1574 · EvolutionAPI/evolution-api · GitHub
Skip to content

feat(audio): support LPCM and fix waveform distortion#1574

Merged
DavidsonGomes merged 1 commit intoEvolutionAPI:developfrom
edisonmartinsmkt:develop
Jun 8, 2025
Merged

feat(audio): support LPCM and fix waveform distortion#1574
DavidsonGomes merged 1 commit intoEvolutionAPI:developfrom
edisonmartinsmkt:develop

Conversation

@edisonmartinsmkt
Copy link
Copy Markdown
Contributor

@edisonmartinsmkt edisonmartinsmkt commented Jun 8, 2025

This update adds automatic detection and conversion of LPCM (Linear PCM) audio files — a format commonly generated by Google Text-to-Speech — ensuring proper sample rate and compatibility.

✅ The following formats were tested and confirmed working:
m4a, mp3, mp4, wav, opus, oga, ogg, and lpcm.

🧪 During testing, the resulting audio files consistently displayed waveform previews (waves) on WhatsApp for Android, iOS, and Web.

Summary by Sourcery

Support automatic detection and conversion of LPCM audio streams in the WhatsApp integration to fix distorted waveforms and ensure cross-platform compatibility.

New Features:

  • Automatically detect LPCM audio URLs and apply raw PCM ffmpeg settings for conversion

Bug Fixes:

  • Fix waveform distortion in WhatsApp audio previews by correctly handling LPCM streams

Build:

  • Add 'audio-decode' dependency to enable LPCM processing

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jun 8, 2025

@DavidsonGomes DavidsonGomes merged commit 9e1f9cb into EvolutionAPI:develop Jun 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants