SpeechTilesAndamento Docs
Get started
SDK Reference · Type

STAudioFileType

Selects WAV, CAF, or M4A file output.

Declaration

public enum STAudioFileType: String, Sendable {
    case wav
    case caf
    case m4a
}

Overview

STAudioFileType selects the file container for audio recorded to a file or URL. A container (such as WAV, CAF, or M4A) is distinct from the codec selected through STAudioFormatID and from the PCM sample representation selected through STAudioCommonFormat. Choose a compatible combination for the target platform.

Cases

  • .wav — Wav option.
  • .caf — Caf option.
  • .m4a — M4a option.

Swift example

let selection: STAudioFileType = .wav

See Also