🐛[bugfix] Model : 文字起こしのスピーカー終了処理時のキューの削除処理をマイクの終了処理のキューの削除処理に合わせるように修正
This commit is contained in:
1 parent
e8d195410e
commit
6a8a09a3b7
1 file changed
+4
-2
+4
-2
@@ -606,8 +606,10 @@ class Model:
|
||||
errorLogging()
|
||||
|
||||
def endSpeakerTranscript():
|
||||
speaker_audio_queue.queue.clear()
|
||||
# speaker_energy_queue.queue.clear()
|
||||
while not speaker_audio_queue.empty():
|
||||
speaker_audio_queue.get()
|
||||
# while not speaker_energy_queue.empty():
|
||||
# speaker_energy_queue.get()
|
||||
del self.speaker_transcriber
|
||||
gc.collect()
|
||||
|
||||
|
||||
Reference in new issue
Block a user