jvosk

Modern desktop application for speech-to-text transcription using Vosk offline speech recognition.

Built with Java Swing and FlatLaf for a polished, cross-platform UI with multi-model support.

Download 0.1.0-SNAPSHOT

Made for macOS 🍎 image

Looks decent on Windows too :) 🪟 image

Features

Model Management

Audio and video

Transcribing an MP4 video with the bundled JAVE FFmpeg

An MP4 video is converted and transcribed offline; the status line reports the model and completion time.

View menu with Enhance Speech enabled

Optional speech-band filtering is toggled from the View menu before transcription.

Transcription

Export Options

User Interface

Quality of Life

Roadmap

In priority order — each is something a user would notice:

  1. Live transcription from the microphone. Vosk is built for streaming recognition; show words as they are spoken.
  2. Word-level timing and confidence: highlight low-confidence words in the transcript and use word times for tighter SRT/VTT cues (Vosk returns both).
  3. Batch transcription: drop a folder, get a queue with per-file progress and one transcript per file.
  4. A real 1.0.0 release: cut an annotated signed tag (git tag -s v1.0.0); GitHub Actions builds per-OS jars and jpackage installers and publishes them as release assets. Native packages are unsigned.

Recently completed

Quick Start

Requirements

Build & Run

# Clone the repository
git clone https://github.com/palaashatri/jvosk.git
cd jvosk

# Build the project and run unit tests
mvn clean verify

# Run the application
mvn exec:java

Tests and CI

mvn -B verify

# Optional network/native integration test (downloads the 39.3 MiB test model)
mvn -B -Pintegration-tests verify

The unit suite covers catalogue parsing and offline fallback, install metadata/update detection, legacy metadata migration, archive integrity, resumable downloads, persisted download queues, zip-slip protection, Model Manager update/reinstall/partial-download UI behaviour, and golden-file exports. The integration profile downloads a small official English model, installs and loads it, then transcribes the attributed short WAV fixture. GitHub Actions runs the integration profile on Linux, macOS and Windows with JDK 17 and uploads a platform-specific shaded jar from each runner. Annotated signed vX.Y.Z tags additionally build jpackage installers and publish a GitHub release.

Refresh the bundled catalogue intentionally (Python 3 required), review the JSON diff, then commit it with the snapshot date:

python scripts/update-model-catalogue.py

First Use

  1. Launch the app
  2. Open Models → Manage Models… (Cmd/Ctrl+Shift+M)
  3. Download a model for your language:
    • For English: vosk-model-small-en-us-0.15 (40MB) or vosk-model-en-us-0.22 (1.8GB)
    • For other languages, browse the available models
  4. Click “Download Model” and wait for completion
  5. Select the downloaded model and click “Use This Model”
  6. Click “Browse Files…” or drag & drop an audio file
  7. Wait for transcription to complete
  8. Save or copy your transcript!

Model Management

Accessing Model Manager

Available Models

The app reads Vosk’s official machine-readable catalogue (model-list.json) and falls back to a bundled snapshot when the catalogue cannot be fetched. The current snapshot contains 63 current speech-to-text models across 35 languages; obsolete models and archives this app cannot use (speaker-ID, text-to-speech) are filtered out.

Popular Languages:

Model Types:

Downloading Models

  1. Open Model Manager
  2. Browse available models in the table
  3. Select a model
  4. Click “Download Model”
  5. Wait for download and extraction (progress shown)
  6. Model is automatically installed and ready to use

Downloads are written to a resumable partial file and verified against the exact archive size and MD5 checksum from the catalogue before extraction. Select multiple models and choose Queue Selected for sequential downloads. Cancelled or interrupted transfers appear as Partial and resume when queued again. Unfinished queues are written to ~/.jvosk/models/.jvosk-download-queue.json and offered for resume the next time Model Manager opens. Large models show a confirmation prompt before downloading.

Model Manager showing a partial download and resume actions

Interrupted transfers stay visible as Partial (29%) with Resume Download enabled; the status column names the exact partial percentage.

Resume download queue prompt after restarting the app

Unfinished queues survive restarts and are offered for resume the next time Model Manager opens.

Switching Models

Quick Switch:

  1. Menu: Models → Switch Model…
  2. Select from installed models
  3. Confirm selection

Or via Model Manager:

  1. Open Model Manager
  2. Select an installed model
  3. Click “Use This Model”

Model Updates

Update check listing a catalogue update and an install that left the catalogue

Update checks report catalogue updates separately from installs the catalogue no longer lists.

An installed model with an update available

Updated models can be applied directly or added to the sequential queue.

A legacy installation offered for one-time reinstall

An installed model that is still in the catalogue but has no saved checksum offers Reinstall Model.

An installed model that is no longer in the catalogue

Installs the catalogue no longer lists are labelled Installed (not in catalogue); only Delete and Use remain.

A checksum-verified catalogue rename adopted on load

A folder renamed upstream is moved to the new catalogue name and reported in the status line.

Deleting Models

  1. Open Model Manager
  2. Select an installed model
  3. Click “Delete Model”
  4. Confirm deletion

Technical Details

Architecture

Core Components:

Model Storage:

Catalogue Fallback:

Platform builds: Maven activates a matching jave-nativebin-* profile for the host OS and CPU. The shaded jar therefore contains that platform’s FFmpeg binary rather than every platform binary. GitHub Actions retains separate Linux, macOS and Windows jars. Supported profiles are Windows x86/x64, Linux x64/ARM32/ARM64, and macOS x64/ARM64.

Dependencies

<dependencies>
    <!-- Core speech recognition -->
    <dependency>
        <groupId>com.alphacephei</groupId>
        <artifactId>vosk</artifactId>
        <version>0.3.38</version>
    </dependency>
    
    <!-- UI framework -->
    <dependency>
        <groupId>com.formdev</groupId>
        <artifactId>flatlaf</artifactId>
        <version>3.4.1</version>
    </dependency>
    
    <!-- Audio conversion -->
    <dependency>
        <groupId>ws.schild</groupId>
        <artifactId>jave-core</artifactId>
        <version>3.5.0</version>
    </dependency>
    
    <!-- JSON catalogue parsing -->
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.17.1</version>
    </dependency>

    <!-- Tests -->
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter</artifactId>
        <version>5.11.4</version>
        <scope>test</scope>
    </dependency>
</dependencies>

OS-specific jave-nativebin-* dependencies are selected by Maven profiles in pom.xml and included in the shaded jar for the build host.

Technology Stack

License

MIT

Contributing

Contributions welcome! Please open an issue or submit a pull request.