PixelExperience / android-issues

Issue tracker
98 stars 42 forks source link

Distorted and quiet sound from microphone through voice calls #4019

Closed z411 closed 1 year ago

z411 commented 1 year ago

Build date

PixelExperience_spes-13.0-20221115-1425-OFFICIAL

Expected Behavior

Microphone should sound clear through voice calls in some apps like Telegram or Discord, like this:

Discord call from MIUI stock: https://u.omaera.org/soundtest_discord_miui.ogg Discord call from Custom ROM 1: https://u.omaera.org/soundtest_discord_crdroid.ogg Discord call from Custom ROM 2: https://u.omaera.org/soundtest_discord_los.ogg

Note that all samples have any noise suppression or cancellation disabled and volume at 100%.

Current Behavior

The microphone sounds distorted and quiet, really bad sound. It affects both PE and PE+.

Discord call from PE/PE+: https://u.omaera.org/soundtest_discord_pe.ogg

Note that the sample has any noise suppression or cancellation disabled and volume at 100%.

Possible Solution

There's something wrong with the OS handling of the audio driver in specific popular voice chat apps. It doesn't happen with Mumla or calls, but with some popular voice chat applications like Telegram and Discord.

Steps to Reproduce

  1. Call someone from any voice chat application like Telegram or Discord
  2. Ask the other person if they can hear you well and maybe record your voice

/device spes /version thirteen

pixelexperiencebot commented 1 year ago

Issue created! You can close at any time by commenting /close

z411 commented 1 year ago

Note: Probably related to #2903

z411 commented 1 year ago

I tried updating firmware and the problem persists. To add more information I'll post the logcat:

logcat.txt

Also audio in Discord only seems to get to ~50% and it clips (distorts) there:

discord_vol This also affects Telegram, but not phone calls I think.

EDIT: PE 12 20221120-0504 also affected. EDIT2: It seems it picks up only the top microphone (instead of both like other apps) and the audio sounds heavily compressed.
EDIT3: AOSPA Sapphire 20220729 is also affected. EDIT4: AOSPA Topaz 20220909 is also affected. It only affects Discord calls, Element calls, Telegram calls, but not voice messages; it apparently takes the audio from a different sink.

effektov commented 1 year ago

I have the same problem (polaris), only with calls through a telecom operator. Problem since summer 2022

z411 commented 1 year ago

Issue fixed in January release. Thank you Chris.

z411 commented 1 year ago

/close

pixelexperiencebot commented 1 year ago

Issue closed by user request.