Skip to content

Commit 0a0c6ca

Browse files
authored
Update LiveKit SDK to 2.23.3 (#59)
* Update LiveKit SDK to 2.23.3 * spotless
1 parent ec649bf commit 0a0c6ca

6 files changed

Lines changed: 18 additions & 7 deletions

File tree

.changeset/dry-days-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"components-android": patch
3+
---
4+
5+
Update LiveKit SDK to 2.23.3

.changeset/serious-knives-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"components-android": patch
3+
---
4+
5+
Fix incompatibility issue with LiveKit SDK 2.23.3

client-sdk-android

Submodule client-sdk-android updated 29 files

livekit-compose-components/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dokkaHtml {
8686
}
8787
}
8888

89-
var livekitVersion = "2.23.1"
89+
var livekitVersion = "2.23.3"
9090
dependencies {
9191
// For local development with the LiveKit Android SDK only.
9292
// api "io.livekit:livekit-android-sdk"

livekit-compose-components/src/main/java/io/livekit/android/compose/flow/TextStream.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2025 LiveKit, Inc.
2+
* Copyright 2025-2026 LiveKit, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import io.livekit.android.room.datastream.StreamInfo
2121
import io.livekit.android.room.datastream.incoming.TextStreamReceiver
2222
import io.livekit.android.room.participant.Participant
2323
import io.livekit.android.room.types.TranscriptionAttributes
24-
import io.livekit.android.room.types.fromMap
24+
import io.livekit.android.room.types.fromStringMap
2525
import kotlinx.coroutines.CoroutineScope
2626
import kotlinx.coroutines.Dispatchers
2727
import kotlinx.coroutines.flow.Flow
@@ -59,7 +59,7 @@ internal fun setupTextStream(room: Room, topic: String, coroutineScope: Coroutin
5959

6060
val textStreams = Collections.synchronizedList(mutableListOf<TextStreamData>())
6161
room.registerTextStreamHandler(topic) { reader: TextStreamReceiver, fromIdentity: Participant.Identity ->
62-
val transcriptionAttributes = TranscriptionAttributes.fromMap(reader.info.attributes)
62+
val transcriptionAttributes = TranscriptionAttributes.fromStringMap(reader.info.attributes)
6363
val isTranscription = transcriptionAttributes.lkSegmentID != null
6464

6565
var index = -1
@@ -74,7 +74,7 @@ internal fun setupTextStream(room: Room, topic: String, coroutineScope: Coroutin
7474
if (index == -1) {
7575
index = textStreams.indexOfFirst { stream ->
7676
val streamTranscriptionAttributes = if (isTranscription) {
77-
TranscriptionAttributes.fromMap(stream.streamInfo.attributes)
77+
TranscriptionAttributes.fromStringMap(stream.streamInfo.attributes)
7878
} else {
7979
null
8080
}

livekit-compose-components/src/main/java/io/livekit/android/compose/state/RememberVoiceAssistant.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-2025 LiveKit, Inc.
2+
* Copyright 2024-2026 LiveKit, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -171,6 +171,7 @@ enum class AgentState {
171171
AgentSdkState.Listening -> LISTENING
172172
AgentSdkState.Speaking -> SPEAKING
173173
AgentSdkState.Thinking -> THINKING
174+
AgentSdkState.Unknown,
174175
null -> UNKNOWN
175176
}
176177
}

0 commit comments

Comments
 (0)