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 703177f commit 11d96a5Copy full SHA for 11d96a5
firebase-ai/src/main/kotlin/com/google/firebase/ai/common/util/android.kt
@@ -40,6 +40,7 @@ internal fun AudioRecord.readAsFlow() = flow {
40
41
while (true) {
42
if (recordingState != AudioRecord.RECORDSTATE_RECORDING) {
43
+ // TODO(vguthal): Investigate if both yield and delay are required.
44
delay(10.milliseconds)
45
yield()
46
continue
0 commit comments