小程序录音调用getRecorderManager出错

发布于 6 年前作者 jingmo9313 次浏览最后编辑 6 年前来自 ask
var audio = wx.getRecorderManager();
     var options = {
      duration: 1000, //指定录音的时长,单位 ms
      format: 'mp3' //音频格式,有效值 aac/mp3
    }
    //开始录音
    audio.start(options);
    audio.onStart(() => {
      console.log('recorder start')
    });
    //错误回调
    audio.onError((res) => {
      console.log(res);
    })

点击录音后,会弹出上图错误,求解~

2 回复
xcai
xcai1 楼6 年前

你好,看看是否没有开发录音权限?

yangyao
yangyao2 楼4 年前

顶一下    管理员来看看啊@nickname