Audio output method and device, communication device and storage medium

CN118575482APending Publication Date: 2024-08-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280001632.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-05-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing spatial audio technologies, such as Dolby Atmos, cannot accurately represent the direction of the sound source in virtual reality (VR) and augmented reality (AR), resulting in users being unable to distinguish the source of the sound in the virtual space, affecting the user experience.

Method used

By determining the angle information and orientation information of the audio transmitter and receiver in the virtual space, the audio emission angle is calculated, and the audio data is rendered according to the angle to generate an audio signal containing emission angle characteristics, so that the receiving end user can distinguish the sound Source direction in virtual space.

Benefits of technology

It improves the user's communication experience in the virtual space and enhances the real-time and authenticity of audio in the virtual space by accurately representing the direction of the sound source.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575482A
    Figure CN118575482A
Patent Text Reader

Abstract

The invention relates to an audio output method and device, a communication device and a storage medium, and the audio output method comprises the steps: determining the orientation information of a transmitting end of an audio in a virtual space, and the angle information of a receiving end of the audio and the angle information of the transmitting end in the virtual space; determining an audio emission angle of the sending end relative to the receiving end in the virtual space according to the angle information and the orientation information; rendering audio data at least according to the audio emission angle to obtain an audio signal; and outputting the audio signal. According to the method and the device, when the audio data is rendered, the audio emission angle of the sending end relative to the receiving end is considered, so that the rendered audio signal can contain the characteristics related to the audio emission angle, and a user at the receiving end can distinguish the source direction of sound in the virtual space when hearing the audio signal; and the communication experience of the user in the virtual space can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Audio output method and device, communication device and storage medium Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular, to an audio output method, an audio output device, a communication device, and a computer-readable storage medium. Background Art

[0002] Currently, VR (Virtual Reality) / AR (Augmented Reality) is mainly implemented in games and film and television scenes. The main implementation areas are vision, and spatial audio has not yet been popularized in audio.

[0003] To achieve audio communication in VR / AR, spatial audio technology is needed. Currently, spatial audio technology is relatively mature in multimedia playback, such as Dolby Atmos, DTS (Digital Theatre System), Sony 360 and other audio formats, but these technologies currently have some problems.

[0004] Taking the Dolby Atmos format as an example, Dolby Atmos format audio is all post-produced, that is, recording a sound track as an object sound, and then using production software to assign the spatial position in the metadata to each time point of this sound. It is only suitable as an audio storage format for offline playback.

[0005] Although Dolby Atmos adds the object's position information, it does not add the object's sound angle. Therefore, during playback, the object's sound can only be played back as a non-directional sound. Therefore, Dolby Atmos only has spatial position information during playback, resulting in users being unable to distinguish the direction of the sound's source, affecting the user's VR / AR experience.

[0006] Summary of the Invention

[0007] In view of this, embodiments of the present disclosure provide an audio output method, an audio output device, a communication device, and a computer-readable storage medium to solve the technical problems in the related art.

[0008] According to a first aspect of an embodiment of the present disclosure, an audio output method is proposed, comprising: determining orientation information of an audio transmitter in a virtual space, and angle information between a receiving end of the audio and the transmitter in the virtual space; determining an audio emission angle of the transmitter relative to the receiving end in the virtual space based on the angle information and the orientation information; rendering audio data at least based on the audio emission angle to obtain an audio signal; and outputting the audio signal.

[0009] Optionally, rendering the audio data at least according to the audio emission angle to obtain an audio signal includes: determining a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter according to the audio emission angle; rendering the audio data according to the first gain coefficient and / or the low-pass filter to obtain the audio signal; wherein the first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

[0010] Optionally, rendering the audio data at least according to the audio emission angle to obtain an audio signal includes: determining the distance between the receiving end and the transmitting end in the virtual space; determining a second gain coefficient according to the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range; rendering the audio data according to the second gain coefficient to obtain a signal to be output; rendering the signal to be output according to the audio emission angle to obtain the audio signal.

[0011] Optionally, rendering the audio data at least according to the audio emission angle to obtain an audio signal includes: determining the first position of the transmitting end in the virtual space, the second position of the receiving end in the virtual space, and the three-dimensional shape and reflection coefficient of the room in which the transmitting end and the receiving end are located in the virtual space; rendering the audio data according to the audio emission angle to obtain a signal to be output; generating reverberation according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and adding it to the signal to be output to obtain the audio signal.

[0012] Optionally, rendering the audio data at least according to the audio emission angle to obtain an audio signal includes: determining the audio receiving angle of the receiving end relative to the transmitting end in the virtual space according to the angle information and the orientation information; rendering the audio data according to the audio emission angle to obtain a signal to be output; rendering the signal to be output according to the head-related transform function HRTF and / or the amplitude vector synthesis positioning VBAP algorithm and the audio receiving angle to obtain the audio signal.

[0013] According to a second aspect of an embodiment of the present disclosure, an audio output device is proposed, comprising: a processing module configured to determine orientation information of an audio transmitter in a virtual space, and angle information between a receiving end of the audio and the transmitter in the virtual space; determining an audio emission angle of the transmitter relative to the receiving end in the virtual space based on the angle information and the orientation information; rendering audio data at least based on the audio emission angle to obtain an audio signal; and an output module configured to output the audio signal.

[0014] Optionally, the processing module is configured to determine a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter based on the audio emission angle; render the audio data according to the first gain coefficient and / or the low-pass filter to obtain the audio signal; wherein the first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

[0015] Optionally, the processing module is configured to determine the distance between the receiving end and the transmitting end in the virtual space; determine a second gain coefficient based on the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range; render the audio data according to the second gain coefficient to obtain a signal to be output; and render the signal to be output according to the audio emission angle to obtain the audio signal.

[0016] Optionally, the processing module is configured to determine a first position of the transmitting end in the virtual space, a second position of the receiving end in the virtual space, and a three-dimensional shape and reflection coefficient of the room in which the transmitting end and the receiving end are located in the virtual space; render the audio data according to the audio emission angle to obtain a signal to be output; generate reverberation according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and add it to the signal to be output to obtain the audio signal.

[0017] Optionally, the processing module is configured to determine the audio receiving angle of the receiving end relative to the transmitting end in the virtual space based on the angle information and the orientation information; render the audio data according to the audio emission angle to obtain the signal to be output; and render the signal to be output according to the head-related transform function HRTF and / or the amplitude vector synthesis positioning VBAP algorithm and the audio receiving angle to obtain the audio signal.

[0018] According to a third aspect of an embodiment of the present disclosure, a communication device is proposed, comprising: a processor; and a memory for storing a computer program; wherein, when the computer program is executed by the processor, the above-mentioned audio output method is implemented.

[0019] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided for storing a computer program. When the computer program is executed by a processor, the steps in the above-mentioned audio output method are implemented.

[0020] According to an embodiment of the present disclosure, when rendering audio data, the audio emission angle of the transmitting end relative to the receiving end is taken into consideration, so that the rendered audio signal can contain characteristics related to the audio emission angle, so that when the user at the receiving end hears the audio signal, he or she can distinguish the source direction of the sound in the virtual space, which is conducive to improving the user's communication experience in the virtual space. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] FIG1 is a schematic flow chart showing an audio output method according to an embodiment of the present disclosure.

[0023] FIG2 is a schematic diagram showing the spatial relationship between a receiving end and a transmitting end according to an embodiment of the present disclosure.

[0024] FIG3 is a schematic flow chart showing another audio output method according to an embodiment of the present disclosure.

[0025] FIG4 is a schematic flowchart showing another audio output method according to an embodiment of the present disclosure.

[0026] FIG5 is a schematic flowchart showing another audio output method according to an embodiment of the present disclosure.

[0027] FIG6 is a schematic flowchart showing another audio output method according to an embodiment of the present disclosure.

[0028] FIG7 is a schematic flowchart showing yet another audio output method according to an embodiment of the present disclosure.

[0029] FIG8 is a schematic block diagram showing an audio output device according to an embodiment of the present disclosure.

[0030] FIG9 is a schematic block diagram showing a device for audio output according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present disclosure.

[0032] The terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0033] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0034] For the purposes of brevity and ease of understanding, the terms "greater than," "less than," "higher than," and "lower than" are used herein to describe magnitude relationships. However, those skilled in the art will understand that the term "greater than" also encompasses the meaning of "greater than or equal to," and "less than" also encompasses the meaning of "less than or equal to," and the term "higher than" also encompasses the meaning of "higher than or equal to," and "lower than" also encompasses the meaning of "lower than or equal to."

[0035] Figure 1 is a schematic flow chart of an audio output method according to an embodiment of the present disclosure. The method shown in this embodiment can be applied to devices such as VR devices and AR devices that can serve as receivers of audio signals in a virtual space.

[0036] As shown in FIG1 , the audio output method may include the following steps:

[0037] In step S101, determining the orientation information of the audio transmitter in the virtual space, and the angle information of the audio receiver and the audio transmitter in the virtual space;

[0038] In step S102, determining an audio transmission angle of the transmitting end relative to the receiving end in the virtual space according to the angle information and the orientation information;

[0039] In step S103, the audio data is rendered at least according to the audio emission angle to obtain an audio signal;

[0040] In step S104, the audio signal is output.

[0041] In one embodiment, the virtual space may be a virtual space in a VR scene or a virtual space in an AR scene, and the specific space may be determined based on the application scenario.

[0042] The application scenarios of the embodiments of the present disclosure include but are not limited to at least one of the following:

[0043] Remote multi-person virtual meeting scenarios, remote online class scenarios, online concert scenarios, immersive gaming scenarios, and audio-visual interactive scenarios

[0044] For example, in a remote multi-person virtual conference scenario, the virtual space may include a virtual conference room, the sending end may include the speaker in the virtual space, and the receiving end may be the user of the VR / AR device, such as a participant.

[0045] For example, in a remote online class scenario, the virtual scene may include a virtual classroom, the sending end may include the teacher and the speaking students in the virtual space, and the receiving end may be the user of the VR / AR device, such as a student.

[0046] For example, in an online concert scenario, the virtual scene may include a virtual concert hall, the sending end may include performers and singers in the virtual space, and the receiving end may be the user of the VR / AR device, such as an audience.

[0047] For example, in an immersive game scene, the virtual scene may include a game scene, the initiating end may include other players and NPCs (Non-Player Characters) in the virtual space, and the receiving end may be a user of a VR / AR device, such as a player.

[0048] For example, in an audio-visual interaction scenario, the virtual scene may include a virtual cinema, the sending end may include the speakers in the virtual space, and the receiving end may be the user of the VR / AR device, such as the audience.

[0049] FIG2 is a schematic diagram showing the spatial relationship between a receiving end and a transmitting end according to an embodiment of the present disclosure.

[0050] As shown in Figure 2, the sending end is located at point A in the virtual space, and the receiving end is located at point B in the virtual space. The coordinate system is constructed with point B as the origin, the yBz plane is the reference plane of the receiving end, and the positive direction of the y-axis is the reference direction of the receiving end, that is, the positive direction of the y-axis is the rotation angle of 0 degrees, and the angle of rotation increases along the counterclockwise direction in the xBy plane.

[0051] The first position of the sender in the virtual space is (x a ,y a ,z a ), the second position of the receiving end in the virtual space is (x b ,y b ,z b ), the angle information may include the rotation angle θ from the transmitting end (point A) to the receiving end (point B) ab and pitch angle Among them, θ ab and is calculated as follows:

[0052]

[0053]

[0054]

[0055]

[0056] It should be noted that FIG. 2 shows a three-dimensional virtual space. In a two-dimensional virtual space, the angle information may only include the rotation angle but not the pitch angle.

[0057] In one embodiment, the first position, the second position, and the orientation information of the transmitting end can be directly obtained.

[0058] For example, the first position and the second position can be obtained by locating the sending end and the receiving end and then mapping them into the virtual space; or when the position of the receiving end is the origin, the first position and the second position (such as the origin) can be determined based on the relative positional relationship between the position of the sending end (such as a virtual character) generated in the virtual space and the origin.

[0059] For example, the orientation information of the sending end in the virtual space can be determined based on the gyroscope provided on the sending end, wherein the orientation information of the sending end in the virtual space can include the rotation orientation angle azim a and the pitch angle elev a .

[0060] Then, the audio emission angle of the transmitting end relative to the receiving end in the virtual space can be determined based on the angle information and the orientation information. For example, the audio emission angle includes an angle θ in the rotation direction. trans and the pitch angle Among them, θ trans =azim a -θ ab , For example, when point A and point B are on the same horizontal plane, when the transmitter is facing the receiver, θ trans =π, when the transmitter faces away from the receiver, θ trans = 0. The audio data may then be rendered according to the audio emission angle to obtain an audio signal, and finally the audio signal may be output.

[0061] According to an embodiment of the present disclosure, when rendering audio data, the audio emission angle of the transmitting end relative to the receiving end is taken into consideration, so that the rendered audio signal can contain characteristics related to the audio emission angle, so that when the user at the receiving end hears the audio signal, he or she can distinguish the source direction of the sound in the virtual space, which is conducive to improving the user's communication experience in the virtual space.

[0062] It should be noted that, in addition to rendering the audio data according to the audio emission angle to obtain the audio signal, the embodiments of the present disclosure can also render the audio data in combination with other parameters to ensure that the obtained audio signal is more consistent with the virtual space where the receiving end is located.

[0063] FIG3 is a schematic flow chart of another audio output method according to an embodiment of the present disclosure. As shown in FIG3 , rendering the audio data at least according to the audio emission angle to obtain an audio signal includes:

[0064] In step S301, a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter is determined according to the audio emission angle;

[0065] In step S302, the audio data is rendered according to the first gain coefficient and / or the low-pass filter to obtain the audio signal;

[0066] The first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

[0067] In one embodiment, a first gain coefficient may be determined based on the audio emission angle, and then the audio data may be rendered based on the first gain coefficient. The first gain coefficient is positively correlated with the audio emission angle, for example, within an angle range of 0 to π, the first gain coefficient increases as the audio emission angle increases.

[0068] For example, when the audio transmission angle is 0, that is, when the transmitting end is facing away from the receiving end, the first gain coefficient is minimum, the audio signal obtained by rendering the audio data according to the first gain coefficient is also relatively small, and the volume of the audio emitted by the transmitting end heard by the receiving end is relatively small; when the audio transmission angle is π, that is, when the transmitting end is facing the receiving end, the first gain coefficient is maximum, the audio signal obtained by rendering the audio data according to the first gain coefficient is also relatively large, and the volume of the audio emitted by the transmitting end heard by the receiving end is relatively large.

[0069] Accordingly, the closer the transmitter is to facing the receiver, the louder the volume of the audio heard by the user at the receiver, and the closer the transmitter is to facing away from the receiver, the quieter the volume of the audio heard by the user at the receiver.

[0070] In one embodiment, a high-frequency attenuation coefficient of a low-pass filter can be determined based on the audio emission angle, and then the audio data can be rendered, specifically filtered, using the low-pass filter. The high-frequency attenuation coefficient is negatively correlated with the audio emission angle. For example, within an angle range of 0 to π, the high-frequency attenuation coefficient decreases as the audio emission angle increases.

[0071] For example, when the audio transmission angle is 0, that is, when the transmitter is facing away from the receiver, the high-frequency attenuation coefficient is the largest, and the high-frequency part of the audio signal obtained by filtering the audio data according to the low-pass filter is relatively small, and the receiver hears relatively less high-frequency part of the audio emitted by the transmitter; when the audio transmission angle is π, that is, when the transmitter is facing the receiver, the high-frequency attenuation coefficient is the smallest (for example, the low-pass filter is an all-pass filter), and the audio signal obtained by rendering the audio data according to the low-pass filter is also relatively large, and the receiver hears relatively more high-frequency part of the audio emitted by the transmitter.

[0072] Accordingly, since the brightness and detail components of the sound are mainly determined by the high-frequency part, and the high-frequency part has stronger directionality, according to this embodiment, it can be ensured that the closer the transmitter is to facing the receiver, the more the user at the receiver determines that the transmitter is pointing to the receiver based on the high-frequency part, and the closer the transmitter is to facing away from the receiver, the more the user at the receiver determines that the transmitter is facing away from the receiver based on the low-frequency part.

[0073] In one embodiment, the audio data can be rendered by combining a first gain coefficient and a low-pass filter. For example, the first gain coefficient is g trans , the low-pass filter is LPF, the audio data is Au, and the rendered audio signal is Au', then Au'=g trans LPF (Au). Based on this, users can accurately distinguish the source direction of the audio signal by combining the volume and high-frequency part of the audio signal.

[0074] FIG4 is a schematic flow chart of another audio output method according to an embodiment of the present disclosure. As shown in FIG4 , rendering the audio data at least according to the audio emission angle to obtain the audio signal includes:

[0075] In step S401, the distance between the receiving end and the transmitting end in the virtual space is determined;

[0076] In step S402, a second gain coefficient is determined according to the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range;

[0077] In step S403, the audio data is rendered according to the second gain coefficient to obtain a signal to be output;

[0078] In step S404, the signal to be output is rendered according to the audio emission angle to obtain the audio signal.

[0079] In one embodiment, the first position of the sending end in the virtual space can be determined as (x a ,y a ,z a ), the second position of the receiving end in the virtual space is (x b ,y b ,z b ), and then calculate the distance d between the receiving end and the sending end in the virtual space according to the first position and the second position ab ,in:

[0080]

[0081] Since the farther the distance between the receiving end and the transmitting end is, the smaller the volume of the sound received by the receiving end is, the second gain coefficient g can be determined according to the distance. d , and g d The second gain coefficient is inversely correlated with the distance within a preset distance range (which can be set as needed, such as a distance range of more than 1 meter), for example:

[0082]

[0083] Then, the audio data is rendered according to the second gain coefficient to obtain a signal to be output. The audio data is Au, and the signal to be output is Au", then Au"=g dAu. The signal to be output is then rendered according to the audio emission angle to obtain the audio signal. Accordingly, when rendering the audio data, the distance from the transmitting end to the receiving end is taken into account, so that the rendered audio signal can contain characteristics related to the distance, so that when the user at the receiving end hears the audio signal, he or she can not only distinguish the source direction of the sound in the virtual space, but also the distance in the virtual space, which is conducive to improving the user's communication experience in the virtual space.

[0084] Among them, within 1 meter, the second gain coefficient can be set to a constant value of 1, that is, within 1 meter, the rendered audio signal no longer increases as the distance decreases, which is conducive to avoiding excessive volume and affecting the user experience.

[0085] FIG5 is a schematic flow chart of another audio output method according to an embodiment of the present disclosure. As shown in FIG5 , rendering the audio data at least according to the audio emission angle to obtain the audio signal includes:

[0086] In step S501, a first position of the transmitting end in the virtual space, a second position of the receiving end in the virtual space, and a three-dimensional shape and reflection coefficient of a room where the transmitting end and the receiving end are located in the virtual space are determined;

[0087] In step S502, the audio data is rendered according to the audio emission angle to obtain a signal to be output;

[0088] In step S503 , reverberation is generated according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and is added to the signal to be output to obtain the audio signal.

[0089] In one embodiment, the first position of the sending end in the virtual space can be determined as (x a ,y a ,z a ), the second position of the receiving end in the virtual space is (x b ,y b ,z b ), and the three-dimensional shape of the room where the sending end and the receiving end are located in the virtual space (x r ,y r ,z r ) and reflection coefficient r w ,(x r ,y r ,z r ) and r w Can be integrated into (x r ,y r ,z r ,rw ).

[0090] Furthermore, the audio data may be rendered according to the audio emission angle to obtain a signal to be output, and then reverberation may be generated according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output and added to the signal to be output to obtain the audio signal.

[0091] For example, if the output signal is Au and the rendered audio signal is Au', then Au'=reverb(Au, (x a ,y a ,z a ), (x a ,y a ,z a ), (x r ,y r ,z r ,r w )), reverb represents a function for calculating reverberation and adding the reverberation to the signal to be output to obtain an audio signal.

[0092] Accordingly, when rendering audio data, the three-dimensional shape and reflection coefficient of the room in which the sending end and the receiving end are located in the virtual space are taken into consideration, so that the rendered audio signal can include relevant reverberation characteristics, so that when the user at the receiving end listens to the audio signal, he can not only distinguish the source direction of the sound in the virtual space, but also distinguish the situation of the room in the virtual space based on the reverberation, which is conducive to improving the user's communication experience in the virtual space.

[0093] FIG6 is a schematic flow chart of another audio output method according to an embodiment of the present disclosure. As shown in FIG6 , rendering the audio data at least according to the audio emission angle to obtain the audio signal includes:

[0094] In step S601, an audio receiving angle of the receiving end relative to the transmitting end in the virtual space is determined according to the angle information and the orientation information;

[0095] In step S602, the audio data is rendered according to the audio emission angle to obtain a signal to be output;

[0096] In step S603, the signal to be output is rendered according to a head related transfer function (hrtf) and / or a vector base amplitude panning (vbap) algorithm and the audio receiving angle to obtain the audio signal.

[0097] In one embodiment, the audio receiving angle of the receiving end relative to the transmitting end in the virtual space can be determined based on the angle information and the orientation information. For example, the audio receiving angle includes an angle θ in the rotation direction. rece and the pitch angle Among them, θ rece =θ ab -azim b ,

[0098] Furthermore, the audio data can be rendered first according to the audio emission angle to obtain the signal to be output, and then the signal to be output can be rendered according to the head-related transform function HRTF and / or the amplitude vector synthesis positioning VBAP algorithm and the audio receiving angle to obtain the audio signal.

[0099] For example, if the signal to be output is Au, the rendered audio signal is Au". When the receiving end listens to the audio signal in different ways, different rendering methods can be selected. For example, when listening through headphones, hrtf rendering can be used. For example, when listening through speakers, you can render via vbap,

[0100] Accordingly, when rendering audio data, the audio reception angle of the receiving end relative to the sending end in the virtual space is taken into consideration, so that the rendered audio signal can include characteristics related to the audio reception angle, so that when the user at the receiving end listens to the audio signal, on the basis of being able to distinguish the source direction of the sound in the virtual space, it can also ensure the listening effect when listening with headphones and / or using speakers, which is conducive to improving the user's communication experience in the virtual space.

[0101] It should be noted that the various embodiments of the present disclosure can be combined as needed. For example, the above multiple embodiments can be comprehensively considered to render audio data, for example, the audio data is Au.

[0102] First, rendering is performed according to the second gain coefficient Au1=g d Au;

[0103] Then, rendering is performed according to the first gain coefficient and low-pass filter Au2=g trans LPF(Au1);

[0104] Next, rendering is performed based on the first position, the second position, the three-dimensional shape of the room, and the reflection coefficient Au3=reverb(Au2, (x a ,y a ,z a), (x a ,y a ,z a ), (x r ,y r ,z r ,r w ));

[0105] Finally, according to hrtf and audio receiving angle Rendering to obtain audio signal Or render the audio signal according to the audio receiving angle of the vbap algorithm

[0106] FIG7 is a schematic flowchart showing yet another audio output method according to an embodiment of the present disclosure.

[0107] As shown in Figure 7, the sound emitted by the transmitter may include two parts, one part is the audio data Audio, and the other part is the metadata of the transmitter. The metadata includes at least the audio emission angle, which may specifically include a gain coefficient, a low-pass filter (high-frequency attenuation coefficient), and may also include the distance between the receiving end and the transmitting end in the virtual space, the three-dimensional shape and reflection coefficient of the room where the transmitting end and the receiving end are located in the virtual space, etc.

[0108] Audio data and metadata can be integrated into Object-formatted audio, which is then encoded and transmitted to the receiving end. The receiving end can decode the received content to obtain the audio data and the metadata of the sender. The audio data is then rendered based on the audio data, the metadata of the sender, and the metadata of the receiving end (for example, including at least the audio receiving angle). After obtaining the audio information, it is output (played) and the user at the receiving end listens to it.

[0109] It should be noted that the embodiments of the present disclosure can be applied to real-time audio listening scenarios as well as audio playback scenarios.

[0110] Corresponding to the aforementioned embodiment of the audio output method, the present disclosure also provides an embodiment of an audio output device.

[0111] Figure 8 is a schematic block diagram of an audio output device according to an embodiment of the present disclosure. The device shown in this embodiment can be applied to devices such as VR devices and AR devices that can serve as receivers of audio signals in a virtual space.

[0112] As shown in FIG8 , the audio output device may include:

[0113] The processing module 801 is configured to determine orientation information of an audio transmitter in a virtual space, and angle information between the audio receiver and the transmitter in the virtual space; determine an audio emission angle of the transmitter relative to the receiver in the virtual space based on the angle information and the orientation information; and render the audio data based on at least the audio emission angle to obtain an audio signal.

[0114] The output module 802 is configured to output the audio signal.

[0115] In one embodiment, the processing module is configured to determine a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter according to the audio emission angle; render the audio data according to the first gain coefficient and / or the low-pass filter to obtain the audio signal;

[0116] The first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

[0117] In one embodiment, the processing module is configured to determine the distance between the receiving end and the transmitting end in the virtual space; determine a second gain coefficient based on the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range; render the audio data according to the second gain coefficient to obtain a signal to be output; and render the signal to be output according to the audio emission angle to obtain the audio signal.

[0118] In one embodiment, the processing module is configured to determine a first position of the transmitting end in the virtual space, a second position of the receiving end in the virtual space, and a three-dimensional shape and reflection coefficient of the room in which the transmitting end and the receiving end are located in the virtual space; render the audio data according to the audio emission angle to obtain a signal to be output; generate reverberation according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and add the reverberation to the signal to be output to obtain the audio signal.

[0119] In one embodiment, the processing module is configured to determine the audio receiving angle of the receiving end relative to the transmitting end in the virtual space based on the angle information and the orientation information; render the audio data according to the audio emission angle to obtain the signal to be output; and render the signal to be output according to the head-related transform function HRTF and / or the amplitude vector synthesis positioning VBAP algorithm and the audio receiving angle to obtain the audio signal.

[0120] Regarding the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the relevant methods and will not be elaborated on here.

[0121] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without paying any creative work.

[0122] An embodiment of the present disclosure further provides a communication device, comprising: a processor; and a memory for storing a computer program; wherein, when the computer program is executed by the processor, the audio output method described in any of the above embodiments is implemented.

[0123] An embodiment of the present disclosure further provides a computer-readable storage medium for storing a computer program. When the computer program is executed by a processor, the steps in the audio output method described in any of the above embodiments are implemented.

[0124] Figure 9 is a schematic block diagram of an apparatus 900 for audio output according to an embodiment of the present disclosure. For example, apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0125] 9 , apparatus 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0126] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.

[0127] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 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 read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0128] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 900.

[0129] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0130] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio signals when the device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0131] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.

[0132] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900. The sensor assembly 914 can also detect changes in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and temperature changes of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0133] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 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.

[0134] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.

[0135] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the apparatus 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0136] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0137] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0138] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0139] The above is a detailed introduction to the methods and devices provided in the embodiments of the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the methods and core ideas of the present disclosure. At the same time, for those skilled in the art, according to the ideas of the present disclosure, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present disclosure.

Claims

1. An audio output method, characterized in that: include: Determining orientation information of an audio transmitter in a virtual space, and angle information between an audio receiver and the audio transmitter in the virtual space; determining, according to the angle information and the orientation information, an audio emission angle of the transmitting end relative to the receiving end in the virtual space; Rendering the audio data at least according to the audio emission angle to obtain an audio signal; The audio signal is output.

2. The method according to claim 1, characterized in that The rendering of the audio data at least according to the audio emission angle to obtain an audio signal comprises: determining a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter according to the audio emission angle; Rendering the audio data according to the first gain coefficient and / or the low-pass filter to obtain the audio signal; The first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

3. The method according to claim 1 or 2, characterized in that The rendering of the audio data at least according to the audio emission angle to obtain an audio signal comprises: determining a distance between the receiving end and the transmitting end in the virtual space; determining a second gain coefficient according to the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range; Rendering the audio data according to the second gain coefficient to obtain a signal to be output; The signal to be output is rendered according to the audio emission angle to obtain the audio signal.

4. The method according to claim 1 or 2, characterized in that The rendering of the audio data at least according to the audio emission angle to obtain an audio signal comprises: determining a first position of the transmitting end in the virtual space, a second position of the receiving end in the virtual space, and a three-dimensional shape and a reflection coefficient of a room in which the transmitting end and the receiving end are located in the virtual space; Rendering the audio data according to the audio emission angle to obtain a signal to be output; Reverberation is generated according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and is added to the signal to be output to obtain the audio signal.

5. The method according to claim 1 or 2, characterized in that The rendering of the audio data at least according to the audio emission angle to obtain an audio signal comprises: determining, according to the angle information and the orientation information, an audio receiving angle of the receiving end relative to the transmitting end in the virtual space; Rendering the audio data according to the audio emission angle to obtain a signal to be output; The signal to be output is rendered according to a head-related transform function (HRTF) and / or an amplitude vector synthesis positioning (VBAP) algorithm and the audio receiving angle to obtain the audio signal.

6. An audio output device, characterized in that: include: a processing module configured to determine orientation information of an audio transmitter in a virtual space, and angle information between the audio receiver and the audio transmitter in the virtual space; determine an audio emission angle of the audio transmitter relative to the audio receiver in the virtual space based on the angle information and the orientation information; and render the audio data based on at least the audio emission angle to obtain an audio signal; The output module is configured to output the audio signal.

7. The device according to claim 6, characterized in that The processing module is configured to determine a first gain coefficient and / or a high-frequency attenuation coefficient of a low-pass filter according to the audio emission angle; and render the audio data according to the first gain coefficient and / or the low-pass filter to obtain the audio signal; The first gain coefficient is positively correlated with the audio emission angle, and / or the high-frequency attenuation coefficient is negatively correlated with the audio emission angle.

8. The device according to claim 6 or 7, characterized in that The processing module is configured to determine the distance between the receiving end and the transmitting end in the virtual space; determine a second gain coefficient based on the distance, wherein the second gain coefficient is inversely correlated with the distance within a preset distance range; render the audio data based on the second gain coefficient to obtain a signal to be output; and render the signal to be output based on the audio emission angle to obtain the audio signal.

9. The device according to claim 6 or 7, characterized in that The processing module is configured to determine a first position of the transmitting end in the virtual space, a second position of the receiving end in the virtual space, and a three-dimensional shape and reflection coefficient of the room in which the transmitting end and the receiving end are located in the virtual space; render the audio data according to the audio emission angle to obtain a signal to be output; generate reverberation according to the first position, the second position, the three-dimensional shape and reflection coefficient of the room, and the signal to be output, and add the reverberation to the signal to be output to obtain the audio signal.

10. The device according to claim 6 or 7, characterized in that The processing module is configured to determine the audio receiving angle of the receiving end relative to the transmitting end in the virtual space based on the angle information and the orientation information; render the audio data according to the audio emission angle to obtain a signal to be output; and render the signal to be output according to a head-related transform function (HRTF) and / or an amplitude vector synthesis positioning (VBAP) algorithm and the audio receiving angle to obtain the audio signal.

11. A communication device, characterized in that: include: processor; memory for storing computer programs; When the computer program is executed by a processor, the audio output method according to any one of claims 1 to 5 is implemented.

12. A computer-readable storage medium for storing a computer program, characterized in that: When the computer program is executed by a processor, the steps in the audio output method according to any one of claims 1 to 5 are implemented.