File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,20 @@ export function useVoiceAssistant(): VoiceAssistant {
51
51
( p ) =>
52
52
p . kind === ParticipantKind . AGENT && p . attributes [ 'lk.publish_on_behalf' ] === agent ?. identity ,
53
53
) ;
54
- const agentTracks = useParticipantTracks ( [ Track . Source . Microphone , Track . Source . Camera ] , agent ?. identity ) ;
55
- const workerTracks = useParticipantTracks ( [ Track . Source . Microphone , Track . Source . Camera ] , worker ?. identity ) ;
56
- const audioTrack = agentTracks . find ( ( t ) => t . source === Track . Source . Microphone ) ?? workerTracks . find ( ( t ) => t . source === Track . Source . Microphone ) ;
57
- const videoTrack = agentTracks . find ( ( t ) => t . source === Track . Source . Camera ) ?? workerTracks . find ( ( t ) => t . source === Track . Source . Camera ) ;
54
+ const agentTracks = useParticipantTracks (
55
+ [ Track . Source . Microphone , Track . Source . Camera ] ,
56
+ agent ?. identity ,
57
+ ) ;
58
+ const workerTracks = useParticipantTracks (
59
+ [ Track . Source . Microphone , Track . Source . Camera ] ,
60
+ worker ?. identity ,
61
+ ) ;
62
+ const audioTrack =
63
+ agentTracks . find ( ( t ) => t . source === Track . Source . Microphone ) ??
64
+ workerTracks . find ( ( t ) => t . source === Track . Source . Microphone ) ;
65
+ const videoTrack =
66
+ agentTracks . find ( ( t ) => t . source === Track . Source . Camera ) ??
67
+ workerTracks . find ( ( t ) => t . source === Track . Source . Camera ) ;
58
68
const { segments : agentTranscriptions } = useTrackTranscription ( audioTrack ) ;
59
69
const connectionState = useConnectionState ( ) ;
60
70
const { attributes } = useParticipantAttributes ( { participant : agent } ) ;
You can’t perform that action at this time.
0 commit comments