Partilhar via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Grammar.IsPronounceable Method

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

'Declaration
Public Function IsPronounceable ( _
    word As String _
) As Pronounceable
'Usage
Dim instance As Grammar
Dim word As String
Dim returnValue As Pronounceable

returnValue = instance.IsPronounceable(word)
public Pronounceable IsPronounceable(
    string word
)

Parameters

Return Value

Type: Microsoft.Speech.Recognition.Pronounceable
A 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.

See Also

Reference

Grammar Class

Grammar Members

Microsoft.Speech.Recognition Namespace