Before First Audio
data class BeforeFirstAudio(val maxAttempts: Int = 3, val initialDelayMillis: Long = 500, val maxDelayMillis: Long, val jitterFactor: Double = 0.2) : RealtimeTtsReconnectPolicy(source)
Reconnect only before the first audio chunk is received, when replaying buffered text cannot duplicate audio already delivered to the caller.
Properties
Link copied to clipboard
Delay before the first retry, in milliseconds.
Link copied to clipboard
Random proportional variation applied to retry delays, from 0 to 1.
Link copied to clipboard
Maximum number of reconnection attempts.
Link copied to clipboard
Upper bound for exponential retry delays, in milliseconds.