chris-rudmin / opus-recorder

A library for encoding and decoding web audio as OggOpus.
Other
961 stars 172 forks source link

Robotic, torn audio on IOS 15.1 #253

Open vsokolovskiy opened 2 years ago

vsokolovskiy commented 2 years ago

When I record audio from the IPad running IOS 15.1 I am getting robotic, laggy audio, that is impossible to use. I am using the wav worker. Tried increasing bufferLength, did not help. Sometimes, the audio works fine, but other times we get the lag.

Here is the Recorder config I am using:

recorder = new Recorder({ encoderPath, numberOfChannels: 1, wavBitDepth: 16, recordingGain: 1, monitorGain: 0, bufferLength: 12288, }); The video showing the lag is attached below.

https://user-images.githubusercontent.com/77726355/142915929-78079386-7494-45c0-b64d-4a9cab4b63a2.MP4

chris-rudmin commented 2 years ago

Thanks for the report. I have encountered this issue, but I will not have time to debug and make a fix anytime in the near future. If you have some patience, I will look into it when I can.

vsokolovskiy commented 2 years ago

Thanks for the report. I have encountered this issue, but I will not have time to debug and make a fix anytime in the near future. If you have some patience, I will look into it when I can.

Sorry, I need to deploy this feature ASAP. Do you think shuffling around settings might help, ot should I move over to another library? Thank you.

chris-rudmin commented 2 years ago

I suspect it is due to some changes Apple made for iOS 15 or iOS 15.1 so I don't think changing any settings will fix it.