You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi , I used edge-tts for a while
mostly it's working well
but sometimes it will crash , without any error
I made some simple scripts to use this library, when crash , the python process just quit ,
so it's hard to find the reason, anyone knows about this ?
here is the code snippet
sine i use this in a sperate thread , so i get new event loop
the raason I use new loop , is because I will it in pyqt , and pyqt has it's own event loop
try:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
# this function will call edge-tts api
task = make_audio_txt(txt_path, voice_name, audio_path,
voice_speed, voice_volume, voice_pitch)
asyncio.get_event_loop().run_until_complete(task)
return audio_path
except Exception as e:
logger.debug(str(e))
finally:
loop.close()
The text was updated successfully, but these errors were encountered:
I can't help you without more information but I can assure you that there isn't some broad exception somewhere in edge-tts that would have silenced some issue. If you can show me make_audio_txt I might be able to help you.
hi , I used edge-tts for a while
mostly it's working well
but sometimes it will crash , without any error
I made some simple scripts to use this library, when crash , the python process just quit ,
so it's hard to find the reason, anyone knows about this ?
here is the code snippet
sine i use this in a sperate thread , so i get new event loop
the raason I use new loop , is because I will it in pyqt , and pyqt has it's own event loop
The text was updated successfully, but these errors were encountered: