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
|
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__':
|
2023-03-25 15:52:22 +01:00
|
|
|
logging.getLogger().setLevel(logging.INFO)
|
2022-12-01 16:06:23 +01:00
|
|
|
|
2023-05-31 18:53:47 +02:00
|
|
|
db_utils.create_database()
|
|
|
|
|
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
|
2023-05-31 17:16:09 +02:00
|
|
|
# CocktailSkill().register()
|
2022-12-04 15:27:45 +01:00
|
|
|
|
|
|
|
# Load the skills
|
2023-05-31 17:16:09 +02:00
|
|
|
# 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
|
2023-05-31 17:16:09 +02:00
|
|
|
# whisper_utils.load_model()
|
|
|
|
faster_whisper_utils.load_model()
|
2023-03-25 12:25:47 +01:00
|
|
|
|
2022-12-01 16:06:23 +01:00
|
|
|
# Start the api endpoint
|
2023-03-26 13:26:43 +02:00
|
|
|
jarvis.api.start_api()
|