Time shift a signal and save the new signal

2 Ansichten (letzte 30 Tage)
fadams18
fadams18 am 21 Okt. 2022
Kommentiert: Mathieu NOE am 21 Okt. 2022
I have two signals. one is a clean speech signal and the other is an egg signal.
The speech signal is a bit late. So I want to shift the speech signal to start at the same time as the egg and save this new signal. is that possible?
Ive attached the two signals here. Any insights, and ideas will be appreciated.
  1 Kommentar
Mathieu NOE
Mathieu NOE am 21 Okt. 2022
hello
I am intrigued that you want to shift one and not both signals or maybe (and this is what I would assume) you simply want to remove the same amount of initial samples on both signals
once you have loaded th wav files (with audioread) , you can simply remove the required amount of signals by doing (on both data sets) :
data(1:samples) = []; % samples = Fs*start_time I want

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by