π²π¦ Morocco Voice MVP β Multilingual Speech AI System (EN β Darija)
Morocco Voice is a production-ready multilingual speech AI pipeline that enables bidirectional voice and text communication between English and Moroccan Darija, a low-resource dialect.
π Live Demo (Mobile-friendly):
mvp-morocco-voice.onrender.β¦
π API Documentation (Swagger):
mvp-morocco-voice.onrender.β¦
π What This Project Demonstrates
This MVP is designed as a real-world AI system, not just a demo.
It showcases:
End-to-end Speech AI pipelines
Integration of STT β LLM β TTS
Clean, stateless FastAPI microservice
Deployment-ready architecture for mobile apps
AI-assisted communication for a low-resource language (Darija)
π― Core Capabilities π English β Darija (βSpeak for Meβ)
Input
English text
Output
Darija text (Arabic script)
Darija phonetic transcription
Darija speech audio (TTS)
Context-aware alternative replies
Use case
Helping non-Darija speakers communicate naturally in Morocco (travel, services, daily life).
π§ Darija β English (βTranslateβ)
Input
Darija speech audio
Output
English transcription
English translation
English speech audio (TTS)
Use case
Voice-based translation for real-life conversations.
π§ AI System Architecture Client (Mobile / Web Demo) | v FastAPI Backend (Stateless) βββ Speech-to-Text (STT) β βββ Audio normalization & transcription βββ Large Language Model (LLM) β βββ Translation, reasoning, Darija generation βββ Text-to-Speech (TTS) β βββ Audio synthesis (Darija / English) βββ JSON API (Mobile-ready)
Design choices
Modular services (STT / LLM / TTS decoupled)
JSON-first LLM prompting (robust parsing)
Explicit latency tracking
Graceful error handling for STT & TTS failures
π Tech Stack
Backend
Python, FastAPI
Async request handling
Speech & Language
Speech-to-Text: Whisper-compatible STT
LLM: OpenAI (structured JSON prompting)
Text-to-Speech: Google Cloud Text-to-Speech
Deployment
Render (production) β¦