Merge remote-tracking branch 'origin/master'

This commit is contained in:
Mathieu 2022-01-06 10:59:21 +01:00
commit b0d5ad4f27
36 changed files with 52 additions and 8 deletions

View File

@ -1,7 +1,5 @@
{ {
"PORT": 5000, "PORT": 5000,
"12HOURS-FORMAT": false,
"LANGUAGE": "fr-fr", "LANGUAGE": "fr-fr",
"TTS_VOICE": "marytts:upmc-pierre-hsmm", "TTS_VOICE": "marytts:upmc-pierre-hsmm"
"PAUSE_MUSIC_AFTER_HOTWORD": true
} }

View File

@ -18,7 +18,7 @@ def start():
# Supported : English French German Hungarian Italian Portuguese Swedish # Supported : English French German Hungarian Italian Portuguese Swedish
lingua_franca.load_language(lang=languages_utils.get_language_only_country()) lingua_franca.load_language(lang=languages_utils.get_language_only_country())
# Tests # Register all skills
WikipediaSkill().register() WikipediaSkill().register()
JokesSkill().register() JokesSkill().register()
SpotifySkill().register() SpotifySkill().register()
@ -29,7 +29,6 @@ def start():
HomeAssistantSkill().register() HomeAssistantSkill().register()
MovieMaster().register() MovieMaster().register()
# TODO: movies master skill
# TODO: calculator skill # TODO: calculator skill
# TODO: google/ddg help skill # TODO: google/ddg help skill
# TODO: unit converter skill # TODO: unit converter skill

View File

@ -21,11 +21,11 @@ def get_language_only_country():
def get_language_full_name(name=None): def get_language_full_name(name=None):
""" """
Return for exemple french for fr-fr, english for en-en, etc (savec in languages.json in the config folder) Return for exemple french for fr-fr, english for en-en, etc (saved in languages.json in the config folder)
Return english if the language isn't found in the languages.json file Return english if the language isn't found in the languages.json file
""" """
config_json = json.load(open(path + "/config/languages.json", encoding='utf-8', mode='r')) config_json = json.load(open(path + "/utils/config/languages.json", encoding='utf-8', mode='r'))
if name is None: if name is None:
name = get_language() name = get_language()
@ -37,7 +37,7 @@ def get_language_full_name(name=None):
def get_spacy_model(language=None): def get_spacy_model(language=None):
spacy_model = json.load(open(path + "/config/spacy.json", encoding='utf-8', mode='r')) spacy_model = json.load(open(path + "/utils/config/spacy.json", encoding='utf-8', mode='r'))
if language is None: if language is None:
language = get_language() language = get_language()

47
todo_ideas_google.txt Normal file
View File

@ -0,0 +1,47 @@
Ok Google souviens-toi que jai mis les clés [ou nimporte quel objet] à lentrée [ou nimporte quel autre endroit]
Ok Google, où sont mes clés ?
Ok Google, où se trouve mon smartphone / iPhone ?
Ok Google, rappelle-moi de rappeler ma mère à 18 heures
Ok Google, comment dit-on merci en Chinois mandarin ?
Ok Google, traduis “je taime” en japonais
Ok Google, appairage Bluetooth
Ok Google, déconnecte le Bluetooth
Ok Google, mets le minuteur sur 5 minutes
Ok Google, combien de temps reste-t-il sur le minuteur ?
Ok Google, arrête/annule le minuteur
Ok Google, stop (lorsque le minuteur sonne)
Ok Google, mets une alarme à [heure]
Ok Google, annule lalarme
Ok Google, quelle est la définition de [mot]
Ok Google, raconte-moi quelque chose dintéressant
Ok Google, parle à Akinator
Ok Google, raconte-moi une histoire