Replies: 3 comments 3 replies
|
Could |
|
Hey, this is probably due to the Ogg muxer batching the Opus packets into pages. Having larger pages results in a smaller file sile at the cost of increased output latency, as you've correctly determined! When creating files for offline use, large pages are a non-issue, but for live-streaming it breaks down somewhat. I have two ideas here:
I think I might add the second approach! Also, really happy the Ogg parts of Mediabunny are seeing use. |
|
I’m truly excited—and even moved—by how quickly you responded and by the seemingly better solution you provided. Seeing all of this happen so fast is incredible. Thank you for everything you’ve done; I can’t wait for the next version to be released. |
Uh oh!
There was an error while loading. Please reload this page.
I’m building a streaming ASR application and currently sending audio in Opus/OGG format, as required by the ASR provider.
However, with my current setup, it takes almost ~1 second before an OGG packet is produced and sent, which introduces noticeable latency. I’m not sure whether this is the intended or recommended usage for real-time streaming.
Is it possible (or advisable) to reduce the OGG packet size or flush OGG pages more frequently?
Alternatively, would it make more sense to stream raw Opus frames to my backend service and encapsulate them into OGG there, instead of generating OGG packets on the client side?
Any guidance on best practices for low-latency streaming in this scenario would be appreciated.
All reactions