wx.stopVoice()结束播放语音

2013-12-19
0 浏览
0 评论
闻道君

结束播放语音。

示例代码:

wx.startRecord({
  success: function(res) {
    var tempFilePath = res.tempFilePath
    wx.playVoice({
      filePath:tempFilePath
    })

    setTimeout(function(){
      wx.stopVoice()
    }, 5000)
  }
})

****更多行业产品开发方案,请关注 加速度****

<以上资讯仅供参考,如需解决具体问题,建议您关注作者;如果有软件产品开发需求,可在线咨询获取产品开发方案和报价>

软件 软件开发 软件定制 软件公司
微信客服二维码

加客服微信获取更多内容