Siemnok / speakerproximity

Automatically exported from code.google.com/p/speakerproximity
1 stars 0 forks source link

Use orientation sensor to prevent hearing damage #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of functionality:

So I installed the app and started using it whilst making a phone call to the 
bank. I was impressed with the apparent stability and simplicity. When moving 
the hand away from my head, output switched seamlessly from the earpiece to the 
speaker. However, when moving the phone back to my ear, although the switch was 
fast, it was not fast enough to prevent ear PAIN!

I seriously think this is a problem - but one which you can fix easily. It 
really does seem that the switch from speaker to phone isn't fast enough, 
perhaps because of the delay associated with the broadcast message. It doesn't 
matter when going away from the head. But when returning the phone to your ear, 
it seems likely that the switch will not happen fast enough and you'll get full 
speaker volume in your ear which is extremely unpleasant.

Would it be possible to use the orientation sensor to detect a radical change 
in phone orientation and switch from speaker to earpiece before it reaches the 
ear?

Original issue reported on code.google.com by bons...@gmail.com on 11 Oct 2010 at 5:47

GoogleCodeExporter commented 9 years ago
Thats a hard piece... I have to think a little about it.
I told you on lunch that the speed of the broadcasts are the main failure 
points of that app.

How would you use the orientation sensor?
Some people walk around and talk with the hands...

An idea would be to listen to the acceleration sensor when it detects an almost 
straight upwards moving (the move most people take it to the ear) and then 
lowers the volume smoothly a bit and if the proximity sensor is not covered in 
1 sec after the movement stopped the speaker gets normal value again.
This still has the risk to get false positives...
As an option this could be integrated or what do you think.

Original comment by michel.racic on 11 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by michel.racic on 11 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by michel.racic on 11 Oct 2010 at 9:53