This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Embedded Implementation of Real-Time Voice Command Recognition on PIC Microcontroller
by
Mohamed Shili
Mohamed Shili 1
,
Salah Hammedi
Salah Hammedi 2,3
,
Amjad Gawanmeh
Amjad Gawanmeh 4,*
and
Khaled Nouri
Khaled Nouri 5
1
Innov’COM Laboratory, National Engineering School of Cartahage, Ariana 2035, Tunisia
2
Networked Objects, Control, and Communication Systems (NOCCS), ENISo, University of Sousse, Sousse 4011, Tunisia
3
Electrical Engineering Department, National School of Engineers of Monastir, Monastir 5000, Tunisia
4
College of Engineering and IT, University of Dubai, Dubai 14143, United Arab Emirates
5
Laboratory of Advanced Systems (LSA), Polytechnic School of Tunis, Al Marsa 2078, Tunisia
*
Author to whom correspondence should be addressed.
Automation 2025, 6(4), 79; https://doi.org/10.3390/automation6040079 (registering DOI)
Submission received: 26 July 2025
/
Revised: 17 October 2025
/
Accepted: 24 October 2025
/
Published: 28 November 2025
Abstract
This paper describes a real-time system for recognizing voice commands for resource-constrained embedded devices, specifically a PIC microcontroller. While most existing speech ordering support solutions rely on high-performance processing platforms or cloud computation, the system described here performs fully embedded low-power processing locally on the device. Sound is captured through a low-cost MEMS microphone, segmented into short audio frames, and time domain features are extracted (i.e., Zero-Crossing Rate (ZCR) and Short-Time Energy (STE)). These features were chosen for low power and computational efficiency and the ability to be processed in real time on a microcontroller. For the purposes of this experimental system, a small vocabulary of four command words (i.e., “ON”, “OFF”, “LEFT”, and “RIGHT”) were used to simulate real sound-ordering interfaces. The main contribution is demonstrated in the clever combination of low-complex, lightweight signal-processing techniques with embedded neural network inference, completing a classification cycle in real time (under 50 ms). It was demonstrated that the classification accuracy was over 90% using confusion matrices and timing analysis of the classifier’s performance across vocabularies with varying levels of complexity. This method is very applicable to IoT and portable embedded applications, offering a low-latency classification alternative to more complex and resource intensive classification architectures.
Share and Cite
MDPI and ACS Style
Shili, M.; Hammedi, S.; Gawanmeh, A.; Nouri, K.
Embedded Implementation of Real-Time Voice Command Recognition on PIC Microcontroller. Automation 2025, 6, 79.
https://doi.org/10.3390/automation6040079
AMA Style
Shili M, Hammedi S, Gawanmeh A, Nouri K.
Embedded Implementation of Real-Time Voice Command Recognition on PIC Microcontroller. Automation. 2025; 6(4):79.
https://doi.org/10.3390/automation6040079
Chicago/Turabian Style
Shili, Mohamed, Salah Hammedi, Amjad Gawanmeh, and Khaled Nouri.
2025. "Embedded Implementation of Real-Time Voice Command Recognition on PIC Microcontroller" Automation 6, no. 4: 79.
https://doi.org/10.3390/automation6040079
APA Style
Shili, M., Hammedi, S., Gawanmeh, A., & Nouri, K.
(2025). Embedded Implementation of Real-Time Voice Command Recognition on PIC Microcontroller. Automation, 6(4), 79.
https://doi.org/10.3390/automation6040079
Article Metrics
Article metric data becomes available approximately 24 hours after publication online.