dsh-voice-parlaspeech-hr: DeepSeek Harness Local Croatian Speech-to-Text

Introduction

In DeepSeek Harness (DSH), the common approach for voice input is to connect to a general ASR or cloud API. General Whisper-like models are not specialized in Croatian; if you need parliament-level corpus training or completely offline Croatian transcription, the local ParlaSpeech wav2vec2 pipeline is more suitable. Below is an introduction to the community plugin dsh-voice-parlaspeech-hr: using the ParlaSpeech model from Hugging Face within Harness to convert Croatian speech to text, and reusing DSH’s experimental voice input plugin’s microphone and message insertion capabilities.

What is this

ctrlasistent/dsh-voice-parlaspeech-hr is published by maintainer ctrlasistent and categorized as Model Inference in the SkillHub Plugin Directory. The plugin is based on ParlaSpeech-HR related wav2vec2 models, targeting local Croatian speech recognition (ASR) and transcription within DeepSeek Harness; compared to Whisper, this model is specifically optimized for Croatian and was further trained on approximately 300 hours of Croatian parliamentary recordings from ParlaSpeech-HR v1.0. Inference is performed entirely locally, without relying on API keys, cloud services, or external servers.

The DSH ecosystem follows the “everything is a plugin” philosophy: the community directory is maintained by sites like SkillHub and has no official affiliation with DeepSeek/Fangyuan. Please read the source code and license yourself before installing (this plugin is MIT, package.json specifies version 1.0.0).

Core Features

According to the project README, the verified capabilities are as follows:

  1. Croatian Optimization: WER is 7.61% on the ParlaSpeech-HR test set (default model).
  2. Language Options: Supports Croatian (hr) and automatic language identification (auto).
  3. Offline Operation: After the model is first downloaded from Hugging Face, it can be used without a network connection; no API key is required.
  4. Integration with DSH Voice Input: Does not run as a standalone service; relies on @deepseek-ai/dsh-experimental-voice-input-bundle to provide the microphone, waveform display, and text insertion into messages.
  5. Persistent Worker: Loads the model via a persistent Python background process to avoid reloading on every request.
  6. GPU: Automatically uses CUDA when available.
  7. Privacy: Inference is executed only on the local machine.

Optional Models (all from Hugging Face classla):

model Disk RAM WER Description
classla/wav2vec2-xls-r-parlaspeech-hr ~1.2 GB ~2 GB 7.61% Default, balanced quality and speed
classla/wav2vec2-large-slavic-parlaspeech-hr-lm ~3.6 GB ~4 GB ~5% Higher accuracy, larger resource usage

Official Note: The plugin is designed for Croatian; while modelId can point to any Wav2Vec2ForCTC model, only Croatian has been tested and supported. Supported platforms are linux, win32, darwin.

Prerequisites

Before enabling this plugin, please confirm:

  1. Experimental DSH Voice Input plugin is enabled: @deepseek-ai/dsh-experimental-voice-input-bundle (marked as required in README).
  2. deepseek-harness version >= 0.2.2-alpha.2.
  3. Python 3.9+; if using the automatic environment path, the plugin will install transformers, torch, soundfile, librosa, numpy.
  4. Reserve approximately 1.2–3.6 GB of disk space (depending on the selected model).
  5. First use requires a network connection to pull the model from Hugging Face to ~/.cache/huggingface/; afterwards, it can be used completely offline.

Installation and Activation

The README does not provide a fixed dsh plugin add ... one-line command. The SkillHub directory page states: Install the plugin ctrlasistent/dsh-voice-parlaspeech-hr via DeepSeek Harness (can be used in conjunction with the “Send to DeepSeek Harness for installation” guide on the directory page). The plugin runs with the permissions of the current DSH process; it is recommended to verify lib/, runtime/, and cordis.patch.yml in the GitHub repository before installing.

Repository URL: https://github.com/ctrlasistent/dsh-voice-parlaspeech-hr

Configuration Methods

The speech-to-text provider is injected via the plugin’s built-in cordis.patch.yml. There are two methods depending on whether you already have a Python environment and local model.

Method 1: Existing Environment and Model

If your local machine already has a Python environment containing the dependencies mentioned above, and the model has been downloaded to a local directory, you can specify the paths explicitly. In this mode, the plugin will not create a venv, install packages, or download models.

- insert:
    - id: speech-to-text-parlaspeech-hr
      name: dsh-voice-parlaspeech-hr
      config:
        providerId: parlaspeech-hr
        modelId: classla/wav2vec2-xls-r-parlaspeech-hr
        modelDirectory: /putanja/do/modela
        pythonPath: /putanja/do/venv/bin/python

Replace modelDirectory and pythonPath with the actual paths on your machine; modelId can be changed to another model from the table above.

Method 2: First Use, Zero Manual Preparation

Set modelDirectory and pythonPath to empty strings, or omit these two items. On first use, the plugin will:

  1. Create a virtual environment in runtime/venv/;
  2. Install transformers, torch, soundfile, librosa, numpy;
  3. Download the model specified by modelId from Hugging Face.
- insert:
    - id: speech-to-text-parlaspeech-hr
      name: dsh-voice-parlaspeech-hr
      config:
        providerId: parlaspeech-hr
        modelId: classla/wav2vec2-xls-r-parlaspeech-hr
        modelDirectory: ''
        pythonPath: ''

Configuration field meanings: providerId is fixed as parlaspeech-hr; modelId is the Hugging Face model identifier.

Typical Usage

After configuring the above and enabling it together with DSH Voice Input, the flow is consistent with other voice inputs in Harness: collect audio via the experimental voice input UI, complete transcription in the local worker provided by the ParlaSpeech provider, and insert the text into the current conversation message. No need to start an ASR service separately or fill in cloud APIs.

If aiming for a lower WER, you can adjust modelId to classla/wav2vec2-large-slavic-parlaspeech-hr-lm and ensure memory and disk meet the requirements in the table above.

Suitable Scenarios and Notes

Who is it for: Developers or researchers who need to process Croatian oral content in DSH and want data to stay on the local machine; when the corpus background is close to the parliamentary speech transcription scenario of ParlaSpeech-HR training distribution, the default model offers a high cost-performance ratio.

Notes:

  • Must install and enable @deepseek-ai/dsh-experimental-voice-input-bundle first, otherwise the microphone and UI link are missing.
  • Plugin process permissions are the same as DSH; Python dependencies and model downloads occur under your user directory and the plugin’s runtime/; please review the source code before deployment.
  • Do not expect official support for non-Croatian scenarios; forcibly replacing modelId with wav2vec2 of other languages is at your own risk.
  • The GitHub repository currently has 0 stars, the community is small, and troubleshooting mainly relies on the README and Issues.

Conclusion

dsh-voice-parlaspeech-hr connects the ParlaSpeech Croatian wav2vec2 model to the DSH voice input stack, achieving local, offline Croatian ASR, and optionally higher precision models if resources allow. Directory and documentation entry points:

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye