Partilhar via


WinFX speech API changes in PDC CTP

Joseph Kilada wrote "Robert, can you give any hints as to whether the WinFX Speech APIs have changed at all in build 5219 (or whatever the PDC build is) compared to Beta 1?"

Sometime soon I'll post updates to all the samples I've put in this blog, to make them work with the PDC CTP.

The major functionality hasn't changed.  But we renamed some functions, changed some parameter lists, and rearranged some namespaces, primarily to address scenarios and feedback raised to us since we published the beta 1 release candidate.  Thank you to all of you who posted and mailed feedback.

We also added a new set of classes for simplifying grammar building.  We retained the SRGS classes from beta 1.  But these are overkill for most grammars.  So the GrammarBuilder and its associated classes were added to address mainstream scenarios.

The idea is that you'll be able to do things like "I'd like a <size> <topping> pizza" very easily:

Dim pizzaBuilder As New GrammarBuilder

pizzaBuilder.AppendPhrase("I'd like a")

pizzaBuilder.AppendChoices(New Choices("small", "regular", "large"))

pizzaBuilder.AppendChoices(New Choices("pepperoni", "cheese"))

pizzaBuilder.AppendPhrase("pizza")

'load it into the recognizer

_reco.LoadGrammar(New Grammar(pizzaBuilder))

Comments

  • Anonymous
    September 16, 2005
    I like it. That looks like it will be much quicker for building basic grammars. I'll give it a try as soon as the PDC CTP shows up on MSDN.