[Request] Active Noise Cancellation hack - Nexus One Themes and Apps

Does anyone know if it's possible to access the ANC system to use it to reduce a background noise? I've not seen how the circuit works but I was curious if this was possible.
I would like to have the phone's ANC microphone 'listen' to a consistent external noise within a room and output a negative of that noise (through the speaker) and reduce or eliminate that noise.
I'm not sure if this is feasible but maybe some boffin on here can throw some suggestions in here.
Cheers

Related

Reducing mic output gain on video record. Why? Cause its too loud & distorts

I'm looking to reduce the mic gain level while recording video. I notice it doesn't take too loud of a noise to cause distortion when you play it back. I also notice it picks up even the tinniest of sounds. Eg... its very sensitive. It picks up a small fan 20 feet away and on the video it sounds like you are standing next to it. In a way, this can be good, but in most ways it's not. What is the exact setting to adjust to ruduce the mic output gain level? I'm sure it's in the Audiopara file, but if someone knows exactly which setting so I wont have to be tweaking 2 or 3 of them to find it, it would be helpful. Thank you guys n gals

[Q] Stereo sound using phone and media speaker?

We now know the G2X has only one media speaker, and I was a bit bothered watching videos and the sound comes from only one side. Maybe I am just expecting too much from a phone, but I was wondering if it was possible to make use of the speaker (the one you use for regular phone calls) to create a stereo effect to a listener directly in front of the phone.
I am aware this speaker can't output as high a volume as the media speaker on the bottom of the phone. Is it possible to have this speaker output at a volume such that the media speaker match it in a relatively similar volume so that the listener directly in front of the screen can hear stereo sound? That is if it is even possible to route the sound to output from both speakers at the same time.
If possible, maybe someone with the experiences can add this feature into a custom firmware?

Noise Cancellation

I have searched and search and all I have found in DHD and Inspire forums is that the HTC site says it does and some say "It does." These answers do not greatly expound upon the degree of noise cancellation or when it is used. Can anyone give specifics as in does it use it for music calls what? and are there any settings that an app could enable as I have found nothing in the stock settings menu on any ROM I have used.
Thanks guys!
willwalk93 said:
I have searched and search and all I have found in DHD and Inspire forums is that the HTC site says it does and some say "It does." These answers do not greatly expound upon the degree of noise cancellation or when it is used. Can anyone give specifics as in does it use it for music calls what? and are there any settings that an app could enable as I have found nothing in the stock settings menu on any ROM I have used.
Thanks guys!
Click to expand...
Click to collapse
This is how it's supposed to work: there are 2 microphones on the Inspire - one near your mouth (bottom of phone) and one away from your mouth (top back of phone near the LED flash). When you're talking on a phone call, naturally the mic at the bottom of the phone is the one recording your voice because it is much closer to your mouth than the other mic (we are talking about a normal phone call here, not a speakerphone call). The other microphone (at the top of the phone) listens for noise that is not associated with the person talking. An example of this would be road noise in a moving car. The phone has an algorithm that generates a realtime fingerprint of the noise, and then it produces a sound wave that is 180 degrees out of phase with that sound. This "anti-sound' is combined into the audio stream that reaches the person on the other end of the phone call. The net effect is this out-of-phase sound will cancel out or reduce the original sound, so that the person at the other end of the phone call hears a reduced level of background noise. This process works best with a constant noise source - such as road noise or the constant engine noise your hear on an airliner. Dogs barking or kids screaming in the background often do not get filtered effectively, because the phone doesn't have time to generate the out-of-phase sound for stuff that changes frequency and pitch rapidly.
Now in real world usage, I haven't seen a lot of discussion in the Inspire section of people testing this feature to see if it really works. This line in the build.prop file is supposed to enable/disable the noise cancellation feature:
media.a1026.enableA1026=1 (1=enabled, 0=disabled)
and this line may be involved as well:
htc.audio.hac.enable=1
There is some evidence that setting one of both of these lines to "1" can cause battery drain in some ROMs which is why CM7 leaves them at 0. I don't run any Sense ROMs so I don't know what they've got these settings at.
henrybravo said:
This is how it's supposed to work: there are 2 microphones on the Inspire - one near your mouth (bottom of phone) and one away from your mouth (top back of phone near the LED flash). When you're talking on a phone call, naturally the mic at the bottom of the phone is the one recording your voice because it is much closer to your mouth than the other mic (we are talking about a normal phone call here, not a speakerphone call). The other microphone (at the top of the phone) listens for noise that is not associated with the person talking. An example of this would be road noise in a moving car. The phone has an algorithm that generates a realtime fingerprint of the noise, and then it produces a sound wave that is 180 degrees out of phase with that sound. This "anti-sound' is combined into the audio stream that reaches the person on the other end of the phone call. The net effect is this out-of-phase sound will cancel out or reduce the original sound, so that the person at the other end of the phone call hears a reduced level of background noise. This process works best with a constant noise source - such as road noise or the constant engine noise your hear on an airliner. Dogs barking or kids screaming in the background often do not get filtered effectively, because the phone doesn't have time to generate the out-of-phase sound for stuff that changes frequency and pitch rapidly.
Now in real world usage, I haven't seen a lot of discussion in the Inspire section of people testing this feature to see if it really works. This line in the build.prop file is supposed to enable/disable the noise cancellation feature:
media.a1026.enableA1026=1 (1=enabled, 0=disabled)
and this line may be involved as well:
htc.audio.hac.enable=1
There is some evidence that setting one of both of these lines to "1" can cause battery drain in some ROMs which is why CM7 leaves them at 0. I don't run any Sense ROMs so I don't know what they've got these settings at.
Click to expand...
Click to collapse
Thanks for the reply! I understood the concepts of noise cancellation and the like but was unaware of where the settings were! and also... Does this cancellation happen during music playback or just calls?
willwalk93 said:
Thanks for the reply! I understood the concepts of noise cancellation and the like but was unaware of where the settings were! and also... Does this cancellation happen during music playback or just calls?
Click to expand...
Click to collapse
No it doesn't affect music playback. It only works on the input (microphone) side.
So there is no way to enable it for noise cancellation while listening to music or anything of the like? I know battery drain would greatly increase, but that's what external batteries are for!
willwalk93 said:
So there is no way to enable it for noise cancellation while listening to music or anything of the like? I know battery drain would greatly increase, but that's what external batteries are for!
Click to expand...
Click to collapse
What kind of noise are you hearing in your music?
None associated with the music. I was referring to blocking the outside noises some as it does in calls. Like road noise from a car, etc. I didn't know if that was possible or not with this phone.
Sent from my Inspire 4G using XDA App
None associated with the music. I was referring to blocking the outside noises some as it does in calls. Like road noise from a car, etc. I didn't know if that was possible or not with this phone.
Sent from my Inspire 4G using XDA App
Click to expand...
Click to collapse
Oh I see. No this is not possible with the phone. I haven't seen this feature on any phone. You'll have to get noise cancelling headphones.
Thank you very much my good sir!
Sent from my Inspire 4G using XDA App

Audio recording level in G2X video camera

I've been quite pleased with the camera in the G2X, but when I record video I can barely hear anything. Is there any way to boost the input level? There's no settings accessible from the camera and I'm not finding anything in the system settings.
The mic is located on the bottom right of the phone, to the right of the micro usb port. Be sure you're not covering it up.
Stock?
I noticed that too when I was on it. I could hear myself just fine, but anything even like 3 feet away was too quiet.
Just talking out of my ass, but I'm guessing it has something to do with noise cancellation.
Yeah, stock. Next step will be to try it with an external mic.
Plugging in an earbud/microphone set from my Samsung made immense difference. Next trick is to figure out whether the earphone port can accommodate a regular microphone input, or if I have to find some sort of signal combiner cable.

Mic issues - How to disable Noise Cancellation

HI,
People are complaining that they are unable to hear me during a voice call. They say it sounds as if I am talking under the ocean / not very clear.
I guess this seems to be because of the noise cancellation. Is there a way to improve the sound clarity during the calls. Increase the main mic gain and reduce /.disable the secondary mic?
I see that the build.prop does not have the same lines that kitkat used to have and hence cant make the below changes
ro.qc.sdk.audio.fluencetype=none
persist.audio.fluence.voicecall=false​
How do I disable noise cancellation in marshmallow?
cheth20 said:
HI,
People are complaining that they are unable to hear me during a voice call. They say it sounds as if I am talking under the ocean / not very clear.
I guess this seems to be because of the noise cancellation. Is there a way to improve the sound clarity during the calls. Increase the main mic gain and reduce /.disable the secondary mic?
I see that the build.prop does not have the same lines that kitkat used to have and hence cant make the below changes
ro.qc.sdk.audio.fluencetype=none
persist.audio.fluence.voicecall=false​
How do I disable noise cancellation in marshmallow?
Click to expand...
Click to collapse
Did you ever find a solution?

Categories

Resources