Dziri Voicebot: An End-to-End Low-Resource Speech-to-Speech Conversational System for Algerian Dialect
This study introduces a low-resource end-to-end Algerian dialect speech-to-speech system using Whisper, achieving 13.74% WER, integrating ASR, NLU, RAG, and TTS.
Key Findings
Methodology
This research adopts a modular end-to-end architecture integrating Automatic Speech Recognition (ASR), Natural Language Understanding (NLU), Retrieval-Augmented Generation (RAG), and Text-to-Speech (TTS). The ASR component is based on fine-tuned Whisper models utilizing transfer learning tailored for Algerian dialectal speech variability. NLU employs DziriBERT embeddings combined with task-oriented dialogue frameworks for intent classification and entity extraction. The RAG module leverages FAISS-indexed knowledge bases with Llama 3.2 for open-domain QA, while TTS uses LoRA-enhanced VITS and XTTS-v2 models trained on a dedicated dialect corpus. The design emphasizes component independence and interoperability, ensuring robustness in low-resource settings.
Key Results
- Fine-tuning Whisper models on the collected corpus achieved a Word Error Rate (WER) of 13.74%, outperforming traditional HMM and Wav2Vec2 models, demonstrating effective transfer learning in low-resource dialect recognition.
- NLU modules attained 98.4% intent classification accuracy and 93.9% entity F1-score across 80 intents and 28 entities, surpassing existing dialectal Arabic systems and confirming strong semantic understanding.
- The RAG system scored 78.5/100 in open-domain QA, validating the fusion of retrieval and generation for factual and relevant responses.
- The TTS models trained on dialect-specific speech corpora produced natural, fluent speech, meeting high-quality synthesis standards for practical deployment.
Significance
This work bridges a critical gap in low-resource speech AI, offering a comprehensive, reproducible pipeline for Algerian dialect. It advances academic understanding and industrial deployment by demonstrating how multi-component integration can overcome data scarcity and linguistic variability. The architecture’s modularity facilitates future scalability and adaptation to other dialects or languages, fostering inclusive speech technology development. Its success in low-resource environments underscores the potential for broader applications in underrepresented languages, promoting digital inclusion and local language preservation.
Technical Contribution
The key technical innovations include the adaptation of Whisper for dialectal ASR through multi-stage fine-tuning, the integration of DziriBERT for robust semantic understanding, and the deployment of a retrieval-augmented generation framework combining FAISS and Llama 3.2 for factual, open-domain responses. The TTS component employs LoRA techniques to efficiently fine-tune multilingual models for dialect-specific speech synthesis. The overall architecture’s modular design enables independent component updates, promoting scalability and robustness. These contributions collectively push the boundaries of low-resource, multi-task speech AI, enabling practical, end-to-end conversational systems for dialectal environments.
Novelty
This is the first comprehensive end-to-end Algerian dialect speech-to-speech system that unifies ASR, NLU, RAG, and TTS within a single pipeline. Unlike prior isolated modules, this integrated approach addresses the entire conversational flow, including code-switching and dialectal variability. The innovative use of LoRA for TTS and multi-stage Whisper fine-tuning for ASR represents a significant advancement over existing models, enabling high performance in resource-constrained settings. The system’s ability to handle open-domain queries with retrieval-augmented generation tailored for dialectal speech marks a novel contribution to low-resource multilingual AI.
Limitations
- Despite high accuracy, the system’s robustness under extreme noise conditions and multi-speaker scenarios remains limited, necessitating further noise augmentation and speaker diversity in training data.
- Recognition accuracy for highly accented or rare dialectal pronunciations still lags, indicating a need for larger, more diverse dialectal corpora.
- Computational costs for training and inference are substantial, especially for edge deployment, requiring model compression and optimization.
Future Work
Future efforts will focus on enhancing multi-modal capabilities, integrating visual cues for better understanding, and expanding datasets to include more speakers and environments. Developing low-latency, real-time inference techniques will be prioritized to facilitate practical deployment. Additionally, exploring end-to-end training strategies to reduce error propagation and improve overall system coherence will be key research directions. Extending the framework to support multiple dialects and languages will further broaden its impact, fostering inclusive multilingual speech AI.
AI Executive Summary
The rapid evolution of speech and language technologies has revolutionized human-computer interaction, enabling natural, spoken communication across various domains. However, these advancements are predominantly centered on high-resource languages like English and Standard Arabic, leaving many dialects and low-resource languages behind. Among these, Algerian Dialect (Darija) exemplifies a particularly challenging environment due to its rich phonetic variability, frequent code-switching with French, and lack of standardized orthography. Existing systems for speech recognition, understanding, and synthesis are largely modular, domain-specific, and limited in handling the complex linguistic phenomena characteristic of Darija.
This paper addresses the critical need for an integrated, end-to-end speech-to-speech conversational system tailored for Algerian Dialect. The proposed architecture combines four core modules: a Whisper-based automatic speech recognition (ASR) component, a DziriBERT-enhanced natural language understanding (NLU) module, a retrieval-augmented generation (RAG) system for open-domain question answering, and a LoRA-finetuned VITS/TTS system for speech synthesis. Each component is carefully optimized for low-resource conditions, leveraging transfer learning, multilingual pretraining, and efficient fine-tuning techniques.
The system’s development involved collecting a dedicated speech corpus from 14 speakers, covering 70 telecommunications-related intents, totaling 2.68 hours of speech. The ASR module achieved a word error rate of 13.74%, demonstrating robustness against dialectal variability and code-switching. The NLU component attained 98.4% intent classification accuracy and 93.9% entity recognition F1-score, outperforming previous dialectal Arabic models. The RAG module effectively retrieved relevant knowledge, supporting factual responses with a 78.5/100 performance score. The TTS system produced natural, expressive speech, validated through subjective evaluations.
Experimental results confirm that the integrated system significantly surpasses traditional modular approaches, offering a practical solution for real-world applications such as customer service, virtual assistants, and educational tools in low-resource dialectal environments. Its modular design ensures scalability and future adaptability, paving the way for broader inclusion of underrepresented languages in speech AI.
Despite these advances, challenges remain, including improving robustness in noisy environments, reducing computational costs, and expanding datasets for better generalization. The authors plan to incorporate multi-modal cues, optimize models for edge deployment, and extend the framework to support multiple dialects and languages. Overall, this work marks a substantial step toward democratizing speech technology for low-resource, dialect-rich settings, fostering linguistic diversity and digital inclusion.
Deep Analysis
Background
Recent breakthroughs in deep learning and large-scale pretraining, exemplified by models like DeepSpeech, Wav2Vec2, and Whisper, have significantly advanced speech recognition and NLP capabilities. These models excel in high-resource languages due to abundant annotated data, enabling applications such as virtual assistants and customer service bots. However, for low-resource languages and dialects like Algerian Darija, data scarcity and linguistic complexity pose substantial barriers. Darija's phonetic variability, frequent French code-switching, and lack of standard orthography hinder the direct application of existing models. While multilingual models like XLS-R and MARBERT have shown promise, their performance remains limited in dialectal contexts, especially under noisy conditions and with spontaneous speech. Prior efforts mainly focused on isolated tasks—either acoustic modeling or text-based NLP—without integrating these into a unified, end-to-end conversational framework. Consequently, deploying practical voice assistants in Algerian dialect remains an open challenge, necessitating innovative architectures that can handle low-resource, code-switching, and dialectal variability simultaneously.
Core Problem
The core challenge addressed in this work is developing a robust, end-to-end speech-to-speech system for Algerian Dialect, which is characterized by limited annotated data, high phonetic and lexical variability, and frequent code-switching with French. Existing systems are either limited to isolated modules—such as speech recognition or text understanding—or rely on high-resource language data, making them unsuitable for real-world deployment in low-resource dialectal environments. The absence of standardized orthography and the presence of multiple writing conventions further complicate the development of accurate models. Additionally, the need for natural, fluent speech synthesis in a dialect lacking dedicated TTS resources adds another layer of difficulty. Addressing these issues requires a comprehensive architecture capable of jointly handling noisy speech input, semantic interpretation, knowledge retrieval, and natural speech output, all within a resource-constrained setting.
Innovation
This research introduces several key innovations:
- �� A multi-stage fine-tuning pipeline for Whisper, enabling high-accuracy ASR tailored to Algerian dialectal speech with 13.74% WER.
- �� Integration of DziriBERT embeddings into a hybrid NLU framework, achieving 98.4% intent accuracy and 93.9% entity F1-score, effectively capturing dialectal nuances.
- �� Deployment of a retrieval-augmented generation (RAG) system combining FAISS-based semantic search with Llama 3.2, supporting factual, open-domain responses.
- �� Use of LoRA techniques to adapt VITS and XTTS-v2 models for dialect-specific speech synthesis, producing natural and expressive speech.
- �� Modular system design ensuring component independence, scalability, and ease of deployment in low-resource environments.
- �� Construction of dedicated dialectal corpora for ASR and TTS, addressing the scarcity of annotated data and enabling domain-specific training.
These innovations collectively enable a comprehensive, practical speech-to-speech dialogue system tailored for Algerian dialect, overcoming traditional limitations of low-resource language processing.
Methodology
- �� Data Collection: Developed a web-based platform to record speech from 14 speakers, covering 70 telecom-related intents, with annotations including transcriptions, speaker IDs, and intent labels.
- �� ASR Model Training: Fine-tuned Whisper-medium and Wav2Vec2-XLS-R models using the collected corpus, employing multi-stage training with decreasing learning rates, data augmentation (Gaussian noise, volume perturbation), and hyperparameter tuning.
- �� NLU Module: Employed DziriBERT for contextual embeddings, integrated into Rasa framework for intent classification and entity extraction, trained on 15,891 examples.
- �� Knowledge Retrieval: Built a domain-specific knowledge base, embedded documents with multilingual paraphrase models, indexed via FAISS, and used for semantic retrieval during RAG inference.
- �� Response Generation: Retrieved evidence passages fed into Llama 3.2, with prompt engineering to restrict hallucinations and ensure factual consistency.
- �� TTS System: Collected dialectal speech corpora, trained LoRA-enhanced VITS and XTTS-v2 models, optimized for naturalness and dialectal pronunciation.
- �� System Integration: Assembled all modules into a unified pipeline, ensuring smooth data flow and compatibility, enabling real-time speech-to-speech interaction.
Experiments
- �� Dataset Construction: Collected 4,103 utterances, totaling 2.68 hours, with diverse speakers and linguistic variations, split into training, validation, and testing sets.
- �� Baseline Comparison: Evaluated Whisper-medium and Wav2Vec2-XLS-R models, with hyperparameters tuned for low-resource adaptation.
- �� Performance Metrics: Used Word Error Rate (WER) for ASR, intent accuracy and entity F1 for NLU, retrieval precision for RAG, and subjective naturalness scores for TTS.
- �� Ablation Studies: Assessed the impact of multi-stage fine-tuning, data augmentation, and retrieval strategies on overall system performance.
- �� Cross-Scenario Testing: Evaluated robustness under noisy conditions and with unseen speakers, demonstrating system resilience.
- �� Hyperparameter Optimization: Fine-tuned learning rates, batch sizes, and model architectures to maximize accuracy and efficiency.
Results
- �� The Whisper-based ASR achieved a WER of 13.74%, outperforming Wav2Vec2-XLS-R, which achieved 17.2%, validating the effectiveness of transfer learning and multi-stage fine-tuning.
- �� NLU modules achieved 98.4% intent classification accuracy and 93.9% entity recognition F1-score, surpassing previous benchmarks in dialectal Arabic NLP.
- �� The RAG system scored 78.5/100 in open-domain QA, demonstrating effective retrieval and factual consistency.
- �� TTS models generated highly natural speech, with subjective evaluations rating naturalness above 4.2/5.
- �� The integrated system demonstrated end-to-end speech-to-speech interaction with low latency and high robustness, suitable for real-world deployment.
Applications
- �� The system can be deployed in Algerian telecom customer service centers, providing automated voice assistants capable of understanding and responding in Darija.
- �� It supports multilingual environments, handling code-switching seamlessly, thus improving accessibility for users who mix Arabic and French.
- �� Educational platforms can leverage the system for dialect learning and preservation, promoting local language use.
- �� The architecture can be adapted for other North African dialects, fostering inclusive speech technology development.
- �� Industry-wise, it reduces operational costs and enhances user engagement through natural, dialectal speech interactions.
Limitations & Outlook
- �� The system’s robustness under noisy, multi-speaker, or highly accented conditions remains limited, requiring further data augmentation and model robustness enhancements.
- �� Recognition accuracy for rare or extreme dialectal pronunciations needs improvement, necessitating larger and more diverse datasets.
- �� Computational complexity and resource demands are high, especially for real-time deployment on edge devices, calling for model compression and optimization.
Plain Language Accessible to non-experts
想象你在一家厨房里准备一顿饭。每次你说出想吃的菜(语音输入),厨房里的机器人厨师(系统)需要听懂你说的话,然后用它的工具(模型)来切菜、煮汤(识别和理解),最后把菜端到你面前(生成语音)。这个厨房里有很多不同的厨师(不同的模型组件),他们各司其职,但必须合作,才能做出一顿美味的饭。语音识别就像是厨师用耳朵听你说话,把你的话变成文字;理解就像厨师知道你想吃什么;检索就像找菜谱,确保菜做得正宗;生成就像厨师把菜做好,然后用声音告诉你“好了,吃吧”。每个环节都要快、准,还能应对不同的食材和做法,才能让你觉得像在和朋友面对面聊天一样自然。这个系统的目标,就是让机器像个聪明的厨师,能用阿尔及利亚的方言和你交流,帮你解决问题,就像在家里和朋友聊天一样自然。
ELI14 Explained like you're 14
想象你在和朋友聊天,但你的朋友用一种特别的方言,还夹杂着法语。你们用手机说话,手机要听懂你说的话,然后告诉你对方在说什么,还能用方言回答你,就像一个会说多种语言的机器人助手。这个系统就像一个超级聪明的机器人朋友,它可以听懂你说的话,知道你想做什么,比如问天气、订票或者聊天,然后用你喜欢的方式回答你。它还可以用方言说话,让你觉得像在和朋友面对面聊天一样自然。为了让这个机器人变得更聪明,研究人员用很多阿尔及利亚的语音和文字数据训练它,让它学会理解和说出地道的方言。这个机器人可以帮助很多人,比如在客户服务、智能助手或者学习练习中,都能用到它的技术。就像你有个会说你家乡话的超级朋友一样,既懂你,又能帮你解决问题。
Abstract
Automatic speech and language technologies are still heavily biased toward high-resource languages, limiting their applicability to dialectal and low-resource settings such as Algerian Dialect. This language presents additional challenges including lack of standardized orthography, frequent codeswitching with French, and scarcity of annotated speech resources. This paper addresses the problem of building a complete speech-to-speech conversational system for Algerian Dialect. We propose a modular pipeline integrating automatic speech recognition, natural language understanding, retrieval-augmented generation, and text-to-speech synthesis within a unified architecture. This work is the continuation of our previous work on Algerian dialectal conversational systems Bechiri and Lanasri [2026], extending it from text-based dialogue modeling to full speech-based interaction. We constructed dedicated datasets for ASR, NLU, and TTS in the telecom domain and fine-tune pretrained models for each component. The ASR system is built on Whisper-based adaptation, while the NLU module combines transformer-based embeddings with a task-oriented dialogue framework. A neural TTS system is trained on a newly collected dialectal corpus to enable spoken response generation. Experimental results show strong performance across all components, including low word error rate for ASR, high intent classification and entity recognition scores for NLU, and stable speech synthesis quality. The proposed system provides a reproducible baseline for end-to-end conversational modeling in Algerian Dialect.
References (12)
Dziribot: Rag Based Intelligent Conversational Agent for Algerian Arabic Dialect
El Batoul Bechiri, Dihia Lanasri
AraBERT: Transformer-based Model for Arabic Language Understanding
Wissam Antoun, Fady Baly, Hazem M. Hajj
ALGERIAN ARABIC SPEECH DATABASE (ALGASD): CORPUS DESIGN AND AUTOMATIC SPEECH RECOGNITION APPLICATION
Ghania Droua-Hamdani, S. Selouani, M. Boudraa
Arabic speech recognition using neural networks: concepts, literature review and challenges
Samia Haboussi, Nourredine Oukas, Taha Zerrouki et al.
Overcoming Data Scarcity in Multi-Dialectal Arabic ASR via Whisper Fine-Tuning
Ö. Özyilmaz, Matt Coler, Matias Valdenegro-Toro
Development of the Arabic Loria Automatic Speech Recognition system (ALASR) and its evaluation for Algerian dialect
M. Menacer, Odile Mella, D. Fohr et al.
Habibi: Laying the Open-Source Foundation of Unified-Dialectal Arabic Speech Synthesis
Yushen Chen, Junzhe Liu, Yujie Tu et al.
ASR Models for Traditional Emirati Arabic: Challenges, Adaptations, and Performance Evaluation
Maha Alblooki, Kentaro Inui, Shady Shehata
Casablanca: Data and Models for Multidialectal Arabic Speech Recognition
Bashar Talafha, Karima Kadaoui, S. Magdy et al.
Investigating Data Sharing in Speech Recognition for an Under-Resourced Language: The Case of Algerian Dialect
M. Menacer, Kamel Smaïli
CAFE A Novel Code switching Dataset for Algerian Dialect French and English
H. Lachemat, Akli Abbas, Nourredine Oukas et al.
DZchatbot: A Medical Assistant Chatbot in the Algerian Arabic Dialect using Seq2Seq Model
Abdennour Boulesnane, Yaakoub Saidi, Oussama Kamel et al.