H
HardySpicer
I have an application which uses limited vocab speech recognition
(SAPI5). It gets the phrases from an XML file which I can easily add
to manually. The program then has a case statement which then
effectively goes through each command seeing if it was the one
selected by the recognition engine. That bit is fine.
However, at present to add a new command I must manually edit the Xml
file and add another case statement to my main form - then re-compile.
I wish to do this as an end-user would do bye a pop-up settings window
and enter the new command from the program whilst running. This would
also mean the program changing its case statement. What is the best
approach to this? I could use one If then statement and read the Xml
file I suppose element by element I suppose.
Any ideas?
Thanks
H.
(SAPI5). It gets the phrases from an XML file which I can easily add
to manually. The program then has a case statement which then
effectively goes through each command seeing if it was the one
selected by the recognition engine. That bit is fine.
However, at present to add a new command I must manually edit the Xml
file and add another case statement to my main form - then re-compile.
I wish to do this as an end-user would do bye a pop-up settings window
and enter the new command from the program whilst running. This would
also mean the program changing its case statement. What is the best
approach to this? I could use one If then statement and read the Xml
file I suppose element by element I suppose.
Any ideas?
Thanks
H.