Transcribe audio files to text using whisper.cpp. Use when the user wants to transcribe audio, convert speech to text, or extract text from an audio/video file.
Whisper.cpp
API reference for the whisper.cpp HTTP server running at http://macmini:8178.
whisper.cpp is a C/C++ port of OpenAI's Whisper speech recognition model. The server accepts audio files via HTTP and returns transcriptions in various formats.
Server
Base URL:http://macmini:8178
No authentication required
Endpoints
POST /inference
Transcribes an audio file. Accepts multipart/form-data.
Initial prompt to condition the model (e.g. for vocabulary hints).
suppress_nst
bool
false
Suppress non-speech tokens.
no_context
bool
false
Do not use previous audio context for subsequent segments.
debug_mode
bool
false
Enable debug output.
Response Formats
json (default)
Minimal JSON with just the transcribed text.
{"text":"The transcribed content goes here."}
verbose_json (or vjson)
Extended JSON including task type, language, audio duration, per-segment timestamps, token-level timing, confidence scores, and language probability distribution.
text
Plain text transcription. Includes speaker labels if diarization is enabled.
srt
SubRip subtitle format with sequential numbering, HH:MM:SS,mmm timestamps, and text content.
1
00:00:00,000 --> 00:00:03,500
The transcribed content goes here.
vtt
WebVTT subtitle format with WEBVTT header and HH:MM:SS.mmm timestamps.
WEBVTT
00:00:00.000 --> 00:00:03.500
The transcribed content goes here.
POST /load
Loads a different model file on the server at runtime.
The server accepts at least WAV (16-bit PCM) and MP3 files directly. If the server was started with --convert, it can use ffmpeg to handle additional formats (ogg, flac, m4a, etc.).