none
Is there any demo to use SpeachSDK(SAPI)? RRS feed

All replies

  • Hi Lillian zhang,

    Here is a sample code which you could download.

    https://www.codeproject.com/Articles/8443/A-Simple-Speech-Application-Using-SAPI-SDK

    The application is a dialog based application written in MFC. It uses only one dialog class CSpeechDlg.

    The steps involved are as follows:

    1. Initialize COM. 
    2. Initialize the Recognizer (to recognize that a speech is being invoked). 
    3. Initialize the RecoEngine (the Speech engine). 
    4. Initialize the RecoContext (the context in which we are going to write the speech application). 
    5. Set a user-defined message that will grab whenever something is spoken, to our window (here dialog). 
    6. Set the speech record interest in RECOGNITION Status. 
    7. Create the default audio input. 
    8. Set the Input to the speech engine. 
    9. Specify the Grammar that we want to use (here we use Dictation Grammar). 
    10. Load the Dictation Tool.

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 20, 2017 1:41 AM
    Moderator