Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions en-us/api/QuecPythonClasslib.md
Original file line number Diff line number Diff line change
Expand Up @@ -3872,22 +3872,27 @@ Note: The BC25PA platform does not support this module function.

> **import audio**
>
> **record = audio.Record()**
> **record = audio.Record(device)**

Without parameter, the handset is used for playback by default; with parameter, the playback device is set as parameter.

Note: with parameter, the parameter should be the same as that set by audio.audio().

* Parameter

* None
| Parameter | Parameter Type | Description |
| --------- | -------------- | ------------------------------------------------------------ |
| device | int | Output channel<br/>0 - handset<br/>1 - earphone<br/>2 - speaker |

* Return Value

* 0 Successful execution
* -1 Failed execution

* Example

```python
import audio
record_test = audio.Record()
record_test = audio.Record()#Without parameter, use the handset to play
```


Expand Down
12 changes: 9 additions & 3 deletions zh-cn/api/QuecPythonClasslib.md
Original file line number Diff line number Diff line change
Expand Up @@ -4393,11 +4393,17 @@ dial_play_ec600u()

> **import audio**
>
> **record = audio.Record()**
> **record = audio.Record(device)**

不带参数时,默认使用听筒播放;带参数时,设置播放的设备。

注意:带参数时,参数应与audio.audio()设置的参数一致。

* 参数

| 参数 | 参数类型 | 参数说明 |
| ------ | -------- | ----------------------------------------------- |
| device | int | 输出通道<br/>0 - 听筒<br/>1 - 耳机<br/>2 - 喇叭 |

* 返回值

Expand All @@ -4407,7 +4413,7 @@ dial_play_ec600u()

```python
import audio
record_test = audio.Record()
record_test = audio.Record()#不传参数,使用听筒播放
```


Expand Down