Skip to content

andrestubbe/FastSTT

Repository files navigation

FastSTT — Ultra-Fast Native Speech-to-Text for Java [v0.1.0]

A high-performance native speech-to-text module for the FastJava ecosystem. Ultra-low latency via JNI-based Whisper.cpp and real-time Cloud streaming.

Status Java Platform License: MIT


FastSTT provides professional-grade speech recognition with minimal latency. It unified local high-performance processing (Whisper) with lightning-fast cloud backends (Deepgram/OpenAI) under a single Java API.

Table of Contents

Features

  • 🎙️ Local Whisper: Native C++ integration via whisper.cpp for 100% offline privacy.
  • ⚡ Cloud Streaming: Real-time WebSocket integration with Deepgram and OpenAI.
  • 📦 Zero-Copy: Audio buffers are passed directly via JNI from FastAudioCapture.
  • 🛠️ Integrated Installer: Built-in downloader for GGML models (Tiny, Base, Small).

Installation

Option 1: Maven (Recommended)

Add the JitPack repository and the dependencies to your pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <!-- FastSTT Library -->
    <dependency>
        <groupId>io.github.andrestubbe</groupId>
        <artifactId>faststt</artifactId>
        <version>0.1.0</version>
    </dependency>

    <!-- FastCore (Required Native Loader) -->
    <dependency>
        <groupId>com.github.andrestubbe</groupId>
        <artifactId>fastcore</artifactId>
        <version>v1.0.0</version>
    </dependency>
</dependencies>

Option 2: Gradle (via JitPack)

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'io.github.andrestubbe:faststt:0.1.0'
    implementation 'com.github.andrestubbe:fastcore:v1.0.0'
}

Option 3: Direct Download (No Build Tool)

Download the latest JARs directly to add them to your classpath:

  1. 📦 faststt-v0.1.0.jar (The Core Library)
  2. ⚙️ fastcore-v1.0.0.jar (The Mandatory Native Loader)

Important

Both JARs must be in your classpath for the native JNI calls to function correctly.

Try the Installer

FastSTT comes with a built-in installer to help you download and manage Whisper models.

  1. Clone this repository.
  2. Run run-installer.bat.
  3. Choose Option 1 to download a Whisper model (e.g., base.bin).

License

MIT License — See LICENSE for details.


Part of the FastJava EcosystemMaking the JVM faster.

About

High-performance native Speech-to-Text (STT) engine for Java. Ultra-low latency via JNI-based Whisper.cpp integration. Supports Deepgram & OpenAI Cloud backends with real-time WebSocket streaming.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors