DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

YuriiKP /

YuriiKP/dsh-speech-ru

Verified

Local Russian speech recognition for DeepSeek Harness voice input (GigaAM / Whisper via sherpa-onnx)

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@f65871fb

dsh-speech-ru

Local Russian speech recognition for DeepSeek Harness voice input.

DeepSeek Harness ships one recognizer — SenseVoice — whose language list is auto, zh, en, yue, ja, ko. Russian is not in it, so the microphone button either refuses the language or transcribes nonsense. This bundle registers a Russian-capable recognizer with the same microphone button, using sherpa-onnx and a local model.

No cloud, no API keys, no accounts: audio is transcribed on the host CPU and never leaves the machine.

Features

  • GigaAM v3 CTC with punctuation (recommended): a Russian ASR model from Sber, accurate on everyday speech and fast — around 1 second of CPU time for 10 seconds of audio.
  • Whisper support: multilingual small/turbo/medium models, useful when a phrase mixes Russian with English terms.
  • Several recognizers at once: every entry in providers shows up in the Voice input details, so you can switch without editing files.
  • Out-of-process inference: the model runs in its own process, so a long decode never blocks the agent loop; it unloads after an idle timeout and wakes up on the next recording.
  • Transparent state: the plugin reports checking / loading / ready / standby to the existing setup dialog, so the microphone is gated until the model is loaded.

Requirements

  • DeepSeek Harness 0.2.2 or newer with the voice input bundle enabled (Plugins → Voice input).
  • Windows x64, macOS x64/arm64, or Linux x64/arm64; prebuilt sherpa-onnx binaries need no compiler.
  • About 215 MB of disk for the GigaAM model (Whisper variants: 300 MB – 1.5 GB).
  • A microphone that the DSH window can open (HTTPS or loopback plus OS permission).

Install

  1. Clone the repository somewhere permanent — the DSH profile links the directory, so moving or deleting it breaks the plugin:

    git clone https://github.com/YuriiKP/dsh-speech-ru.git
    cd dsh-speech-ru
    pnpm install --prod
    
  2. Download a model and unpack it into speech-to-text/<name> under your DSH home (~/.dsh on macOS/Linux, %USERPROFILE%\.dsh on Windows):

    $dir = "$env:USERPROFILE\.dsh\speech-to-text"
    New-Item -ItemType Directory -Force -Path $dir | Out-Null
    curl.exe -L -o "$dir\gigaam.tar.bz2" `
      https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16.tar.bz2
    tar -xjf "$dir\gigaam.tar.bz2" -C $dir
    Rename-Item "$dir\sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16" "$dir\gigaam-v3"
    
    dir="$HOME/.dsh/speech-to-text"
    mkdir -p "$dir"
    curl -L -o "$dir/gigaam.tar.bz2" \
      https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16.tar.bz2
    tar -xjf "$dir/gigaam.tar.bz2" -C "$dir"
    mv "$dir/sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16" "$dir/gigaam-v3"
    
  3. Install the bundle: Plugins → Add plugin → the cloned directory. From an agent session the equivalent is plugin_manager with action: install_bundle and the absolute directory as target.

  4. Restart the app once, so the new module generation and the patch are composed.

  5. Open Plugins → Voice input details: the provider GigaAM v3 (RU) with language ru is selected. Click the microphone between the model selector and Send, speak, then press Stop — the transcript lands in the draft.

Models

Model Size Notes
sherpa-onnx-nemo-ctc-punct-giga-am-v3 215 MB recommended: Russian, punctuation and casing
sherpa-onnx-nemo-ctc-giga-am-v3 214 MB same acoustic model without punctuation
sherpa-onnx-whisper-small 357 MB (int8) multilingual, keeps English terms
sherpa-onnx-whisper-turbo ~560 MB archive stronger multilingual model, slower on CPU
sherpa-onnx-whisper-medium ~1.8 GB archive best Whisper quality, CPU-heavy

All of them live in the sherpa-onnx model releases (asr-models tag). The plugin finds the files itself:

  • NeMo CTC (GigaAM): any *.onnx plus tokens.txt, prefers *.int8.onnx;
  • Whisper: *-encoder*.onnx plus *-decoder*.onnx plus *-tokens.txt, prefers the int8 pair.

So a different Whisper model only needs a new directory in modelDirectory — no code changes.

Configuration

The bundle ships cordis.patch.yml, which the DSH profile can override. A richer row:

- id: speech-ru
  name: dsh-speech-ru
  config:
    providers:
      - id: gigaam-ru
        name: GigaAM v3 (RU)
        modelDirectory: !!js dshHomePath('speech-to-text', 'gigaam-v3')
      - id: whisper-ru
        name: Whisper (RU)
        modelDirectory: !!js dshHomePath('speech-to-text', 'whisper-small')
        language: ru
    threads: 4
    idleTimeoutMs: 600000
Field Default Meaning
providers[].id gigaam-ru Provider id shown to the speech service and stored as the selection.
providers[].name GigaAM v3 (RU) Label in the Voice input details.
providers[].modelDirectory — Absolute directory with the model files. !!js dshHomePath(...) builds it from the DSH home, which keeps the config portable.
providers[].language ru Language passed to Whisper models; GigaAM ignores it.
providers[].languages ru, auto, en Language hints the provider accepts, shown in the picker.
threads 4 CPU threads used by the native decoder.
idleTimeoutMs 600000 Unload the model after this much inactivity; 0 keeps it resident.

The row speech-to-text is also overridden to make the first provider the default:

- id: speech-to-text
  config:
    defaultProvider: gigaam-ru
    language: ru

How it works

The client records with MediaRecorder, converts the result to canonical 16 kHz mono PCM16 WAV, and hands it to the speech Remote. That Remote resolves a provider from ctx.speechToText and calls transcribe().

dsh-speech-ru registers such providers. Each one spawns a small Node worker (worker.mjs) holding the native recognizer, sends it the WAV as base64 over stdin, and receives the transcript as one JSON line. Two consequences: a decode never blocks the agent loop, and cancellation can simply kill the worker.

Preparation states follow the service contract (check → load → ready), so the existing UI shows progress and refuses to record against a missing model.

Verifying

The repository ships two offline harnesses that need no microphone:

# one model, one file
node test/transcribe.mjs <model-directory> <audio.wav> ru

# the whole plugin: apply() with a stub context, then transcribe
node test/plugin-smoke.mjs <model-directory> <audio.wav> ru

Both print the transcript, the audio duration, and the inference time.

Troubleshooting

  • Microphone is greyed out / "Setup failed" — the model path is wrong or the files are incomplete. Check that modelDirectory contains model.int8.onnx (or a *-encoder*.onnx pair) and tokens.txt, and look at the provider state in the Voice input details.
  • Recording does not start — another application may hold the capture device exclusively (games and virtual audio drivers are the usual suspects), or the selected input is a virtual device that getUserMedia cannot open. Pick a physical input in the Voice input details.
  • Speech comes out as gibberish — the selection is still SenseVoice. Choose GigaAM v3 (RU) in the Voice input details; the language must be ru.
  • "DeepSeek Harness.exe : error: profile … is managed exclusively" — a desktop profile cannot be inspected with the dsh CLI; install plugins through the app.

Limitations

  • Whole-recording transcription only: no streaming captions, partial results, wake word, or speech synthesis.
  • CPU inference only; provider: cpu is intentional and portability-first.
  • Punctuation and casing come from the model, not from a separate restorer; the non-punct GigaAM and plain Whisper variants produce raw text.
  • GigaAM is Russian-only. For prompts that mix Russian with English identifiers, a Whisper turbo model may read them better, at a large speed cost.

License

Plugin code: MIT — see LICENSE.

Model and runtime licenses are separate: GigaAM is MIT (Sber / Salute Developers), Whisper is MIT (OpenAI), sherpa-onnx and its prebuilt binaries are Apache-2.0. Downloading a model means accepting its license.

—/ 5

No ratings yet

Verified DSH bundle

Commit f65871fbdc58

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout