android


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.

Related Links

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

Categories

HOME
shell
grok
dns
depth
echo
opengl-3
nstableheaderview
performancepoint
accessibility
startup
dynatrace
selectize.js
symfony-2.8
dynamic-sql
chargify
identity-management
visual-studio-extensions
easeljs
datastax-enterprise-graph
mobx
anki
git-squash
jett
keras-layer
modalviewcontroller
z-notation
parser-generator
microsoft-metro
congestion-control
drupal-theming
optimizely
ntvs
sonarlint-eclipse
tinymce-3
twilio-click-to-call
spring-data-couchbase
oracleclient
dt
cup
flac
google-photos
bootstrap-tags-input
javafx-css
cvxpy
google-cloud-console
macaulay2
avspeechsynthesizer
appscale
freepbx
nservicebus5
kango-framework
deep
gcloud-ruby
cortex-m
beanstalk
false-sharing
phpgrid
ascii-art
microsoft-reporting
ess
poppler
mirror
ms-access-2000
user-permissions
public-html
cross-join
cocos3d
lambda-architecture
visual-studio-express
ie8-compatibility-mode
c++builder-xe5
facebook-timeline
listitem
koken
wiimote
urlrewriter
luabind
mysql-error-1205
jqote
codebase
commerceserver2007
globals
wysiwym
entitykey
technical-debt
java1.4

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App