Skip to content
Projekte

Über uns

Local Rust speech-to-text server powered by GigaAM v4.

KI und maschinelles Lernen

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
-1
in 7 days
+3
in 15 days
+5
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

gigastt

Local speech recognition for files, live audio and embedded applications.

crates.io docs.rs license

gigastt is a Rust CLI and HTTP/WebSocket server powered by GigaAM and ONNX Runtime. Russian recognition is the default. Legacy multilingual models also support English, Kazakh, Kyrgyz and Uzbek. The optional GigaAM v4 CPU profiles include bilingual RNNT/CTC and Multilingual-v2 RNNT with 21 language-conditioning tags. Inference runs on your machine, with no cloud API, account or API key. Models can be provisioned offline.

This documentation follows main. For an installed release, use the documentation at its tag. Model bundles and language-binding releases have their own versions.

Install

Choose one installation method:

  • Prebuilt binary: download the archive for your platform from Releases, unpack it and put gigastt (gigastt.exe on Windows) on PATH. Builds cover macOS Apple Silicon, Linux x86_64/aarch64 and Windows x86_64. See release verification.
  • Homebrew:
    brew tap ekhodzitsky/gigastt https://github.com/ekhodzitsky/gigastt
    brew install gigastt
    
  • Build the published crate:
    cargo install gigastt --locked
    
    Requires Rust 1.94+, a native toolchain and protoc; Linux also needs OpenSSL development files. Build prerequisites.

Docker and offline/systemd packages: deployment.

Optional GigaAM v4 on GNU/Linux x86-64

The signed v2.23.0 release includes an application archive with the optional v4 feature and its signature. The ordinary v3 INT8 default stays in place. To use an explicit FP32 profile:

  1. Verify the application archive and signed model metadata using the trusted release key in the verification guide.
  2. Use gigastt download --pack in the 2.24.0 source build, or use the installer scripts from the v2.23.0 source tree with the v2.23.0 application. Install the RNNT bundle or CTC, Multilingual-v2 and optional VAD packs in a separate directory.
  3. Prepare the separate, exact oneMKL runtime using its pinned wheel and bridge toolchain. MKL is not bundled, and runtime bytes that do not match the qualified profile are rejected.
  4. Follow the selected pack's explicit file or native WebSocket usage instructions. Native streaming requires matching file/ and native/ model directories. RNNT and CTC each ship both in one bundle; Multilingual-v2 uses separate file and native bundles.

Other platforms, containers and registry bindings do not automatically acquire this optional runtime or model capability. No v4 INT8 or accelerated profile is qualified. See the supported surface matrix for limits on file, native streaming, bindings and VAD, and the default-selection and rollback guide.

Transcribe a file

gigastt transcribe recording.wav
gigastt transcribe recording.wav --format srt --output recording.srt

For the legacy default path, the first run downloads missing models. gigastt download preloads the ASR bundle and, in default builds, the speaker model; punctuation is fetched when enabled by serve or transcribe. See model setup and sizes.

Batch processing and directory watching:

gigastt transcribe-batch recordings/ transcripts/
gigastt watch inbox/ transcripts/

Files include WAV, AAC/M4A, MP3, FLAC, OGG/Vorbis, OGG/Opus and WebM/Opus. The optional, default-off unlace WebM/Matroska adapter provides strict Opus trim and completeness checks with different file admission rules. WAV telephony codecs and raw G.711/G.722 are supported; see the format and codec reference.

Run the server

gigastt serve

From another terminal, check readiness and upload a file:

curl --fail http://127.0.0.1:9876/ready
curl --fail http://127.0.0.1:9876/v1/transcribe \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @recording.wav

Wait for /ready to return HTTP 200 before sending audio. /health also answers during model loading. The default bind is loopback; remote access needs explicit configuration and a proxy for TLS/authentication. See deployment.

The following table describes the ordinary legacy server; the explicit v4 profiles have their own supported surface matrix.

Interface Purpose
CLI Files, batch and watch; text, JSON, SRT, VTT and Markdown exports
POST /v1/transcribe File upload with word timings and optional speaker labels
POST /v1/transcribe/stream File upload with SSE results
GET /v1/ws Live mono PCM16 at 8, 16, 24, 44.1 or 48 kHz; partial/final transcripts
POST /v1/audio/transcriptions OpenAI-compatible multipart upload and output formats
/v1/jobs Optional in-memory job queue, progress and cancellation (--enable-jobs)

API reference · CLI reference · Go client · TypeScript client

Choose a model

Legacy model variants

Model Languages Text output
rnnt (default) Russian Bare recognition; CLI/server can add punctuation and number normalization
e2e_rnnt Russian Built-in punctuation, casing and text normalization
ml_ctc, ml_ctc_large Russian, English, Kazakh, Kyrgyz, Uzbek Bare multilingual text

Select with --model-variant. Models explains downloads, formatting policy and upgrades; Languages reports measured multilingual quality. Choose using recognition quality, speed and memory on your workload, as well as punctuation.

An optional FP32 E2E RNNT pack for CPU uses a separate model directory. It can recover some omitted phrases, but has known omissions of its own and needs more resources. Default downloads remain INT8.

Explicit v4 profiles

Use separately selected FP32 raw or e2e heads with the qualified MKL runtime: RNNT and CTC for Russian/English, or Multilingual-v2 RNNT with language conditioning (not language detection). Full-context file recognition is limited to 30 seconds. Native WebSocket recognition uses 16 kHz mono PCM16, 160/320/640 ms future context and explicit Stop. The optional GigaAM VAD is a separate raw RNNT CLI/Rust file-segmentation path for sources up to 120 seconds, not native streaming. See installation and the profile matrix. Support for a conditioning tag is not proof of recognition accuracy in that language.

Performance

The current main-branch RNN-T ASR bundle is about 310 MiB on disk. It uses INT8 matrix weights with floating-point convolutions; side models and optimized caches add space. Disk size is not a RAM requirement. The older v2.22.0 release pins a different bundle; see the model transition.

Benchmarks records corpus, model and hardware provenance. Historical M1 figures do not describe the new bundle. Legacy v3 WebSocket recognition uses an offline model with buffered incremental decoding, so file WER and speed must not be presented as live-stream measurements. The opt-in v4 FP32 CPU profiles also support native stateful streaming. The fixed 19-language benchmark reports 8,435 attempts, including 376 legacy WebSocket transport failures whose failed-empty scores are not lexical recognition WER. Bashkir and Turkmen were not evaluated. No v4 INT8 artifact is qualified; the v3 INT8 default remains.

Embed the engine

Use this 2.24.0 source workspace for the matching Rust and embedding APIs. Registry packages have independent versions and feature sets; verify the installed version and capabilities. The matching Rust registry pin is gigastt-core = "2.24" once that crate version is available. Node (npm install gigastt) and Python (pip install gigastt) packages have separate release cycles. These packages load side-provisioned models. Swift, Kotlin and C ABI options are covered in in-process quickstarts and packaging. The optional v4 RNNT foreign bindings provide full-context file transcription only when built with the qualified v4-mkl feature.

CPU is the default backend. CUDA, CoreML, NNAPI and experimental ANE/Candle builds are described in architecture.

Documentation and development

Documentation index · Troubleshooting · Contributing · Changelog · Privacy · Security

GitHub workflows run only on manual dispatch. Local validation and the manual review/release process are documented in Contributing.

MIT. ASR weights are MIT; the optional WeSpeaker model is CC BY 4.0. See LICENSE, NOTICE and benchmark data licenses.

Ähnliche Projekte entdecken

Wird geladen…