| name | deepgram-hello-world |
| description | Create a minimal working Deepgram transcription example.
Use when starting a new Deepgram integration, testing your setup,
or learning basic Deepgram API patterns.
Trigger: "deepgram hello world", "deepgram example", "deepgram quick start",
"simple transcription", "transcribe audio".
|
| allowed-tools | Read, Write, Edit |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","deepgram","api","testing","transcription","quickstart"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Deepgram Hello World
Overview
Minimal working examples for Deepgram speech-to-text. Transcribe an audio URL in 5 lines with createClient + listen.prerecorded.transcribeUrl. Includes local file transcription, Python equivalent, and Nova-3 model selection.
Prerequisites
npm install @deepgram/sdk completed
DEEPGRAM_API_KEY environment variable set
- Audio source: URL or local file (WAV, MP3, FLAC, OGG, M4A)
Instructions
Step 1: Transcribe Audio from URL (TypeScript)
import { createClient } from '@deepgram/sdk';
const deepgram = createClient(process.env.DEEPGRAM_API_KEY!);
async function main() {
const { result, error } = await deepgram.listen.prerecorded.transcribeUrl(
{ url: 'https://static.deepgram.com/examples/Bueller-Life-moves-702702706.wav' },
{
model: 'nova-3',
smart_format: true,
language: 'en',
}
);
if (error) throw error;
const transcript = result.results.channels[0].alternatives[0].transcript;
console.log(, transcript);
.(, result..[].[].);
}
();