clear;clc
filename='2_5.m4a';
[speech,fs] = audioread(filename);
a=audioplayer(speech,fs);
win = hamming(0.05*fs,"periodic");
detectSpeech(speech,fs,Window=win);
s=detectSpeech(speech,fs,Window=win);
for i=size(s,1)
word{1,i}=speech(s(i,1):s(i,2));
end

1 Comment

KSSV
KSSV on 3 Jun 2022
Where is is not working? What error you are getting?

Sign in to comment.

Answers (1)

Amir Azadeh Ranjbar
Amir Azadeh Ranjbar on 3 Jun 2022

0 votes

ohhh.....i got it now
for i=1:size(s,1)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!