SpeechTilesAndamento Docs
Get started
SDK Reference · Type

STAudioProcessingMode

Selects the audio-processing behavior used for playback and recording.

Overview

Both standard and conversational modes permit audio playback and microphone recording or speech recognition to run at the same time. Use conversational processing when these operations run concurrently to suppress acoustic echo from playback entering the microphone. Standard processing does not provide the echo suppression required for reliable simultaneous voice interaction.

public enum STAudioProcessingMode: Sendable {
    case standard
    case conversational
}

standard uses normal audio processing.

conversational enables the processing required to suppress acoustic echo when playback and recording are intentionally active together.

Use STMediaRunner.setAudioProcessingMode(_:completion:) to change modes.

Choose processing mode

STMediaRunner.shared.setAudioProcessingMode(.standard) { result in
    // Check the asynchronous result.
}

Purpose and usage

Choose standard or conversational audio processing using STMediaRunner.setAudioProcessingMode.

Cases

  • .standard — Standard option.
  • .conversational — Conversational option.

Swift example

STMediaRunner.shared.setAudioProcessingMode(.standard)

Where this type is used

See Also