Share via


VoiceLiveSession.StartResponseAsync Method

Definition

Overloads

Name Description
StartResponseAsync(CancellationToken)

Starts a new response generation.

StartResponseAsync(VoiceLiveSessionOptions, CancellationToken)

Starts a new response generation with specific options.

StartResponseAsync(String, CancellationToken)

Starts a new response generation with additional instructions.

StartResponseAsync(CancellationToken)

Source:
VoiceLiveSession.cs
Source:
VoiceLiveSession.cs

Starts a new response generation.

public virtual System.Threading.Tasks.Task StartResponseAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member StartResponseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartResponseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function StartResponseAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

An optional cancellation token.

Returns

A task that represents the asynchronous operation.

Applies to

StartResponseAsync(VoiceLiveSessionOptions, CancellationToken)

Source:
VoiceLiveSession.cs
Source:
VoiceLiveSession.cs

Starts a new response generation with specific options.

public virtual System.Threading.Tasks.Task StartResponseAsync(Azure.AI.VoiceLive.VoiceLiveSessionOptions responseOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member StartResponseAsync : Azure.AI.VoiceLive.VoiceLiveSessionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartResponseAsync : Azure.AI.VoiceLive.VoiceLiveSessionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function StartResponseAsync (responseOptions As VoiceLiveSessionOptions, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

responseOptions
VoiceLiveSessionOptions

The options for response generation.

cancellationToken
CancellationToken

An optional cancellation token.

Returns

A task that represents the asynchronous operation.

Applies to

StartResponseAsync(String, CancellationToken)

Source:
VoiceLiveSession.cs
Source:
VoiceLiveSession.cs

Starts a new response generation with additional instructions.

public virtual System.Threading.Tasks.Task StartResponseAsync(string additionalInstructions, System.Threading.CancellationToken cancellationToken = default);
abstract member StartResponseAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartResponseAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function StartResponseAsync (additionalInstructions As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

additionalInstructions
String

Additional instructions for this response.

cancellationToken
CancellationToken

An optional cancellation token.

Returns

A task that represents the asynchronous operation.

Exceptions

Thrown when additionalInstructions is null.

Applies to