SpeechTilesAndamento Docs
Get started
SDK Reference · Type

STAudioFormatID

Selects linear PCM, AAC, or ALAC encoding.

Declaration

public enum STAudioFormatID: String, Sendable {
    case linearPCM = "linearpcm"
    case aac = "aac"
    case alac = "alac"
}

Overview

STAudioFormatID identifies the encoding requested for audio recorded to a file or URL, including linear PCM, AAC, and ALAC. Encoding is separate from the file container and, for linear PCM, from the in-memory sample representation. Codec-specific encoder settings apply only to the matching encoder.

Cases

  • .linearPCM — Linear pcm option.
  • .aac — Aac option.
  • .alac — Alac option.

Swift example

let selection: STAudioFormatID = .linearPCM

See Also