[Paper Review] A.I. based Embedded Speech to Text Using Deepspeech
This paper evaluates the performance of Deepspeech versions 0.1.0, 0.1.1, and 0.6.0 for embedded speech-to-text inference on a Raspberry Pi 3B+, demonstrating that Deepspeech 0.6.0 achieves significantly faster inference (7 seconds vs. 102 seconds) and reduced resource usage (100% CPU, 200 MB memory vs. 250% CPU, 800 MB memory) while maintaining accurate transcription, enabling standalone, offline speech recognition on low-power devices using TensorFlow Lite optimization.
Deepspeech was very useful for development IoT devices that need voice recognition. One of the voice recognition systems is deepspeech from Mozilla. Deepspeech is an open-source voice recognition that was using a neural network to convert speech spectrogram into a text transcript. This paper shows the implementation process of speech recognition on a low-end computational device. Development of English-language speech recognition that has many datasets become a good point for starting. The model that used results from pre-trained model that provide by each version of deepspeech, without change of the model that already released, furthermore the benefit of using raspberry pi as a media end-to-end speech recognition device become a good thing, user can change and modify of the speech recognition, and also deepspeech can be standalone device without need continuously internet connection to process speech recognition, and even this paper show the power of Tensorflow Lite can make a significant difference on inference by deepspeech rather than using Tensorflow non-Lite.This paper shows the experiment using Deepspeech version 0.1.0, 0.1.1, and 0.6.0, and there is some improvement on Deepspeech version 0.6.0, faster while processing speech-to-text on old hardware raspberry pi 3 b+.
Motivation & Objective
- To evaluate the performance of different Deepspeech versions on low-computational embedded devices like the Raspberry Pi 3B+.
- To assess the feasibility of deploying end-to-end, offline speech-to-text systems on resource-constrained hardware using pre-trained Deepspeech models.
- To compare inference speed, memory consumption, and CPU usage across Deepspeech versions 0.1.0, 0.1.1, and 0.6.0.
- To demonstrate the benefits of using TensorFlow Lite for optimizing inference performance on embedded platforms.
Proposed method
- The study uses pre-trained Deepspeech models from versions 0.1.0, 0.1.1, and 0.6.0 without retraining, ensuring consistent model weights across experiments.
- Speech recognition is performed on a Raspberry Pi 3B+ using the same 2-second audio file across all versions to ensure fair comparison.
- Resource usage (CPU and memory) is monitored in real time during model loading and inference using system monitoring tools.
- Inference time, model loading time, and transcription accuracy are measured and compared across versions.
- TensorFlow Lite is evaluated for its impact on inference speed, showing significant performance improvements over standard TensorFlow.
- The Deepspeech architecture employs a five-layer neural network with ReLU activation, bidirectional RNNs in the fourth layer, and a softmax output layer for character-level prediction.
Experimental results
Research questions
- RQ1How does the inference performance of Deepspeech vary across versions 0.1.0, 0.1.1, and 0.6.0 on a Raspberry Pi 3B+?
- RQ2What is the impact of using TensorFlow Lite on inference speed and resource consumption in embedded Deepspeech deployments?
- RQ3How do CPU and memory usage scale across different Deepspeech versions during model loading and inference?
- RQ4To what extent does model loading time improve from version 0.1.0 to 0.6.0 on low-end hardware?
- RQ5How accurate is each Deepspeech version in transcribing the same audio file, and how does transcription quality compare to the ground truth?
Key findings
- Deepspeech 0.6.0 reduces inference time from 102 seconds (v0.1.0) to just 7 seconds on a Raspberry Pi 3B+ for a 2-second audio file.
- Model loading time drops dramatically from 21 seconds in v0.1.0 and v0.1.1 to only 0.0036 seconds in v0.6.0.
- CPU usage peaks at 100% in v0.6.0, compared to 250% in v0.1.0 and v0.1.1, indicating significantly improved efficiency.
- Memory usage is reduced from 800 MB in earlier versions to 200 MB in v0.6.0, making it more suitable for memory-constrained devices.
- Despite improvements in speed and efficiency, v0.6.0 produces a less accurate transcription ('She had adored water or') compared to v0.1.1 ('She had er duc suot an gresy wahorer all year'), though both are closer to the ground truth than v0.1.0.
- The use of TensorFlow Lite in v0.6.0 enables a substantial performance boost, making real-time, offline speech-to-text feasible on low-power embedded systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.