Quick app request: Enabling BT Voice Command for all - 8125, K-JAM, P4300, MDA Vario General

I'm familiar with developing Windows apps (Win32/MFC) but I haven't worked with that stuff for years and I also am not familiar with Windows CE.
I'm looking for someone to help try and put together an app to do the following:
* Call the app BTAudioOff.exe
* Call the app BTAudioOn.exe
* Call the app VoiceCmd.exe
The BTAudio apps are the ones posted by someone on here and VoiceCMD is the executable from Microsoft's VC.
I did some testing and if I run these apps in this order Voice Command over BT works every single time with no issues and with excellent clarity since you are manually opening the BT audio gateway and calling VC.
I was looking to create a batch or script file but couldn't find if Windows CE supports it. By having one .exe or script that runs them in this order, we can have the BT button launch that app (registry change) which in turn would allow MS VC to be used over BT on all BT headsets repeatedly.
I'm doing this for myself and others in the community who are looking for this solution. I'd really appreciate any help people could provide on this.
Thanks.

Check out VJVolubilis.
It will be updated to script in the Voice Command registry hack, but if you do the voice command registry hack yourself, just opening the Audio gateway (-AGon) works for most of us.
V

vijay555 said:
Check out VJVolubilis.
It will be updated to script in the Voice Command registry hack, but if you do the voice command registry hack yourself, just opening the Audio gateway (-AGon) works for most of us.
V
Click to expand...
Click to collapse
Hey Vijay, nice website and tools. Looks nice.
AGON would work but how do I execute VoiceCMD.exe from the same line.
i.e. I want to have a single executable or command that will both turn on the audio gateway AND run Voicecommand.
Can your application accept a parameter for an executable to run???
i.e.
vjvolubilis.exe -agon voicecmd.exe
This would turn on the audio gateway and then execute voicecommand.
Not sure if it's coming across clearly what I want to do.

hopfully someone will know how to get this idea rolling.
- Jason

I'm pledged to a round of new updates to VJVolubilis that will hopefully address some of the VC stuff; if you read through the VJVolubilis thread you'll see what they're on about.
However, for now, use MortScript. It's excellent for scripting anything.
V

AWESOME. I have a solution working using MortScript. Need to test it a little bit and then I'll post it..as easy as pie!!

Crap...ran across a problem. When I run the MortScript manually through either Resco Explorer/File Manager it opens the BT audio and brings up VoiceCommand every single time.
However when I changed the registery so that instead of pointing to voicecmd.exe it points to my .mscr script it doesn't seem to work and I can't understand why.
I think it probably has to do with the Cyberon software opening closing the BT channel before launching the exe.
Hmmmmm....working on it still...any tips would be appreciated.

Well I give up for now. It seems hitting the BT headset button launches a mini Cyberon invisible app that sets up the BT audio gateway and then launches what's referred to in the registry
For whatever reason no matter what I tried, I couldn't get it to run a .mscr script either by directly pointing to the script or pointing to MortScript.exe and passing the script as a command line parameter.
All in all, it works 100% when you run the .mscr manually but getting it to execute through the BT headset button thing is much more difficult than I had anticipated.
Hopefully somoene can help resolve this on here and/or this will be resolved with MS Voice Command 2.0 if it ever comes out.

mobilehavoc said:
However when I changed the registery so that instead of pointing to voicecmd.exe it points to my .mscr script it doesn't seem to work and I can't understand why.
Click to expand...
Click to collapse
The Registry might not point to something except an ".exe"...
You may use the "autorun" function of MortScript
(copy "Autorun.exe" from the "Windows" folder to the folder where your script is located and rename it the same as the script, e.c. "myscript.mscr" and "myscript.exe")

Thanks Vlad! It worked...need to do some more testing with a BT headset that was having trouble with it tonight.
Thanks though.

Where there is a will there is a way!!!
Can't wait to see if you can fix this mobilehavoc!
See you on the forums!
This will make lives easier, guranteed!
Cheers! If you were closer I'd buy you a beer, heck a case!

Where there is a will there is a way!!!
Can't wait to see if you can fix this mobilehavoc!
See you on the forums!
This will make lives easier, guranteed!
Cheers! If you were closer I'd buy you a beer, heck a case!

this sounds promising.
I do not have any issues with triggering VC via my BT headset
I DO have issues with triggering VC via my Nokia BT carkit (after a while VC just does not react anymore)

Well after much testing and whatnot, it is not currently possible to do...it's a problem with voice command as everyone knows...specifically that since it wasn't designed for BT, it does NOT close the audio gateway so the next time you press the button on your BT headset, it does not respond.
This works with certain headsets like the HS850 because for whatever reason, a subsequent press of the BT headset button turns the audio gateway off and then the next one turns it on. This is why certain headsets work but require 2 presses to work.
The ONLY way to get this to work currently is to have an app (MortScript almost did it) that can wait until VoiceCmd has executed and completed, then close the audio gateway. Problem with that is VoiceCmd may lead to a phone call or god knows what else so it's tricky.
I'm sure there's a way to do it...in the end, again...ALL THAT IS NEEDED is for some way to close the BT audio gateway once VoiceCmd finishes...then all will be right with the world. I give up because I don't have the expertise or time and my HS850 works fine with it...
Hopefully someone else can give it a shot sometime.

Related

microsoft voice command

I really miss microsoft voice command from my jam. Does the program work with the Jamin?? If not, has anyone figured out a way yet?/
Thanks.
Works fine here. I can assign it to a bitton but do not know how to get it operated from the bluetooth headset button - anyone got any ideas?
Regards
edit the registry to get headset working;
hklm\software\oem\voicecommand\
edit the path key to the location of voicecmd.exe
eg: \program files\voice command\voicecmd.exe
that should do the trick.
What program do you recommend to write that to the registry?
total commander
I don't usually initiate a call with the headset. I mostly seem to answer them and make calls via MS VC on the handset, then talk using the BT headset. Anyway, MS VC works great on the jamin and the BT headset volume is wonderful. After the low BT headset volume on the eten m600, I forgot what it was like to actually hear someone on the other end.
I've got to say that the jamin has exceeded my expectations thus far.
I cannot get Voice Command to work on my jamin. The voice does not repeat the numbers or the contact. Any ideas?
Thanks.
fastest said:
edit the registry to get headset working;
hklm\software\oem\voicecommand\
edit the path key to the location of voicecmd.exe
eg: \program files\voice command\voicecmd.exe
that should do the trick.
Click to expand...
Click to collapse
Tried it but no effect - any more ideas would be much appreciated.
Regards
I cant get voice command working on my Jamin too, installs ok, but when i activate VC, the beep sounds, I say the command and nothing happens
duncan888 said:
I cant get voice command working on my Jamin too, installs ok, but when i activate VC, the beep sounds, I say the command and nothing happens
Click to expand...
Click to collapse
MSVC doe not support BT on WM5. I don't use the Jamin, but have done extensive research on MSVC and BT. There exists methods to engage MSVC, but require the hack, and possibly BTSoundOn utility. Also certain BT headsets work better with the connect button than others. For example, the Motorola H700 does not work using connect button to engage MSVC on device, but the h500 and H850, and some others do work with hack and connect button.
See following: http://blogs.msdn.com/windowsmobile/archive/2006/02/03/524289.aspx
On a PPC the hack is as folows: You must have Microsoft Voice Command installed to use this hack. Goto "HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand\Path". Change the default value from "\Windows\SDDialer.exe" to "\Program Files\Voice Command\VoiceCMD.exe". Now you should be able to activate Micrsoft Voice Command by pressing the connect button on your bluetooth headset.
Using the H700 BT Headset you must use BTSoundOn (preferrebly assigned to a button on device), this initiates the sound to BT, then click button for MSVC, it does work. On BT Headsets like the H500, or 850 the connect button does the job, but it does not get MSVC on first click, but on 2nd and sometimes third. When u getting it working it works well.
I searched the forums, but can't seem to find a link to BTsoundon?
cyberzeus said:
I really miss microsoft voice command from my jam. Does the program work with the Jamin?? If not, has anyone figured out a way yet?/
Thanks.
Click to expand...
Click to collapse
Where can I get a copy of MS Voice command?

Make your BT Headset work with MS Voice Command!

I'm a new member here - found this place last night... But, I have been frustrated using my BT Headset with my phone (a Cingular (HTC Wizard) 8125) - when I try to use it, it defaults to using the built in Voice Dialer software. This of course meant that I had to program all the commands into the phone so it would recognize my voice. Well, after looking through the forums here, I realized that a registry hack would probably fix the problem, and so I went searching...
Anyway, I'm sure that you are all interested in the trials and tribulations I've been having with my phone, but to make this shorter - I found the hack to make voice command work with any BT Headset.
Here it is:
Using Total Commander, navigate to the Registry, and go to HKEY_LOCAL_MACHINE\Software\OEM\VoiceCommand. Change the value in the PATH to \Program Files\Voice Command\voicecmd.exe (the original is \Windows\sddialer.exe).
Now, when you push the button on your BT headset, Voice Command will activate instead of the Voice Dialer.
P.S: I don't know why it has "VoiceCommand" under the OEM Software section like that.
(ADDENDUM: Seems that this info is out there on the web too - just couldn't find it myself - anyway, it's the same info I just posted here... Someone beat me to it and I just had to "find" it the hard way)
Black-Wolf
Good info -- and definitely worth doing. Works beautifully. As you noted, it IS out there too -- mentioned in various spots here, and on HowardForums.com.
Good reference too is to search for "Darryl Burling" -- a MS employee now I believe -- former MS MVP and software developer. He's got a freely downloadable CAB called "VoiceEnable" that handles this nicely.
Also - while you're at it: good to remove "sddaemon" from your startup folder - no longer any need for it!
works on BA also?
this is for MS voice commander 1.5? my unit info is below, would it work same way?
going to talke a look at darryl's site too.
lastly, is darryl's cab same MS VC or very similar?
thanks all helpful info
Daryl's cab file
I have tried and tried to register for his site so I can download the cab file. After 5 tries I gave up. Can someone post the cab file.
Re: Daryl's cab file
jmgbonds said:
I have tried and tried to register for his site so I can download the cab file. After 5 tries I gave up. Can someone post the cab file.
Click to expand...
Click to collapse
You dont have to register just go to downloads and scroll down the page.
http://www.burling.co.nz/downloads.aspx
Voice Command over a Bluetooth Headset - No go after hack
newbie here!
I am trying to get my BT Headset button to activate Voice Command and am failing.
I have completed the registry hack described here:
Using Total Command I found \\registry\HKLM\Software\OEM\VoiceCommand (Default Value: \Windows\SDDialer.exe) and modified the value to \Program Files\Voice Command\voicecmd.exe This is the default location when Voice Command is installed to the main memory.
I waited a while, performed a soft reset, and I can not get the button on the headset to function (i.e. activate Voice Command). I use a Plantronics 510 and have the Cingular 8125 with the Stock ROM on it. I also have a couple of applications on the device loaded (Total Commander, Battery Pack Pro and an employers IM client)
I did try to download and run the CAB for Voice Enable (This is the hack I found on the forum). However this CAB did not seem to do anything obvious. Nor did it help with activating Voice Command.
Can anyone offer me some thoughts on this? I appreciate the help VERY much.
This hack may work on others devices, but you cannot find this path in the treo 700w to make voice command work over bt. Voice command is installed by default when you buy the device. Has anyone been able to to find the reg. entry on a treo 700w for the vc dialing hack to dial over bt (SDDialer path), or does anyone know of a reg editor that will let you search the reg. on wm5?
Thank You.
Re: Voice Command over a Bluetooth Headset - No go after hac
dgeisler said:
newbie here!
I am trying to get my BT Headset button to activate Voice Command and am failing.
I have completed the registry hack described here:
Using Total Command I found \\registry\HKLM\Software\OEM\VoiceCommand (Default Value: \Windows\SDDialer.exe) and modified the value to \Program Files\Voice Command\voicecmd.exe This is the default location when Voice Command is installed to the main memory.
I waited a while, performed a soft reset, and I can not get the button on the headset to function (i.e. activate Voice Command). I use a Plantronics 510 and have the Cingular 8125 with the Stock ROM on it. I also have a couple of applications on the device loaded (Total Commander, Battery Pack Pro and an employers IM client)
I did try to download and run the CAB for Voice Enable (This is the hack I found on the forum). However this CAB did not seem to do anything obvious. Nor did it help with activating Voice Command.
Can anyone offer me some thoughts on this? I appreciate the help VERY much.
Click to expand...
Click to collapse
not familiar with your unit but do you have your headset working properly? completely? i don't know if this will help you but try finding the latest BT stack. also, if you are running wm5, i believe you are using a MS BT stack. don't quote me on that. but my reading has led me to believe that MS stack is not the best. your buttons are BT profile based. look for AVRCP profile. i'm no expert but these are things i had to update for my stereo BT headset (pulsar)
good luck,
woody
Re: Voice Command over a Bluetooth Headset - No go after hac
dgeisler said:
newbie here!
I am trying to get my BT Headset button to activate Voice Command and am failing.
I have completed the registry hack described here:
Using Total Command I found \\registry\HKLM\Software\OEM\VoiceCommand (Default Value: \Windows\SDDialer.exe) and modified the value to \Program Files\Voice Command\voicecmd.exe This is the default location when Voice Command is installed to the main memory.
I waited a while, performed a soft reset, and I can not get the button on the headset to function (i.e. activate Voice Command). I use a Plantronics 510 and have the Cingular 8125 with the Stock ROM on it. I also have a couple of applications on the device loaded (Total Commander, Battery Pack Pro and an employers IM client)
I did try to download and run the CAB for Voice Enable (This is the hack I found on the forum). However this CAB did not seem to do anything obvious. Nor did it help with activating Voice Command.
Can anyone offer me some thoughts on this? I appreciate the help VERY much.
Click to expand...
Click to collapse
I am seeing the same thing after upgrading from Summiters test 2.3 rom to the official cingular rom.
Head set and Voice Dialer
Hi Guys,
I have looked at the thread above, but have not been able to find the registry setting in OEM...
Instead it is in a microsoft directory (\\\registry\hklm\software\Microsoft\voice Command\
Do you know where I need to change the parameter?
All I would like to do is to control voice commander via the Bluetooth unit.
Any help would be greatly appreciated.
Suki said:
Hi Guys,
I have looked at the thread above, but have not been able to find the registry setting in OEM...
Instead it is in a microsoft directory (\\\registry\hklm\software\Microsoft\voice Command\
Do you know where I need to change the parameter?
All I would like to do is to control voice commander via the Bluetooth unit.
Any help would be greatly appreciated.
Click to expand...
Click to collapse
I have the same problem can only find: registry\hklm\software\Microsoft\voice Command\
So what and were do I change?

Audible Clock available on WM5?

Hi. I posted an inquiry about a clock program that could be linked to a bluetooth headset, but there wasn't a response so I figured it wasn't available. A few weeks later, I was informed that Voice Command allows one to get the time by giving a vocal command. However, I didn't see that function listed on the Microsoft website. It got me wondering if there was a program that gives the time through the speakers (audible clock)? It would be nice to get the time quickly without having to pull my phone out of the holster to see the time (I don't like wearing my watch). This would only work if one could map it to one of the buttons and have it turn on even in standby mode.
MS Voice command (VC) can tell you the time. You need to 'ask' for the time. It is not 100% accurate (70%), and it is definately much faster to look at it rather to push the button to activate VC, 'ask' for the time, wait for it to recognise what you are saying, and listen carefuuuuly what it said (if you are lucky that it recognise what you are saying).
There is an app that tells you the time at a specific intervals (I don't think it does on-demand-time-telling), not a full blown stable release though. Do a serach in this forum.
I would like my phone to fetch my letters from the box when they arrives. Anyone with that software?
Thanks for the reply. Is the accuracy problem based on coming out of standby? I noticed that it takes a brief moment to adjust the time when coming out of standby. When I performed a search on this forum, I didn't see such a program, but I might have restricted the search to only the Wizard forum. Perhaps I need to expand that search. Certainly, a Google search did not yield what I wanted.
The accuracy I meant was, whether it will do what you told it to do. Example, if you asked for the time, 30% (depending on your surrounding noise level), it may not recognise the command, or probably dial a number for you
Hmm.. I must admit, it is much difficult to search for that application that I've mentioned. I'll try and let you know if I got it.
found this... not the one that I'm looking for.. it is not free.. and rather heavy
http://vitotechnology.com/en/products/voicereminder.html
Thanks for looking. Yeah, you were right. It isn't quite what I'm looking for. It looks as if Voice Command is the only program that has the feature I'm looking for. Thanks again.
Long shot.. but this seems to do what you want
http://software.pocketpcthoughts.com/product.asp?id=10422
again, not free (not the one I remmebered)
Thanks for looking. I found an audible clock!!! And it's free.
http://www.grapefruitopia.com/smartphone/clock.shtml
It works for WM5 phones and it has to be installed in the storage card. I had it link up to the bluetooth through the Voice Speed Dial function on the Settings menu. I had to create a shortcut and paste the shortcut to the windows/programs folder.
The clock is audible. I haven't figured out how to make it go through the Bluetooth headset yet. I tried to toggle the headset with BTAudio, but when I use the headset to get the time, the headset will toggle back off. If there was a way to keep the headset on for about 3 seconds after the device receives the voice input, then I would be able to hear the time on the headset. This feature would be get for crowded areas when one can't hear the speaker.
Anyone know of a registry hack that might be able to keep on the headset for a few seconds while the time is being announced?
Thanks.
Okay. Got it working. For those who would like to use the BT headset to get the time, here is a way. Download and install the SpeakingClock program (link above) into the storage card. Download and install BTAudio (Toggle version). Download and install MortScript. Write a script to batch both programs to run in sequence.
Example:
#MortScript BT and SpeakingClock
Sleep (500)
Run ("\Program Files\BTAudio\BTAudioToggle.exe")
Sleep (1000)
Run ("\Storage Card\clock\SpeakingClock.exe")
Sleep (3000)
Run ("\Program Files\BTAudio\BTAudioToggle.exe")
Save as a .mscr file and place it in the MortScript folder. Create a shortcut of the script to the \Windows\Start Menu\Program Files folder. Use Voice Speed Dial on the Setting Menu to link a voice command to the script and you have a free speaking clock through your BT headset.
Of course, I guess it would be easier to wear a watch...but, I don't wear one.
- Cheap watch - $10
- Bluetooth head set - $40
- PDA Phone - $400
- Able to tell the time with your PDA through your bluetooth head set without looking at your watch (if you have one) - priceless

Bluetooth Audio Gateway Control

Application is designed to control BAG (Bluetooth Audio Control) service state on Windows Mobile systems. It can enable/disable audio/microphone routing to Bluetooth headset, set volume and microphone gain, enable/disable voice command launch application.
Writing this little piece of code was inspired by inability of AGEphone Mobile (ver 2.71) to collaborate with Bluetooth headset.
Really it can be used for other purposes as well. You can make some useful shortcuts or use it in some scripting language.
It is “command line” application (no GUI). Command line switches controls application behavior.
There are two working modes: “keep resident” (default: able to save and restore all settings) and “on fly” - for quick change.
Application itself and documentation with samples in attached file.
Thanks alot i'm downloading now!
gui in next ver?
Thank you very much for writing this! Your utility goes alone perfectly with AGEphone Mobile and is perfect for anyone who wants to use a BT headset AND voice command - highly recommended vs. the standard "BTAudioToggle" !
I'm trying to get this to launch via startup to see if it will work with my bt headset and voice command.
I'm just using "\Windows\bagctrl.exe /O"
as my shortcut link but it gives me an error the app isnt signed..I assume I'm probably just an idiot and not making my shortcut right..Can anyone help me please?
vidmabal said:
Application is designed to control BAG (Bluetooth Audio Control) service state on Windows Mobile systems. It can enable/disable audio/microphone routing to Bluetooth headset, set volume and microphone gain, enable/disable voice command launch application.
Writing this little piece of code was inspired by inability of AGEphone Mobile (ver 2.71) to collaborate with Bluetooth headset.
Really it can be used for other purposes as well. You can make some useful shortcuts or use it in some scripting language.
It is “command line” application (no GUI). Command line switches controls application behavior.
There are two working modes: “keep resident” (default: able to save and restore all settings) and “on fly” - for quick change.
Application itself and documentation with samples in attached file.
Click to expand...
Click to collapse
Many thanks, vidmabal - it works like a dream and does exactly what I was looking for!
MrDSL said:
I'm trying to get this to launch via startup to see if it will work with my bt headset and voice command.
I'm just using "\Windows\bagctrl.exe /O"
as my shortcut link but it gives me an error the app isnt signed..I assume I'm probably just an idiot and not making my shortcut right..Can anyone help me please?
Click to expand...
Click to collapse
Yes, application is not digitally signed.
If you want to use it you first must enable not signed applications (but there are plenty of them around).
To do this you can use "Advanced Config" or alternatively set registry value with some registry editor. "Total Commander" or "Resco explorer" can help you performing this task.
Registry key is "HKLM\Security\Policies\Policies" value name is "0000101a" (if not exists create new DWORD value) and must be set to 1.
P.s. I really don't know why you want to run it on startup and expecially with /O key
eazy2001x said:
gui in next ver?
Click to expand...
Click to collapse
Really not.
Application is designed to run without user intervention.
That’s why even all errors are silently ignored: no MessageBox for invalid keys or some other errors.
Even I don't see what GUI can be helpful. Except maybe for microphone gain changing. Volume normally has control keys on Bluetooth device itself.
Of course you can use it with Mortscript or some other scripting language and make some interface in here. Error codes returned (not present in attached document)
0 - No error (all OK)
128 (0x80) - Error redirecting audio (normally occurs if Bluetooth device is not connected)
129 (0x81) - BAG0: device not found
130 (0x82) - Invalid command line parameters
since u coded this, ive got a small question. do u think there is any chance to disable a remote microphone and use the internal one instead?
im asking this because the mic from my car radio totaly fails its job (JVC KD-BT11) and the internal from my phone (x1) is far supirior to it.
Nice work man, just find my bt headset behind the microwave oven (my girlfriend didn't know anything)
I'm going to write a small mortscript to controll the commnd line.
vidmabal said:
Yes, application is not digitally signed.
If you want to use it you first must enable not signed applications (but there are plenty of them around).
To do this you can use "Advanced Config" or alternatively set registry value with some registry editor. "Total Commander" or "Resco explorer" can help you performing this task.
Registry key is "HKLM\Security\Policies\Policies" value name is "0000101a" (if not exists create new DWORD value) and must be set to 1.
P.s. I really don't know why you want to run it on startup and expecially with /O key
Click to expand...
Click to collapse
I'll have to look into it more but I already have advanc config to run unsigned apps..
achmed20 said:
since u coded this, ive got a small question. do u think there is any chance to disable a remote microphone and use the internal one instead?
im asking this because the mic from my car radio totaly fails its job (JVC KD-BT11) and the internal from my phone (x1) is far supirior to it.
Click to expand...
Click to collapse
The application has nothing common with Bluetooth transport. Really it only send control codes to BAG service (Bluetooth Audio Gateway). This one is coded by Microsoft. I think other BT stack providers (for compatibility reasons) also supports such service.
According to documentation there is no such control code to enable only audio and leave microphone untouched. (Maybe there is, but undocumented, as M$ like to do).
Also it depends on BT profiles your device support. Maybe it has some "stereo headset" without mic?
Here i made a mortscript gui for this tool:
just extract to \Program Files\BTAGC
all files are included
Now make a shortcut of config.mscr in your start menu
vidmabal said:
The application has nothing common with Bluetooth transport. Really it only send control codes to BAG service (Bluetooth Audio Gateway). This one is coded by Microsoft. I think other BT stack providers (for compatibility reasons) also supports such service.
According to documentation there is no such control code to enable only audio and leave microphone untouched. (Maybe there is, but undocumented, as M$ like to do).
Also it depends on BT profiles your device support. Maybe it has some "stereo headset" without mic?
Click to expand...
Click to collapse
The radio itself offers "Bluetooth Headset" and "freespeech".
i tried to disable the freespeech (bluetooth settings in winmo) but somehow my phone still uses the radio as microphone.
guess i have to get my soldering iron and make some hardware mods to my radio. looks like disabling a bluetooth mic isnt going to work.
PS: but thx
old post i know, but do you know if there is a way to display the error msgs on screen somehow ? I think im getting errors.
Pytte said:
old post i know, but do you know if there is a way to display the error msgs on screen somehow ? I think im getting errors.
Click to expand...
Click to collapse
Really there is no much error processing here. But you can try to start app from say Mortscript and examine return code. See message #8 for return codes.
Thanks for your effort put into this.
Could you please confirm if/how is it possible to do just one thing:
1. Cyberon Voice Speed Dialer installed on phone.
2. BT button does not invoke it (audio route opened, and dialer screen opened, but no Speed Dialer. Reg Key exists)
3. Can this program help do it? (which mode resident/on fly, which extension to exe file and how to launch it (start-up or something else))
Many thanks in advance!
Thanks
Thanks a lot vidmabal, this is what I was looking for.
Cheers
Will this program work on an HD2 which i think uses a widcomm bluetooth stack??
dino_Donis said:
Will this program work on an HD2 which i think uses a widcomm bluetooth stack??
Click to expand...
Click to collapse
Really I don't know.
I am operating with service "BAG0:" ("Bluetooth Audio Gateway") - you can check if it is present in your system.
1. Launch Fdsoft Task Manager
2. Go into "Services" page.
3. Check that you have started service BAG0:
Alternatively you can check it in registry:
HKEY_LOCAL_MACHINE\Services\BTAGSVC
(Service name can differ, but "Prefix" value must be "BAG" and "Index" must be 0, "IsEnabled" value must be 1)

New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.
it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)
this is still a beta, I intend to make ajustments as people give feedback.
Thanks,
hope u like.
-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.
------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum
------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780
------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...
Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!
Thanks for all that encourage me to continue the work and helped the development.
will retire this project for while...
thanks u all.
Audioswitch for Skype
On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.
Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.
I will try to figure out for other "hack" to solve this issue... thanks for reply.
doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.
The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).
I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
MarceloFB said:
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
it would be good if someone could make a cab to install it.
this is still a beta, I intend to make ajustments as people give feedback.
If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4WLQVA6LTKWSL&lc=GB&item_name=marcelofb&item_number=marcelofbxdadonations&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
Thanks,
hope u like.
Click to expand...
Click to collapse
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
OOOH
If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!
THANKYOUTHANKYOUTHANKYOU
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
baal_zebub said:
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
Click to expand...
Click to collapse
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
JKingDev said:
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
Click to expand...
Click to collapse
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
so to sum up the way i have it now (most files included) on my xperia x1:
1) installed skype
2) installed mortscript
3) add skypesoundswitch to \windows\....
3) add skype.mscr to \.... (root)
4) overwrite skype.lnk with the new skype.lnk in \windows\start menu\programs\..
in the way whenever i open skype(.lnk), it opens skype.mscr, this opens skypesoundswitch.exe and than skype.exe... when you close skype.exe it closes skypesoundswitch.exe...
it seems to work perfect.. but hey maybe i am doing something totally wrong here.. than just shout!
by the way, the .mscr and the .lnk files are offcourse edit-able .. so you can put the files everywhere you like..
madhijs said:
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
Click to expand...
Click to collapse
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you will have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch. Or please show me where to find details on how to code this myself. Thanks!
Hat off to both of you and really glad that we will have a much improved solution.
JKingDev said:
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch.
Click to expand...
Click to collapse
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
madhijs said:
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
Click to expand...
Click to collapse
Yes it must be run at startup but placing a link in your startup folder will make everything transparent to the user. I don't think there will be an effect at startup. In it's current form it must check every second (or whatever you set the timeout to), but its only a little bit of code. I am not really sure if that will really have an effect. The more often it checks the faster it will switch when you open skype, but also the more processor use. Check less often and it uses less processor, but there might be a delay in switching the audio. I proposed doing it by hooks though because this would use even less processor. The app will only check when a new window takes focus, rather than just periodically checking. This way it only checks when it needs to and will always switch instantly.
I am glad u liked the program.
I will try to answer most of the questions...
1- JKingDev:
I have though in your idea of using hooks, but if I use a hook, the program will have a loop anyway to check for the messages(hidden loop ;-) ), and it would have to have an "fake window" or something to process the messages. This way we have only one loop, in a very simple command line program with high optimization, so we have to think what is really the best way of doing it... I will pm u as soon I have any time to "program" again. hehe
2- people that uses mortscript with the old "troca2"
I will try to make a way to make this program work the same way as troca2, maybe with an "argc argv", wait the next update.
3- the battery life??
if u notice any battery life decreasing with the usage of the program, configure a bigger delay, maybe 5000ms, it is a matter of adjust the "timming" for each processor. Post your results here so others can find the optimum value for the delay in their phones.
4- have to start the program every reset?
yes, just put it in the startup folder.
maybe someone can make an cab that put the program in the right place and a link in the startup, it would be cool! I dont have an easy program to deal with cabs, and the vs projects for cabs.... I really cant make that thing work!!
well it is only the batterylife i was worried about. but i'll try running the phone this weekend with the program running and doing some skype.. lets see how it turns out!
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
weekendli said:
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
Click to expand...
Click to collapse
will check this, but people reported that worked in xperia... and it is running in my P3301... anyway, will check and post an wm6 build if it is the case... check the error file and see if it tells anything.
Other thing, this program uses low level api`s, so your windows MUST be fully unlocked for it to work in wm6.

Categories

Resources