# Class: AudioDevice

## Constructor

#### new AudioDevice(deviceId, groupId, label, mediaType)

  AudioDevice class contains the information on the available audio input and output devices.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `deviceId` | string |
  `groupId` | string |
  `label` | string |
  `mediaType` | AvayaClientServices.Base.MediaTypes |

## Methods

#### getDeviceId() → {string}

  Returns the ID of the the audio device that is used by the user.
  That is persisted across sessions. It is reset when the user clears cookies.

  ##### Returns:

  { string }

#### getGroupId() → {string}

  Returns the ID of the group.
  Two devices have the same group identifier if they belong to the same
  physical device; for example a monitor with both a built-in camera and microphone.

  ##### Returns:

  { string }

#### getLabel() → {string}

  Returns the label (name) of the audio device that is used by the user.

  ##### Returns:

  { string }

#### toString() → {string}

  Returns formatted object string

  ##### Returns:

  { string }