Sourcebits-Nagendra / wami-recorder

Automatically exported from code.google.com/p/wami-recorder
0 stars 0 forks source link

Modifying the Wami.startRecording( ) and Wami.startPlaying() functiona calls #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Friends , 
Im trying to include the Wami recorder in my browser however in the basic.html 
I see the following calls 

function record() {
                status("Recording...");
                Wami.startRecording("https://wami-recorder.appspot.com/audio");
        }

        function play() {
                Wami.startPlaying("https://wami-recorder.appspot.com/audio");
        }

Please let me know if these need to be replaced with what ?
The requirement is record a voice using a microphone and playback it .
Im not sure why these above url are required in the startRecording calls

Also please let me know where to put the Wami.swf file 

Original issue reported on code.google.com by Amit.Bas...@gmail.com on 27 May 2013 at 7:44

GoogleCodeExporter commented 9 years ago
for recording:
Wami.startRecording("https://wami-recorder.appspot.com/audio");
"https://wami-recorder.appspot.com/audio" should be replaced with server-side 
url which receives recorded file from client and save to somewhere. 
for example: http://<address>/wami/test.php?filename=audio/result.wav
refer to php part of <https://code.google.com/p/wami-recorder/>

for playing:
Wami.startPlaying("https://wami-recorder.appspot.com/audio");
"https://wami-recorder.appspot.com/audio" should be replaced with saved wav 
file url for playing.

Original comment by jgp...@xinics.com on 18 Jun 2013 at 10:13

GoogleCodeExporter commented 9 years ago
When you start the python server script on your webserver with "python 
server.py" it opens a port on your server 9000. So point the:

Wami.startRecording("https://wami-recorder.appspot.com/audio");

to

Wami.startRecording("https://yourserverip:9000");

if you use the php script:

Wami.startRecording("https://yourserver/recorder.php");

the result ist a "output.wav" file in your directory where you placed your 
basic.html  or index.html file.

Original comment by sebastia...@googlemail.com on 25 Aug 2013 at 6:15