PDA

View Full Version : acCmdSpeech?



Imdabaum
09-29-2010, 12:49 PM
While adding a spellchecker functionality in one of my forms, I noticed that the next enum for the RunCommand was acCmdSpeech.

Does anyone know what it does?

Google isn't helping me with this one.

HiTechCoach
09-29-2010, 09:06 PM
What version of Access are you running?

Imdabaum
09-30-2010, 09:03 AM
I'm using 2007, but from the searches I've done, people have had the same question for version 2003 as well. Most of the results just show it as representing the hard value 511. Which isn't as cool as 311 but still makes me curious.

HiTechCoach
09-30-2010, 11:01 AM
<curiosity>

You have me curious.

I am doing a little research to see what I can found out. I will let you know what I find.

</curiosity>

hansup
09-30-2010, 11:15 AM
I'm curious, too. My web searches didn't turn up anything useful. I haven't even been able to determine whether that is about narration or voice recognition.

nepotist
09-30-2010, 11:19 AM
It runs windows speech recognition application
http://www.microsoft.com/windowsxp/using/setup/expert/moskowitz_02september23.mspx

hansup
09-30-2010, 11:37 AM
It runs windows speech recognition application
http://www.microsoft.com/windowsxp/using/setup/expert/moskowitz_02september23.mspx
How do you make it work from VBA within Access?

I have Windows 7 with voice recognition set up and working. From Access 2007 I tried:

DoCmd.RunCommand acCmdSpeech
... but got run-time error 2501, "The RunCommand action was cancelled."

I'd like to understand how to make this work just for the heck of it.

nepotist
09-30-2010, 11:47 AM
I haven't personally used it. I tried the same line of code as you did and it launched windows speech recognition application. I do not have a definite answer and searching...

hansup
09-30-2010, 11:52 AM
Thanks. I'll play with it more later. Meanwhile, please don't devote any more of your time to this on my behalf. It's not really important; just idle curiosity. :-)

Imdabaum
09-30-2010, 01:26 PM
Yeah, I have Windows 7 and the speech recognition utility is much more sophisticated and despite the number of times I have to say, "DELETE THAT" I love using it.

I was hoping that it would open some interaction with voice recognition, but every time I try to call it, I get the same bloody message as Hansup:
"The RunCommand action was cancelled"

I'm sure Windows has a reference for their voice recognition... ah curiosity is going to beat the $#% out of me this weekend... I have a 3 day weekend and I know exactly how I'm going to spend it.

hansup
09-30-2010, 01:50 PM
... ah curiosity is going to beat the $#% out of me this weekend... I have a 3 day weekend and I know exactly how I'm going to spend it.Your question triggered my obsessive curiosity yesterday. I spent an unreasonable amount of time chasing wild geese because of it. (I blame YOU!) So now I'm pleased to see you're obsessed, too. :devil2:

Bwahahaha.

Imdabaum
09-30-2010, 03:34 PM
Lol, seems like everyone is blaming me for their problems these days. I'll tell you like I told her. Your obsession is NOT my problem... well actually in this case it is, because I'm slowly obsessing over it as well but any how. enjoy your weekend.

nepotist
10-01-2010, 06:52 AM
I am not sure as what is the answer for Run time error 2501. but this is what I figured.
I have a windows 7 and Office 2003 and 2007. When I said yesterday that I was able to access the windows speech recognition application with the acCmdSpeed command I was running it in 2003.

This morning I created a sample db in 2007 and tried the same and my result was the same as yours.. run time error 2501. Then i switched back to office 2003 and redid the same thing and it worked, but when I try to open the same file in 2007 it popped up the same error 2501 and trying it back again in 2003 dint work again.

I have attached a small sample file that Worked and recored it. Before you open the application, please make sure that you change the default in your machine to office 2003 AND NOT 2007.

Like Hansup suggested that look for references at the start up to avoid any issues, I have added that to see why it doesnt work in 2007 and does in 2003 but the result is nada.

Link to test sample:
http://uploading.com/files/eea41a7b/Test.zip/

hansup
10-01-2010, 07:05 AM
Thanks, nepotist. But if it doesn't work with Access 2007, I'm not interested for now. Just don't want to install Access 2003 on a machine with sound capability just for this purpose.

Let's see what Imdabaum comes up with this weekend.

Imdabaum
10-04-2010, 06:32 AM
My weekend got hacked. I'll spend more time this week on the issue.