511 B
511 B
Vosk Speech-to-Text Docker Service
Setup
- Download and extract a Vosk model (already downloading
vosk-model-small-en-us-0.15.zip):
unzip model.zip -d model
mv model/* model/
- Build the Docker image:
docker build -t vosk-api .
- Run the Docker container (mounting the model directory):
docker run -p 5000:5000 -v $(pwd)/model:/app/model vosk-api
API Usage
POST /transcribe with form-data key audio (WAV/FLAC/OGG file). Returns JSON with transcription.