Function: useMicrophone()
useMicrophone():
object
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
>