Transcribe AND understand your audio

We’ve been releasing new language and use case models and new features like summarization and topic detection nonstop! If you want one API to help you get the job done (whatever that job is), try Deepgram with $150 in free credit.

Get Started Free

from deepgram import Deepgram
import asyncio
import json

DEEPGRAM_API_KEY = "YOUR_DEEPGRAM_API_KEY"


async def main():

    # Initialize the Deepgram SDK
    deepgram = Deepgram(DEEPGRAM_API_KEY)

    FILE = 'URL_TO_YOUR_FILE'

    source = {
        'url': FILE
    }

    response = await asyncio.create_task(
        deepgram.transcription.prerecorded(
            source
        )
    )

    print(json.dumps(response, indent=4))

asyncio.run(main())
{
  "channel_index": [
    {
      "channel": "string",
      "num_channels": 0
    }
  ],
  "duration": 0,
  "start": "string",
  "is_final": true,
  "channel": {
    "alternatives": [
      {
        "transcript": "string",
        "confidence": 0,
        "words": [
          {
            "word": "string",
            "start": 0,
            "end": 0,
            "confidence": 0
          }
        ]
      }
    ]
  }
}
const { Deepgram } = require('@deepgram/sdk')

const deepgram = new Deepgram(DEEPGRAM_API_KEY)
const audioSource = { url: URL_OF_FILE }

const response = await deepgram.transcription.preRecorded(audioSource)

console.dir(response, {depth: null})
{
  "channel_index": [
    {
      "channel": "string",
      "num_channels": 0
    }
  ],
  "duration": 0,
  "start": "string",
  "is_final": true,
  "channel": {
    "alternatives": [
      {
        "transcript": "string",
        "confidence": 0,
        "words": [
          {
            "word": "string",
            "start": 0,
            "end": 0,
            "confidence": 0
          }
        ]
      }
    ]
  }
}
using Deepgram;

var deepgram = new DeepgramClient(new Credentials("YOUR_DEEPGRAM_API_KEY"));
var response = await deepgram.Transcription.Prerecorded.GetTranscriptionAsync(
    new UrlSource("URL_TO_FILE"));
{
  "channel_index": [
    {
      "channel": "string",
      "num_channels": 0
    }
  ],
  "duration": 0,
  "start": "string",
  "is_final": true,
  "channel": {
    "alternatives": [
      {
        "transcript": "string",
        "confidence": 0,
        "words": [
          {
            "word": "string",
            "start": 0,
            "end": 0,
            "confidence": 0
          }
        ]
      }
    ]
  }
}
Ready to pip-install and go

The tools to make building in Python easier

Deepgram is built to power anything you take on. Whether you’re just tinkering or transforming an enterprise AI initiative, our speech API makes the job easier.

With several SDKs and robust documentation, you can get to “Hello World” in minutes. And if you’re looking do something really different, our expert team is here to help. That’s right, actual human engineers you can talk to. It’s crazy.

Check out the blog

Architectural Differentiation

The end of status quo

End-to-end deep learning isn’t marketing-speak, it’s the key to radically better ASR without limits to speed, accuracy and scalabilty. Innovative brands choose Deepgram to improve voice experiences or create new use cases that take them forward.

Try it Free