フィルターのクリア

i want to show that the audios are not same. how will i compare both the audio?

4 ビュー (過去 30 日間)
Anna Gerald
Anna Gerald 2018 年 6 月 25 日
編集済み: Mridul G 2018 年 7 月 3 日
engine=audioread('engine.mp3')
defect=audioread('defect.mp3')

回答 (1 件)

Mridul G
Mridul G 2018 年 7 月 3 日
編集済み: Mridul G 2018 年 7 月 3 日
I think Fast Fourier Transform (FFT) can be used for comparison. FFT is an algorithm for converting a time-domain signal into a frequency-domain representation of the relative amplitude of different frequency regions in the signal.
Steps you need to follow
Step 1: Load audio files – Read in two audio files into the workspace.
Step2: Truncate both signals so that their durations are equivalent.
Step 3: Perform FFT – Compute normalized energy spectral density (ESD) from DFT's two signals
Step 4: Compute mean-square-error (MSE)
– Compute mean-square-error (MSE) between normalized ESD's of two signals
– Two perfectly identical signals will obviously have MSE of zero.

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by