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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Amir Azadeh Ranjbar
Amir Azadeh Ranjbar am 3 Jun. 2022

0 Stimmen

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

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by