FastRTC Canary
The Real-Time Communication Library for Python with Canary STT
Turn any python function into a real-time audio and video stream over WebRTC or WebSockets.
Installation
Assume you have fastrtc installed - fastrtc
pip install fastrtc_canary
Features
- 🎯 Direct integration with Nvidia's Canary STT model
- 🔄 Seamless compatibility with all FastRTC features
- 🚀 Real-time audio transcription
- 🔌 Drop-in replacement for FastRTC's STT components
Available Models
nvidia/canary-1bnvidia/canary-1b-flash
Supported Languages
en(English)es(Spanish)fr(French)de(German)
Quick Start
from multiprocessing import freeze_support
from fastrtc_canary import get_stt_model, load_audio
def main():
# Load model
model = get_stt_model(
model="nvidia/canary-1b",
lang="en",
)
# Load audio file (automatically resamples to 16kHz)
audio = load_audio("test_file.wav")
# Transcribe
text = model.stt(audio)
print(f"Transcription: {text}")
if __name__ == '__main__':
freeze_support()
main()
Note: This is additional package for fastrtc to support Nvidia's Canary STT models. If you want to use fastrtc, you can install it from here
Documentation
For more detailed information about the base FastRTC package, visit https://fastrtc.org
License
MIT
Metadata
Release files for fastrtc_canary 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastrtc_canary-0.0.2.tar.gz | 1.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastrtc_canary-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / fastrtc_canary-0.0.2.tar.gz
| Download URL | fastrtc_canary-0.0.2.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a51ca22406343c7b368ad61898e961323c59e1dbb35010ead5711e2232fbeb5
|
|
BLAKE2b-256 checksum How to use checksums |
56e995be549ffbae2512e6e41acb33ee653990ee915f28ce404d8f6328457415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.27
|
Release files / fastrtc_canary-0.0.2-py3-none-any.whl
| Download URL | fastrtc_canary-0.0.2-py3-none-any.whl |
|---|---|
| Size | 775.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fae5a75f35357206a2f47e806f505f6eea09a3e4dc22b34b766447aedcea1a9c
|
|
BLAKE2b-256 checksum How to use checksums |
0e47bfc97a0ae6a7785d3a03d7c33e8f993241a8c35e0dd1391d655f5d602d81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.27
|