Elsa is a Python-based relaxation bot designed to assist in improving mental health. This bot offers a range of relaxation techniques and provides support for users going through stressful times. Elsa uses speech recognition and synthesis to engage in conversations with users, offering tips and guidance for relaxation.
- Greeting: Elsa greets the user based on the time of day and introduces itself. ๐
- Stress Keyword Detection: Elsa can detect stress-related keywords in user input. ๐จ
- Relaxation Techniques: The bot suggests various relaxation techniques to help users cope with stress. ๐ง
- Speech Interaction: Users can interact with Elsa through speech, and the bot responds accordingly. ๐ฃ๏ธ
- Dynamic Responses: Elsa provides dynamic responses based on user input and stress detection. ๐
-
Installation:
- Clone the repository:
git clone https://github.com/charvijain12/Elsa.git
- Clone the repository:
-
Dependencies:
- Install the required dependencies using:
pip install gtts speech_recognition pyttsx3
- Install the required dependencies using:
-
Run the Bot:
- Execute the
Elsa.py
script to start the relaxation bot.
- Execute the
-
Interact with Elsa:
- Speak to Elsa and express your feelings or stress.
- Elsa will respond with appropriate relaxation tips based on your input.
-
Exit the Bot:
- Say "exit" or "bye" to end the conversation with Elsa.
Elsa identifies stress-related keywords by loading them from a file. Users can customize the list by modifying the stress_keywords.txt
file.
Elsa offers a variety of relaxation techniques, including deep breathing, guided imagery, meditation, and more. Users can choose the technique that suits them best.
Feel free to contribute to the project by creating new relaxation techniques, improving speech recognition, or enhancing the overall user experience.
This project is licensed under the MIT License.