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:
parent
a529d5e527
commit
e6e31fd68e
@ -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:
|
||||
|
26
whisper-asr-webservice/README.md
Normal file
26
whisper-asr-webservice/README.md
Normal 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
|
13
whisper-asr-webservice/docker-compose.yml
Normal file
13
whisper-asr-webservice/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user