tylerdavis / wami-recorder

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

Unable to set sampleRate or startListening #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

----

Running:

Wami.setup("wami");
Wami.setSettings({"sampleRate":44000});

or

Wami.setup("wami");
Wami.startListening();

Will fail (tried variations of hz).  I can record successfully without trying 
to set settings, but if I try setSettings or startListening, things fail.

What is the expected output? What do you see instead?

----

Expected to be able to set the Sample rate at least to something higher or 
different than 22000.

What version of the WAMI recorder are you using? What version of Flash are
you using?  In what browser?  On what operating system?

----

Latest Wami.swf, recorder.js,gui.js and swfobject.js as of today.
Google Chrome (21.0.1180.89 m)
on Windows 7.
Flash version (11,3,31,232)

Describe your server-side set-up if it is relevant to this issue.  What
type of web server are you using?  Where is your Wami.swf hosted?  What URL
do you put in startRecording?  What URL do you put in startPlaying?

----

Everything is hosted on my LAMP server, no external URLs.

Please provide any additional information below.

Original issue reported on code.google.com by rdgeh...@gmail.com on 23 Sep 2012 at 2:46

GoogleCodeExporter commented 8 years ago
Flash output (notice there is no callback for setSettings:

FLASH: External.addCallback: startListening
FLASH: External.addCallback: stopListening
FLASH: External.addCallback: startRecording
FLASH: External.addCallback: stopRecording
FLASH: External.addCallback: getRecordingLevel
FLASH: External.addCallback: startPlaying
FLASH: External.addCallback: stopPlaying
FLASH: External.addCallback: getPlayingLevel
FLASH: External.addCallback: showSecurity
FLASH: Listening...
FLASH: Recording at rate: 22050
FLASH: POST 63532 bytes of type audio/x-wav
FLASH: Expected Samples: 34464 Actual Samples: 31744
FLASH: Unlistening.
FLASH: POST openHandler: [Event type="open" bubbles=false cancelable=false 
eventPhase=2]
FLASH: POST progressHandler loaded:59 total: 59
FLASH: POST: completeHandler

Original comment by rdgeh...@gmail.com on 23 Sep 2012 at 3:23

GoogleCodeExporter commented 8 years ago
Additionally, in 
http://code.google.com/p/wami-recorder/source/browse/src/edu/mit/csail/wami/clie
nt/WamiAudio.as

The following callbacks are available, notice nothing again for setSettings:

 function WamiAudio(params:WamiParams)
                {
                        recorder = new WamiRecorder(params.getMicrophone(), params);
                        player = new WamiPlayer();

                        External.addCallback("startListening", startListening);
                        External.addCallback("stopListening", stopListening);
                        External.addCallback("startRecording", startRecording);
                        External.addCallback("stopRecording",stopRecording);
                        External.addCallback("getRecordingLevel", getRecordingLevel);

                        External.addCallback("startPlaying",startPlaying);
                        External.addCallback("stopPlaying",stopPlaying);
                        External.addCallback("getPlayingLevel", getPlayingLevel);
                }

Original comment by rdgeh...@gmail.com on 23 Sep 2012 at 3:29

GoogleCodeExporter commented 8 years ago
See: https://code.google.com/p/wami-recorder/issues/detail?id=11#c5

Original comment by vbgu...@gmail.com on 7 Mar 2013 at 3:28