Audio signal processing method, electronic apparatus, and storage medium
Abstract
An audio signal processing method, includes acquiring a first distance between a current position and an initial position of a mobile device, and a second distance between the current position of the mobile device and a wearable device. Determining a first deflection angle according to the first distance, the second distance and the initial distance between the mobile device and the wearable device. Acquiring a second deflection angle of the wearable device reflecting a posture change. Determining relative position information between the mobile device and the wearable device according to the first deflection angle, the second deflection angle and the second distance and processing an audio signal based on the relative position information to obtain a playing audio played by the wearable device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. An audio signal processing method, comprising the following steps:
acquiring a first distance between a current position and an initial position of a mobile device, and a second distance between the current position of the mobile device and a wearable device; the mobile device and the wearable device are in communication connection;
determining a first deflection angle of the mobile device according to the first distance, the second distance and the initial distance between the mobile device and the wearable device;
acquiring a second deflection angle of the wearable device reflecting a posture change;
determining relative position information between the mobile device and the wearable device according to the first deflection angle, the second deflection angle and the second distance; and
processing an audio signal based on the relative position information to obtain a playing audio played by the wearable device;
wherein the step of determining a first deflection angle of the mobile device according to the first distance, the second distance and the initial distance between the mobile device and the wearable device comprises:
determining the first deflection angle based on the law of cosines according to the first distance, the second distance and the initial distance; the first deflection angle is an included angle between a line from the current position of the mobile device to the wearable device and a line from the initial position of the mobile device to the wearable device.
2. The method of claim 1 , wherein the step of acquiring a first distance between a current position and an initial position of a mobile device comprises:
detecting the first distance by a distance measurement unit arranged on the mobile device.
3. The method of claim 1 , wherein the step of acquiring a second deflection angle of the wearable device reflecting a posture change comprises:
detecting the second deflection angle by an angle measurement unit arranged on the wearable device.
4. The method of claim 1 , wherein the step of determining relative position information between the mobile device and the wearable device according to the first deflection angle, the second deflection angle and the second distance comprises the following steps:
obtaining a relative azimuth angle between the mobile device and the wearable device according to the first deflection angle and the second deflection angle; and
determining the relative position information according to the relative azimuth angle and the second distance.
5. The method of claim 1 , wherein the step of processing an audio signal based on the relative position information to obtain a playing audio played by the wearable device comprises the following steps:
determining head-related parameters of the wearable device and the mobile device according to the relative position information; and
processing the audio signal by remapping based on the head-related parameters to obtain the playing audio.
6. The method of claim 1 , wherein before the step of acquiring a first distance between a current position and an initial position of a mobile device, and a second distance between the current position of the mobile device and a wearable device, the method also comprises:
detecting a state of a trigger switch on the mobile device, and executing the step of acquiring the first distance and the second distance in response to turn-on of the trigger switch.
7. The method of claim 1 , wherein the step of acquiring a second deflection angle of the wearable device reflecting a posture change comprises:
obtaining the second deflection angle by resolving a measured signal from an measuring device arranged on the wearable device.
8. The method of claim 1 , wherein the step of acquiring a second deflection angle of the wearable device reflecting a posture change comprises the following steps:
detecting the second deflection angle by an angle measurement unit arranged on the wearable device; and
obtaining the second deflection angle by resolving a measured signal from an inertial measuring device arranged on the wearable device.
9. The method of claim 1 , wherein the step of acquiring a second distance between the current position of the mobile device and a current position of a wearable device comprises:
detecting the second distance by the distance measurement unit arranged on at least one of the mobile device and on the wearable device.
10. An electronic device, comprising:
a processor; and
a memory, storing computer-readable instructions for the processor; when the computer instructions are read, the processor is configured to:
acquire a first distance between a current position and an initial position of a mobile device, and a second distance between the current position of the mobile device and a wearable device; the mobile device and the wearable device are in communication connection;
determine a first deflection angle of the mobile device according to the first distance, the second distance and the initial distance between the mobile device and the wearable device;
acquire a second deflection angle of the wearable device reflecting a posture change;
determine relative position information between the mobile device and the wearable device according to the first deflection angle, the second deflection angle and the second distance; and
process an audio signal based on the relative position information to obtain a playing audio played by the wearable device;
wherein the processor is further configured to:
determine the first deflection angle based on the law of cosines according to the first distance, the second distance and the initial distance;
wherein the first deflection angle is an included angle between a line from the current position of the mobile device to the wearable device and a line from the initial position of the mobile device to the wearable device.
11. The device according to claim 10 , wherein the processor is further configured to:
detect the first distance by a distance measurement unit arranged on the mobile device; and
detect the second distance by the distance measurement unit arranged on at least one of the mobile device and the wearable device.
12. The device according to claim 10 , wherein the processor is further configured to:
detect the second deflection angle by an angle measurement unit arranged on the wearable device.
13. The device according to claim 10 , wherein the processor is further configured to:
obtain a relative azimuth angle between the mobile device and the wearable device according to the first deflection angle and the second deflection angle; and
determine the relative position information according to the relative azimuth angle and the second distance.
14. The device according to claim 10 , wherein the processor is further configured to:
determine head-related parameters of the wearable device and the mobile device according to the relative position information; and
process the audio signal by remapping based on the head-related parameters to obtain the playing audio.
15. The device according to claim 10 , wherein the processor is further configured to:
detect a state of a trigger switch on the mobile device, and executing the step of acquiring the first distance and the second distance in response to turn-on of the trigger switch.
16. The device according to claim 10 , wherein the processor is further configured to:
obtain the second deflection angle by resolving a measured signal from an initial inertial measuring device arranged on the wearable device.
17. The device according to claim 10 , wherein the processor is further configured to:
detect the second deflection angle by an angle measurement unit arranged on the wearable device; and
obtain the second deflection angle by resolving a measured signal from an initial inertial measuring device arranged on the wearable device.
18. A non-temporary storage medium, used for storing the computer-readable instructions; the computer-readable instructions are used for enabling a computer to execute an audio signal processing method, the method comprises:
acquiring a first distance between a current position and an initial position of a mobile device, and a second distance between the current position of the mobile device and a wearable device; the mobile device and the wearable device are in communication connection;
determining a first deflection angle of the mobile device according to the first distance, the second distance and the initial distance between the mobile device and the wearable device;
acquiring a second deflection angle of the wearable device reflecting a posture change;
determining relative position information between the mobile device and the wearable device according to the first deflection angle, the second deflection angle and the second distance; and
processing an audio signal based on the relative position information to obtain a playing audio played by the wearable device;
wherein the step of determining a first deflection angle of the mobile device according to the first distance, the second distance and the initial distance between the mobile device and the wearable device comprises:
determining the first deflection angle based on the law of cosines according to the first distance, the second distance and the initial distance; the first deflection angle is an included angle between a line from the current position of the mobile device to the wearable device and a line from the initial position of the mobile device to the wearable device.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.