注册

wx.stopVoice()结束播放语音

2017-12-08
导读:结束播放语音。 示例代码: wx.startRecord({ success: function ( res ) { var tempFilePath = res.tempFilePath wx.playVoice({ filePath:tempFilePath }) setTimeout( function ( ) { wx.stopVoice() }, 5000 ) }})...

结束播放语音。

示例代码:

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

    setTimeout(function(){
      wx.stopVoice()
    }, 5000)
  }
})
重磅推荐:小程序开店目录

第一部分:小商店是什么

第二部分:如何开通一个小商店

第三部分:如何登录小商店

第四部分:开店任务常见问题

第五部分:小商店可以卖什么

第六部分:HiShop小程序特色功能

第七部分:小程序直播

第八部分:小程序收货/物流

第九部分:小程序怎么结算

第十部分:小程序客服

第十一部分:电商创业

第十二部分:小程序游戏开发