We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace97d2 commit 031c38dCopy full SHA for 031c38d
firebase-ai/src/main/kotlin/com/google/firebase/ai/type/LiveSession.kt
@@ -328,7 +328,10 @@ internal constructor(
328
?.listenToRecording()
329
?.buffer(UNLIMITED)
330
?.accumulateUntil(MIN_BUFFER_SIZE)
331
- ?.onEach { sendMediaStream(listOf(MediaData(it, "audio/pcm"))) }
+ ?.onEach {
332
+ sendMediaStream(listOf(MediaData(it, "audio/pcm")))
333
+ delay(0)
334
+ }
335
?.catch { throw FirebaseAIException.from(it) }
336
?.launchIn(scope)
337
}
0 commit comments