Function: useMicrophone()
useMicrophone():
object
Defined in: packages/react-native-client/src/hooks/useMicrophone.ts:13
This hook can toggle microphone on/off and provides current microphone state.
Returns
object
isMicrophoneOn
isMicrophoneOn:
boolean
Informs if microphone is streaming audio
toggleMicrophone()
toggleMicrophone: () =>
Promise
<void
>
Function to toggle microphone on/off
Returns
Promise
<void
>