import { n as createRealtimeVoiceAudioQueue, t as RealtimeVoiceSessionLifecycle } from "../realtime-session-lifecycle-Dcc59a-5.js";
import { a as normalizeRealtimeVoiceActivationNamePrefix, c as sortRealtimeVoiceActivationNames, i as normalizeRealtimeVoiceActivationName, n as isSupportedRealtimeVoiceActivationName, o as normalizeSupportedRealtimeVoiceActivationName, r as matchRealtimeVoiceActivationName, s as realtimeVoiceActivationNameWordCount, t as REALTIME_VOICE_ACTIVATION_NAME_MAX_WORDS } from "../activation-name-DlfylsUE.js";
import { $ as REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ, A as buildRealtimeVoiceSessionInstructions, B as normalizeRealtimeVoiceConsultQuestion, C as REALTIME_VOICE_AGENT_CONSULT_TOOL, D as buildRealtimeVoiceAgentConsultPolicyInstructions, E as buildRealtimeVoiceAgentConsultChatMessage, F as resolveRealtimeVoiceAgentConsultTools, G as recordTalkObservabilityEvent, H as readSpeakableRealtimeVoiceToolResult, I as resolveRealtimeVoiceAgentConsultToolsAllow, J as createTalkDiagnosticEvent, K as createTalkLogRecord, L as createRealtimeVoiceOutputActivityTracker, M as isRealtimeVoiceAgentConsultToolPolicy, N as parseRealtimeVoiceAgentConsultArgs, O as buildRealtimeVoiceAgentConsultPrompt, P as resolveRealtimeVoiceAgentConsultToolPolicy, Q as REALTIME_VOICE_AUDIO_FORMAT_G711_ULAW_8KHZ, R as createRealtimeVoiceForcedConsultCoordinator, S as consultRealtimeVoiceAgent, T as REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES, U as createTalkSessionController, V as readRealtimeVoiceConsultQuestion, W as normalizeTalkTransport, X as TALK_EVENT_TYPES, Y as recordTalkDiagnosticEvent, Z as createTalkEventSequencer, _ as listRealtimeVoiceProviders, a as getRealtimeVoiceTranscriptHealth, b as REALTIME_VOICE_AGENT_CONSULT_SENDER_AUTH_VERSION, c as recordRealtimeVoiceTranscript, d as resolveConfiguredRealtimeVoiceProvider, et as normalizeRealtimeVoiceResponseOutcome, g as getRealtimeVoiceProvider, h as canonicalizeRealtimeVoiceProviderId, i as getRealtimeVoiceBridgeEventHealth, j as collectRealtimeVoiceAgentConsultVisibleText, k as buildRealtimeVoiceAgentConsultWorkingResponse, l as createRealtimeVoiceBridgeSession, nt as toOpenAICompatibleRealtimeAudioFormat, o as isLikelyRealtimeVoiceAssistantEchoTranscript, q as recordTalkLogEvent, r as extendRealtimeVoiceOutputEchoSuppression, s as recordRealtimeVoiceBridgeEvent, t as createRealtimeVoiceSessionHarness, tt as realtimeVoiceAudioDurationMs, v as normalizeRealtimeVoiceProviderId, w as REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME, x as assertRealtimeVoiceAgentConsultModelSelectionUnlocked, y as createRealtimeVoiceAgentTalkbackQueue, z as matchRealtimeVoiceConsultQuestions } from "../realtime-session-harness-Bar0SzWc.js";
import { a as resolveRealtimeVoiceMinBargeInAudioEndMs, c as classifyRealtimeVoiceConsultToolCall, i as resolveRealtimeVoiceInterruptResponseOnInputAudio, l as createRealtimeVoiceTurnContextTracker, n as isRealtimeVoiceWakeNameRequired, o as resolveRealtimeVoiceSessionPolicy, r as resolveRealtimeVoiceBargeIn, s as buildRealtimeVoiceSpeakExactMessage, t as resolveRealtimeVoiceFastContextConsult, u as classifySkippableRealtimeVoiceConsultTranscript } from "../realtime-voice-3l4nbarj.js";
import { a as buildRealtimeVoiceAgentCancelProviderResult, c as normalizeRealtimeVoiceAgentControlMode, d as shouldAutoControlRealtimeVoiceAgentText, i as REALTIME_VOICE_AGENT_CONTROL_TOOL_NAME, l as parseRealtimeVoiceAgentControlToolArgs, n as REALTIME_VOICE_AGENT_CONTROL_MODES, o as buildRealtimeVoiceAgentControlSpeechMessage, r as REALTIME_VOICE_AGENT_CONTROL_TOOL, s as classifyRealtimeVoiceAgentControlText, t as controlRealtimeVoiceAgentRun, u as resolveRealtimeVoiceAgentControlIntent } from "../agent-run-control-DdG6onxo.js";
import { a as createStreamingPcmResampler, c as resamplePcm, i as convertPcmToMulaw8k, l as resamplePcmTo8k, n as createSpeechThresholdGate, o as mulawToPcm, r as readPcm16AudioStats, s as pcmToMulaw, t as calculateMulawRms } from "../audio-energy-BP9DXUkU.js";
export { REALTIME_VOICE_ACTIVATION_NAME_MAX_WORDS, REALTIME_VOICE_AGENT_CONSULT_SENDER_AUTH_VERSION, REALTIME_VOICE_AGENT_CONSULT_TOOL, REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME, REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES, REALTIME_VOICE_AGENT_CONTROL_MODES, REALTIME_VOICE_AGENT_CONTROL_TOOL, REALTIME_VOICE_AGENT_CONTROL_TOOL_NAME, REALTIME_VOICE_AUDIO_FORMAT_G711_ULAW_8KHZ, REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ, RealtimeVoiceSessionLifecycle, TALK_EVENT_TYPES, assertRealtimeVoiceAgentConsultModelSelectionUnlocked, buildRealtimeVoiceAgentCancelProviderResult, buildRealtimeVoiceAgentConsultChatMessage, buildRealtimeVoiceAgentConsultPolicyInstructions, buildRealtimeVoiceAgentConsultPrompt, buildRealtimeVoiceAgentConsultWorkingResponse, buildRealtimeVoiceAgentControlSpeechMessage, buildRealtimeVoiceSessionInstructions, buildRealtimeVoiceSpeakExactMessage, calculateMulawRms, canonicalizeRealtimeVoiceProviderId, classifyRealtimeVoiceAgentControlText, classifyRealtimeVoiceConsultToolCall, classifySkippableRealtimeVoiceConsultTranscript, collectRealtimeVoiceAgentConsultVisibleText, consultRealtimeVoiceAgent, controlRealtimeVoiceAgentRun, convertPcmToMulaw8k, createRealtimeVoiceAgentTalkbackQueue, createRealtimeVoiceAudioQueue, createRealtimeVoiceBridgeSession, createRealtimeVoiceForcedConsultCoordinator, createRealtimeVoiceOutputActivityTracker, createRealtimeVoiceSessionHarness, createRealtimeVoiceTurnContextTracker, createSpeechThresholdGate, createStreamingPcmResampler, createTalkDiagnosticEvent, createTalkEventSequencer, createTalkLogRecord, createTalkSessionController, extendRealtimeVoiceOutputEchoSuppression, getRealtimeVoiceBridgeEventHealth, getRealtimeVoiceProvider, getRealtimeVoiceTranscriptHealth, isLikelyRealtimeVoiceAssistantEchoTranscript, isRealtimeVoiceAgentConsultToolPolicy, isRealtimeVoiceWakeNameRequired, isSupportedRealtimeVoiceActivationName, listRealtimeVoiceProviders, matchRealtimeVoiceActivationName, matchRealtimeVoiceConsultQuestions, mulawToPcm, normalizeRealtimeVoiceActivationName, normalizeRealtimeVoiceActivationNamePrefix, normalizeRealtimeVoiceAgentControlMode, normalizeRealtimeVoiceConsultQuestion, normalizeRealtimeVoiceProviderId, normalizeRealtimeVoiceResponseOutcome, normalizeSupportedRealtimeVoiceActivationName, normalizeTalkTransport, parseRealtimeVoiceAgentConsultArgs, parseRealtimeVoiceAgentControlToolArgs, pcmToMulaw, readPcm16AudioStats, readRealtimeVoiceConsultQuestion, readSpeakableRealtimeVoiceToolResult, realtimeVoiceActivationNameWordCount, realtimeVoiceAudioDurationMs, recordRealtimeVoiceBridgeEvent, recordRealtimeVoiceTranscript, recordTalkDiagnosticEvent, recordTalkLogEvent, recordTalkObservabilityEvent, resamplePcm, resamplePcmTo8k, resolveConfiguredRealtimeVoiceProvider, resolveRealtimeVoiceAgentConsultToolPolicy, resolveRealtimeVoiceAgentConsultTools, resolveRealtimeVoiceAgentConsultToolsAllow, resolveRealtimeVoiceAgentControlIntent, resolveRealtimeVoiceBargeIn, resolveRealtimeVoiceFastContextConsult, resolveRealtimeVoiceInterruptResponseOnInputAudio, resolveRealtimeVoiceMinBargeInAudioEndMs, resolveRealtimeVoiceSessionPolicy, shouldAutoControlRealtimeVoiceAgentText, sortRealtimeVoiceActivationNames, toOpenAICompatibleRealtimeAudioFormat };
