Setup Whisper.cpp HTTPS API

Замовник: AI | Опубліковано: 12.10.2025

I’d like a straightforward CPU-only deployment of whisper.cpp on my Ubuntu 24.04 LTS VPS that exposes a small HTTPS endpoint for transcribing short audio clips (5–30 seconds). Key points • Single POST endpoint that accepts iPhone-friendly formats (m4a, wav, mp3) and returns the plain-text transcription in JSON. • Simple API-key header for authentication; no OAuth. • No persistence—once the text is returned, nothing is saved to disk or a database. • My PHP application (no framework) will call this service, so please include one concise PHP cURL example plus a basic command-line curl example. • SSL is already configured on the server; just bind the service to an HTTPS port or integrate with Nginx as you prefer. • I don’t need GPU acceleration; compile whisper.cpp with CPU optimizations only. Deliverables - whisper.cpp built and tested on the VPS - Lightweight wrapper (e.g., Flask, FastAPI, or C++ simple server—whichever is quicker for you) exposing the endpoint - Sample PHP snippet and brief README covering install steps and usage This is a small, focused setup—no extra logging, storage, or user management required. Let me know your preferred language for the wrapper and an estimated timeframe, and we can get started right away.