你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VoiceLiveSessionResponse Class

Definition

Base for session configuration in the response.

public class VoiceLiveSessionResponse : System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.VoiceLiveSessionResponse>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.VoiceLiveSessionResponse>
public class VoiceLiveSessionResponse : Azure.AI.VoiceLive.VoiceLiveSessionOptions, System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.VoiceLiveSessionResponse>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.VoiceLiveSessionResponse>
type VoiceLiveSessionResponse = class
    interface IJsonModel<VoiceLiveSessionResponse>
    interface IPersistableModel<VoiceLiveSessionResponse>
type VoiceLiveSessionResponse = class
    inherit VoiceLiveSessionOptions
    interface IJsonModel<VoiceLiveSessionResponse>
    interface IPersistableModel<VoiceLiveSessionResponse>
Public Class VoiceLiveSessionResponse
Implements IJsonModel(Of VoiceLiveSessionResponse), IPersistableModel(Of VoiceLiveSessionResponse)
Public Class VoiceLiveSessionResponse
Inherits VoiceLiveSessionOptions
Implements IJsonModel(Of VoiceLiveSessionResponse), IPersistableModel(Of VoiceLiveSessionResponse)
Inheritance
VoiceLiveSessionResponse
Inheritance
VoiceLiveSessionResponse
Implements

Constructors

VoiceLiveSessionResponse()

Initializes a new instance of VoiceLiveSessionResponse.

Properties

Animation

The animation configuration for the session.

Animation

The animation configuration for the session.

(Inherited from VoiceLiveSessionOptions)
Avatar

Configuration for avatar streaming and behavior during the session.

Avatar

Configuration for avatar streaming and behavior during the session.

(Inherited from VoiceLiveSessionOptions)
Id

The unique identifier for the session.

InputAudioEchoCancellation

Configuration for echo cancellation during server-side audio processing.

InputAudioEchoCancellation

Configuration for echo cancellation during server-side audio processing.

(Inherited from VoiceLiveSessionOptions)
InputAudioFormat

Input audio format. Default is 'pcm16'.

InputAudioFormat

Input audio format. Default is 'pcm16'.

(Inherited from VoiceLiveSessionOptions)
InputAudioNoiseReduction

Configuration for input audio noise reduction.

InputAudioNoiseReduction

Configuration for input audio noise reduction.

(Inherited from VoiceLiveSessionOptions)
InputAudioSamplingRate

Input audio sampling rate in Hz. Available values:

  • For pcm16: 8000, 16000, 24000

  • For g711_alaw/g711_ulaw: 8000

InputAudioSamplingRate

Input audio sampling rate in Hz. Available values:

  • For pcm16: 8000, 16000, 24000

  • For g711_alaw/g711_ulaw: 8000

(Inherited from VoiceLiveSessionOptions)
InputAudioTranscription

Configuration for input audio transcription.

InputAudioTranscription

Configuration for input audio transcription.

(Inherited from VoiceLiveSessionOptions)
Instructions

Optional instructions to guide the model's behavior throughout the session.

Instructions

Optional instructions to guide the model's behavior throughout the session.

(Inherited from VoiceLiveSessionOptions)
MaxResponseOutputTokens

Gets or sets the maximum number of tokens to generate in the response.

MaxResponseOutputTokens

Gets or sets the maximum number of tokens to generate in the response.

(Inherited from VoiceLiveSessionOptions)
Modalities

The modalities to be used in the session.

Modalities

The modalities to be used in the session.

(Inherited from VoiceLiveSessionOptions)
Model

The model for the session.

Model

The model for the session.

(Inherited from VoiceLiveSessionOptions)
OutputAudioFormat

Output audio format. Default is 'pcm16'.

OutputAudioFormat

Output audio format. Default is 'pcm16'.

(Inherited from VoiceLiveSessionOptions)
OutputAudioTimestampTypes

Types of timestamps to include in audio response content.

OutputAudioTimestampTypes

Types of timestamps to include in audio response content.

(Inherited from VoiceLiveSessionOptions)
Temperature

Controls the randomness of the model's output. Range: 0.0 to 1.0. Default is 0.7.

Temperature

Controls the randomness of the model's output. Range: 0.0 to 1.0. Default is 0.7.

(Inherited from VoiceLiveSessionOptions)
ToolChoice

Gets or sets the tool choice strategy for response generation.

ToolChoice

Gets or sets the tool choice strategy for response generation.

(Inherited from VoiceLiveSessionOptions)
Tools

Configuration for tools to be used during the session, if applicable.

Tools

Configuration for tools to be used during the session, if applicable.

(Inherited from VoiceLiveSessionOptions)
TurnDetection

Gets or sets the TurnDetection.

TurnDetection

Gets or sets the TurnDetection.

(Inherited from VoiceLiveSessionOptions)
Voice

Gets or sets the Voice.

Voice

Gets or sets the Voice.

(Inherited from VoiceLiveSessionOptions)

Methods

JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VoiceLiveSessionOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from VoiceLiveSessionOptions)
IJsonModel<VoiceLiveSessionOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from VoiceLiveSessionOptions)
IJsonModel<VoiceLiveSessionResponse>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<VoiceLiveSessionResponse>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<VoiceLiveSessionOptions>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from VoiceLiveSessionOptions)
IPersistableModel<VoiceLiveSessionOptions>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from VoiceLiveSessionOptions)
IPersistableModel<VoiceLiveSessionOptions>.Write(ModelReaderWriterOptions) (Inherited from VoiceLiveSessionOptions)
IPersistableModel<VoiceLiveSessionResponse>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<VoiceLiveSessionResponse>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<VoiceLiveSessionResponse>.Write(ModelReaderWriterOptions)

Applies to