Перейти к основному содержимому
V

gigaam-dsh-voice

vizer0n/gigaam-dsh-voice

Turns Russian speech into text in the DeepSeek Harness composer with a local GigaAM-v4 model, with pause and resume. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Установка

dsh plugin --profile web add github:vizer0n/gigaam-dsh-voice

README

GigaAM voice input for DeepSeek Harness

English | Русский

A microphone button for the DeepSeek Harness composer that turns Russian speech into text with a local GigaAM-v4 RNN-T model. Audio never leaves the machine, and no cloud API key is involved.

Features

  • Live dictation. The recognized text appears in the composer while you speak and is only ever appended, never rewritten behind you.
  • Pause and resume. Space pauses and resumes without dropping the model state, so the continuation lands exactly where you stopped.
  • Keys. Space — pause/resume, Enter — stop and finish, Escape — cancel and remove what was dictated.
  • Continues previous text. A new recording appends after the previous transcript instead of starting over.
  • Recording level indicator, and UI strings in Russian or English.
  • Local. Audio goes to ws://127.0.0.1:8765 and nowhere else.

Requirements

  • DeepSeek Harness >= 0.2.0.
  • Russian speech: GigaAM-v4 is trained on Russian, so dictation in other languages is out of scope.
  • Windows with Python 3.10+ on PATH. The first run prepares a virtual environment with the CPU wheels of torch and downloads about 464 MB of GigaAM-v4 weights into ~/.cache/gigaam.
  • CPU only is fine: streaming runs at roughly 0.6x realtime on a 12th-gen i5 with 8 threads, using about 1.6 GB of RAM.

Install

dsh plugin add github:vizer0n/gigaam-dsh-voice

or, in the app, Plugins → Add plugin with the repository URL.

The bundle starts the recognition server together with the Harness and stops it on exit; if something already listens on the configured port, it is left alone.

On the first start it copies the server out of the package into %LOCALAPPDATA%\gigaam-voice\asr-server — a package directory is replaced on every update, so the environment does not live there. Click the microphone once and it offers to prepare that environment: setup.ps1 runs in its own console window, so the ~500 MB download is visible, and the server starts as soon as the interpreter appears. Nothing else has to be configured.

Project layout

PathWhat it is
index.js, client.jsThe two halves of the bundle: host (server lifecycle, page config, status and setup endpoints) and browser (button, capture, insertion).
asr-server/The Python WebSocket server with GigaAM-v4, its setup script and tests.
locale/, docs/UI strings and the plugin detail page.

Configuration

~/.dsh/gigaam-voice.json is written on first start. Every field is optional: the file holds overrides, not state.

FieldMeaning
portPort of the recognition server; the browser half learns it from the page.
threadsTorch threads for the server.
contextMsStreaming right context: 160, 320 or 640 ms.
serverDirDirectory holding server.py and .venv; empty means the provisioned copy under %LOCALAPPDATA%\gigaam-voice\asr-server.
pythonPathExplicit interpreter; empty means <serverDir>/.venv/Scripts/python.exe.
autostartStart the server with the Harness.

Development

A checkout uses asr-server/ in place, so its .venv stays where the sources are:

cd asr-server
python -m unittest -v test_session.py       # protocol and transcript assembly
python test_client.py path\to\16khz.wav     # live round trip, needs the server

The server's diagnostic trail is written to %TEMP%\gigaam-voice-apply.log.

Limitations

  • The bundled server script targets Windows; the wire protocol is platform-neutral.
  • The final text is the streaming result: there is no second full-context pass, so punctuation and casing are what the streaming model produced.
  • The browser half ships as a plain script, not as a compiled bundle.

License

MIT. GigaAM-v4 is MIT as well; see its repository for the weights' terms.

Похожие плагины