jianchang512/stt
Local faster-whisper web app and API for audio and video transcription
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
start.py launches a local Python web application with a browser upload form and an HTTP API on port 9977. The dependency manifest lists Flask and gevent for the web stack, faster-whisper for speech recognition, and torch==2.1.2. Source installs also require FFmpeg. The core flow is file upload, language and model selection, local inference, and conversion of the transcript into plain text, timestamped SRT, or JSON.
Model files can be staged under the project's models/ directory, and the API selects a model by name. Integrations can use the native multipart endpoint at /api or point an OpenAI client at the /v1 base URL. Release 20250805 replaced multithreaded recognition with a single worker queue: callers can submit requests independently, but should not expect them to run inference in parallel.
Key Capabilities & Differentiators
The browser UI accepts audio and video by file selection or drag-and-drop and lets users choose the language, model, and output format. The model range includes tiny, base, small, medium, and large-v3. Release v0.94 added automatic language detection and custom Hugging Face model support, and updated support for large-v3-turbo. Native API callers can explicitly specify language codes such as zh, en, or ja.
POST /api takes a multipart file plus language, model, and response_format fields, returning a code/msg/data envelope. The OpenAI-style interface supports text, srt, and json, but its JSON output represents parsed SRT subtitles. Verify the payload against downstream consumers rather than assuming OpenAI response-schema parity. The interfaces shown are based on file uploads and completed results, not live audio streaming.
Trade-offs & Limitations
Compared with a managed Whisper API, stt lets you keep recordings and inference on your own infrastructure, but you take responsibility for provisioning, model storage, and runtime compatibility. Compared with using faster-whisper directly, it saves the work of building an upload UI and API, at the cost of adopting its output conventions and queue behavior. A slow job can delay those behind it, so measure end-to-end turnaround under representative concurrent submissions.
Start with a smaller model on CPU and test accuracy, turnaround, and memory on your own recordings before sizing up. The project cautions against large-v3 below 8 GB of VRAM, especially with larger videos; that is practical caution, not a guaranteed minimum. Chinese transcripts can sometimes contain Traditional characters, so test any script-normalization requirements. GPL-3.0 permits commercial use, but redistribution of covered binaries or modified versions brings source and licensing obligations.
Hardware & Deployment Guide
On Windows, the prebuilt release can be extracted and launched with start.exe; the 20250805 full package is listed at about 1.6 GB. Source installation on Windows, Linux, or macOS uses Python 3.9–3.11, a virtual environment, requirements.txt, FFmpeg, and local model files. Run python start.py to open the browser UI. Inference can stay offline once dependencies and weights are in place; online model acquisition is a separate step.
CPU is the default in set.ini. For an NVIDIA GPU, match the driver, CUDA, cuDNN, and PyTorch build, validate the setup with testcuda.py, then set devtype=cuda and restart. The source setup includes a CUDA 12.1 PyTorch wheel path, while troubleshooting also mentions other CUDA versions, so validate the combination on the deployment host. Release 20250805 added the /v1 interface and switched online model downloads to an HF mirror in Chinese-language environments. Keep the default loopback access for single-machine use; review authentication and access controls before exposing the service to other hosts.
start.py launches the local Python application; faster-whisper handles inference and FFmpeg is a source-install prerequisite.POST /api accepts multipart audio or video and wraps results in code, msg, and data./v1 base URL supports OpenAI-style transcription calls; JSON output represents parsed SRT subtitles.tiny through large-v3; v0.94 updated large-v3-turbo support and added custom Hugging Face models.20250805 serializes recognition jobs to reduce VRAM pressure from overlapping inference.Individuals and teams transcribing recorded audio or video on their own machines, generating SRT subtitles, or moving a file-based transcription integration off a hosted API.
You need live streaming, parallel inference with predictable turnaround, or a managed service that removes responsibility for models and GPU runtimes.
Quick Start & Installation
import requests # 请求地址 url = "http://127.0.0.1:9977/api" # 请求参数 file:音视频文件,language:语言代码,model:模型,response_format:text|json|srt # 返回 code==0 成功,其他失败,msg==成功为ok,其他失败原因,data=识别后返回文字 files = {"file": open("C:/Users/c1/Videos/2.wav", "rb")} data={"language":"zh","model":"base","response_format":"json"} response = requests.request("POST", url, timeout=600, data=data,files=files) print(response.json())
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| stt ★ | 4.9k | +7 | Python | GPL-3.0 | Local faster-whisper web app and API for audio and video transcription |
| WhisperLiveKit | 11.3k | +27 | Python | Apache-2.0 | Self-hosted streaming speech-to-text with pluggable ASR and speaker diarization |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| mlx-audio | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/jianchang512/stt.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about stt
How do I connect an existing transcription client?
base_url set to http://127.0.0.1:9977/v1 and choose a local model such as tiny. Test how your client handles each response format, particularly JSON, which represents parsed SRT subtitle data. Alternatively, POST a multipart file to /api and read the code, msg, and data envelope. The sample SDK key is not evidence of server-side authentication.Which model should I start with, and how should I size the hardware?
tiny or base on CPU, then test representative recordings before moving up a model size. For NVIDIA GPU deployment, validate the CUDA runtime with testcuda.py and measure peak VRAM on your own media. The project cautions against large-v3 with less than 8 GB of VRAM, especially for larger videos; that is a warning, not a guaranteed sizing threshold. Serial execution reduces overlap between jobs but does not reduce the memory needed by a single job.Can a company self-host or redistribute the application?
When is stt a better choice than direct faster-whisper or a managed Whisper API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy