Darija Transcription Dashboard with API and admin panel
# 🚀 Darija Transcription Dashboard
A clean, simple dashboard for Moroccan Arabic (Darija) speech transcription with token management and Google API integration.
## ✨ Features
- **🔐 Admin Authentication**: Admin-only access (no public registration)
- **🔑 API Token Management**: Generate and manage API tokens for application integration
- **🎤 Audio Transcription**: Test audio files and get transcriptions in Darija, Arabic, and French
- **⚙️ Google API Integration**: Configure your Google Cloud Speech-to-Text API key
- **📊 Usage Statistics**: Track transcriptions and API usage
- **🌐 RESTful API**: Integrate transcription into your applications
## 🚀 Quick Start
### 1. Install Dependencies
```bash
cd dashboard
pip3 install -r requirements.txt
```
### 2. Run the Application
```bash
python3 app.py
```
### 3. Access Dashboard
Open your browser and go to: **
http://localhost:5001**
### 4. Admin Login
- **Username**: admin
- **Password**: admin123
- **⚠️ Important**: Change the admin password after first login
## 📁 Project Structure
```
dashboard/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── dashboard.db # SQLite database (auto-created)
├── uploads/ # Temporary audio file storage
├── templates/ # HTML templates
│ ├── base.html # Base template with navigation
│ ├── landing.html # Homepage
│ ├── login.html # Login page
│ ├── register.html # Registration page
│ ├── dashboard.html # Main dashboard
│ ├── tokens.html # API token management
│ ├── test.html # Audio testing page
│ └── settings.html # Settings & Google API config
└── README.md # This file
```
## 🔑 API Usage
### Authentication
Include your API token in the request header:
```bash
X-API-Token: YOUR_TOKEN_HERE
```
### Transcribe Audio
```bash
curl -X POST
localhost \
-H "X-API-Token: YOUR_TOKEN" \
-F "audio=@audio.wav"
```
## …