@langwatch/scenario
    Preparing search index...

    Function resolveVoiceConfig

    • Resolve the per-run voice config.

      Two-tier merge with the run()-boundary override in front of the scenario-level config: optionLevel (from RunOptions.voice) wins field-by-field over scenarioLevel (from ScenarioConfig.voice), then pure defaults fill the rest. The resolved stt is a concrete provider — the default OpenAI provider is constructed here per-run when unset.

      Parameters

      • OptionaloptionLevel: VoiceConfig

        RunOptions.voice — the per-invocation override (seeds the carrier).

      • OptionalscenarioLevel: VoiceConfig

        ScenarioConfig.voice — the carrier that reaches call().

      • Optionaldefaults: Partial<ResolvedVoiceConfig>

        Optional default overrides (test hook).

      Returns ResolvedVoiceConfig