wx.stopVoice-结束播放语音

结束播放语音。

示例代码:

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