KoljaB / RealtimeTTS

Converts text to speech in realtime
1.39k stars 119 forks source link

Overlapping? #72

Open Yokopops opened 2 months ago

Yokopops commented 2 months ago

I am getting this error when processing TTS in my application, It would appear when swapping function of my script its somehow not closing the old request that was sent or something? Is there any command I can send to coqui engine when swapping how the function works to prevent this from happening, without obviously sending a full shutdown command? Currently I have f11 to toggle listening for an enter key press, when enter is pressed it starts keylogging to a textbox on my UI and listening for next enter keypress, when enter is pressed it submits the text to coqui engine and stops logging. I also have the same function on f12 however f12 just starts logging the keypresses and waits for enter, submits it and then stops logging. The issue seems to happen when toggling f11 off and then attempting to submit after using f12

CoquiEngine: General synthesis error: occured in synthesize worker thread of coqui engine. Process Process-1: Traceback (most recent call last): File "C:\Users\Yoko\AppData\Local\Programs\Python\Python310\lib\multiprocessing\connection.py", line 317, in _recv_bytes nread, err = ov.GetOverlappedResult(True) BrokenPipeError: [WinError 109] The pipe has been ended

KoljaB commented 2 months ago

This error is mostly a followup if something else failed. Hard to say what without seeing the code. Does the coqui example from the test folder work? Or don't you get any synthesis out of coqui currently?