Member Junction
    Preparing search index...

    Function GetProviderVoiceSettings

    • Picks the provider-specific voice settings for a resolved realtime driver.

      Provider keys (openai, elevenlabs, gemini, assemblyai, …) are matched against the vendor DriverClass (e.g. OpenAIRealtime, ElevenLabsRealtime) by normalized-prefix: both sides are lowercased and stripped of non-alphanumerics, then the driver class must START WITH the provider key (openairealtime.startsWith(openai)). A bare provider name (e.g. 'openai' from ClientRealtimeSessionConfig.Provider) matches the same way. The LONGEST matching key wins when several match.

      Parameters

      • config: RealtimeCoAgentConfig

        The effective configuration.

      • driverClassOrProvider: string

        The vendor DriverClass or the provider key itself.

      Returns JSONObjectLike

      The matched settings object (opaque driver pact), or null when none match.