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 texterror– 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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
File details
Details for the file getstream_plugins_fal-0.1.1-py3-none-any.whl.
File metadata
- Download URL: getstream_plugins_fal-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
762500a2c836459dc5d4b41520cbf7682efe3e20d08d4fd52d54e258b04f0ffe
|
|
| MD5 |
8fd8ef48662ed17dd0b7022691663cdf
|
|
| BLAKE2b-256 |
b5a81d0f685fdeb8644d1615426cc7d441760718d27bcda2c59ac7e851e17609
|