
Originally Posted by
0l33l
Code:
case GetPropValue(Result, ['chosencolour', 'colourvalue']) of
1: viewmap;
2: viewguidance;
3: voiceup;
4: voicedown;
5: exitnavigation;
6: startroutis;
7: quitroutis;
8: enterdestination;
9: sendtoroutis('A', 9);
10: sendtoroutis('B', 10);
11: sendtoroutis('C', 11);
12: sendtoroutis('D', 12);
13: sendtoroutis('E', 13);
14: sendtoroutis('F', 14);
That's basically some of the code, the rest just goes on like that. What would I need to separate the sendtoroutis command (the send letters)?
In your call to sendtoroutis, instead of hardcoding the letter value, you can look up the property value for a different semantic property. I'm not that familiar with Delphi or how SAPI is called in that environment, but it'd be similar to your
Code:
GetPropValue(Result, ['chosencolour', 'colourvalue'])
. Perhaps it would look like
Code:
GetPropValue(Result, ['chosencolour', 'keysToSend'])
Does that make any sense? I can show you more precisely in C++, but I bet that's not at all like Delphi. :-)

Originally Posted by
0l33l
I'm using SAPI 6.1 BTW

Cool. Where you'd get that? From the speech server sdk?

Originally Posted by
tbird2340
So about that message that someone posted about there being a newer SAPI in Office 2003 (I think that's what he said)... Is that available anywhere to download? He said it worked better then 5...
That was me. The SR engine is newer. It is better. Quite a bit better. It's not currently downloadable for redistribution. It is, however, contained in the speech server sdk, I believe.
Bookmarks