How franklyc/tmspeech-companion works
Main Components
a) Frontend Layer (GUI Components):
• Title Bar
• Content Area
• Settings Dialog
These are represented in the src/gui directory structure.
b) Configuration Layer:
• API Keys
• Default Settings
• Language Configurations
• Custom Prefix/Suffix Management
Based on src/config directory.
c) API Integration Layer:
• Cerebras
• Groq
• Google Gemini
• Sambanova
• Zhipu
• GLHF
• SiliconFlow
• Local LLM Connection
Based on src/api directory.
Component Relationships
• User Interface → Configuration Management (bidirectional)
• Configuration Management → API Services (unidirectional)
• API Services → External LLM Providers (bidirectional)
• GUI Layer → File System (bidirectional, for transcript file handling)
Data Flow Representation
• Input Flow: Transcript Files → GUI → API Services → LLM Providers
• Output Flow: LLM Providers → API Services → GUI → User/Export
• Configuration Flow: Settings → All Components
Technical Stack Indicators
Labels for key technologies:
• PyQt6 (GUI Framework)
• Python 3.x
• REST APIs (for LLM integration)
• Local file system interaction
Additional Elements
• A "Theme Management" component showing light/dark mode switching
• Language switching mechanism between Chinese/English