VOICEMDI Sample Doesn't Check for Navigator Application

Last reviewed: March 7, 1996
Article ID: Q147124
The information in this article applies to:
  • Microsoft Speech Software Development Kit (SDK) version 1.0

SUMMARY

The VOICEMDI sample included in the Microsoft Speech SDK 1.0 does not check for a Voice-Navigator application installed on the system. Also, it does not observe the current setting of the UseSpeech registery entry. It is written in the style of a test application and makes calls to IVCmdAttributes::AwakeStateSet() and IVCmdAttributes::EnabledSet().

MORE INFORMATION

All applications on a given site that use voice commands or voice text share the same attribute settings, so applications should not make changes to these settings. Instead, applications should allow the user to change these settings globally using a Voice-Navigator application and observe all the current settings. However, the VOICEMDI sample does not do this; instead, it calls the AwakeStateSet() and EnabledSet() member functions of the IVCmdAttributes interface to modify the settings. Also, it doesn't look for the WM_SPEECHSTARTED and WM_SPEECHENDED messages that notify applications when the user has changed the global settings.

Although the VOICEMDI sample does not follow the guidelines, the CLOCK sample included in the Speech SDK does this in part. The initialization code in the InitState() function in Vcmd.cpp calls the GetVcmdState() function, which checks the current setting of the UseSpeech registry entry. InitState() also registers the messages WM_SPEECHSTARTED and WM_SPEECHENDED, and the MainWndProc() function in Srclk.cpp shows where the messages would be handled, although there is no implementation for the message handling code.

For more information on this topic, click the Index button of the "Microsoft Speech SDK Developer's Guide" (Speech.hlp), and then click the Find tab of the Help Topics dialog box. Search for the voice-navigation or UseSpeech.


Additional reference words: 1.00 SAPI VCMD VTXT
KBCategory: kbmm kbprg
KBSubcategory: MMSpeech


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 7, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.