Commit History

  1. Refactor imports in TTS and ASR modules: switch to absolute imports for improved clarity and maintainability.

    liumaolin
    d7d0d96
  2. Remove trailing whitespace in `audio_generator/manager.py` and `asr/manager.py` for improved code cleanliness and consistency.

    liumaolin
    f08ef5f
  3. Refactor ASR manager: remove `_get_asr_supported_languages`, replace static language mapping with `supported_langs` attribute, and update dynamic module import to use `importlib.util` for improved maintainability.

    liumaolin
    8acaad0
  4. Refactor `audio_generator/manager.py`: streamline imports, remove redundant modules in `register_all_tts`, and adjust dynamic import spec for improved maintainability.

    liumaolin
    ee4663a

  1. Adjust sorting priority in `audio_generator/models/base.py`: prioritize `language_bonus` over `priority` for config selection.

    liumaolin
    3b73d5e
  2. Refactor TTS module loading in `audio_generator/manager.py`: replace `importlib.import_module` with `importlib.util` for improved dynamic import handling and error logging.

    liumaolin
    9bfcd24
  3. Update TTS speaker configuration: replace static mapping with dynamic retrieval, add available speaker listing, and update CLI argument parsing for improved flexibility and maintainability.

    liumaolin
    cf355e6
  4. Refactor sentence processing in `text_generator.py`: centralize sentence end mark sets, streamline `_should_end_sentence` logic, and eliminate redundant parameter passing for improved clarity and maintainability.

    liumaolin
    1ae18a4
  5. Refactor imports in `main.py`: reorder modules for better readability and remove redundant `load_third_party` call.

    liumaolin
    8d91cc1
  6. Add Kokoro TTS support: integrate new TTS model, configuration, and runtime components for enhanced multilingual voice synthesis.

    liumaolin
    1cbd55c
  7. Refactor ASR routes: replace `fastapi_request.state` with `fastapi_request.app.state` for consistent application-level state management.

    liumaolin
    d231de5
  8. Enhance TTS model handling: add dynamic status tracking, model downloading, and default system configuration initialization with API updates to manage active and default TTS models effectively.

    liumaolin
    fb6d02a
  9. Comment out logging statements in `audio_player.py` to disable performance logs and streamline runtime output.

    liumaolin
    87a7384
  10. Refactor ASR routes and services: implement instance creation tracking with background task support, enhance `get_supported_languages` with current ASR language, and clean up unused schemas and routes for simplified management.

    liumaolin
    757f3be

  1. Remove `SystemConfig` and `SystemStartRequest` imports and clean up `__all__` in `schemas/__init__.py` for simplified schema management.

    liumaolin
    51a672c
  2. Remove `SystemConfig` and `SystemStartRequest` models and clean up related API routes and background tasks for simplified system startup and management.

    liumaolin
    e7ebdb0
  3. Enhance system management and audio capture services: implement `SystemStatusResponse` updates with detailed state tracking, add `audio_capture` service creation and lifecycle management, and refactor API `/system` routes for improved status and control handling.

    liumaolin
    94c7b78
  4. Extend TTS registry functionality and integrate default system configurations: implement prioritization logic, language preference handling, and fallback mechanisms in `TTSConfigRegistry`; refactor service factory and lifespan management to support dynamic TTS selection and initialization.

    liumaolin
    a28f7e3
  5. Introduce core module for API lifecycle management: add configuration, service factories, service manager, and lifespan handlers to streamline application startup, shutdown, and service orchestration.

    liumaolin
    a16e0e5
  6. Add system utilities and initialize core modules: implement `get_system_language` and `get_system_info`, update API startup with system defaults, and integrate ASR, LLM, and speech modules for enhanced functionality.

    liumaolin
    5c0e715
  7. Refactor core queue initialization: move queue definitions to `constants.py` and clean up redundant imports in `main.py` for better modularity.

    liumaolin
    bfefeb3
  8. Introduce initial API structure for VoiceDialogue: add dependencies, middleware, and routes for ASR, TTS, system, and voice modules.

    liumaolin
    8f823b0

  1. Refactor ASR module: introduce modular structure with ASR interface, implement FunASR and Whisper clients, add registry, and consolidate utility functions for enhanced maintainability and extensibility.

    liumaolin
    59603db
  2. Refactor TTS module: rename `tts_manager` to `manager` for consistency across imports and structure.

    liumaolin
    89f7f05
  3. Refactor speech processing: add type hint for `_process_active_voice_frame` and replace `max()` with `np.max()` for consistency.

    liumaolin
    5284873

  1. Refactor TTS audio generation: rename queues for clarity, update `TTSAudioGenerator` initialization, and enhance docstrings for better maintainability.

    liumaolin
    bba0d84
  2. Refactor TTS architecture: implement runtime interface, TTS manager, universal registry, and factory pattern to support multiple engines.

    liumaolin
    ef0d09e
  3. Refactor voice model structure: extract MoYoYo-specific configurations and introduce universal TTS registry.

    liumaolin
    025ca3f

  1. Remove unused `prompt_semantic` and `reference_spec` configuration parameters from voice model definitions.

    liumaolin
    2a5dcf2
  2. Add thread readiness checks and is_ready property across services

    liumaolin
    e80f558
  3. Using FunASR quantized model.

    liumaolin
    ac62229

  1. Add multilingual support and optimize LLM pipeline configuration.

    liumaolin
    2988b10
  2. Add descriptions for Chinese voice models.

    liumaolin
    4643bb2
  3. Remove unused configuration parameters and conversation templates.

    liumaolin
    3d953ae

  1. Integrate FunASR service.

    liumaolin
    516d7b8
  2. First commit.

    liumaolin
    7b64dcd