How to combine overlapping audio?

1 回表示 (過去 30 日間)
Nathaniel Sweeney
Nathaniel Sweeney 2017 年 11 月 21 日
回答済み: Walter Roberson 2017 年 11 月 21 日
I am trying to figure out how to combine 2 audio signals that have an overlap. That is, if I record audio from time = 0-2 and a second recording from time = 1-3, how do i combine these signals so that from time = 1-2 isnt there twice?

回答 (2 件)

Star Strider
Star Strider 2017 年 11 月 21 日
The findsignal (link) function could be helpful.

Walter Roberson
Walter Roberson 2017 年 11 月 21 日
Split it up into three cases by time
  1. the portion where only the first signal is going. Copy the contents of the first signal in this case.
  2. the portion where both signals are going. You need to decide how you want to handle this. One way is to average the two signals.
  3. the portion where the first signal has ended and the second is still playing. Copy the contents of the second signal this is case.
If you do average the two signals, then if one of the signal is much louder than the other then this can result in a sudden drop in volume at the point the averaging starts.

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by