Real Time Microphone and Camera data acquisition and audio-video processing

This Matlab-code is a demo for real-time audio and image processing.
28.0K 次下载
更新时间 2014/3/18

查看许可证

The current Matlab-code can be used for real-time audio and image processing. Fixed-length segments of audio data are recorded from soundcard's input and an image is also captured in each block. In particular, the provided code does the following:
- Repetively records audio segments of fixed length.
- Plots the (applitude) values of the current audio segment.
- Plots the spectogram of the current audio segment.
- Calculates the mean and std values of the Zero Crossing Rate for each segment, and plots those statistics for the last five segments.
- Calculates and plots the average spectral distance between the current and the previous audio segment. This is actually a simple measure of change detection in the audio information.
- Captures and plots an image for each block (frame).
- Plots an estimation of the motion between the current and the previous frames.
- Plots the average absolute difference between two successive frames.
- Calculates and displays the ratio of the processing time (for the feature calculation and the plotting processes) by the real signal data.
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);

in the Matlab workspace. This will run the demo for 100 segments of 1.0 second each, and it will use the camera (it has to be attached) for capturing images.

Similar Material:
http://www.di.uoa.gr/~tyiannak

* * * * * * * * * * * * * * * * * * * *
IMPORTANT UPDATE:
More advanced audio analysis methods can be found in the MATLAB AUDIO ANALYSIS LIBRARY (http://www.mathworks.com/matlabcentral/fileexchange/45831-matlab-audio-analysis-library) which is part of the book INTRODUCTION TO AUDIO ANALYSIS: A MATLAB APPROACH (http://www.amazon.com/Introduction-Audio-Analysis-MATLAB%C2%AE-Approach/dp/0080993885)
* * * * * * * * * * * * * * * * * * * *

引用格式

Theodoros Giannakopoulos (2024). Real Time Microphone and Camera data acquisition and audio-video processing (https://www.mathworks.com/matlabcentral/fileexchange/18596-real-time-microphone-and-camera-data-acquisition-and-audio-video-processing), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: Realtime audio input

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.3.0.0

Minor changes in description

1.2.0.0

Minor changs in description

1.1.0.0

Minor changes in descripton

1.0.0.0

Summary Changed