Build whisper-timestamped docker image that supports WebAPI.
Designed to be used with AV2Sub.
Tested on Windows WSL2 with cpu and NVIDIA gpu.
Original project: whisper-timestamped
Change settings in docker-compose.yml
start container with
docker compose --profile web-cpu up --build
or
docker compose --profile web-gpu up --build
API is available at http://localhost:5000/transcribe and http://localhost:5000/translate.
Only support subtitle transcribe now. Translate seems to be broken.
curl -X POST -H "Content-Type: multipart/form-data" -F "file=@test.mkv" -F "format=srt" <http://localhost:5000/translate>
return string
1
00:00:00,000 --> 00:00:01,000
Hello world