I have the original audio signal(MATLAB GENERATED) and the recorded audio signal (anechoic conditions). The setup consists of a DAC with a power amp plugged into the speaker. The audio is recorded via a condenser mic. I need to realize the transfer function of the speaker even though the properties of the rest of the setup are unknown.
Use a pseudo random white noise sequence or other waveform that similarly occupies the entire spectrum of interest (as you will not be able to determine the transfer function at frequencies where no signal exists). Then use the approach outlined on this post here which uses the Wiener-Hopf equations to determine the least-mean-square estimate of the channel: