2023-03-25 12:25:47 +01:00
|
|
|
import logging
|
|
|
|
|
2022-12-01 16:06:23 +01:00
|
|
|
import lingua_franca
|
|
|
|
|
2023-03-26 13:26:43 +02:00
|
|
|
import jarvis.api
|
2022-12-04 15:27:45 +01:00
|
|
|
from jarvis.skills.cocktails import CocktailSkill
|
|
|
|
from jarvis.skills.intent_services import intent_manager
|
2023-03-25 12:25:47 +01:00
|
|
|
from jarvis.utils import whisper_utils
|
2022-11-29 21:40:20 +01:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2023-03-25 15:52:22 +01:00
|
|
|
logging.getLogger().setLevel(logging.INFO)
|
2022-12-01 16:06:23 +01:00
|
|
|
|
|
|
|
# Load lingua franca in the memory
|
|
|
|
lingua_franca.load_language(lang="fr")
|
|
|
|
|
2022-12-04 15:27:45 +01:00
|
|
|
# Register each skills
|
|
|
|
CocktailSkill().register()
|
|
|
|
|
|
|
|
# Load the skills
|
|
|
|
intent_manager.load_all_skills()
|
2022-12-01 16:06:23 +01:00
|
|
|
|
2023-03-25 12:25:47 +01:00
|
|
|
# Load the STT (whisper) model
|
|
|
|
whisper_utils.load_model()
|
|
|
|
|
2022-12-01 16:06:23 +01:00
|
|
|
# Start the api endpoint
|
2023-03-26 13:26:43 +02:00
|
|
|
jarvis.api.start_api()
|