Skip to content

Commit 49272de

Browse files
Jayceon Fu(付俊臣)Jayceon Fu(付俊臣)
authored andcommitted
纠正英文版Wiki中audio部分错误描述及格式问题
1 parent 64c8b68 commit 49272de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

en-us/api/QuecPythonClasslib.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@ Stop playing the audio file.
34603460

34613461
###### stop queue playback
34623462

3463-
> **aud.stop()**
3463+
> **aud.stopAll()**
34643464

34653465
Stop the playback of the entire queue, that is, if TTS or audio is currently being played, and there are other content to be played in the queue, after calling this interface, it will not only stop the currently playing content, but also clear the content of the queue, and no longer play any more. content. If it is currently playing and the playback queue is empty, calling this interface has the same effect as the stop() interface.
34663466

@@ -3582,13 +3582,13 @@ Set audio volume.
35823582

35833583
> aud.playStream(format, buf)
35843584

3585-
Audio stream playback, supporting MP3, AMR and wav format audio stream playback.
3585+
Audio stream playback, supporting MP3, AMR and WAV format audio stream playback.
35863586

35873587
* Parameter
35883588

35893589
|Parameter | parameter type | parameter description|
35903590
| ------ | -------- | ------------------------------------------------------------ |
3591-
|Format | int | audio stream format <br/> 1 - PCM (not supported temporarily) <br/> 2 - wavpcm <br/> 3 - MP3 <br/> 4 - amrnb|
3591+
|Format | int | audio stream format <br/> 1 - PCM (not supported temporarily) <br/> 2 - WAVPCM <br/> 3 - MP3 <br/> 4 - ARMNB |
35923592
|Buf | buf | audio stream content|
35933593

35943594
* Return Value
@@ -3639,8 +3639,8 @@ Stop audio streaming
36393639

36403640

36413641
play_from_fs()
3642-
utime. sleep_ MS (5000) # wait for playback to complete
3643-
audio_ test. Stopplaystream() # stops this playback so as not to affect the next playback
3642+
utime.sleep_ms(5000) # wait for playback to complete
3643+
audio_test.stopPlayStream() # stops this playback so as not to affect the next playback
36443644
```
36453645

36463646

0 commit comments

Comments
 (0)