Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to visualize sound from microphone? #30

Open
mobilevisuals opened this issue May 6, 2017 · 11 comments
Open

how to visualize sound from microphone? #30

mobilevisuals opened this issue May 6, 2017 · 11 comments

Comments

@mobilevisuals
Copy link

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
Copy link
Author

Does anyone know how to do this?

@erksch
Copy link

erksch commented Nov 13, 2019

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

@mimoccc
Copy link

mimoccc commented Jan 5, 2020

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

@mobilevisuals
Copy link
Author

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
Copy link
Author

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
Copy link

mimoccc commented Jul 27, 2020

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
Copy link
Author

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
Copy link

mimoccc commented Jul 29, 2020 via email

@mobilevisuals
Copy link
Author

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
Copy link
Author

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
Copy link

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

https://github.com/romerojhh/androidAudioVisualizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants