PDA

View Full Version : New application: Talk Button Detector 0.3


unaiur
29th April 2006, 09:26 PM
I've written a basic application that detects when you press the talk button on the wired headsets and runs Microsoft Voice Command (if installed) or Voice Speed Dialing (otherwise).

To ease the button press detection when you are listening music, you should slide down the hardware volume control to the minimum.

It can take up to 2 seconds to detect the button press, and doesn't work when the device is sleeping.

If you run the application twice, it shows a window with the energy readings and you will be able to stop it. If the application doesn't work, please, report you energy readings when the button is pressed and released and the environment type (noisy, quiet, ...)

CHANGES IN VERSION 0.2
----------------------

- Prevent the audio subsystem to be suspendend by the power manager.
- Suspend the button state polling when the headset is unplugged.
- Suspend the button state polling when Microsoft Voice Command is listening.

unaiur
2nd May 2006, 07:15 PM
New release 0.3:
- Prevents the system from suspending
- Powers on the system before launching the voice recognition program

To save energy, I recommend to enable the UserIdle power state (which turns off the screen and several other periphicals), changing in the registry key [\HKLM\System\CurrentControlSet\Control\Power\Timeo uts] the value of "BattUserIdle" to "120" (seconds).

I'm waiting feedback.

7s7
2nd May 2006, 10:02 PM
:) Thanks, I have been looking for an application like this since I got my Wizard. (not everyone has a bluetooth headset) Seems to work well. Will do more testing over the next few days in different environments.

NashXDA
2nd May 2006, 11:01 PM
will dis work on the mini-magician..if not cud u make it possible really wud love that

cheers

vijay555
2nd May 2006, 11:38 PM
http://rinkworks.com/dialect/

V

NashXDA
2nd May 2006, 11:58 PM
Vijay wats wit da URL?

unaiur
3rd May 2006, 02:01 AM
It's a Windows Mobile 2003 application because it's developed with Microsoft Embeed Visual C++ 4, and I can't find a way to install the Windows Mobile 2005 SDK (it needs Visual Studio 2005; a bunch of pounds).

But it actually needs Windows Mobile 5 to run properly, since it uses state notifications to know when the headset is plugged/unplugged and if the voice recognizer is running. Last is very important; otherwise the recording is distorted and doesn't recognize anything.

Otherwise, it should be pretty easy to adapt to any hardware. I just need to know where the headset state is stored in the registry. In Wizard, it's in [HKLM\System\State\Hardware], in the value "Headset".

NashXDA
3rd May 2006, 09:03 AM
Okay then it shud work for the Mini cause it runs 2003se right? i installed it nothing happens..wat do i do? really love the concept...

affleck
23rd May 2006, 03:14 PM
It doesn't seem to work with the 8125. I thought the 8125 was really a Wizzard? It detects the button in about 1.5 seconds, but an error window pops up. It doesn't seem to be able to initiate the Voice Command aplication.

jeroeng33
28th May 2006, 12:16 PM
what i've been looking for?

I'll let you know.

bakasamaz
2nd June 2006, 05:19 AM
WOW!!!:shock: this stuff is really working!!!.. Wired headset is much better than that bluetooth headset coz it's stereo! I have a question tho, is there anyway to automaticly start the exe (program) after softreset or shutdown?
Thanks :D

bakasamaz
2nd June 2006, 05:25 AM
WOW!!!:shock: this stuff is really working!!!.. Wired headset is much better than that bluetooth headset coz it's stereo! I have a question tho, is there anyway to automaticly start the exe (program) after softreset or shutdown?
Thanks :D

Halfhoff
5th June 2006, 04:22 AM
This looks excellent. I will check back once I install voice command!

nick333
6th June 2006, 11:45 AM
Finally someone came up with a solution for this HTC error in construction!
THANK YOU!

I tried this out on my Prophet, in a quiet environment (sitting in bed).

Energy readings when idle are around 250-350 (averaging 310) and exactely 27 when the button is pressed (no matter where the manual volume slider is at that time).

Are those numbers about the same on the Wizard? How can the button-is-now-pressed-threshold be adapted to the Prophet?

Thanks!

P.S.: It obviously doesn't work so far...otherwise I would not have posted these numbers...I press the button and nothing happens. :cry:

MoonRain
7th June 2006, 12:50 AM
Hi there,

I have cimply copied the Talk Button Detector on my device and launched it. But when I press the "Talk" button on my headset. It says: "unable to launch talk application".

The "Speed Deal Application" is installed and workng fine when I press the button on the device.

Thank you for your help in advance.

olegy
5th July 2006, 09:40 PM
Does not work on T-mobile SDA. But, it detects the button! But give me an error - "Unable to launch speech application"
Please, let us know, what could be done to make it working.
Thanks.

ChronoT52
28th July 2006, 07:32 AM
Tried it on my 6700- I only get a -1 reading regardless if I am hitting the bottom or not. I really hope this gets ported to work- people would pay for this functionality.

Cutefox
28th July 2006, 08:40 AM
nice work. but i dun use voice dial myself except with bluetooth headset. i was wondering if you can make use of the wired headset button to launch other application for example say windows media player and play the next song on it when u press it while inside windows media player. that would be useful as i dont like taking out the fone that much to change song when im listening to music.

talos5
20th September 2006, 12:29 AM
I would LOVE for this to work on a T-Mobile MDA Vario with a dutch (NL) windows mobile 5

somehow the program works, it even boots out of standby, but it keeps giving me the error "unable to launch talk application"

i do not have windows voice command installed (i tried it, hated it) and use the standard voice control (dutch name: "Gesproken Snelkeuze")
perhaps the translation is the problem here.. could you or anyone else modify the program to enable it to use different application names

i would give you my first unborn child in return ;)

talos5
22nd September 2006, 01:35 AM
Anyone, Please ? or anyone that could adapt it to make it so you can choose the program yourself ?

the program DOES respond to me pressing the button, it just doesnt load the right program (prob due to language)

GldRush98
22nd September 2006, 04:18 PM
I don't get the point of this app?

You can make a simple registry tweak that will do the EXACT same thing and with none of the bugs of this app. :?

talos5
22nd September 2006, 04:28 PM
Than could you explain or lead me to the info of this registry tweak ??

i have been searching this site and many others for over 2 weeks looking for something that could do this, and this so far has been the only one i found


and if you do have a reg tweak (for the MDAvario/HTCWizard), what is the exact function ?? in my case i want the talkbutton on my wired headset to start up VoiceSpeedDial (in my dutch wm5 case, Gesproken Snelkeuze).

if you could help me out in anyway, i would be very gratefull

GldRush98
24th September 2006, 05:55 AM
Open up your preferred registry editor and navigate to:

\HKLM\Software\OEM\VoiceCommand
Look at the Path key (probably the only one in there)
The default value is \Windows\SDDialer.exe
Change the value to the installed location of MS Voice Command
The default install is \Program Files\Voice Command\voicecmd.exe
I have mine installed to my storage card because it's a space hog so my path is \Storage Card\Program Files\Voice Command\voicecmd.exe

I use this with my BT headset and it works great.
One thing to note is the functionality of it.
When you press your headset button you will hear the Voice Command prompt chime in your ear. You can then speak whatever command you want to give it, and it will execute the command. But what to keep in mind is that it leaves the blue tooth connection open and it is now routing all sounds that would normally play over the phone's speaker through the head set.
This is actually sort of a bonus, because now you can stream music right in to your head set!
To break the connection press your head set button again.
Then to issue another command, you will need to press it again.

Enjoy.
And it works even if the phone is asleep (it will wake it up) :wink:

kull
24th September 2006, 07:06 AM
Will it work on the O2 Mini S?

talos5
24th September 2006, 02:07 PM
It seems you mis read the topic mate.. this is not about a BlueTooth headset, this is about the WIRED HeadSet you receive with the phone

on a bluetooth headset it DOES work, but on a Wired headset the Talk Button does not work to START a phone call, only to receive one.... and that was the reason of the application, a program to search for the keypress to start the program to bypass this factory default problem


thanks for the help anyway, but your help is useless in this case

GldRush98
25th September 2006, 09:55 PM
I suppose I didn't read the first post carefully enough.

I assumed it was talking about bluetooth headsets though. I didn't know people still used the old style wired :lol:

b0ris
18th October 2006, 02:58 PM
Please answer me, work this nice application on i-mate sp3i?
I run exe, but nothing occurs ...
Talk button don't work... :(

kull
2nd November 2006, 02:46 PM
Which is the file to be used? And how? Thanks...

DJ_Enigma
12th November 2006, 10:57 PM
Great I installed this program and not only did it not work but now my SD card will not read. In ANY phone/computer/laptop/card reader I have access to.

:mad: :mad:

Good job it is under warranty.

TDIPower
14th November 2006, 08:55 PM
hi which of the 2 files do i need to run? i take it i copy it/them onto the O2 Mini s then run.

many thanks

kull
5th February 2007, 04:38 AM
Open up your preferred registry editor and navigate to:

\HKLM\Software\OEM\VoiceCommand
Look at the Path key (probably the only one in there)
The default value is \Windows\SDDialer.exe
Change the value to the installed location of MS Voice Command
The default install is \Program Files\Voice Command\voicecmd.exe
I have mine installed to my storage card because it's a space hog so my path is \Storage Card\Program Files\Voice Command\voicecmd.exe

I use this with my BT headset and it works great.
One thing to note is the functionality of it.
When you press your headset button you will hear the Voice Command prompt chime in your ear. You can then speak whatever command you want to give it, and it will execute the command. But what to keep in mind is that it leaves the blue tooth connection open and it is now routing all sounds that would normally play over the phone's speaker through the head set.
This is actually sort of a bonus, because now you can stream music right in to your head set!
To break the connection press your head set button again.
Then to issue another command, you will need to press it again.

Enjoy.
And it works even if the phone is asleep (it will wake it up) :wink:


Hi, just wanted to know how to get back to normal mode after unistalling voice command? I did install and try but doesn't work for me in my country after un-installing Voice Command now when I press Bluetooth talk button instead of the voice dial the dial pad comes up. What can I do to reverset this? Thanks in advance.

makeamil
6th February 2007, 06:17 AM
It doesn't work on my 8125. Im running wm6 and my energy digits jump from tens to hundrets of thousands every second, regardles of button press. I don't think the button is detected at all. Im using the original wired headset and VC 1.6. I envy those who got it to work as I've been looking for simular functionality for ages. Hope a newer version works for me....

neXus519
11th February 2007, 06:10 PM
Same behavior, running pdaviet4 (wm6) on htc wizard, the headset button seems to be disable even if I'm online. And energy level get up and down.

I'll check some regs values juste in case...

sevakm
14th February 2007, 04:56 AM
The energy level keeps jumping up and down all the time, and pressing the button doesn't have any effect. I have tried it on T-Mobile MDA with the standard configurations out of the box.

Has anyone found a solution for this? I really need this functionality. Any help is appreciated!

sen_soltysa
17th April 2007, 04:44 PM
I have the same, on Wizzard, WM6.