DSP (Digital Sound Processing) with Android Media Player
I have an app which plays music (mp3) from a server, created playlists etc. The problem is that the sound/volume/db of some songs is higher or lower than others... Thus i am looking into a way to implement a DSP (Digital Sound Processing) into my app while playing music. I need a Sound Compressor which lowers the db output if this goes beyond a threshold or increases the db output if it is under some threshold. Does anyone have an idea how this could be done??? I found some DSP app on Google Play so it is possible but how to implement it? I found a possible solution called "Automatic Gain Control" which should actually do this but as i read it, it is meant for the INPUT sound while recording and not OUTPUT as with playing a song from server! Any ideas, suggestions, examples? Thanks
There is a built-in LoudnessEnhancer effect starting from Android KitKat. It will compress sounds that otherwise would clip with the specified gain setting. See the docs, and here is an example. Probably, the solution you are looking for is called "Replay Gain", and it uses tags embedded into mp3 files for matching the resulting sound levels. So your player can lower the gain for tracks that are louder than needed, and increase gain for silent tracks. And with LoudnessEnhancer in place, you should not be experiencing clipping. Thus you don't actually need to implement any DSP code yourself.
JSON in Android [duplicate]
List image with two columns android
Intent to play playlist in youtube app
Android selector color
android opengl es: Can't create handler inside thread that has not called Looper.prepare()
How to move a shape created in onDraw method to center on screen?
Ninepatch inconsistent for arrow button
Buttons not working with Surface view
OnCreate does not restore the bundle (null) in honeycomb
To display Soap Response (Array) in Android
How to change Android proximity sensor sensitivity?
What kind of Button can toggle/change states in Android?
How do you translate your Android app? [closed]
How do i pass Uri of image clicked in custom gallery to another activity?
Getting onActivityResult in Audio Intent
Android GPS false location retirieved