Interact with your email using voice commands with the Email Assistant Python script. This project utilizes the smtplib
, speech_recognition
, and pyttsx3
libraries to enable voice-controlled email functionalities.
The Email Assistant project is a Python script that allows you to send emails using voice commands. It integrates with the smtplib
library for email sending, speech_recognition
for voice recognition, and pyttsx3
for text-to-speech functionality.
- Voice-Controlled Email: Interact with your email using voice commands.
- Dynamic Contacts: Maintain a dynamic contact list for easy email sending.
- Subject and Message Control: Dictate the subject and message content for each email.
- Speech Feedback: Get audio feedback on your interactions with the assistant.
Ensure you have Python installed on your system.
-
Clone the GitHub repository:
git clone https://github.com/codeterrayt/EmailAssistant.git cd EmailAssistant
-
Install the required libraries:
pip install smtplib email message speech_recognition pyttsx3
-
Open
main.py
in a text editor and configure the following variables:server_login_mail
: Your email address for SMTP login.server_login_password
: Your email password for SMTP login.- Update the
contact
dictionary with your contacts.
-
Save the changes.
-
Run the script:
python main.py
-
The assistant will greet you, and you can start giving voice commands.
-
The assistant will prompt you with "Listening..." indicating it's ready to receive voice commands.
-
Speak your command, e.g., "Assistant, write an email."
-
The assistant will guide you through the process of specifying the recipient, subject, and message.
-
The email will be sent, and the assistant will provide audio feedback.
Feel free to explore and modify the code to suit your specific needs. Customize the contact list, improve voice command handling, or add additional features.
This project utilizes the smtplib
, speech_recognition
, and pyttsx3
libraries. Explore the smtplib Documentation, speech_recognition Documentation, and pyttsx3 Documentation for more information.
📢 Happy Emailing with Voice Commands! 🎤