Skip to content

Commit e232d8a

Browse files
committed
Android simple-chatbot: log participant callbacks
1 parent b1fb255 commit e232d8a

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

simple-chatbot/client/android/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
accompanistPermissions = "0.34.0"
33
agp = "8.7.3"
44
constraintlayoutCompose = "1.1.0"
5-
pipecatClientDaily = "1.0.2"
5+
pipecatClientDaily = "1.0.3"
66
kotlin = "2.0.20"
77
coreKtx = "1.15.0"
88
lifecycleRuntimeKtx = "2.8.7"

simple-chatbot/client/android/simple-chatbot-client/src/main/java/ai/pipecat/simple_chatbot_client/VoiceClientManager.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,26 @@ class VoiceClientManager(private val context: Context) {
165165
override fun onRemoteAudioLevel(level: Float, participant: Participant) {
166166
botAudioLevel.floatValue = level
167167
}
168+
169+
override fun onConnected() {
170+
Log.i(TAG, "Connected")
171+
}
172+
173+
override fun onBotConnected(participant: Participant) {
174+
Log.i(TAG, "Bot connected: $participant")
175+
}
176+
177+
override fun onBotDisconnected(participant: Participant) {
178+
Log.i(TAG, "Bot disconnected: $participant")
179+
}
180+
181+
override fun onParticipantJoined(participant: Participant) {
182+
Log.i(TAG, "Participant joined: $participant")
183+
}
184+
185+
override fun onParticipantLeft(participant: Participant) {
186+
Log.i(TAG, "Participant left: $participant")
187+
}
168188
}
169189

170190
val options = PipecatClientOptions(

0 commit comments

Comments
 (0)