iphone使用airpod时调用任意录音接口会十分卡顿

发布于 7 年前作者 yan4110465 次浏览最后编辑 7 年前来自 ask

微信小程序在ios下使用airpod无线耳机时,调用任意的录音接口都会十分的卡顿,虽然录制过程没有报错,但是卡顿的过程久,十分影响业务流程

2 回复
yongdeng
yongdeng1 楼6 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

mhan
mhan2 楼5 年前
this.recorder = wx.getRecorderManager()
// 这里参数自定义
let options = {
                sampleRate: config.sampleRate,
                numberOfChannels: 1,
                encodeBitRate: config.encodeBitRate,
                format: 'mp3',
                audioSource: audioSource
            }
this.recorder.start(options)

这里提供下代码片段