Skip to content

Commit 6e78b10

Browse files
committed
add background dispatcher
1 parent 5f3b427 commit 6e78b10

File tree

1 file changed

+1
-1
lines changed
  • firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type

1 file changed

+1
-1
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/LiveSession.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ internal constructor(
208208
audioHelper = AudioHelper()
209209
audioHelper!!.setupAudioTrack()
210210
fillRecordedAudioQueue()
211-
CoroutineScope(Dispatchers.Default).launch { sendAudioDataToServer() }
211+
CoroutineScope(backgroundDispatcher).launch { sendAudioDataToServer() }
212212
fillServerResponseAudioQueue()
213213
playServerResponseAudio()
214214
delay(1000)

0 commit comments

Comments
 (0)