A Pygame-based smart hospital room control system interface with integrated voice control functionality.
- Real-time temperature control (16-30°C)
- Humidity adjustment (30-70%)
- Light control (0-100%)
- CO₂ level monitoring (400-1000ppm)
- Voice control functionality
- Intuitive slider control interface
- Python 3.8+
- Install dependencies:
pip install -r requirements.txtpython hospital_room_control.py- Ensure microphone is properly installed
- Stable internet connection required for voice recognition
- "Set temperature to 22 degrees"
- "Increase temperature by 2 degrees"
- "Decrease temperature by 3 degrees"
- "It's too hot in here" (will adjust to optimal cooler temperature)
- "It's too cold" (will adjust to optimal warmer temperature)
- "Make it warmer"
- "Make it cooler"
- "Set humidity to 50 percent"
- "Increase humidity by 10 percent"
- "Decrease humidity by 5 percent"
- "It's too dry in here" (will increase to optimal humidity)
- "It's too humid" (will decrease to optimal humidity)
- "Set light to 60 percent"
- "Increase brightness by 20 percent"
- "Reduce light by 15 percent"
- "It's too bright in here" (will dim to optimal level)
- "It's too dark" (will brighten to optimal level)
- "Set CO2 to 500 ppm"
- "Increase CO2 by 50 ppm"
- "Decrease CO2 by 100 ppm"
- Voice Control: Press to start voice recognition
- Switch Mic: Cycle through available microphones
- Cancel: Stop the current voice recognition session
- Call Nurse: Request nurse assistance (non-emergency)
- Emergency: Call for urgent medical assistance
- Temperature: 21-24°C
- Humidity: 40-60%
- Light: 40-70%
- CO2: 400-600 ppm
- If you request a value outside the allowed range (e.g., "Set temperature to 35 degrees"), the system will display a warning and maintain the current setting.
- The optimal range indicators are shown in green on each slider.
- For best voice recognition results, speak clearly and at a normal volume.