Reputation: 11592
my PHP application wants to record users voice in browser and save it as a .Wav file or .mp3 file in local disk.How to do this?
Guide me to get out of this problem...
Thanks & Regards, P.SARAVANAN
Upvotes: 1
Views: 5118
Reputation: 571
Here's an open-source project for recording audio using Flash in the browser and PHP (or whatever server-side technology you prefer) on the back-end:
https://code.google.com/p/wami-recorder/
Upvotes: 2
Reputation: 410
There are two steps to doing this: 1) Record the voice on the client 2) Upload the recorded file to server
Since HTML does not allow you to use client resources like the microphone, you will have to use an embedded object which does like Flash, Silverlight, Java Applet, ActiveX etc...
Once it is recorded on the client, you can use either those embedded objects to upload it to your server or use a HTML file upload to do it.
Upvotes: 1
Reputation: 8967
Not PHP. PHP runs on the server. There is however a solution for what you want to do:
https://wiki.mozilla.org/Labs/Jetpack/JEP/18
This will only work in firefox. If you need something more universal, you will need flash.
Going the paid route, look at http://www.javasonics.com/
Upvotes: 3