DeepgramSTTAdapter (stt/deepgram.ts)

builderbot · packages/provider-voice/src/adapters/stt/deepgram.ts · typescript · MIT
voice, Voice / Speech

* LAYER: Infrastructure Contains: DeepgramSTTModel, DeepgramSTTAdapterOptions, DeepgramSTTAdapter Rules: Implements ports from Application. Can use any framework. BigO: O(1) score:5 keywords: [DeepgramSTTModel, DeepgramSTTAdapterOptions, DeepgramSTTAdapter] GOAL: Own the "deepgra

// Source: https://github.com/codigoencasa/builderbot | License: MIT | Copyright 2022 Leifer Mendez
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * LAYER: Infrastructure
 * Contains: DeepgramSTTModel, DeepgramSTTAdapterOptions, DeepgramSTTAdapter
 * Rules: Implements ports from Application. Can use any framework.
 * BigO: O(1) score:5
 * keywords: [DeepgramSTTModel, DeepgramSTTAdapterOptions, DeepgramSTTAdapter]
 * GOAL: Own the "deepgram" concern of the provider-voice package.
 */
import { pcmToWav } from '../../audio'
import type { ISttAdapter } from '../index'

export enum DeepgramSTTModel {
    /** Nova 3 — latest, best accuracy (recommended) */
    Nova3 = 'nova-3',
    Nova2 = 'nova-2',
    Nova = 'nova',
    Enhanced = 'enhanced',
    Base = 'base',
}

export

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

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

Get a free API key