提供的M文件有:
Provided M-files:
- realTimeMic.m This is the main m-file. It reads blocks (of fixed length) of audio information and it captures one image (from an attached camera) per block.
- zcr.m This function computes the Zero Crossing Rate of an audio signal in a short-term basis (i.e. one value of the ZCR function is calculated per frame).
In order to execute the demo, simply call the realTimeMic function with the following arguments:
- duration: (in seconds) the duration of each audio segment (and the time interval between two succcesive images taken from cam).
- nBlocks: number of blocks to be recorded
useVideo: 1 for recording video and 0 otherwise
For example write:
realTimeMic(1.0,100,1);