Skip to content

Commit

Permalink
Update transcribing flow based on websocket events
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-lohra committed Dec 3, 2024
1 parent 0408fe7 commit 8d1f419
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ import org.openapitools.client.models.CallSessionResponse
import org.openapitools.client.models.CallSessionStartedEvent
import org.openapitools.client.models.CallSettingsResponse
import org.openapitools.client.models.CallStateResponseFields
import org.openapitools.client.models.CallTranscriptionFailedEvent
import org.openapitools.client.models.CallTranscriptionStartedEvent
import org.openapitools.client.models.CallTranscriptionStoppedEvent
import org.openapitools.client.models.CallUpdatedEvent
import org.openapitools.client.models.ConnectedEvent
import org.openapitools.client.models.CustomVideoEvent
Expand Down Expand Up @@ -932,6 +935,16 @@ public class CallState(
updateParticipantCounts(session = session.value)
updateRingingState()
}

is CallTranscriptionStartedEvent -> {
_transcribing.value = true
}
is CallTranscriptionStoppedEvent -> {
_transcribing.value = false
}
is CallTranscriptionFailedEvent -> {
_transcribing.value = false
}
}
}

Expand Down

0 comments on commit 8d1f419

Please sign in to comment.