-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enhance caption reading functionality
- Implemented background thread for reading captions using a thread pool and a dedicated QRunnable task (ReadCaptionTask). - Improved UI feedback during caption reading by disabling/enabling the 'Read Caption' button and updating the label text. - Implemented robust error handling for gTTS and audio playback operations within the background task. - Enhanced MP3 file saving by using tempfile.TemporaryDirectory() for automatic cleanup after reading, eliminating user interaction for save location. - Added handling for empty captions to prevent errors during text-to-speech processing.
- Loading branch information
1 parent
7cfa258
commit fc6d27e
Showing
1 changed file
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters