フィルターのクリア

How to trim audio in Matlab to get the desired audio duration?

42 ビュー (過去 30 日間)
Sisi Misi
Sisi Misi 2021 年 10 月 31 日
コメント済み: Star Strider 2021 年 11 月 1 日
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

採用された回答

Star Strider
Star Strider 2021 年 10 月 31 日
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 件のコメント
Sisi Misi
Sisi Misi 2021 年 11 月 1 日
okay guys, it works
thank you so much for helping me
Star Strider
Star Strider 2021 年 11 月 1 日
Our (collective) pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulation, Tuning, and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by