Spaces:
Sleeping
Sleeping
Commit History
-
Whisper jobs read pause-cut pieces in GPU batches; no stitched 30 s windows
The HF pipeline's 30 s windows (5 s stride) and the 5 min block merge dropped whole sentences and repeated others. On a real 3 min call large-v3 lost the 'within five to ten days...' and 1:53-2:11 passages; on a 24 min file the old path kept 2166 words with one 3 min stretch down to 130, the new one 3021, even across the file, at about the same speed (T4: 179 s processing). - whisper_pieces: speech found from the recording's noise floor, long silences left out, cut at the quietest 0.3 s before 28 s. - ASRPipeline.transcribe_pieces: batched, no silence skip on known speech. - Strip invented all-caps caption names ('BORIS HABIB KOMOKOIKEA- '). - Claude clean-up: never move words between lines; reject corrections that add words (they duplicated the next line). - Speaker alignment: lines with no overlapping turn take the nearest turn. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>f6a9200
-
Yoruba/Igbo/Hausa: decide English by both models' readings; guard tone marks
Tested on all 34 tracks of Beginner's Yoruba (names, vocabulary, greetings, expressions, dialogues). Whisper's language guess can't tell an isolated Yoruba word from English ("Topé", "owó" scored +6..+9 English), so whole vocabulary tracks went to the English model, which spelled words out or invented sentences ("I am a dog"). Now, when a dedicated-model language is chosen, every piece is read by the dedicated model; pieces Whisper thinks may be English are also read by Whisper, and English is kept only when Whisper is clearly surer of a reading made of real English words (or, for a 5+ word sentence, merely ahead), plus pieces next to clear English. Untranscribed speech 2.0% -> 0.3%; English lines are lesson titles, instructions and explanations; names/vocabulary come out as tone-marked Yoruba. Also: short unscored windows default to the chosen language; Claude's tone-mark step is rejected if the letters change (a refusal message was being saved as transcript text). Co-Authored-By: C…c64a5fa
-
Meetings that switch language: per-window language ID, smoothed runs, each language on its own model
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>dd0efde
-
VAPT hardening, translation (Sonnet 5.5), NCAIR native models, language prior, timestamp lead-in fix, sandbox/notetaker/orphan fixes, Azure VM scripts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>b29f4fa
-
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 diarization diagnostics, upgrade torch/Dockerfile, add min_speakers hint
- Add startup log + GET /diarization-status endpoint to expose why diarization is available or not (pyannote importable, HF_TOKEN set) - Dockerfile: upgrade base to python:3.11-slim, install CUDA torch wheel before requirements.txt, run as UID 1000 (HF Spaces requirement) - requirements.txt: upgrade torch/transformers/accelerate for torch 2.5+ compatibility, remove gradio/spaces deps (API-only mode) - diarization/engine.py: pass min_speakers=2 when num_speakers not given to prevent pyannote collapsing all speech to a single speaker Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>8280496
-
Add ZeroGPU support for HF Space + fix prompt_ids device mismatch
- Switch HF Space from Docker SDK to Gradio SDK with hardware: zero-gpu - Add hf_app.py: FastAPI REST at / with Gradio demo mounted at /ui - Wrap engine.transcribe_bytes with @spaces.GPU(duration=300) in app.py - Wrap gradio transcribe() with @spaces.GPU via _gpu_decorator in gradio_app.py - Fix prompt_ids tensor created on CPU while model is on MPS (asr_pipeline.py) - Bump gradio 4.7.1 → 4.44.0, add spaces>=0.0.1 to requirements.txt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a3da822
-
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: pass prompt_ids as numpy array, not Python list
tokenizer.encode() returns a plain list; Whisper's generation mixin calls .tolist() on prompt_ids expecting a tensor/ndarray, raising 'list object has no attribute tolist' and crashing every chunked job. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1f48cf3 -
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
-
feat: speaker diarization, CSV export, translation, Nigerian languages, video support
- Add pyannote.audio-based speaker diarization engine (src/diarization/) - Add Meeting Mode to Gradio UI with expected speaker count hint - Add CSV export format for spreadsheet-friendly meeting minutes - Update /transcribe API to accept diarization, num_speakers params - Include segment IDs in ASR pipeline for frontend compatibility - Add video file support via existing MP4 handling - Promote Hausa, Yoruba, Igbo in language lists - Update README with new API docs and HF_TOKEN setup instructions305b729
-
initial: modular ASR system v2
e2ef3c4