Sprache

AudioEchoCancellation Class

Definition

Echo cancellation configuration for server-side audio processing.

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

Constructors

Name Description
AudioEchoCancellation()

Initializes a new instance of AudioEchoCancellation.

Properties

Name Description
Channels

Number of input audio channels.

  • `1`: Mono input (default).
  • `2`: Interleaved stereo input where channel 0 is the microphone signal and channel 1 is the echo reference signal.
When set to 2, `reference_source` must be `client` and `input_audio_format` must be `pcm16`.
ReferenceSource

The source of the echo cancellation reference signal.

  • `server`: EC uses the internal TTS loopback as the reference signal (default, existing behavior).
  • `client`: EC uses the client-supplied reference channel (ch1 of stereo input). Internal TTS loopback is skipped.
Type

The type of echo cancellation model to use.

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<AudioEchoCancellation>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<AudioEchoCancellation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<AudioEchoCancellation>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<AudioEchoCancellation>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<AudioEchoCancellation>.Write(ModelReaderWriterOptions)

Applies to