PROBLEM WITH welchparse>segment_info

Hello everybody, recently i m working on speech analysis. I cut many audio files into vowel segment in second. But the issue is that i cannot work properly with the segmented vowels audios such as extracted their pitch, mfcc and other features. I attached to my problem the code of extracting pitch from those segmented vowels audios. Below is the code and the error when i tried to extract pitch features from those segmented vowels audios. I need to know where the error come from and how to fix it. Thank you for your answers and help
file = dir ('E:\I\*.wav');
M= length (file)
for k = 1:36
%pitch extraction
[speech,Fs]= audioread(fullfile('E:\I\',file(k).name));
a=(speech);
ptch = pwelch(speech,Fs);
signalpitch(k,:) = ptch;
extractpitch = signalpitch (:,:);
end
Below is the error
Error using welchparse>segment_info (line 178)
The length of the segments cannot be greater than the length of the input signal.
Error in welchparse (line 32)
[L,noverlap,win] = segment_info(M,win,noverlap);
Error in welch (line 39)
[x,~,~,y,~,win,winName,winParam,noverlap,k,L,options] = ...
Error in pwelch (line 148)
[varargout{1:nargout}] = welch(x,esttype,varargin{:});

7 件のコメント

Mathieu NOE
Mathieu NOE 2020 年 10 月 12 日
hello
it sound bizarre to me that you don't assign any value for nfft, overlap for pwelch
maybe you should have a look at
Camille Dingam
Camille Dingam 2020 年 10 月 13 日
Hello, thank you for your answer and i will check the link you sent. But the same code can work properly with the entire word and it is impossible with vowels
Camille Dingam
Camille Dingam 2020 年 10 月 13 日
I just come to try and it is still showing the same error as above, thank you for more light
Mathieu NOE
Mathieu NOE 2020 年 10 月 13 日
hi
can you send me a wav file + your latest version of the code ?
all the best
Camille Dingam
Camille Dingam 2020 年 10 月 14 日
Through your email please?
Mathieu NOE
Mathieu NOE 2020 年 10 月 15 日
hello
yes , send it to : mathieu.noe@hutchinson.com
Camille Dingam
Camille Dingam 2020 年 10 月 15 日
Okay, thank you

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulation, Tuning, and Visualization についてさらに検索

質問済み:

2020 年 10 月 12 日

コメント済み:

2020 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by