felixpalmer / android-visualizer

Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp
816 stars 278 forks source link

how to visualize sound from microphone? #30

Open mobilevisuals opened 7 years ago

mobilevisuals commented 7 years ago

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 commented 7 years ago

Does anyone know how to do this?

erksch commented 5 years ago

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

mimoccc commented 4 years ago

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

mobilevisuals commented 4 years ago

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 commented 4 years ago

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

mimoccc commented 4 years ago

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.

mobilevisuals commented 4 years ago

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.

mimoccc commented 4 years ago

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 notifications@github.com 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 .

mobilevisuals commented 3 years ago

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 commented 3 years ago

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.

romerojhh commented 1 year ago

Check out below if you want to have an example implementation of a live audio visualizer from a microphone,

https://github.com/romerojhh/androidAudioVisualizer