Spaces:
Sleeping
Sleeping
Commit History
-
Port long-audio reliability fixes from the HF Space (see Space commit eb4ae44)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>32c229b
-
fix: persistent job storage, Yoruba diacritics, diarization alignment, multi-language support
- Add Supabase-backed persistent job storage (fixes lost results on container restart) - Add Yoruba knowledge base with 100+ names/vocabulary and tone rules - Integrate Yoruba knowledge into Claude diacritics post-processing - Fix diarization alignment for chunked audio (accumulate overlap per speaker) - Remove hallucination-causing stock-sentence initial_prompts - Pass language code explicitly to Whisper for Nigerian languages - Support comma-separated multi-language hints (yo,en / ig,en / ha,en) - Fix invalid segment timestamps (end < start) from Whisper - Improve repetition loop detection (sentence-level, char-dominance) - Update Claude model to claude-haiku-4-5-202510013dcdf79
-
fix: VBR MP3 chunking, beam search, spanning segments, diarization threshold
- engine.py: use len(audio)/sr as actual duration so VBR MP3s (where sf.info() silently returns wrong duration) correctly trigger chunking; pass last 200 chars of each chunk as initial_prompt for cross-chunk context - validator.py: route MP3/M4A/AAC/WMA directly to pydub (skip soundfile which misreports VBR container durations without raising an exception) - chunker.py: keep segments that straddle the overlap cutoff (seg_end > cutoff) instead of dropping them entirely, preventing silent content loss at boundaries - asr_pipeline.py: forward beam_size from config to generate_kwargs so settings.yaml beam_size: 5 actually runs beam search instead of greedy - diarization/engine.py: lower speaker assignment threshold 30% -> 20% to handle fast turn-taking where short segments span two speakers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6ad496b
-
feat: Modal deployment, Paystack webhooks, usage tracking, Nigerian language fixes
- Add modal_app.py: A10G GPU deployment with persistent model volume, 60s scaledown window (down from 300s, saves ~$100/mo idle GPU cost) - Add Paystack /init and /webhook endpoints with HMAC-SHA512 verification; updates Supabase user_profiles on subscription lifecycle events - Track audio_minutes_used per user in Supabase after each transcription - Fix Yoruba/Igbo/Hausa transcription: auto-upgrade to whisper-large-v3, add code-switching prompts for Nigerian language audio - Fix audio chunker: deduplication, proper overlap handling - Fix audio converter: pydub duration, sample rate normalisation - Add requests to requirements.txt - Update .gitignore to exclude .env and .venv Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>cbdcf47
-
Switch to async FastAPI REST API; fix chunker dedup, GPU diarization, torch dtypes, pydub duration
- Dockerfile: serve app.py via uvicorn (FastAPI REST) instead of Gradio UI - app.py: /transcribe returns 202 immediately, background task runs pipeline, /result/{job_id} for polling - chunker.py: fix merge dedup (>= last_end_time), monotonic segment IDs - diarization/engine.py: explicitly move pyannote pipeline to cuda:0 - registry.py: torch_dtype=float16 on CUDA, chunk_length_s/stride_length_s - asr_pipeline.py: strip unsupported generate_kwargs - validator.py: use pydub for full-duration extraction (not librosa truncated) - requirements.txt: add torchaudio==2.1.0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1deeec7
-
initial: modular ASR system v2
e2ef3c4