You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fastrtc_canary

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastrtc_canary

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

0.0.2
pipPyPI
Maintainers
1

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

Keywords

audio

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts