MediaPipeTasksAudio Framework Reference

TtsVoiceInfo

public struct TtsVoiceInfo : Sendable, Equatable

Voice metadata descriptor returned by TextToSpeech.listVoices() (also available as VoiceInfo).

  • Unique voice identifier.

    Declaration

    Swift

    public var voiceId: String
  • Human-readable display name of the voice.

    Declaration

    Swift

    public var displayName: String
  • BCP-47 locale tag for the voice.

    Declaration

    Swift

    public var locale: String
  • Native audio sample rate in Hz.

    Declaration

    Swift

    public var sampleRateHz: Int
  • Whether the voice weights are present in the loaded bundle.

    Declaration

    Swift

    public var isDownloaded: Bool