# Audio

#### new Audio(id, name)

Description:
  - 音频Audio构造函数。
Source:
  - stream/audio.js, line 10

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` | String | 设备Id
`name` | String | 设备名称

### Members

#### (async) closeMicrophone

Description:
  - 关闭音频,同时进行unpublish操作。
Source:
  - stream/audio.js, line 207

关闭音频,同时进行unpublish操作。

#### (async) closeMicrophone

Description:
  - 关闭音频,同时进行unpublish操作。
Source:
  - stream/audio.js, line 207

关闭音频,同时进行unpublish操作。

#### getAudioLevel

Description:
  - 获取语音激励级别
Source:
  - stream/audio.js, line 511

获取语音激励级别

#### getAudioLevel

Description:
  - 获取语音激励级别
Source:
  - stream/audio.js, line 511

获取语音激励级别

#### ismuteMicrophone

Description:
  - 获取禁音状态
Source:
  - stream/audio.js, line 488

获取禁音状态

#### ismuteMicrophone

Description:
  - 获取禁音状态
Source:
  - stream/audio.js, line 488

获取禁音状态

#### muteMicrophone

Description:
  - 禁音
Source:
  - stream/audio.js, line 384

禁音

#### muteMicrophone

Description:
  - 禁音
Source:
  - stream/audio.js, line 384

禁音

#### (async) openMicrophone

Description:
  - 打开音频及把流渲染进视频控件,同时进行publish操作。
Source:
  - stream/audio.js, line 40

打开音频及把流渲染进视频控件,同时进行publish操作。

#### (async) openMicrophone

Description:
  - 打开音频及把流渲染进视频控件,同时进行publish操作。
Source:
  - stream/audio.js, line 40

打开音频及把流渲染进视频控件,同时进行publish操作。

#### setAudioLevel

Description:
  - 设置语音激励级别
Source:
  - stream/audio.js, line 503

设置语音激励级别

#### setAudioLevel

Description:
  - 设置语音激励级别
Source:
  - stream/audio.js, line 503

设置语音激励级别

#### (async) subscrible

Description:
  - 订阅音频流
Source:
  - stream/audio.js, line 296

订阅音频流

#### (async) subscrible

Description:
  - 订阅音频流
Source:
  - stream/audio.js, line 296

订阅音频流

#### unmuteMicrophone

Description:
  - 取消禁音
Source:
  - stream/audio.js, line 438

取消禁音

#### unmuteMicrophone

Description:
  - 取消禁音
Source:
  - stream/audio.js, line 438

取消禁音

#### (async) unsubscrible

Description:
  - 取消订阅音频流
Source:
  - stream/audio.js, line 340

取消订阅音频流

#### (async) unsubscrible

Description:
  - 取消订阅音频流
Source:
  - stream/audio.js, line 340

取消订阅音频流

## Audio

#### new Audio(id, name)

Description:
  - 音频Audio构造函数。
Source:
  - stream/audio.js, line 10

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` | String | 设备Id
`name` | String | 设备名称

### Members

#### (async) closeMicrophone

Description:
  - 关闭音频,同时进行unpublish操作。
Source:
  - stream/audio.js, line 207

关闭音频,同时进行unpublish操作。

#### (async) closeMicrophone

Description:
  - 关闭音频,同时进行unpublish操作。
Source:
  - stream/audio.js, line 207

关闭音频,同时进行unpublish操作。

#### getAudioLevel

Description:
  - 获取语音激励级别
Source:
  - stream/audio.js, line 511

获取语音激励级别

#### getAudioLevel

Description:
  - 获取语音激励级别
Source:
  - stream/audio.js, line 511

获取语音激励级别

#### ismuteMicrophone

Description:
  - 获取禁音状态
Source:
  - stream/audio.js, line 488

获取禁音状态

#### ismuteMicrophone

Description:
  - 获取禁音状态
Source:
  - stream/audio.js, line 488

获取禁音状态

#### muteMicrophone

Description:
  - 禁音
Source:
  - stream/audio.js, line 384

禁音

#### muteMicrophone

Description:
  - 禁音
Source:
  - stream/audio.js, line 384

禁音

#### (async) openMicrophone

Description:
  - 打开音频及把流渲染进视频控件,同时进行publish操作。
Source:
  - stream/audio.js, line 40

打开音频及把流渲染进视频控件,同时进行publish操作。

#### (async) openMicrophone

Description:
  - 打开音频及把流渲染进视频控件,同时进行publish操作。
Source:
  - stream/audio.js, line 40

打开音频及把流渲染进视频控件,同时进行publish操作。

#### setAudioLevel

Description:
  - 设置语音激励级别
Source:
  - stream/audio.js, line 503

设置语音激励级别

#### setAudioLevel

Description:
  - 设置语音激励级别
Source:
  - stream/audio.js, line 503

设置语音激励级别

#### (async) subscrible

Description:
  - 订阅音频流
Source:
  - stream/audio.js, line 296

订阅音频流

#### (async) subscrible

Description:
  - 订阅音频流
Source:
  - stream/audio.js, line 296

订阅音频流

#### unmuteMicrophone

Description:
  - 取消禁音
Source:
  - stream/audio.js, line 438

取消禁音

#### unmuteMicrophone

Description:
  - 取消禁音
Source:
  - stream/audio.js, line 438

取消禁音

#### (async) unsubscrible

Description:
  - 取消订阅音频流
Source:
  - stream/audio.js, line 340

取消订阅音频流

#### (async) unsubscrible

Description:
  - 取消订阅音频流
Source:
  - stream/audio.js, line 340

取消订阅音频流