How to trim audio in Matlab to get the desired audio duration?
47 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sisi Misi
am 31 Okt. 2021
Kommentiert: Star Strider
am 1 Nov. 2021
Hii everyone
i wanna ask you
How to trim audio in Matlab to get the desired audio duration?
for example, the original audio duration is 17.9984 seconds and we want to cut it to 17.5500 seconds
thank you
0 Kommentare
Akzeptierte Antwort
Star Strider
am 31 Okt. 2021
Express the desired length in thems of samples (here ‘Fs’ is the smapling frequency in Hz) —
desiredLength = 17.5500; % Seconds
L = Fs * desiredLength; % Samples/sec * sec = Samples
trimmedAudioMatrix = OriginalAutoioMatrix(1:L,:)
.
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!