Skip to main content

Deepgram Speech-to-Text Plugin

A high-quality Speech-to-Text (STT) plugin for GetStream that uses the Deepgram API.

Installation

pip install getstream-plugins-deepgram

Usage

from getstream.plugins.deepgram import DeepgramSTT

# Initialize with API key from environment variable
stt = DeepgramSTT()

# Or specify API key directly
stt = DeepgramSTT(api_key="your_deepgram_api_key")

# Register event handlers
@stt.on("transcript")
def on_transcript(text, user, metadata):
    print(f"Final transcript from {user}: {text}")

@stt.on("partial_transcript")
def on_partial(text, user, metadata):
    print(f"Partial transcript from {user}: {text}")

# Process audio
await stt.process_audio(pcm_data)

# When done
await stt.close()

Configuration Options

  • api_key: Deepgram API key (default: reads from DEEPGRAM_API_KEY environment variable)
  • options: Deepgram LiveOptions for configuring the transcription
  • sample_rate: Sample rate of the audio in Hz (default: 16000)
  • language: Language code for transcription (default: "en-US")
  • keep_alive_interval: Interval in seconds to send keep-alive messages (default: 5.0)

Requirements

  • Python 3.10+
  • deepgram-sdk>=4.5.0
  • numpy>=2.2.6,<2.3

Metadata

Release files for getstream-plugins-deepgram 0.1.1

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

Built distribution (wheel)

Table of built distributions (wheels) for getstream-plugins-deepgram 0.1.1
File Interpreter ABI Platform Actions
getstream_plugins_deepgram-0.1.1-py3-none-any.whl Python 3 none any Details for getstream_plugins_deepgram-0.1.1-py3-none-any.whl

Release files / getstream_plugins_deepgram-0.1.1-py3-none-any.whl

Download URL getstream_plugins_deepgram-0.1.1-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ed7a9a283fc5a897108a8ca6bb4e1b3289b12ef64aa1dff8520ca45d023cd18
BLAKE2b-256 checksum
How to use checksums
d96d595a7870c092a30f8df56c7e09d4e6aca6f4f3ed5ffc453cc2281ed1100f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for getstream-plugins-deepgram 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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