skillfed

deepgram-sdk

deepgram-sdk v7.7.0 3.2M downloads/30d#2,723 on PyPI457
Permissive license MIT Active released

What it is and what it does

The Deepgram Python SDK is the official client library for accessing Deepgram's speech and language AI services. It wraps HTTP and WebSocket APIs for speech-to-text transcription (file and real-time), text-to-speech synthesis, text analysis (sentiment, topics, intents), and voice agent orchestration. The SDK provides both synchronous and asynchronous clients, supports two authentication methods (API key and access token), and handles connection management and event streaming internally.

You use it to add speech recognition, voice synthesis, or conversational AI capabilities to Python applications without building HTTP clients or managing WebSocket connections yourself. It depends on httpx for HTTP transport, pydantic for request/response validation, and websockets for real-time streaming. The library is actively maintained, supports Python 3.10 through 3.15, and has no known security vulnerabilities.

Use it for:

  • Transcribe pre-recorded audio files to text using the file transcription API with models like nova-3.
  • Build real-time speech recognition applications using WebSocket connections with the Listen v2 model.
  • Generate natural-sounding speech from text and save it as audio files using the text-to-speech API.
  • Analyze text for sentiment, topics, and intent detection in language understanding workflows.
  • Create conversational voice agents that combine speech recognition, LLM reasoning, and speech synthesis.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Official Python SDK for Deepgram's speech recognition, text-to-speech, language understanding, and voice agent APIs, with synchronous and asynchronous client support.

Yes. The SDK is actively maintained (released 2 days ago), has low install friction, no known vulnerabilities, and a permissive MIT license. It's the official client for Deepgram's APIs and covers a complete feature set from transcription to voice agents. Install it if you need to integrate Deepgram's speech or language AI services into a Python application.

Install

deepgram-sdk on PyPI

pip

pip install deepgram-sdk

uv

uv add deepgram-sdk

poetry

poetry add deepgram-sdk

Installing deepgram-sdk

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance with a release 2 days old and last commit on 2026-08-14. Depends on five well-established packages: httpx, pydantic, pydantic-core, typing_extensions, and websockets.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install deepgram-sdk

from deepgram import DeepgramClient

client = DeepgramClient(api_key="YOUR_API_KEY")
with open("audio.wav", "rb") as audio_file:
    response = client.listen.v1.media.transcribe_file(
        request=audio_file.read(),
        model="nova-3"
    )
    print(response.results.channels[0].alternatives[0].transcript)

Requires a Deepgram API key (via DEEPGRAM_API_KEY environment variable or explicit parameter) and Python 3.10 or later.

Verify before relying

  • Whether the SDK's WebSocket connections (Listen v2, Speak v1, Agent v1) work reliably in production environments at scale.
  • Performance characteristics and latency for real-time streaming use cases.
  • Completeness of error handling and recovery for network interruptions.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 5 — httpx, pydantic, pydantic-core, typing_extensions, websockets
Maintenance actively maintained — 2 days since the last release
Last repo commit
First released
Downloads 3,152,641/month — #2,723 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: deepgram_sdk-7.7.0-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

speech to text pythontext to speech apideepgram sdkvoice recognition libraryaudio transcriptionconversational ai voicelanguage understanding api
speech-recognitiontext-to-speechvoice-ai

More Python Modules packages