Skip to main content

RealtimeSTT plugin for LiveKit

Project description


RealtimeSTT plugin for LiveKit

Use RealtimeSTT as the speech-to-text component in LiveKit


LiveKit is an open-source WebRTC platform with support for AI agents.

RealtimeSTT is a speech-to-text library with advanced voice activity detection, wake-word activation and instant transcription.

This is a plugin for LiveKit that uses RealtimeSTT for speech-to-text generation. It supports only streaming mode, which means VAD and turn-detection components should be disabled in LiveKit.

Installation

pip install livekit-plugins-realtimestt

Example

from livekit.agents import Agent
from livekit-plugins-realtimestt import STT

agent = Agent(
    stt=STT(
      # For the full list of options, see RealtimeSTT documentation.
      options={
        # When "use_client" is True, the plugin will try to connect to a RealtimeSTT server
        # via WebSockets, otherwise it will run the library in-process. In that case,
        # it is recommended to pre-initialize the plugin by calling `stt.prewarm()`
        # to preload the model and other resources.
        "use_client": True,
        # When "enable_realtime_transcription" is True, interim (partial) transcriptions
        # will be generated in real-time.
        "enable_realtime_transcription": True,
        "language": "de",
      }
    )
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_realtimestt-0.1.1.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_realtimestt-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_realtimestt-0.1.1.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_realtimestt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b67a1cffc15c7001921a5dff387129e81f4383816f545a3a9a20a582a3ff1108
MD5 c30194b4e25a67abf22ee45352a8f82e
BLAKE2b-256 41a9a067e226b8baf2c65d28b5defef3dd3c335c2ba5799c2d4566c19d84e094

See more details on using hashes here.

File details

Details for the file livekit_plugins_realtimestt-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_realtimestt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 462dd2628938e7e9928f94552c167d5ce4ef5f58b0beea87c9c47b9100e70581
MD5 723ec4ad7f746d0deb877eff1081a22b
BLAKE2b-256 05af3e605574aacaf18b3fc67fe5e2b54f0ae757a22098400d46c9c0651d263e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page