Specific MP3 plays over headphones only


Question

I am out of ideas. The following MP3 does not play correctly on many Android-devices:
https://www.heimatmuseum-zinnowitz.de/app/download/12553824899/Kino%20Audiodatei%20Deutsch.mp3?t=1590484494



It contains a German female voice. But on several devices, it does only play over the headphones. If I use the normal speaker, I do only get some noise.



I tried many different things:




  • Used different devices (works fine on a Samsung-tablet (Android 8.1), but does only work over headphones on my Huawei P20 Pro (Android 9) and another older phone (Android 7)).

  • On Windows, it works just fine.

  • I converted the file a different format (OGG and WAV)

  • I changed the sampling-rate from 48.0 kHz to 44.1 kHz

  • I switched between constant and variable bitrate

  • I tried the default-player and a different app (MusicFolderPlayer)

  • I used different converters (Audacity and several online-converters)



The problem is always the same: I hear everything using headphones, I do only get noise with the speaker.
How can I get this to work?



Needless to say that all devices used for testing are working fine with other files.


Answer

This is due to the audio having stereo (left and right) channels being out-of-phase.



To put it very simply, when the audio waveform on the left channel is out-of-phase with the right channel, the resulting mono mix (basically (left+right)/2) may reduce the volume or even mute it (further reading: destructive interference & dead spot).



When playing with headphones or stereo speakers, there should be no issue hearing the audio because each channel is played through each speaker respectively. However, on some Android devices (e.g. Nexus 5) that only supports mono playback, the issue appears due to the previously mentioned phenomenon.



Depending on the model, there might be a true stereo (left-right channel separation) mod that can be applied/flashed. E.g. a detailed post by user "chdloc" on XDA Forum to apply true stereo on Nexus 5.



The alternative workaround is to fix the audio source by inverting the waveform on one of the channels. Example using Audacity (reference: https://forum.audacityteam.org/viewtopic.php?t=71779):




  1. Open the audio file

  2. (Optional) Select the track, then open the menu bar: Tracks - Mix - Mix Stereo Down to Mono to see the effect of destructive interference, then undo the operation to continue to the next step

  3. Select the track

  4. Open menu (press Shift + M, or click the dropdown menu above the "Mute" and "Solo" button)

  5. Select "Split Stereo Track"

  6. Select one of the channels (either left or right)

  7. Select all region of the track (double-clicking the waveform, or from the menu bar: Select - Region - Track Start to End)

  8. On the menu bar, select Effect - Invert

  9. Open menu on the first track (follow step 4)

  10. Select "Make Stereo Track"

  11. (Optional) Select the track again, then open the menu bar: Tracks - Mix - Mix Stereo Down to Mono to see if it is still affected by the destructive interference, then undo the operation to continue to the next step

  12. Export the resulting audio from File - Export - ...


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes