Skip to content

Proposal: optional self-hosted Speaches dictation #911

Closed as not planned
Closed as not planned

Description

@polaroidkidd

I'd like to propose optional self-hosted Speaches transcription alongside the existing OpenAI and browser-recognition options. The fork implementation is now submitted for review in PR #936. This discussion remains the place for approach feedback; maintainer acceptance is not assumed.

Current prototype: dle-labs/herdr-web-ui — stt-backend-selection. This branch link follows subsequent fixes rather than pinning the proposal to a commit.

Proposed scope:

  • Record a bounded take in the browser, then upload it once through the authenticated WebUI backend to an explicitly configured HTTPS Speaches service.
  • Keep the browser CSP same-origin; store the speech URL/key on the backend, and require explicit per-device Apply for the model/language/route.
  • Preserve upstream automatic provider selection, hold/tap controls and the compact seven-bar recording pill. Explicit providers and active takes never fall back on errors.
  • Preserve upstream Auto visibility for OpenAI/browser selection, with an explicit self-hosted exception: selecting Speaches keeps the chat microphone visible on phones even under Auto, including a disabled/setup explanation when unavailable. Microphone Off still hides it; On also exposes terminal controls.
  • Keep Finish → review → Send by default; optional finish-and-send applies only to explicit Send, not Enter. Preserve IME, cancellation, owner-scoped recovery and microphone release.

Would this direction be welcome, and would you prefer any part split into a separate contribution?

Task record:

  • owner: @polaroidkidd
  • scope: optional recorded Speaches provider and compatible dictation controls, including mobile chat visibility for explicitly selected Speaches
  • branch/worktree: dle-labs/herdr-web-ui:stt-backend-selection
  • dependencies: current upstream main; no dependent PR stack
  • verification: the complete local bun run check full sweep succeeded: 3,048 unit tests passed (8 skipped), 471 integration tests passed, and all 44 browser regression scripts passed. Workflow syntax, generated types, typecheck and build also passed. This includes mobile Speaches under Auto, Off visibility, capture/cancel, recovery, IME and opt-in send. The run used Linux x64, Bun 1.4.2, Node 24 and herdr 0.9.3; it is local verification, not Windows or GitHub CI. Only demo-media and changelog documentation has been added since that successful run; GitHub CI still needs to validate the PR head.
  • demo: Watch/download the 24-second MP4. The automated walkthrough includes a visible cursor and click cues, fictional chat, synthetic microphone audio and a canned transcript. It is illustrative, not evidence of real Speaches inference or real-device microphone/battery behavior.
  • status: local full sweep passed; PR #936 is open and ready for maintainer review. Approach acceptance and CI approval are not assumed.

Animated preview of the same walkthrough:

Automated dictation walkthrough with cursor and click cues; synthetic audio and transcript

Activity

  1. polaroidkidd commented on Oct 15, 2026

    @polaroidkidd
    ContributorAuthor

    Hi, I appreciate you getting back to me. The MR just sort of got away from me. It started out as a little experiment and then I just kept on using it and finding more edge-cases here and there which is why it grew so big. I'm fairly sure I can get the size down to a manageable PR. The SpeachesAI already uses OpenAI compatible API, so unless the client talks directly to the server I might be able to reuse a fair bit of it.

    Initially I had the client talk directly to the SpeachesAI backend, but realised that people would then have to have their phones be able to reach their machine AND reach their SpeachesAI backend. It also put all the responsibility of managing the speach input on the client.

    I'm also seeing a lot of PRs for other features that people use on their own and I'm wondering if it isn't worth it considering adopting a plugin-architecture for herdr-web-ui. It would certainly save you from having to review so many feature PRs.

    Any thoughts on that?

  2. added
    enhancement
    on Oct 17, 2026
  3. devswha commented on Oct 29, 2026

    @devswha
    Owner

    Thank you @polaroidkidd for the proposal and for all the work in #936.

    Supporting one particular self-hosted speech server is a large change, and no one else has asked for it, so keeping it working would cost more than it gives back. Closing as not planned. If more people ask for self-hosted dictation, we can reopen and look at a smaller, provider-neutral design.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions