Tags: NaomiProject/Naomi
Tags
Naomi Plugin Repository (#199) * Naomi Plugin Repository Added a simple plugin store. Changed the following files: naomi/__main__.py -- Added arguments for plugin management: --list-available-plugins [category] --install --update --remove --enable --disable Renamed --list-plugins to --list-active-plugins Redirected all the new arguments to routines in naomi/application.py naomi/application.py -- added routines for handling plugin management. Some of this might be better handled in __main__.py. For instance, if you have your tts engine set to a plugin that you have disabled, the program will crash with a message about the plugin not being found before it processes the enable command. So if you have a disabled engine selected somewhere, you have to manually fixed that in profile.yml naomi/mic.py -- when saving audio for training, if you are not using the default vocabulary, then capture the name of the special vocabulary you are using. This will allow adding appropriate words to the vocabulary list. naomi/pluginstore.py -- added a routine for printing plugins for the plugin store. Added a routine to automatically add plugins to the profile.yml the first time they are loaded. naomi/profile.py -- added a routine for removing a profile variable. Prevent the profile from being saved if it has not been loaded yet. * Changes for Codacy Codacy wanted me to predigest urls with urllib.request.Request(url) before passing them to urllib.request.urlopen(urlreq) Also wanted a method turned into a static method. Also caught an error where I forgot to put square brackets around a list being passed to join. * More changes for Codacy I guess it didn't like what I did for the url. I'm trying to make it more explicite, and if this doesn't work I will have to make an external routine for it, because I don't know what exactly it is complaining about. * Codacy Still trying to get codacy not to flag this... * Codacy again Again, codacy...