53 lines
1.2 KiB
Python
53 lines
1.2 KiB
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""
|
||
|
|
Local Transcription Application
|
||
|
|
|
||
|
|
A standalone desktop application for real-time speech-to-text transcription
|
||
|
|
using Whisper models. Supports CPU/GPU processing, noise suppression, and
|
||
|
|
optional multi-user server synchronization.
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
# Add project root to Python path
|
||
|
|
project_root = Path(__file__).parent
|
||
|
|
sys.path.insert(0, str(project_root))
|
||
|
|
|
||
|
|
from PySide6.QtWidgets import QApplication
|
||
|
|
from gui.main_window_qt import MainWindow
|
||
|
|
|
||
|
|
|
||
|
|
def main():
|
||
|
|
"""Main application entry point."""
|
||
|
|
try:
|
||
|
|
print("Starting Local Transcription Application...")
|
||
|
|
print("=" * 50)
|
||
|
|
|
||
|
|
# Create Qt application
|
||
|
|
app = QApplication(sys.argv)
|
||
|
|
|
||
|
|
# Set application info
|
||
|
|
app.setApplicationName("Local Transcription")
|
||
|
|
app.setOrganizationName("LocalTranscription")
|
||
|
|
|
||
|
|
# Create and show main window
|
||
|
|
window = MainWindow()
|
||
|
|
window.show()
|
||
|
|
|
||
|
|
# Run application
|
||
|
|
sys.exit(app.exec())
|
||
|
|
|
||
|
|
except KeyboardInterrupt:
|
||
|
|
print("\nApplication interrupted by user")
|
||
|
|
sys.exit(0)
|
||
|
|
except Exception as e:
|
||
|
|
print(f"Fatal error: {e}")
|
||
|
|
import traceback
|
||
|
|
traceback.print_exc()
|
||
|
|
sys.exit(1)
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|