could we make a TTS or a virtual assitant or even ...
बनाया गया: 17 नवंबर 2026
का उपयोग करके उत्तर दिया गया GPT-6 Thinking द्वारा Chat01
बनाया गया: 17 नवंबर 2026
का उपयोग करके उत्तर दिया गया GPT-6 Thinking द्वारा Chat01
could we make a TTS or a virtual assitant or even Both that speak fluid darija ? on kaggel 30h 2 gpus? find datasets models that should run on cpu and consume little but i want the quality of damn wow reserach , how they do etc .. give the full notebbook ready
I’ll research the strongest Darija speech datasets and models, then build a Kaggle-ready notebook for training and testing a natural-sounding voice. I’ll also include a lightweight CPU inference path and a voice-assistant demo. The main trade-off to solve is getting excellent pronunciation and prosody without needing a large model at runtime.
The practical route is clearer now: a Darija-specific F5-TTS checkpoint can provide the high-quality reference voice immediately, while a curated 3.35-hour, single-speaker Darija dataset is already prepared for Piper training. I’m building the notebook around that combination, including ONNX export, CPU speed testing, checkpoint recovery, and a local speech-to-speech assistant.
The notebook is assembled. I’m doing a final compatibility audit against the current Piper training and Python inference documentation, especially the checkpoint-resume behavior and Arabic phonemization settings. Those details matter more here than simply choosing a larger model.
Yes — both are possible with Kaggle's 2× T4 GPUs and roughly 30 GPU-hours per week. And the research turned up something particularly useful: there are already Moroccan Darija-specific speech models and training datasets, so we don't have to build everything from scratch.
The strongest approach is to build two voice engines:
Then connect the fast voice to speech recognition and a small language model to create a complete assistant.
| Model | What makes it interesting | CPU suitability |
|---|---|---|
| HADRA / Habibi-TTS Darija | Darija-trained, seven speaker profiles, expressive F5-TTS architecture | High memory and slower |
| Piper TTS | Small VITS architecture, ONNX export, excellent deployment target | Excellent |
| NeuTTS Air Darija | Trained on approximately 95 hours of Darija | Too large for minimal CPU use |
| Whisper Tiny/Base | Speech recognition, with CPU INT8 inference available | Good |
| Qwen small instruct models | Understanding questions and composing Darija responses | Good when quantized |
The HADRA authors report training on 2× Tesla T4 GPUs, using 12,105 Moroccan speech clips. Their 336M-parameter F5-TTS model is a particularly relevant quality benchmark. However, their reported CPU real-time factors exceed 1, meaning it is not the fast conversational engine we ultimately want. (huggingface.co)
For the lightweight voice, Piper's official training workflow supports pretrained-checkpoint fine-tuning and ONNX export. This is the more promising route for low-resource CPU deployment. (github.com github.com)
The important distinction: 30 GPU-hours can be enough for a serious fine-tuning experiment; they do not guarantee human-level speech quality. The naturalness will depend heavily on speaker consistency, transcription accuracy, Darija pronunciation, and evaluation by native speakers.
Download the complete Darija Voice Lab project (.zip)
Notebook, CPU assistant, requirements, source code, setup guide, and detailed research notes.
Download the Kaggle notebook (.ipynb)
30 cells covering data preparation, training, checkpoint recovery, ONNX export, studio TTS, assistant inference, and evaluation.
Read the detailed model and dataset research
Architecture decisions, corpus comparisons, 30-hour training strategy, pronunciation challenges, and optimization guidance.
First, hear a Moroccan voice without training. Import the .ipynb into Kaggle, enable Internet and the T4 × 2 accelerator, then set RUN_TRAIN=False, RUN_HADRA_STUDIO=True, and RUN_ASSISTANT=False. Running the notebook will use the existing HADRA checkpoint to synthesize a Darija sentence.
Next, train your own CPU voice. Set RUN_TRAIN=True, RUN_HADRA_STUDIO=False, and RUN_ASSISTANT=False. The notebook automatically prepares the M1 dataset, warm-starts Piper, trains with both GPUs, and exports the resulting ONNX voice. Its default session training cap is 7.5 hours, with checkpoint resumption for subsequent sessions.
The 2,000-epoch target is based on Piper's published guidance for fine-tuning a voice from less than five hours of audio. Whether that fits within your total GPU allowance depends on actual T4 throughput. (raw.githubusercontent.com)
Finally, activate the assistant. Set RUN_ASSISTANT=True after the Piper ONNX model exists. You can type a question or supply a recorded Darija WAV. The notebook will transcribe the recording when supplied, generate a Darija response, and speak it using your trained CPU voice.
The starter corpus has 4,462 utterances and approximately 3.35 hours of single-speaker Darija, making it a practical initial Piper experiment. (huggingface.co)
The biggest improvement after that is likely to come from better Darija-specific pronunciation handling, clean additional recordings from the same consenting speaker, and native-speaker evaluations—not simply making the model bigger. The current Arabic eSpeak front end is a useful baseline but is not a dedicated Moroccan Darija pronunciation engine.
For deployment, Piper is the lightweight CPU component. A complete CPU assistant additionally needs memory for Whisper and the quantized LLM; the Qwen2.5 1.5B Q4_K_M model file alone is approximately 1.12 GB. (huggingface.co raw.githubusercontent.com)
Verification status: I validated the notebook structure and Python syntax, tested its dataset-preparation pipeline with a synthetic local fixture, and checked the CPU command-line program. I could not execute an actual Kaggle GPU training run or verify generated speech quality here. The project is ready to import and test, but the final acoustic results are still experimental.