When measuring a single input-single output linear system, such as a loudspeaker, the transfer function is the FFT of the impulse response (do not take this as a definition, more an indication).