- Create modules/omnivoice/ with VoiceAPI, VoiceProfiles, CLI - Add config manager integration with local model support - Add app/komAI.py entry point - Add tests/test_omnivoice.py - Clone OmniVoice to external/ for development - Add omnivoice config to global.yaml
41 lines
682 B
Python
41 lines
682 B
Python
import src.utils.config_manager as config
|
|
import src.utils.log_manager as log
|
|
|
|
config = config.config
|
|
logger = None
|
|
|
|
VOICE_CATEGORY = "voice"
|
|
|
|
|
|
def register_config():
|
|
from .config import register_params
|
|
|
|
register_params()
|
|
|
|
|
|
def register_logging():
|
|
global logger
|
|
log.register(module=VOICE_CATEGORY, log_console=True, log_file="omnivoice.log")
|
|
logger = log.get_logger(VOICE_CATEGORY)
|
|
|
|
|
|
def get_api():
|
|
from .api import VoiceAPI
|
|
|
|
return VoiceAPI()
|
|
|
|
|
|
def get_profiles():
|
|
from .profiles import VoiceProfiles
|
|
|
|
return VoiceProfiles()
|
|
|
|
|
|
__all__ = [
|
|
"register_config",
|
|
"register_logging",
|
|
"get_api",
|
|
"get_profiles",
|
|
"VOICE_CATEGORY",
|
|
]
|