Programmatically activate Speakerphone - Windows Mobile Development and Hacking General

Is anyone out there who would know how to simulate a LONG press of the "Hook Up" (VK_F3) key on any of the HTC Phones, so that the Speakerphone Mode gets started? keybd_event() is OK to take the hook off, but it won't launch speakerphone mode.
Is there some other way to programmatically activate Speakerphone mode?
Reason for asking: I'm writing an app that enables the physically handicapped to operate a smartphone.
Thanks for a hint
Phil

http://www.adminlife.com/247reference/msgs/29/148968.aspx
I m interested too

Problem is, with TAPI and phoneSetHookSwitch() one has to be the owner of the line, which does not apply in my case.

Did you ever find a solution to this. I'm also trying to turn the speakerphone on.
I also tried the VK_F3 which does answer the phone, (but will not turn on the speaker). I also tried PhoneOpen and the phoneSetHookSwitch, but ran into the same problem you did, (boy I wish I had read this forum article before all of that work :roll: )
If you did figure out a way, (without killing cprog.exe and writing your own phone), I would love to know how.

Did anyone every see if RIL could do this?

Speakerphone
Is a Limitation of HTC devices. Microsoft reserved VK_F16 (VK_TSPEAKERPHONETOGGLE) for this, but HTC didn't implement it. Would be easy to do, for their phone app is owner of the hookswitch device, and a simple call will activate it.
Motorola seems to have implemented it (MPX220).

This is interesting, from the phone menu in the new ROM, (win2005) it seems to suggest there is an ability to set SpeakerPhone from the menu. It would be a relatively easy matter to turn the speaker phone on then from another app....
Can anyone with Win2005 confirm this?

the pic above is referring to handsfree feature of bluetooth handsfree device.
do you see the blue headset icon in the top right corner?
buzz

Buzz, since you have Win2005, (looking from the RamDisk articles :lol: ), is there possibly another way to turn the speakerphone on that isn't represented in the pictures I've seen, but that you can see from using the device?

With Motorola MPX220, you can do this via the menus, so it must be possible somehow.

JamesManios said:
Buzz, since you have Win2005, (looking from the RamDisk articles :lol: ), is there possibly another way to turn the speakerphone on that isn't represented in the pictures I've seen, but that you can see from using the device?
Click to expand...
Click to collapse
let me try to find out...
buzz

on the typhoon ( i-mate sp3 / spv c500 ) smartphone,
in the keybddr.dll, where it detects the long key press, it does this:
DeviceIoControl "PER1:", 0x70000, {0x0f, 0}
DeviceIoControl "PER1:", 0x60000, {0x10, 0}
and then
keybd_event(0x7f, 0, 0, 0)
keybd_event(0x7f, 0, 2, 0)
...
in PER1: - peripheral.dll
it then sends other deviceiocontrols to the RDO device.
...
on other phones, it is done entirely differently.
.... so it is not easy is the conclusion.

Re: Speakerphone
phkaccess said:
Is a Limitation of HTC devices. Microsoft reserved VK_F16 (VK_TSPEAKERPHONETOGGLE) for this, but HTC didn't implement it.
Click to expand...
Click to collapse
I can confirm this. Through our hardware supplier, I was able to contact HTC and received a definite reply that this cannot be done via a user application.
K

It has to be be able to be done.
This will be classified as a HAck!!
If my blue angel had 5 i would do it!!!!!!

Have you tried this?

Speakerphone
Chatty, I downloaded "this" but I don't dare to run it because I don't know what is "this" and which effect I should expect... Could you pls. be more clear?
Rgds Maciej L

Is Chatty's program this thing?
http://oz.sciox.org/ozlxspk.htm
If so I don't think its going to work, its only for a PocketLoox (whatever that is?)
http://www.fujitsu-siemens.com/Resources/31/1489310501.jpg

@JamesManios: Yeah, it's for the PocketLoox from Fujitsu-Siemens. But it's just an ordinary PDA with Windows Mobile. So it might work. If so, those small programs can be decompiled in a matter of seconds.

Well out of desperation, (cause I really want a solution to this), I tried the programs but they didn't work.

wow, old thread. If you guys need to turn speakerphone on on WM5, check out my VJPhoneShortcuts.
V

Related

recording calls on wizard: SOLUTION

I have a working piece of soft:
[edit] Funny, their sire reads:
http://1800message.com/
CONFIDENTIAL, NOT FOR PUBLIC DISPLAY. DEMO SITE ONLY.
[/edit]
http://1800message.com/SPWM5CallRec.cab
http://king-bg.info/Temp/c500/soft/SPWM5CallRec.cab
It works, I have this to say:
1. I placed a shortcut to it in my STARTUP so it starts upon bootup, do you have any idea how I can make it start MINIMIZED?
2. As with all similar programs, the other party sound is with lower volume, but still can hear it
3. Records are in some internal format and can be played only with this program
Other the that I like it and it can be useful to you
Also note that in your country it may be illegal to record the conversations.
I use it mainly when someone call me with directions to some place ot phone numbers and so..
Something seems kinda fishy here, I highly doubt a company would post anything "highly confidential" and "not for public display" on PUBLIC INTERNET. Anyone else try this program? Seems like it could contain some malware/virus etc..
MilanoRex said:
Something seems kinda fishy here, I highly doubt a company would post anything "highly confidential" and "not for public display" on PUBLIC INTERNET. Anyone else try this program? Seems like it could contain some malware/virus etc..
Click to expand...
Click to collapse
I don't know what it is but it works on my PPC
do a google and it will pop-up on several other forums.
Well sounds fishy for me too...
Anyone else tried it?
this program only works if you have your speaker loud enough for your microphone to pick up the sound from it. I talked to their tech support last month and it went something like this.
> i've been playing around with pmvault and pm recorder on an htc wizard
> phone. Vault works flawlessly and is so convenient. Recorder doesn't
> record incoming audio though. My voice can be heard fine, but not the
> person I'm talking to. I know that the wizard devices are pocket pcs and
> not smartphones, but WM5 for ppc is supposed to run programs for both. Any
> thoughts on it?
>
The Wizard does not support the dual audio path. the HTC Tornado and Cingular 2125 both support it, but the PPC Wizard does not. Sorry about that. It is a hardware limitation on the device.
as already has been said,
the wizard will only record the audio picked up by the microphone,
if the speaker is loud enough the sound is picked up.
You may also want to read http://www.pocketpcmag.com/blogs/index.php?blog=3&p=513&more=1 on this subject - it gives a nice overview of what you can expect from PPC PE devices and what applications there're to (even automatically) record phone calls.
from my understanding it must be possible to access the incoming GSM audio stream - somehow it must be handed over to the CE-side, as the bluetooth driver also gets that stream - or did I get it wrong??? *confused*
Mamaich says that the GSM audio is wired directly into the bluetooth hardware.
V
vijay555 said:
Mamaich says that the GSM audio is wired directly into the bluetooth hardware.
V
Click to expand...
Click to collapse
so does that mean it is also not possible to record a phone call if you are using a BT headset?
Or a little bluetooth device that does the recording? ...

BTAudioToogle for Hermes

Hi,
i can't use the BTAudioToogle Tool for my XDA trion.
Someone the same problem ?
or better:
Someone with a solution here ?
Same for me. I have enabled BTaudiotoggle, I can hear the headset (Motorola HS850) go live but the audio either from WM player or TCMP still comes from the speaker and not the headset.
Hope someone comes up with the answer soon.
Rob
Got the same problem. No sound from BT.
Had something similiar to this with my old unit, to fully enable it I would hit the headset button (which now starts up voice command, let it time out, and then play whatever music i wanted to. I would verify that now but i am at work, and don't think they would appreciate the music blaring if i am wrong on this one
When I hit the button on the headset, it starts the Voice Dialer, the audio cuts in for a second or two, then drops back to the device speaker.
It nearly works, hope someone can hack this soon, just whats needed for podcasts and the like. No good for music tho!
Rob
I would also be very interested in a solution to this problem as I used to use BTaudiotoggle to listen to Tomtom commands in the car (normally have the music too loud to hear the commands through the loudspeaker ).
Worked great with my XDA Mini S but doesn't work with my new MDA Vario II and I didn't really want to have to buy stereo headphones, just wanted to be able to use my standard mono bluetooth headset like before.
If there is no way of using this program, are there any other programs that will send all audio to a mono BT Headset?
yep would really like an updated version of BTaudio too so i can listen to some audio books via my mono headset
You should test the trial version of bluemusic from teksoftco.
www.teksoftco.com . It gives ou a full help file on how to use the software and you have 30 sec to test that it working. I know that it works on the devices having TI Omap processors so it should work for all of you guys.
Cheers,
Raul
Just tried it out. It does the same thing that the other sotware does, mainly enable the headset where you can hear a hiss out of it, but still kees playing out of the back speaker.
My experience is a rassah's. All the Bluemusic software appears to do on my Vario II is cause the bluetooth headset to hiss slightly (whilst sound is still blasted out of the phone's speaker).
Also FWIW the teksoftco site doesn't appear to work too well on the PIE browser - defaulting to a no frames version with just a login box as far as I can see.
Needless to say I have uninstalled the software again.
Rufus.
@RufusA and @rassah guys you should check if you don't have the same problem as ulischultz in this thread :
http://forum.xda-developers.com/viewtopic.php?t=61739
We already tested the software with him on his treo device and as you can see in the thread " after pressing the button on the headset, the sound was redirected". This is mentioned in the help section of the software. ( on the universal/exec for example this step is not needed)
@RufusA - thanks for visiting the ppc version of the webpage (which is still under construction) - even though the subject is irelevant in this topic. I will send you a PM when its finished and tell me your opinion then (even though you have to admit that not many companies have a ppc version of their website - not to mention the smaller ones like ours).
If the problem still persists there is an opened thread on the forum :
http://www.teksoftco.com/forum/viewtopic.php?t=162
Please submit all the malfunctionality and we will fix them.
Cheers,
rain
I downloaded the trial too and had the same problem as before unfortunately.
I did get a little further in so much as, if I pressed the call button on my BT Headset as per the instructions, I could get the music/audio transferred to the headset for approx. 5 seconds but then it would revert back to the phones loudspeaker. I couldn't get the 30 seconds that the trial software advertises
Fingers crossed someone will be able to work out a fix for this soon.
Thanks Nicky for the input. As i see the problem of bt headset being disconnected after 5-10 sec is a general one (and unfortunatelly is a problem in the RUU). We are trying to find a workarround with ulischultz but wouldn't want to get to driver level as clearly it will be fixed by HTC in the next RUU release if they don't want this devices smashed to their heads.
I will keep you updated if we find a solution for the interrupt issue.
Regards,
Raul
Solution
I have identified a solution to this which is working nearly perfectly for me. However, if you do use this then using the BT headset to trigger the voice dial/voice command/voice commander will no longer work.
Acquire a copy of of the BTAudioToggle software inc. BTAudioOn.exe
Copy this to a location on the phone.
Using a registry editor amend the following entries from
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand
Path = location of BTAudioOn.Exe
e.g. Path = \Program Files\BTAudio\BTAudioOn.Exe
VoiceCmdDuration = 86400 (DEC) = 24 hours
This says for how long (in seconds) the audio will be passed to the headset for before timing out.
This however, will timeout earlier if no audio is coming through. I am not sure what will happen if something like TomTom is running but not speaking for a while. I have not performed timings as yet.
To activate audio through headset, press the main control button of the headset as if answering call/activating voice command etc. To deactivate, just press the button again.
Voice control apps will still work, but must be triggered from the phone itself, but voice will be picked up by the BT headset.
There appear to be some small bugs with this, such as after a phone call, using headset or not, the audio will stop being passed after hangup.
Please let me know if this work for you!
Looks an interesting solution. I've installed BTAudioOn on my storage card, and changed the VoiceCommand Path entry.
However I couldn't find a VoiceCmdDuraion entry under
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand
so I've added a new DWord of that name with the value 86400.
Yet this doesn't appear to have made a significant difference i.e. Pressing talk button on Jabra headset produces 10 secs of sound before "timing" out.
Have I made a mistake, or do I need to have something else installed to get this to work?
TIA - Rufus.
I was going to try and make the suggested changes to the registry but I don't know how and am not sure what program I need to do it.
Could someone please let me know what program I need to install to be able to change the registry?
Thanks
Vs1979:
IT REALLY WORKS!!!!!!!!!
I can't tell you how happy I am!!!!
I did it the way you described it. However I also did not have an entry "VoiceCmdDuration" I created the DWORD-entry and it works now!
Great!
Thanks very much for that great solution!
@RufusA
As i gave you the link to the other thread you're not the only user experiencing this. There are several others complaining about this RUU bug.
@Nicky
You need to install a ppc 2005 regeditor (for example Resco Explorer has one built in, or you can find one on buzzdev site).
RufusA said:
Looks an interesting solution. I've installed BTAudioOn on my storage card, and changed the VoiceCommand Path entry.
However I couldn't find a VoiceCmdDuraion entry under
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand
so I've added a new DWord of that name with the value 86400.
Yet this doesn't appear to have made a significant difference i.e. Pressing talk button on Jabra headset produces 10 secs of sound before "timing" out.
Have I made a mistake, or do I need to have something else installed to get this to work?
TIA - Rufus.
Click to expand...
Click to collapse
Hi,
Did you Soft reset your device?
I made the registry change only, have not installed BTAudioOn and all my Voice command Audio etc... now comes through the headset and does not time out after a few seconds. I did find though that decreasing this value to lets say 60, would actually time the audio feed out even if not in use so I have stuck in a huge figure, will still need to do more testing to see if drains the battery any quicker and see if I can find another stirng which will do more for me.
Hi,
it work not for me
i have changed the path to \xx\BTAudioOn.EXE
i have add the VoiceDuration = 86400 (DWord DEC)
but it is the same problem, after 2 seconds the sound goes back to PPC.

caller id + headset

i've been looking for the answer ( i think it should have been something that more people are suffering from but i was wrong )
i have a new headset. the sony hbh-ds970 nifty little thing. however when i'm receiving a call i only see the phone number on the screen. is there a way to display the name that the call is from when it is in my phonebook?
p.s. i'm using that upgrade to enable a2dp
Yes I know, it's really hard to find something here. Indeed there are more people than only you, who would like this feature to be supported! But bad news! Please read my little review of the headset in combination with the Magician in the A2DP thread: http://forum.xda-developers.com/viewtopic.php?p=337217#337217! So far only the point that MortPlayer does not support AVRCP is outdated.
The short conclusion, that matches also this thread is: "To sum up, the HBH-DS970 is a high quality product and the "Walkman" logo on it is justified. Only the Magician is not an equal counterpart to it."
well i'm willing to start on such an application. but i was looking yesterday, and since havn't found any sdk for the ppc2003se bluetooth stack. No api, actually finding info on a2dp or avrcd was pretty hard to come by.
Can anyone point me in the right direction (sdk for the ppc2003se bluetoothstack?)
i have some good ideas on how to implement the stuff.
That would be really nice! But I don't know if there is an SDK for the stack, maybe ask in a seperate thread!?
hmm why does the caller id sometimes work and sometimes not? i just got a call from a friend, and his name was in the screen, after the call i tried to phone and i got the right name in screen... pretty weird :S
Guys,
try this app (JETware Hands-free Extension for Windows Mobile phones) @ http://www.jetwaremobile.com/index.htm
It works!
The best option until M$ decides to implement it by their own in BT stack...
Conchas said:
Guys,
try this app (JETware Hands-free Extension for Windows Mobile phones) @ http://www.jetwaremobile.com/index.htm
It works!
The best option until M$ decides to implement it by their own in BT stack...
Click to expand...
Click to collapse
I mentioned this already and it does NOT work for me!
Unauthorized said:
I mentioned this already and it does NOT work for me!
Click to expand...
Click to collapse
Luckily, It work with my magician, Name of incoming call display correctly in Sony DS970 bluetooth

Can bluetooth headset trigger auto answer?

Apologies if this is an FAQ, but I've had a quick look and drawn a blank.
I've just got my first Windows mobile phone (Vario II) and one of the things I really miss compared to my old Nokia, is that when I connect my bluetooth headset, I'd like the phone to switch to 'auto answer' and for the volume to be set to max. When I disconnect the headset, I'd like the phone to refert to a 'normal' or 'general' profile.
I require this because I use it on a motorcycle in conjunction with an intercom system, and I need the phone to auto answer after say 2 rings.
Is this possible on a smartphone?
Regards,
Glenn
Join the club mate......
I've been using the Vario2 in combination with a Nolan N-102 with the N-comm BT kit on it.....
I've been #$^&# with it for weeks now and I've made some progression...
First you need a program that allows you to select profiles like Nokia used to have...
I use PocketzenPhone but maybe there are some other(better) programs to do that.....
So then u can swith to a bike profile I've made and enable auto answer....
I've run the cab file to redirect BT sounds to my helmet in stereo (floats somewhere on this forum)
The only thing I can't do at the moment is enable Voicedial from the helmet...
If I press the button designed to start it ........f%ck all happens....
Still working on that but I'm running out of ideas....so any help would be appreciated...
Danny.
Pdanny said:
Join the club mate......
I've been using the Vario2 in combination with a Nolan N-102 with the N-comm BT kit on it.....
I've been #$^&# with it for weeks now and I've made some progression...
First you need a program that allows you to select profiles like Nokia used to have...
I use PocketzenPhone but maybe there are some other(better) programs to do that.....
So then u can swith to a bike profile I've made and enable auto answer....
I've run the cab file to redirect BT sounds to my helmet in stereo (floats somewhere on this forum)
The only thing I can't do at the moment is enable Voicedial from the helmet...
If I press the button designed to start it ........f%ck all happens....
Still working on that but I'm running out of ideas....so any help would be appreciated...
Danny.
Click to expand...
Click to collapse
Hi, the reason you can't activate voice dialing from your headset might be to do with the BT Audio cab you have installed to redirect sound through your headset. If the cab you have installed is the most common one floating around then this actually disables the launch of voice dialing in favour of being able to toggle between sound in the headset and sound on the phone (pressing and holding down the call button for a few seconds on your headset normally).
If you look in the registry HKLM>software>OEM>voicecommand, if launchapenable has a value of 0 then it is disabled. You can enable it again by changing the value to 1 but this will mean that your headset button will now not work as an audio toggle feature because it will launch the voicedial software every time.
Not sure if this is the answer to your problem but it sounds like it might be, hope this helps
Am trying as we speak....thanks for the reply....see wat happens...
D.
Well.....Ive got good news and bad news....
The good news is that I can trigger voicecommand now......
The bad news is that MS voice command 1.6 is not reconizing my accent...(dutch)...
So out of 10 tries it never called the number i wanted.....
So I tried the build in SDdialer.....and that one is doing a better job....
However I can't make the sounds to stick in my helmet........
I mean...
With MSVC by pressing the button on the helmet I could redirect the sound to the helmet and get a voicecommand tone at the same time....
By symply not speaking or saying '"cancel" it would cancel the voicecommand but the sound stayed in the helmet.....
With SDdialer following the same steps as above the sounds does not stay in the helmet but goes back to the speaker......
Any ideas????
BTW is there a dutch version of MS voice command?
If you go back into the registry, in the same location as before, check the value that is in VoiceCmdDuration (This is the amount of time the voice prompt stays active for in seconds) .. the audio cab file usually sets this to 86400 (24 hrs in seconds), if yours is low eg. 10, 20, 30 etc.., set it to 86400 and that may sort out the problem.
Duration is set fort 24 hrs....already..
Funny thing is that MSVC is not cutting out and the sddialer is...
Regsetting stay the same.....
By pressing the button on helmet I just change the exe file.....
Only option is to try and get MsVC to work and get use to my voice....
D.
Hmmm booking slow process.....tryed to call with MsVC and now 2 out 2....
Ordered to play media from helmet......worked..
This is only sitting in the livingroom with helmet on.....looks absolutely silly but thats besides the point
P$ssing with rain here so hoping for better weather to go for a roadtest...
So thing needed for me to get it to work...
-MsVC 1.6
-Bluetooth stereo cab
-Regedit from the MsVC topic..
-PocketzenPhone for designing profiles.....however thinking on removing that...and see how that works.....
D.
I am glad that you are at least part way there to solving the problem
I don't have Voice Command on my phone. On the rare occasion I use voice dialling I use the standard SDdialer program but my sound diversion does not revert back to the handset like yours.
I must have changed something on it to get it working but I am afraid I don't know what because, when I was trying to get it working, I tried absolutely everything and it was quite a while ago now so I have forgotten what I did
It sounds like Voice Command is going to be okay for you though so that is good.
By the way, Phonealarm is also another good profile switching program.
Thanks for the replies guys, but I think I may have accidentally discovered my own solution.
On my T-mobile vario II, if I go to the Phone->Settings and select the 'more' tab (need to scroll along the last tab at the bottom of the screen) there is an option to 'Automatic pickup' which will auto answer a call after x number of rings.
I had always assumed this would kick-in even if no headset was present. However, I've just done some simple testing, and it looks like the auto answer only kicks-in if the phone is currently in comms with a headset (I used a bluetooth one but probably the same for the supplied 'hands free' kit).
So this functions exactly as I want it to.
Oh, and Pdanny, for background info I'm using a Nolan 101 (no bluetooth) with speakers and mic installed. These connect to my 'Starcom' intercom (via an old fasioned curly lead) which allows me to hear directions from my 'TomTom' and also take phone calls via the starcom/phone bluetooth partnership. Down side is that the wife can also talk at me .
As I never want to initiate a call while riding, this setup works just perfect for me. I don't need to remember to change the phone setup either before or after mounting the bike. As soon as the bike ignition is turned on, the intercom partners with the phone. Then if I receive a call, it auto answers and I can take the call. Once the ignition is switched off, the phone reverts to normal non-auto answer.
In my research for this issue I came across an app called 'phonealarm' (from pocketmax.net), it was the manual for this that made me try the above experiment. This looks like a neat app and I may still end up installing it as long as it does not hog the processor.
[edit]OOps sorry Nicky, just noticed you already mentioned phonealarm. I'd be interested in any comments you have about this app, good ot bad [/edit]
Once again, thanks for the replies, and I hope this thread helps someone in the future.
Regards,
Glenn
Phonealarm......give that a try thanks.....
Im also going to test with the buils in auto pick up.....
I knew it was there but i assumed that it would ALWAYS auto pick up...
It seems that that is not the case therefore making the Pocketzenphone and possibly phonealarm obsolete.....
I also get all the sounds over BT in my helmet....incl TT
Also... I don't have a wife .......sounds like a perfect world hey???
Keep you posted on the outcome of the xperiment....
Grtz
Danny
Hi knnelg, glad you managed to sort your problem. I always knew the option for autoanswer was in the settings but like you, I had assumed that it would autoanswer all calls regardless of whether a headset was connected so it is handy to know that it only applies when in headset mode.
You asked about opinions on Phonealarm, I think it is a great program. I have used it on my Vario II and my last phone, an XDA Mini S, and it is has always worked fine, no problems at all.
I really missed having phone profiles when I switched to PDA style phones so Phonealarm was one of the first 3rd party apps I ever bought and I wouldn't be without it now Also, Bruce, the developer of phonealarm, is very good at listening to users input and if enough people make a suggestion about an improvement or tweak to the program, he will implement it in future versions which is really nice.
One of the other programs Pocketmax does, Alarmtoday, is useful too.

VOIP - Earpiece fix for OMAP phones

If you are trying to use VOIP on many phones you will notice that the audio comes out of the rear speaker. If your phone is based on OMAP and uses the TWL3016 baseband process (e.g. excalibur, herald, Pheobus) then I have a fix for you. This fix should work with Skype too.
It is a service that overrides settings inside the baseband processor by watching the registry value for the Speaker setting:
HKLM\System\State\Hardware\
Speaker
When it sees a change in the value of this key it will change the audio routing. This key is changed whenever the Speaker option is changed in the phone canvas.
Currently it will only take action when there is a change! This is important as the routing gets reset whenever the phone mode changes, whenever the media player runs and so on.
It also monitors a system wide named events "AUDIO_SPKON" and "AUDIO_SPKOFF". Kick either event and it will see it and make the change.
If anyone wants to write a home screen plugin then you simply need to add:
HANDLE hSpkOn = CreateEvent( NULL,0,0,L"AUDIO_SPKON")
...
SetEvent( hSpkOn );
...
If anybody is interested then post a reply and I will clean up the code and put it up (right now it still uses code from a larger project and needs parts trimming out).
Regards,
Silver
--
CAB file automatically starts the service.
- The Source includes a Solution that builds all the pieces. Open with VS2005. You need the WM6 SDKs
- The CAB file install 2 exes in Program Files\AudioRouting. SpkOn and SpkOff i.e. Turn on and off the speaker.
that would be a sweet fix for fring. I tried using it once or twice, but i did not want the whole coffeeshop hearing my conversation. Have you gotten it to work with a bluetooth headset as well? that would be the greates thing!
will look forward to updates
Bluetooth Headset
If you turn off the speaker the audio will stop coming out of the speaker - but it may have side effects with BT. I have not tried anything with BT.
If it does not work I can certainly make it work.
One issue is detecting handsfree mode (this is another reg key under HKLM\System\State) then doing the right thing. If I find some time then I'll have a look.
Alternatively, it might just magically work. Certainly setup your call then try the SpkOff.exe.
Would this work on the wizard too?
ammarr said:
Would this work on the wizard too?
Click to expand...
Click to collapse
I do not have one to test but it has an OMAP850 in there so I would think it likely that it would work.
TheSilverRing said:
If you are trying to use VOIP on many phones you will notice that the audio comes out of the rear speaker. If your phone is based on OMAP and uses the TWL3016 baseband process (e.g. excalibur, herald, Pheobus) then I have a fix for you. This fix should work with Skype too.
It is a service that overrides settings inside the baseband processor by watching the registry value for the Speaker setting:
HKLM\System\State\Hardware\
Speaker
When it sees a change in the value of this key it will change the audio routing. This key is changed whenever the Speaker option is changed in the phone canvas.
Currently it will only take action when there is a change! This is important as the routing gets reset whenever the phone mode changes, whenever the media player runs and so on.
It also monitors a system wide named events "AUDIO_SPKON" and "AUDIO_SPKOFF". Kick either event and it will see it and make the change.
If anyone wants to write a home screen plugin then you simply need to add:
HANDLE hSpkOn = CreateEvent( NULL,0,0,L"AUDIO_SPKON")
...
SetEvent( hSpkOn );
...
If anybody is interested then post a reply and I will clean up the code and put it up (right now it still uses code from a larger project and needs parts trimming out).
Regards,
Silver
--
CAB file automatically starts the service.
- The Source includes a Solution that builds all the pieces. Open with VS2005. You need the WM6 SDKs
- The CAB file install 2 exes in Program Files\AudioRouting. SpkOn and SpkOff i.e. Turn on and off the speaker.
Click to expand...
Click to collapse
Thanks a lot it is working wonderfully.
Any chance to have this program on TOUCH (OMAP 850 based)?
Cheers...
Kindly can you make a cab so this service starts automatically. Because first I have to make a call and then use the speaker off application to switch it to earphone.
tipu2185 said:
Kindly can you make a cab so this service starts automatically. Because first I have to make a call and then use the speaker off application to switch it to earphone.
Click to expand...
Click to collapse
I have the same ROM and softphone as you
can you explain what are your settings in AGEphone and how do you toggle ?
two icons in AudioRouter folder looks like non executable files
whenever I press on them nothing indicates that change has been made
so I don't know if this did something or not, all in all I always have speakerphone in AGEphone, not the internal one
jazzzy said:
I have the same ROM and softphone as you
can you explain what are your settings in AGEphone and how do you toggle ?
two icons in AudioRouter folder looks like non executable files
whenever I press on them nothing indicates that change has been made
so I don't know if this did something or not, all in all I always have speakerphone in AGEphone, not the internal one
Click to expand...
Click to collapse
Well, it works like this that first you have to start some voice stream i.e. voice call or music player once the voice start coming through your phone's speaker then you should execute the speaker off application and it will start coming from your earphone rather than speaker. Nothing automatic. I hope we get a solution that as voice switches to speaker that change should be detected and routed back to earphone. so lets see if the person who posted it replies.
tipu2185 said:
then you should execute the speaker off application and it will start coming from your earphone rather than speaker.
Click to expand...
Click to collapse
that's what I'm doing however as I stated, nothing indicates execution, no busy icon or something like that so I suspect that it doesn't launch
jazzzy said:
that's what I'm doing however as I stated, nothing indicates execution, no busy icon or something like that so I suspect that it doesn't launch
Click to expand...
Click to collapse
Apperantly nothing appears thats true but if you keep your music player opened and a song is playing then you will notice that it stops coming from speaker and is routed to earphone.
well it turns out that it sometimes just does not work and reinstall is required however
right now this app is unusable for voip because I have to turn speaker off after connection is made
and not having "alt-tab" requires me to do a lot of clicking just to press speaker off and come back to voip softphone
which in the end takes "huge" amount of time while caller is waiting
jazzzy said:
well it turns out that it sometimes just does not work and reinstall is required however
right now this app is unusable for voip because I have to turn speaker off after connection is made
and not having "alt-tab" requires me to do a lot of clicking just to press speaker off and come back to voip softphone
which in the end takes "huge" amount of time while caller is waiting
Click to expand...
Click to collapse
Sorry been very busy of late.
You should just have to hit the speakerphone button during the call rather than going to the speaker off (you may have to do it twice).
One issue is that the phone *always* resets the audio path, so the service needs to always set it back, at least when speakerphone mode is not enable.
I actually have code in place to do this automatically now, but I will need to strip out a bunch of code before posting. I'll try to get to that in the next few hours.
Actually this code is a special case for our application and will nto work in the general case. Yet.
tipu2185 said:
Well, it works like this that first you have to start some voice stream i.e. voice call or music player once the voice start coming through your phone's speaker then you should execute the speaker off application and it will start coming from your earphone rather than speaker. Nothing automatic. I hope we get a solution that as voice switches to speaker that change should be detected and routed back to earphone. so lets see if the person who posted it replies.
Click to expand...
Click to collapse
It is not possible to know when a call on any random VOIP device. Take for instane Skype - how is it possible to figure out that a skype call is now active?
The TAPI interface allows cellular calls to be detected, but as cellular calls are not the problem then this is no help.
TAPI may allow detection of a call over MS VOIP though, bymonitoring the registry in the right place.
This is the crux of the problem - I am looking though!
I assume this one is not working on a S730, because it has no OMAP processor ?
buggers999 said:
I assume this one is not working on a S730, because it has no OMAP processor ?
Click to expand...
Click to collapse
That is Correct.
TheSilverRing said:
That is Correct.
Click to expand...
Click to collapse
While unfortunate for me , I am glad that someone solved this long lingering problem for the older devices.
Is there any similar solution for MSM7200 based phones (TyTN II (Kaiser)) ?
Why earpice sound volume is very low ?

Categories

Resources