ISpeechPhraseProperty Id Property (SAPI 5.4)

Microsoft Speech API 5.4

Interface: ISpeechPhraseProperty

Id Property

The Id property returns the ID of the semantic property.

The ID is the numeric identifier associated with the ISpeechPhraseProperty.Name property. This property must be explicitly marked with the PROPID label.

Syntax

Set: (This property is read-only)
Get: Long = ISpeechPhraseProperty.Id

Parts

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

Remarks

Either Name or Id (if available) may be used to identify the rule invoked. Some languages, such as Visual Basic, can use strings in a Select Case statement. Therefore, the rule Name may be used directly in the Select Case statement. Other languages, such as C/C++ can only use numeric values in switch statements. In this case, the Id is more appropriate.

Example

See the example for ISpeechPhraseProperty.Name for more information.