How yoshi-782/aivoicectrl works
Main Components
• User/Caller – This represents the command-line or any external application invoking the script.
• AIVoiceCtrl Package – This is the core of the project. Within it, the primary component is the AIVoiceCtrl class (found in AIVoiceCtrl.py). This class is responsible for:
• Initializing connections with the A.I.VOICE Editor.
• Changing voice presets.
• Reading (playing) text aloud.
• External Dependencies:
• A.I.VOICE Editor – The external application that the Python module controls.
• Windows 10 Environment – The operating system environment necessary for the editor.
• pythonnet Library – Provides the bridge between Python and the .NET libraries required to interface with the A.I.VOICE Editor.
Relationships and Interactions
• The User/CLI inputs a command (e.g., “読み上げテスト”) that is passed to the Python script.
• The AIVoiceCtrl class is instantiated and used to:
• Retrieve the list of available voice presets.
• Change to a selected preset.
• Issue commands for text-to-speech functionalities.
Architectural Patterns and Principles
• Modularity: The system is separated into a single Python package, which makes it straightforward and encapsulated.
• Abstraction: The AIVoiceCtrl class abstracts the complexities of interacting with a .NET-based editor from the Python side.
• External Integration: Emphasizing how the project integrates with both an external Windows application and a bridging library (pythonnet).
Relevant Technologies and Frameworks
• Python (Version 3.9.7) is the core language.
• pythonnet is essential to bridge Python with .NET libraries.
• Windows 10 and A.I.VOICE Editor (Version 1.3.0.0) are key external components.