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

Add functionality for saving the audio input to files #27

Open
edimuj opened this issue Sep 16, 2016 · 4 comments
Open

Add functionality for saving the audio input to files #27

edimuj opened this issue Sep 16, 2016 · 4 comments
Labels
enhancement This is a feature that should be implemented. help wanted The great thing about open-source is that everyone can contribute! partly fixed This issue has partly been resolved or can be avoided using a workaround.

Comments

@edimuj
Copy link
Owner

edimuj commented Sep 16, 2016

Being able to specify that the audio input from the microphone simultaneously is saved to file, would be a really nice feature. This should be optional though.

Target format should probably be M4A since it is compressed and supported by both Android and iOS.

If anybody out there has the knowledge and time to do this, it would be highly appreciated.

@edimuj edimuj added enhancement This is a feature that should be implemented. help wanted The great thing about open-source is that everyone can contribute! labels Sep 16, 2016
@edimuj
Copy link
Owner Author

edimuj commented Mar 29, 2018

Partly solved by PR #52

@edimuj edimuj added the partly fixed This issue has partly been resolved or can be avoided using a workaround. label May 4, 2018
@engr-Eghbali
Copy link

engr-Eghbali commented Aug 23, 2018

Hi @edimuj .
I have a strange problem with your "advanced example".
Got file system: temporary,
Already have permission to record,
BUT:
"Could not resolveLocalFileSystemURL : undefined" and when I print 'url' in audioinput.stop , it is just "OK" !
how could the url be just "OK" ?!

document.getElementById("record").addEventListener('touchend',function(event){ audioinput.stop(function(url) { console.log("url:"+url); // Now you have the URL (which might be different to the one passed in to audioinput.start()) // You might, for example, read the data into a blob. window.resolveLocalFileSystemURL(url, function (tempFile) { tempFile.file(function (tempWav) { var reader = new FileReader(); reader.onloadend = function(e) { . . .

@giorgiobeggiora
Copy link

@engr-Eghbali same issue, did you solve?

@engr-Eghbali
Copy link

@giorgiobeggiora No. maybe "cordova-plugin-media-capture" working good for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is a feature that should be implemented. help wanted The great thing about open-source is that everyone can contribute! partly fixed This issue has partly been resolved or can be avoided using a workaround.
Projects
None yet
Development

No branches or pull requests

3 participants