跳过主要内容
F

dsh-vibeforma

formamindpro/dsh-vibeforma

通过 Windows 上的 VibeForma 应用,为对话提供语音听写与本地语音转文字,并提供 Agent 工具转写音视频文件、将字幕保存在原文件旁。

安装

dsh plugin --profile web add github:formamindpro/dsh-vibeforma

README

VibeForma: voice and transcription

A DeepSeek Harness plugin that connects the local VibeForma app to the chat:

  • microphone button in the chat composer (between the model selector and "Send"): record → "Stop" → text in the draft;
  • agent tools for local audio and video files: mcp__vibeforma__vibeforma_capabilities, ..._transcribe_file, ..._job_status (the optional MCP row that ships with the bundle);
  • setup master when the app is not installed on this machine yet.

Audio never leaves the machine. The token lives in VibeForma's own configuration, not in the plugin; the package carries no keys and no machine paths.

About VibeForma

VibeForma is a free, open-source (MIT) local dictation app for Windows: press Ctrl+Alt+Space, speak, and the text appears where the cursor stands. It recognises speech on the machine with Whisper or GigaAM, transcribes audio and video files, and exposes the local HTTP API this plugin connects to. Install it in one line (PowerShell):

irm https://raw.githubusercontent.com/FormaMindPro/vibeforma/main/install.ps1 | iex

Docs: what it is · quick start · local API · sources: github.com/FormaMindPro/vibeforma.

Requirements

  • Windows 10/11 (the package declares "os": ["win32"]);
  • DeepSeek Harness >=0.2.2-rc.5 <0.3.0 (engines.dsh is checked on install and start);
  • VibeForma running, with "Allow the local API for forms" enabled in its settings ("AI and automation");
  • Python 3.11+ — only for the setup master, when the app is not on the machine yet;
  • network — only for the master's prepare step (downloading a GitHub release).

Installation

From npm (after the package is published):

dsh plugin --profile <profile> add @formamindpro/dsh-vibeforma

or in DSH: Plugins → Add plugin → the package name.

From a tarball:

npm pack
dsh plugin --profile <profile> add ./formamindpro-dsh-vibeforma-1.1.0.tgz

From the market index: enable Plugins → Experimental plugins → Custom plugin indexes, then Discover → Add index source and paste the index.json URL. The index files live next to the package in market/ (index.json and icons/vibeforma.svg) and are not part of the npm package.

After installing, open Plugins and check the bundle row: the title, description and icon must render, and there must be no diagnostics. Disabling the bundle removes the microphone button and the file tools; the app and its data stay untouched.

Configuration

Fields of the plugin row (in cordis.patch.yml or in the profile settings):

FieldDefaultMeaning
endpoint''VibeForma address: IP:port or a URL. Empty means the app on this machine.
token''API token for an explicit or non-local address. Not needed for a local app: the token is read from its configuration.

There is no model or microphone choice on the plugin row: they are chosen in the VibeForma installer window on first install (see "Setup master").

The stock voice-input row in the bundle sets language: auto: the language comes from the app's settings. The connection's languages are auto plus the active engine's set.

Where the address comes from. The first match wins: the endpoint field; the VIBEFORMA_URL environment variable; the address of the app on this machine from %LOCALAPPDATA%\VibeForma\location.json (including the port actually in use; 8787 is only the default). The token is the token field or VIBEFORMA_TOKEN; for a local app the token is read from its configuration. An explicit non-local address requires a token.

When the app answers 401. The plugin re-reads location.json once and repeats the request: the app generates a new token on restart. If the token is still rejected, the message names the real cause — the app's config.json is missing at the path from location.json, has no http_token, or the token did not match — and what to do: restart VibeForma so it publishes location.json again, or set token in the connection settings. The app's HTML error page never ends up in the message.

One connection

There is one "VibeForma" connection, independent of engines and models. It has no engine or model choice: every recording goes to the active dictation engine and its default model, exactly as chosen in the VibeForma settings. Both Whisper and GigaAM answer through the same /jobs API.

The plugin reads the active pair from GET /capabilities and shows it in the connection title:

VibeForma — Whisper: large-v3-turbo
VibeForma — GigaAM (RU/EN): v3_e2e_rnnt

An unavailable engine is named as the cause (engine_not_installed, weights_missing, load_failed, engine_not_ready and so on) and is never silently replaced by another one.

Setup master

While VibeForma answers neither through the location.json discovery nor at 127.0.0.1:8787, the connection reports the state "unprepared" (unprepared). Clicking the microphone opens the voice plugin page, where the VibeForma card shows the master: the steps, the prepare button and cancel.

The plugin downloads only after the prepare button is pressed. An already installed VibeForma is picked up immediately and goes to ready without any download.

The master's steps:

  1. check — the address, Python 3.11+;
  2. model — the latest release from GitHub (VibeForma-<version>.zip) and SHA256SUMS, SHA-256 verification, unpacking into a temporary folder; the download bytes are shown here;
  3. verify — the stock VibeForma installer window opens: the person chooses the install folder, models and microphone and sees the installation progress. The plugin passes no --target, --models or --input-device flags and waits for the window with no timeout. After the installer exits the plugin picks up location.json; if the fresh install left the local API off, the master stops only the fresh published process, switches http_api on in the app's own config.json (the token stays untouched), restarts the app and waits up to 60 seconds;
  4. load — /capabilities is ready and the connection goes to ready.

The default install folder is %LOCALAPPDATA%\VibeForma (the installer itself suggests it); the master needs no admin rights, no writes to system folders and no PATH edits. The port and API token are never typed by hand: the plugin reads them from the app's location.json and config.json.

Cancelling in the installer window leaves everything as it is and reports cancelled; cancelling the prepare step in the plugin kills the PowerShell process tree (taskkill /T) and removes the temporary folder. A refusal names its cause: no Python 3.11+, no network or DNS, GitHub answered with an HTTP status, SHA-256 did not match, the installer stopped at a step, the service did not start. The installer log is %LOCALAPPDATA%\VibeForma\logs\install.log.

MCP tools

The bundle includes the vibeforma-mcp row (@deepseek-ai/dsh-mcp-client) with a launcher that finds the app by itself:

command: powershell.exe
args: ['-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-Command', '…']
failOnStartupError: false

The launcher reads %LOCALAPPDATA%\VibeForma\location.json, takes install_dir from it and starts mcp.cmd from that folder (or from its app\ for a development tree). That is why the plugin also works when VibeForma is installed into a non-standard folder — no path has to be typed manually. mcp.cmd is created by the VibeForma installer and finds .venv next to it or one level up. failOnStartupError: false means a missing launcher is logged but never blocks DSH startup.

Once connected, the tools are visible to the model as mcp__vibeforma__*. File jobs go to the app through mcp.cmd and location.json; the microphone uses the address from the row's settings.

Agent tools

The bundle also registers two host tools that work straight through the local API and leave their result on disk, next to the source file:

ToolWhat it does
vibeforma_transcribe_folderTranscribes every audio and video file of one folder (optionally with its subfolders) and writes one result file beside each source: interview.mp4 → interview.txt, or .srt, .vtt, .json. A result that already exists is kept unless overwrite is set.
vibeforma_write_subtitlesTranscribes one file and saves its subtitles beside it, or at an explicit output path; answers with the saved path and the cue count.

Both use the same local API and the same active dictation engine as the microphone. Supported types: mp4, mkv, mov, webm, mp3, wav, m4a, m4b, ogg, flac. One folder run stops at 100 files and names the rest.

Localization

The plugin card follows the DSH UI language: locale/en.json is the base and locale/ru.json is the Russian translation; a missing translation falls back to English. The long-form documentation is the same way: README.md is English, README.ru.md is Russian, and the plugin page shows docs/DETAIL.md (or docs/DETAIL.ru.md) from meta.detail. The runtime messages in index.js are English only.

Privacy and network

  • Audio and transcripts are processed locally by the VibeForma app; the plugin does not send them anywhere except the configured address.
  • If an explicit non-local endpoint is set, audio goes there — that is your choice.
  • The network is needed only by the prepare master: api.github.com and the release download from GitHub; there is no telemetry and no background requests.
  • The API token is never written into the package, the package config, logs or the README; in code it is masked when logged.

Limitations

  • One recording is limited to 2 minutes and 4 MB (api-speech-to-text limits). Longer material goes through the file tool: up to 4096 MB and 6 hours, with a synchronous ceiling of 900 s.
  • The microphone in the browser works only on localhost/HTTPS and needs an OS permission; recording stops when the window loses focus.
  • While VibeForma itself is dictating, a file job waits (the dictation priority).
  • The plugin is Windows only; the package does not install on macOS or Linux.

Development and verification

selftest.mjs checks the plugin without a live service — on a stand-in host, stand-in requests and a temporary LOCALAPPDATA:

node project/extensions/dsh/vibeforma/selftest.mjs

The cases: one connection; address and token discovery from location.json; the manual 127.0.0.1:<port> form; the absence of engine and model fields in the /jobs body; a named refusal without engine substitution; the pair being kept while a model loads; a stopped service; install.py without model, folder and microphone flags; SHA256SUMS and the streaming SHA-256; an installed app — ready and zero bytes; the 127.0.0.1:8787 hint; cancelling the prepare step; cancelling in the installer window (cancelled); a non-zero installer exit code; the [step] Launch the service line without location.json — a refusal; api: "off" after a fresh install — switching http_api on, restart and ready; pid freshness (an old location.json does not stop a process); the token never leaking into the prepare state; launch scripts without -Wait and the CODE: parsing. The public manifest is checked too (name, version, os, engines, files without selftest.mjs and market/), together with the absence of machine paths and secrets in the published files, ASCII code, and market/index.json staying in step with the package version. Exit 0 means everything matched, 1 means a discrepancy.

Release

GitHub Actions publishes the package; no npm token is stored anywhere: npm accepts the publish through trusted publishing over OIDC and confirms it with a provenance attestation.

  1. Bump version in package.json and add a ## X.Y.Z section to CHANGELOG.md.
  2. Commit and push to main.
  3. The release workflow runs the checks (node --check, selftest), publishes the package, pushes the vX.Y.Z tag and builds a GitHub Release from the changelog section. A version that is already in the registry is skipped, so a repeated run is safe.
  4. The market index picks the version up from npm on its next index workflow run in FormaMindPro/dsh-market; run it manually to avoid the wait.

License

MIT — see LICENSE.

相关插件