Prompt Constructor (String, SynthesisTextFormat)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Creates a new instance of the Prompt class and specifies the text to be spoken and whether its format is plain text or markup language.

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

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	textToSpeak As String, _
	media As SynthesisTextFormat _
)
Visual Basic (Usage)
Dim textToSpeak As String
Dim media As SynthesisTextFormat

Dim instance As New Prompt(textToSpeak, _
	media)
C#
public Prompt(
	string textToSpeak,
	SynthesisTextFormat media
)

Parameters

textToSpeak
Type: System..::..String

The text to be spoken.

media
Type: Microsoft.Speech.Synthesis..::..SynthesisTextFormat

A value that specifies the format of the text.

See Also