I am trying to create an app with simple recording functionality. In an attempt to get microphone audio input set up in mainComponent’s getNextBlock(), I’m just echoing the audio I receive back to the output. I do hear my voice in the output, but it has a couple problems:
- I think it becomes quieter when I sing something into the mic
- bad feedback when I try it without headphones (for obvious reasons)
Does Android apply some sort of automatic noise attenuation before the raw audio reaches my app? If so, is there a way to get raw audio straight from the mic?
Also, I would like to be able to play sound from the speakers and record from the microphone at the same time, but I understand that is a non-trivial problem. Could someone point me in the right direction here?
