I'm using the simple app shown in the Android documentation to play around with recording and playing audio. Just to add a small feature, I want to get the volume of the microphone while it's recording to move a bar like how the voice recognition will fill the microphone while you are speaking into it. I looked around online, but no one seems to have a definitive answer, could someone point me in the right direction? Thanks!
i think there is no specific volume for mic. when you are recording that takes media volume as mic volume.
Related
I'm building video chat application. During the call only one side audio is clear and other side its feeble and quiet. I want to increase the gain of microphone on the device so that the voice is clearly audible at other side.
Can any one tell me how to increase the Microphone gain programatically in android?
More specifically which API should I use for this?
When the microphone is open, it used the volume of the AudioManager.STREAM_MUSIC.
Try to increase this volume and check if the microphone volume also increased.
I'm going to make an app related to sound modulation , where i need to record a sound and after recording the sound i need to play it in different modulation or sound effects like Reversing,Resampling,Pitchshifting,Robatization effect when I press the play button .Now I have the code to record a sound ,but don't know how to modulate the recorder sound as the above effects.
I search the whole web but did not find any solution.how do i implement this effects?
There are many apis which helps to accomplish this. For example-
Open SLES. AudioTrack.
Please have a look at this page.
I think it may help you.
I am doing audio recording using MediaRecorder, but unfortunately when I playback the recorded audio, I have media with a very low volume. I don't hear anything (almost anything).
Is there any possibility to increase recording volume? Like setVolume() when we record?
I try to see in MediaRecorder API but i can't find setVolume or something like that..
Is there any work around?
Thanks.
Well after some r&d and googling i found is there is no specific volume for mic. when you are recording that takes media volume as mic volume.
So to set it, Goto
Settings->Sound->Volume->
and check Media volume.
If you wan to Record in the full Volume then keep Media Volume high and if you want to record in low Volume then keep Media Volume Small.
AIK there is no other sollution.
So please do it for your case.
In my program I'm recording audio with a microphone. And now I need to know when the user turns on a video record to release the microphone. How can I detect it. Is there any events?
And now I need to know when the user turns on a video record to release the microphone.
No, the user needs to know to shut down your app before trying to record a video.
How can I detect it. Is there any events?
You can try to use the audio focus stuff in AudioManager, though that was designed with playback in mind IIRC.
Beyond that, you have no way of knowing if anything is attempting to record video.
I am going to create an app that is Sound Intensity level,in this app I need to ON MIC when my app is running.can I do this
Please help me
Thankyou
It doesn't look like you can just "turn on" the microphone and let it sit to gather data without recording. From the little bit I've read, they record for a brief period of time and analyze that data, and repeat.. for as long as you need the app to run. Here are three links where they sound like they're doing something similar to what you want. Hope this helps.
Android: sample microphone without recording to get live amplitude/level?
Return amplitude of the mic input when not recording
Android: sample microphone without recording to get live amplitude/level?