# Deepgram Speech to Text: Key Terms, Redaction, Raw JSON (`blitzdata/deepgram-speech-to-text`) Actor

Speech to text on Deepgram Nova-3 or Nova-2 with the options exposed: key terms, numerals, redaction, word confidence and extra API parameters, with the raw JSON in the row. Unofficial, not affiliated with Deepgram. $0.006 per audio minute.

- **URL**: https://apify.com/blitzdata/deepgram-speech-to-text.md
- **Developed by:** [⚡ Blitzdata](https://apify.com/blitzdata) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 audio minutes

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Deepgram Speech to Text

**This Actor is unofficial. It is not affiliated with, endorsed by or sponsored by Deepgram.** It calls Deepgram's pre-recorded speech-to-text API under our own account, so you need no Deepgram key and no credit there.

What it adds is access to the knobs. Most transcription Actors hide the recognition settings; this one shows them as input fields: **key terms**, **numerals**, **redaction**, **per-word confidence**, a free-form box for **extra API parameters**, and the **raw JSON response** inside every row. Pick Nova-3 or Nova-2 per run.

### What you get

- **Key terms**: up to 100 names, brands or jargon words the Nova-3 model should favour (not a guarantee)
- **Redaction**: replace card numbers (pci), personal data (pii) or numbers with tags such as \[NAME_1]
- **Numerals**: spoken numbers written as digits
- **Word confidence**: start, end and a 0 to 1 score for every word, so low-confidence passages can be checked by hand
- **Raw response**: the engine's JSON as received, for people who parse it themselves
- **Extra parameters**: a JSON field passed through to the API; options that change billing or break the output format are ignored

### How to use Deepgram Speech to Text (Unofficial)

1. Open [Deepgram Speech to Text (Unofficial)](https://apify.com/blitzdata/deepgram-speech-to-text) on Apify and click **Try for free**.
2. Fill in **Audio or video URLs**.
3. Adjust the optional settings you need: **Language**, **Speech model**, **Key terms**, **Write numbers as digits**, **Redact**, **Label the speakers**, **Word confidence**, **Extra Deepgram parameters**, **Output formats**, **Max audio length (seconds)**.
4. Click **Start**. One dataset row per item appears while the run progresses.
5. Export the dataset as JSON, CSV or Excel, or read it through the API, the Python or JavaScript client, or the MCP server (see the **API** tab).

The same input works as a JSON body through the API:

```json
{
  "urls": [
    "https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg"
  ],
  "language": "en",
  "numerals": true,
  "keyterms": [
    "Congress"
  ],
  "word_confidence": true
}
```

### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| `urls` | array | — | Links to audio or video files, one per line. A link must open the file itself. Every link gives one dataset row; a link that fails gives an error row and is not charged. (required) |
| `language` | string | `"auto"` | ISO code of the spoken language (en, nl, es, ...), or 'auto' to detect it. Giving the code is more accurate when you know it. The row reports which one was used in 'language_source'. |
| `model` | string | `"nova-3"` | Which speech-to-text model transcribes the audio. Nova-3 is the best default; Nova-2 is the previous generation. The price per minute is the same. |
| `keyterms` | array | — | Names, brands and jargon the speech model should get right, one per line (for example a product name). Up to 100 terms; each helps recognition of that exact word. Billed as an add-on: $0.003 per audio minute on runs that use it. |
| `numerals` | boolean | `false` | Convert spoken numbers to digits, so 'twenty twenty six' becomes 2026. |
| `redact` | array | — | Remove sensitive data from the transcript, one category per line: pci (card numbers), pii (names, addresses, identifiers) or numbers. Redacted spans are replaced by a tag such as \[CREDIT_CARD_NUMBER]. Billed as an add-on: $0.003 per audio minute on runs that use it. |
| `diarize` | boolean | `false` | Work out who speaks when and label every segment, subtitle line and word with Speaker 1, Speaker 2 and so on. Useful for interviews, podcasts and panels. No extra charge. |
| `word_confidence` | boolean | `false` | Return a confidence score from 0 to 1 on every word in the 'words' list, so low-confidence passages can be reviewed by hand. |
| `deepgram_params` | object | — | Extra query parameters passed to the speech API as they are, for example {"paragraphs": true, "utt_split": 0.8}. Parameters that change billing or break the output format are ignored. |
| `output_formats` | array | — | Which text formats to put in every row, one per line: text, segments, srt, vtt, markdown. Leave empty for all of them. Fewer formats make smaller rows. |
| `max_duration_seconds` | integer | `7200` | Skip anything longer than this, so one long upload cannot run up the bill. The default is 2 hours (7200); 4 hours (14400) is the most one item can be; longer items are always refused. Skipped items return an error row and are not charged. |

### Output

One dataset row per item. A failed item gets a row with `error` set and is not charged; the rest of the run continues.

A 1941 speech with numerals and key terms switched on, shortened. `words` is cut to three entries and `raw` to its outline:

```json
{
  "url": "https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg",
  "platform": "File",
  "video_id": "roosevelt-1941-pearl-harbor-p2",
  "title": "roosevelt-1941-pearl-harbor-p2.ogg",
  "text": "I ask that the Congress declare that since the unprovoked and dastardly attack by Japan on Sunday, 12/07/1941, a state of war has existed ...",
  "language": "en",
  "language_source": "given",
  "transcript_source": "asr",
  "engine": "deepgram",
  "model": "nova-3",
  "duration_seconds": 29.3,
  "speech": true,
  "speech_seconds": 28.82,
  "trimmed_seconds": 29.52,
  "segments": [
    {
      "start": 0.32,
      "end": 7.12,
      "text": "I ask that the Congress declare that since the"
    },
    {
      "start": 7.12,
      "end": 13.92,
      "text": "unprovoked and dastardly attack by Japan on"
    }
  ],
  "srt": "1\n00:00:00,320 --> 00:00:07,120\nI ask that the Congress declare that since\nthe\n\n2\n00:00:07,120 --> 00:00:13,920\nunprovoked and dastardly attack by Japan\non\n",
  "vtt": "WEBVTT\n\n00:00:00.320 --> 00:00:07.120\nI ask that the Congress declare that since\nthe\n\n00:00:07.120 --> 00:00:13.920\nunprovoked and dastardly attack by Japan\non\n",
  "billed_unit": "audio-minute",
  "billed_quantity": 1,
  "billed_audio_minutes": 1,
  "error_code": null,
  "error": null,
  "words": [
    {
      "start": 0.32,
      "end": 1.12,
      "text": "i",
      "punctuated": "I",
      "confidence": 0.98
    },
    {
      "start": 1.12,
      "end": 1.9199998,
      "text": "ask",
      "punctuated": "ask",
      "confidence": 0.9707
    },
    {
      "start": 2.6399999,
      "end": 2.96,
      "text": "that",
      "punctuated": "that",
      "confidence": 0.9902
    }
  ],
  "raw": {
    "metadata": {
      "duration": 29.3,
      "channels": 1,
      "models": [
        "nova-3"
      ]
    },
    "results": {
      "channels": [
        "... Deepgram response as received, shortened ..."
      ]
    }
  }
}
```

`text` in `words` is the bare word and `punctuated` the same word with capitals and punctuation. With numerals on, the date comes back as digits.

### Pricing

| Event | Price | Charged when |
|---|---|---|
| Audio minute | $0.006 | Each started minute of audio that contains speech, counted per file. Files without speech and failed links are free. |
| Add-on minute | $0.003 | Each billed audio minute of a run that uses key terms or redaction, on top of the audio minute. Runs without them never pay it. |

Key terms and redaction add $0.003 per billed audio minute, only on runs that use them; everything else stays $0.006.

### Use cases

- **Evaluating the engine**: try an option on your own audio before wiring the API into a product
- **Domain vocabulary**: product names, drug names or place names that general models stumble on
- **Quality control**: route words under a confidence threshold to a human proofreader
- **Data pipelines**: feed word timings and raw JSON to your own post-processing

### FAQ

**Do I need a Deepgram account or API key?**
No. The calls run on our key and you pay only the per-minute price below.

**Is this affiliated with Deepgram?**
No. It is an independent Actor that uses the public Deepgram API.

**Do key terms always fix a word?**
No. They raise the odds, and only on the Nova-3 model. In our test a made-up product name was still misheard after being added as a key term.

**Does redaction catch everything?**
No. It is a model, not a compliance guarantee. In our test the 'pci' option caught a formatted card number, while 'pii' missed one that had been spelled out in words. Review redacted output before relying on it.

**Which extra parameters are ignored?**
Anything that would change what we bill or turn the response into something other than a transcript. Rows say nothing about ignored keys, so check the raw JSON if an option seems to have no effect.

### Is it legal?

This Actor reads publicly available media and turns speech into text. It does not bypass logins and does not access private content. The audio is deleted from our side after transcription and is not used by us for training. Speech recognition is done by Deepgram, a sub-processor: the audio is sent to Deepgram's API for processing under Deepgram's terms, with the Model Improvement Program opt-out set on every request, so Deepgram does not keep it for model training. You are responsible for using the output in line with the platforms' terms, copyright and the privacy law that applies to you, in particular when transcripts contain personal data.

### Support

Something wrong, a platform that stopped working, a field you need? Open an issue on the **Issues** tab of this Actor and it will be looked at.

# Actor input Schema

## `urls` (type: `array`):

Links to audio or video files, one per line. A link must open the file itself. Every link gives one dataset row; a link that fails gives an error row and is not charged.

## `language` (type: `string`):

ISO code of the spoken language (en, nl, es, ...), or 'auto' to detect it. Giving the code is more accurate when you know it. The row reports which one was used in 'language_source'.

## `model` (type: `string`):

Which speech-to-text model transcribes the audio. Nova-3 is the best default; Nova-2 is the previous generation. The price per minute is the same.

## `keyterms` (type: `array`):

Names, brands and jargon the speech model should get right, one per line (for example a product name). Up to 100 terms; each helps recognition of that exact word. Billed as an add-on: $0.003 per audio minute on runs that use it.

## `numerals` (type: `boolean`):

Convert spoken numbers to digits, so 'twenty twenty six' becomes 2026.

## `redact` (type: `array`):

Remove sensitive data from the transcript, one category per line: pci (card numbers), pii (names, addresses, identifiers) or numbers. Redacted spans are replaced by a tag such as \[CREDIT_CARD_NUMBER]. Billed as an add-on: $0.003 per audio minute on runs that use it.

## `diarize` (type: `boolean`):

Work out who speaks when and label every segment, subtitle line and word with Speaker 1, Speaker 2 and so on. Useful for interviews, podcasts and panels. No extra charge.

## `word_confidence` (type: `boolean`):

Return a confidence score from 0 to 1 on every word in the 'words' list, so low-confidence passages can be reviewed by hand.

## `deepgram_params` (type: `object`):

Extra query parameters passed to the speech API as they are, for example {"paragraphs": true, "utt_split": 0.8}. Parameters that change billing or break the output format are ignored.

## `output_formats` (type: `array`):

Which text formats to put in every row, one per line: text, segments, srt, vtt, markdown. Leave empty for all of them. Fewer formats make smaller rows.

## `max_duration_seconds` (type: `integer`):

Skip anything longer than this, so one long upload cannot run up the bill. The default is 2 hours (7200); 4 hours (14400) is the most one item can be; longer items are always refused. Skipped items return an error row and are not charged.

## Actor input object example

```json
{
  "urls": [
    "https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg"
  ],
  "language": "en",
  "model": "nova-3",
  "keyterms": [
    "Congress"
  ],
  "numerals": true,
  "diarize": false,
  "word_confidence": true,
  "max_duration_seconds": 7200
}
```

# Actor output Schema

## `transcripts` (type: `string`):

One row per item: text, timed segments, SRT and WebVTT, plus source metadata and what was billed (unit and quantity). Which columns appear depends on the Actor.

## `summary` (type: `string`):

How many URLs were given, how many videos were found after expanding any profiles, and how many succeeded.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg"
    ],
    "language": "en",
    "keyterms": [
        "Congress"
    ],
    "numerals": true,
    "word_confidence": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("blitzdata/deepgram-speech-to-text").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg"],
    "language": "en",
    "keyterms": ["Congress"],
    "numerals": True,
    "word_confidence": True,
}

# Run the Actor and wait for it to finish
run = client.actor("blitzdata/deepgram-speech-to-text").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://blitzdata-samples.b-cdn.net/v1/roosevelt-1941-pearl-harbor-p2.ogg"
  ],
  "language": "en",
  "keyterms": [
    "Congress"
  ],
  "numerals": true,
  "word_confidence": true
}' |
apify call blitzdata/deepgram-speech-to-text --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,blitzdata/deepgram-speech-to-text"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EX4hyOkl48xMkfpa5/builds/QEjKbhDT1zuLrK90I/openapi.json
