android-visualizer icon indicating copy to clipboard operation
android-visualizer copied to clipboard

how to visualize sound from microphone?

Open mobilevisuals opened this issue 7 years ago • 11 comments

My apps already visualize music from external and internal music players. I want to add live microphone sync, so my apps also visualize sound from the microphone. How can I implement that? I found no info about this on https://developer.android.com/reference/android/media/audiofx/Visualizer.html

mobilevisuals avatar May 06 '17 08:05 mobilevisuals

Does anyone know how to do this?

mobilevisuals avatar Oct 01 '17 16:10 mobilevisuals

I am really interested in this, too! Did you find a solution?

erksch avatar Nov 13 '19 22:11 erksch

You can do it using AudioRecord probably? See : https://github.com/tyorikan/voice-recording-visualizer

mimoccc avatar Jan 05 '20 18:01 mimoccc

I cloned your project, but I got

ERROR: Could not find property 'bintrayUser' on project ':visualizer'.

How do you mean that I solve it with AudioRecord?

mobilevisuals avatar Jul 12 '20 16:07 mobilevisuals

I found this project, but it only uses amplitude from the AudioRecorder class:

https://stackoverflow.com/questions/14295427/android-audio-recording-with-voice-level-visualization

mobilevisuals avatar Jul 12 '20 16:07 mobilevisuals

The problem is that you do not remove gradle publish stuffs. But project should work if You select right app gradle process (combo right to run button). It is not my project anyway. I just post it as an example of working project.

mimoccc avatar Jul 27 '20 09:07 mimoccc

I tried to follow your instructions, but could not find any "right app gradle process (combo right to run button)" option. Most of the options are greyed out as you can see on my

screenshot

I understand that it is not your project, but I appreciate that you posted it. I have tried to find a solution to this for so long. Now I just want to get this example project working. You can see the gradle problems on the screenshot I posted above.

mobilevisuals avatar Jul 29 '20 08:07 mobilevisuals

Ctrl + shift + f And search for "bintray" You will find that it is in build.gradle files Remove plugin from build.gradle and all related stuffs for bintray. And try to build it. If you still have issues, let me know, can share clean project with you. Project maintairner use there plugins which are not important to run that project, in hope that others can wdit & manage it theirself.

Dňa st 29. 7. 2020, 10:53 mobilevisuals [email protected] napísal(a):

I tried to follow your instructions, but could not find any "right app gradle process (combo right to run button)" option. Most of the options are greyed out as you can see on my

screenshot http://mobile-visuals.com/microphoneproblems.png

I understand that it is not your project, but I appreciate that you posted it. I have tried to find a solution to this for so long. Now I just want to get this example project working. You can see the gradle problems on the screenshot I posted above.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/felixpalmer/android-visualizer/issues/30#issuecomment-665531916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACGXKLRXH6VXGY3WZ3RZSLR57PSJANCNFSM4DKKWVJQ .

mimoccc avatar Jul 29 '20 09:07 mimoccc

I tried to follow your instructions and remove all bintray related stuff, but the project still did not work. So can you please share the clean project with me? Sorry for a late reply, I had turned off notifications by mistake, so I did not notice your reply last year.

mobilevisuals avatar Apr 05 '21 16:04 mobilevisuals

I finally got this to work! Real color visualization with mic and FFT. I learned from this project:

https://github.com/sommukhopadhyay/FFTBasedSpectrumAnalyzer

The project has missing resources, so it can not be run. But it is still possible to learn from the code. The previously mentioned project

https://github.com/tyorikan/voice-recording-visualizer

is of very little use, since it only visualizes the volume without any color visualization or FFT.

mobilevisuals avatar May 09 '21 14:05 mobilevisuals