Spaces:
Sleeping
Sleeping
Commit History
-
Clean up audio before transcription (light level on by default)
New src/audio_processor/enhance.py, numpy/scipy only: - light: DC offset removed, 80 Hz high-pass for rumble, slow speech levelling (quiet speakers lifted up to +12 dB, loud ones lowered up to 6 dB, gain held through pauses so background noise is not pumped up), soft peak limiter. - full: light plus gentle non-stationary spectral gating (floor -12 dB, gains smoothed, noise estimate bias-corrected), only when the recording measures below 25 dB SNR. The engine applies separate levels to the words (AUDIO_ENHANCE_ASR, default light) and to speaker detection (AUDIO_ENHANCE_DIARIZATION, default off). A failed clean-up never fails the job. Evaluation (scripts/enhance_eval_*.py, engine called directly on Modal): AMI ES2004a + IS1009a as headset mix, room mic and headset with hum + chatter, Whisper small and large-v3, plus 11 min of FLEURS Yoruba clean and noisy. Average WER off -> light: large-v3 40.7 -> 39.8, small 46.1 -> 44.8; Yoruba clean 86.4 -> 84.3 (tone-blind 57.4 -> 53.3), n…4f6c67f
-
Accept browser recordings: .webm, plus .opus .mov .mkv .3gp .amr
The engine's format list had no .webm, so every web recording failed with 'Unsupported audio format' after upload. Container formats go straight to pydub/ffmpeg, which reads them and measures their real length. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>a4adcfa
-
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: 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