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"
```
## β¦