ISpeechPhraseInfo Replacements Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechPhraseInfo

Replacements Property


The Replacements property returns possible text replacements.


Syntax

Set: (This property is read-only)
Get: ISpeechPhraseReplacements = ISpeechPhraseInfo.Replacements

Parts

ISpeechPhraseInfo
The owning object.
ISpeechPhraseReplacements
Set: (This property is read-only)
Get: An ISpeechPhraseReplacements interface for the replacements.

Example

The following code snippet assumes a valid recognition RecoResult, although it still checks for validity. The sample displays a message box for each item in the replacement list.

Dim pi As ISpeechPhraseInfo
Dim rep As ISpeechPhraseReplacement

Set pi = RecoResult.PhraseInfo

For Each rep In pi.Replacements.Count
    MsgBox rep.Text
Next