error using xcorr function to compare audio file that is recorded by device microphone
Show older comments
The code for recording voice through device -
recording = audiorecorder(fs, 16, 1);
voice = getaudiodata(recording);
voice = voice / max(abs(voice));
y1 = audioread('one.wav');
z1 = xcorr(voice, y1);
m1 = max(z1);
The error message is - [Error: Second argument must be a vector.]
How to solve this issue?
Accepted Answer
More Answers (0)
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!