File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -3872,22 +3872,27 @@ Note: The BC25PA platform does not support this module function.
38723872
38733873> ** import audio**
38743874>
3875- > ** record = audio.Record()**
3875+ > ** record = audio.Record(device)**
3876+
3877+ Without parameter, the handset is used for playback by default; with parameter, the playback device is set as parameter.
3878+
3879+ Note: with parameter, the parameter should be the same as that set by audio.audio().
38763880
38773881* Parameter
38783882
3879- * None
3883+ | Parameter | Parameter Type | Description |
3884+ | -------- - | -------------- | ------------------------------------------------------------ |
3885+ | device | int | Output channel< br/ > 0 - handset< br/ > 1 - earphone< br/ > 2 - speaker |
38803886
38813887* Return Value
38823888
38833889 * 0 Successful execution
38843890 * - 1 Failed execution
3885-
38863891* Example
38873892
38883893```python
38893894import audio
3890- record_test = audio.Record()
3895+ record_test = audio.Record()# Without parameter, use the handset to play
38913896```
38923897
38933898
Original file line number Diff line number Diff line change @@ -4393,11 +4393,17 @@ dial_play_ec600u()
43934393
43944394> ** import audio**
43954395>
4396- > ** record = audio.Record()**
4396+ > ** record = audio.Record(device)**
4397+
4398+ 不带参数时,默认使用听筒播放;带参数时,设置播放的设备。
4399+
4400+ 注意:带参数时,参数应与audio.audio()设置的参数一致。
43974401
43984402* 参数
43994403
4400- 无
4404+ | 参数 | 参数类型 | 参数说明 |
4405+ | ------ | -------- | ---------------------------------------------- - |
4406+ | device | int | 输出通道< br/ > 0 - 听筒< br/ > 1 - 耳机< br/ > 2 - 喇叭 |
44014407
44024408* 返回值
44034409
@@ -4407,7 +4413,7 @@ dial_play_ec600u()
44074413
44084414```python
44094415import audio
4410- record_test = audio.Record()
4416+ record_test = audio.Record()# 不传参数,使用听筒播放
44114417```
44124418
44134419
You can’t perform that action at this time.
0 commit comments