Closed dzlandis closed 3 weeks ago
to do with pushing audioData after the stream has already ended.
I think so too, but I wasn't able to replicate it by creating 100 simultanous streams. Would you be able to create a test case in https://github.com/Migushthe2nd/MsEdgeTTS/blob/main/src/MsEdgeTTS.spec.ts ?
I'm working on a program which requires the generation of many TTS audio streams. In this program, I iterate through each string using a for loop and have it read using this package with the toStream function with configured ProsodyOptions. This error randomly occurs during the iteration of generating TTS audio.
Here is the full error stack:
This error seems to be initiated by the following code:
This line is located in the cacheAudioData function. The error itself seems to have to do with pushing audioData after the stream has already ended.
If you come up with a fix, even if temporary, please let me know! If you need any additional information, please feel free to ask.