microphone module
APIs for microphones.
Type Aliases
| ChangeType |
|
| Microphone |
Info on an available microphone. |
| MicrophoneEvents |
Microphone events. |
| MicrophoneListChangedDetail |
Info on microphones that are currently connected. |
| PreferredMicrophone |
Info about the user's preferred microphone. |
Functions
| set |
Sets the preferred microphone for recording. If the preferred microphone isn't available, or the current mic becomes unavailable, the SDK will automatically switch based on the following priority: Preferred microphone > system default microphone > first available microphone. |
Variables
| events | The listener only EventTarget for microphone events. |
Function Details
setPreferredMicrophone(null | PreferredMicrophone)
Sets the preferred microphone for recording. If the preferred microphone isn't available, or the current mic becomes unavailable, the SDK will automatically switch based on the following priority: Preferred microphone > system default microphone > first available microphone.
function setPreferredMicrophone(preferredMicrophone: null | PreferredMicrophone): Promise<void>
Parameters
- preferredMicrophone
-
null | PreferredMicrophone
The preferred microphone to set.
Returns
Promise<void>
Variable Details
events
The listener only EventTarget for microphone events.
events: DragonEventTarget<MicrophoneEvents>