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.
https://github.com/edimuj/app-audioinput-demo
MIT License
161 stars 88 forks source link

window.audioinput is undefined #62

Closed pagrawl3 closed 6 years ago

pagrawl3 commented 6 years ago

Hi

I tried adding this plugin but none of the methods seem to be defined.

I'm trying to initialise after the deviceready event (all the other plugins work)

Cordova version: 8 Plugin version: 1.0.0

Am I missing something ?

edimuj commented 6 years ago

Hi @pagrawl3 I've been working with the plugin in an app today when solving #60 and I didn't encounter the issue you describe. My project use Cordova 8.0.0 and the following platform versions:

edimuj commented 6 years ago

I just published an example cordova app which can be helpful for debugging the issue: https://github.com/edimuj/app-audioinput-demo

edimuj commented 6 years ago

Closing this issue due to lack of activity, feel free to open it again if needed.

marcushat commented 6 years ago

Having the same issue. The audioinput event never fires

edimuj commented 6 years ago

@marcushat Do you have any other helpful information to share with the community? Like for example Source code, cordova and platform versions and on which device models you tested the plugin on? If you do, please create a new issue instead of commenting on a closed one.

marcushat commented 6 years ago

I figured it out. It doesn't fire on the browser, only devices. Should add this to readme

edimuj commented 6 years ago

Ok, thanks for letting us know. Will update the readme.

marsiliflavio commented 5 years ago

Hi, have have the same problem. In my develop repository i have paste the code from the demo example, the plugin is correctly install and present in package.json and config.xml. But, when start my app mobile at deviceready obtain audioinput undefined

edimuj commented 5 years ago

@marsiliflavio This issue has been solved and doesn't seem to correlate to your specific error (running on mobile device). Please open a new issue instead.