2021-07-29 23:03:01 +02:00
|
|
|
import lingua_franca
|
2021-07-26 18:23:32 +02:00
|
|
|
|
2021-07-27 23:10:01 +02:00
|
|
|
from jarvis.skills import intent_manager
|
2021-08-02 12:04:25 +02:00
|
|
|
from jarvis.skills.daily.timer import TimerSkill
|
2021-08-01 21:07:03 +02:00
|
|
|
from jarvis.skills.entertainement.decide import DecideSkill
|
2021-07-30 12:54:25 +02:00
|
|
|
from jarvis.skills.entertainement.jokes import JokesSkill
|
2021-09-14 15:44:22 +02:00
|
|
|
from jarvis.skills.entertainement.moviemaster import MovieMaster
|
2021-07-29 12:35:07 +02:00
|
|
|
from jarvis.skills.entertainement.spotify import SpotifySkill
|
2021-08-03 19:05:07 +02:00
|
|
|
from jarvis.skills.entertainement.weather import WeatherSkill
|
2021-09-12 21:50:30 +02:00
|
|
|
from jarvis.skills.productivity.homeassistant import HomeAssistantSkill
|
2021-08-01 18:26:26 +02:00
|
|
|
from jarvis.skills.productivity.speedtest import SpeedTestSkill
|
2021-07-30 12:54:25 +02:00
|
|
|
from jarvis.skills.research.wikipedia import WikipediaSkill
|
2021-08-01 18:26:26 +02:00
|
|
|
from jarvis.utils import languages_utils, flask_utils
|
2021-07-26 18:23:32 +02:00
|
|
|
|
2021-08-22 18:44:32 +02:00
|
|
|
|
|
|
|
def start():
|
2021-07-29 23:03:01 +02:00
|
|
|
# Load lingua franca in the memory
|
|
|
|
# Supported : English French German Hungarian Italian Portuguese Swedish
|
2021-07-30 21:12:13 +02:00
|
|
|
lingua_franca.load_language(lang=languages_utils.get_language_only_country())
|
2021-07-29 23:03:01 +02:00
|
|
|
|
2021-10-14 08:58:44 +02:00
|
|
|
# Register all skills
|
2021-07-30 12:54:25 +02:00
|
|
|
WikipediaSkill().register()
|
|
|
|
JokesSkill().register()
|
2021-07-29 12:35:07 +02:00
|
|
|
SpotifySkill().register()
|
2021-08-01 18:26:26 +02:00
|
|
|
SpeedTestSkill().register()
|
2021-08-01 21:07:03 +02:00
|
|
|
DecideSkill().register()
|
2021-08-02 12:04:25 +02:00
|
|
|
TimerSkill().register()
|
2021-08-03 19:05:07 +02:00
|
|
|
WeatherSkill().register()
|
2021-09-12 21:50:30 +02:00
|
|
|
HomeAssistantSkill().register()
|
2021-09-14 15:44:22 +02:00
|
|
|
MovieMaster().register()
|
2021-07-28 19:31:47 +02:00
|
|
|
|
2021-09-13 15:23:12 +02:00
|
|
|
# TODO: calculator skill
|
|
|
|
# TODO: google/ddg help skill
|
|
|
|
# TODO: unit converter skill
|
|
|
|
|
2021-07-31 12:57:23 +02:00
|
|
|
# Load all skills
|
2021-07-30 14:10:35 +02:00
|
|
|
intent_manager.load_all_skills()
|
2021-07-28 19:31:47 +02:00
|
|
|
|
2021-08-03 19:05:07 +02:00
|
|
|
# Train Padatious models
|
|
|
|
intent_manager.train_padatious()
|
|
|
|
|
2021-07-31 12:57:23 +02:00
|
|
|
# Bunch of tests
|
2021-07-31 11:18:16 +02:00
|
|
|
# intent_manager.recognise("cherche Elon Musk sur wikipédia") # WORKING
|
2021-07-29 23:29:53 +02:00
|
|
|
# intent_manager.recognise("raconte moi une blague") # WORKING
|
|
|
|
# intent_manager.recognise("joue le morceau crazy crazy nights de KISS sur spotify") # WORKING
|
|
|
|
# intent_manager.recognise("coupe la musique") # WORKING
|
2021-07-30 12:54:25 +02:00
|
|
|
# intent_manager.recognise("c'est quoi le nom de cette chanson ?") # WORKING
|
2021-07-27 23:10:01 +02:00
|
|
|
|
2021-07-31 12:57:23 +02:00
|
|
|
# Start the flask server
|
|
|
|
flask_utils.start_server()
|