Method for adjusting audio signal, head-mounted display device, storage medium and product
By detecting the wearer's gaze data and the coordinates of target objects in the virtual reality space, the audio signal is adjusted to match the gaze direction, solving the problem of audio signal mismatch with gaze in head-mounted display devices and improving the immersive experience.
Patent Information
- Application Number
- CN202510660046.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-20
AI Technical Summary
The audio signal output by the head-mounted display device does not match the wearer's line of sight, thus disrupting the immersive experience.
By detecting the wearer's gaze data, the coordinates of target virtual objects within the virtual reality space are determined, and the audio signal is adjusted based on the relative position to match the wearer's gaze direction.
It enhances the immersive experience for wearers in head-mounted displays by dynamically adjusting the matching of audio signals with the direction of eye movement, providing a more immersive virtual reality experience.
Smart Images

Figure CN123137604A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of head-mounted display technology, and more particularly to an audio signal modulation method, a head-mounted display device, a storage medium, and a computer program product. Background Technology
[0002] With the continuous development of VR (Virtual Reality) technology, head-mounted display devices have become an important medium for wearers to pursue immersive experiences.
[0003] In related technologies, when a wearer experiences a virtual reality space through a head-mounted display device, the head-mounted display device typically outputs an audio signal that matches the virtual reality space to meet the wearer's needs for an immersive experience.
[0004] However, since the audio signal output by head-mounted displays is usually a fixed audio signal with unchanged sound effects, once the wearer's line of sight changes, the head-mounted display will still output the same audio signal with the same sound effects. This will cause a mismatch between the audio signal and the wearer's line of sight, thus destroying the immersive experience that the wearer obtains when wearing the head-mounted display. Summary of the Invention
[0005] The main objective of this application is to provide an audio signal adjustment method, a head-mounted display device, a storage medium, and a computer program product, aiming to solve the technical problem of mismatch between the audio signal output by the head-mounted display device and the wearer's line of sight in related technologies.
[0006] To achieve the above objectives, this application proposes a method for adjusting an audio signal, comprising:
[0007] Detect the wearer's first line of sight data;
[0008] A preset virtual reality space is determined, and the first virtual coordinates of the target virtual object within the virtual reality space that matches the first line of sight data are determined.
[0009] The first relative position between the wearer and the target virtual object is determined based on the first virtual coordinates;
[0010] The first audio adjustment parameter is determined based on the first relative position, and the initial audio signal is updated based on the first audio adjustment parameter to obtain the first target audio signal.
[0011] In one embodiment, the step of determining the first virtual coordinates of the target virtual object matching the first line-of-sight data within the virtual reality space includes:
[0012] The first line-of-sight data is converted and processed to obtain the target digital signal;
[0013] Based on the target digital signal, multiple virtual objects in the virtual reality space are filtered to determine the target virtual object that matches the target digital signal;
[0014] The coordinates of the target virtual object within the virtual reality space are determined as the first virtual coordinates.
[0015] In one embodiment, after the step of detecting the wearer's first gaze data, the method further includes:
[0016] The duration of gaze retention for the wearer is determined based on the first gaze data.
[0017] If the gaze duration is detected to have reached a preset gaze duration threshold, the step of determining the preset virtual reality space is executed.
[0018] If the gaze duration is not detected to be within the specified duration threshold, the first gaze data is deleted and the step of detecting the wearer's first gaze data is performed.
[0019] In one embodiment, after the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes:
[0020] If a change in the wearer's gaze direction is detected, the wearer's second gaze data will be detected.
[0021] Based on the second line of sight data and the first line of sight data, a line of sight change parameter is determined, and a second audio adjustment parameter is determined based on the line of sight change parameter;
[0022] The second target audio signal is obtained by updating the first target audio signal based on the second audio adjustment parameters.
[0023] In one embodiment, after the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes:
[0024] If a change in the coordinate information of the target virtual object is detected, the second virtual coordinates corresponding to the target virtual object are detected;
[0025] Based on the first virtual coordinates and the second virtual coordinates, coordinate change parameters are determined, and a third audio adjustment parameter is determined based on the coordinate change parameters;
[0026] The third target audio signal is obtained by updating the first target audio signal based on the third audio adjustment parameter.
[0027] In one embodiment, after the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes:
[0028] Detect environmental noise parameters;
[0029] Determine the environmental noise category that matches the environmental noise parameter, and determine the fourth audio adjustment parameter based on the environmental noise category;
[0030] The fourth target audio signal is obtained by updating the first target audio signal based on the fourth audio adjustment parameter.
[0031] In one embodiment, after the step of determining the first audio adjustment parameter based on the first relative position, the method further includes:
[0032] Detect the target playback mode corresponding to the target virtual object;
[0033] Based on a preset mode weight mapping relationship, the audio adjustment weight corresponding to the target playback mode is determined;
[0034] The first audio adjustment parameter is updated according to the audio adjustment weight to obtain the fifth audio adjustment parameter;
[0035] The fifth target audio signal is obtained by updating the initial audio signal based on the fifth audio adjustment parameter.
[0036] In addition, to achieve the above objectives, this application also proposes a head-mounted display device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the audio signal adjustment method as described above.
[0037] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the audio signal adjustment method described above.
[0038] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the audio signal adjustment method described above.
[0039] The audio signal adjustment method provided in this application involves detecting the wearer's first gaze data; determining a preset virtual reality space and determining the first virtual coordinates of a target virtual object within the virtual reality space that matches the first gaze data; determining a first relative position between the wearer and the target virtual object based on the first virtual coordinates; determining a first audio adjustment parameter based on the first relative position; and updating the initial audio signal based on the first audio adjustment parameter to obtain a first target audio signal.
[0040] In this embodiment, when the head-mounted display device is running, it first detects the wearer to determine the wearer's first gaze data. Then, the head-mounted display device reads the virtual reality space displayed to the wearer and determines the first virtual coordinates of the target virtual object that the wearer is looking at in the virtual reality space based on the first gaze data. Next, the head-mounted display device determines the first relative position between the wearer and the target virtual object in the virtual reality space based on the first virtual coordinates. Finally, the head-mounted display device determines the first audio adjustment parameters based on the first relative position and updates the currently playing initial audio signal based on the first audio adjustment parameters to obtain the first target audio signal, so that the first target audio signal heard by the wearer can match his / her gaze direction.
[0041] Thus, this application solves the technical problem of mismatch between the audio signal output by the head-mounted display device and the wearer's gaze direction in the related technology. That is, this application determines the target virtual object that the wearer is looking at in the virtual reality space based on the wearer's gaze data, and determines the relative position between the target virtual object and the wearer in the virtual reality space based on the virtual coordinates of the target virtual object. The audio signal being played is then updated according to the relative position, so that the target audio signal output by the head-mounted display device can match the wearer's gaze direction, thereby improving the immersive experience obtained by the wearer when wearing the head-mounted display device. Attached Figure Description
[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 A flowchart illustrating the method for adjusting the audio signal according to Embodiment 1 of this application;
[0045] Figure 2 This is a schematic diagram of the first relative position involved in an embodiment of the audio signal adjustment method of this application;
[0046] Figure 3 This is a schematic diagram illustrating the position change of a target virtual object in an embodiment of the audio signal adjustment method of this application;
[0047] Figure 4 This is a schematic diagram of the module structure of the audio signal adjustment device according to an embodiment of this application;
[0048] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the audio signal adjustment method in the embodiments of this application.
[0049] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0050] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0051] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0052] It should be noted that, for ease of description, the following description will focus on head-mounted display devices, or mobile terminals, data storage control terminals, PCs, and other terminals connected to the electronic control unit associated with head-mounted display devices.
[0053] It is understood that the head-mounted display device includes, but is not limited to, Virtual Reality (VR) devices (such as VR glasses or VR helmets), Augmented Reality (AR) devices (such as AR glasses or AR helmets), Mixed Reality (MR) devices (such as MR glasses or MR helmets), Extended Reality (XR) devices, or some combination thereof.
[0054] Based on the aforementioned head-mounted display device, the overall concept of the audio signal adjustment method of this application is proposed.
[0055] With the continuous development of VR (Virtual Reality) technology, head-mounted displays have become an important medium for users seeking immersive experiences. In these technologies, when users experience a virtual reality space through a head-mounted display, the device typically outputs an audio signal that matches the virtual reality space to meet the wearer's immersive needs. However, because the audio signal output by the head-mounted display is usually a fixed audio signal with unchanging sound effects, if the wearer's gaze changes, the device will still output the same audio signal with the same sound effects. This leads to a mismatch between the audio signal and the wearer's gaze direction, thus disrupting the immersive experience the wearer obtains when using the head-mounted display.
[0056] To address the above issues, this application provides a method for adjusting an audio signal, comprising: detecting first gaze data of a wearer; determining a preset virtual reality space and determining first virtual coordinates of a target virtual object within the virtual reality space that matches the first gaze data; determining a first relative position between the wearer and the target virtual object based on the first virtual coordinates; determining a first audio adjustment parameter based on the first relative position; and updating an initial audio signal based on the first audio adjustment parameter to obtain a first target audio signal.
[0057] Thus, this application solves the technical problem of mismatch between the audio signal output by the head-mounted display device and the wearer's gaze direction in the related technology. That is, this application determines the target virtual object that the wearer is looking at in the virtual reality space based on the wearer's gaze data, and determines the relative position between the target virtual object and the wearer in the virtual reality space based on the virtual coordinates of the target virtual object. The audio signal being played is then updated according to the relative position, so that the target audio signal output by the head-mounted display device can match the wearer's gaze direction, thereby improving the immersive experience obtained by the wearer when wearing the head-mounted display device.
[0058] Based on the overall concept of the audio signal adjustment method of this application, the embodiments of this application provide an audio signal adjustment method, please refer to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the audio signal adjustment method of this application. In this embodiment, the audio signal adjustment method is applied to a head-mounted display device, such as... Figure 1 As shown, the method for adjusting the audio signal includes steps S10 to S40:
[0059] Step S10: Detect the wearer's first gaze data;
[0060] Step S20: Determine a preset virtual reality space, and determine the first virtual coordinates of the target virtual object within the virtual reality space that matches the first line of sight data;
[0061] It should be noted that the target virtual object is the object that the wearer looks at in the preset virtual reality space while wearing the head-mounted display device. Furthermore, the virtual coordinates are the coordinate values of the target object in the corresponding three-dimensional coordinate system of the virtual reality space.
[0062] In this embodiment, when the head-mounted display device is running, it first detects the wearer to collect the wearer's eye movement data and head posture data. At the same time, the head-mounted display device detects the wearer's head posture data. Then, based on the eye movement data and head posture data, the head-mounted display device can indicate the first gaze data of the wearer's gaze direction. After that, the head-mounted display device determines the virtual reality space being displayed to the wearer and maps the first gaze data to the three-dimensional coordinate system corresponding to the preset virtual reality space to determine the first virtual coordinates of the target virtual object that the wearer is looking at in the virtual reality space.
[0063] For example, during operation, the VR device first detects the wearer's face using its built-in camera to collect eye movement data such as pupil position and corneal reflex point. Simultaneously, the VR device calls its configured IMU (Inertial Measurement Unit) to collect head posture data such as pitch and yaw angles. The VR device then fuses the eye movement data and head posture data to output first gaze data that indicates the wearer's gaze direction. Afterward, the VR device determines the virtual reality space being displayed to the wearer and performs filtering and smoothing processing on the first gaze data, thereby projecting the processed first gaze data onto the virtual reality space to determine the first virtual coordinates of the target virtual object that the wearer is looking at in the virtual reality space.
[0064] In this way, head-mounted display devices can determine the wearer's gaze direction by fusing eye data and head posture data, and quantify the wearer's gaze direction to determine the coordinate information of the target virtual object that the wearer is looking at in the virtual reality space.
[0065] In one feasible implementation, the step of "determining the first virtual coordinates of the target virtual object matching the first line-of-sight data within the virtual reality space" in step S20 above may specifically include steps S201 to S203:
[0066] Step S201: Convert the first line-of-sight data to obtain the target digital signal;
[0067] Step S202: Based on the target digital signal, filter multiple virtual objects in the virtual reality space to determine the target virtual object that matches the target digital signal;
[0068] Step S203: Determine the coordinates of the target virtual object within the virtual reality space as the first virtual coordinates.
[0069] In this embodiment, after determining the virtual reality space, the head-mounted display device first performs noise filtering and format conversion processing on the first gaze data to obtain a digital signal in a standard format, and adds a timestamp tag to the digital signal to generate a target digital signal. Then, the head-mounted display device determines the spatial coordinates of each of the multiple virtual objects in the virtual reality space, and projects the target digital signal into the virtual reality space to calculate the projection path of the gaze direction vector in the virtual reality space coordinates based on the target digital signal. Based on the projection path, the target virtual object being gazed at by the wearer is determined among the multiple virtual objects. Finally, the head-mounted display device determines the coordinate point of the target virtual object in the virtual reality space as the first virtual coordinate.
[0070] For example, after acquiring the wearer's first gaze data, the VR device first calls a preset dynamic cleaning algorithm to filter noise in the first gaze data using a sliding window weighted average method to remove outliers. The filtered first gaze data is then converted into a digital signal in a fixed format, and a timestamp is added to the digital signal to generate a target digital signal. After that, the VR device loads the three-dimensional coordinates of each virtual object in the virtual reality space. The VR device projects the target digital signal into the virtual reality space and calculates the projection path of the gaze direction vector in the virtual reality space based on the gaze direction contained in the target digital signal. The intersection area between each virtual object and the projection path is determined according to the projection path. The VR device then identifies the virtual object with the largest intersection area as the target virtual object that the wearer is looking at in the virtual reality space. Finally, the VR device detects the coordinates of the target virtual object in the virtual reality space and determines the coordinate information as the first virtual coordinates.
[0071] In this way, head-mounted display devices can determine the wearer's gaze direction by fusing eye data and head posture data, and quantify the wearer's gaze direction to determine the coordinate information of the target virtual object that the wearer is looking at in the virtual reality space.
[0072] Step S30: Determine the first relative position between the wearer and the target virtual object based on the first virtual coordinates;
[0073] Step S40: Determine the first audio adjustment parameter based on the first relative position, and update the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal;
[0074] In this embodiment, after determining the first virtual coordinates, the head-mounted display device further determines the wearer's coordinates in the virtual reality space, and calculates the first relative position between the wearer and the target virtual object in the virtual reality space based on the wearer's coordinates and the first virtual coordinates. Finally, the head-mounted display device reads its configured storage module to obtain speaker array parameters that match its configured speakers. The head-mounted display device then determines the first audio adjustment parameters based on the first relative position and the speaker array parameters. The head-mounted display device inputs the first audio adjustment parameters to the speakers so that the speakers update the initial audio signal being played according to the first audio adjustment parameters to generate a first target audio signal that matches the wearer's line of sight.
[0075] For example, please refer to Figure 2 , Figure 2 This is a schematic diagram of the first relative position in an embodiment of the audio signal adjustment method of this application. After determining the first virtual coordinates, the VR device further detects that the wearer's coordinates in the virtual reality space are the origin of the three-dimensional coordinate system corresponding to the virtual reality space coordinates. At this time, the VR device, based on the wearer's coordinates (x... 佩戴者 ,y 佩戴者 ) and the first virtual coordinate (x) 虚拟 ,y 虚拟 The horizontal distance d between the wearer and the target virtual object is calculated. h :
[0076]
[0077] And, calculate the vertical height difference d between the wearer and the target virtual object. v :
[0078] d v =|z 虚拟 -z 佩戴者 |;
[0079] And, calculate the azimuth angle θ between the wearer and the target virtual object:
[0080]
[0081] VR devices will then increase the horizontal distance d h Vertical height difference d v Combined with the azimuth angle θ, it can be obtained to characterize such as Figure 2The first relative position dataset between the wearer and the target virtual object is shown. Finally, the VR device reads its own configured storage module to determine its own configured speaker array parameters. The VR device processes the first relative position dataset and speaker array parameters to determine the optimal parameters based on the azimuth angle θ and the vertical height difference d. v Horizontal distance d h The VR device inputs the first audio adjustment parameter to the speakers to set the volume of each speaker channel, and the speakers update the initial audio signal being played according to the first audio adjustment parameter to generate a first target audio signal that matches the wearer's line of sight.
[0082] In this way, head-mounted display devices can not only keep the output audio signal consistent with the wearer's line of sight, but also adjust the audio signal based on the vertical height difference between the wearer and the target virtual object in the virtual reality space, so that the output audio signal presents a three-dimensional sense of layering in scenes with height differences.
[0083] In this embodiment, when the head-mounted display device is running, it first detects the wearer to collect the wearer's eye movement data and head posture data. Simultaneously, the head-mounted display device detects the wearer's head posture data. Then, based on the eye movement data and head posture data, the head-mounted display device obtains first gaze data indicating the wearer's gaze direction. Next, the head-mounted display device determines the virtual reality space being displayed to the wearer and maps the first gaze data to a preset three-dimensional coordinate system corresponding to the virtual reality space to determine the first virtual coordinates corresponding to the target virtual object being gazed at by the wearer in the virtual reality space. Finally, the head-mounted display device determines the wearer's position within the aforementioned... The head-mounted display device (HMD) calculates the wearer's coordinates in the virtual reality space and the first relative position between the wearer and the target virtual object based on the wearer's coordinates and the first virtual coordinates. Finally, the HMD reads its own configured storage module to obtain the speaker array parameters that match its configured speakers. The HMD then determines the first audio adjustment parameters based on the first relative position and the speaker array parameters. The HMD inputs the first audio adjustment parameters to the speakers so that the speakers update the initial audio signal being played according to the first audio adjustment parameters to generate a first target audio signal that matches the wearer's line of sight.
[0084] Thus, this application solves the technical problem of mismatch between the audio signal output by the head-mounted display device and the wearer's gaze direction in the related technology. That is, this application determines the target virtual object that the wearer is looking at in the virtual reality space based on the wearer's gaze data, and determines the relative position between the target virtual object and the wearer in the virtual reality space based on the virtual coordinates of the target virtual object. The audio signal being played is then updated according to the relative position, so that the target audio signal output by the head-mounted display device can match the wearer's gaze direction, thereby improving the immersive experience obtained by the wearer when wearing the head-mounted display device.
[0085] Based on the first embodiment of this application, a second embodiment of this application is proposed herein. In this second embodiment, content that is the same as or similar to the above embodiments can be referred to the above description and will not be repeated hereafter. Furthermore, after step S10, the audio signal adjustment method of this application may further include steps A10 to A30:
[0086] Step A10: Determine the duration of gaze retention for the wearer based on the first gaze data;
[0087] Step A20: If the gaze duration is detected to have reached a preset gaze duration threshold, perform the step of determining the preset virtual reality space;
[0088] Step A30: If the gaze duration is not detected to be within the gaze duration threshold, delete the first gaze data and perform the step of detecting the wearer's first gaze data.
[0089] It should be noted that the gaze duration is the length of time the wearer's gaze is focused on the same virtual object or area. Furthermore, this gaze duration threshold is a preset time threshold value used to determine whether the wearer's gaze is a valid fixation (exceeding the threshold) or an invalid momentary deviation (not reaching the threshold).
[0090] In this embodiment, after detecting the wearer's first gaze data, the head-mounted display device further determines the gaze duration corresponding to the wearer's current gaze direction based on the first gaze data. Then, the head-mounted display device reads its own configured storage module to obtain a preset gaze duration threshold and compares the gaze duration with the gaze duration threshold. If the gaze duration reaches the gaze duration threshold, the first gaze data is determined to be a valid gaze, and the target virtual object being gazed at by the wearer in the virtual reality space is determined based on the first gaze data. Similarly, if the head-mounted display device detects that the gaze duration has not reached the gaze duration threshold, the first gaze data is determined to be an invalid gaze. In this case, the head-mounted display device re-detects the wearer to collect new gaze data.
[0091] For example, after detecting the wearer's first gaze data, the VR device first determines the duration of the wearer's gaze based on the first gaze data. Then, the VR device reads the aforementioned storage module to obtain a preset gaze duration threshold and compares the gaze duration with the gaze duration threshold. If the VR device detects that the gaze duration reaches the gaze duration threshold, it determines that the wearer has maintained their gaze in the current gaze direction for a certain period of time, that is, the wearer's first gaze data is valid data. At this time, the VR device directly calculates the projection path of the gaze direction vector in the virtual reality space based on the first gaze data, and determines the intersection area of each virtual object with the projection path based on the projection path, thereby determining the target virtual object that the wearer is gazing at in the virtual reality space, and determining the first virtual coordinates of the target virtual object. Similarly, if the VR device detects that the gaze duration does not reach the gaze duration threshold, it determines that the wearer has maintained their gaze in the current gaze direction for a shorter time, that is, the wearer's first gaze data is invalid data. At this time, the VR device deletes the first gaze data and calls the aforementioned camera device to detect the wearer in order to collect new second gaze data.
[0092] In this way, head-mounted displays can filter out the wearer's instantaneous gaze shifts and retain only the gaze data of the wearer's actual focus. This allows audio adjustment operations to be triggered only for the valid gaze target, reducing the false triggering of irrelevant sound effects and lowering the data processing load of the head-mounted display.
[0093] Based on the first and / or second embodiments of this application, a third embodiment of this application is proposed herein. In this third embodiment, content that is the same as or similar to the above embodiments can be referred to the above description and will not be repeated hereafter. Furthermore, after step S40 above, the audio signal adjustment method of this application may further include steps B10 to B30:
[0094] Step B10: If a change in the wearer's gaze direction is detected, detect the wearer's second gaze data;
[0095] Step B20: Determine the gaze change parameter based on the second gaze data and the first gaze data, and determine the second audio adjustment parameter according to the gaze change parameter;
[0096] Step B30: Update the first target audio signal based on the second audio adjustment parameters to obtain the second target audio signal.
[0097] It should be noted that this line of sight change parameter is a quantitative indicator that shows how the wearer's line of sight changes over time, including but not limited to: angle change value, speed change value, acceleration change value, etc.
[0098] In this embodiment, after the head-mounted display device controls the speaker to play the first target audio signal, it can continue to detect the wearer. If a change in the wearer's gaze direction is detected, the device collects second gaze data after the change. Then, the head-mounted display device compares the second gaze data with the first gaze data to determine gaze change parameters that characterize the wearer's gaze change. The head-mounted display device then adjusts the volume of each channel in the speaker according to the gaze change parameters and the speaker array parameters to generate second audio adjustment parameters. Finally, the head-mounted display device inputs the second audio adjustment parameters to the speaker, causing the speaker to update the playing first target audio signal according to the second audio adjustment parameters to generate a second target audio signal that matches the wearer's gaze direction.
[0099] For example, after the VR device controls the speaker to play the first target audio signal, it can continue to detect the wearer. If it detects a deviation between the wearer's gaze direction and the gaze direction in the first gaze data, it determines that the wearer's gaze direction has changed. At this point, the VR device uses the camera to detect the wearer, thereby detecting the second gaze direction after the change. Then, the VR device compares the first and second gaze data to calculate a first angle change value and a first speed change value. When the VR device detects a high first speed change value, it shortens the audio input. The frequency adjustment delay is adjusted and the volume gradient is reduced. Similarly, when the first speed change value is detected to be low, the original audio adjustment logic is maintained. Furthermore, the VR device adjusts the volume of each speaker channel according to the aforementioned speaker array parameters and the first angle change value. Then, based on the first speed change value and the first angle change value, a second audio adjustment parameter is generated to control the first target audio signal. Finally, the VR device inputs the first audio adjustment parameter to the speaker so that the speaker updates the playing first target audio signal according to the second audio adjustment parameter, so that after the wearer's line of sight changes, the audio signal heard by the wearer can reflect the position information of the target virtual object.
[0100] In this way, the head-mounted display device can quickly adjust the audio when the wearer changes their gaze, avoiding the situation where the audio signal remains unchanged after the wearer adjusts their gaze, and ensuring that the wearer can still obtain a high level of immersion experience while adjusting their gaze direction.
[0101] Based on the embodiments of this application, a fourth embodiment of this application is proposed herein. In this fourth embodiment, content that is the same as or similar to the embodiments described above can be referred to the above description and will not be repeated hereafter. Furthermore, after step S40, the audio signal adjustment method of this application may further include steps C10 to C30:
[0102] Step C10: If a change in the coordinate information of the target virtual object is detected, the second virtual coordinates corresponding to the target virtual object are detected;
[0103] Step C20: Determine coordinate change parameters based on the first virtual coordinates and the second virtual coordinates, and determine the third audio adjustment parameters based on the coordinate change parameters;
[0104] Step C30: Update the first target audio signal based on the third audio adjustment parameter to obtain the third target audio signal.
[0105] It should be noted that the coordinate change parameter is a quantitative indicator that shows the position change of the target virtual object in the aforementioned virtual reality space, including but not limited to: angle change value, velocity change value, acceleration change value, etc.
[0106] In this embodiment, after the head-mounted display device controls the speaker to play the first target audio signal, it can also detect the first virtual coordinates of the target virtual object. Upon detecting an update in the first virtual coordinates, it determines the second virtual coordinates of the target virtual object after movement. Then, the head-mounted display device compares the second and first virtual coordinates to determine coordinate change parameters that characterize the change in the target virtual object's position. The head-mounted display device then adjusts the volume of each channel within the speaker according to the coordinate change parameters and the speaker array parameters to generate third audio adjustment parameters. Finally, the head-mounted display device inputs the third audio adjustment parameters to the speaker, causing the speaker to update the playing first target audio signal according to the third audio adjustment parameters, thereby generating a third target audio signal that matches the wearer's line of sight.
[0107] For example, please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the position change of a target virtual object in an embodiment of the audio signal adjustment method of this application; after the VR device controls the speaker to play the first target audio signal, it can also detect the target virtual object in the virtual reality space, thereby detecting the first virtual coordinates of the target virtual object in real time. At this time, if... Figure 3As shown, if the VR device detects a change in the coordinate information of the target virtual object, it detects the second virtual coordinate of the target virtual object. Then, the VR device detects the second virtual coordinate and the first virtual coordinate to determine the second angle change value and the second speed change value of the target virtual object during its movement. At this time, when the VR device detects a high second speed change value, it shortens the audio adjustment delay and reduces the volume gradient. Similarly, when the detected second speed change value is low, it maintains the original audio adjustment logic. Furthermore, the VR device adjusts the volume of each speaker channel according to the aforementioned speaker array parameters and the second angle change value, thereby generating a third audio adjustment parameter for controlling the first audio signal. Finally, the VR device inputs the third audio adjustment parameter to the speaker so that the speaker updates the playing first target audio signal according to the third audio adjustment parameter, so that after the wearer's line of sight changes, the audio signal heard by the wearer can reflect the third target audio signal containing the position information of the target virtual object.
[0108] In this way, the head-mounted display device can quickly adjust the audio when the target virtual object being looked at by the wearer moves, avoiding the situation where the audio signal remains unchanged after the wearer adjusts their gaze, and ensuring that the wearer can still obtain a high level of immersion experience while the target virtual object changes its position.
[0109] Based on the embodiments of this application, a fifth embodiment of this application is proposed herein. In this fifth embodiment, content that is the same as or similar to the embodiments described above can be referred to the above description and will not be repeated hereafter. Furthermore, after step S40, the audio signal adjustment method of this application may further include steps D10 to D30:
[0110] Step D10: Detect ambient noise parameters;
[0111] Step D20: Determine the environmental noise category that matches the environmental noise parameter, and determine the fourth audio adjustment parameter based on the environmental noise category;
[0112] Step D30: Update the first target audio signal based on the fourth audio adjustment parameter to obtain the fourth target audio signal.
[0113] It should be noted that this environmental noise parameter is a quantitative indicator that can quantify the noise level in the wearer's environment. Understandably, head-mounted displays can collect environmental noise parameters corresponding to different categories of environmental noise, such as vehicle engine noise and wind noise.
[0114] In this embodiment, after the head-mounted display device controls the speaker to play the first target audio signal, it can also call its own configured detection module to detect the environment in which the wearer is located to determine the ambient noise. Then, the head-mounted display device extracts the noise characteristics of the ambient noise parameters and determines the matching ambient noise category based on the noise characteristics. The head-mounted display device queries the preset noise category-adjustment parameter mapping relationship to determine the fourth audio adjustment parameter that matches the ambient noise category. Finally, the head-mounted display device inputs the fourth audio adjustment parameter to the speaker so that the speaker updates the first target audio signal being played according to the fourth audio adjustment parameter to generate a fourth target audio signal that matches the wearer's line of sight.
[0115] For example, after the VR device controls the speaker to play the first target audio signal, it can first call its own configured microphone array to detect the environment around the wearer to extract the environmental noise parameters. Then, the VR device extracts the noise signal frequency and noise signal intensity contained in the environmental noise parameters, thereby determining the energy proportion of low-frequency, mid-frequency, and high-frequency signals in the environmental noise signal according to the noise frequency. Then, based on the energy proportion, noise intensity, and noise duration, it queries the preset classification rules to determine the environmental noise category corresponding to the environmental noise parameter as vehicle engine sound / wind sound / human voice. The VR device obtains the preset noise category-adjustment parameter mapping relationship to determine the fourth audio adjustment parameter that matches the environmental noise category based on the noise category-adjustment parameter mapping relationship. Finally, the VR device inputs the fourth audio adjustment parameter to the speaker so that the speaker updates the first target audio signal being played according to the fourth audio adjustment parameter to obtain the fourth audio signal, thereby enabling the generated fourth target audio signal to match the wearer's line of sight and reducing the environmental noise contained in the fourth target audio signal.
[0116] In this way, head-mounted display devices can adopt different audio adjustment strategies in different noise scenarios according to different noise types, thereby ensuring that the output audio signal not only matches the wearer's line of sight, but also matches the changes in the environment.
[0117] Based on the embodiments of this application, a sixth embodiment of this application is proposed herein. In this sixth embodiment, content that is the same as or similar to the embodiments described above can be referred to the above description and will not be repeated hereafter. Furthermore, after the step of "determining the first audio adjustment parameter according to the first relative position" in step S40 above, the audio signal adjustment method of this application may further include steps E10 to E40:
[0118] Step E10: Detect the target playback mode corresponding to the target virtual object;
[0119] Step E20: Based on the preset mode weight mapping relationship, determine the audio adjustment weight corresponding to the target playback mode;
[0120] Step E30: Update the first audio adjustment parameter according to the audio adjustment weight to obtain the fifth audio adjustment parameter;
[0121] Step E40: Update the initial audio signal based on the fifth audio adjustment parameter to obtain the fifth target audio signal.
[0122] In this embodiment, after determining the first audio adjustment parameter, the head-mounted display device can also detect the attribute tags of the target virtual object, thereby determining the corresponding target playback mode based on the attribute tags and the current scene type. Then, the head-mounted display device reads the aforementioned storage module to obtain a preset mode weight mapping relationship, and then queries the mode weight mapping relationship based on the target playback mode to determine the audio adjustment weight that matches the target playback mode. Next, the head-mounted display device superimposes the audio adjustment weight with the first audio adjustment parameter to generate a fifth audio adjustment parameter that matches the target playback mode. Finally, the head-mounted display device inputs the fifth audio adjustment parameter to the speaker so that the speaker updates the currently playing initial audio signal according to the fifth audio adjustment parameter to generate a fifth target audio signal that matches the wearer's line of sight.
[0123] For example, after determining the first audio adjustment parameter, the VR device can also read the attribute tag of the target virtual object and determine the target playback mode of the target virtual object as an explosion sound effect mode / voice prompt mode, etc., based on the attribute tag and the scene type of the virtual reality space. Then, the VR device reads the storage module to obtain a preset mode weight mapping table, and queries the mode weight mapping table based on the target playback mode to determine the audio adjustment weight corresponding to the explosion sound effect mode / voice prompt mode. After that, the VR device combines the audio adjustment weight and the first audio adjustment parameter to generate the fifth audio adjustment parameter. Finally, the VR device inputs the fifth audio adjustment parameter to the speaker so that the speaker updates the initial audio signal being played according to the fifth audio adjustment parameter to generate a fifth target audio signal that matches the wearer's line of sight.
[0124] In this way, head-mounted displays can make audio signals in different playback modes have significant differences in characteristics, thereby further enhancing the wearer's experience.
[0125] This application also provides an audio signal adjustment device, please refer to... Figure 4 The audio signal adjustment device includes:
[0126] The gaze detection module 10 is used to detect the wearer's first gaze data;
[0127] The object detection module 20 is used to determine a preset virtual reality space and determine the first virtual coordinates of the target virtual object that matches the first line of sight data within the virtual reality space.
[0128] Position calculation module 30 is used to determine the first relative position between the wearer and the target virtual object based on the first virtual coordinates;
[0129] The audio adjustment module 40 is used to determine the first audio adjustment parameter according to the first relative position, and update the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal.
[0130] In one feasible implementation, the object detection module 20 is further configured to:
[0131] The first line-of-sight data is converted and processed to obtain the target digital signal;
[0132] Based on the target digital signal, multiple virtual objects in the virtual reality space are filtered to determine the target virtual object that matches the target digital signal;
[0133] The coordinates of the target virtual object within the virtual reality space are determined as the first virtual coordinates.
[0134] In one feasible implementation, the gaze detection module 10 is further configured to:
[0135] The duration of gaze retention for the wearer is determined based on the first gaze data.
[0136] If the gaze duration is detected to have reached a preset gaze duration threshold, the step of determining the preset virtual reality space is executed.
[0137] If the gaze duration is not detected to be within the specified duration threshold, the first gaze data is deleted and the step of detecting the wearer's first gaze data is performed.
[0138] In one feasible implementation, the audio adjustment module 40 is further configured to:
[0139] If a change in the wearer's gaze direction is detected, the wearer's second gaze data will be detected.
[0140] Based on the second line of sight data and the first line of sight data, a line of sight change parameter is determined, and a second audio adjustment parameter is determined based on the line of sight change parameter;
[0141] The second target audio signal is obtained by updating the first target audio signal based on the second audio adjustment parameters.
[0142] In one feasible implementation, the audio adjustment module 40 is further configured to:
[0143] If a change in the coordinate information of the target virtual object is detected, the second virtual coordinates corresponding to the target virtual object are detected;
[0144] Based on the first virtual coordinates and the second virtual coordinates, coordinate change parameters are determined, and a third audio adjustment parameter is determined based on the coordinate change parameters;
[0145] The third target audio signal is obtained by updating the first target audio signal based on the third audio adjustment parameter.
[0146] In one feasible implementation, the audio adjustment module 40 is further configured to:
[0147] Detect environmental noise parameters;
[0148] Determine the environmental noise category that matches the environmental noise parameter, and determine the fourth audio adjustment parameter based on the environmental noise category;
[0149] The fourth target audio signal is obtained by updating the first target audio signal based on the fourth audio adjustment parameter.
[0150] In one feasible implementation, the audio adjustment module 40 is further configured to:
[0151] Detect the target playback mode corresponding to the target virtual object;
[0152] Based on a preset mode weight mapping relationship, the audio adjustment weight corresponding to the target playback mode is determined;
[0153] The first audio adjustment parameter is updated according to the audio adjustment weight to obtain the fifth audio adjustment parameter;
[0154] The fifth target audio signal is obtained by updating the initial audio signal based on the fifth audio adjustment parameter.
[0155] The audio signal adjustment device provided in this application, employing the audio signal adjustment method described in the above embodiments, can solve the technical problem in related technologies where the audio signal output by a head-mounted display device does not match the wearer's line of sight. Compared with the prior art, the beneficial effects of the audio signal adjustment device provided in this application are the same as those of the audio signal adjustment method provided in the above embodiments, and other technical features in the audio signal adjustment device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0156] This application provides a head-mounted display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the audio signal adjustment method in the first embodiment described above.
[0157] The following is for reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing the head-mounted display device of the embodiments of this application. The head-mounted display device in the embodiments of this application may include, but is not limited to, head-mounted display devices such as Virtual Reality (VR) devices (e.g., VR glasses or VR helmets), Augmented Reality (AR) devices (e.g., AR glasses or AR helmets), Mixed Reality (MR) devices (e.g., MR glasses or MR helmets), Extended Reality (XR) devices, or some combination thereof. Figure 5 The head-mounted display device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0158] like Figure 5As shown, the head-mounted display device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the head-mounted display device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the head-mounted display device to communicate wirelessly or wiredly with other devices to exchange data. Although head-mounted display devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0159] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0160] The head-mounted display device provided in this application, employing the audio signal adjustment method described in the above embodiments, can solve the technical problem in related technologies where the audio signal output by the head-mounted display device does not match the wearer's line of sight. Compared with the prior art, the beneficial effects of the head-mounted display device provided in this application are the same as those of the audio signal adjustment method provided in the above embodiments, and other technical features of this head-mounted display device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0161] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0162] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0163] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to perform the audio signal adjustment method in the above embodiments.
[0164] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0165] The aforementioned computer-readable storage medium may be included in the head-mounted display device; or it may exist independently and not assembled into the head-mounted display device.
[0166] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a head-mounted display device, cause the head-mounted display device to: detect first gaze data of the wearer; determine a preset virtual reality space and determine first virtual coordinates of a target virtual object within the virtual reality space that matches the first gaze data; determine a first relative position between the wearer and the target virtual object based on the first virtual coordinates; determine a first audio adjustment parameter based on the first relative position; and update an initial audio signal based on the first audio adjustment parameter to obtain a first target audio signal.
[0167] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the wearer's computer, partially on the wearer's computer, as a standalone software package, partially on the wearer's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the wearer's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0168] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0169] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0170] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for performing the above-described audio signal adjustment method, which can solve the technical problem in related technologies where the audio signal output by the head-mounted display device does not match the wearer's line of sight. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the audio signal adjustment method provided in the above embodiments, and will not be repeated here.
[0171] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the audio signal adjustment method described above.
[0172] The computer program product provided in this application can solve the technical problem of mismatch between the audio signal output by the head-mounted display device and the wearer's line of sight in related technologies. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the audio signal adjustment method provided in the above embodiments, and will not be repeated here.
[0173] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for adjusting an audio signal, characterized in that, The method for adjusting the audio signal includes: Detect the wearer's first line of sight data; A preset virtual reality space is determined, and the first virtual coordinates of the target virtual object within the virtual reality space that matches the first line of sight data are determined. The first relative position between the wearer and the target virtual object is determined based on the first virtual coordinates; The first audio adjustment parameter is determined based on the first relative position, and the initial audio signal is updated based on the first audio adjustment parameter to obtain the first target audio signal.
2. The method for adjusting audio signals as described in claim 1, characterized in that, The step of determining the first virtual coordinates of the target virtual object matching the first line-of-sight data within the virtual reality space includes: The first line-of-sight data is converted and processed to obtain the target digital signal; Based on the target digital signal, multiple virtual objects in the virtual reality space are filtered to determine the target virtual object that matches the target digital signal; The coordinates of the target virtual object within the virtual reality space are determined as the first virtual coordinates.
3. The method for adjusting audio signals as described in claim 1, characterized in that, Following the step of detecting the wearer's first gaze data, the method further includes: The duration of gaze retention for the wearer is determined based on the first gaze data. If the gaze duration is detected to have reached a preset gaze duration threshold, the step of determining the preset virtual reality space is executed. If the gaze duration is not detected to be within the specified duration threshold, the first gaze data is deleted and the step of detecting the wearer's first gaze data is performed.
4. The method for adjusting audio signals as described in claim 1, characterized in that, After the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes: If a change in the wearer's gaze direction is detected, the wearer's second gaze data will be detected; Based on the second line of sight data and the first line of sight data, a line of sight change parameter is determined, and a second audio adjustment parameter is determined based on the line of sight change parameter; The second target audio signal is obtained by updating the first target audio signal based on the second audio adjustment parameters.
5. The method for adjusting audio signals as described in claim 1, characterized in that, After the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes: If a change in the coordinate information of the target virtual object is detected, the second virtual coordinates corresponding to the target virtual object are detected; Based on the first virtual coordinates and the second virtual coordinates, coordinate change parameters are determined, and a third audio adjustment parameter is determined based on the coordinate change parameters; The third target audio signal is obtained by updating the first target audio signal based on the third audio adjustment parameter.
6. The method for adjusting audio signals as described in claim 1, characterized in that, After the step of updating the initial audio signal based on the first audio adjustment parameter to obtain the first target audio signal, the method further includes: Detect environmental noise parameters; Determine the environmental noise category that matches the environmental noise parameter, and determine the fourth audio adjustment parameter based on the environmental noise category; The fourth target audio signal is obtained by updating the first target audio signal based on the fourth audio adjustment parameter.
7. The method for adjusting audio signals as described in claim 1, characterized in that, After the step of determining the first audio adjustment parameter based on the first relative position, the method further includes: Detect the target playback mode corresponding to the target virtual object; Based on a preset mode weight mapping relationship, the audio adjustment weight corresponding to the target playback mode is determined; The first audio adjustment parameter is updated according to the audio adjustment weight to obtain the fifth audio adjustment parameter; The fifth target audio signal is obtained by updating the initial audio signal based on the fifth audio adjustment parameter.
8. A head-mounted display device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for adjusting an audio signal as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the audio signal adjustment method as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the method for adjusting an audio signal as described in any one of claims 1 to 7.
