Skip to content

Commit

Permalink
fix(weapp): 小程序音频播放缺少倍速功能 (#10446)
Browse files Browse the repository at this point in the history
Co-authored-by: tangjiao11 <[email protected]>
  • Loading branch information
jiaozitang and tangjiao11 authored Oct 18, 2021
1 parent 2eae6e5 commit 6032d0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/taro/types/api/media/audio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare namespace Taro {
* success: function (res) {
* const filePath = res.tempFilePath
* Taro.playVoice({ filePath })
*
*
* setTimeout(Taro.stopVoice, 5000)
* }
* })
Expand All @@ -28,7 +28,7 @@ declare namespace Taro {
* Taro.startRecord(params).then(res => {
* const filePath = res.tempFilePath
* Taro.playVoice({ filePath })
*
*
* setTimeout(Taro.stopVoice, 5000)
* })
* ```
Expand Down Expand Up @@ -299,6 +299,10 @@ declare namespace Taro {
* @default 1
*/
volume: number
/** 播放速度。范围 0.5-2.0。
* @default 1
*/
playbackRate: number
/** 播放 */
play(): void
/** 暂停 */
Expand Down

0 comments on commit 6032d0b

Please sign in to comment.