Skip to main content

The realtime communication library for Python - fastrtc with Nvidia's Canary STT

Project description

FastRTC Canary

FastRTC Logo
Static Badge Static Badge

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-1b
  • nvidia/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

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_canary-0.0.2.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

fastrtc_canary-0.0.2-py3-none-any.whl (775.0 kB view details)

Uploaded Python 3

File details

Details for the file fastrtc_canary-0.0.2.tar.gz.

File metadata

  • Download URL: fastrtc_canary-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.27

File hashes

Hashes for fastrtc_canary-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2a51ca22406343c7b368ad61898e961323c59e1dbb35010ead5711e2232fbeb5
MD5 2cc0eb20debc1a01c685396c0e13175a
BLAKE2b-256 56e995be549ffbae2512e6e41acb33ee653990ee915f28ce404d8f6328457415

See more details on using hashes here.

File details

Details for the file fastrtc_canary-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastrtc_canary-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fae5a75f35357206a2f47e806f505f6eea09a3e4dc22b34b766447aedcea1a9c
MD5 8fa4af33d900908074a2a4f8db70b09e
BLAKE2b-256 0e47bfc97a0ae6a7785d3a03d7c33e8f993241a8c35e0dd1391d655f5d602d81

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