Text Property

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

The text that was just spoken when the event was raised.

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

Syntax

Visual Basic (Declaration)
Public Property Text As String
	Get
	Friend Set
Visual Basic (Usage)
Dim instance As SpeakProgressEventArgs
Dim value As String

value = instance.Text
C#
public string Text { get; internal set; }

Property Value

Type: System..::..String

Returns the text that was just spoken when the event was raised.

Remarks

The SpeechSynthesizer normalizes numbers to the words that correspond to how the number will be spoken. For example, the synthesizer speaks the number "4003" as "four thousand three". It raises a SpeakProgress event for each of the spoken words. However, the Text property for each of the three words is the same. It is the text "4003" from the prompt.

See Also