cordova-plugin-audioinput icon indicating copy to clipboard operation
cordova-plugin-audioinput copied to clipboard

There is a noise when playing on iOS after upgrade audioinput to 1.0.2. Works well on Android.

Open wangzhengbo opened this issue 6 years ago • 7 comments
trafficstars

There is a noise when playing on iOS after upgrade audioinput to 1.0.2. Works well on Android. Because 1.0.2 normalize to typed array.

wangzhengbo avatar Sep 16 '19 06:09 wangzhengbo

What kind of noise is that ?

I noticed that i had some crackling noise on the microphone stream when the lightning cable was plugged-in the iphone. I shot a video for you, tell me if this is a similar noise.

Youtube Link

Merwan1010 avatar Sep 19 '19 20:09 Merwan1010

Thanks for the video! Hmm, I haven't experienced that type of issue with the captured sound. Anyone else having this issue?

Ok, I was a bit to fast to accept a PR which resulted in 1.0.2 and which includes the typed array stuff. So using 1.0.1 instead should work on iOS?

edimuj avatar Sep 20 '19 14:09 edimuj

Have you seen issue https://github.com/edimuj/cordova-plugin-audioinput/issues/100 ?

edimuj avatar Sep 20 '19 14:09 edimuj

Have you seen issue #100 ?

It's fixed by remove the code added by 'Add support for typed arrays with audio data'. See https://github.com/edimuj/cordova-plugin-audioinput/commit/e7b9703c2cedb1fe6580704e29003a6105119937#diff-fb1aa34c5c08ae27df513638cb93666f

So can you add an option to toggle the feature 'Add support for typed arrays with audio data'. Default to enable it and i can upgrade to the latest version and disable this option in my project.

wangzhengbo avatar Dec 31 '19 06:12 wangzhengbo

Thanks for the video! Hmm, I haven't experienced that type of issue with the captured sound. Anyone else having this issue?

Ok, I was a bit to fast to accept a PR which resulted in 1.0.2 and which includes the typed array stuff. So using 1.0.1 instead should work on iOS?

Yes, it's work well on iOS with 1.0.1.

wangzhengbo avatar Dec 31 '19 07:12 wangzhengbo

Thanks for checking 1.0.1 on iOS @wangzhengbo !

Will try to dig into this in the coming weeks. I agree, making the typed arrays optional would take away a lot of headache.

edimuj avatar Dec 31 '19 12:12 edimuj

Just a note: I also had noise with v1.0.2 recording in iOS but it disappeared as soon as I switched channels from STEREO to MONO in recording configuration. STEREO works well on Android only, MONO works in both Android and iOS.

sertal70 avatar Aug 21 '20 13:08 sertal70