Gets whether the SpeechRecognitionEngine can pronounce the word and where the word's pronunciation is defined.
Namespace:
Microsoft.Speech.Recognition
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function IsPronounceable ( _ word As String _ ) As Pronounceable |
Visual Basic (Usage) |
---|
Dim instance As Grammar Dim word As String Dim returnValue As Pronounceable returnValue = instance.IsPronounceable(word) |
C# |
---|
public Pronounceable IsPronounceable( string word ) |
Parameters
- word
- Type: System..::..String
The word to check.
Return Value
Type: Microsoft.Speech.Recognition..::..PronounceableA value that indicates whether the word is pronounceable and where the pronunciation is defined.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when this Grammar is not loaded in a speech recognizer. |
Remarks
The speech recognizer in which the Grammar is loaded determines whether the word is pronounceable. This check is not case-sensitive. A word may be pronounceable even though its pronunciation is not defined in a lexicon or in the SpeechRecognitionEngine's dictionary. The SpeechRecognitionEngine can create pronunciations for uncommon words.