Skip to content

Add Hugging Face ASR provider#72

Closed
daxia778 wants to merge 1 commit into
nibzard:mainfrom
daxia778:codex/huggingface-provider
Closed

Add Hugging Face ASR provider#72
daxia778 wants to merge 1 commit into
nibzard:mainfrom
daxia778:codex/huggingface-provider

Conversation

@daxia778

Copy link
Copy Markdown

Summary

  • Add a Hugging Face Inference Providers ASR backend exposed as --provider huggingface.
  • Use HF_TOKEN, optional router provider/base/timeout env vars, and the current router model endpoint for binary audio transcription.
  • Parse transcript text plus optional timestamp chunks into TranscriptionResult.
  • Cover auth, endpoint construction, base64 payloads, timestamp/temperature parameters, availability, API errors, and malformed responses with mocked tests.

Validation

  • .venv/bin/pytest (182 passed, 1 LibreSSL urllib3 warning)
  • .venv/bin/black --check sapat/providers/huggingface.py tests/providers/test_group_a.py
  • .venv/bin/python -m compileall sapat
  • git diff --check

This is the companion implementation for a Daytona content guide attempt on daytonaio/content#13. No API keys, private media, generated transcripts, or payout details are included.

Signed-off-by: admin <admin@admindeMac-mini.local>
Signed-off-by: haodong liu <daxia778@users.noreply.github.com>
@daxia778 daxia778 closed this Jun 27, 2026
@daxia778 daxia778 deleted the codex/huggingface-provider branch June 27, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant