how to record voice in browser and save it into .w

2019-06-04 16:54发布

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

标签: php wav
4条回答
来,给爷笑一个
2楼-- · 2019-06-04 17:25

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/

查看更多
乱世女痞
3楼-- · 2019-06-04 17:35

A simple way to record audio with flash and save it with PHP: https://github.com/clouddueling/SimpleRecorder

Record audio, post audio data to your choice of url, and save it as .wav.

Ty nettuts ;)

查看更多
神经病院院长
4楼-- · 2019-06-04 17:43

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.

查看更多
叛逆
5楼-- · 2019-06-04 17:44

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/

查看更多
登录 后发表回答