Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streamToWebAudio working with iOS 12.4 ? #98

Open
fquirin opened this issue Sep 13, 2019 · 6 comments
Open

streamToWebAudio working with iOS 12.4 ? #98

fquirin opened this issue Sep 13, 2019 · 6 comments
Labels
bug This is an identified bug that should be fixed. help wanted The great thing about open-source is that everyone can contribute!

Comments

@fquirin
Copy link

fquirin commented Sep 13, 2019

Hi,

I'm currently trying to build my app for iOS 12.4 with the latest Xcode and one of the issues is that I'm not getting any data anymore from the audioinput plugin when using streamToWebAudio: true. When used with a script-processor the 'onaudioprocess' event is triggered but the buffer values are all 0 :-(
I've also tried the included webaudio-demo but don't get any output there as well.

Can someone confirm that this is still working?

@bigxd123
Copy link

I have exactly the same issue with 12.4 everything is 0. And no Audio is being played back.

@bigxd123
Copy link

After searching around a bit, downgrading to 1.0.1 from 1.0.2 fixed the issues like mentioned in this post https://github.com/edimuj/cordova-plugin-audioinput/issues/96

@edimuj
Copy link
Owner

edimuj commented Sep 20, 2019

Thanks for letting me know. It seems to have to do with a PR that introduced at typed array in v1.0.2

@edimuj edimuj added bug This is an identified bug that should be fixed. help wanted The great thing about open-source is that everyone can contribute! labels Sep 20, 2019
@suzhengda
Copy link

image

in audioInputCapture.js
the line is wrong:
oncatenatedData.concat(audioinput._dequeueAudioData())

it cause webAudio get all zero Array.
Float32Array can't concat by concat method.

in ios. capture microphone it return 16-bit pcm.
is it really right i show the code below here in audioInputCapture.js.

var out = Float32Array.from(pcmData, function(i) {
return parseFloat(i) / audioinput._cfg.normalizationFactor;
});

webAudio need a normalization Float32Array data.
16-bit should transform 32bit data.
otherwise the sound on ios is noise.

i don't know if I was wrong.
my english is poor forgive me.

@nth-chile
Copy link

+1

@shaibrown5
Copy link

shaibrown5 commented Feb 23, 2022

+1 buffer array is al 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is an identified bug that should be fixed. help wanted The great thing about open-source is that everyone can contribute!
Projects
None yet
Development

No branches or pull requests

6 participants