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.0.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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_realtimestt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c77339f8ce2b7224be1461a33581e5374452ff40bf1b2e5c541e873b3d65d467
MD5 cd16fc840a958a67159f503777322475
BLAKE2b-256 b02884bb3f1627321a195d25cbd329cd117ca6ddeebd467d97c23f016278bc4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_realtimestt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea308c76fb322aef402595ffc22621d4a4cbcb13ee36c4d27862528ea6f48cb8
MD5 7640c4bd6b0ad63e7fcac234f6b0a022
BLAKE2b-256 720a160c8a1e7f7eb33d232cb4b5d004c1c20a672a16528db8738dbe1895cadb

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