deepgram (src/providers.ts)

Patter · libraries/typescript/src/providers.ts · typescript · MIT
voice, Voice / Speech

Exports helper functions to build STT/TTS configuration objects for multiple providers like Deepgram, Whisper, ElevenLabs, etc.

// Source: https://github.com/PatterAI/Patter | License: MIT | Copyright 2026 Patter Contributors
// Provided via justclaw.it.com; keep this notice with the code.
import type { STTConfig, TTSConfig } from "./types";
import { XAI_DEFAULT_VOICE, normalizeXaiVoice } from "./providers/xai-voices";

/**
 * Config envelope for realtime / ConvAI pipelines — mirrors the wire-level
 * shape consumed by the backend. Kept narrow on purpose so callers can pass a
 * plain object literal if they prefer.
 */
export interface RealtimeConfig {
  readonly provider: string;
  readonly apiKey: string;
  readonly model?: string;
  readonly voice?: string;
  readonly options?: Record<string, unknown>;
}

class STTConfigImpl implements STTConfig {
  readonly provider: string;
  readonly apiKey: string;
  readonl

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

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

Get a free API key