crispasr-agent-transcriber
Local-only transcription server for MCP agents, powered by CrispASR. Transcribes audio/video files without cloud uploads, supporting English and Chinese.
README
crispasr-agent-transcriber
Local-only transcription for Codex and MCP-based AI agents, powered by CrispASR. No cloud uploads, no API keys required for transcription.
What it does
Give it a local audio or video file. It:
- Probes the spoken language (English or Chinese) using CrispASR's FireRed LID.
- Starts a local CrispASR server with the right backend -- Cohere Transcribe for English, Qwen3-ASR for Chinese.
- Extracts audio from video with ffmpeg when needed.
- Calls CrispASR's
/v1/audio/transcriptionsendpoint. - Writes the transcript and metadata to disk.
Everything runs on your machine. Media never leaves it.
Quick start
Prerequisites: Python 3.11+, uv, ffmpeg, and three model files (see below).
git clone https://github.com/EmiyaKatuz/crispasr-agent-transcriber.git
cd crispasr-agent-transcriber
# Install Python dependencies
uv sync --extra dev
# Install the CrispASR binary (auto-detects GPU: CUDA > Vulkan > CPU)
uv run python scripts/transcribe.py --install-crispasr
# Transcribe a file
uv run python scripts/transcribe.py sample.mp4 --profile auto `
--manage-server `
--lid-backend firered --lid-model models\firered-lid-q2_k.gguf `
--model models\cohere-transcribe.gguf `
--format verbose_json
Or run .\scripts\setup.ps1 for a guided first-time setup.
Required models
This tool does not download models automatically. Download these three
GGUF files and keep them in a local directory (the repo's models/ folder
works well):
| Purpose | File | ~Size | Source |
|---|---|---|---|
| English ASR | cohere-transcribe.gguf |
3.9 GB | Cohere on HuggingFace |
| Chinese ASR | qwen3-asr-1.7b-q4_k.gguf |
1.3 GB | Qwen3-ASR GGUF |
| Language detection | firered-lid-q2_k.gguf |
350 MB | FireRed LID GGUF |
Pass them on every run:
--model models\cohere-transcribe.gguf
--lid-backend firered --lid-model models\firered-lid-q2_k.gguf
CrispASR binary management
The tool auto-detects, installs, and updates the CrispASR binary from GitHub releases.
| Flag | Effect |
|---|---|
--install-crispasr |
Download latest platform binary to bin/ |
--update-crispasr |
Upgrade to newest release |
--crispasr-status |
Show installed version + update availability |
--crispasr-bin-dir PATH |
Custom directory (default ./bin) |
--crispasr-bin PATH |
Exact path to crispasr.exe |
When --manage-server is set and no binary is found, it auto-installs before
starting the server.
GPU detection
On install and update, the tool checks your hardware:
- CUDA --
nvidia-smiavailable, orCUDA_PATH/CUDA_HOMEset, or CUDA inPATH-> downloadscrispasr-*-cudavariant. - Vulkan --
vulkaninfoorVULKAN_SDKset (only when CUDA is absent) -> downloadscrispasr-*-vulkanvariant. - CPU -- fallback when no GPU toolkit is detected.
macOS always uses the universal binary.
Profiles
| Profile | Backend | ASR model | Language hint |
|---|---|---|---|
english |
cohere |
Cohere Transcribe 03-2026 | en |
chinese |
qwen3-1.7b |
Qwen3-ASR 1.7B | zh |
auto |
determined by LID | determined by LID | detected |
auto mode runs FireRed language detection on the media, then routes English
to Cohere or Chinese to Qwen3-1.7B. Mixed or uncertain content stops with a
clear error asking you to re-run with --profile english or --profile chinese.
Usage
Managed server (tool starts CrispASR for you)
uv run python scripts/transcribe.py sample.wav `
--profile auto `
--manage-server `
--model models\qwen3-asr-1.7b-q4_k.gguf `
--lid-backend firered --lid-model models\firered-lid-q2_k.gguf `
--format srt `
--out-dir outputs
Add --keep-server to leave the server running after transcription.
Manual server (you start CrispASR)
# Terminal 1 -- start the server
crispasr --server --backend cohere `
-m models\cohere-transcribe.gguf `
--port 8080
# Terminal 2 -- transcribe
uv run python scripts/transcribe.py sample.mp4 `
--profile english `
--server-url http://127.0.0.1:8080 `
--format verbose_json
If the running server's backend doesn't match the selected profile, the tool prints the exact command you need to start the correct server.
Output formats
--format |
File extension | Contents |
|---|---|---|
text |
.txt |
Plain transcript |
verbose_json |
.json |
Full response with segments |
srt |
.srt |
SubRip subtitles |
vtt |
.vtt |
WebVTT subtitles |
A .metadata.json sidecar is always written alongside the transcript.
Video files
Video files are detected automatically. ffmpeg extracts the audio track to a temporary mono 16 kHz WAV before sending it to CrispASR. The temporary file is deleted when transcription finishes.
All CLI flags
--profile auto|english|chinese
--format text|verbose_json|srt|vtt
--out-dir PATH
--server-url URL
--allow-remote-server
--manage-server
--keep-server
--model PATH Local GGUF model path
--allow-model-auto-download
--lid-model PATH Local LID model path
--lid-backend firered|silero|ecapa|whisper
--host HOST Managed server host (default 127.0.0.1)
--port PORT Managed server port (default 8080)
--language CODE Language hint for transcription
--prompt TEXT Initial prompt/context
--vad Enable voice activity detection
--diarize Enable speaker diarization
--diarize-method METHOD
--hotwords WORD,WORD Comma-separated hotwords
--no-timestamps
--preprocess auto|always|never
--api-key KEY If CRISPASR_API_KEYS is enabled
--crispasr-bin-dir PATH
--crispasr-bin PATH
--install-crispasr
--update-crispasr
--crispasr-status
MCP server
uv sync --extra mcp
uv run python -m crispasr_mcp.server
Exposed tools:
| Tool | Description |
|---|---|
crispasr_health |
Check CrispASR server health |
crispasr_backends |
List available backends |
crispasr_detect_language |
Run language detection on a file |
transcribe_audio |
Transcribe an audio file |
transcribe_video |
Transcribe a video file |
transcribe_folder |
Batch-transcribe a folder |
Security model
- No cloud uploads. Media files stay on the local filesystem.
- No remote servers by default.
--server-urlonly accepts localhost unless--allow-remote-serveris explicitly passed. - No URL inputs. Only local file paths are accepted. URLs, S3, and other remote schemes are rejected.
- No shell injection. ffmpeg is called with argument lists and
shell=False. No user-controlled strings are interpolated into shell commands. - No model downloads by default. CrispASR model auto-download (
-m auto) requires--allow-model-auto-download. The same guard applies to language detection models. - Temporary files are cleaned up. Converted WAV files and LID probe windows are deleted when transcription finishes.
- Binary downloads are explicit. CrispASR binary installs only from the
official
CrispStrobe/CrispASRGitHub releases.
Verify
uv run pytest # 52 tests
uv run ruff check . # zero lint warnings
License
This project is licensed under the MIT License.
Third-party components and attribution
This tool orchestrates several independently-licensed projects. It does not bundle, fork, or redistribute their code -- it downloads pre-built binaries and calls them as subprocesses or HTTP services at runtime.
| Component | License | Role |
|---|---|---|
| CrispASR | MIT | ASR engine, server, language detection |
| ffmpeg | LGPL 2.1+ / GPL 2+ | Media decoding and audio extraction |
| Cohere Transcribe 03-2026 | Cohere model license | English ASR model (loaded by CrispASR) |
| Qwen3-ASR 1.7B | Apache 2.0 | Chinese ASR model (loaded by CrispASR) |
| FireRed LID | Apache 2.0 | Language detection model (loaded by CrispASR) |
| httpx | BSD | HTTP client for CrispASR API |
| MCP Python SDK | MIT | MCP server framework |
Model files must be downloaded separately by the user from their respective HuggingFace repositories. See Required models above.
Related projects
- CrispASR -- the ASR engine this tool wraps
- CrisperWeaver -- CrispASR's desktop GUI (not used by this tool)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。