1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

add whisper-asr-webservice

This commit is contained in:
kev 2024-03-27 16:16:14 +08:00
parent a529d5e527
commit e6e31fd68e
3 changed files with 40 additions and 0 deletions

View File

@ -429,6 +429,7 @@ A collection of delicious docker recipes.
- [x] ohmyform
- [x] api
- [x] ui
- [x] onerahmet/openai-whisper-asr-webservice
- [x] osixia/openldap
- [x] openresty/openresty
- [x] opensearchproject/opensearch :bucket:

View File

@ -0,0 +1,26 @@
whisper-asr-webservice
======================
[Whisper ASR Webservice][1] is a free transcription service powered by Whisper AI.
It supports following whisper models:
- [openai/whisper](https://github.com/openai/whisper)
- [SYSTRAN/faster-whisper](https://github.com/SYSTRAN/faster-whisper)
## Server
```bash
$ docker compose up -d
$ curl http://127.0.0.1:9000/docs
```
## Client
```bash
$ wget -O audio.wav https://github.com/rhasspy/piper/raw/master/notebooks/wav/en/success.wav
$ curl -F audio_file=@audio.wav "http://127.0.0.1:9000/asr?task=transcribe&output=srt"
$ curl -F audio_file=@audio.wav "http://127.0.0.1:9000/detect-language"
```
[1]: https://github.com/ahmetoner/whisper-asr-webservice

View File

@ -0,0 +1,13 @@
version: "3.8"
services:
asr:
image: onerahmet/openai-whisper-asr-webservice
ports:
- "9000:9000"
volumes:
- ./data:/data
environment:
- ASR_MODEL=medium
- ASR_ENGINE=faster_whisper
- ASR_MODEL_PATH=/data
restart: unless-stopped