A fusion of MongoDB, gTTS, LangChain, and Streamlit to improve your spoken English.
MongoSpeakApp is a language learning tool that leverages MongoDB for data storage, gTTS for text-to-speech conversion, LangChain for generating new sentences with the power of LLMs, and Streamlit for a user-friendly interface. It is designed to help you enhance your spoken English skills by providing a platform for practicing English sentences and generating new ones using large language models.
-
Read from MongoDB: Access a diverse and extensive database of English sentences stored in MongoDB.
-
Text-to-Speech: Immerse yourself in spoken English sentences with the help of gTTS.
-
Interactive Interface: Utilize Streamlit's intuitive interface to interact with the application effortlessly.
-
Sentence Generation: Unleash the potential of large language models to generate new and contextually relevant English sentences.
-
- CRUD Operations in MongoDB:
Experience MongoSpeakApp on Streamlit Cloud
I employed a range of tools and packages to construct this app, each playing a crucial role in its functionality:
- MongoDB: A robust database system utilized for efficient data storage and retrieval π’οΈ
- PyMongo: A Python library seamlessly integrated with MongoDB, facilitating smooth interaction with the database π
- Streamlit: An interactive web app framework for Python, providing a user-friendly interface and enhancing the overall user experience π
- gTTS: A powerful library for converting text to speech, contributing to the audio component of the application π
- Tempfile: creates temporary sound files on-the-fly, optimizing resource usage in MongoSpeakApp. It facilitates dynamic audio generation and manipulation, enhancing the application's overall performance. π
- LangChain: A custom-built language processing framework that augments the app with advanced linguistic capabilities, enabling the generation of contextually rich sentences π
To embark on your language learning journey with MongoSpeakApp, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/adinmg/MongoSpeakApp.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a MongoDB database with the JSON file provided to store your English sentences.
-
Secure your application by hashing your password with Streamlit Authenticator.
-
Create a
.streamlit/secrets.toml
file to securely store your keys, passwords, and database details. -
Run the application using the following command:
streamlit run 1_π_Lessons.py
We welcome contributions to make MongoSpeakApp even better! Whether you want to report a bug, suggest a feature, or contribute code, your input is highly appreciated.