FirebaseAILogic Framework Reference

SpeakerVoiceConfig

public struct SpeakerVoiceConfig : Sendable

Configures a speaker with a unique name/identifier and a specific voice.

  • Creates a configuration for a speaker using a voice name.

    Find the list of supported voices for:

    Declaration

    Swift

    public init(speaker: String, voiceName: String)

    Parameters

    speaker

    The unique name/identifier of the speaker (e.g., "Alice").

    voiceName

    The name of the preset voice to assign to this speaker.