Skip to content

SCA-4917: Soniox first for languages Parakeet cannot serve (batch route table); page instead of a Soniox cap - #26526

Merged
Git-on-my-level merged 5 commits into
mainfrom
lane/stt-soniox-batch-route
Nov 27, 2026
Merged

Git-on-my-level merged 5 commits into
mainfrom
lane/stt-soniox-batch-route

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What this changes

Languages Parakeet cannot serve (Mandarin, Japanese, Korean, Hindi, Arabic, Hebrew and others) start on Soniox in the batch pipeline, with Modulate Velma as failover. English and the other Parakeet languages stay on the GPU. This is per unit, so Soniox only gets the speech that needs it. Decided by David on 2026-11-27 (SCA-4917).

  • Route table: backend/deploy/batch-pipeline/vendor_route_table.prod.json moves en-overflow-1116 → soniox-unsupported-1127. The table is served as BATCH_VENDOR_ROUTE_TABLE on backend-sync, backend-sync-backfill and backend-integration; runtime_env.yaml is regenerated.
    • gpu_unsupported: [soniox, modulate]. It was [modulate, soniox].
    • Soniox: failover_only: false, price_usd_per_audio_hour: 0.12 (list), daily_audio_hours_cap: null, monthly_budget_usd: null.
    • Unchanged: en: [gpu, modulate, soniox], gpu_supported: [gpu], *: [gpu], and the Modulate cap of 5,000 audio-h/day.
  • Code lock removed: vendor_route_contracts.FAILOVER_ONLY_SERVICES, a lead rule from 2026-11-01, made any table that listed Soniox as a primary invalid. failover_only stays a per-table choice for every vendor.
  • No Soniox cap, a page instead: David does not want user growth to hold units on a cap. The new alert omi-batch-soniox-daily-hours (tier page, two-lane-lead) fires above 1,500 batch Soniox audio-h in 24 h, about $180 at list price. It is in live-alert-gate.json, so the production alert import fails closed without it. The query was probed against prod GMP and reads about 156 audio-h for the 24 h to 2026-11-27T16:0xZ.
  • Behaviour change to note: because Soniox is now a primary in the English row too, a saturated GPU ring with Modulate down overflows fresh English to Soniox instead of waiting on the ring. That needs both outages at once, and the page bounds the spend.

Why Soniox

This is a public eval run through production's own Velma and Soniox clients: FLEURS dev (12 languages, about 10 min each) plus ASCEND test (code-switched Mandarin/English), in 60 s blocks. Soniox beats Velma on every language except English, where they tie:

set metric Soniox Velma
English WER 4.5% 4.7%
Spanish WER 3.8% 5.3%
Mandarin CER 8.4% 21.8%
Japanese CER 4.1% 12.8%
Korean CER 5.6% 16.8%
Hindi WER 8.3% 33.6%
Hebrew WER 17.8% 58.9%
Arabic WER 10.9% 22.0%
ASCEND code-switch mixed 11.3% 16.9%

Soniox had 0 failures in 156 files, with p95 latency of 5.3 s per 60 s file against Velma's 23.7 s. The harness, scorer and full table are in omi-workspace data/run-2026-11-26-multilang-stt-lab/eval/.

Reach and rollout

The table serves the batch-vendor-routing cohort: 25% in prod on 2026-11-27, with a registry ramp plan to 100% by 2026-11-29. David asked on 2026-11-27 for the ramp to go to 100% now, so the built-in route logic can be deleted. The ramp write goes to the release owner separately. Owners outside the cohort keep the built-in route (Modulate) for these languages.

Cost

24 h to 2026-11-27T05:5xZ (GMP, summed 10-minute increases): batch Modulate 528 audio-h, batch Soniox 132 audio-h (failover). At 100% vendor routing, moving unsupported-language units from Velma ($0.06/h) to Soniox ($0.12/h) adds roughly $30–75/day: today's units, plus the multilingual-profile units that #26431 now classifies per unit. There is no hard cap; the page is the bound.

Rollback

Put en-overflow-1116 back in BATCH_VENDOR_ROUTE_TABLE on the sync services (it is in git history). Units already admitted keep their route. If an older revision receives the new table, it rejects it (Soniox not failover-only) and serves its last valid table, so a mixed fleet is safe.

Readback after serving (on SCA-4917)

  • omi_batch_pipeline_vendor_route_decisions_total{route="soniox"} by reason, and Soniox audio-h/day against the estimate.
  • Failovers Soniox → Modulate, and held units by reason.
  • The owner's next code-switched conversation: Mandarin units served by Soniox, English by the GPU.

Test plan

  • 13 route-table suites (contracts, selection, prod table, health, overflow, provider stage, failover, outage drills, sim drills, unsupported languages, audio language, held contract, oldest-age alerts): 908 passed.
  • provision_monitoring_alerts.py --regenerate and --lint: 271 definitions valid.
  • test_batch_soniox_daily_hours_alert.py: the page's query, 24 h window, firing at 1,500 h (1,499 and 1,500 quiet, 1,500.5 fires), 5 m duration, page routing, the counter it reads is the one emitted, it is in the fail-closed live-alert-gate.json, and the prod table has no Soniox cap. Monitoring contract suites and the GMP inventory pass (547 passed).
  • check_runtime_env_compose.sh: up to date. alert_backtest.py --lint: no failures (the attempt-audio counter is declared, as the overflow counter is). Flag registry re-rendered: it embeds the prod table value.

Product invariants affected

  • INV-MEM-4: path match only. The regenerated backend/deploy/runtime_env.yaml changes only the BATCH_VENDOR_ROUTE_TABLE value on the sync services; no memory intake, promotion or projection behaviour changes.

Failure-Class: FC-unknown-language-treated-as-model-capability

🤖 Generated with Claude Code

Git-on-my-level and others added 2 commits November 27, 2026 11:02
…nstead of a Soniox cap

David 2026-11-27 (SCA-4917): unsupported-language batch units start on Soniox, Velma as
failover, from a public eval where Soniox beat Velma on every language but English.

- Route table soniox-unsupported-1127: gpu_unsupported [soniox, modulate]; Soniox is a
  primary at its $0.12/h list price with no daily cap or monthly budget.
- Removes the FAILOVER_ONLY_SERVICES code lock (11-01 lead rule); failover_only stays a
  per-table choice.
- Pages (omi-batch-soniox-daily-hours) above 1,500 batch Soniox audio-h in 24 h instead
  of holding units on a cap.

Failure-Class: FC-unknown-language-treated-as-model-capability
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he flag registry

The Soniox daily-hours page reads omi_batch_pipeline_vendor_attempt_audio_seconds_total,
declared like the overflow counter. The registry embeds the prod route table value.

Failure-Class: FC-unknown-language-treated-as-model-capability
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T16:56:50.793875Z 8d6b118 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Git-on-my-level and others added 2 commits November 27, 2026 11:33
The page replaces Soniox's batch daily cap, so it joins the fail-closed
live alert gate, and a test pins its query, threshold, duration, routing
and that the counter it reads is the one the backend emits. The counter
gets a literal name for the emitter scan; the GMP inventory is regenerated.

Failure-Class: FC-unknown-language-treated-as-model-capability

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Panel round 1 (F4, F5, F6, F8, F10): the provider policy, prod overlay,
capacity runbook and route_capable docstring still described Soniox as
failover-only or the old en-overflow-1116 table.

Failure-Class: FC-unknown-language-treated-as-model-capability

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d6b11834c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Review thread on #26526: backend/AGENTS.md requires module-scope imports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 3804359 into main Nov 27, 2026
69 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/stt-soniox-batch-route branch November 27, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant