Voice

조회 수: 5 (최근 30일)
Farideh Jalali
Farideh Jalali 2012년 5월 6일
I wrote a program that analysis a stereo voice file when I am trying to analysis a new voice file I have found error due to Mono file.
How can I change a stereo voice file to mono ?

답변 (1개)

Wayne King
Wayne King 2012년 5월 6일
If the stereo voice file is Nx2, then just extract 1 column
X = randn(2e4,2);
Y = X(:,1);
  댓글 수: 3
Image Analyst
Image Analyst 2012년 5월 6일
Or, since he already has his stereo analysis program written and done, just use repmat() to convert the new "Mono file" into a stereo file. This would make sure it doesn't break anything in his existing program that depends on the signal being stereo.
Farideh Jalali
Farideh Jalali 2012년 5월 7일
I have to analysis different voice files with one program,can I write something in the codes that I don't want to change the codes every time?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Speech Recognition에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by