Skip to content

michalCapo/speak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speak - Portable Speech Recognition Tool

A command-line speech recognition application powered by Vosk. Automatically downloads and caches Vosk models to ~/.cache/vosk/.

Features

  • Real-time speech-to-text recognition
  • Automatic model download and caching
  • Lightweight ~40MB English model
  • Press Enter to stop listening
  • Auto-stops after 5 seconds of silence
  • Portable binary (no Python installation needed)

Requirements

  • Linux x86_64
  • Microphone
  • Internet connection (for first run - model download)

Building

# Install dependencies
pip install sounddevice vosk pyinstaller

# Build binary
make build

# Or show available commands
make help

# Clean build artifacts
make clean

Usage

# Run the binary
./dist/speak

Controls:

  • Speak into your microphone
  • Press Enter to stop listening
  • Auto-stops after 5 seconds of silence

How It Works

  1. Checks for Vosk model in current directory
  2. If not found, downloads to ~/.cache/vosk/
  3. Loads and starts listening to your microphone
  4. Displays partial and final transcriptions in real-time

Model Details

Default model: vosk-model-small-en-us-0.15

  • Size: ~40MB
  • Word Error Rate: 9.85% (LibriSpeech test-clean)
  • License: Apache 2.0

Download more models: https://alphacephei.com/vosk/models

License

MIT License

Copyright (c) 2026

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A lightweight, portable command-line speech recognition tool powered by Vosk. Real-time speech-to-text with automatic model download and caching—no Python installation required.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors