microsoft-speech-api

how to update srgs grammar in C#

自闭症网瘾萝莉.ら 提交于 2019-12-12 02:15:04
问题 I have created srgs file for semantic recognition, now i want to udate myGrammar file,Now How to i update my_Grammar.xml file and add more cities in item tag from textbox. helping material regarding this will be appreciated and thanks in advance. <grammar version="1.0" xml:lang="en-US" mode="voice" root="destination" xmlns="http://www.w3.org/2001/06/grammar" tag-format="semantics/1.0"> <rule id="Source"> <one-of> <item> Karachi </item> <item> Lahore </item> <item> Abbottabad </item> <item>

Does Microsoft SAPI support speech recognition on offline mode just like system.speech api?

旧城冷巷雨未停 提交于 2019-12-11 12:02:37
问题 I have read official documentation of Microsoft SAPI but I couldn't find about whether the api can be used on offline mode or not. in there, they said that Microsoft SAPI is server based speech recognition api. So It seems like it doesn't support but I have to make sure. Can I use Microsoft SAPI on offline just like system.speech ? 回答1: That link does not say what you think it says. Both Microsoft.Speech.Recognition (server engine) and System.Speech.Recognition (desktop engine) run entirely

Matching wildcard/dictation in Microsoft Speech Grammar

最后都变了- 提交于 2019-12-11 04:44:33
问题 I'm using Microsoft Speech API to load a grxml grammar: Grammar grammar = new Grammar(file); grammar.Enabled = true; SpeechRecognitionEngine sre = GetEngine(); sre.LoadGrammarAsync(grammar); Based on MSDN I can not find tag to match a wildcard / spoken text like: <item>My message is {dictation}</item> It seems to be availalble with code with a DictationGrammar and appendDictation(). It's also available with WSRMacro XML using * but I do not how to do it in XML ? The skip text but I need to

Microsoft Speech Recognition: Alternate results with confidence score?

落花浮王杯 提交于 2019-12-05 14:45:38
I'm new to working with the Microsoft.Speech recognizer (using Microsoft Speech Platform SDK Version 11) and I'm trying to have it output the n-best recognition matches from a simple grammar, along with the confidence score for each. According to the documentation (and as mentioned in the answer to this question ), one should be able to use e.Result.Alternates to access the recognized words other than the top-scoring one. However, even after resetting the confidence rejection threshold to 0 (which should mean nothing is rejected), I still only get one result, and no alternates (although the

SAPI Symbol Usage for Speech Dictionary Input

风格不统一 提交于 2019-12-02 18:58:14
问题 I've been doing some work to add words and pronunciations to the Windows speech dictionary via the SpLexicon Interface of SAPI 5.4 (which I think is the only way to do it) via the AddPronunciation function, or in my case: // Initialize SpLexicon instance SpLexicon lex = new SpLexicon(); // Specify the word to add to the speech dictionary string myWord = "father"; // Set the language ID (US English) int langid = new System.Globalization.CultureInfo("en-US").LCID; // Specify the word's part of