SpeechTilesAndamento Docs
Get started
SDK Reference · Method

initializeAudioPlayer

Initializes the audio-player component used for recorded-audio playback and speech synthesis.

Declaration

public func initializeAudioPlayer() -> STResult

Overview

Call this method before using STMediaRunner operations that require audio playback or speech synthesis.

If the audio player is already initialized, the method returns .success without creating another player.

When the component is created, STMediaRunner applies media-component log levels, permissions, and the current background-audio setting before initializing the player.

Return value

Returns .success when the audio player is available for use. Otherwise returns the STResult produced by player initialization.

See Also