GotSpeech.NET

The online community for Microsoft Speech Server developers
Welcome to GotSpeech.NET Sign in | Join | Help
in Search
Computer-Talk

Changing Grammar Files During Runtime

Last post 09-22-2008, 11:59 AM by marshallharrison. 2 replies.
Sort Posts: Previous Next
  •  08-10-2008, 8:55 AM 6656

    Changing Grammar Files During Runtime

    I am trying to improve recognition of users using very large grammar files, by trying to reprocess a user's audio input through more then one grammar file, it's a bit hard to explain but it's something like the following:

     Say a user is asked for their favourite artist and song in the same sentence. The user says "Michael Jackson Thriller". I want to first load up a grammar that will just recognize an album name from thousands and it would look something like "<Wildcard> <Album>" and then depending on the album's name, it will load up another grammar which will have the songs in that grammar such as "<Song> <Wildcard>" all using the same input recorded from the user.

    Basically once the user says the album for Thriller and song, a grxml file with Thriller's songs are placed in the second grammar file instead of every song by every album. So then instead of asking the user "What is the album?" and then afterwards "What is the song?", I do it all in one process.

     Does anyone know if this is possible using VR Workflows or if they have done this before or know how?

    Filed under: ,
  •  09-22-2008, 6:16 AM 7098 in reply to 6656

    Re: Changing Grammar Files During Runtime

    Sorry for the delayed response on this. The simple answer is that Speech Server doesn't support re-recognition.  However, for the given example, you should just make a single grammar containing the artist names, with each artist name followed by the albums for the artist followed by the songs for that album.  The recognition engine should be able to handle this. 

    To address load times, make sure you put it into the pre-load manifest for Speech Server.  Better yet, write yourself an executable that runs the grammar through SrgsCompiler.Compile (search in the Speech Server documentation for this method), and pre-load the compiled form.  This method prepares the grammar for a particular engine, so make sure you have the same engines installed when running the exe as on your production box.

     


    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
  •  09-22-2008, 11:59 AM 7110 in reply to 7098

    Re: Changing Grammar Files During Runtime

    Check out "Using FormFillingDialog Activities" - http://gotspeech.net/eLearning/

     

    That should give you some ideas on how to do this and allow for both "directed input" or "all at once" responses.


    Marshall Harrison
    Microsoft MVP, Office Communications Server


    www.GoldSys.com
    W: 303.447.2774
    H: 904.342-6205

    the gotspeech guy
View as RSS news feed in XML