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:
- Croatian Optimization: WER is 7.61% on the ParlaSpeech-HR test set (default model).
- Language Options: Supports Croatian (
hr) and automatic language identification (auto). - Offline Operation: After the model is first downloaded from Hugging Face, it can be used without a network connection; no API key is required.
- Integration with DSH Voice Input: Does not run as a standalone service; relies on
@deepseek-ai/dsh-experimental-voice-input-bundleto provide the microphone, waveform display, and text insertion into messages. - Persistent Worker: Loads the model via a persistent Python background process to avoid reloading on every request.
- GPU: Automatically uses CUDA when available.
- 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:
- Experimental DSH Voice Input plugin is enabled:
@deepseek-ai/dsh-experimental-voice-input-bundle(marked as required in README). - deepseek-harness version
>= 0.2.2-alpha.2. - Python 3.9+; if using the automatic environment path, the plugin will install
transformers,torch,soundfile,librosa,numpy. - Reserve approximately 1.2–3.6 GB of disk space (depending on the selected model).
- 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:
- Create a virtual environment in
runtime/venv/; - Install
transformers,torch,soundfile,librosa,numpy; - Download the model specified by
modelIdfrom 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-bundlefirst, 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
modelIdwith 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: