modify tts audio handle
This commit is contained in:
parent
dde41769bf
commit
7cbe6d073b
@ -95,9 +95,7 @@ class TTSAudioSplitHandle(TTSAudioHandle):
|
|||||||
if current == self._current:
|
if current == self._current:
|
||||||
self._current = self._current + 1
|
self._current = self._current + 1
|
||||||
chunks = heapq.heappop(self._priority_queue)[1]
|
chunks = heapq.heappop(self._priority_queue)[1]
|
||||||
if chunks is None:
|
if chunks is not None:
|
||||||
pass
|
|
||||||
else:
|
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
self.on_next_handle(chunk, 0)
|
self.on_next_handle(chunk, 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user