Parses and validates live voice protocol frames for a voice assistant.
// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI
// Provided via justclaw.it.com; keep this notice with the code.
import type { VoiceEscalationProfileSource } from "../calls/voice-escalation-target.js";
import { type ClientOs, parseClientOs } from "../channels/types.js";
import {
parseShareTargetSnapshot,
type ShareTargetSnapshot,
} from "./share-targets.js";
const LIVE_VOICE_CLIENT_FRAME_TYPES = [
"start",
"audio",
"ptt_release",
"interrupt",
"end",
"update_config",
"attach_image",
"attach_frame",
"sight_start",
"sight_end",
"sight_frame",
"text",
] as const;
type LiveVoiceClientFrameType = (typeof LIVE_VOICE_CLIENT_FRAME_TYPES)[number];
const _LIVE_VOICE_SERVER_FRAME_TYPES = [
"ready",
"busy",
"speech_
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key