Build on the supported package contract
Use @absolutejs/voice-deepgram through its supported public entry points.
@absolutejs/voice-deepgramv0.0.20-beta.104betaVoice & MediaDeepgram speech-to-text adapter for @absolutejs/voice
bun add @absolutejs/voice-deepgramFlux sessions implement the provider-neutral session.configure(...) contract, allowing keyterms and language hints to be refreshed during a live stream. Nova sessions keep their opening configuration because Deepgram's Configure control message is a Flux capability.
Deepgram speech-to-text adapter for @absolutejs/voice.
The adapter accepts 16kHz mono pcm_s16le audio from core and forwards it to Deepgram without transcoding.
The adapter normalizes Deepgram events into the core STTAdapter contract.
Results with is_final=false -> partial
Results with is_final=true -> final
speech_final=true -> normalized endOfTurn
UtteranceEnd -> normalized endOfTurn
Flux EndOfTurn or EagerEndOfTurn -> normalized endOfTurn
transport errors -> normalized error
socket close -> normalized close
Supported options include:
apiKey
model
language
punctuate
smartFormat
interimResults
endpointing
utteranceEndMs
vadEvents
diarize
numerals
profanityFilter
Set DEEPGRAM_API_KEY in your runtime environment, or pass the key explicitly in the adapter config.
Deepgram references used for this adapter design:
https://developers.deepgram.com/docs/audio-keep-alive
https://developers.deepgram.com/docs/utterance-end
https://developers.deepgram.com/docs/endpointing
https://developers.deepgram.com/docs/flux/configuration
https://developers.deepgram.com/docs/listening-to-audio-streaming-over-websocket
Outcomes
Use @absolutejs/voice-deepgram through its supported public entry points.
Hardening checklist
Follow in order
Working example for Setup.
import { deepgram } from "@absolutejs/voice-deepgram";
const stt = deepgram({
apiKey: process.env.DEEPGRAM_API_KEY!,
model: "nova-3",
language: "en-US",
punctuate: true,
smartFormat: true,
});Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.