Skip to main content

strands-deepgram

PyPI version Python Support License: MIT

Deepgram speech processing tool for Strands Agents SDK. Enables powerful speech-to-text, text-to-speech, and audio intelligence capabilities for AI agents.

Features

  • Speech-to-Text: Transcribe audio with 30+ language support
  • Text-to-Speech: Generate natural-sounding speech in multiple voices
  • Audio Intelligence: Sentiment analysis, topic detection, intent recognition
  • Speaker Diarization: Identify and separate different speakers
  • Multi-format Support: WAV, MP3, M4A, FLAC, and more
  • Type Safe: Full type hints and validation
  • Easy Integration: Drop-in tool for Strands agents

Requirements

  • Python 3.9+
  • Strands Agents SDK 1.11.0+
  • Deepgram SDK 3.0+

Installation

pip install strands-deepgram

Quick Start

from strands import Agent
from strands_deepgram import deepgram

# Create an agent with Deepgram tool
agent = Agent(tools=[deepgram])

# Transcribe audio with speaker identification
agent("transcribe audio from recording.mp3 in Turkish with speaker diarization")

# Text-to-speech
agent("convert this text to speech and save as output.mp3: Hello world")

# Audio intelligence
agent("analyze sentiment and topics in recording.wav")

Configuration

Set your Deepgram API key as an environment variable:

DEEPGRAM_API_KEY=your_deepgram_api_key  # Required
DEEPGRAM_DEFAULT_MODEL=nova-3            # Optional
DEEPGRAM_DEFAULT_LANGUAGE=en             # Optional

Get your API key at: console.deepgram.com

Supported Actions

Speech-to-Text (transcribe)

agent("transcribe this audio file: path/to/audio.mp3")

Features:

  • Multi-language transcription (30+ languages)
  • Speaker diarization (identify different speakers)
  • Smart formatting and punctuation
  • Word-level timestamps
  • Sentiment analysis (optional)
  • Topic and intent detection (optional)

Text-to-Speech (text_to_speech)

agent("convert this text to speech: Hello, how are you today?")

Features:

  • Natural-sounding voices (Aura series)
  • Multiple audio formats (MP3, WAV, FLAC)
  • Customizable speech parameters
  • Voice selection

Audio Intelligence (analyze)

agent("analyze sentiment and topics in audio: call.mp3")

Features:

  • Sentiment analysis
  • Topic detection
  • Intent recognition
  • Language detection

Testing

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Links


Built for the Strands community 🚀

Metadata

Release files for strands-deepgram 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strands-deepgram 0.1.0
File Size Uploaded
strands_deepgram-0.1.0.tar.gz 12.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strands-deepgram 0.1.0
File Interpreter ABI Platform
strands_deepgram-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / strands_deepgram-0.1.0.tar.gz

Download URL strands_deepgram-0.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0c93e234db350bbc384a3f5a09e362ff3e1e4f598583fd41b99e0a57edf02b76
BLAKE2b-256 checksum
How to use checksums
7974058e75dd17c00bbf0e26d1279f41ea8d28e049d730feac98b07c1cda0be8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.

Transparency log

Release files / strands_deepgram-0.1.0-py3-none-any.whl

Download URL strands_deepgram-0.1.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
967c1879cfddbc0914dfe2ae1658e812a1899007571b5d0cdd2137e9f64e939e
BLAKE2b-256 checksum
How to use checksums
79e3f0f342e76119e5cee1e4847d20b1d4ebe5940d19f57bdf4166f675783423
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page