jarvis-server-v2/start.py
2023-05-31 18:53:47 +02:00

29 lines
610 B
Python

import logging
import lingua_franca
import jarvis.api
from jarvis.db import db_utils
from jarvis.utils import faster_whisper_utils
if __name__ == '__main__':
logging.getLogger().setLevel(logging.INFO)
db_utils.create_database()
# Load lingua franca in the memory
lingua_franca.load_language(lang="fr")
# Register each skills
# CocktailSkill().register()
# Load the skills
# intent_manager.load_all_skills()
# Load the STT (whisper) model
# whisper_utils.load_model()
faster_whisper_utils.load_model()
# Start the api endpoint
jarvis.api.start_api()