Thread: Voice activation (change from dictation to commands)

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    17

    Voice activation (change from dictation to commands)

    i used this code to set up the grammer for dictation, this will recognise any word. but i want to load up a list commands and only recognise these commands.

    Code:
    SUCCEEDED(hr = cpRecoCtxt->CreateGrammar(0, &cpGrammar)) &&
                    SUCCEEDED(hr = cpGrammar->LoadDictation(NULL, SPLO_STATIC)) &&
                    SUCCEEDED(hr = cpGrammar->SetDictationState(SPRS_ACTIVE)))

    i am using sapi 5.1
    When i find myself in times of trouble. mother mary comes to me, speaking words of wisdom, let it be C

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Ok, that's pretty vague.

    But thanks for playing.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    17
    If you know the answer you will know what i am talking about
    When i find myself in times of trouble. mother mary comes to me, speaking words of wisdom, let it be C

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I don't know what you're talking about, but I would look here for the awnser.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  2. Need help with C program
    By ChrisH in forum C Programming
    Replies: 38
    Last Post: 11-13-2004, 01:11 AM
  3. adding a function to a program
    By trippedwire in forum C++ Programming
    Replies: 9
    Last Post: 09-30-2004, 12:35 PM
  4. help with calculating change from a dollar
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 09-13-2002, 03:58 PM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM