Skip to content

ClaudioPaonessa/whisper-lagoon

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published