Skip to content

Voice line: speech-to-text first step (Cloudflare Whisper direct, silence auto-trimmed) #9800

Closed

Description

@dezren39

Drew approved the speech-to-text direction of the basement voice line idea (2026-11-13, main chat).

Scope of this issue (first step only):

  • Push-to-talk WebSocket living in a Durable Object.
  • Speech-to-text via Cloudflare Workers AI Whisper models called DIRECTLY (the hosted-model route; the OpenCode pool route is the separate companion issue).
  • Read-only status intents only (queue state, quota state, page health) — no write actions over voice.
  • Session ledger in Turso (who asked, what intent, what was answered, audio seconds in).
  • Automatic silence removal: incoming audio is trimmed / voice-activity-detected BEFORE it is sent for transcription, so silence is never billed (Workers AI transcription charges per audio minute submitted, pauses included) and never transcribed.

Cost facts (verified 2026-11-13): Workers AI includes 10,000 free neurons/day on the existing Workers Paid plan; Whisper = 41.14 neurons per audio minute ($0.0005/min list), so the free daily allocation alone covers ~4 hours of transcription/day. No new spend.

Out of scope here: speech OUT (TTS) — that lands with the OpenCode pools companion issue and a later step of this line. The socket and intent shapes must not preclude adding TTS later.

Acceptance: one read-only intent working end to end by voice (ask -> trimmed -> transcribed -> answered), with the session row visible in the Turso ledger.

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

    Scope amendment (Drew, 2026-11-14, main chat): this line must TALK BACK. Speech out is in scope for the first step, not deferred.

    • Speech-to-text: Cloudflare Workers AI Whisper, called directly (as filed).
    • Speech OUT: Cloudflare Workers AI MeloTTS, called directly — the line speaks its answer back in the same session.
    • Automatic silence removal now applies in both directions: incoming audio is trimmed before transcription (silence is billed per audio minute submitted); outgoing speech synthesizes only the answer text.

    Step-1 acceptance updates to: one read-only intent working end to end BY VOICE IN BOTH DIRECTIONS — ask out loud, get trimmed + transcribed, hear the spoken answer — with the session row (audio seconds in and out) visible in the Turso ledger.

    The routed/pooled version of speech (failover across providers, pools for both directions in the OpenCode config) remains the companion issue code#9801; this issue stays the Cloudflare-direct first step.

  4. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — code landed, deploy + live proof remain

  5. added
    queue/parked
    status/parked
    work/assigned
    and removed
    queue/queued
    on Nov 14, 2026
  6. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (resume) — task 16482

  7. added
    queue/claimed
    status/in-progress
    and removed
    status/parked
    queue/parked
    on Nov 15, 2026
  8. 10 remaining items

  9. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Blocked-claim validation — dropped-thread catcher, 2026-11-15 ~15:40 CST

    The claim on task 16482 (lane code-h park, 2026-11-15T15:17Z) was that Cloudflare deploy/auth is unavailable (wrangler whoami → API error 9109 "Invalid access token"), so the deploy + live voice proof cannot proceed and the issue sits status/blocked + user/escalated.

    Checked against live evidence:

    1. PR feat(voice-line): step 1 — push-to-talk DO, Whisper STT + MeloTTS out, VAD trim, Turso ledger (#9800) #10039 is MERGED (gh read-back this run) — the lane notes calling it OPEN were stale. The code half of the acceptance is landed on main; only deploy + live proof remain.
    2. Cloudflare credentials exist in the fleet vault by name (names only, no values read): cloudflare.api-token-account-wide, cloudflare.api-token-day-to-day, cloudflare.api-token-ai-inference, and others. The vault also carries cloudflare.api-token-ai-inference.REVOKED — a revoked token in the lane's environment explains a 9109 exactly. An invalid token in one lane env is a wiring fix, not a missing credential and not a Drew act.
    3. Turso CLI is already authenticated (dezren39, per the lane's own note), so ledger provisioning is not blocked either once deploy auth is wired.

    Disposition: blocker is real in that lane's env but fleet-solvable. Removing status/blocked, queue/blocked, and user/escalated; setting queue/queued so the next lane retries deploy with a valid vault token (by name above), sets the Turso ledger secrets, deploys, and runs the one spoken queue-state proof per the PR README. If every vault token fails 9109 on read-back, re-block with that evidence — that would be a new claim, not this one.

  10. added
    queue/queued
    and removed
    status/blocked
    user/escalated
    queue/blocked
    on Nov 15, 2026
  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — voice line step 1 LIVE and proven end to end (task 16482, lane code-c, 2026-11-16)

  12. removed
    queue/queued
    work/assigned
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions