Real-Time Text Prediction and Speech Synthesis for Accessibility: A Bidirectional LSTM Approach
摘要
In this paper, we present a new approach to text generation using a Bidirectional Long Short-Term Memory (LSTM) network. The model is trained on articles from Medium, focusing on predicting the next word in a given text sequence based on an initial input. Before training, the data is carefully processed by tokenizing the text and creating pairs of inputs and outputs for the model. The trained LSTM model delivers highly accurate predictions, showcasing its effectiveness in natural language processing tasks. Additionally, we integrate the text prediction system with Google Text-to-Speech (gTTS) to convert the generated text into spoken language that closely resembles human speech. This combination of text generation and speech synthesis enhances accessibility for visually impaired individuals and creates a more engaging experience in voice-enabled applications. Our system achieves high accuracy, operates efficiently with minimal computational resources, and performs in real-time. These qualities make it a promising solution for assistive technologies and other applications requiring low-resource natural language processing.