Add OmniVoice TTS module with config, API, profiles and CLI
- 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
This commit is contained in:
40
modules/omnivoice/__init__.py
Normal file
40
modules/omnivoice/__init__.py
Normal file
@@ -0,0 +1,40 @@
|
||||
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",
|
||||
]
|
||||
Reference in New Issue
Block a user