MediaPipeTasksAudio Framework Reference

SynthesisOptions

struct SynthesisOptions: Sendable, Equatable

Per-utterance synthesis overrides passed to TextToSpeech.synthesize(_:options:) and TextToSpeech.synthesizeStream(_:options:). Both fields default to nil so non-English voices (e.g. "ef_dora", "zf_xiaobei") automatically infer their native language from the voice metadata.

  • Declaration

    Swift

    init(voiceId: String? = nil, locale: String? = nil)
  • Declaration

    Swift

    var locale: String?
  • Declaration

    Swift

    var voiceId: String?