Mono and stereo sound systems
Show older comments
Hi, Is there a MATLAB code that differentiate between mono and stereo sound channels? I mean, for example, in a GSM call conversation between two speakers can we detect when the left channel (speaker 1) is running and when the right channel (speaker 2) is running? thanks in advance.
1 Comment
Shadi Ayyad
on 14 Jul 2015
Edited: Shadi Ayyad
on 14 Jul 2015
Answers (1)
Walter Roberson
on 15 Jul 2015
Why not just take a sampling of the channels and compare? Or compare with tolerance?
N = 512; %for example
d = Samples(1:N,1) - Samples(1:N,2);
if ~any(d)
%data is completely identical, bit-for-bit
end
if all(abs(d) < 1/10000)
%data is nearly identical, a bit of noise maybe
end
Trickier would be if one channel is a delayed version of the other. But at that point do you care? More important would be to determine the extent to which sounds are echoing for echo cancellation purposes; there is demo code for that.
4 Comments
Shadi Ayyad
on 15 Jul 2015
Walter Roberson
on 17 Jul 2015
What would be the difference compared to splitting the stereo file up into two mono files and running the code on each of those two files?
Shadi Ayyad
on 22 Jul 2015
Shadi Ayyad
on 28 Jul 2015
Categories
Find more on Speech Recognition 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!