How to trim audio in Matlab to get the desired audio duration?
44 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sisi Misi
il 31 Ott 2021
Commentato: Star Strider
il 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 Commenti
Risposta accettata
Star Strider
il 31 Ott 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulation, Tuning, and Visualization in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!