Spaces:
Paused
Paused
|
Download README.md from Consulawtech/NarratifAI: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/spaces/Consulawtech/NarratifAI/resolve/main/README.md
- Command line
-
hf download hf://spaces/Consulawtech/NarratifAI/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Consulawtech/NarratifAI/resolve/main/README.md
2.57 kB
metadata
title: NarratifAI ASR
emoji: π
colorFrom: purple
colorTo: indigo
sdk: docker
pinned: false
hardware: t4-small
license: mit
short_description: Speech-to-text with Whisper + speaker diarization
tags:
- asr
- speech-to-text
- whisper
- speaker-diarization
- nigerian-languages
models:
- openai/whisper-tiny
- openai/whisper-small
- openai/whisper-medium
- openai/whisper-large-v3
- pyannote/speaker-diarization-3.1
fullWidth: true
π NarratifAI ASR
Production speech-to-text with speaker diarisation, Nigerian language support (Yoruba, Hausa, Igbo), and Claude AI post-processing.
Endpoints (Flutter / REST clients)
| Method | Path | Purpose |
|---|---|---|
POST |
/transcribe |
Submit audio β {job_id, status: "processing"} (202) |
GET |
/result/{job_id} |
Poll for completed transcript |
GET |
/progress/{job_id} |
Chunk progress {current, total, percent} |
POST |
/minutes |
AI meeting minutes from segments |
POST |
/minutes/docx |
Word document download |
GET |
/health |
Liveness check |
Web Demo
Open /ui for the Gradio interface.
Secrets required
Set in Space Settings β Variables and secrets:
| Secret | Description |
|---|---|
HF_TOKEN |
HuggingFace token (pyannote diarisation model) |
ANTHROPIC_API_KEY |
Claude AI for enhancement & minutes |
SUPABASE_URL |
Supabase project URL |
SUPABASE_SERVICE_ROLE_KEY |
Supabase service-role key (bypasses RLS) |
PAYSTACK_SECRET_KEY |
Paystack subscription webhooks |
Project structure
asr_system/
βββ hf_app.py # HF Space entry point (REST API + Gradio at /ui)
βββ app.py # FastAPI REST API (Modal / local)
βββ gradio_app.py # Gradio UI
βββ modal_app.py # Modal.com deployment
βββ config/settings.yaml
βββ src/
βββ audio_processor/ # validator, converter, chunker
βββ models/ # registry, asr_pipeline
βββ transcription/ # engine
βββ diarization/ # pyannote wrapper
βββ output/ # formatter (TXT/JSON/SRT/VTT/CSV)
Running locally
pip install -r requirements.txt
# FastAPI REST API
python app.py --api --port 7860
# Gradio UI only
python gradio_app.py
Nigerian Language support
Yoruba (yo), Igbo (ig), and Hausa (ha) auto-upgrade to whisper-large-v3 on GPU
and receive Claude AI tone-mark restoration after transcription.
License
MIT β see LICENSE