File size: 919 Bytes
6dce2be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: RAFIQ Arabic ASR
emoji: 🎙️
colorFrom: green
colorTo: blue
sdk: docker
pinned: false
---

# RAFIQ – Egyptian Arabic Speech-to-Text API

Custom character-level Transformer trained on Egyptian Arabic audio.  
Built as part of the **RAFIQ** autism-support platform – FCAI, Beni-Suef University 2026.

## Usage

1. Upload your model file as `entire_model.pth` to the Space files.
2. Open `/docs` for the interactive Swagger UI.
3. `POST /transcribe` with a WAV/MP3/OGG file (≤ 15 s).

## Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/` | API info |
| GET | `/health` | Model status + config |
| POST | `/transcribe` | Upload audio → Arabic text |

## Model config
- Character-level vocab (Arabic + English) – 74 tokens  
- Encoder: 2 layers, Decoder: 1 layer, d_model=512, 8 heads  
- Input: 128-mel spectrogram, 15-second chunks  
- Sample rate: 16 000 Hz