|
| |
How to use
This
code illustrates some basic features of the library
- Initialize the library
-
Create a new dictionary includes 4 words: Táo, Cam, Chanh,
Dưa hấu
-
Receive command from the user constantly and print to the
output
-
The application will be ended when receive command “Thoát”
CreateVSpeechLibrary();
BeginDictionary("traicay",
1); //Using VIQR code table
AddWord("ta'o");
AddWord("cam");
AddWord("chanh");
AddWord("du+a ha^'u");
AddWord("thoa't");
EndDictionary();
EnableDictionary("traicay");
while (true)
{
string s =
GetCommand();
if (s !=
"")
{
if (s ==
"thoa't")
break;
Console.WriteLine("s");
}
}
FreeVSpeechLibrary(); |
|