Safely destroys a speech port, releasing the acquired license and other associated resources.
The port has been successfully destroyed.
The port is not valid (either CreateClient has not been called or DestroyClient has already been called).
An exception occurred while processing the request.
Each open port requires one license. For this reason, you should close every port as soon as it is no longer needed.
char *grammar_label = "MyGram";
char *grammar_file_path = "builtin:grammar/digits";
port.CreateClient(NULL, NULL, 0);
// Load and use other assets appropriate to the function of the program.
// DestroyClient is the last thing called before the program terminates.