Skip to main content

Function: useVAD()

useVAD(peerIds): Record<string, boolean>

Parameters

ParameterTypeDescription
peerIdsstring[]List of ids of peers to subscribe to for voice activity detection notifications.

Returns

Record<string, boolean>

Each key is a peerId and the boolean value indicates if voice activity is currently detected for that peer.

Defined in

packages/react-client/src/hooks/useVAD.ts:15