enne2 5f950fc59a fix: prevent Enter from sending message during recording, play error cue
- Add 'error' cue to playCue() (sawtooth 150Hz)
- Return true instead of false on Enter during recording to consume the key
- Suppress message send when Enter is pressed while recording
2026-05-02 16:02:42 +02:00
2026-04-30 00:37:17 +02:00

pi-vosk-voice logo

pi-vosk-voice

Push-to-talk voice input for Pi using Vosk offline speech recognition.

Features

  • Hold-to-talk recording
  • Live transcription while speaking
  • Partial stabilization on pauses
  • Writes into the Pi editor in paste mode
  • Optional send mode
  • Start/stop audio cues via SoX
  • Global or project-local Pi configuration

Requirements

  • sox (rec and play)
  • Python 3
  • vosk Python package
  • A downloaded Vosk model, e.g. vosk-model-it-0.22

Configuration

Put this in ~/.pi/vosk-voice.json or .pi/vosk-voice.json:

{
  "shortcut": "f12",
  "enabled": true,
  "mode": "paste",
  "modelPath": "/home/you/.cache/vosk/vosk-model-it-0.22",
  "soundsEnabled": true
}

Install in Pi

pi install /path/to/pi-vosk-voice

Then reload Pi:

/reload

Commands

  • /voice
  • /voice config
  • /voice stop
  • /voice download-model
  • /voice set shortcut ctrl+t
  • /voice set mode paste
  • /voice set sounds false

Notes

The extension uses Vosk streaming partial/final results and updates the editor progressively.

Logo Variants

Smooth / vector-like

Smooth logo

Terminal / hacker style

Hacker logo

S
Description
Push-to-talk Vosk extension for Pi with live editor transcription
Readme 235 KiB
Languages
TypeScript 92.5%
Python 7.5%