Skip to main content

The realtime communication library for Python. With support for Kroko-ASR model.

Project description

FastRTC

The Real-Time Communication Library for Python

Turn any python function into a real-time audio and video stream over WebRTC or WebSockets. Now with the Kroko-ASR TTS Model!

Installation

pip install fastrtc-kroko

Features

  • Works with FastRTC with added support for the Kroko-ASR TTS model.
  • Supports English and French Transcriptions (more will be added as Kroko is updated).

Example Run

import soundfile as sf
from pathlib import Path

curr_dir = Path(__file__).parent

from fastrtc_kroko import get_stt_model

m = get_stt_model() # You will need to set a HF_TOKEN env variable, or pass it in here.
audio, sr = sf.read(str(curr_dir / "test_file.wav"))
transcript = m.stt((sr, audio))
print(transcript)

Documentation

Check out the fastrtc documentation for more information.

Licence

MIT

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

fastrtc_kroko-0.1.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

fastrtc_kroko-0.1.2-py3-none-any.whl (772.4 kB view details)

Uploaded Python 3

File details

Details for the file fastrtc_kroko-0.1.2.tar.gz.

File metadata

  • Download URL: fastrtc_kroko-0.1.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for fastrtc_kroko-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9856c761aab468e56e1f8a367566ee881f378fce0bcbcf3d2754d4e2e59193ea
MD5 7bccc9a809d050c83c492c9ceea8a6f2
BLAKE2b-256 fd1fa01cf1b68d4c61c353406fb77c4b52f1a81f3c8e11e13cc4f2e0a0ebab73

See more details on using hashes here.

File details

Details for the file fastrtc_kroko-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastrtc_kroko-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e813d6f05b798bd51c71b1de884a039a6463c26461023d758d6c5c72db5c231a
MD5 b9258e18d1fa4fdfe76f11dfc5d3ddd8
BLAKE2b-256 513208069dd1e041c0793c0f17953bdd7d67901be446ff67abbadaad22244610

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