Environment noise- based sound profile - Windows Mobile Development and Hacking General

Any developers here think about a noise-based profiles software for our PPC-Phone? the program use the microphone to identify the background noise to decide which sound profile to use. For example, loud noise will make the phone change to load volume and quiet environment change the phone to silent or soft volume. That software will prevent the phone to ring too loud or too soft at night or on the road etc.

Terrific idea! Sorry I cannot help with development...
Edit: you've got my support with bumps to this thread till the day I die, though

wow!! awesome idea!
(and what'd it take? rec from mic every so many mins and map the decibles ranges to different profiles?)

There's an article (and some sample code) about doing just that at http://msdn.microsoft.com/msdnmag/issues/07/10/NoiseDetection/default.aspx
Perhaps it might be a good starting point for somebody?

What about if the phone is in your pocket? Wouldn't the noise of the phone rubbing against your pants seem very loud and therefore set the ring really loud?

met3ora said:
What about if the phone is in your pocket? Wouldn't the noise of the phone rubbing against your pants seem very loud and therefore set the ring really loud?
Click to expand...
Click to collapse
I think that would be good actually,I can't hear it well ringing in my pants. Vibrations are a completely different matter

the program use the microphone to identify the background noise to decide which sound profile to use.
Click to expand...
Click to collapse
fantastic idea, m8.

Yes, fantastic battery eater.

_TB_TB_ said:
Yes, fantastic battery eater.
Click to expand...
Click to collapse
dammit, i thought it is about in call(or just machine on/off moment) volume autochange..
you are right, if it's resident constant meter..

nothin said:
dammit, i thought it is about in call(or just machine on/off moment) volume autochange..
you are right, if it's resident constant meter..
Click to expand...
Click to collapse
It could be sampling every 30 seconds or so...
I can see another problem: when the phone is in quiet place the volume turns down. What if this quiet place is a pocket of your back pack stored in a quiet cupboard in a loud workplace?
I guess we'll never gonna know unless we can test it in the real.

The example above suggests testing the ambient noise before the phone starts ringing, for say 2 seconds, not constantly, therefore no battery eater.
Surur

surur said:
The example above suggests testing the ambient noise before the phone starts ringing, for say 2 seconds, not constantly, therefore no battery eater.
Surur
Click to expand...
Click to collapse
Yeah, but that would create delays...Unless it would vibrate during those 2 secs (but that would make the testing inaccurate)...Bump as promised

I've just seen this... I'll see if I can do anything with the sample code, but my programming is not brilliant at the moment...

sabestian said:
Yeah, but that would create delays...Unless it would vibrate during those 2 secs (but that would make the testing inaccurate)...Bump as promised
Click to expand...
Click to collapse
2 seconds is not that long - I have my phone set to ring for 30 seconds before it diverts to voice mail.
Surur

surur said:
2 seconds is not that long - I have my phone set to ring for 30 seconds before it diverts to voice mail.
Surur
Click to expand...
Click to collapse
This is a smashing idea.
By the way, Surur what is the registry change to to set the phone ring longer before it diverts to vmail?

l3v5y said:
I've just seen this... I'll see if I can do anything with the sample code, but my programming is not brilliant at the moment...
Click to expand...
Click to collapse
Please do try!

agentmikeyd said:
This is a smashing idea.
By the way, Surur what is the registry change to to set the phone ring longer before it diverts to vmail?
Click to expand...
Click to collapse
Its not a local setting, its a network setting. Networks like setting it to 10 seconds by default so you can use their expensive voice mail more, but its easy to change (and essential on a WM phone where there's often a ring delay).
You can set it by going
Start>Settings>Phone>Services>Call Forwarding>Get Settings> Forward after X seconds.
Surur

surur said:
Its not a local setting, its a network setting. Networks like setting it to 10 seconds by default so you can use their expensive voice mail more, but its easy to change (and essential on a WM phone where there's often a ring delay).
You can set it by going
Start>Settings>Phone>Services>Call Forwarding>Get Settings> Forward after X seconds.
Surur
Click to expand...
Click to collapse
surur
mine touch Start>Settings>Phone>Services>
does not have "call forwarding " as an option

Ask your operator for instructions. Mine gave me the answer straight away.
Now, back on rails, gentlemen!

I will not let this idea sink! Bumpity bump.

Related

Idea: turn off alarm by your voice...

hi, i was wondering if already exist a software that allow to turn off the mobile alarm just speaking to the phone, saying a word previously learned..
i.e. "ok" or "shutup!!" or "f*c*o*f" or clapping hands...
is there any software has the option to do this?
I think the software might have a tough time listening to your voice, WHILE the alarm is going off... don't you think ?
beren said:
hi, i was wondering if already exist a software that allow to turn off the mobile alarm just speaking to the phone, saying a word previously learned..
i.e. "ok" or "shutup!!" or "f*c*o*f" or clapping hands...
is there any software has the option to do this?
Click to expand...
Click to collapse
I was thinking along the lines of STFU
but NRGZ28 is right. It might be a little difficult to isolate your voice from the alarm. Even M$ Voice Command, which in my opinion is one of the best voice recognition softwares for PPC had a really hard time understanding me when I was either outside, driving in my car, or around any type of outside sound...
Maybe with the right filters, who knows?
I would LOVE such an application...
Rather than trying to filter out the problem, I'd try for an "on off" solution. The programs listens when the alarm isn't sounding. The alarms beeps for like 2 seconds, then pauses to listen for 2 seconds, then beeps for two seconds, then pauses to listen for 2 seconds. It'd go like:
BEEP - BEEP - BEEP - BEEP [---------pause-------] BEEP - BEEP - BEEP - BEEP, etc.
good idea. that would work.
Lol i already imagine how my ppc rings every morning and i keep crying " shut the dam **** up" XD
You know those guys who trows their alarm clock onto the wall? My voice would do same^^
Please!!! Any good coder built something like this!
RedRamage had a good idea...but...
when i call using the speakerphone my friend doesn't hear his own voice..so i think it would be possible to make the ppc not to hear the alarm ring or the music it is playing
btw...i think there's not any software cas do this already, right?
Great idea
This is a great idea for an app. It would be a bad idea for me because I would just shout and then go back to sleep! Maybe someone knows how echo cancellation works in Skype for WinMo.
Cheers
andrew-in-woking

Weird Nexus One....speaker response

Hii every i am having this unusually problem.... OK i have Audible slection sound On, in my settings(You Know It makes a Sound when i click on a item) But the problem is after i click its make the clicking sound, after then for about 2 secz i can hear ssssssshhhhhhhh sound from the speaker after i bring close to my ear and then i could hear speaker cut off same thing happends if click something else, or recieves a text msg or anykind of system sound, Can ANYBODY pLEASE confront that wather they have the same problem or NO, Or its only with my phone, i still 3-4 days to return it, THANKS miLLION IN ADVANCED....
can someone please Is it true with their phone Or NO
i m being worried, i only got 2-3 days left to return
same issue here and i just set myself up for an exchange through HTC
aggieaj said:
same issue here and i just set myself up for an exchange through HTC
Click to expand...
Click to collapse
Oh that's nice to know that exchange can be set from work email(htc email)
Just To BE sure u have same issue with speaker that it make start up and cut of sounds, like the same sound television make when u turn it on or off??
thanks for the reply btw
hell4hot said:
Oh that's nice to know that exchange can be set from work email(htc email)
Just To BE sure u have same issue with speaker that it make start up and cut of sounds, like the same sound television make when u turn it on or off??
thanks for the reply btw
Click to expand...
Click to collapse
I think he meant, he's getting a new phone through HTC.
On to your problem, I have not seen anything wrong with my phone.
can run a test if its only with me or every hav the same problem
Ok go to phone app and press any Number key(it makes a tone) and then right away bring the phone speaker close to your ear for 10 secs and see if u hear any other sound other then the keytone. thanks and let me know the result, thanks a AALLOTTT,
hell4hot said:
can run a test if its only with me or every hav the same problem
Ok go to phone app and press any Number key(it makes a tone) and then right away bring the phone speaker close to your ear for 10 secs and see if u hear any other sound other then the keytone. thanks and let me know the result, thanks a AALLOTTT,
Click to expand...
Click to collapse
Followed your instructions and "nope" no sound........
Its normal behaviour: turn your volume up all the way, trigger any sound. Then if you have good ears you can hear static at very low volume for about a second. Then the powermanagement cuts power to the amplifier and the phone goes completely silent again.
PS: Same behavior on my desktop PC running Fedora 12. You only hear the static from the soundcard if it suddenly stops ;-)
This is perfectly normal, when the hissing stops, thats the speaker turning off to save power, most other things with speakers do the same thing, it's not worth returning your beautiful Nexus One just for that...
EDIT: sorry, just noticed Volker1's post,
Yeah, I have the same thing, but as others said, it's normal behaviour.
Maybe the amplifier for the speaker is a bit noisier on this phone than some others, hence you can hear it before it gets switched off (might also explain the awful quality of the speaker phone experience)?

call volume always starts out quiet

Every time I answer the first call of the day, I have to turn up the volume, which is very low. Does it default to low volume from start up?
Also, I frequently put my phone on vibrate with no ringer, then back to full volume ringer throughout the day. This wouldn't have anything to do with call volume, would it? Sometimes mid-day the call volume is back to low.
I use a bluetooth when driving to work, but adjust the call volume on that device, not the phone.
Am I just doing something dumb, here?
Thanks
jdzialak said:
Every time I answer the first call of the day, I have to turn up the volume, which is very low. Does it default to low volume from start up?
Also, I frequently put my phone on vibrate with no ringer, then back to full volume ringer throughout the day. This wouldn't have anything to do with call volume, would it? Sometimes mid-day the call volume is back to low.
I use a bluetooth when driving to work, but adjust the call volume on that device, not the phone.
Am I just doing something dumb, here?
Thanks
Click to expand...
Click to collapse
theres a setting in sounds and notifications, that changes the way the volume reacts to a phone call, its called increasing ring....change to just ring and your should be fine...also what rom are you on?
TaylorPPC said:
theres a setting in sounds and notifications, that changes the way the volume reacts to a phone call, its called increasing ring....change to just ring and your should be fine...also what rom are you on?
Click to expand...
Click to collapse
Stock T-Mobile ROM
That setting you mention only has the choices ring tone, and ring type, which I had on Vibrate AND ring.
jdzialak said:
Stock T-Mobile ROM
That setting you mention only has the choices ring tone, and ring type, which I had on Vibrate AND ring.
Click to expand...
Click to collapse
hmm idk, i never use stock roms, but maybe someone else will chime in for ya. there may be a cab floating around for a volume fix/patch....im sure a quick search will help u out.
TaylorPPC said:
hmm idk, i never use stock roms, but maybe someone else will chime in for ya. there may be a cab floating around for a volume fix/patch....im sure a quick search will help u out.
Click to expand...
Click to collapse
ok thanks. This is my first Windows phone. Installing a different ROM seems over my head, unless I can do it on my MAC?

Escalating Ringtone

I've noticed my phone always starts to ring at where I set the volume to and then escalates to be very loud after a few seconds. I didnt see any settings to change this. Is this happening to anybody else?
Is it in your pocket when it does that?
I noticed in the HTC Sense demo video it says if it is in your pocket or purse it will ring loud so you can hear it. I think it has to do with proximity and light sources. If i have it sitting out, it will ring quietly, but it is always loud in my pocket.
adamr240 said:
Is it in your pocket when it does that?
I noticed in the HTC Sense demo video it says if it is in your pocket or purse it will ring loud so you can hear it. I think it has to do with proximity and light sources. If i have it sitting out, it will ring quietly, but it is always loud in my pocket.
Click to expand...
Click to collapse
Actually yeah. Thats usually when it gets loud. I dont really like that as it gets super loud sometimes. Why wouldnt they have a setting for this?
Any news on this? Because I also find it quite annoying that the ringer is so loud even when I'm sitting in the quiet office...
alphanimal said:
Any news on this? Because I also find it quite annoying that the ringer is so loud even when I'm sitting in the quiet office...
Click to expand...
Click to collapse
I have the same issue! It happens on ALL Sense ROM's. If I am running AOSP (CM6 or MIUI) it is not an issue. Are there any ways to disable this setting if it is supposed to do so? Mine is on my belt in a case and when I'm in the office it rings way too loud. If the phone is on my desk it rings as I have the volume set.
Actually I found you can disable the loud ringer in settings really easy
Settings --> Sound --> Pocket mode
There's no way to adjust the volume though,
Apparently the Shift has the same issue as my EVO or as Sprint would call it..."feature".
http://forum.androidcentral.com/showthread.php?p=669629#post669629
You would think there was an app out there to override this.
alphanimal said:
Actually I found you can disable the loud ringer in settings really easy
Settings --> Sound --> Pocket mode
There's no way to adjust the volume though,
Click to expand...
Click to collapse
What device/ROM are you running? There is no setting for Pocket mode under settings -> sound on the stock EVO Shift 4G (at least not on mine). Anyone else find this?
I have a Desire Z with the original ROM (Froyo + Sense)
alphanimal said:
I have a Desire Z with the original ROM (Froyo + Sense)
Click to expand...
Click to collapse
that setting dont apply to shift
Did a complete wipe 2x using Amon Ra Recovery 2.3 and then flashed a stock image file from HBOOT and updated WiMAX, PRI & NV Radio. The issue was not present on the stock ROM. Wiped the stock ROM and flashed Myn's RLS5.....no more issues. Something was corrupt and enabled the sensor to trigger ring loud (when covered or senses low light) as it is designed to do on the Shift. The EVO does not have Pocket Mode in settings. Whatever the cause.....it is now resolved!
I sent a tweet in the direction of @htc about this yesterday, but they haven't answered. Hopefully we get an update that gives us a 2.x release of sense, not this weird "you have some of the features of new sense but not the whole package." The other feature that I know is there is the one where you can flip the phone over to silence the ring, and in fact, BOTH features are undocumented - the user manual for the shift doesn't mention declining a call by flipping the phone OR the word pocket except in warnings about where not to keep it.
I don't have any hope of a satisfactory answer, though, because in an earlier answer to someone about bugs, they said to submit something at htc.com/support and make sure to mark it a bug report - you can't do that anywhere on the email form and the other two options for support aren't things you "submit." The two times I've contacted them by email were also tremendous disappointments, so... there you go.
Tried to second your post on HTC's support forum but their forum software is misconfigured and my email server is rejecting their mail because it is not a fully-qualified hostname. Meh. Like you, I don't hold out enough hope of a fix to bother with the registration process.
You mentioned flip to silence, but there is actually a setting on the Evo Shift 4G to silence the ringtone when the phone is moved. It's under settings - sounds, and it is "quiet ring on pickup". Since the action of flipping the phone involves moving it, I wonder if you are seeing that setting working when you flip your phone over. My phone stops ringing (if it's not in a pocket) when I pick it up off the table. It doesn't decline the call, it just stops the ringer.
Edit: eh, I made an allowance on my mail server so HTC's misconfigured SMTP server could send my activation message and let me register.
By the way, I posted a workaround on Android Central that works for the way I use the phone. I created a silent ringtone. Then I set the phone to vibrate as well. So in my pocket I feel/hear the vibration but I don't get the ridiculously-loud rings. But I can hear my notifications at normal volume. When the phone is on my desk, the vibration and screen lighting up are enough of an alert for me. Obviously this won't work if you ever keep the phone in a bag or somewhere that you can't hear or feel the vibration, but it works for me as a pocket user.
Three ticks up from silenced on the volume rocker:
Picking the phone up off my desk quiets the ring, flipping it silences the ring. I wonder if turning off quiet ring on pickup will turn off flip to silence... might as well try it.
aaand no it doesn't. Pickup didn't quiet (per the setting now being off) but flip still did silence the ring.
Interesting note: flip-to-silence is actually a silencer; it doesn't decline the call immediately.
http://community.htc.com/na/htc-forums/android/f/112/t/9935.aspx
For anyone else that wants to weigh in on the issue on the official HTC support forum. Maybe they won't ignore us too hard.
nurrwick said:
Three ticks up from silenced on the volume rocker:
Picking the phone up off my desk quiets the ring, flipping it silences the ring. I wonder if turning off quiet ring on pickup will turn off flip to silence... might as well try it.
aaand no it doesn't. Pickup didn't quiet (per the setting now being off) but flip still did silence the ring.
Interesting note: flip-to-silence is actually a silencer; it doesn't decline the call immediately.
Click to expand...
Click to collapse
Ok, makes sense - since I use a silent ringtone, the "quiet" and "silent" are the same to me, LOL. But yes, it doesn't decline the call.
I actually liked the Touch Pro2 where flipping during a call would turn on the speakerphone. Why can't they keep good features like that instead of forcing this new stuff down our throats with no option to turn it off.
Bump/Update: After two tweets on the issue and an entire week of the post I made sitting on the HTC forums, I have had enough of being ignored and went to the email support option.
I'm not resetting my phone again, so I instead borrowed the New Issue text from Google Code project pages and sent steps to duplicate.
Anybody else that might have this problem is welcome to weigh in; I gave links to this thread and the one over on Android Central in my forum post on HTC, which is linked in the support message I sent.
Another update: Today I received my response; I don't have to reset my phone (yet) and my concern is being escalated to whatever the next level of CS is called.
They say escalated department is first-come, first-served, so it may be a while before I know more.
The problem is that HTC sees this as a feature, not a bug. They market this as a way to hear your phone when it's in a bag. While it makes perfect sense to us end-users to have an option to turn this off, from a lab testing standpoint it's not a priority because the function works as designed. If HTC had really thought this through, they should realize that there are some things phones should never do, and ringing at maximum volume unless specifically directed by the user is one of them.
The funny thing is that I'd like almost the exact opposite behavior. I'd prefer the phone to ring (quietly) on my desk, and automatically switch to vibrate when it's in my pocket (as determined by the prox sensor). But people who carry their phones in bags or purses wouldn't benefit from this option. Everybody's needs are different; HTC just determined what they think is the most common scenario and coded Sense that way. I have to give them credit for thinking up the idea, but since it doesn't work for everyone it should be more flexible.
Thanks for taking the time to bring this to their attention. It may well be that a couple of generations of phones from now we'll start seeing more options in these settings, which would be fantastic.
Update: HTC has been calling me at work, once yesterday once today. I have not been at work this week but will be in tomorrow; they gave me a number to call if I wanted to get in touch with them sooner. I will be calling them back as soon as I'm done with my planned tasks tomorrow (assuming they haven't called me first).
Here's hoping news about when we get an update that stops this nonsense comes swiftly!

Turn off vibration when charged

I am told when charging of the phone is complete it vibrates for a few seconds. Anyone know how to turn this off as no-doubt it will waken me?
Thanks.
Not only that, but it makes a stupidly loud pinging noise, too. It woke me up at 3am this morning. I can't find anything in the settings to turn it off.
Anyone?
I don't know why Samsung and LG thinks this is useful.
i dont wake up for anything!! i havent noticed this once yet. does it only ping/vibrate when you are charging when the phone is on? or when it off also?
Only when it's on. I think that the pinging noise is controlled by the System volume slider in the settings menu, I had it up to full which is probably what caused it to wake me. I've put it down to about 2 now but am yet to test to see if it's quieter.
I can't find anything to turn off the vibration though.
I'm yet to get my phone, so can't check, but have you checked in the sound settings? There's apparently an option for Vibration if I'm understanding page 129 of the manual.
" Vibration: Set when the device will vibrate for various events"
I'm hoping the fully charged event is one of these.
OK, so the ping isn't controlled by System, it's controlled by Notifications. Which is really stupid because if you turn the volume down on that how are you supposed to hear when you've got a text message?
Disabling 'Haptic Feedback' in the Sounds menu seems to disable the vibration part of the notification. It also disables vibration on all other UI interactions, though.
Anyone got a solution to this really annoying problem?
do you really have to have your phone so close to you when you sleep???
AaronUK said:
Anyone got a solution to this really annoying problem?
Click to expand...
Click to collapse
If you can try and get me something to go on, I can perhaps try to find out what is causing this vibration...
I am guessing it comes from the framework...
virussnake said:
do you really have to have your phone so close to you when you sleep???
Click to expand...
Click to collapse
Yes, I use it as my alarm clock when I am home and travelling.
pulser_g2 said:
If you can try and get me something to go on, I can perhaps try to find out what is causing this vibration...
I am guessing it comes from the framework...
Click to expand...
Click to collapse
I don't have anything to go on other than that the phone makes a loud beep two times and vibrates when charged.
I mentioned it in one of previous topics covering this problem and I will mention it once again.
SGS i9000 had the same problem in one of the first firmwares. Vibrations and sounds when battery charged have disappeared starting from (I think) one of the first Froyo updates from Samsung.
Samsung will hopefully address this problem sooner or later.
I had autostarts purchased, from back when I had to worry about what was running. Looking it seems on plugging the phone to usb or charger it launches "Mtp application" guess that would be a good place to start.
On a slightly different note. Once the phone is fully charged, it stars to drain again. Is there an alarm clock app that keeps the phone around 98% then starts charging again 30 mins before the alarm is due?
Sent from my GT-I9100 using XDA App
DVC1985 said:
OK, so the ping isn't controlled by System, it's controlled by Notifications. Which is really stupid because if you turn the volume down on that how are you supposed to hear when you've got a text message?
Click to expand...
Click to collapse
But doesn't you change the sms sound from the sms app? Thats how it works usually in Androids. The notification sound is for any other notifications, but you can change different for the sms sound. Thats how it works in Nexus S at least. Same for the gmail app also.
I guess this is in services.jar
I will take a look shortly.
...uurm...dunno if this is what you guys want but
Have your mobile on silent. (Alarms will ring in silent mode)
Go to settings - sound - vibration - Only when not in silent mode
It won't vibrate nor make a sound whilst your asleep
dk206 said:
...uurm...dunno if this is what you guys want but
Have your mobile on silent. (Alarms will ring in silent mode)
Go to settings - sound - vibration - Only when not in silent mode
It won't vibrate nor make a sound whilst your asleep
Click to expand...
Click to collapse
So at least it works in that way. Thats how my phone is always at night. Good to know, my phone will come in about 1 or 2 weeks.
pulser_g2 said:
I guess this is in services.jar
I will take a look shortly.
Click to expand...
Click to collapse
Please. I would be more than happy to send a donation!
There might be a solution if you are rooted...
In the folder /system/media/audio/ui there's a file called Charger_Connection.ogg and you can rename that to Charger_Connection.ogg.bak (personally I use adb and the 'mv' command, Root Explorer should work fine too).
Plugging in the USB cable now doesn't make a noise, just waiting to see what happens when it's fully charged...!
UPDATE: Nope, it uses a different noise... still looking...

Categories

Resources