Skip to main content

Fal.ai plugin for GetStream

Project description

FAL.ai Wizper Speech-to-Text and Translation Plugin

High-quality real-time Speech-to-Text (STT) and translation for Stream, powered by FAL.ai Wizper.

Installation

pip install getstream-plugins-fal

Quick start

from getstream.plugins.fal import FalWizperSTT

# 1. Pure transcription (default)
stt = FalWizperSTT()

# 2. Translation to Spanish ("es")
stt = FalWizperSTT(target_language="es")

@stt.on("transcript")
async def on_transcript(text: str, user: dict, metadata: dict):
    print(f"{user['name']} said → {text}")

# Send Stream PCM audio frames to the plugin
await stt.process_audio(pcm_data)

# Close when finished
await stt.close()

The plugin emits the standard Stream STT events:

  • transcript – final, high-confidence text
  • error – if Wizper returns a failure

Configuration options

Parameter Type Default Description
target_language str|None None ISO-639-1 code used when task="translate"
sample_rate int 48000 Incoming PCM sample rate (Hz)

Requirements

  • Python 3.10+

Why Wizper?

Wizper is FAL.ai’s hosted version of Whisper v3 that streams results in real-time. This means you get:

  • Accurate multilingual transcription out-of-the-box
  • Fast first-word latency suitable for live calls
  • Optional on-the-fly translation to 100+ languages

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

getstream_plugins_fal-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file getstream_plugins_fal-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for getstream_plugins_fal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 762500a2c836459dc5d4b41520cbf7682efe3e20d08d4fd52d54e258b04f0ffe
MD5 8fd8ef48662ed17dd0b7022691663cdf
BLAKE2b-256 b5a81d0f685fdeb8644d1615426cc7d441760718d27bcda2c59ac7e851e17609

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