Using Audio Toolbox to pick up an audio with the microphone from a speaker

조회 수: 4 (최근 30일)
Hamda Zarrouk
Hamda Zarrouk 2023년 2월 21일
댓글: Hamda Zarrouk 2023년 2월 27일
Hello, Is it possible to create a Simulink model, where there are both a speaker and a microphone. The speaker is an output to a sin wave for example. the microphone in the model should pick the audio from the speaker. Then i want to be able to compare both original and the picked up signal by the mic. I then want to dispaly them both in a scope or data inspector for example and look for noise or distortion. If you have a model in mind could you help me with it.
This is sofar my model:
  댓글 수: 9
Walter Roberson
Walter Roberson 2023년 2월 27일
If you have two signals that are nominally the same except possibly shifted in time, then xcorr() to find the best mutual alignment.
Hamda Zarrouk
Hamda Zarrouk 2023년 2월 27일
Is it possible to use this function with two array with the same size and data type but porbably not the same amplitude, because after correcting the phase shift I want to go ahead and compare sample by sample.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by