none
How to add a pronunciation when adding word in lexicon? RRS feed

  • Question

  • Hello everybody.

    I have an application working with SAPI, and sometimes I add in the lexicon some words and the following code is working fine :

    var langId = CultureInfo.CurrentCulture.LCID;
    var lexicon = new SpLexicon();
    lexicon.AddPronunciation("test", langId);

    But I would like that the speech recognizer engine, recognize this word better by adding a pronunciation with my voice (like Windows' Speech Recognition, when you add a word in the dictionary, you have the choice to add a pronunciation with voice if you want).

    How I can do that in C# please?

    PS : my application is WPF application.

    Thank you in advance for your precious help.

    Tuesday, April 1, 2014 9:02 AM

Answers