Operating Microsoft sapi51

59 views
Skip to first unread message

Gad Halevy

unread,
Jan 31, 2010, 12:25:38 PM1/31/10
to Dragonfly Speech Recognition
Hi all;
I have windowsXp.
I tried to operate sapi51 with dragonfly-main.py but it crashed.
All I need is to distinguish between yes and no answers.
Does anybody know how to do it?

Any help would be highly appreciated;
Best regards;
Gadh.

Charlie Tango

unread,
Feb 4, 2010, 3:09:01 AM2/4/10
to dragonf...@googlegroups.com
Hi Gad,

Could you please give more information about your problem? Did
dragonfly-main.py give any output when it crashed? (If you ran it by
double-clicking and the DOS box disappeared quickly, then you should
try running it from a command shell (run cmd.exe from start->run...)
to see its output)

Charlie.

Gad Halevy

unread,
Feb 4, 2010, 3:39:23 AM2/4/10
to dragonf...@googlegroups.com
Hi Charlie;
This is how the command prompt looks like after an attempt to operate dragonfly-main.py


C:\Program Files\natLink\source\dragonfly-0.6.5\dragonfly\examples>python dragon
fly-main.py
root: Request for unknown log name: 'module'
root: Request for unknown log name: 'directory'
UNKNOWN: valid paths: ['C:\\Program Files\\natLink\\source\\dragonfly-0.6.5\\dra
gonfly\\examples\\dragonfly-main.py', 'C:\\Program Files\\natLink\\source\\drago
nfly-0.6.5\\dragonfly\\examples\\notepad_example.py', 'C:\\Program Files\\natLin
k\\source\\dragonfly-0.6.5\\dragonfly\\examples\\notepad_foodgroups.py', 'C:\\Pr
ogram Files\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\outlook_exam
ple.py', 'C:\\Program Files\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\exampl
es\\_fruit_toggle.py']
UNKNOWN: CommandModule('dragonfly-main.py'): Loading module: 'C:\\Program Files\
\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\dragonfly-main.py'
UNKNOWN: valid paths: ['C:\\Program Files\\natLink\\source\\dragonfly-0.6.5\\dra
gonfly\\examples\\notepad_example.py', 'C:\\Program Files\\natLink\\source\\drag
onfly-0.6.5\\dragonfly\\examples\\notepad_foodgroups.py', 'C:\\Program Files\\na
tLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\outlook_example.py', 'C:\\P
rogram Files\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\_fruit_togg
le.py']
UNKNOWN: CommandModule('notepad_example.py'): Loading module: 'C:\\Program Files
\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\notepad_example.py'
UNKNOWN: CommandModule('notepad_example.py'): Error loading module: (-2147352567
, 'Exception occurred.', (0, None, None, None, 0, -2147221164), None)
UNKNOWN: CommandModule('notepad_foodgroups.py'): Loading module: 'C:\\Program Fi
les\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\notepad_foodgroups.p
y'
UNKNOWN: CommandModule('notepad_foodgroups.py'): Error loading module: (-2147352
567, 'Exception occurred.', (0, None, None, None, 0, -2147200966), None)
UNKNOWN: CommandModule('outlook_example.py'): Loading module: 'C:\\Program Files
\\natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\outlook_example.py'
UNKNOWN: CommandModule('outlook_example.py'): Error loading module: (-2147352567
, 'Exception occurred.', (0, None, None, None, 0, -2147200966), None)
UNKNOWN: CommandModule('_fruit_toggle.py'): Loading module: 'C:\\Program Files\\
natLink\\source\\dragonfly-0.6.5\\dragonfly\\examples\\_fruit_toggle.py'
UNKNOWN: CommandModule('_fruit_toggle.py'): Error loading module: (-2147352567,
'Exception occurred.', (0, None, None, None, 0, -2147200966), None)

I tried to operate it from c:\program files\NatLink but I had the same results.

Many thanks;
Regards;
Gadh.


--
You received this message because you are subscribed to the Google Groups "Dragonfly Speech Recognition" group.
To post to this group, send email to dragonf...@googlegroups.com.
To unsubscribe from this group, send email to dragonflyspee...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dragonflyspeech?hl=en.


Charlie Tango

unread,
Feb 14, 2010, 9:48:51 AM2/14/10
to dragonf...@googlegroups.com
Hi Gadh,

Snipped from your console output:

> UNKNOWN: CommandModule('notepad_example.py'): Error loading module: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147221164), None)
> UNKNOWN: CommandModule('notepad_foodgroups.py'): Error loading module: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147200966), None)
> UNKNOWN: CommandModule('outlook_example.py'): Error loading module: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147200966), None)


> UNKNOWN: CommandModule('_fruit_toggle.py'): Error loading module: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147200966), None)

These are the infamous COM errors which give practically no useful
information about what's going on or what might have caused the error.
This is not a Dragonfly problem, it is a limitation of the COM API
offered by SAPI: something went wrong, no additional information
available. :-(

Because of that limitation, I'm afraid the only way for anyone to debug
your problem is to have a live system similar to your own (Windows XP,
SAPI 5.1, etc.) available. I don't have one lying around, so I'll have
to set one up to help you out. It'll take some time though.

In the meantime, do you have a Windows Vista system available to you?
The speech recognition that comes with Vista is quite a bit more
advanced and better integrated. That might let you get a head start
until somebody (me?) can take a look at what's causing your problems.

Regards,
Charlie.

Gad Halevy

unread,
Feb 14, 2010, 2:13:27 PM2/14/10
to dragonf...@googlegroups.com
Hi Charlie,
Many thanks.
I don't have Vista, but I have a dual boot Ubuntu linux, and a windows 7 installation disk.
Right now I'm doing something else, I'll go back to it as soon as I'll finish my other stuff.

Thanks again;
Gadh.

Charlie.

Charlie Tango

unread,
May 1, 2010, 10:17:41 AM5/1/10
to dragonf...@googlegroups.com
Gadh, if you have a chance, give this a try on Windows 7. That OS
also contains WSR and should work a lot better than Windows XP.
Please let us know how that works out.

-- Charlie.
Reply all
Reply to author
Forward
0 new messages