2023-06-01 16:01:35 +02:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from src import api
|
|
|
|
from src.database import db_utils
|
|
|
|
from src.utils import faster_whisper_utils
|
|
|
|
|
2023-11-04 12:47:09 +01:00
|
|
|
# import lingua_franca
|
|
|
|
|
2023-06-01 16:01:35 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
logging.getLogger().setLevel(logging.INFO)
|
|
|
|
|
|
|
|
# Create the database
|
|
|
|
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
|
2023-11-04 12:47:09 +01:00
|
|
|
api.start_api(6000)
|