The invention discloses a head-related
transfer function generation method and device, and relates to the technical field of audio
processing. The method comprises the steps that the
electronic equipment outputs first prompt information, the first prompt information is used for indicating a target individual wearing the head-mounted equipment to execute a first operation, and the first operation enables
relative motion to be generated between the
electronic equipment and the head-mounted equipment; when the first operation is carried out, a test
audio signal is played, feedback audio signals and position information from the head-mounted device are received, the feedback audio signals are test audio signals received by the head-mounted device at multiple different spatial positions, and the feedback audio signals are test audio signals received by the head-mounted device at multiple different spatial positions; the spatial position is the spatial position of the
electronic equipment relative to the head-mounted equipment, and the position information is used for determining the spatial position; and determining the HRTF corresponding to the target individual according to the test
audio signal, the feedback
audio signal and the position information.