FirebaseAILogic Framework Reference

MultiSpeakerVoiceConfig

public struct MultiSpeakerVoiceConfig : Sendable

Configuration for a multi-speaker audio generation setup.

Enables the model to generate audio containing multiple distinct speakers, alternating voices dynamically based on speaker labels in the prompt.

Warning

Multi-speaker configurations are not currently supported by the Live API (e.g., LiveGenerationConfig).

  • Creates a configuration for the multi-speaker setup.

    Declaration

    Swift

    public init(speakerVoiceConfigs: [SpeakerVoiceConfig])

    Parameters

    speakerVoiceConfigs

    A list of voice configurations for the participating speakers. Currently, the backend requires exactly two speaker voice configurations.