jarvis-server-v2/run.py

31 lines
701 B
Python
Raw Normal View History

2023-06-01 16:01:35 +02:00
import logging
from src.audio import audio_utils
2023-06-01 16:01:35 +02:00
from src.database import db_utils
from src.constants import TTSEngine, STTEngine
from src.network import api
2023-06-01 16:01:35 +02: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 audio model(s)
audio_utils.load_models(stt_engine=STTEngine.FASTER_WHISPER, tts_engine=TTSEngine.PIPER)
2023-06-01 16:01:35 +02:00
# Start the api server
api.start_api(6000)