Skip to content

Norby99/voice-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

voice-assistant

This is my voice assistant Patrick!

You can add commands and even modify his name


Indice

How to use

You just need to follow the installation guide by running the main.py file. If you want to customize the assistant you just need to open the setup.json file and modify it. I'll leave an example setup. Note that all the voice commands must be lowercase and the last element of the array is a list containing the output. If you want to add your own module, follow the example below:

"conditioner" : {
        "enabled" : "true",
        "features" : {
            "coldAir" : [["ho caldo", "fa caldo", "aria fredda"], ["conditioner", "cold"]],
            "hotAir" : [["ho freddo", "fa freddo", "aria calda"], ["conditioner", "hot"]],
            "conditionerPowerOff" : [["spegni il condizionatore", "spegni l'aria condizionata", "stacca il condizionatore", "stacca l'aria condizionata"], ["conditioner", "off"]]
        },
        "library" : "Conditioner.conditioner"
}

In this module there is name "conditioner", that can be enabled or not. The features are composed by a name (i.e. coldAir) that contains a list of lists: one for the activation strings and one for the output strings (which are composed by the module name and the output). Finally there is a library argument that can be "null" or a python path that indicates a library.

NOTE: The module must be in a directory and the class name must have the same name of the directory. There must be a method in the class called execute(someString)

Installation guide

For the assistant only, run:

$ python3 -m pip install -r requirements.txt

If you want to connect it to an arduino, you will need a custom setup. I'll leave mine as an example. It uses a library, that allows to comunicate with my daikin conditioner.

I would like to thank DannySTW for his arduino library that helped me using the conditioner.

About

This is my voice assistant Patrick!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published