The Voice-Controlled Home Automation Simulator project simulates a voice-controlled system that can turn on or off virtual appliances such as lights, fans, and TVs. Users can issue voice commands to control the appliances, check their status, and save/load the states of the appliances.
- Control virtual appliances (e.g., lights, fans, TV) using voice commands.
- Turn appliances on or off.
- Query the status of appliances.
- Save and load appliance states to/from a file.
json
speech_recognition
To install the required modules, use the following steps:
- Open Command Prompt (Windows) or Terminal (macOS/Linux).
- Install the speech_recognition module by running:
pip install SpeechRecognition
- Navigate to the project directory in Command Prompt (Windows) or Terminal (macOS/Linux).
- Run the script using Python:
python home_automation.py
Voice-Controlled Home Automation
1. Issue Voice Command
2. Save Appliance States to File
3. Load Appliance States from File
4. Exit
Choose an option: 1
Listening...
You said: turn on light
- This project uses the SpeechRecognition library for voice command recognition.