SpeechTilesAndamento Docs
Get started
SDK Reference · Method

setAudioOutput

Changes the audio-output selection used by the Conversation runtime.

Declaration

public func setAudioOutput(_ output: STAudioOutput) -> STResult

Overview

Requires an initialized runner. Output routing is coordinated by the Conversation manager and underlying media environment.

Selecting an output

Select an STAudioOutput supported by the current platform and audio environment. Output routing can be affected by device and system changes.

Parameters

  • output — STAudioOutput Refer to the method-specific behavior and usage example for how this parameter is used.

Usage example

let selectedOutput = conversation.audioOutput()
_ = conversation.setAudioOutput(selectedOutput)

Result handling

This method returns an STResult. Check the returned value for success or failure.

See Also