Commit ca54f88
Add OpenAI-compatible ASR API server
Add asr-server binary with axum-based HTTP server exposing:
- POST /v1/audio/transcriptions (multipart: file, language, response_format)
- GET /v1/models
- GET /health
Supports json, text, and verbose_json response formats. CLI args:
--model-dir, --host, --port, --language, -v. Uses spawn_blocking
with Arc<Mutex<AsrInference>> for thread-safe inference dispatch.
Also adds duration_seconds to TranscribeResult and includes asr-server
in release CI packaging.
Signed-off-by: Michael Yuan <michael@secondstate.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent eb1c426 commit ca54f88
5 files changed
Lines changed: 947 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments