Skip to content

Commit d979450

Browse files
committed
evals: state the transcriber constraints as constraints
Both notes explain a choice the code can't show — why Moonshine is the wrong transcriber for a non-English bot, and why a runtime language switch reports instead of raising. Phrase each as the constraint itself.
1 parent 500a270 commit d979450

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/pipecat/evals/services.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ def moonshine_service(config: dict) -> STTService:
198198
- ``language``: Optional language code (e.g. ``es``) or ``Language``.
199199
When omitted, Moonshine keeps its own default (English).
200200
201-
Prefer :func:`whisper_service` for a non-English bot. Moonshine's non-English
202-
models handle synthesized speech unevenly — returning an empty transcript on
203-
audio Whisper reads correctly, and dropping the tail of a Mandarin utterance
204-
and an empty transcript reads as a bot that said nothing.
201+
Prefer :func:`whisper_service` for a non-English bot: Moonshine's non-English
202+
models transcribe synthesized speech unreliably, returning an empty transcript
203+
or dropping the tail of an utterance, and an empty transcript is
204+
indistinguishable from a bot that said nothing.
205205
"""
206206
from pipecat.services.moonshine.stt import Model, MoonshineSTTService
207207

src/pipecat/services/whisper/stt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ async def _update_settings(self, delta: STTSettings) -> dict[str, Any]:
365365
"""Apply a settings delta, reporting a language the model can't handle.
366366
367367
A mid-call switch to an unsupported language is reported rather than
368-
raised: the model stays loaded and keeps transcribing as English, which
369-
beats tearing down a live pipeline.
368+
raised, so a settings change can't tear down a live pipeline; the model
369+
stays loaded and keeps transcribing as English.
370370
371371
Args:
372372
delta: An STT settings delta.

0 commit comments

Comments
 (0)