diff --git a/CHANGELOG.md b/CHANGELOG.md index e114335..dca2837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v1.0.8 (pre-release) - Added support for AMD GPUs in Linux (Special thanks to @hg000125 for his contribution in #23) - Skipping PyTorch CUDA installation if GPU is not NVIDIA in WINDOWS_INSTALL.bat script, preventing unnecessary installation of PyTorch. +- Fixed voice preview player keeps open at the background after stopping the preview. - Improved input box background color handling, fixed display issues in Linux Wayland. - Better sleep state handling for Linux. diff --git a/abogen/conversion.py b/abogen/conversion.py index f4084aa..1c00d5c 100644 --- a/abogen/conversion.py +++ b/abogen/conversion.py @@ -919,8 +919,9 @@ class PlayAudioThread(QThread): pygame.mixer.music.play() # Wait until playback is finished while pygame.mixer.music.get_busy(): - _time.sleep(0.1) + _time.sleep(0.2) pygame.mixer.music.unload() + pygame.mixer.quit() # Quit the mixer self.finished.emit() except Exception as e: self.error.emit(f"Audio playback error: {str(e)}")