add full source: transcribe pipeline, HTTP API, OpenAI endpoint, web UI, Docker

This commit is contained in:
2026-09-09 16:04:10 +08:00
parent 757861f1dd
commit 7010da8855
19 changed files with 2918 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# docker compose up -d
#
# Set the password (and any other ASR_* knob) in .env or your shell, e.g.:
# ASR_PASSWORD=changeme docker compose up -d
#
# Models + task state persist in the named volume `asr-data` across restarts.
services:
asr:
build: .
image: record-asr:latest
container_name: record-asr
ports:
- "8080:8080"
environment:
ASR_PASSWORD: ${ASR_PASSWORD:?ASR_PASSWORD must be set}
ASR_LANGUAGE: ${ASR_LANGUAGE:-auto}
ASR_USE_ITN: ${ASR_USE_ITN:-1}
ASR_MAX_RETRIES: ${ASR_MAX_RETRIES:-3}
ASR_NUM_THREADS: ${ASR_NUM_THREADS:-2}
ASR_WORKERS: ${ASR_WORKERS:-1}
ASR_MAX_UPLOAD_MB: ${ASR_MAX_UPLOAD_MB:-512}
volumes:
- asr-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/healthz"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
volumes:
asr-data: