
Resamples each AudioFrame to 16 kHz and runs Whisper's speech-to-English translate task, emitting an English String (empty on silence). The output is always English; the checkpoint is chosen by model_size.
Translate a foreign-language recording into English and post it as JSON.
Speech-gated live translation feeding an assistant.
model_size must be a multilingual Whisper checkpoint; English-only (.en) and turbo checkpoints do not support the translate task and fail to load.compute_type should match device (a 16-bit or int8 mode for GPU, int8 or 32-bit for CPU); a mismatched pairing fails at startup. vad_filter true gates silence before decoding and reduces hallucinations.language is a source-language hint only; empty auto-detects the spoken tongue (slower) and never changes the English output. Empty audio returns the empty string without running the model.Automated release