Hi Cartesia folks,
We're building an interactive audio theater platform (Rolely) and we'd like to have multiple characters speak their dialog. We're doing this by making subsequent requests to the API using the SSE endpoint with timestamps and reading the output stream. This works nearly all of the time; however, around 10-20% of the time, some of the last few audio streams are completely empty (no logged bytes). I've validated that they're indeed empty from Cartesia and we're not hitting concurrency limits.
A minimal example of this is as follows (note this works most of the time, but fails roughly once out of 10 times with maybe the first 3 streams returning bytes and the last 2 being empty): https://gist.github.com/umairnadeem/3581632add44b83f3d72da9df8a68162
Has anyone else faced this same problem? Thank you for your help!