Spock24/nav-willow
0
Nav Willow STT
Self-hosted speech-to-text endpoint for Nav. This Space exposes a Willow/WIS-style ASR endpoint:
POST /api/asr
multipart field: audio_fileIt also exposes an OpenAI-style compatibility endpoint:
POST /audio/transcriptions
multipart field: fileAfter deploying this folder as a Hugging Face Docker Space, set Nav backend/.env:
STT_PROVIDER=willow
WILLOW_API_URL=https://YOUR-USERNAME-nav-willow.hf.space
WILLOW_ENDPOINT_STYLE=wis
WILLOW_LANGUAGE=en
WILLOW_MODEL=small
HF_TOKEN=hf_... # only if the Space is privateHealth check:
curl https://YOUR-USERNAME-nav-willow.hf.space/healthTranscription test:
curl -X POST "https://YOUR-USERNAME-nav-willow.hf.space/api/asr" \
-H "Authorization: Bearer $HF_TOKEN" \
-F "audio_file=@test.webm" \
-F "model=small"Notes:
tinyandbaseare faster on CPU.smallis a better accuracy/speed compromise.mediumand above are best on GPU Spaces.
