Skip to main content

AI Session Events

AI audio recording, simultaneous interpretation, and AI chat publish related but distinct event enums. Match the callback model to its own enum type:

Event Reference

Shared session events

A common lifecycle used by AI audio recording and simultaneous interpretation. AI chat uses the same event names but has different raw values after its chat-specific events.

16
.userInitiatedToStartAI Audio RecordingSimultaneous Interpretation

The user requested that the session start.

0
.sessionStartedAI Audio RecordingSimultaneous Interpretation

The session started successfully.

1
.sessionStartFailedAI Audio RecordingSimultaneous Interpretation

The session could not start.

2
.aiServiceConnectedAI Audio RecordingSimultaneous Interpretation

The selected AI service connected.

3
.autoEndSessionTriggeredAI Audio RecordingSimultaneous Interpretation

The configured inactivity rule requested session termination.

4
.userInitiatedToEndSessionAI Audio RecordingSimultaneous Interpretation

The user requested that the session end.

5
.sessionEndedAI Audio RecordingSimultaneous Interpretation

The session ended.

6
.aiServiceUnauthorizedAI Audio RecordingSimultaneous Interpretation

AI service authentication failed.

7
.aiServiceDisconnectedAI Audio RecordingSimultaneous Interpretation

The AI service disconnected.

8
.aiServiceNetworkErrorAI Audio RecordingSimultaneous Interpretation

The AI service reported a network error.

9
.aiServiceStartRecordingAI Audio RecordingSimultaneous Interpretation

The AI service started recording.

10
.aiServiceEndRecordingAI Audio RecordingSimultaneous Interpretation

The AI service stopped recording.

11
.aiServiceRecordingErrorAI Audio RecordingSimultaneous Interpretation

The AI service reported a recording error.

12
.aiServiceResponseErrorAI Audio RecordingSimultaneous Interpretation

The AI service reported a response error.

13
.bleDisconnectedAI Audio RecordingSimultaneous Interpretation

The device BLE connection was lost.

14
.appWillTerminateAI Audio RecordingSimultaneous Interpretation

The host application is about to terminate.

15

AI chat event sequence

The complete AIChatEventType sequence, including SCO, VAD, intent, and response-playback events.

25
.userInitiatedToStartAI Chat

The user requested that the session start.

0
.sessionStartedAI Chat

The session started successfully.

1
.sessionStartFailedAI Chat

The session could not start.

2
.aiServiceConnectedAI Chat

The selected AI service connected.

3
.scoRecordingLinkEstablishedAI Chat

The SCO recording link was established.

4
.scoRecordingStartFailedAI Chat

SCO recording could not start.

5
.vadStartSpeakingAI Chat

VAD detected that the user started speaking.

6
.triggerNewQuestionAI Chat

A new user question began.

7
.vadEndSpeakingAI Chat

VAD detected that the user stopped speaking.

8
.triggerEndQuestionAI Chat

The current user question ended.

9
.autoEndSessionTriggeredAI Chat

The configured inactivity rule requested session termination.

10
.userInitiatedToEndSessionAI Chat

The user requested that the session end.

11
.sessionEndedAI Chat

The AI chat session ended.

12
.aiServiceUnauthorizedAI Chat

AI service authentication failed.

13
.aiServiceDisconnectedAI Chat

The AI service disconnected.

14
.aiServiceNetworkErrorAI Chat

The AI service reported a network error.

15
.aiServiceStartRecordingAI Chat

The AI service started recording.

16
.aiServiceEndRecordingAI Chat

The AI service stopped recording.

17
.aiServiceRecordingErrorAI Chat

The AI service reported a recording error.

18
.aiServiceResponseErrorAI Chat

The AI service reported a response error.

19
.aiIntentReceivedAI Chat

The provider delivered a recognized AI intent.

20
.aiRespondVoicePlaybackDidStartAI Chat

Playback of the AI voice response started.

21
.aiRespondVoicePlaybackDidStopAI Chat

Playback of the AI voice response stopped.

22
.bleDisconnectedAI Chat

The device BLE connection was lost.

23
.appWillTerminateAI Chat

The host application is about to terminate.

24
Match events by enum case, never by assuming that a raw value is shared across different event enum types.