Voice Gateway Session Service (voice-gateway/session-service.ts)

NemoClaw · voice, Voice / Speech, gateway, session, authentication, realtime

Controls voice session lifecycle, validates runtime values, grants, and handles turn state for voice interactions.

// Source: https://github.com/mperkins0155/NemoClaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";

import {
  type AgentTurnClient,
  VOICE_GATEWAY_MAX_RESPONSE_BYTES,
  VOICE_GATEWAY_SESSION_LIFETIME_MS,
  VOICE_GATEWAY_TURN_TIMEOUT_MS,
  type VoiceGatewayDiagnostic,
  type VoiceGatewayFailureReason,
  VoiceGatewayRequestError,
  type VoiceResponseEvent,
} from "./contracts";

const RUNTIME_VALUE_PATTERN = /^[A-Za-z0-9](?:[A-Za-z0-9._:-]{0,126}[A-Za-z0-9])?$

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key