Skip to content
Back to skills

Deepgram

ASecurity

> **Verification Tier:** `code_example_tested` | **Last Verified:** 2026-11-18 > **Official Docs:** https://developers.deepgram.com/docs/getting-started-with-pre-recorded-audio

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgobashapifrontendbackendsecurity

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add ashish7802/awesome-api-skills --skill deepgram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deepgram?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deepgram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-deepgram/badge)](https://www.skillsdirectory.com/skills/ashish7802-deepgram)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Deepgram Speech-to-Text API Skill

> **Verification Tier:** `code_example_tested` | **Last Verified:** 2026-11-18  
> **Official Docs:** https://developers.deepgram.com/docs/getting-started-with-pre-recorded-audio

## Overview
Deepgram provides high-accuracy, low-latency Speech-to-Text (STT) using the `nova-3` model family for both pre-recorded audio files/URLs and real-time bidirectional WebSocket streaming.

## Installation
```bash
npm install @deepgram/sdk
pip install deepgram-sdk
```

## Authentication
Send `Authorization: Token <DEEPGRAM_API_KEY>` (handled by `createClient(process.env.DEEPGRAM_API_KEY)`). For browser-direct live streaming, mint short-lived scoped tokens on your backend rather than exposing long-lived admin keys.

## Core Concepts
- **Model & Features**: Use `model: "nova-3"` with `smart_format: true`, `diarize: true` (speaker labels), `punctuate: true`, and `keyterm` boosting for domain vocabulary.
- **Live Streaming KeepAlive**: Deepgram closes idle WebSocket connections after ~10 seconds of no audio bytes. Send `{ type: "KeepAlive" }` frames every 5–8 seconds during silence and `{ type: "CloseStream" }` when ending cleanly.
- **Callback Webhooks**: For long audio files (>10 min), pass a `callback` URL to receive asynchronous completion instead of holding an HTTP connection open.

## Error Handling & Rate Limits
- Check both `error` and `result` returned by SDK calls.
- Monitor concurrency limits (varies by plan, e.g., 100 concurrent REST / 50 concurrent WebSockets on Pay-As-You-Go) and handle HTTP `429` with exponential backoff.

## Security Best Practices
- Restrict API keys to least-privilege scopes (`usage:write`) and set TTLs on temporary frontend tokens.
- Enable `redact: ["pci", "pii"]` when transcribing regulated financial or healthcare audio.

## AI Pitfalls
- Forgetting `KeepAlive` frames on paused microphone streams, triggering unexpected `NET-0001` WebSocket disconnects.
- Passing `Authorization: Bearer` instead of `Authorization: Token` when calling REST endpoints directly with `fetch`.
- Specifying legacy `nova-2` keyword parameters when migrating to `nova-3` (`keyterm`).

## Production Checklist
- [ ] `DEEPGRAM_API_KEY` kept server-side or exchanged for short-lived scoped tokens
- [ ] `smart_format: true` and explicit `model: "nova-3"` set
- [ ] Live WebSockets implement `KeepAlive` timer and graceful `CloseStream`
- [ ] Long recordings use asynchronous `callback` webhooks

## References
- [Deepgram Pre-Recorded Audio](https://developers.deepgram.com/docs/getting-started-with-pre-recorded-audio)
- [Deepgram Live Streaming](https://developers.deepgram.com/docs/getting-started-with-live-streaming-audio)

## Related skills
- [`elevenlabs`](../elevenlabs/SKILL.md) — works well with
- [`openai-responses`](../openai-responses/SKILL.md) — works well with
- [`twilio`](../twilio/SKILL.md) — integrates with

Files in this skill

  • SKILL.md2.8 KB
  • examples/quickstart.ts913 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.