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

Trying to play a sound to signal audio recording has started IOS #31

Closed anthonyvespoli closed 7 years ago

anthonyvespoli commented 7 years ago

I'm using the cordova Media plugin to play a simple beep sound to signal the start and end of the audio input. If I play the beep before I call audioinput.start(), it is very quiet which is not what I need. I need it to be full volume. If I call the beep after I call audioinput.start() it immediately ends the recording, which is also what I don't want. I've tried using a few different plugins to play the sound and this seems to be the case for all of them. It works fine on Android.

Anyone know what I'm doing wrong? I'm assuming there is something in the audioinput code that is doing this intentionally.