ISpeechPhraseInfo LanguageId Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechPhraseInfo

LanguageId Property


The LanguageId property returns the language ID for the phrase elements.


Syntax

Set: (This property is read-only)
Get: Long = ISpeechPhraseInfo.LanguageId

Parts

ISpeechPhraseInfo
The owning object.
Long
Set: (This property is read-only)
Get: A Long variable that gets the property.

Remarks

This is the same as the Win32 Language Identifier (LANGID).

Example

The following code snippet assumes a valid recognition, RecoResult, although it still checks for validity. Standard English has a LANGID decimal value of 1033.

If Not RecoResult Is Nothing Then
	Dim rp As ISpeechPhraseInfo
	Set rp = RecoResult.PhraseInfo
	MsgBox "LANGID: " & rp.LanguageId
End If