Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add sound effects on Android?

I would like to write an App, that picks up sound from the mic, adds effects to it and plays it back in realtime.

If found AudioRecord to pick up sound from the mic and AudioTrack to play it back. In between, I need some library to manipulate the sound, add effects or use some equalizer on it. This maybe achieved with the Java Sound API, but that seems to be missing as I read in this issue report pointed to from this SO question.

My question is: How can I do this on Android? Can you recommand any libraries?

like image 517
Tim Büthe Avatar asked Oct 25 '10 11:10

Tim Büthe


People also ask

How do I add sounds to my android?

Open your Android Studio and create a new project. Create a new folder named "raw" in your Android project's "res" folder and place your audio file inside the "raw" folder. You can see the audio is now successfully added into your Android Studio project by viewing the "raw" subfolder under "res" folder.


1 Answers

Quick google search http://developer.android.com/reference/android/media/SoundPool.html. It seems you can add effects using this class

like image 91
Mojo Risin Avatar answered Sep 29 '22 01:09

Mojo Risin