AudioRecorder creates an AudioRecorder object to listen for sound and record it to a file.
app.CreateAudioRecorder() -> app object - AudioRecorder
Example - Example
function OnStart()
{
rec = app.CreateAudioRecorder();
rec.SetFile( "/sdcard/test.wav" );
rec.Start();
app.ShowPopup("Please speak");
setTimeout(stopit,5000);
}
function stopit()
{
app.ShowPopup("Finished recording");
rec.Stop();
}
The following methods are avaiable on the AudioRecorder object:
GetType() ->
string - "AudioRecorder"
destroys object
returns a list with 384 items of frequency values
? PMPO - Peak music power output
? RMS - Root Mean Square
pause record
?
string - path to file or folder ( "/absolute/..." or "relative/..." )
define record file
number - 8000 or 11025 or 22050 or 44100 or 48000
SetFrequency
start recording
stop recording
object id