Note

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

RecognizedPhrase.HomophoneGroupId Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the identifier for the homophone group for the phrase.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public ReadOnly Property HomophoneGroupId As Integer
    Get
'Usage
Dim instance As RecognizedPhrase
Dim value As Integer

value = instance.HomophoneGroupId
public int HomophoneGroupId { get; }

Property Value

Type: System.Int32
The identifier for the homophone group for the phrase.

Remarks

The speech recognizer assigns a group identifier to all recognition alternates that have the same pronunciation. For each alternate that has a unique pronunciation, the recognizer creates a homophone group. The speech recognizer generates new group of identifiers for each recognition operation, and the identifiers cannot be used to compare alternates from generated from separate recognition operations.

For example, for a recognition result that contained the alternates "the tale", "the tail", and "the ale", the first two alternates would belong to one homophone group, and the last alternate would be the single member of a second homophone group.

See Also

Reference

RecognizedPhrase Class

RecognizedPhrase Members

Microsoft.Speech.Recognition Namespace