Installation and configuration:
1) Download Flex SDK from http://www.adobe.com/products/flex.html (http://www.adobe.com/devnet/flex/flex-sdk-download.edu.html)
After the downloading is finished, extract it to a directory and add following two paths to either ~/.profile or ~/.bashrc file:
[Flex_sdk_path]/bin to $PATH
[Flex_sdk_path]/lib to $LD_LIBRARY_PATH
2) Check out the wami-recorder codes using: hg clone https://code.google.com/p/wami-recorder/
Then navigate to the [wami-recorder] folder, which has two subfolders: example and src. Compile the client with following command:
mxmlc -compiler.source-path=src -static-link-runtime-shared-libraries=true -output example/client/Wami.swf src/edu/mit/csail/wami/client/Wami.mxml
The command will generate a Wami.swf file under the example/client folder. Next we can start testing the wami recorder.
3) Testing
A) upload both the client and server php example to my own server, test with the basic.html both recording and playback works fine.
B) change the recording file to a file on the server instead of the default one which is on the wami group's server
C) instead of specify a absolute path for wami to save the recording to, use a php file to save the recording
D) change the hard coded file name to a variable that can be generated automatically
E) check the recording format, which is PCM, signed 16 bit integer, 22050 sample rate; only the sample rate is different from what we want, which is 16000. Currently, it can be converted using command line tool sox on the server. Have already found the interface of wami recorder to set the recording parameters, but the code does not effect currently
4) todos:
A) solve the recording parameter setup during wami recorder initialization
B) try a better UI for the recorder, which currently use the 3 basic buttons