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.1.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.1-py3-none-any.whl
(772.2 kB
view details)
File details
Details for the file fastrtc_kroko-0.1.1.tar.gz.
File metadata
- Download URL: fastrtc_kroko-0.1.1.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 |
a3a75914ce05268d05930a4a176fadb4c11b46ff4e37b8f88fe7bf4a74767c58
|
|
| MD5 |
9f317563c6a48adfc371c2150dbeef73
|
|
| BLAKE2b-256 |
f3bb13ffe60965bbc5b60f52e404c72684758e1202419c4b463ec7ff716dfa02
|
File details
Details for the file fastrtc_kroko-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fastrtc_kroko-0.1.1-py3-none-any.whl
- Upload date:
- Size: 772.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4619a1e3e7c5e679f4d368730d77fa921bb4399ba63a4aa89cf9180da86e6db0
|
|
| MD5 |
10964f3d8f34c45573d952038b280ccf
|
|
| BLAKE2b-256 |
6a062cc4c8818aec5adb07870703aef8592fe93a74e5103e6ead0913d45c452f
|