MATLAB Answers

concatenate audio files in simulink

6 ビュー (過去 30 日間)
Katarina Vuckovic
Katarina Vuckovic 2020 年 4 月 3 日
コメント済み: Katarina Vuckovic 2020 年 4 月 4 日
How can I concatenate 2 or more audio (.wav) sounds into one?

採用された回答

jibrahim
jibrahim 2020 年 4 月 3 日
Hi Katarina,
Use two 'From Multimedia File' blocks to read the wav files.
There are multiple ways of concatenating two signals in simulink.For example:
  5 件のコメント
Katarina Vuckovic
Katarina Vuckovic 2020 年 4 月 4 日
Right now I am able to get it to work by triggering the two audio files to be on/off using a constant pulse. This works only if the messages are constant duration. However if the messagase are of variable duratio, I don't know how to detect that the first message has ended.

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

その他の回答 (1 件)

Katarina Vuckovic
Katarina Vuckovic 2020 年 4 月 4 日
Hi Walter, if I play one on the left channel and one on the right, wouldn't they still be playing at the same time instead of one after the other?
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 4 月 4 日
Yes. My explanation was for how it happened that they were playing at the same time. The cure is to ensure that you concatenate on the first dimension instead of the second.

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by