GithubHelp home page GithubHelp logo

team-alphawave / voice_control_home_assistant Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 3.0 2.11 MB

The code for voice controlled Home Assistant using RaspberryPi

Python 53.80% HTML 46.20%
flask javascript python raspberry-pi

voice_control_home_assistant's Introduction

Voice Controlled Home Assistant

This is a voice controlled home assistant that can be used to control various home appliances using voice commands. It is built using Python and Flask. It has a frontend with a microphone button that can be used to record voice commands. The voice commands are then sent to the Flask server, which processes them and sends the appropriate commands to the Raspberrypi. The Raspberrypi then controls the home appliances using the appropriate hardware.

Prerequisites

Before running the Flask server, ensure that you have the following installed on your system:

Installation

  1. Clone the repository:

    git clone https://github.com/TEAM-ALPHAWAVE/voice_control_home_assistant.git
  2. Navigate to the project directory:

    cd voice_control_home_assistant
  3. Create a virtual environment (optional, but recommended):

    python -m venv venv
  4. Activate the virtual environment:

    • For Windows:

      venv\Scripts\activate
      
    • For macOS and Linux:

      source venv/bin/activate
      
  5. Install the required dependencies:

    pip install -r requirement.txt
    

Usage

  1. Once the installation is complete, you can start the Flask server by running the following command:

    python app.py
    ```
    
    
  2. You should see output similar to the following:

    * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    ```
    
    
  3. Open your web browser and navigate to http://127.0.0.1:5000/ or http://localhost:5000/. You should see the default Flask page.

  4. To stop the server, press CTRL+C in the terminal window where the server is running.

Customization

  • Changing the Port: By default, the Flask server runs on port 5000. If you want to use a different port, open the app.py file and modify the following line:

    app.run(port=5000)
    ```
    Replace `5000` with your desired port number.
  • Modifying the Routes: The Flask server comes with a default route at the root URL (/voice). If you want to add additional routes or modify the existing ones, open the app.py file and follow the Flask routing syntax. You can define routes and their corresponding functions using the @app.route decorator.

Conclusion

That's it! You have successfully set up the Flask server. You can now use this server to run this voice controlled home assistant.

voice_control_home_assistant's People

Contributors

co-bby avatar gabbymccall998 avatar kay47 avatar philimonshelby avatar

voice_control_home_assistant's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.