jarvis-server-v2/jarvis/start.py

27 lines
589 B
Python
Raw Normal View History

import logging
import lingua_franca
import api
from jarvis.skills.cocktails import CocktailSkill
from jarvis.skills.intent_services import intent_manager
from jarvis.utils import whisper_utils
2022-11-29 21:40:20 +01:00
if __name__ == '__main__':
logging.getLogger().setLevel(logging.INFO)
# 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()
# Start the api endpoint
api.start_api()