chentailin
  button:function(e){

    wx.startRecord({
      success: function (res) {
        voice = res.tempFilePath
       
      },
      fail: function (res) {
        //录音失败
      }
    })
  },
  stop:function(e){
   // setTimeout(function () {
      //结束录音  
      wx.stopRecord()
  //  }, 10000)
  },
  bofang:function(e){
    console.log(voice)
    wx.playVoice({
      filePath: voice
    })

  }

 

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2022-01-08
  • 2021-10-19
  • 2021-11-16
  • 2021-05-26
猜你喜欢
  • 2021-12-20
  • 2021-12-20
  • 2021-04-09
  • 2021-09-12
  • 2019-08-29
  • 2021-04-22
  • 2021-12-10
相关资源
相似解决方案