Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 960 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 960 Bytes

whisper-lagoon

whisper API running on lagoon

Local

Use docker compose to build and start the API.

docker compose build
docker compose up -d

Local GPU

Use docker compose to build and start the API.

docker compose -f docker-compose.gpu.yml build
docker compose -f docker-compose.gpu.yml up -d

Curl Test API (identical to OpenAI Whisper API example)

Note: Authorization header is currently ignored.

curl http://127.0.0.1:8000/v1/audio/transcriptions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F model="whisper-ch" \
  -F file="@/path/to/file/openai.mp3" \
  -F response_format="verbose_json"

Windows example:

curl http://127.0.0.1:8000/v1/audio/transcriptions -H "Authorization: Bearer $OPENAI_API_KEY" -H "Content-Type: multipart/form-data" -F model="whisper-ch" -F file="@F:\FHNW\first.mp3" -F response_format="verbose_json"