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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fastrtc_kroko-0.1.2-py3-none-any.whl
(772.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9856c761aab468e56e1f8a367566ee881f378fce0bcbcf3d2754d4e2e59193ea
|
|
| MD5 |
7bccc9a809d050c83c492c9ceea8a6f2
|
|
| BLAKE2b-256 |
fd1fa01cf1b68d4c61c353406fb77c4b52f1a81f3c8e11e13cc4f2e0a0ebab73
|
File details
Details for the file fastrtc_kroko-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fastrtc_kroko-0.1.2-py3-none-any.whl
- Upload date:
- Size: 772.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e813d6f05b798bd51c71b1de884a039a6463c26461023d758d6c5c72db5c231a
|
|
| MD5 |
b9258e18d1fa4fdfe76f11dfc5d3ddd8
|
|
| BLAKE2b-256 |
513208069dd1e041c0793c0f17953bdd7d67901be446ff67abbadaad22244610
|