Skip to content

OpenCode: Whisper STT + TTS as routed pool models — failover, proxying, silence auto-trim #9801

Open

Description

@dezren39

Drew's order (2026-11-13, main chat): in addition to using Whisper directly from the Cloudflare models, add Whisper (speech-to-text) and TTS into the OpenCode config, supporting routing pools, auto failover, and proper proxying to the model — possibly a pool for both directions.

Scope:

  • Transcription models (Whisper family) and speech models (MeloTTS family) become first-class routable models in the OpenCode config, addressable through route pools like text models are today.
  • Pools for both directions: a speech-to-text pool and a text-to-speech pool; evaluate one combined speech pool covering both directions and pick the shape that keeps direction/capability gating clean.
  • Auto failover across providers carrying these models (Cloudflare Workers AI first; any other provider in the catalog carrying the same models joins as another door), with the standing routing rules (a 100%-walled leg is not attempted; failure skips to the next leg inside the same request).
  • Proper proxying to the model: audio payloads pass through the route layer intact, with per-provider format translation where providers differ (the capabilities supplement's per-provider input-variance rule applies to audio too).
  • Automatic silence removal in the OpenCode path as well as the Cloudflare-direct path: audio is trimmed / voice-activity-detected before transcription so silence is not billed or transcribed; for TTS, generated-audio duration is what is billed, so nothing extra is synthesized.
  • Capability declarations: audio-in / audio-out capabilities declared on the models and pools per the Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 capabilities design (brief-capabilities-supplement sections 1-5), so a text-only request never routes to a speech pool and a speech request only lands on models that can serve it.

Sequencing: this is the config/pool layer; the #9399 design mill's capabilities work is the design authority where the two overlap — align, do not fork the design. The voice-line first step (companion issue) uses the Cloudflare-direct route and does not wait on this issue.

Acceptance: a transcription request and a speech request each served through a named pool in the running config, each demonstrably failing over to a second door when the first is made unavailable, with route attempts recorded the same way text attempts are.

Activity

  1. added
    queue/queued
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — substantial feature, not started in this lane's remaining window

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 16483 (fix for OpenCode: Whisper STT + TTS as routed pool models — failover, proxying, silence auto-trim #9801, OpenCode speech pools)
    • Scope (from the issue, Drew's 2026-11-13 order): Whisper STT + TTS (MeloTTS family) as first-class routable models in the OpenCode config — direction pools (evaluate one combined speech pool vs separate STT/TTS pools), auto failover across providers (Cloudflare Workers AI first), audio payloads proxied intact with per-provider format translation.
    • First slice for the next owner: settle the pool shape (combined vs per-direction) against how text-model pools are declared today, then land the Whisper STT pool via Cloudflare with one failover leg and a routing test; TTS follows the same pattern. Nothing is gated on a Drew decision beyond the order already given.
    • Why park: claimed with ~45 minutes left in this lane's shift; config/routing work of this size should not be rushed into a partial branch. Parked 1800s, unstarted.
    • Links: queue task 16483
  4. added
    queue/parked
    status/parked
    and removed
    queue/queued
    on Nov 14, 2026
  5. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked — gated on the #9399 capabilities design (the packet's own design authority)

    • Agent: repo queue worker, lane code-a (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-code-a run 2026-11-14; task 16483
    • Task: task 16483 for issue OpenCode: Whisper STT + TTS as routed pool models — failover, proxying, silence auto-trim #9801 (Whisper STT + TTS as routed pool models). Lane code-b parked it unstarted at 14:01Z with the first slice named; this lane picked it up, did the pool-shape investigation that slice asked for, and records the gate it actually turns on.

    Investigation (fresh, current main, .opencode/opencode.jsonc — 3,785 lines):

    • The catalog already carries the speech models as unseated definitions: whisper-large-v3 and whisper-large-v3-turbo under the Groq provider, plus the Orpheus TTS models (canopylabs/orpheus-v1-english, canopylabs/orpheus-arabic-saudi). The cloudflare-workers-ai provider is likewise already in the config's provider set. So the doors exist; what does not exist is everything this issue actually adds on top of them.
    • There is no audio capability layer to declare against: the string audio appears nowhere in the config, no model or pool carries an audio-in/audio-out capability declaration, and the route proxy (bin/opencode-route-proxy.mjs) has no audio path. This issue's scope states capability declarations must follow the Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 capabilities design ("align, do not fork the design"), and its acceptance — speech requests served through named pools with recorded failover — presupposes that capability gating so text requests never route to speech pools.
    • Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 is OPEN and parked (the pool & effort system program, design mill; labels status/parked, queue/parked). Its capabilities supplement is the design authority for exactly the missing layer. Building pools + proxy audio handling now would either fork that design (forbidden by the issue) or ship unroutable catalog entries (not the acceptance).

    Disposition:

  6. added
    queue/blocked
    status/blocked
    work/assigned
    and removed
    status/parked
    queue/parked
    on Nov 14, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — state: triaged (re-verified) · task 19059, lane code-e

    Pickup + triage re-verification for task 19059 (bulk-intake duplicate triage packet for #9801). Fresh checks this shift (2026-11-17T05:4xZ):

    Verdict: this packet completes as triaged, naming task 16483's blocked disposition and its recorded first slice (adopt #9399 capability declarations → per-direction STT/TTS pools → one failover leg per direction → silence-trim). No new follow-on enqueued (would duplicate task 16483).

  8. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — correction · lane code-e, task 19059 follow-up

    Completing task 19059 made the broker create follow-on task 20447 (dedupe repo-health:v1:fix:developing-today/code:issue:9801). That is a duplicate of live task 16483, which already owns this work and is dep-blocked on #9399. Task 20447 has been cancelled as that duplicate (cancelled by repo-worker-code, lane code-e, 2026-11-17). No work is lost: task 16483 remains the owner with its recorded first slice, and its broker-watched gate on #9399 is unchanged. If task 16483 is ever cancelled or fails terminally, re-enqueue the fix packet under the same dedupe key.

  9. removed their assignment
    on Nov 20, 2026
  10. added
    queue/claimed
    status/in-progress
    and removed
    status/blocked
    queue/blocked
    on Nov 21, 2026
  11. dezren39 commented on Nov 21, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — revalidating the existing dependency gate

  12. added
    queue/blocked
    status/blocked
    and removed
    status/in-progress
    queue/claimed
    on Nov 21, 2026
  13. dezren39 commented on Nov 21, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked — dependency gate revalidated; no implementation duplicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    queue/blockedstatus/blockedwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions