Quick answers
Full FAQ
Why Doesn't the SDK Replay Audio Chunks Upon Reconnection?
Why Doesn't the SDK Replay Audio Chunks Upon Reconnection?
The SDK does not replay the audio chunk stream after a network recovery.
While replaying chunks might seem like a logical way to fill gaps, it introduces significant complexity to your integration.For example, it would create the following issues:
- Duplication: It would send duplicate audio ranges (the live stream plus the replayed history).
- Complexity: You would need to build complex logic to track chunk IDs, deduplicate data, and enforce idempotency.
- Performance: Replaying history creates a large set of data to process immediately upon reconnection.
-
Real-time chunks: Use the
onAudioChunkAvailablecallback only for live user interface features, such as drawing a waveform. -
Offline robustness: For data persistence, rely on the SDK’s built-in offline manager. The SDK buffers encrypted audio in
IndexedDBand automatically uploads it to the Suki backend server when the connection returns.