jarvis-server-v2/start.py

29 lines
610 B
Python
Raw Normal View History

import logging
import lingua_franca
2023-03-26 13:26:43 +02:00
import jarvis.api
2023-05-31 18:53:47 +02:00
from jarvis.db import db_utils
2023-05-31 17:16:09 +02:00
from jarvis.utils import faster_whisper_utils
2022-11-29 21:40:20 +01:00
if __name__ == '__main__':
logging.getLogger().setLevel(logging.INFO)
2023-05-31 18:53:47 +02:00
db_utils.create_database()
# Load lingua franca in the memory
lingua_franca.load_language(lang="fr")
# Register each skills
2023-05-31 17:16:09 +02:00
# CocktailSkill().register()
# Load the skills
2023-05-31 17:16:09 +02:00
# intent_manager.load_all_skills()
# Load the STT (whisper) model
2023-05-31 17:16:09 +02:00
# whisper_utils.load_model()
faster_whisper_utils.load_model()
# Start the api endpoint
2023-03-26 13:26:43 +02:00
jarvis.api.start_api()