Convert the stereo sound to the mono sound by loading only one channel data into the result vector
145 次查看(过去 30 天)
显示 更早的评论
Hi, I am having trouble with this code. I want to do what the title says, but I don't know how to load only a single channel into my vector. Can someone help me, please?
the code:
% clear all the previous contents in workspace.
clc;
clear all;
% Read the audio file
[y, Fs] = audioread(‘Jolly Laugh.wav’ ; % read audio file to array
% Convert the stereo sound to the mono sound by loading only one channel
% data into the result vector
y = y(__________);
% play the audio
sound(y,Fs);
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!