Downloads · 30 days
0
TTS-ORG/translation-audio
translation-audio is a automatic speech recognition model from TTS-ORG. Use it when you need speech turned into text. The card lists the license as apache-2.0.
Audio / video → Whisper transcript → Buthaina's text translation layer.
Downloads · 30 days
0
Access
Public
Updated Aug 23, 2026
Repo size
7.9 MB
Likes
0
Public
Click a slice to open those files.
.wav7.9 MB · 99%
From the Hugging Face model README
Audio / video → Whisper transcript → Buthaina's text translation layer.
Built for an RTX 5090 on Vast.ai (large-v3, float16). A 4 GB laptop GPU auto-falls back to small or CPU.
Rent a 5090 image with CUDA 12.8+. Then:
git clone https://huggingface.co/mohameddalii/translation-audio
cd translation-audio
chmod +x scripts/run_vast.sh
./scripts/run_vast.sh
Smoke test after the server is up:
python -m audio sample.wav --transcribe-only
# or
curl -s http://127.0.0.1:8000/health
curl -F "[email protected]" -F "translate=false" http://127.0.0.1:8000/translate
Load test concurrent users (CLI):
python -m audio.loadtest --file sample.wav --users 8 --requests 40 --no-translate
Locust UI (keep uvicorn running in another terminal):
pip install locust
locust -f locustfile.py --host http://127.0.0.1:8000 --web-host 0.0.0.0 --web-port 8089
On Vast Jupyter, try https://<your-jupyter-host>/proxy/8089/. Start with 4 users, spawn rate 1. The GPU serializes ASR, so extra users wait or get 429.
Env vars (already set in scripts/run_vast.sh):
| Variable | 5090 value |
|---|---|
ASR_BACKEND | whisper or cohere |
ASR_MODEL | large-v3 (Whisper only) |
ASR_DEVICE | cuda |
ASR_COMPUTE_TYPE | float16 (do not use int8 on Blackwell) |
SKIP_TRANSLATION | true until the text service is up |
Whisper vs Cohere (restart the server between runs — one backend per process):
python -m audio sample.wav --transcribe-only --backend whisper > whisper.json
python -m audio sample.wav --transcribe-only --backend cohere > cohere.json
python -m audio.compare whisper.json cohere.json
audio/ — ASR, ffmpeg video→wav, FastAPI, GPU queue, load testshared/contracts.py — payload sent to the text layertext/stub.py — stand-in for Buthaina's translator