A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a computer, cause the computer to perform a control method for an audio processing apparatus including an attachment unit configured to attach a lens including a noise source, a first microphone configured to acquire ambient sound, and a second microphone configured to acquire sound occurring from the noise source, the control method comprising:
- performing Fourier transform of an audio signal output from the first microphone to generate a first audio signal;
- performing Fourier transform of an audio signal output from the second microphone to generate a second audio signal;
- generate noise data using the second audio signal and a parameter concerned with noise of the noise source;
- subtracting the noise data from the first audio signal;
- and
- performing inverse Fourier transform of an audio signal generated by subtracting the noise data,
- wherein, in generating the noise data as the parameter, a parameter associated with a type of the lens attached to the attachment unit is used.