how to record voice in browser and save it into .wav file using php?

混江龙づ霸主 提交于 2019-12-23 03:44:10

问题


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


回答1:


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/




回答2:


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:


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.




回答4:


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 ;)



来源:https://stackoverflow.com/questions/5684428/how-to-record-voice-in-browser-and-save-it-into-wav-file-using-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!