SpeakAsync Method (PromptBuilder)

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Asynchronously speaks the contents of a PromptBuilder object.

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

Syntax

Visual Basic (Declaration)
Public Function SpeakAsync ( _
	promptBuilder As PromptBuilder _
) As Prompt
Visual Basic (Usage)
Dim instance As SpeechSynthesizer
Dim promptBuilder As PromptBuilder
Dim returnValue As Prompt

returnValue = instance.SpeakAsync(promptBuilder)
C#
public Prompt SpeakAsync(
	PromptBuilder promptBuilder
)

Parameters

promptBuilder
Type: Microsoft.Speech.Synthesis..::..PromptBuilder

The content to speak.

Return Value

Type: Microsoft.Speech.Synthesis..::..Prompt

Returns the object that contains the content to speak.

Remarks

To synchronously speak the contents of a PromptBuilder object, use Speak(PromptBuilder).

See Also