edimuj / cordova-plugin-audioinput

This iOS/Android Cordova/PhoneGap plugin enables audio capture from the device microphone, by in near real-time forwarding audio to the web layer of your application. A typical usage scenario for this plugin would be to use the captured audio as source for a web audio node chain, where it then can be analyzed, manipulated and/or played.

Home Page:https://github.com/edimuj/app-audioinput-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property '0' of undefined when encoding

floydus opened this issue · comments

I get this error, and seriously not getting why, seams the encoder fails to encode.
It fails calling the encode method, I'm using the same parameters as the config, which is CD_AUDIO_44100Hz and STEREO, the array as some data in it (not zero length)
Any clues anyone ? Thanks.
Here is a screenshot of the failing portion of code.
screen shot 2018-02-07 at 2 41 18 pm

commented

Do you get any details about how the encode execution fails?

On which type of device and OS does the error occur? Not all systems support all given parameters, have you tried differnt settings for mono/stereo and sample rate in the wavencoder?

commented

Since there haven't been any activity on this issue for a while now, I'm closing it, but feel free to open it again if you feel the need.

Thanks for coming back on this, I actually decided to look at other options, also, it's been too far behind and I just can't remember my issue at the time. That is why I did not reply quickly. Thanks again Ed.

commented

No problems @floydus , thanks for the response.