Patent Description:
Spatial audio, also known as surround audio, refers to that surround sound channels are placed precisely in appropriate positions, so that a user can immersively feel the surround sound experience by turning his/her head. <CIT>discloses a headset and method of operating headset. A headset (<NUM>) is configured to be worn by an individual (U1) and comprises a microphone and speaker elements. A communication unit in the headset (<NUM>) is configured to transmit a first voice signal generated by the microphone and to receive a second voice signal from a second headset worn by another individual (U2). The headset (<NUM>) is operated, e.g. by program instructions provided on a computer-readable medium, to determine a current position of the second headset (<NUM>) and to operate the speaker elements to reproduce sound based on the second voice signal such that the sound represents the current position in relation to the headset (<NUM>). For example, the sound may be reproduced to represent a distance (r) and/or an angle (θ,φ) between the headset (<NUM>) and the current position give the individual (U1) an intuitive understanding of the location of the individual (U2) wearing the second headset(<NUM>).

<CIT> discloses a remote multi-dimensional audio. The disclosed technology provides multi-dimensional audio output by providing a relative physical location of an audio transmitting device relative to an audio outputting device in a shared map of physical space shared between the audio transmitting device and the audio outputting device. An orientation of the audio outputting device relative to the audio transmitting device is determined and an audio signal received from the audio transmitting device via a communication network is processed using the determined orientation of the audio outputting device relative to the audio transmitting device and the relative physical location of the audio transmitting device to create an augmented audio signal. The augmented audio signal is output through at least one audio output on the audio outputting device in a manner indicating a relative physical direction of the audio transmitting device to the audio outputting device in the shared map of the physical space.

<CIT> discloses spatial audio wearable devices. Spatial audio is rendered at a companion device or server connected to a wearable device, where the spatial audio is rendered based on a first pose estimate of the wearable device that is estimated at the companion device or server. The rendered spatial audio is then transmitted to the wearable device. The rendered spatial audio is refined at the wearable device based on a second pose estimate of the wearable device that is estimated at the wearable device. The refined spatial audio is then provided for playback via speakers of the wearable device.

In order to improve the spatial audio effect, the disclosure provides an audio signal processing method, electronic apparatus, and storage medium.

According to a first aspect the disclosure provides an audio signal processing method according to claim <NUM>, inter alia including:.

Optionally, the step of acquiring a first distance between a current position and an initial position of a mobile device includes:
detecting the first distance by a distance measurement unit arranged on the mobile device.

Optionally, 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 includes:
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.

Optionally, the step of acquiring a second deflection angle of the wearable device reflecting a posture change includes:
detecting the second deflection angle by an angle measurement unit arranged on the wearable device.

Further according to the invention, 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 includes the following steps:.

Optionally, the step of processing an audio signal based on the relative position information to obtain a playback audio played by the wearable device includes the following steps:.

Optionally, 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 includes:
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.

Optionally, the step of acquiring a second deflection angle of the wearable device reflecting a posture change includes:
obtaining the second deflection angle by resolving a measured signal from an initial measuring device arranged on the wearable device.

Optionally, the step of acquiring a second deflection angle of the wearable device reflecting a posture change includes the following steps:.

Optionally, the step of acquiring a second distance between the current position of the mobile device and a current position of a wearable device includes:
detecting the second distance by the distance measurement unit arranged on at least one of the mobile device and on the wearable device.

According to a second aspect the disclosure provides an electronic device according to claim <NUM>, inter alia including: a processor and a memory, storing computer instructions readable by 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 playback audio played by the wearable device.

Optionally, the processor is further configured to:.

Optionally, 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, 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.

Optionally, the processor is further configured to:
detect the second deflection angle by an angle measurement unit arranged on the wearable device.

According to a third aspect the disclosure provides a non-temporary storage medium according to claim <NUM> used for storing the computer-readable instructions; and the computer-readable instructions are used for enabling a computer to execute an audio signal processing method. The method inter alia including: 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 playback audio played by the wearable device.

The audio signal processing method of the disclosure includes 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; 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 playback audio. The disclosure realizes spatial surround audios, improves an audio playback effect, and avoids a defect that when a mobile device has a position change, a position of a sound source is inconsistent with the actual position of the device, and thus improving the user experience.

In order to explain the specific embodiments of the disclosure or the technical solutions in the related art more clearly, the accompanying drawings to be used in describing the specific embodiments or the related art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the disclosure. For those or ordinary skill in the art, other drawings can also be obtained based on these accompanying drawings without making creative efforts.

The technical solution of the disclosure will be clearly and completely described below in combination with the accompanying drawings. It is obvious that the described embodiments are only parts of, rather than all of, the embodiments of the disclosure. Based on the embodiments of the disclosure, all the other embodiments obtained by those of ordinary skill in the art without making creative efforts will fall within the protection scope of the disclosure. In addition, the technical features described below and involved in different embodiments of the disclosure can be combined with each other, as long as there is no conflict.

At present, some manufacturers have introduced spatial audio technology into Bluetooth headphones. By installing an inertial measurement unit such as gyroscope and accelerometer in a headphone for calculation, a position and a posture change of the headphone can be obtained to realize the tracking of a wearer's head. When the wearer's head has a position and a posture change, a sound source can be remapped, so that the sound source heard by the wearer is kept in a fixed position to achieve a spatial surround audio effect.

In a related art, when the spatial audio effect is realized, the position of an imaginary sound source is fixed, but a mobile terminal is different from the sound source device (such as a TV set) in the fixed position. In an actual scenario, when a user watches a video while holding a mobile device, the mobile device will rotate along with the body, owing to the fixed position of the sound source, the user will subjectively perceive that the direction of the sound source remains at the original position. For another example, when a mobile device has a position change, a sound source heard by a user remains at an original position because the position and posture of a headphone is not changed. As a result, the subjectively perceived position of the sound source by the user is inconsistent with the actual position of the mobile device, causing poor experience in use.

Based on the existing defects in the related art, the embodiments of the disclosure provide an audio signal processing method and device, an electronic device and a storage medium, in order to improve a spatial audio effect and user experience of a wearable device.

Firstly, <FIG> shows a schematic diagram in some embodiments of the disclosure. As shown in <FIG>, a system of an embodiment of the disclosure includes a wearable device <NUM> and a mobile device <NUM>.

The wearable device <NUM> can be any device applicable for playing audio, and the wearable device can be worn on a human body to have angular deflection with movements of a user's limbs, that is, a posture change described in an embodiment of the disclosure. In some embodiments, the wearable device <NUM> can be a headphone, a true wireless stereo (TWS) headphone, etc..

The mobile device <NUM> can be any mobile device suitable for generating sound sources, the mobile device <NUM> can send audio signals to the wearable device <NUM>, and the mobile device <NUM> has portability, such as mobile phone, tablet computer, music player, smart wearable device, etc..

In an embodiment of the disclosure, a wireless communication module is arranged on both of the wearable device <NUM> and the mobile device <NUM>, respectively, and it is used for creating communication connection between the two devices, in order to realize data transmission between them. The wireless communication module includes, but is not limited to, a Bluetooth transmission module and a WiFi transmission module. the wearable device <NUM> and the mobile device <NUM> can also create communicable connection in a wired manner, which is not limited by the disclosure.

An angle measurement unit, a distance measurement unit and an inertial measurement unit are arranged in both the wearable device <NUM> and the mobile device <NUM>, respectively. Examples of these units can be seen in at least <FIG>, described herein. The angle measurement unit can be used for detecting a change in an attitude angle of the device itself to obtain relevant information generated by the rotation of the device. For example, the angle measurement unit includes a triaxial gyroscope, an accelerometer, etc. The range measurement unit can be used for detecting a moving distance of the device itself and a distance between the two devices. For example, when the mobile device <NUM> is moved, the distance measurement unit can detect the moving distance of the mobile device <NUM>. In another example, the distance measurement unit can detect a distance between the mobile device <NUM> and the wearable device <NUM>; and the distance measurement unit can be an ultra wide band (UWB) ranging module or a laser ranging module. The inertial measurement unit, also known as IMU, is a high-precision inertial sensor used for detecting a change in the position and posture of the device itself and calculating the position and posture information of the device according to a relevant inertial navigation algorithm.

<FIG> shows an audio signal processing method in some embodiments of the disclosure, and the method can be applied in a system scenario as shown in <FIG>. In some embodiments, considering that the operational capability of the mobile device <NUM> is often stronger than that of the wearable device <NUM>, and thus the method of the disclosure can be performed and processed by a processor of the mobile device <NUM>. However, those skilled in the art can understand that the method of the disclosure can also be performed and processed by a processor of the wearable device <NUM>, or jointly performed and processed by the mobile device <NUM> and the wearable device <NUM>, which is not limited by the disclosure.

As shown in <FIG>, in some embodiments, an audio signal processing method of the disclosure includes step S210, 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 current position of a wearable device.

For example, as shown in <FIG>, a user wears the wearable device <NUM> on the head to watch a video played on the mobile device <NUM>, and the mobile device <NUM> sends an audio signal to the wearable device <NUM> through Bluetooth, so that the wearable device <NUM> can play the audio signal.

In a scenario, it is assumed that the mobile device <NUM> is moved from an initial position O to a current position O<NUM>, and the wearable device <NUM> remains its position and posture unchanged. In the related art, as the position of an imaginary sound source is fixed at the initial position O, after the mobile device <NUM> is moved to the current position O<NUM>, the user will subjectively perceive that the audio from the wearable device <NUM> still remains at the original position O, resulting in that the spatial audio effect is inconsistent with the actual position of the device, and thus lowering the user experience.

In another scenario, it is assumed that the user holds the mobile device <NUM> in his hand, the mobile device <NUM> and the wearable device <NUM> are synchronously rotated by a certain angle, that is, their relative position remains unchanged. In the related art, as the rotation of the user's head drives the posture of the wearable device <NUM> to change, the system will process the audio signal, so that the position of the sound source that the user hears remains at the initial position subjectively, but in fact the relative position of the two devices has not changed, resulting in that the spatial audio effect is inconsistent with the actual position of the device, and lowering the user experience.

Therefore, in the embodiment of the disclosure, improvements are made in view of the defects existing in the related art. Taking <FIG> as an example again, when the mobile device <NUM> is moved from the initial position O to the current position O<NUM>, the distance measurement unit in the mobile device <NUM> can detect the moving distance of the mobile device <NUM>, that is, a line segment OO<NUM> in <FIG>, which is recorded as the first distance s<NUM>. At the initial position O, the distance measurement unit in the mobile device <NUM> and/or the wearable device <NUM> can detect the initial distance between the two devices, that is, a line segment OP in <FIG>, which is recorded as the initial distance d. At the current position O<NUM>, the distance measurement unit in the mobile device <NUM> and/or the wearable device <NUM> can detect the current distance between the two devices, that is, a line segment O<NUM>P in <FIG>, which is recorded as the second distance d<NUM>.

Referring back to <FIG>, in step S220 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 is determined.

For example, as shown in <FIG>, the line segments OO<NUM>, OP and O<NUM>P are connected end to end to form a triangle ΔOO<NUM>P. Where, O<NUM>P represents a connecting line from the current position of the mobile device <NUM> to the wearable device <NUM>, and OP represents a connecting line from the initial position of the mobile device <NUM> to the wearable device <NUM>, so that an included angle ∠OPO<NUM> between O<NUM>P and OP represents the moving deflection angle α of the mobile device, that is, the first deflection angle α of the embodiment of the disclosure.

In some embodiments of the disclosure, the first deflection angle α can be calculated according to the first distance s<NUM>, the second distance d<NUM>, and the initial distance d. It will be specifically described in the following embodiments of the disclosure, and will not be repeated in detail here.

Referring back to <FIG>, in step S230 a second deflection angle of the wearable device reflecting a posture change is acquired.

In a scenario of the embodiment of the disclosure, attention is paid to not only the position change of the mobile device <NUM> but also the posture change of the wearable device <NUM>.

For example, in an example as shown in <FIG>, the mobile device <NUM> is moved from the initial position O to the current position O<NUM>, and the user's head posture remains unchanged, that is, the wearable device <NUM> remains its posture unchanged. Under this condition, the second deflection angle of the wearable device reflecting the posture change is zero or unchanged.

In another example, it is assumed that the mobile device <NUM> is moved from the initial position O to the current position O<NUM>, and the user's head rotates by a certain angle. Accordingly, the wearable device <NUM> has a corresponding posture change along with the user's head, and at this time, the second deflection angle of the wearable device <NUM> reflecting the posture change can be obtained.

In some embodiments, the second deflection angle can be detected by the angle measurement unit arranged in the wearable device <NUM>. In some other embodiments, the posture change can be detected by the inertial measurement unit arranged in the wearable device <NUM>, and the second deflection angle of the wearable device <NUM> reflecting the posture change can be calculated according to a signal measured by the inertial measurement unit. In some other embodiments of the disclosure, the second deflection angle of the wearable device <NUM> reflecting the posture change can also be obtained by the angle measurement unit and the inertial measurement unit arranged in the wearable device <NUM>. It will be specifically described in the following embodiments of the disclosure, and will not be repeated in detail here.

Referring back to <FIG>, in step S240 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 is determined.

It can be understood that the first deflection angle represents a position deflection angle of the mobile device <NUM>, and the second deflection angle represents the posture deflection angle of the wearable device <NUM>, so that a relative azimuth angle between the mobile device <NUM> and the wearable device <NUM> can be obtained according to the first deflection angle and the second deflection angle. The relative azimuth angle represents the azimuth information between the two devices, and the second distance represents the current distance information between the two devices, so that the relative position information of the two devices can be accurately defined according to the relative azimuth angle and the second distance. It will be specifically illustrated below in combination with the embodiment in <FIG>.

As shown in <FIG>, in some modes of implementation, in an audio signal processing method of the disclosure, a process of determining the relative position information between the mobile device and the wearable device include step S241 of obtaining a relative azimuth angle between the mobile device and the wearable device according to the first deflection angle and the second deflection angle.

For example, in a scenario as shown in <FIG>, the mobile device <NUM> is moved from the initial position O to the current position O<NUM>, meanwhile the user rotates his head to the left for a certain angle from a position directly opposite to the initial position O, and the arrow direction represents the direction to which the user is directly opposite. In this process, the second deflection angle β of the wearable device <NUM> reflecting the position and posture change can be detected by the angle measurement unit and the inertial measurement unit in the wearable device <NUM>. Besides, the first deflection angle α of the mobile device <NUM> can be calculated based on the process described in S230.

After the first deflection angle α and the second deflection angle β are obtained, the relative azimuth angle between the mobile device and the wearable device can be obtained according to their difference value. For another example, in the example as shown in <FIG>, assuming that the first deflection angle α is <NUM>° and the second deflection angle β is <NUM>°, the relative azimuth angle can be calculated as (<NUM>°-<NUM>°) =<NUM>°. It is indicated that the mobile device <NUM> is at <NUM>° in the left front of the wearable device <NUM>.

Referring back to <FIG>, in step S242 the relative position information according to the relative azimuth angle and the second distance is determined.

It can be understood that the relative azimuth angle represents the relative azimuth between the mobile device <NUM> and the wearable device <NUM>, and their relative position can be accurately expressed in combination with the distance between the two devices.

In an embodiment of the disclosure, the distance between the mobile device <NUM> and the wearable device <NUM> is the second distance d<NUM> which can be determined by the method as described in S210, and it will not be repeated in the disclosure.

The relative position information between the mobile device <NUM> and the wearable device <NUM> can be determined according to the relative azimuth angle and the second distance.

Referring back to <FIG>, in the final step S250, processing an audio signal based on the relative position information, to obtain a playback audio played by the wearable device is performed.

HRTF (Head Related Transfer Functions) is an audio localization algorithm; in the existing applications, based on tracking the movements of a user's head, a sound source can be remapped using the HRTF, so that the headphone can produce various spatial auditory effects. A basic principle of the HRTF can be considered as that an audio signal is processed by remapping based on different head-related parameters, to obtain the playback audio of a corresponding auditory effect. The head-related parameters represent relative position and posture information between the mobile device and the wearable device.

<FIG> shows a process of obtaining a playback audio according to relative position information in some embodiments of the disclosure, which will be specifically illustrated below in combination with <FIG>.

As shown in <FIG>, in some embodiments, an audio signal processing method of the disclosure includes step S251 of determining head-related parameters of the wearable device and the mobile device according to the relative position information. Then in step S252 processing the audio signal by remapping based on the head-related parameters, to obtain the playback audio is performed.

Based on the above-mentioned principle, after the relative position information of the wearable device <NUM> and the mobile device <NUM> is determined, the head-related parameters between the wearable device <NUM> and the mobile device <NUM> can be determined according to the relative position information.

After the head-related parameters are determined, the audio signal transferred by the mobile device <NUM> can be remapped based on the HRTF algorithm, so as to obtain the processed playback audio. The mobile device <NUM> can send the processed playback audio to the wearable device <NUM>, and the wearable device <NUM> will play it, so that the user can hear the spatial surround audio effect.

It should be noted that, in the embodiments of the disclosure, the relative position information represents the relative position relationship between the wearable device <NUM> and the mobile device <NUM>. Different from the solution in the related art in which an imaginary sound source is in a fixed position, in the embodiments of the disclosure, the relative position relationship between the wearable device <NUM> and the mobile device <NUM> is used for remapping an audio signal.

For example, in the example as shown in <FIG>, when the user rotates while holding the mobile device <NUM> in his hand, that is, the mobile device <NUM> and the wearable device <NUM> are synchronously rotated. Although the wearable device <NUM> has position and posture changes, the relative position between the mobile device <NUM> and the wearable device <NUM> remains unchanged. Therefore, the remapped sound source in the embodiment of the disclosure can still be kept in direct front of the user, so that the auditory position of the sound source is kept consistent with the actual position of the mobile device <NUM>, improving the auditory experience.

For another example, in the scenario as shown in <FIG>, the user's head posture remains unchanged, and the mobile device <NUM> is moved from the initial position O to the current position O<NUM>. In the embodiment of the disclosure, the first deflection angle of the mobile device <NUM> can be detected, a change in the relative position information caused by the mobile device <NUM> can be obtained to realize the processing of the audio signal. Thus, the auditory position of the sound source is kept consistent with the actual position of the mobile device <NUM>, improving the auditory experience.

In addition, it should be noted that, in some embodiments of the disclosure, the relative position information between the wearable device <NUM> and the mobile device <NUM> is represented by the relative azimuth angle and distance between the two devices. This is because, for the wearable device <NUM> and the mobile device <NUM>, there are small changes in their positions and postures, and the traditional inertial navigation technology is less observable in such small position and posture changes, and it is difficult to solve the position and posture information with high accuracy. If the relative position relationship between the wearable device and the mobile device is calculated directly by using their position information, the error is too large to apply. Therefore, in some embodiments of the disclosure, the relative position information between the wearable device and the mobile device is expressed based on the relative azimuth angle and distance between the two devices, so as to improve the detection accuracy.

It can be known from the above descriptions that in the embodiments of the disclosure, the audio signal is processed based on the relative position information between the wearable device and the mobile device to realize the spatial surround audio, improving the audio playback effect. Besides, as compared with the solution of fixed position of a sound source in the related art, the disclosure is more applicable for the scenario of mobile devices to avoid the defect that the position of a sound source is inconsistent with the actual position of a mobile device in case of a position change of the device, improving the user experience. Besides, the relative position information between the wearable device and the mobile device is expressed based on the relative azimuth angle and distance between the two devices, improving the detection accuracy.

In some embodiments, in an audio signal processing method of the disclosure, a process of determining the first deflection of the mobile device includes determining the first deflection angle based on the law of cosines according to the first distance, the second distance and the initial distance.

Specifically, taking the scenario as shown in <FIG> as an example, the mobile device <NUM> is moved from the initial position O to the current position O<NUM>. The line segments OO<NUM>, OP and O<NUM>P are connected end to end to form a triangle ΔOO<NUM>P; where, O<NUM>P represents a connecting line from the current position of the mobile device <NUM> to the wearable device <NUM>, and OP represents a connecting line from the initial position of the mobile device <NUM> to the wearable device <NUM>, so that an included angle ∠OPO<NUM> between O<NUM>P and OP represents the moved deflection angle α of the mobile device, that is, the first deflection angle α of the embodiment of the disclosure.

Based on a formula of the law of cosines: <MAT>.

In the above formula, d represents the initial distance, d<NUM> represents the second distance, and s<NUM> represents the first distance. Thus, the first deflection angle α can be obtained by calculation through the above formula.

The second deflection angle β can be detected by the angle measurement unit of the wearable device <NUM>, or resolved by the inertial measurement unit of the wearable device <NUM>, or obtained by combining both of the detection results, which will be illustrated below in the disclosure, respectively.

In some embodiments, considering that the angle measurement unit, such as UWB angle measurement module and ultrasonic angle measurement module, has high detection accuracy in case of a smaller rotation angle (for example, within a range of ±<NUM>°). Therefore, when the rotation angle of the wearable device <NUM> is small, for example, the second deflection angle |β|≤ <NUM>°, a signal for the posture change of the wearable device <NUM> can be detected using the angle measurement unit, and then the second deflection angle is obtained according to the measured signal.

In some embodiments, considering that the angle measurement units, such as UWB angle measurement module and ultrasonic angle measurement module, the detection accuracy will be obviously reduced in case of a larger rotation angle (for example, exceeding a range of ±<NUM>°). Therefore, when the rotation angle of the wearable device <NUM> is large and the second deflection angle |β|> <NUM>°, the information for the posture change of the wearable device <NUM> can be detected using the initial measurement unit of the wearable device <NUM>, and then the second deflection angle is resolved according to the detected signal based on the inertial navigation algorithm.

Further, in some embodiments, considering that both the angle measurement device and the inertial measurement device can realize angle measurement in case of a smaller rotation angle (for example, within a range of ±<NUM>°) of the wearable device <NUM>, therefore, both of the detection results can be fused based on the Kalman filter algorithm to improve the detection accuracy of the second deflection angle.

It can be known from the above descriptions that in the embodiments of the disclosure, the second deflection angle of the wearable device can be determined by multiple methods to meet the application for more scenarios, and meanwhile the detection accuracy can be improved.

In some embodiments, in an audio signal processing method of the disclosure, a corresponding trigger switch can be arranged on the mobile device <NUM> or the wearable device <NUM>, and a user can manually turn on/off the trigger switch to implement and disable the above process.

In an example, a corresponding trigger switch can be arranged on a video playback interface of the mobile device, and the trigger switch can be present when a user wears the wearable device. In this way, when the user wears the wearable device <NUM> to watch a video playback on the mobile device <NUM>, the trigger switch will be manually turned on. The mobile device <NUM> can detect a state of the trigger switch, and when it is detected that the trigger switch is on, the above audio signal processing process can be performed.

In other embodiments, the trigger switch can also be arranged on the wearable device <NUM>, and the trigger switch can be either a virtual touch switch on the mobile device or the wearable device, or a real physical button, which is not limited in the disclosure.

In some embodiments, the wearable device <NUM> of an example of the disclosure can include TWS earphones or a headset, and the mobile device can include a smartphone. The smartphone can send an audio signal to the headphone, and the headphone plays the corresponding playback audio.

In an example, as shown in <FIG>, the user wearing the wearable device <NUM> faces the mobile device <NUM> and watches a video, the user manually turns on the trigger switch on the mobile device <NUM>, and the position where the user turns on the trigger switch is the initial position; and the mobile device <NUM> detects the initial distance d between the mobile device <NUM> and the wearable device <NUM> through the distance measurement unit.

When the mobile device is moved from the initial position O to the current position O<NUM>, the mobile device <NUM> detects the first distance s<NUM> between the initial position O and the current position O<NUM>, as well as the second distance d<NUM> between the current position of the mobile device <NUM> and the wearable device <NUM> through the distance measurement unit. Meanwhile, the user's head drives the wearable device <NUM> to rotate by <NUM>° to the left from the initial posture, so that the angle measurement unit of the wearable device <NUM> can detect that the second deflection angle β is <NUM>°.

According to the first distance s<NUM>, the second distance d<NUM> and the initial distance d, the mobile device <NUM> calculates the first deflection angle α to be <NUM>° based on the above formula of the laws of cosines. According to the first deflection angle α, the second deflection angle β and the second distance d<NUM>, it is determined that the current relative position information between the mobile device <NUM> and the wearable device <NUM> is "the mobile device is at <NUM>° in the left front of the wearable device, and the distance between them is d<NUM>". The corresponding head-related parameters are obtained according to the relative position information, an audio signal is remapped according to the head-related parameters and then sent to the wearable device, and the wearable device emits the processed playback audio through a receiver, so that the user can hear the audio with a spatial surround effect.

In some embodiments, considering that the operational capability of the mobile device <NUM> is often stronger than that of the wearable device <NUM>, and thus the processing steps of the method in the above embodiment can be performed and processed by a processor of the mobile device <NUM>. It will be illustrated below in combination with <FIG>.

As shown in <FIG>, in some embodiments, an audio signal processing method of the disclosure includes step S701, where a mobile device acquires a first distance between a current position and an initial position, a second distance between the current position of the mobile device and a current position of a wearable device, and an initial distance between the mobile device and the wearable device. Specifically, in some embodiments, when the mobile device is moved from the initial position to the current position, the first distance, the second distance and the initial distance can be detected by a distance measurement unit arranged on the mobile device. The specific process can refer to the previously described embodiment, which will not be repeated again.

Then in step S702, the mobile device determines the first deflection angle according to the first distance, the second distance and the initial distance. Specifically, the mobile device can determine the first deflection angle in accordance with the process described in S220, which will not be repeated in the disclosure.

Next in step S703, the wearable device acquires a second deflection angle reflecting its posture change. Specifically, in some embodiments, the second deflection angle of the wearable device reflecting the posture change can be detected by an angle measurement unit arranged in the wearable device <NUM>. In some other embodiments, the posture change can be detected by the inertial measurement unit arranged in the wearable device <NUM>, and the second deflection angle of the wearable device <NUM> reflecting the posture change can be calculated according to a signal measured by the inertial measurement unit. It will not be repeated again in the disclosure.

Then in step S704, the mobile device receives the second deflection angle sent by the wearable device. In an example, the wearable device <NUM> and the mobile device <NUM> can create wireless communication connection through a Bluetooth module, so that the wearable device <NUM> can send the second deflection angle to the mobile device <NUM> through the Bluetooth module.

Next in step S705, the mobile device determines relative position information according to the first deflection angle, the second deflection angle and the second distance. Specifically, those skilled in the art can understand and fully implement the step by reference to S240 as described above, which will not be repeated again in the disclosure.

Then in step S706, the mobile device processes an audio signal based on the relative position information, to obtain a playback audio. Specifically, after obtaining the relative position information, the mobile device <NUM> can remap the audio signal in accordance with the process in the previously described embodiment to obtain the playback audio. The specific process can refer to the previously described embodiment, which will not be repeated again.

Finally, in step S707, the mobile device sends the playback audio to the wearable device. In an example, the wearable device <NUM> and the mobile device <NUM> can create wireless communication connection through a Bluetooth module, so that the mobile device <NUM> can send the playback audio to the wearable device <NUM> through the Bluetooth module. The wearable device <NUM> receiving the playback audio can play the audio through the receiver, so that the user can hear the playback audio with a spatial surround effect.

It can be known from the above descriptions that in the embodiments of the disclosure, the mobile device is used for data processing, and thus the method with a lower requirement for the operational capability of the wearable device is applicable for various wearable devices.

In some embodiments, the processing steps of the method in the above embodiment of the disclosure can be performed and processed by a processor of the wearable device <NUM>. It will be illustrated below in combination with <FIG>.

As shown in <FIG>, in some embodiments, an audio signal processing method of the disclosure includes step S801 where a mobile device acquires a first distance between a current position and an initial position. Specifically, in some embodiments, when the mobile device is moved from the initial position to the current the first distance, the first distance can be detected by a distance measurement unit arranged on the mobile device.

Next, in step S802, the wearable device receives the first distance sent by the mobile device. In an example, the wearable device <NUM> and the mobile device <NUM> can create wireless communication connection through a Bluetooth module, so that the mobile device <NUM> can send the first distance to the wearable device <NUM> through the Bluetooth module.

Then in step S803, a wearable device acquires a second distance between the current position of the mobile device and the wearable device, and an initial distance between the mobile device and the wearable device. Specifically, the second distance and the initial distance can be detected by a distance measurement unit arranged on the wearable device. The specific process can refer to the previously described embodiment, which will not be repeated again.

Next in step S804, the wearable device determines a first deflection angle according to the first distance, the second distance and the initial distance, and the wearable device acquires a second deflection angle reflecting its posture change. Specifically, the wearable device can determine the first deflection angle in accordance with the process described in S220, which will not be repeated in the disclosure.

In some embodiments, the second deflection angle can be detected by the angle measurement unit arranged in the wearable device <NUM>. In some other embodiments, the posture change can be detected by an inertial measurement unit arranged in the wearable device <NUM>, and the second deflection angle of the wearable device <NUM> reflecting the posture change can be resolved according to a measured signal from the inertial measurement unit. It will not be repeated again in the disclosure.

In step S805, the wearable device determines 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. Specifically, those skilled in the art can understand and fully implement the step by reference to S240 as described above, which will not be repeated again in the disclosure.

Then in step S806, the wearable device receives an audio signal sent by the mobile device. In an example, the wearable device <NUM> and the mobile device <NUM> can create a wireless communication connection through a Bluetooth module, so that the mobile device <NUM> can send the audio signal to the wearable device <NUM> through the Bluetooth module.

Finally, in step S807, the wearable device processes an audio signal based on the relative position information, to obtain a playback audio. Specifically, after obtaining the relative position information, the wearable device <NUM> can remap the received audio signal in accordance with the process in the previously described embodiment to obtain the playback audio. The specific process can refer to the previously described embodiment, which will not be repeated again.

After obtaining the processed playback audio, the wearable device <NUM> can play the audio through the receiver, so that the user can hear the playback audio with a spatial surround effect.

It can be known from the above descriptions that in the embodiments of the disclosure, the wearable device is used for data processing, and thus the method with a lower requirement for the operational capability of the mobile device is applicable for various mobile devices.

An embodiment of the disclosure provides an audio signal processing device <NUM>, as shown in <FIG>, and in some embodiments, an audio signal processing device of the disclosure includes a first acquiring module <NUM>, which 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.

The audio signal processing device <NUM> also includes a first determining module <NUM>, which is configured to 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. A second acquiring module <NUM> is also included. The Second acquiring module <NUM> is configured to acquire a second deflection angle of the wearable device reflecting a posture change.

The audio signal processing device <NUM> further includes a second determining module <NUM> and a processing module <NUM>. The second determining module <NUM> is configured to 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.

The processing module <NUM> is configured to process an audio signal based on the relative position information, and to obtain a playback audio played by the wearable device.

In some embodiments, the first acquiring module <NUM> is specifically configured to detect and least one of the first distance by a distance measurement unit arranged on the mobile device and the second distance by the distance measurement unit arranged on the mobile device and/or arranged on the wearable device.

In some embodiments, the first determining module <NUM> is specifically 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. 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.

In some embodiments, the second acquiring module <NUM> is specifically configured to perform at least one of 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 initial measuring device arranged on the wearable device.

In some embodiments, the second determining module <NUM> is specifically 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.

In some embodiments, the processing module <NUM> is specifically 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 playback audio.

In some embodiments, the audio signal processing device <NUM> of the disclosure also includes: a detecting module, which is configured to detect a state of a trigger switch on the mobile device, and execute the step of acquiring first rotating information and second rotating information in response to turn-on of the trigger switch.

An embodiment of the disclosure provides an electronic device, including a processor and a memory, storing computer instructions readable by the processor; when the computer instructions are read, the processor executes the method described in any of the above-mentioned embodiments.

An embodiment of the disclosure provides a storage medium used for storing the computer-readable instructions; and the computer-readable instructions are used for enabling a computer to execute the method described in any of the above-mentioned embodiments.

<FIG> shows a structure diagram of an electronic device in some embodiments of the disclosure, and relevant principles of the electronic device and the storage medium of some embodiments of the disclosure are illustrated below in combination with <FIG>.

As shown in <FIG>, an electronic device <NUM> can include one or some of the following components: a processing module <NUM>, a memory <NUM>, a power supply module <NUM>, a multimedia module <NUM>, an audio module <NUM>, an input/output (I/O) interface <NUM>, a sensor module <NUM> and a communication module <NUM>.

The processing module <NUM> generally controls the overall operation of the electronic device <NUM>, such as operations associated with display, phone calls, data communications, camera operations and recording operations. The processing module <NUM> can include one or more processors <NUM> to execute instructions. In addition, the processing module <NUM> can include one or more modules to facilitate interaction of the processing module <NUM> with other components. For example, the processing module <NUM> can include a multimedia module to facilitate interaction of the multimedia module <NUM> with the processing module <NUM>. For another example, the processing module <NUM> can read an executable instruction from the memory to implement related functions of the electronic device.

The memory <NUM> is configured to store various data to support operations on the electronic device <NUM>. Examples of such data include instructions for any application or method operating on the electronic device <NUM>, contact data, phonebook data, messages, images, videos, etc. The memory <NUM> can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable memory programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

The power supply module <NUM> provides power to various components of the electronic device <NUM>. The power supply module <NUM> can include a power management system, one or more power supplies, and other components associated with generating, managing and distributing power to the electronic device <NUM>.

The multimedia module <NUM> includes a display screen providing an output interface between the electronic device <NUM> and a user. In some embodiments, the multimedia module <NUM> includes a front camera and/or a rear camera. When the electronic device <NUM> is in an operation mode, such as shooting mode or video mode, the front camera and/or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zooming capability.

The audio module <NUM> is configured to output and/or input audio signals. For example, the audio module <NUM> includes a microphone (MIC); when the electronic device <NUM> is in an operation mode, such as call mode, record mode and voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory <NUM> or transmitted via the communication module <NUM>. In some embodiments, the audio module <NUM> also includes a speaker for outputting audio signals.

The I/O interface <NUM> provides an interface between the processing module <NUM> and a peripheral interface module, which can be a keyboard, a click wheel or buttons. These buttons can include, but are not limited to, a home button, volume buttons, a start button and a lock button.

The sensor module <NUM> includes one or more sensors for providing various aspects of status assessment for the electronic device <NUM>. For example, the sensor module <NUM> can detect an on/off state of the electronic device <NUM>, and the relative positioning of components, such as components are a display and a keypad of the electronic device <NUM>. The sensor module <NUM> can also detect the position change of the electronic device <NUM> or a component of the electronic device <NUM>, the presence or absence of user contact with the electronic device <NUM>, the direction or acceleration/deceleration of the electronic device <NUM>, and a change in the temperature of the electronic device <NUM>. The sensor module <NUM> can include a proximity sensor which is configured to detect the presence of nearby objects in the absence of any physical contact. The sensor module <NUM> can also include a light sensor, such as CMOS or CCD image sensor, which is used in an imaging application. In some embodiments, the sensor module <NUM> can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

The communication module <NUM> is configured to facilitate wired or wireless communication between the electronic device <NUM> and other devices. The electronic device <NUM> can be accessed to a wireless network based on a communication standard, such as Wi-Fi, <NUM>, <NUM>, <NUM>, <NUM> or <NUM>, or a combination thereof. In one embodiment, the communication module <NUM> receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an embodiment, the communication module <NUM> also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

In an embodiment, the electronic device <NUM> can be implemented by one or more application specific integrated circuits (ASICs), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a micro-controller, a microprocessor or other electronic components.

Claim 1:
An audio signal processing method, comprising the following steps:
acquiring (S210) a first distance s<NUM> between a current position O<NUM> and an initial position O of a mobile device (<NUM>), and a second distance d<NUM> between the current position O<NUM> of the mobile device (<NUM>) and a wearable device (<NUM>); the mobile device (<NUM>) and the wearable device (<NUM>) are in communication connection;
determining (S220) a first deflection angle α of the mobile device (<NUM>) according to the first distance s<NUM>, the second distance d<NUM> and the initial distance between the mobile device (<NUM>) and the wearable device (<NUM>);
acquiring (S230) a second deflection angle β of the wearable device (<NUM>) reflecting a posture change of the wearable device (<NUM>);
determining (S240) relative position information between the mobile device and the wearable device (<NUM>) according to the first deflection angle α, the second deflection angle β and the second distance d<NUM>; and
processing (S250) an audio signal based on the relative position information to obtain a playback audio played by the wearable device (<NUM>);
the method being characterized by the step of determining (S240) relative position information between the mobile device and the wearable device (<NUM>) according to the first deflection angle α, the second deflection angle β and the second distance d<NUM> comprises the following steps:
obtaining (S241) 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 (S242) the relative position information according to the relative azimuth angle and the second distance d<NUM>.