Hello,i am a student of electronic professional. I want to develop a pronunciation teaching system and there is a problem I don not know. That is whether the web sever php code could call the recoding program of the web client? Then, recording an wav file ,saving it and sending it back the web sever. I’m not sure whether the process of calling web client’s recording program could achieve. If any of you can help me out with this it would be great. I’m new to php so any help is appreciated. Looking forward to your reply,thanks so much.
PHP can access external programs with shell_exec - you can also take a look over [URL=“http://php.net/system”]system, [URL=“http://php.net/passthru”]passthru and [URL=“http://php.net/manual/en/language.operators.execution.php”]Execution Operators
Now, your program needs to accept parameters to make what you require.
No PHP can’t “call” recording software on the client machine like you call a function. You’ll need to create/find something that runs on the client able to record sound and send it back to the server.
Oh, I misread the question. Sorry!
It is true what @parallelist said.
I was talking about the server side, where PHP can communicate with another program that is on the server.
Oh,thanks so much for your reply. Now, I could sure there is a method to realize the recording function. And please forgive me for reckless. I have two ideas for achieving this function. I’m sorry to trouble you to guide me. One,I want to kown whether there is a ready function for calling the ready recording software on the client machine. So, I can call the record software on the client machine directlly by PHP on the server machine. The other, I want to load Cool Edit Pro 2.1 to be the recording software on the client machine automatically ,when learners use the recording function for the first time. And, what method could I use to realize it? At last, learners can record sound and send it back to the server. Thanks very much for your kind heartness on taking time answering my mind of doubt from your busy shedule.I really appreciate it and please allow me to offer you my thankfulness most sincerely.
Oh,thanks so much for your reply. Now, I could sure there is a method to realize the recording function. And please forgive me for reckless. I want to know what program could I use on the server machine to call the recording software on the client machine.Thanks very much for your kind heartness on taking time answering my mind of doubt from your busy shedule.And please allow me to offer you my thankfulness most sincerely. Thanks ^.^
I did a mistake. Read the entire thread please.
You cannot force the client to use some software and also, you cannot make the software communicate with the website unless it was created especially for your website. You only have control over the server, not over the client (browser). However, there are some possibilities to record sound from the client, with Java and Flash.
As already stated you can not commandeer a visitor’s computer. What you can do is provide an upload of the file and suggest an app that will create the file if they don’t aready have one.
IMHO you would be best to develop a program that uses Java app that gives you the ability to access such things as the microphone to record the speech and send it to the server.
If you have an android mobile, the speech search utilities an app that records voice that is sent to googles servers for turning in to text and then your search.
So it might be a better way to go, use a Java App for a PC and interact with the server and the clients web browser.