From 7cbe6d073bb2f6efab979736e27ccece09fcdac3 Mon Sep 17 00:00:00 2001 From: brige Date: Mon, 11 Nov 2024 19:07:01 +0800 Subject: [PATCH] modify tts audio handle --- tts/tts_audio_handle.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tts/tts_audio_handle.py b/tts/tts_audio_handle.py index 35b9b9e..a70c239 100644 --- a/tts/tts_audio_handle.py +++ b/tts/tts_audio_handle.py @@ -95,9 +95,7 @@ class TTSAudioSplitHandle(TTSAudioHandle): if current == self._current: self._current = self._current + 1 chunks = heapq.heappop(self._priority_queue)[1] - if chunks is None: - pass - else: + if chunks is not None: for chunk in chunks: self.on_next_handle(chunk, 0)