Home > @twilio/voice-react-native-sdk > AudioDevice
Describes audio devices as reported by the native layer and allows the native selection of the described audio device.
Signature:
export declare class AudioDevice
To fetch a list of available audio devices and the currently selected audio device, see Voice.getAudioDevices().
- See also the AudioDevice namespace for types used by this class.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the AudioDevice
class.
Property | Modifiers | Type | Description |
---|---|---|---|
name | string | The name of the audio device. | |
type | AudioDevice.Type | The type of the audio device. |
Method | Modifiers | Description |
---|---|---|
select() | Calling this method will select this audio device as the active audio device. |