Logo Lanfrica

stntr660/zonemation-darija-dashboard

Domain:

natural language processing

Record type:

software
Creator:
stn
Host:
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" ``` ## …