This is a Docker setup with a FastAPI proxy that provides basic authentication for the Whisper ASR (Automatic Speech Recognition) service.
- Docker and Docker Compose
- Access to the ITKDev Docker commands (
idc)
- Copy the example environment file and configure it for your needs:
cp .env.example .env-
Update the API key and other configuration in the
.envfile:API_KEY: Set a secure API key for authenticationASR_ENGINE: Choose the ASR engine (default: openai_whisper)ASR_MODEL: Set the model to use (default: large-v3)
-
Build and start the containers:
idc build --pull --no-cache
idc up -dThe following environment variables can be configured in your .env file:
COMPOSE_PROJECT_NAME: Project name for Docker Compose (default: whisper)COMPOSE_DOMAIN: Domain for local development (default: whisper.local.itkdev.dk)API_KEY: Authentication key for the APIWHISPER_ENDPOINT: Internal endpoint for the Whisper serviceASR_ENGINE: Speech recognition engine to useASR_MODEL: Model to use for speech recognition
The API documentation is available at /docs after starting the services.