Three-dimensional audio signal encoding method, device, encoder and system

By evaluating and updating the coding efficiency of virtual speakers, the sound quality problem caused by the volatility of virtual speakers in three-dimensional audio signal encoding is solved, and the reconstruction quality and sound quality of three-dimensional audio signals are improved.

CN115497485BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110680341.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-18
Publication Date
2024-10-18
Estimated Expiration
2041-06-18

AI Technical Summary

Technical Problem

In the existing three-dimensional audio signal coding technology, the fluctuation of the virtual speaker is relatively large, resulting in low quality of the reconstructed three-dimensional audio signal and poor sound quality.

Method used

By obtaining the coding efficiency of the initial virtual speaker of the current frame of the three-dimensional audio signal, if the preset conditions are not met, an updated virtual speaker is determined from the candidate virtual speaker set and encoded to reduce the volatility between virtual speakers and improve decoding. Excellent sound quality.

Benefits of technology

The quality of the reconstructed three-dimensional audio signal and the sound quality of the decoding end are improved, and the coding fluctuation between virtual speakers is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115497485B_ABST
    Figure CN115497485B_ABST
Patent Text Reader

Abstract

The present application discloses a three-dimensional audio signal encoding method, device, encoder and system, and relates to the field of multimedia. The method includes: after the encoder obtains the current frame of the three-dimensional audio signal, the encoding efficiency of the initial virtual speaker of the current frame is obtained. If the encoding efficiency of the initial virtual speaker of the current frame meets the preset conditions, the updated virtual speaker of the current frame is determined from the candidate virtual speaker set, and the current frame is encoded according to the updated virtual speaker of the current frame to obtain a first code stream, thereby reducing the volatility of the virtual speakers used for encoding between different frames of the three-dimensional audio signal by reselecting the virtual speakers, improving the quality of the three-dimensional audio signal reconstructed by the decoding end, and the sound quality of the sound played by the decoding end. If the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset conditions, the current frame is encoded according to the initial virtual speaker of the current frame to obtain a second code stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of multimedia, and in particular to a three-dimensional audio signal encoding method, device, encoder and system. Background Art

[0002] With the rapid development of high-performance computers and signal processing technology, listeners have put forward higher and higher requirements for voice and audio experience, and immersive audio can meet people's needs in this regard. For example, three-dimensional audio technology has been widely used in wireless communications (such as 4G / 5G, etc.), voice, virtual reality / augmented reality, and media audio. Three-dimensional audio technology is an audio technology that acquires, processes, transmits, renders and plays back sounds and three-dimensional sound field information in the real world, giving the sound a strong sense of space, envelopment and immersion, giving the listener an extraordinary "immersive" auditory experience.

[0003] Usually, an acquisition device (such as a microphone) collects a large amount of data to record three-dimensional sound field information, and transmits a three-dimensional audio signal to a playback device (such as a speaker, headphones, etc.) so that the playback device can play the three-dimensional audio. Due to the large amount of data of the three-dimensional sound field information, a large amount of storage space is required to store the data, and the bandwidth requirement for transmitting the three-dimensional audio signal is high. In order to solve the above problems, the three-dimensional audio signal can be compressed, and the compressed data can be stored or transmitted. At present, the encoder uses a virtual speaker to compress the three-dimensional audio signal. However, if the virtual speaker used by the encoder to encode different frames of the three-dimensional audio signal has a large volatility, the quality of the reconstructed three-dimensional audio signal is low and the sound quality is poor. Therefore, how to improve the quality of the reconstructed three-dimensional audio signal is a problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a three-dimensional audio signal encoding method, device, encoder and system, thereby improving the quality of the reconstructed three-dimensional audio signal.

[0005] In a first aspect, the present application provides a three-dimensional audio signal encoding method, which is performed by an encoder and specifically includes the following steps: after the encoder obtains the current frame of the three-dimensional audio signal, the encoding efficiency of the initial virtual speaker of the current frame is obtained according to the current frame of the three-dimensional audio signal, and the encoding efficiency represents the ability of the initial virtual speaker of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs. If the encoding efficiency of the initial virtual speaker of the current frame meets the preset conditions, it means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is used to reconstruct the sound field to which the three-dimensional audio signal belongs. The ability is relatively weak, then the encoder determines the updated virtual speaker of the current frame from the candidate virtual speaker set, and encodes the current frame according to the updated virtual speaker of the current frame to obtain a first code stream. If the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset conditions, it means that the initial virtual speaker of the current frame fully expresses the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is used to reconstruct the sound field to which the three-dimensional audio signal belongs. The ability is relatively strong, then the encoder encodes the current frame according to the initial virtual speaker of the current frame to obtain a second code stream. The initial virtual speaker of the current frame and the updated virtual speaker of the current frame both belong to the candidate virtual speaker set.

[0006] In this way, after the encoder obtains the initial virtual speaker of the current frame, it determines the coding efficiency of the initial virtual speaker, and determines whether to reselect the virtual speaker of the current frame based on the ability of the initial virtual speaker represented by the coding efficiency to reconstruct the sound field to which the three-dimensional audio signal belongs. When the coding efficiency of the initial virtual speaker of the current frame meets the preset conditions, that is, when the initial virtual speaker of the current frame cannot fully represent the scenario of the reconstructed sound field to which the three-dimensional audio signal belongs, the virtual speaker of the current frame is reselected, and the updated virtual speaker of the current frame is used as the virtual speaker for encoding the current frame. Thus, by reselecting the virtual speaker, the volatility of the virtual speaker used for encoding between different frames of the three-dimensional audio signal is reduced, and the quality of the three-dimensional audio signal reconstructed by the decoding end and the sound quality of the sound played by the decoding end are improved.

[0007] Specifically, the encoder may obtain the encoding efficiency of the initial virtual speaker of the current frame according to any one of the following four methods.

[0008] Method 1, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, including: after the encoder obtains the reconstructed current frame of the reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame, the coding efficiency of the initial virtual speaker of the current frame is determined according to the energy of the reconstructed current frame and the energy of the current frame. Since the reconstructed current frame of the reconstructed three-dimensional audio signal is determined by the initial virtual speaker of the current frame that expresses the sound field information of the three-dimensional audio signal, the encoder can intuitively and accurately determine the ability of the initial virtual speaker to reconstruct the sound field to which the three-dimensional audio signal belongs based on the proportional relationship between the energy of the reconstructed current frame and the energy of the current frame, thereby ensuring the accuracy of the coding efficiency of the initial virtual speaker determined by the encoder for the current frame. For example, if the energy of the reconstructed current frame is less than half of the energy of the current frame, it means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is weak in the ability to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0009] Mode 2, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, including: the encoder determines the reconstructed current frame of the three-dimensional audio signal after reconstruction according to the initial virtual speaker of the current frame, and after obtaining the residual signal of the current frame according to the current frame and the reconstructed current frame, the encoder determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the energy of the virtual speaker signal of the current frame to the sum of the energy of the virtual speaker signal of the current frame and the energy of the residual signal. It should be noted that the sum of the energy of the virtual speaker signal of the current frame and the energy of the residual signal can be the signal to be transmitted by the encoding end. Thus, the encoder can indirectly determine the ability of the initial virtual speaker to reconstruct the sound field to which the three-dimensional audio signal belongs through the ratio relationship between the energy of the virtual speaker signal of the current frame and the energy of the signal to be transmitted, avoiding the encoder from determining the reconstruction of the current frame, and reducing the complexity of the encoder determining the coding efficiency of the initial virtual speaker of the current frame. For example, if the energy of the virtual speaker signal of the current frame is less than half of the energy of the signal to be transmitted, it means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is weak in the ability to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0010] The encoder obtains the reconstructed current frame of the reconstructed 3D audio signal according to the initial virtual speaker of the current frame, including: determining the virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; and determining the reconstructed current frame according to the virtual speaker signal of the current frame. For example, the energy of the reconstructed current frame is determined according to the coefficient of the reconstructed current frame, and the energy of the current frame is determined according to the coefficient of the current frame.

[0011] Method three, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, including: the encoder determines the number of sound sources according to the current frame of the three-dimensional audio signal; determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the number of initial virtual speakers of the current frame to the number of sound sources.

[0012] Method 4, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, including: the encoder determines the number of sound sources according to the current frame of the three-dimensional audio signal, determines the virtual speaker signal of the current frame according to the initial virtual speaker of the current frame, and determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the number of virtual speaker signals of the current frame to the number of sound sources.

[0013] Since the initial virtual speakers of the current frame are used to reconstruct the sound field to which the three-dimensional audio signal belongs, the initial virtual speakers of the current frame can represent information about the sound field to which the three-dimensional audio signal belongs. The encoder determines the coding efficiency of the initial virtual speakers of the current frame using the relationship between the number of initial virtual speakers of the current frame and the number of sound sources of the three-dimensional audio signal, or the encoder determines the coding efficiency of the initial virtual speakers of the current frame using the relationship between the number of virtual speaker signals of the current frame and the number of sound sources of the three-dimensional audio signal. This can ensure the accuracy of the encoder's determination of the coding efficiency of the initial virtual speakers of the current frame and reduce the complexity of the encoder's determination of the coding efficiency of the initial virtual speakers of the current frame.

[0014] When the encoder determines that the coding efficiency of the initial virtual speaker of the current frame is less than the first threshold according to any of the above methods 1 to 4, that is, the coding efficiency of the initial virtual speaker of the current frame meets the preset condition, the encoder can determine the updated virtual speaker of the current frame according to the following possible implementation methods. It can be understood that the preset condition includes that the coding efficiency of the initial virtual speaker of the current frame is less than the first threshold. The value range of the first threshold can be 0 to 1, or 0.5 to 1. For example, the first threshold can be 0.35, 0.65, 0.75 or 0.85, etc.

[0015] In one possible implementation, the encoder determines an updated virtual speaker for the current frame from a candidate virtual speaker set, including: if the encoding efficiency of the initial virtual speaker for the current frame is less than a second threshold, using a preset virtual speaker in the candidate virtual speaker set as the updated virtual speaker for the current frame, and the second threshold is less than the first threshold.

[0016] In this way, in the scenario where the initial virtual speaker of the current frame cannot fully represent the sound field to which the three-dimensional audio signal belongs, resulting in poor quality of the three-dimensional audio signal reconstructed at the decoding end, the encoder further improves the accuracy of the encoder's ability to determine the initial virtual speaker for reconstructing the sound field to which the three-dimensional audio signal belongs by secondarily judging the encoding efficiency of the initial virtual speaker of the current frame. In addition, the encoder reduces the volatility of the virtual speakers used for encoding different frames of the three-dimensional audio signal by directionally selecting the updated virtual speakers of the current frame, thereby improving the quality of the three-dimensional audio signal reconstructed at the decoding end and the sound quality of the sound played at the decoding end.

[0017] In another possible implementation, the encoder determines the updated virtual speaker of the current frame from the candidate virtual speaker set, including: if the encoding efficiency of the initial virtual speaker of the current frame is less than the first threshold and greater than the second threshold, the virtual speaker of the previous frame is used as the updated virtual speaker of the current frame, and the virtual speaker of the previous frame is the virtual speaker used to encode the previous frame of the three-dimensional audio signal. Since the encoder uses the virtual speaker of the previous frame as the virtual speaker for encoding the current frame, the volatility of the virtual speaker used for encoding different frames of the three-dimensional audio signal is reduced, and the quality of the three-dimensional audio signal reconstructed by the decoding end and the sound quality of the sound played by the decoding end are improved.

[0018] Optionally, the method further includes: the encoder determines the adjusted coding efficiency of the initial virtual speaker of the current frame according to the coding efficiency of the initial virtual speaker of the current frame and the coding efficiency of the virtual speaker of the previous frame; if the coding efficiency of the initial virtual speaker of the current frame is greater than the adjusted coding efficiency of the initial virtual speaker of the current frame, it indicates that the initial virtual speaker of the current frame has the ability to represent the sound field to which the three-dimensional audio signal belongs to be reconstructed, and the initial virtual speaker of the current frame is used as the virtual speaker of the subsequent frame of the current frame. Thus, the volatility of the virtual speakers used for encoding between different frames of the three-dimensional audio signal is reduced, and the quality of the three-dimensional audio signal reconstructed by the decoding end and the sound quality of the sound played by the decoding end are improved.

[0019] In addition, the three-dimensional audio signal may be a higher order ambisonics (HOA) signal.

[0020] In a second aspect, the present application provides a three-dimensional audio signal encoding device, the device comprising various modules for executing the three-dimensional audio signal encoding method in the first aspect or any possible design of the first aspect. For example, the three-dimensional audio signal encoding device comprises a communication module, a coding efficiency acquisition module, a virtual speaker reselection module and an encoding module. The communication module is used to obtain a current frame of a three-dimensional audio signal. The coding efficiency acquisition module is used to obtain the coding efficiency of an initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, and the initial virtual speaker of the current frame belongs to a candidate virtual speaker set. The virtual speaker reselection module is used to determine an updated virtual speaker of the current frame from the candidate virtual speaker set if the coding efficiency of the initial virtual speaker of the current frame meets a preset condition. The encoding module is used to encode the current frame according to the updated virtual speaker of the current frame to obtain a first code stream. The encoding module is also used to encode the current frame according to the initial virtual speaker of the current frame if the coding efficiency of the initial virtual speaker of the current frame does not meet the preset condition to obtain a second code stream. These modules can perform the corresponding functions in the above-mentioned first aspect method example, and refer to the detailed description in the method example for details, which will not be repeated here.

[0021] In a third aspect, the present application provides an encoder, comprising at least one processor and a memory, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the operating steps of the three-dimensional audio signal encoding method in the first aspect or any possible implementation of the first aspect are performed.

[0022] In a fourth aspect, the present application provides a system, comprising an encoder as described in the third aspect, and a decoder, wherein the encoder is used to execute the operation steps of the three-dimensional audio signal encoding method in the first aspect or any possible implementation of the first aspect, and the decoder is used to decode the code stream generated by the encoder.

[0023] In a fifth aspect, the present application provides a computer-readable storage medium, comprising: computer software instructions; when the computer software instructions are executed in an encoder, the encoder executes the operating steps of the method described in the first aspect or any possible implementation of the first aspect.

[0024] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on an encoder, the encoder executes the operating steps of the method described in the first aspect or any possible implementation of the first aspect.

[0025] In a seventh aspect, the present application provides a computer-readable storage medium, comprising a code stream obtained by the method described in the first aspect or any possible implementation manner of the first aspect.

[0026] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the structure of an audio codec system provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of a scenario of an audio encoding and decoding system provided in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of the structure of an encoder provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of a flow chart of a three-dimensional audio signal encoding and decoding method provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of a flow chart of a three-dimensional audio signal encoding method provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure of another encoder provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of the structure of another encoder provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of the structure of another encoder provided in an embodiment of the present application;

[0035] Fig. 9 A schematic diagram of the structure of another encoder provided in an embodiment of the present application;

[0036] Fig.10 A schematic diagram of a flow chart of another three-dimensional audio signal encoding method provided in an embodiment of the present application;

[0037] Fig.11 A flowchart of a method for selecting a virtual speaker provided in an embodiment of the present application;

[0038] Fig.12 A schematic diagram of the structure of a three-dimensional audio signal encoding device provided by the present application;

[0039] Fig.13 A schematic diagram of the structure of an encoder provided in this application. DETAILED DESCRIPTION

[0040] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given.

[0041] Sound is a continuous wave generated by the vibration of an object. The object that vibrates and emits sound waves is called a sound source. When sound waves propagate through a medium (such as air, solid or liquid), the auditory organs of humans or animals can perceive the sound.

[0042] The characteristics of sound waves include pitch, intensity and timbre. Pitch refers to the high or low pitch of a sound. Intensity refers to the size of a sound. Intensity can also be called loudness or volume. The unit of intensity is decibel (dB). Timbre is also called timbre quality.

[0043] The frequency of sound waves determines the pitch of the sound. The higher the frequency, the higher the pitch. The number of times an object vibrates in one second is called frequency, and the unit of frequency is hertz (Hz). The frequency of sound that the human ear can recognize is between 20Hz and 20,000Hz.

[0044] The amplitude of the sound wave determines the intensity of the sound. The greater the amplitude, the greater the sound intensity. The closer to the sound source, the greater the sound intensity.

[0045] The waveform of the sound wave determines the timbre, and the waveforms of the sound wave include square wave, sawtooth wave, sine wave and pulse wave.

[0046] According to the characteristics of sound waves, sounds can be divided into regular sounds and irregular sounds. Irregular sounds refer to sounds produced by irregular vibrations of the sound source. Irregular sounds are, for example, noises that affect people's work, study, and rest. Regular sounds refer to sounds produced by regular vibrations of the sound source. Regular sounds include speech and music. When sound is represented by electricity, regular sounds are analog signals that continuously change in the time-frequency domain. This analog signal can be called an audio signal. An audio signal is an information carrier that carries speech, music, and sound effects.

[0047] Since human hearing has the ability to distinguish the positional distribution of sound sources in space, when listeners hear sounds in space, in addition to being able to feel the pitch, volume and timbre of the sounds, they can also feel the direction of the sounds.

[0048] As people pay more and more attention to the experience of auditory systems and demand more quality, three-dimensional audio technology has emerged to enhance the depth, presence and spatial sense of sound. Therefore, listeners can not only feel the sound from the front, back, left and right sound sources, but also feel the space they are in is surrounded by the spatial sound field (referred to as "sound field") generated by these sound sources, and the sound spreads around, creating an "immersive" sound effect that makes listeners feel like they are in a theater or concert hall.

[0049] Three-dimensional audio technology refers to assuming that the space outside the human ear is a system, and the signal received at the eardrum is a three-dimensional audio signal output by filtering the sound emitted by the sound source through the system outside the ear. For example, the system outside the human ear can be defined as the system impulse response h(n), any sound source can be defined as x(n), and the signal received at the eardrum is the convolution result of x(n) and h(n). The three-dimensional audio signal described in the embodiment of the present application may refer to a higher order ambisonics (HOA) signal. Three-dimensional audio can also be called three-dimensional sound effects, spatial audio, three-dimensional sound field reconstruction, virtual 3D audio or binaural audio, etc.

[0050] As we all know, when sound waves propagate in an ideal medium, the wave number is k = wc and the angular frequency is w = 2πf, where f is the sound wave frequency and c is the sound speed. The sound pressure p satisfies formula (1), is the Laplace operator.

[0051]

[0052] Assume that the space system outside the human ear is a sphere, the listener is at the center of the sphere, the sound coming from outside the sphere has a projection on the sphere, and the sound outside the sphere is filtered out. Assume that the sound source is distributed on this sphere, and the sound field generated by the sound source on the sphere is used to fit the sound field generated by the original sound source. That is, three-dimensional audio technology is a method of fitting the sound field. Specifically, solve the equation of formula (1) in the spherical coordinate system. In the passive spherical region, the solution of the equation of formula (1) is the following formula (2).

[0053]

[0054] Where r is the radius of the sphere, θ is the horizontal angle, represents the pitch angle, k represents the wave number, s represents the amplitude of the ideal plane wave, and m represents the order number of the three-dimensional audio signal (or the order number of the HOA signal). represents the spherical Bessel function, which is also called the radial basis function, where the first j represents the imaginary unit, Does not vary with angle. represents θ, Spherical harmonics of the direction, The spherical harmonics representing the direction of the sound source. The three-dimensional audio signal coefficients satisfy formula (3).

[0055]

[0056] Substituting formula (3) into formula (2), formula (2) can be transformed into formula (4).

[0057]

[0058] in, Represents the coefficients of a three-dimensional audio signal of order N, which is used to approximately describe the sound field. A sound field refers to an area in a medium where sound waves exist. N is an integer greater than or equal to 1. For example, the value range of N is an integer from 2 to 6. The coefficients of the three-dimensional audio signal described in the embodiments of the present application may refer to HOA coefficients or ambisonic coefficients.

[0059] A three-dimensional audio signal is an information carrier that carries the spatial position information of the sound source in the sound field, and describes the sound field of the listener in space. Formula (4) shows that the sound field can be expanded on a sphere according to spherical harmonics, that is, the sound field can be decomposed into the superposition of multiple plane waves. Therefore, the sound field described by the three-dimensional audio signal can be expressed by the superposition of multiple plane waves, and the sound field can be reconstructed by the three-dimensional audio signal coefficients.

[0060] Compared with 5.1-channel audio signals or 7.1-channel audio signals, since the N-order HOA signal has (N+1) 2 If there are multiple channels, the HOA signal includes a large amount of data for describing the spatial information of the sound field. If the acquisition device (such as a microphone) transmits the three-dimensional audio signal to the playback device (such as a speaker), a large bandwidth is consumed. At present, the encoder can use spatial squeezed surround audio coding (S3AC) or directional audio coding (DirAC) to compress and encode the three-dimensional audio signal to obtain a code stream, and transmit the code stream to the playback device. The playback device decodes the code stream, reconstructs the three-dimensional audio signal, and plays the reconstructed three-dimensional audio signal. This reduces the amount of data transmitted to the playback device and the bandwidth occupied. However, the computational complexity of the encoder for compressing and encoding the three-dimensional audio signal is high, which occupies too many computing resources of the encoder. Therefore, how to reduce the computational complexity of compressing and encoding the three-dimensional audio signal is an urgent problem to be solved.

[0061] The embodiment of the present application provides an audio coding and decoding technology, in particular, provides a three-dimensional audio coding and decoding technology for three-dimensional audio signals, and specifically provides a coding and decoding technology that uses fewer channels to represent three-dimensional audio signals to improve traditional audio coding and decoding systems. Audio coding (or commonly referred to as coding) includes two parts: audio coding and audio decoding. Audio coding is performed on the source side, and generally includes processing (for example, compressing) the original audio to reduce the amount of data required to represent the original audio, so as to store and / or transmit it more efficiently. Audio decoding is performed on the destination side, and generally includes inverse processing relative to the encoder to reconstruct the original audio. The coding part and the decoding part are also collectively referred to as coding and decoding. The implementation method of the embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.

[0062] Figure 1 The present invention is a structural diagram of an audio codec system provided in an embodiment of the present application. The audio codec system 100 includes a source device 110 and a destination device 120. The source device 110 is used to compress and encode a three-dimensional audio signal to obtain a code stream, and transmit the code stream to the destination device 120. The destination device 120 decodes the code stream, reconstructs the three-dimensional audio signal, and plays the reconstructed three-dimensional audio signal.

[0063] Specifically, the source device 110 includes an audio acquirer 111 , a preprocessor 112 , an encoder 113 , and a communication interface 114 .

[0064] The audio acquirer 111 is used to acquire original audio. The audio acquirer 111 can be any type of audio acquisition device for capturing real-world sounds, and / or any type of audio generation device. The audio acquirer 111 is, for example, a computer audio processor for generating computer audio. The audio acquirer 111 can also be any type of memory or storage for storing audio. The audio includes real-world sounds, virtual scene (such as virtual reality (VR) or augmented reality (AR)) sounds, and / or any combination thereof.

[0065] The preprocessor 112 is used to receive the original audio collected by the audio acquirer 111 and preprocess the original audio to obtain a three-dimensional audio signal. For example, the preprocessing performed by the preprocessor 112 includes channel conversion, audio format conversion or noise removal.

[0066] The encoder 113 is used to receive the three-dimensional audio signal generated by the preprocessor 112, and compress and encode the three-dimensional audio signal to obtain a code stream. For example, the encoder 113 may include a spatial encoder 1131 and a core encoder 1132. The spatial encoder 1131 is used to select (or search) a virtual speaker from a candidate virtual speaker set according to the three-dimensional audio signal, and generate a virtual speaker signal according to the three-dimensional audio signal and the virtual speaker. The virtual speaker signal can also be called a playback signal. The core encoder 1132 is used to encode the virtual speaker signal to obtain a code stream.

[0067] The communication interface 114 is used to receive the code stream generated by the encoder 113, and send the code stream to the destination device 120 through the communication channel 130, so that the destination device 120 reconstructs the three-dimensional audio signal according to the code stream.

[0068] The destination device 120 includes a player 121 , a post-processor 122 , a decoder 123 , and a communication interface 124 .

[0069] The communication interface 124 is used to receive the code stream sent by the communication interface 114 and transmit the code stream to the decoder 123, so that the decoder 123 can reconstruct the three-dimensional audio signal according to the code stream.

[0070] The communication interface 114 and the communication interface 124 may be used to send or receive data related to the original audio through a direct communication link between the source device 110 and the destination device 120, such as a direct wired or wireless connection, or through any type of network, such as a wired network, a wireless network or any combination thereof, any type of private network and public network or any combination thereof.

[0071] Both the communication interface 114 and the communication interface 124 can be configured as follows: Figure 1 The unidirectional communication interface or the bidirectional communication interface indicated by the arrow pointing from the source device 110 to the corresponding communication channel 130 of the destination device 120 can be used to send and receive messages, etc. to establish a connection, confirm and exchange any other information related to the communication link and / or data transmission such as encoded code stream transmission, etc.

[0072] The decoder 123 is used to decode the code stream and reconstruct the three-dimensional audio signal. For example, the decoder 123 includes a core decoder 1231 and a spatial decoder 1232. The core decoder 1231 is used to decode the code stream to obtain a decoded virtual speaker signal. The spatial decoder 1232 is used to reconstruct the three-dimensional audio signal according to the candidate virtual speaker set and the decoded virtual speaker signal to obtain a reconstructed three-dimensional audio signal.

[0073] The post-processor 122 is used to receive the reconstructed 3D audio signal generated by the decoder 123 and perform post-processing on the reconstructed 3D audio signal. For example, the post-processing performed by the post-processor 122 includes audio rendering, loudness normalization, user interaction, audio format conversion or noise removal.

[0074] The player 121 is used to play the reconstructed sound according to the reconstructed 3D audio signal.

[0075] It should be noted that the audio acquirer 111 and the encoder 113 may be integrated into one physical device or may be arranged on different physical devices, without limitation. Figure 1 The source device 110 shown includes an audio acquirer 111 and an encoder 113, indicating that the audio acquirer 111 and the encoder 113 are integrated into one physical device, and the source device 110 may also be referred to as a capture device. The source device 110 is, for example, a media gateway of a wireless access network, a media gateway of a core network, a transcoding device, a media resource server, an AR device, a VR device, a microphone, or other audio capture device. If the source device 110 does not include the audio acquirer 111, it means that the audio acquirer 111 and the encoder 113 are two different physical devices, and the source device 110 can obtain the original audio from other devices (such as an audio capture device or an audio storage device).

[0076] In addition, the player 121 and the decoder 123 may be integrated into one physical device, or may be arranged on different physical devices, without limitation. Figure 1 The destination device 120 shown includes a player 121 and a decoder 123, which means that the player 121 and the decoder 123 are integrated into one physical device. The destination device 120 can also be called a playback device, and the destination device 120 has the function of decoding and playing the reconstructed audio. The destination device 120 is, for example, a speaker, a headset, or other device for playing audio. If the destination device 120 does not include the player 121, it means that the player 121 and the decoder 123 are two different physical devices. After the destination device 120 decodes the code stream to reconstruct the three-dimensional audio signal, it transmits the reconstructed three-dimensional audio signal to other playback devices (such as speakers or headphones), and the other playback devices play back the reconstructed three-dimensional audio signal.

[0077] also, Figure 1 It is shown that the source device 110 and the destination device 120 can be integrated into one physical device, or can be set on different physical devices, which is not limited.

[0078] For example, Figure 2As shown in (a) in FIG. 1 , the source device 110 may be a microphone in a recording studio, and the destination device 120 may be a speaker. The source device 110 may collect original audio of various musical instruments, transmit the original audio to a codec device, and the codec device performs codec processing on the original audio to obtain a reconstructed 3D audio signal, which is then played back by the destination device 120. As another example, the source device 110 may be a microphone in a terminal device, and the destination device 120 may be a headset. The source device 110 may collect external sounds or audio synthesized by the terminal device.

[0079] For example, Figure 2 As shown in (b) in FIG. 1 , the source device 110 and the destination device 120 are integrated into a VR device, an AR device, a Mixed Reality (MR) device, or an Extended Reality (ER) device, and the VR / AR / MR / ER device has the functions of collecting original audio, playing back audio, and encoding and decoding. The source device 110 can collect the sound emitted by the user and the sound emitted by the virtual objects in the virtual environment where the user is located.

[0080] In these embodiments, the source device 110 or its corresponding functions and the destination device 120 or its corresponding functions may be implemented using the same hardware and / or software or by separate hardware and / or software or any combination thereof. Figure 1 The existence and division of different units or functions in the source device 110 and / or the destination device 120 shown may vary according to actual devices and applications, which is obvious to those skilled in the art.

[0081] The structure of the above audio codec system is only a schematic illustration. In some possible implementations, the audio codec system may also include other devices, for example, the audio codec system may also include a terminal device or a cloud device. After the source device 110 collects the original audio, it pre-processes the original audio to obtain a three-dimensional audio signal; and transmits the three-dimensional audio to the terminal device or the cloud device, which implements the function of encoding and decoding the three-dimensional audio signal.

[0082] The audio signal encoding and decoding method provided in the embodiment of the present application is mainly applied to the encoding end. Figure 3 The structure of the encoder (such as encoder 311) is described in detail. Figure 3 As shown, the encoder 300 includes a virtual speaker configuration unit 310 , a virtual speaker set generation unit 320 , an encoding analysis unit 330 , a virtual speaker selection unit 340 , a virtual speaker signal generation unit 350 and an encoding unit 360 .

[0083] The virtual speaker configuration unit 310 is used to generate virtual speaker configuration parameters according to the encoder configuration information so as to obtain multiple virtual speakers. The encoder configuration information includes but is not limited to: the order of the three-dimensional audio signal (or commonly referred to as the HOA order), the encoding bit rate, user-defined information, etc. The virtual speaker configuration parameters include but are not limited to: the number of virtual speakers, the order of virtual speakers, the position coordinates of virtual speakers, etc. The number of virtual speakers is, for example, 2048, 1669, 1343, 1024, 530, 512, 256, 128 or 64. The order of the virtual speaker can be any one of the 2nd to 6th order. The position coordinates of the virtual speaker include the horizontal angle and the pitch angle.

[0084] The virtual speaker configuration parameters output by the virtual speaker configuration unit 310 serve as input to the virtual speaker set generation unit 320 .

[0085] The virtual speaker set generation unit 320 is used to generate a candidate virtual speaker set according to the virtual speaker configuration parameters, and the candidate virtual speaker set includes multiple virtual speakers. Specifically, the virtual speaker set generation unit 320 determines the multiple virtual speakers included in the candidate virtual speaker set according to the number of virtual speakers, and determines the coefficients of the virtual speakers according to the position information (such as coordinates) of the virtual speakers and the order of the virtual speakers. For example, the method for determining the coordinates of the virtual speakers includes but is not limited to: generating multiple virtual speakers according to the equidistant rule, or generating multiple virtual speakers with non-uniform distribution according to the principle of auditory perception; then, generating the coordinates of the virtual speakers according to the number of virtual speakers.

[0086] According to the above principle of generating three-dimensional audio signals, the coefficients of virtual speakers can also be generated. s and are respectively set as the position coordinates of the virtual speakers, Represents the coefficient of a virtual speaker of order N. The coefficient of a virtual speaker can also be called an ambisonics coefficient.

[0087] The coding analysis unit 330 is used to perform coding analysis on the 3D audio signal, for example, analyzing the sound field distribution characteristics of the 3D audio signal, that is, the number of sound sources, the directionality of the sound sources, and the dispersion of the sound sources of the 3D audio signal.

[0088] The coefficients of the plurality of virtual speakers included in the candidate virtual speaker set output by the virtual speaker set generation unit 320 serve as input to the virtual speaker selection unit 340 .

[0089] The sound field distribution feature of the three-dimensional audio signal output by the encoding analysis unit 330 is used as an input of the virtual speaker selection unit 340 .

[0090] The virtual speaker selection unit 340 is used to determine a representative virtual speaker matching the three-dimensional audio signal according to the three-dimensional audio signal to be encoded, the sound field distribution characteristics of the three-dimensional audio signal, and the coefficients of multiple virtual speakers.

[0091] It is not limited that the encoder 300 of the embodiment of the present application may not include the encoding analysis unit 330, that is, the encoder 300 may not analyze the input signal, and the virtual speaker selection unit 340 uses a default configuration to determine the representative virtual speaker. For example, the virtual speaker selection unit 340 determines the representative virtual speaker matching the three-dimensional audio signal only based on the three-dimensional audio signal and the coefficients of the multiple virtual speakers.

[0092] The encoder 300 may use a 3D audio signal obtained from a capture device or a 3D audio signal synthesized using an artificial audio object as input to the encoder 300. In addition, the 3D audio signal input to the encoder 300 may be a time domain 3D audio signal or a frequency domain 3D audio signal, which is not limited.

[0093] The position information representing the virtual speaker and the coefficient representing the virtual speaker output by the virtual speaker selection unit 340 are input to the virtual speaker signal generation unit 350 and the encoding unit 360 .

[0094] The virtual speaker signal generating unit 350 is used to generate a virtual speaker signal according to the three-dimensional audio signal and the attribute information representing the virtual speaker. The attribute information representing the virtual speaker includes at least one of the position information representing the virtual speaker, the coefficient representing the virtual speaker, and the coefficient of the three-dimensional audio signal. If the attribute information is the position information representing the virtual speaker, the coefficient representing the virtual speaker is determined according to the position information representing the virtual speaker; if the attribute information includes the coefficient of the three-dimensional audio signal, the coefficient representing the virtual speaker is obtained according to the coefficient of the three-dimensional audio signal. Specifically, the virtual speaker signal generating unit 350 calculates the virtual speaker signal according to the coefficient of the three-dimensional audio signal and the coefficient representing the virtual speaker.

[0095] For example, it is assumed that matrix A represents the coefficients of the virtual speaker and matrix X represents the coefficients of the HOA signal. Matrix X is the inverse matrix of matrix A. The theoretical optimal solution w is obtained by the least square method, where w represents the virtual speaker signal. The virtual speaker signal satisfies formula (5).

[0096] w=A -1 X Formula (5)

[0097] Among them, A -1represents the inverse matrix of matrix A. The size of matrix A is (M×C), C represents the number of virtual speakers, M represents the number of channels of the N-order HOA signal, a represents the coefficient representing the virtual speaker, and the size of matrix X is (M×L), L represents the number of coefficients of the HOA signal, and x represents the coefficient of the HOA signal. The coefficient representing the virtual speaker may refer to the HOA coefficient representing the virtual speaker or the ambisonics coefficient representing the virtual speaker. For example,

[0098] The virtual speaker signal output by the virtual speaker signal generating unit 350 is input to the encoding unit 360 .

[0099] Optionally, in order to improve the quality of the reconstructed three-dimensional audio signal at the decoding end, the encoder 300 may also pre-estimate the reconstructed three-dimensional audio signal, generate a residual signal using the pre-estimated reconstructed three-dimensional audio signal, and use the residual signal to compensate the virtual speaker signal, thereby improving the accuracy of the sound field information of the sound source of the three-dimensional audio signal represented by the virtual speaker signal at the encoding end. For example, the encoder 300 may also include a signal reconstruction unit 370 and a residual signal generation unit 380.

[0100] The signal reconstruction unit 370 is used to pre-estimate the reconstructed three-dimensional audio signal according to the position information representing the virtual speaker and the coefficient representing the virtual speaker output by the virtual speaker selection unit 340, and the virtual speaker signal output by the virtual speaker signal generation unit 350, so as to obtain the reconstructed three-dimensional audio signal. The reconstructed three-dimensional audio signal output by the signal reconstruction unit 370 is used as the input of the residual signal generation unit 380.

[0101] The residual signal generating unit 380 is used to generate a residual signal according to the reconstructed 3D audio signal and the 3D audio signal to be encoded. The residual signal may represent the difference between the reconstructed 3D audio signal obtained by the virtual speaker signal and the original 3D audio signal. The residual signal output by the residual signal generating unit 380 is used as the input of the residual signal selecting unit 390 and the signal compensating unit 3100.

[0102] The encoding unit 360 may encode the virtual speaker signal and the residual signal to obtain a bit stream. In order to improve the encoding efficiency of the encoder 300, a portion of the residual signal may be selected from the residual signal for encoding by the encoding unit 360. Optionally, the encoder 300 may further include a residual signal selection unit 390 and a signal compensation unit 3100.

[0103] The residual signal selection unit 390 is used to determine the residual signal to be encoded according to the virtual speaker signal and the residual signal. For example, the residual signal includes (N+1) 2coefficients, the residual signal selection unit 390 can select (N+1) 2 Select the coefficients less than (N+1) 2 The coefficients of are used as the residual signal to be encoded. The residual signal to be encoded output by the residual signal selection unit 390 is used as the input of the encoding unit 360 and the signal compensation unit 3100.

[0104] Since the residual signal selection unit 390 selects the number of coefficients less than the N-th order ambisonic coefficient as the residual signal to be transmitted, there will be information loss compared with the residual signal of the N-th order ambisonic coefficient, so the signal compensation unit 3100 performs information compensation on the residual signal not transmitted. The signal compensation unit 3100 is used to determine compensation information according to the three-dimensional audio signal to be encoded, the residual signal and the residual signal to be encoded, and the compensation information is used to indicate the relevant information of the residual signal to be encoded and the residual signal not transmitted, for example, the compensation information is used to indicate the difference between the residual signal to be encoded and the residual signal not transmitted, so that the decoding end provides decoding accuracy.

[0105] The encoding unit 360 is used to perform core encoding processing on the virtual speaker signal, the residual signal to be encoded and the compensation information to obtain a bit stream. The core encoding processing includes but is not limited to: transformation, quantization, psychoacoustic model, noise shaping, bandwidth extension, downmixing, arithmetic coding and bit stream generation.

[0106] It is worth noting that the spatial encoder 1131 may include a virtual speaker configuration unit 310, a virtual speaker set generation unit 320, a coding analysis unit 330, a virtual speaker selection unit 340, and a virtual speaker signal generation unit 350, that is, the virtual speaker configuration unit 310, the virtual speaker set generation unit 320, the coding analysis unit 330, the virtual speaker selection unit 340, the virtual speaker signal generation unit 350, the signal reconstruction unit 370, the residual signal generation unit 380, the residual signal selection unit 390, and the signal compensation unit 3100 implement the function of the spatial encoder 1131. The core encoder 1132 may include an encoding unit 360, that is, the encoding unit 360 implements the function of the core encoder 1132.

[0107] Figure 3 The encoder shown can generate one virtual speaker signal or multiple virtual speaker signals. Multiple virtual speaker signals can be generated by Figure 3 The encoder shown is executed multiple times, or it can be obtained by Figure 3 The encoder shown is obtained by one execution.

[0108] Next, the encoding and decoding process of the three-dimensional audio signal is described with reference to the accompanying drawings. Figure 4A schematic diagram of a flow chart of a three-dimensional audio signal encoding and decoding method provided in an embodiment of the present application. Figure 1 The source device 110 and the destination device 120 perform a three-dimensional audio signal encoding and decoding process as an example for explanation. Figure 4 As shown, the method includes the following steps.

[0109] S410: The source device 110 obtains a current frame of a 3D audio signal.

[0110] As described in the above embodiment, if the source device 110 carries the audio acquirer 111, the source device 110 can collect the original audio through the audio acquirer 111. Optionally, the source device 110 can also receive the original audio collected by other devices; or obtain the original audio from the memory or other memory in the source device 110. The original audio may include at least one of the real-world sound collected in real time, the audio stored in the device, and the audio synthesized from multiple audios. This embodiment does not limit the method for obtaining the original audio and the type of the original audio.

[0111] After the source device 110 obtains the original audio, it generates a three-dimensional audio signal according to the three-dimensional audio technology and the original audio, so that the destination device 120 can play back the reconstructed three-dimensional audio signal, that is, when the destination device 120 plays back the sound generated by the reconstructed three-dimensional audio signal, it provides the listener with an "immersive" sound effect. The specific method of generating the three-dimensional audio signal can refer to the description of the preprocessor 112 in the above embodiment and the description of the prior art.

[0112] In addition, the audio signal is a continuous analog signal. In the process of audio signal processing, the audio signal can be sampled first to generate a digital signal of a frame sequence. A frame can include multiple sampling points. A frame can also refer to a sampling point obtained by sampling. A frame can also include a subframe obtained by dividing a frame. A frame can also refer to a subframe obtained by dividing a frame. For example, a frame length is L sampling points, which is divided into N subframes, then each subframe corresponds to L / N sampling points. Audio encoding and decoding usually refers to processing an audio frame sequence containing multiple sampling points.

[0113] The audio frame may include a current frame or a previous frame. The current frame or previous frame described in various embodiments of the present application may refer to a frame or a subframe. The current frame refers to a frame that is being coded and decoded at the current moment. The previous frame refers to a frame that has been coded and decoded at a moment before the current moment. The previous frame may be a frame at a moment before the current moment or at multiple moments before the current moment. In an embodiment of the present application, the current frame of a three-dimensional audio signal refers to a frame of a three-dimensional audio signal that is being coded and decoded at the current moment. The previous frame refers to a frame of a three-dimensional audio signal that has been coded and decoded at a moment before the current moment. The current frame of a three-dimensional audio signal may refer to a current frame to be encoded of a three-dimensional audio signal. The current frame of a three-dimensional audio signal may be referred to as a current frame. The previous frame of a three-dimensional audio signal may be referred to as a previous frame.

[0114] S420 : The source device 110 determines a candidate virtual speaker set.

[0115] In one case, a candidate virtual speaker set is pre-configured in the memory of the source device 110. The source device 110 can read the candidate virtual speaker set from the memory. The candidate virtual speaker set includes a plurality of virtual speakers. The virtual speaker represents a speaker that exists virtually in the spatial sound field. The virtual speaker is used to calculate a virtual speaker signal based on the three-dimensional audio signal so that the destination device 120 can play back the reconstructed three-dimensional audio signal, that is, to facilitate the destination device 120 to play back the sound generated by the reconstructed three-dimensional audio signal.

[0116] In another case, virtual speaker configuration parameters are pre-configured in the memory of the source device 110. The source device 110 generates a candidate virtual speaker set according to the virtual speaker configuration parameters. Optionally, the source device 110 generates a candidate virtual speaker set in real time according to its own computing resources (such as processor) capabilities and the characteristics of the current frame (such as channels and data volume).

[0117] The specific method for generating a candidate virtual speaker set may refer to the prior art, as well as the description of the virtual speaker configuration unit 310 and the virtual speaker set generation unit 320 in the above embodiments.

[0118] S430 : The source device 110 selects a representative virtual speaker of the current frame from the candidate virtual speaker set according to the current frame of the three-dimensional audio signal.

[0119] The source device 110 may select a representative virtual speaker for the current frame from the candidate virtual speaker set according to a match-projection (MP) method.

[0120] The source device 110 may also vote for the virtual speaker according to the coefficients of the current frame and the coefficients of the virtual speaker, and select a representative virtual speaker of the current frame from the candidate virtual speaker set according to the voting value of the virtual speaker. A limited number of representative virtual speakers of the current frame are searched from the candidate virtual speaker set as the best matching virtual speakers of the current frame to be encoded, thereby achieving the purpose of data compression of the three-dimensional audio signal to be encoded.

[0121] It should be noted that the representative virtual speaker of the current frame belongs to the candidate virtual speaker set. The number of the representative virtual speakers of the current frame is less than or equal to the number of virtual speakers included in the candidate virtual speaker set.

[0122] S440 : The source device 110 generates a virtual speaker signal according to the current frame of the 3D audio signal and the representative virtual speaker of the current frame.

[0123] The source device 110 generates a virtual speaker signal according to the coefficients of the current frame and the coefficients representing the virtual speakers of the current frame. The specific method of generating the virtual speaker signal can refer to the prior art and the description of the virtual speaker signal generating unit 350 in the above embodiment.

[0124] S450: The source device 110 generates a reconstructed three-dimensional audio signal according to the representative virtual speaker and the virtual speaker signal of the current frame.

[0125] The source device 110 generates a reconstructed 3D audio signal according to the coefficients representing the virtual speakers and the coefficients of the virtual speaker signal of the current frame. The specific method for generating the reconstructed 3D audio signal can refer to the prior art and the description of the signal reconstruction unit 370 in the above embodiment.

[0126] S460: The source device 110 generates a residual signal according to the current frame of the 3D audio signal and the reconstructed 3D audio signal.

[0127] S470: The source device 110 generates compensation information according to the current frame of the 3D audio signal and the residual signal.

[0128] The specific method of generating the residual signal and the compensation information may refer to the prior art and the description of the residual signal generating unit 380 and the signal compensation unit 3100 in the above embodiments.

[0129] S480 : The source device 110 encodes the virtual speaker signal, the residual signal and the compensation information to obtain a bit stream.

[0130] The source device 110 can perform encoding operations such as transformation or quantization on the virtual speaker signal, the residual signal and the compensation information to generate a bitstream, thereby achieving the purpose of data compression of the 3D audio signal to be encoded. The specific method of generating the bitstream can refer to the prior art and the description of the encoding unit 360 in the above embodiment.

[0131] S490 : The source device 110 sends a code stream to the destination device 120 .

[0132] After the source device 110 has completely encoded the original audio, it can send the code stream of the original audio to the destination device 120. Alternatively, the source device 110 can also encode the three-dimensional audio signal in real time in units of frames, and send the code stream of one frame after encoding one frame. The specific method of sending the code stream can refer to the prior art and the description of the communication interface 114 and the communication interface 124 in the above embodiment.

[0133] S4100 : The destination device 120 decodes the code stream sent by the source device 110 , reconstructs a 3D audio signal, and obtains a reconstructed 3D audio signal.

[0134] After receiving the code stream, the destination device 120 decodes the code stream to obtain a virtual speaker signal, and then reconstructs the three-dimensional audio signal according to the candidate virtual speaker set and the virtual speaker signal to obtain a reconstructed three-dimensional audio signal. The destination device 120 plays back the reconstructed three-dimensional audio signal, that is, the destination device 120 plays back the sound generated by the reconstructed three-dimensional audio signal. Alternatively, the destination device 120 transmits the reconstructed three-dimensional audio signal to other playback devices, and the other playback devices play the reconstructed three-dimensional audio signal, that is, the other playback devices play the sound generated by the reconstructed three-dimensional audio signal, so that the listener is placed in a theater, concert hall or virtual scene. The "immersive" sound effect is more realistic.

[0135] At present, in the process of searching for virtual speakers, the encoder uses the result of the correlation calculation between the three-dimensional audio signal to be encoded and the virtual speaker as a selection criterion for the virtual speaker. If the encoder transmits a virtual speaker for each coefficient, the purpose of data compression cannot be achieved, and a heavy computational burden will be imposed on the encoder. However, if the virtual speakers used by the encoder to encode different frames of the three-dimensional audio signal are highly volatile, the quality of the reconstructed three-dimensional audio signal is low, and the sound quality of the sound played by the decoding end is poor. Therefore, an embodiment of the present application provides a method for selecting a virtual speaker. After the encoder obtains the initial virtual speaker of the current frame, the coding efficiency of the initial virtual speaker is determined, and the ability of the initial virtual speaker represented by the coding efficiency to reconstruct the sound field to which the three-dimensional audio signal belongs is used to determine whether to reselect the virtual speaker of the current frame. When the coding efficiency of the initial virtual speaker of the current frame meets the preset conditions, that is, when the initial virtual speaker of the current frame cannot fully represent the scene of the sound field to which the three-dimensional audio signal belongs, the virtual speaker of the current frame is reselected, and the updated virtual speaker of the current frame is used as the virtual speaker for encoding the current frame. Therefore, by reselecting virtual speakers, the fluctuation of virtual speakers used for encoding different frames of the 3D audio signal is reduced, and the quality of the 3D audio signal reconstructed at the decoding end and the sound quality of the sound played at the decoding end are improved.

[0136] In the embodiment of the present application, the coding efficiency may also be referred to as the efficiency of reconstructing a sound field, the efficiency of reconstructing a three-dimensional audio signal, or the efficiency of selecting a virtual speaker.

[0137] Next, the process of selecting a virtual speaker is described in detail with reference to the accompanying drawings. Figure 5 A schematic diagram of a flow chart of a three-dimensional audio signal encoding method provided in an embodiment of the present application. Figure 1 The following description will be made by taking the encoder 113 in the source device 110 as an example to select a virtual speaker. Figure 5 As shown, the method includes the following steps.

[0138] S510 : The encoder 113 obtains a current frame of a 3D audio signal.

[0139] The encoder 113 may obtain a current frame of a 3D audio signal obtained by processing the original audio acquired by the audio acquirer 111 through the preprocessor 112. For explanations related to the current frame of the 3D audio signal, reference may be made to the above description of S410.

[0140] S520: The encoder 113 obtains a coding efficiency of an initial virtual speaker of a current frame according to a current frame of the three-dimensional audio signal.

[0141] The encoder 113 selects an initial virtual speaker for the current frame from the candidate virtual speaker set according to the current frame of the three-dimensional audio signal. The initial virtual speaker for the current frame belongs to the candidate virtual speaker set. The number of initial virtual speakers for the current frame is less than or equal to the number of virtual speakers included in the candidate virtual speaker set. For a specific method of obtaining the initial virtual speaker, refer to S420 and S430 above, as well as the following Fig.11 Gets the representation of the virtual speaker.

[0142] The coding efficiency of the initial virtual speaker of the current frame represents the ability of the initial virtual speaker of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs. It can be understood that if the initial virtual speaker of the current frame fully expresses the sound field information of the three-dimensional audio signal, the ability of the initial virtual speaker of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is relatively strong. If the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, the ability of the initial virtual speaker of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is relatively weak.

[0143] The following describes a method in which the encoder 113 obtains the encoding efficiency of the initial virtual speaker of the current frame.

[0144] In a first possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speaker of the current frame based on the energy of the reconstructed current frame and the energy of the current frame, and then executes S530. The encoder 113 first determines the virtual speaker signal of the current frame based on the current frame of the three-dimensional audio signal and the initial virtual speaker of the current frame, and determines the reconstructed current frame of the reconstructed three-dimensional audio signal based on the initial virtual speaker of the current frame and the virtual speaker signal. It should be noted that the reconstructed current frame of the reconstructed three-dimensional audio signal here is the reconstructed three-dimensional audio signal pre-estimated by the encoding end, and is not the reconstructed three-dimensional audio signal reconstructed by the decoding end. Specifically, the specific method for generating the virtual speaker signal of the current frame and the reconstructed current frame of the reconstructed three-dimensional audio signal can refer to the description in the above S440 and S450. The coding efficiency of the initial virtual speaker of the current frame can satisfy the following formula (6).

[0145]

[0146] Where R′ represents the coding efficiency of the initial virtual speaker of the current frame. NRG1 represents the energy of the reconstructed current frame. NRG2 represents the energy of the current frame.

[0147] In some embodiments, the energy of reconstructing the current frame is determined based on the coefficients of reconstructing the current frame. The energy of the current frame is determined based on the coefficients of the current frame. For example, the encoder 113 can calculate the energy characterization values ​​R1, R2 to Rt of each channel of the reconstructed current frame, Rt = norm(SRt). norm() represents the operation of obtaining the second norm, and SRt represents the modified discrete cosine transform (MDCT) coefficients contained in the tth channel of the reconstructed current frame. If the three-dimensional audio signal is an HOA signal, the value range of t is 1 to the square of (the order of the HOA signal + 1).

[0148] The encoder 113 may calculate the energy representation values ​​N1, N2 to Nt of the current frame, where Nt=norm(SNt). SNt represents the MDCT coefficients included in the t-th channel of the current frame.

[0149] Therefore, the coding efficiency of the initial virtual speaker of the current frame is R′=sum(R) / sum(N). Where sum(R) represents the sum of R1 to Rt, NRG1 is equal to sum(R). sum(N) represents the sum of N1 to Nt. NRG2 is equal to sum(N).

[0150] In a second possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the energy of the virtual speaker signal of the current frame to the sum of the energy of the virtual speaker signal of the current frame and the energy of the residual signal, and then executes S530. Among them, the sum of the energy of the virtual speaker signal of the current frame and the energy of the residual signal can represent the energy of the transmission signal. The encoder 113 first determines the virtual speaker signal of the current frame according to the current frame of the three-dimensional audio signal and the initial virtual speaker of the current frame, and determines the reconstructed current frame of the reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame and the virtual speaker signal, and obtains the residual signal of the current frame according to the current frame and the reconstructed current frame. Specifically, the specific method for generating the residual signal can refer to the description in the above S460. The coding efficiency of the initial virtual speaker of the current frame can satisfy the following formula (7).

[0151]

[0152] Wherein, R′ represents the coding efficiency of the initial virtual speaker of the current frame, NRG3 represents the energy of the virtual speaker signal of the current frame, and NRG4 represents the energy of the residual signal.

[0153] In a third possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the number of initial virtual speakers of the current frame to the number of sound sources, and then executes S530. The encoder 113 may determine the number of sound sources according to the current frame of the three-dimensional audio signal. Specifically, the specific method for determining the number of sound sources of the three-dimensional audio signal may refer to the description in the above-mentioned coding analysis unit 330. The coding efficiency of the initial virtual speaker of the current frame may satisfy the following formula (8).

[0154]

[0155] Wherein, R′ represents the coding efficiency of the initial virtual speaker of the current frame. N1 represents the number of the initial virtual speakers of the current frame. N2 represents the number of sound sources of the three-dimensional audio signal. The number of sound sources may be pre-arranged according to the actual scene, for example. The number of sound sources may be an integer greater than or equal to 1.

[0156] In a fourth possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the number of virtual speaker signals of the current frame to the number of sound sources of the three-dimensional audio signal, and then performs S530. The coding efficiency of the initial virtual speaker of the current frame may satisfy the following formula (9).

[0157]

[0158] Wherein, R′ represents the coding efficiency of the initial virtual speaker of the current frame, N3 represents the number of virtual speaker signals of the current frame, and N2 represents the number of sound sources of the three-dimensional audio signal.

[0159] S530: The encoder 113 determines whether the encoding efficiency of the initial virtual speaker of the current frame meets a preset condition.

[0160] If the encoding efficiency of the initial virtual speaker of the current frame meets the preset conditions, it means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the ability of the initial virtual speaker of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is weak, and the encoder 113 executes S540 and S550.

[0161] If the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset conditions, it means that the initial virtual speaker of the current frame fully expresses the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame has a strong ability to reconstruct the sound field to which the three-dimensional audio signal belongs, and the encoder 113 executes S560.

[0162] For example, the preset condition includes that the encoding efficiency of the initial virtual speaker of the current frame is less than a first threshold. The encoder 113 may determine whether the encoding efficiency of the initial virtual speaker of the current frame is less than the first threshold.

[0163] It should be noted that, for the above four different possible implementations, the value range of the first threshold may be different.

[0164] For example, in the first possible implementation, the value range of the first threshold may be 0.5 to 1. It is understandable that if the coding efficiency is less than 0.5, it means that the energy of reconstructing the current frame is less than half of the energy of the current frame, which means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is weak in its ability to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0165] For another example, in the second possible implementation, the value range of the first threshold may be 0.5 to 1. It is understandable that if the coding efficiency is less than 0.5, it means that the energy of the virtual speaker signal of the current frame is less than half of the energy of the transmission signal, which means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is weak in its ability to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0166] For another example, in the third possible implementation, the value range of the first threshold may be 0 to 1. It is understandable that if the coding efficiency is less than 1, it means that the number of initial virtual speakers of the current frame is less than the number of sound sources of the three-dimensional audio signal, indicating that the initial virtual speakers of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speakers of the current frame are weak in ability to reconstruct the sound field to which the three-dimensional audio signal belongs. For example, the number of initial virtual speakers of the current frame may be 2, and the number of sound sources of the three-dimensional audio signal may be 4. The number of initial virtual speakers of the current frame is half of the number of sound sources, indicating that the initial virtual speakers of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speakers of the current frame are weak in ability to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0167] For another example, in the fourth possible implementation, the value range of the first threshold may be 0 to 1. It is understandable that if the coding efficiency is less than 1, it means that the number of virtual speaker signals of the current frame is less than the number of sound sources of the three-dimensional audio signal, indicating that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is used to reconstruct the sound field to which the three-dimensional audio signal belongs. The ability is relatively weak. For example, the number of virtual speaker signals of the current frame may be 2, and the number of sound sources of the three-dimensional audio signal may be 4. The number of virtual speaker signals of the current frame is half of the number of sound sources, indicating that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal, and the initial virtual speaker of the current frame is used to reconstruct the sound field to which the three-dimensional audio signal belongs.

[0168] In some embodiments, the first threshold value may also be a specific value, for example, the first threshold value is 0.65.

[0169] It is understandable that, the larger the first threshold value is, the stricter the preset condition is, the greater the probability that the encoder 113 reselects the virtual speaker and the higher the complexity of selecting the virtual speaker of the current frame is, the smaller the volatility of the virtual speaker used for encoding between different frames of the three-dimensional audio signal is; conversely, the smaller the first threshold value is, the looser the preset condition is, the smaller the probability that the encoder 113 reselects the virtual speaker and the lower the complexity of selecting the virtual speaker of the current frame is, the greater the volatility of the virtual speaker used for encoding between different frames of the three-dimensional audio signal is. The first threshold value can be set according to the actual application scenario, and the specific value of the first threshold value is not limited in this embodiment.

[0170] S540 : The encoder 113 determines an updated virtual speaker for the current frame from the candidate virtual speaker set.

[0171] In one possible example, Figure 6 As shown, Figure 6 and Figure 3 The difference is that the encoder 300 further includes a post-processing unit 3200. The post-processing unit 3200 is connected to the virtual speaker signal generating unit 350 and the signal reconstruction unit 370 respectively. After the post-processing unit 3200 obtains the reconstructed current frame of the reconstructed three-dimensional audio signal from the signal reconstruction unit 370, it can determine the coding efficiency of the initial virtual speaker of the current frame according to the energy of the reconstructed current frame and the energy of the current frame. If the post-processing unit 3200 determines that the coding efficiency of the initial virtual speaker of the current frame meets the preset condition, the updated virtual speaker of the current frame is determined from the candidate virtual speaker set. Furthermore, the post-processing unit 3200 feeds back the updated virtual speaker of the current frame to the signal reconstruction unit 370, the virtual speaker signal generating unit 350 and the encoding unit 360, the virtual speaker signal generating unit 350 generates a virtual speaker signal according to the updated virtual speaker of the current frame and the current frame, and the signal reconstruction unit 370 generates the reconstructed three-dimensional audio signal according to the updated virtual speaker of the current frame and the updated virtual speaker signal. The input and output of each unit in the residual signal generating unit 380, the residual signal selecting unit 390, the signal compensating unit 3100 and the encoding unit 360 are information related to the updated virtual speaker of the current frame (such as: the reconstructed three-dimensional audio signal and the virtual speaker signal), which is different from the information generated according to the initial virtual speaker of the current frame. It can be understood that after the post-processing unit 3200 obtains the updated virtual speaker of the current frame, the encoder 113 performs steps S440 to S480 according to the updated virtual speaker.

[0172] like Figure 7 As shown, Figure 7 and Figure 6 The difference is that the encoder 300 further includes a post-processing unit 3200. The post-processing unit 3200 is connected to the virtual speaker signal generating unit 350 and the residual signal generating unit 380 respectively. The post-processing unit 3200 can obtain the virtual speaker signal of the current frame from the virtual speaker signal generating unit 350, and after obtaining the residual signal from the residual signal generating unit 380, determine the coding efficiency of the initial virtual speaker of the current frame according to the ratio of the energy of the virtual speaker signal of the current frame to the sum of the energy of the virtual speaker signal of the current frame and the energy of the residual signal. If the post-processing unit 3200 determines that the coding efficiency of the initial virtual speaker of the current frame meets the preset conditions, the updated virtual speaker of the current frame is determined from the candidate virtual speaker set.

[0173] like Figure 8 As shown, Figure 8 and Figure 6 The difference is that the encoder 300 further includes a post-processing unit 3200. The post-processing unit 3200 is connected to the coding analysis unit 330 and the virtual speaker selection unit 340 respectively. The post-processing unit 3200 can obtain the number of sound sources of the three-dimensional audio signal from the coding analysis unit 330, and obtain the number of initial virtual speakers of the current frame from the virtual speaker selection unit 340, and then determine the coding efficiency of the initial virtual speakers of the current frame according to the ratio of the number of initial virtual speakers of the current frame to the number of sound sources of the three-dimensional audio signal. If the post-processing unit 3200 determines that the coding efficiency of the initial virtual speakers of the current frame meets the preset conditions, the updated virtual speakers of the current frame are determined from the candidate virtual speaker set. The number of initial virtual speakers of the current frame can be preset or analyzed by the virtual speaker selection unit 340.

[0174] like Fig. 9 As shown, Fig. 9 and Figure 8 The difference is that the encoder 300 further includes a post-processing unit 3200. The post-processing unit 3200 is connected to the coding analysis unit 330 and the virtual speaker signal generating unit 350 respectively. After the post-processing unit 3200 obtains the number of sound sources of the three-dimensional audio signal from the coding analysis unit 330 and the number of virtual speaker signals of the current frame from the virtual speaker signal generating unit 350, the coding efficiency of the initial virtual speaker of the current frame is determined according to the ratio of the number of virtual speaker signals of the current frame to the number of sound sources of the three-dimensional audio signal. If the post-processing unit 3200 determines that the coding efficiency of the initial virtual speaker of the current frame meets the preset conditions, the updated virtual speaker of the current frame is determined from the candidate virtual speaker set. The number of virtual speaker signals of the current frame can be preset or analyzed by the virtual speaker selecting unit 340.

[0175] If the coding efficiency of the initial virtual speaker of the current frame meets the preset condition, the encoder 113 may further determine the coding efficiency according to a second threshold value that is smaller than the first threshold value, so that the encoder 113 can reselect the accuracy of the virtual speaker of the current frame.

[0176] For example, Fig.10 As shown, Fig.10 The method flow described is Figure 5 An explanation of the specific operation process included in S540.

[0177] S541 : The encoder 113 determines whether the encoding efficiency of the initial virtual speaker of the current frame is less than a second threshold.

[0178] If the encoding efficiency of the initial virtual speaker of the current frame is less than or equal to the second threshold, execute S542; if the encoding efficiency of the initial virtual speaker of the current frame is greater than the second threshold and the encoding efficiency is less than the first threshold, execute S543.

[0179] S542: The encoder 113 uses the preset virtual speaker in the candidate virtual speaker set as the updated virtual speaker for the current frame.

[0180] The preset virtual speaker may be a specified virtual speaker. The specified virtual speaker may be any virtual speaker in the virtual speaker set. For example, the horizontal angle of the specified virtual speaker is 100 degrees, and the pitch angle is 50 degrees.

[0181] The preset virtual speakers may be virtual speakers according to a standard speaker layout or virtual speakers according to a non-standard speaker layout. Standard speakers may refer to speakers arranged according to 22.2 channels, 7.1.4 channels, 5.1.4 channels, 7.1 channels, or 5.1 channels, etc. Non-standard speakers may refer to speakers pre-arranged according to actual scenarios.

[0182] The preset virtual speaker may also be a virtual speaker determined according to the position of the sound source in the sound field. The position of the sound source may be obtained from the encoding analysis unit 330 or from the three-dimensional audio signal to be encoded.

[0183] S543: The encoder 113 uses the virtual speaker of the previous frame as the updated virtual speaker of the current frame.

[0184] The virtual speaker of the previous frame is a virtual speaker used to encode the previous frame of the three-dimensional audio signal.

[0185] It should be noted that the encoder 113 encodes the current frame using the updated virtual speaker of the current frame as the representative virtual speaker of the current frame.

[0186] Optionally, if the coding efficiency of the initial virtual speaker of the current frame is greater than the second threshold value, and the coding efficiency is less than the first threshold value, the encoder 113 may also determine the adjusted coding efficiency of the initial virtual speaker of the current frame according to the coding efficiency of the initial virtual speaker of the current frame and the coding efficiency of the virtual speaker of the previous frame. For example, the encoder 113 may generate the adjusted coding efficiency of the initial virtual speaker of the current frame according to the coding efficiency of the initial virtual speaker of the current frame and the average coding efficiency of the virtual speakers of the previous frame. The adjusted coding efficiency satisfies formula (10).

[0187]

[0188] Wherein, R′ represents the coding efficiency of the initial virtual speaker of the current frame, MR′ represents the adjusted coding efficiency, and MR represents the average coding efficiency of the virtual speakers of the previous frame. The previous frame may refer to one or more frames before the current frame.

[0189] If the encoding efficiency of the initial virtual speaker of the current frame is greater than the adjusted encoding efficiency of the initial virtual speaker of the current frame, it means that the initial virtual speaker of the current frame can fully express the sound field information of the three-dimensional audio signal compared with the virtual speaker of the previous frame. Therefore, the encoder 113 uses the initial virtual speaker of the current frame as the virtual speaker of the subsequent frame of the current frame. Thereby, the volatility of the virtual speaker used for encoding different frames of the three-dimensional audio signal is further reduced, ensuring the improvement of the quality of the three-dimensional audio signal reconstructed by the decoding end and the sound quality of the sound played by the decoding end.

[0190] If the coding efficiency of the initial virtual speaker of the current frame is less than the adjusted coding efficiency of the initial virtual speaker of the current frame, it means that the initial virtual speaker of the current frame cannot fully express the sound field information of the three-dimensional audio signal compared with the virtual speaker of the previous frame. The virtual speaker of the previous frame can be used as the virtual speaker of the subsequent frame of the current frame.

[0191] It should be noted that the second threshold value may be a specific value. The second threshold value is less than the first threshold value. For example, the second threshold value is 0.55. The specific values ​​of the first threshold value and the second threshold value are not limited in this embodiment.

[0192] Optionally, in a scenario where the encoding efficiency of the initial virtual speaker of the current frame meets a preset condition, the encoder 113 may adjust the first threshold according to a preset granularity. For example, the preset granularity may be 0.1. For example, the first threshold is 0.65, the second threshold is 0.55, and the third threshold is 0.45. If the encoding efficiency of the initial virtual speaker of the current frame is less than or equal to the second threshold, the encoder 113 may determine whether the encoding efficiency of the initial virtual speaker of the current frame is less than the third threshold.

[0193] S550 : The encoder 113 encodes the current frame according to the updated virtual speaker of the current frame to obtain a first bit stream.

[0194] The encoder 113 generates an updated virtual speaker signal according to the updated virtual speaker of the current frame and the current frame, generates an updated reconstructed three-dimensional audio signal according to the updated virtual speaker of the current frame and the updated virtual speaker signal, determines an updated residual signal according to the updated reconstructed current frame and the current frame; and determines a first bitstream according to the current frame and the updated residual signal. The encoder 113 can generate a first bitstream according to the above descriptions of S430 to S480, that is, the encoder 113 updates the initial virtual speaker of the current frame, and uses the updated virtual speaker of the current frame, the updated residual signal, and the updated compensation information to encode to obtain the first bitstream.

[0195] S560: The encoder 113 encodes the current frame according to the initial virtual speaker of the current frame to obtain a second code stream.

[0196] The encoder 113 may generate the second bitstream according to the above description of S430 to S480, that is, the encoder 113 does not need to update the initial virtual speaker of the current frame, and uses the initial virtual speaker of the current frame, the residual signal and the compensation information to encode to obtain the second bitstream.

[0197] In this way, in a scenario where the initial virtual speaker of the current frame cannot fully represent the sound field to which the three-dimensional audio signal belongs, resulting in poor quality of the three-dimensional audio signal reconstructed at the decoding end, the encoder can determine to reselect the virtual speaker of the current frame based on the ability of the initial virtual speaker indicated by the coding efficiency of the initial virtual speaker to reconstruct the sound field to which the three-dimensional audio signal belongs, and the encoder uses the updated virtual speaker of the current frame as the virtual speaker for encoding the current frame. Thus, by reselecting the virtual speaker, the encoder reduces the volatility of the virtual speaker used for encoding different frames of the three-dimensional audio signal, improves the quality of the three-dimensional audio signal reconstructed at the decoding end, and the sound quality of the sound played at the decoding end.

[0198] In some embodiments, the source device 110 votes for the virtual speaker according to the coefficients of the current frame and the coefficients of the virtual speaker, and selects a representative virtual speaker of the current frame from the candidate virtual speaker set according to the voting value of the virtual speaker, so as to achieve the purpose of data compression of the 3D audio signal to be encoded. In this embodiment, the representative virtual speaker of the current frame can be used as the initial virtual speaker of the above embodiments.

[0199] Fig.11 A flowchart of a method for selecting a virtual speaker provided in an embodiment of the present application. Fig.11 The method flow described is Figure 4 The specific operation process included in S430 is described here. Figure 1 The encoder 113 in the source device 110 shown in the figure performs the process of selecting a virtual speaker as an example. Specifically, the function of the virtual speaker selection unit 340 is implemented. Fig.11 As shown, the method includes the following steps.

[0200] S1110 , the encoder 113 obtains representative coefficients of the current frame.

[0201] The representative coefficient may refer to a frequency domain representative coefficient or a time domain representative coefficient. The frequency domain representative coefficient may also be called a frequency domain representative frequency point or a spectrum representative coefficient. The time domain representative coefficient may also be called a time domain representative sampling point.

[0202] For example, after the encoder 113 obtains the fourth number of coefficients of the current frame of the three-dimensional audio signal and the frequency domain eigenvalues ​​of the fourth number of coefficients, it selects the third number of representative coefficients from the fourth number of coefficients according to the frequency domain eigenvalues ​​of the fourth number of coefficients, and then selects the second number of representative virtual speakers of the current frame from the candidate virtual speaker set according to the third number of representative coefficients. The fourth number of coefficients includes the third number of representative coefficients, and the third number is less than the fourth number, indicating that the third number of representative coefficients are part of the fourth number of coefficients. The current frame of the three-dimensional audio signal is an HOA signal; the frequency domain eigenvalues ​​of the coefficients are determined based on the coefficients of the HOA signal.

[0203] In this way, since the encoder selects part of the coefficients from all the coefficients of the current frame as representative coefficients and uses a smaller number of representative coefficients instead of all the coefficients of the current frame to select representative virtual speakers from the candidate virtual speaker set, the computational complexity of the encoder's search for virtual speakers is effectively reduced, thereby reducing the computational complexity of compressing and encoding three-dimensional audio signals and alleviating the computational burden of the encoder.

[0204] S1120 : The encoder 113 selects a representative virtual speaker for the current frame from the candidate virtual speaker set according to the voting values ​​of the virtual speakers in the candidate virtual speaker set by the representative coefficients of the current frame.

[0205] The encoder 113 votes for the virtual speakers in the candidate virtual speaker set according to the representative coefficients of the current frame and the coefficients of the virtual speakers, and selects (searches) the representative virtual speakers of the current frame from the candidate virtual speaker set according to the final voting values ​​of the virtual speakers in the current frame.

[0206] For example, the encoder 113 determines the first number of virtual speakers and the first number of voting values ​​according to the third number of representative coefficients of the current frame, the candidate virtual speaker set and the number of voting rounds, and selects the second number of representative virtual speakers of the current frame from the first number of virtual speakers according to the first number of voting values. The second number is less than the first number, indicating that the second number of representative virtual speakers of the current frame are part of the virtual speakers in the candidate virtual speaker set. It can be understood that the virtual speakers correspond to the voting values ​​one by one. For example, the first number of virtual speakers includes the first virtual speaker, the first number of voting values ​​includes the voting value of the first virtual speaker, and the first virtual speaker corresponds to the voting value of the first virtual speaker. The voting value of the first virtual speaker is used to characterize the priority of using the first virtual speaker when encoding the current frame. The candidate virtual speaker set includes the fifth number of virtual speakers, the fifth number of virtual speakers includes the first number of virtual speakers, the first number is less than or equal to the fifth number, the number of voting rounds is an integer greater than or equal to 1, and the number of voting rounds is less than or equal to the fifth number.

[0207] At present, in the process of searching for virtual speakers, the encoder uses the result of the correlation calculation between the three-dimensional audio signal to be encoded and the virtual speaker as a selection criterion for the virtual speaker. Moreover, if the encoder transmits a virtual speaker for each coefficient, the purpose of efficient data compression cannot be achieved, and a heavy computational burden will be imposed on the encoder. In the method for selecting virtual speakers provided in an embodiment of the present application, the encoder uses a smaller number of representative coefficients to replace all coefficients of the current frame to vote for each virtual speaker in the candidate virtual speaker set, and selects the representative virtual speaker of the current frame according to the voting value. Furthermore, the encoder uses the representative virtual speaker of the current frame to compress and encode the three-dimensional audio signal to be encoded, which not only effectively improves the compression rate of the compression encoding of the three-dimensional audio signal, but also reduces the computational complexity of the encoder's search for virtual speakers, thereby reducing the computational complexity of the compression encoding of the three-dimensional audio signal and alleviating the computational burden of the encoder.

[0208] The second number is used to characterize the number of representative virtual speakers of the current frame selected by the encoder. The larger the second number, the larger the number of representative virtual speakers of the current frame, and the more sound field information of the three-dimensional audio signal; the smaller the second number, the smaller the number of representative virtual speakers of the current frame, and the less sound field information of the three-dimensional audio signal. Therefore, the number of representative virtual speakers of the current frame selected by the encoder can be controlled by setting the second number. For example, the second number can be preset, or, as another example, the second number can be determined based on the current frame. By way of example, the value of the second number can be 1, 2, 4, or 8.

[0209] It should be noted that the encoder first traverses the virtual speakers included in the candidate virtual speaker set, and compresses the current frame using the representative virtual speakers of the current frame selected from the candidate virtual speaker set. However, if the results of the virtual speakers selected in consecutive frames are very different, the sound image of the reconstructed three-dimensional audio signal will be unstable, and the sound quality of the reconstructed three-dimensional audio signal will be reduced. In an embodiment of the present application, the encoder 113 can update the initial voting value of the current frame of the virtual speaker included in the candidate virtual speaker set according to the final voting value of the previous frame of the representative virtual speaker of the previous frame, and obtain the final voting value of the current frame of the virtual speaker, and then select the representative virtual speaker of the current frame from the candidate virtual speaker set according to the final voting value of the current frame of the virtual speaker. Thus, by referring to the representative virtual speaker of the previous frame to select the representative virtual speaker of the current frame, the encoder tends to select the same virtual speaker as the representative virtual speaker of the previous frame when selecting the representative virtual speaker of the current frame, thereby increasing the continuity of the orientation between consecutive frames and overcoming the problem that the results of the virtual speakers selected in consecutive frames are very different. Therefore, an embodiment of the present application may also include S1130.

[0210] S1130 , the encoder 113 adjusts the current frame initial voting value of the virtual speaker in the candidate virtual speaker set according to the previous frame final voting value of the representative virtual speaker in the previous frame to obtain the current frame final voting value of the virtual speaker.

[0211] The encoder 113 votes for the virtual speakers in the candidate virtual speaker set according to the representative coefficients of the current frame and the coefficients of the virtual speakers, and after obtaining the initial voting values ​​of the virtual speakers in the current frame, adjusts the initial voting values ​​of the virtual speakers in the candidate virtual speaker set in the current frame according to the final voting values ​​of the representative virtual speakers in the previous frame in the previous frame, and obtains the final voting values ​​of the virtual speakers in the current frame. The representative virtual speakers in the previous frame are the virtual speakers used by the encoder 113 when encoding the previous frame.

[0212] The encoder 113 obtains the seventh number of final voting values ​​of the current frame corresponding to the seventh number of virtual speakers and the current frame according to the first number of voting values ​​and the sixth number of final voting values ​​of the previous frame, and selects the second number of representative virtual speakers of the current frame from the seventh number of virtual speakers according to the seventh number of final voting values ​​of the current frame. The second number is less than the seventh number, indicating that the second number of representative virtual speakers of the current frame are some of the virtual speakers in the seventh number of virtual speakers. Among them, the seventh number of virtual speakers includes the first number of virtual speakers, and the seventh number of virtual speakers includes the sixth number of virtual speakers, and the virtual speakers included in the sixth number of virtual speakers are the representative virtual speakers of the previous frame used to encode the previous frame of the three-dimensional audio signal. The sixth number of virtual speakers included in the representative virtual speaker set of the previous frame corresponds one-to-one to the sixth number of final voting values ​​of the previous frame.

[0213] In the process of searching for virtual speakers, since the position of the real sound source and the position of the virtual speaker may not necessarily coincide, the virtual speaker may not necessarily form a one-to-one correspondence with the real sound source, and since in actual complex scenes, a limited number of virtual speaker sets may not be able to represent all sound sources in the sound field, at this time, the virtual speakers searched between frames may frequently jump, and this jump will significantly affect the listener's auditory perception, resulting in obvious discontinuity and noise in the three-dimensional audio signal after decoding and reconstruction. The method for selecting virtual speakers provided in the embodiment of the present application inherits the representative virtual speakers of the previous frame, that is, for virtual speakers with the same number, the final voting value of the previous frame is used to adjust the initial voting value of the current frame, so that the encoder is more inclined to select the representative virtual speakers of the previous frame, thereby reducing the frequent jumps of virtual speakers between frames, enhancing the continuity of the signal orientation between frames, improving the stability of the sound image of the reconstructed three-dimensional audio signal, and ensuring the sound quality of the reconstructed three-dimensional audio signal.

[0214] In some embodiments, if the current frame is the first frame in the original audio, the encoder 113 executes S1110 to S1120. If the current frame is any frame above the second frame in the original audio, the encoder 113 can first determine whether to reuse the representative virtual speaker of the previous frame to encode the current frame or determine whether to perform a virtual speaker search to ensure the continuity of the orientation between consecutive frames and reduce the encoding complexity. The embodiment of the present application may also include S1140.

[0215] S1140 : The encoder 113 determines whether to perform a virtual speaker search based on the representative virtual speaker of the previous frame and the current frame.

[0216] If the encoder 113 determines to perform a virtual speaker search, S1110 to S1130 are executed. Optionally, the encoder 113 may first execute S1110, that is, the encoder 113 obtains the representative coefficients of the current frame, and the encoder 113 determines whether to perform a virtual speaker search based on the representative coefficients of the current frame and the coefficients of the representative virtual speakers of the previous frame. If the encoder 113 determines to perform a virtual speaker search, S1120 to S1130 are executed.

[0217] If the encoder 113 determines not to perform a virtual speaker search, S1150 is executed.

[0218] S1150 : The encoder 113 determines to reuse the representative virtual speaker of the previous frame to encode the current frame.

[0219] The encoder 113 multiplexes the representative virtual speaker of the previous frame and the current frame to generate a virtual speaker signal, encodes the virtual speaker signal to obtain a code stream, and sends the code stream to the destination device 120 .

[0220] Optionally, in the process of re-virtualizing the speakers provided in an embodiment of the present application, if the initial virtual speaker of the current frame is determined based on the voting value of the representative virtual speaker of the previous frame, and the encoding efficiency of the initial virtual speaker of the current frame is less than a first threshold, the encoder 113 may clear the voting value of the representative virtual speaker of the previous frame, thereby preventing the encoder 113 from selecting the representative virtual speaker of the previous frame that cannot fully express the sound field information of the three-dimensional audio signal, resulting in lower quality of the reconstructed three-dimensional audio signal and poor sound quality of the sound played at the decoding end.

[0221] It is understandable that, in order to implement the functions in the above-mentioned embodiments, the encoder includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0222] Combined with the above Figures 1 to 11 , describes in detail the three-dimensional audio signal encoding method provided by this embodiment, and will now be combined with Fig.12 and Fig.13 , describing a three-dimensional audio signal encoding device and an encoder provided according to this embodiment.

[0223] Fig.12Schematic diagram of the structure of a possible 3D audio signal encoding device provided in this embodiment. These 3D audio signal encoding devices can be used to implement the function of encoding 3D audio signals in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In this embodiment, the 3D audio signal encoding device can be as follows: Figure 1 The encoder 113 shown, or Figure 3 The encoder 300 shown may also be a module (such as a chip) applied to a terminal device or a server.

[0224] like Fig.12 As shown, the 3D audio signal encoding device 1200 includes a communication module 1210, a coding efficiency acquisition module 1220, a virtual speaker reselection module 1230, a coding module 1240 and a storage module 1250. The 3D audio signal encoding device 1200 is used to implement the above Figure 5 and Fig.10 The functionality of the encoder 113 in the method embodiment shown in FIG.

[0225] The communication module 1210 is used to obtain a current frame of a three-dimensional audio signal. Optionally, the communication module 1210 may also receive a current frame of a three-dimensional audio signal obtained by other devices; or obtain the current frame of the three-dimensional audio signal from the storage module 1250. The three-dimensional audio signal is an HOA signal; the frequency domain eigenvalue of the coefficient is determined based on a two-dimensional vector, and the two-dimensional vector includes the HOA coefficient of the HOA signal.

[0226] The coding efficiency acquisition module 1220 is used to acquire the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, and the initial virtual speaker of the current frame belongs to the candidate virtual speaker set. Figure 5 and Fig.10 When the encoder 113 in the method embodiment is used, the coding efficiency acquisition module 1220 is used to implement the related functions of S520.

[0227] The virtual speaker reselection module 1230 is configured to determine an updated virtual speaker for the current frame from the candidate virtual speaker set if the encoding efficiency of the initial virtual speaker for the current frame meets a preset condition. Figure 5 When the encoder 113 in the method embodiment shown in the figure is used for the function, the virtual speaker reselection module 1230 is used to implement the related functions of S530 and S540. Fig.10 In the method embodiment shown, when the encoder 113 functions, the virtual speaker reselection module 1230 is used to implement the related functions of S530, S541 to S543.

[0228] If the encoding efficiency of the initial virtual speaker of the current frame meets a preset condition, the encoding module 1240 is configured to encode the current frame according to the updated virtual speaker of the current frame to obtain a first bitstream.

[0229] If the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset condition, the encoding module 1240 is configured to encode the current frame according to the initial virtual speaker of the current frame to obtain a second bitstream.

[0230] When the 3D audio signal encoding device 1200 is used to implement Figure 5 and Fig.10 When the encoder 113 in the method embodiment is used, the encoding module 1240 is used to implement the related functions of S550 and S560.

[0231] The storage module 1250 is used to store coefficients related to the three-dimensional audio signal, a candidate virtual speaker set, a representative virtual speaker set of the previous frame, a bitstream, and selected coefficients and virtual speakers, etc., so that the encoding module 1240 can encode the current frame to obtain a bitstream and transmit the bitstream to the decoder.

[0232] It should be understood that the three-dimensional audio signal encoding device 1200 of the embodiment of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), and the PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. It can also be implemented by software. Figure 5 and Fig.10 When the 3D audio signal encoding method is shown, the 3D audio signal encoding apparatus 1200 and its various modules may also be software modules.

[0233] For more detailed description of the communication module 1210, the coding efficiency acquisition module 1220, the virtual speaker reselection module 1230, the coding module 1240 and the storage module 1250, please refer to Figure 5 and Fig.10 The relevant description in the method embodiment shown is directly obtained and will not be repeated here.

[0234] Fig.13The schematic diagram of the structure of an encoder 1300 provided in this embodiment is as follows. As shown in the figure, the encoder 1300 includes a processor 1310 , a bus 1320 , a memory 1330 , and a communication interface 1340 .

[0235] It should be understood that in this embodiment, the processor 1310 may be a central processing unit (CPU), and the processor 1310 may also be other general-purpose processors, digital signal processors (DSP), ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0236] The processor may also be a graphics processing unit (GPU), a neural network processing unit (NPU), a microprocessor, or one or more integrated circuits for controlling the execution of the program of the present application.

[0237] The communication interface 1340 is used to implement communication between the encoder 1300 and an external device or component. In this embodiment, the communication interface 1340 is used to receive a three-dimensional audio signal.

[0238] The bus 1320 may include a path for transmitting information between the above components (such as the processor 1310 and the memory 1330). In addition to the data bus, the bus 1320 may also include a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as bus 1320 in the figure.

[0239] As an example, the encoder 1300 may include multiple processors. The processor may be a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or computing units for processing data (e.g., computer program instructions). The processor 1310 may call the coefficients related to the three-dimensional audio signal, the candidate virtual speaker set, the representative virtual speaker set of the previous frame, and the selected coefficients and virtual speakers, etc. stored in the memory 1330.

[0240] It is worth mentioning that Fig.13 In the example, the encoder 1300 includes one processor 1310 and one memory 1330. Here, the processor 1310 and the memory 1330 are respectively used to indicate a type of device or equipment. In a specific embodiment, the number of each type of device or equipment can be determined according to business requirements.

[0241] The memory 1330 may correspond to a storage medium for storing information such as coefficients related to three-dimensional audio signals, a set of candidate virtual speakers, a representative set of virtual speakers in a previous frame, and selected coefficients and virtual speakers in the above-mentioned method embodiment, for example, a disk such as a mechanical hard disk or a solid-state hard disk.

[0242] The encoder 1300 may be a general device or a dedicated device. For example, the encoder 1300 may be a server based on X86 or ARM, or may be other dedicated servers, such as a policy control and charging (PCC) server. The embodiment of the present application does not limit the type of the encoder 1300.

[0243] It should be understood that the encoder 1300 according to this embodiment may correspond to the three-dimensional audio signal encoding device 1200 in this embodiment, and may correspond to the device for performing the three-dimensional audio signal encoding according to Figure 5 and Fig.10 The corresponding subject in any method, and the above and other operations and / or functions of each module in the three-dimensional audio signal encoding device 1200 are respectively implemented Figure 5 and Fig.10 For the sake of brevity, the corresponding processes of each method in are not repeated here.

[0244] The embodiment of the present application also provides a system, the system comprising a decoder and Fig.13 The encoder, encoder and decoder shown are used to implement the above Figure 5 and Fig.10 For the sake of brevity, the method steps shown are not repeated here.

[0245] The method steps in this embodiment can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a network device or a terminal device. Of course, the processor and the storage medium can also exist in a network device or a terminal device as discrete components.

[0246] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).

[0247] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A three-dimensional audio signal encoding method, characterized in that: include: Obtaining a current frame of a three-dimensional audio signal; Acquire, according to a current frame of the three-dimensional audio signal, a coding efficiency of an initial virtual speaker of the current frame, wherein the initial virtual speaker of the current frame belongs to a candidate virtual speaker set; If the coding efficiency of the initial virtual speaker of the current frame meets a preset condition, determining an updated virtual speaker of the current frame from the candidate virtual speaker set, and encoding the current frame according to the updated virtual speaker of the current frame to obtain a first bitstream; If the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset condition, the current frame is encoded according to the initial virtual speaker of the current frame to obtain a second code stream.

2. The method according to claim 1, characterized in that The step of obtaining the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal includes: Acquire a reconstructed current frame of a reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame; The coding efficiency of the initial virtual speaker of the current frame is determined according to the energy of the reconstructed current frame and the energy of the current frame.

3. The method according to claim 2, characterized in that The energy of the reconstructed current frame is determined based on the coefficients of the reconstructed current frame, and the energy of the current frame is determined based on the coefficients of the current frame.

4. The method according to claim 1, characterized in that: The step of obtaining the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal includes: Acquire a reconstructed current frame of a reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame; Acquire a residual signal of the current frame according to the current frame of the 3D audio signal and the reconstructed current frame of the reconstructed 3D audio signal; Obtaining the energy sum of the virtual speaker signal of the current frame and the residual signal; The coding efficiency of the initial virtual speaker of the current frame is determined according to the ratio of the energy of the virtual speaker signal of the current frame to the energy sum.

5. The method according to claim 2 or 4, characterized in that: The step of reconstructing the current frame of the three-dimensional audio signal after reconstruction according to the initial virtual speaker of the current frame comprises: Determine a virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; The reconstructed current frame is determined according to the virtual speaker signal of the current frame.

6. The method according to claim 1, characterized in that The step of obtaining the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal includes: Determining the number of sound sources according to a current frame of the three-dimensional audio signal; The coding efficiency of the initial virtual speakers of the current frame is determined according to the number of the initial virtual speakers of the current frame and the number of sound sources.

7. The method according to claim 1, characterized in that The step of obtaining the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal includes: Determining the number of sound sources according to a current frame of the three-dimensional audio signal; Determine a virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; The coding efficiency of the initial virtual speaker of the current frame is determined according to the number of virtual speaker signals of the current frame and the number of sound sources of the three-dimensional audio signal.

8. The method according to any one of claims 1 to 7, characterized in that The preset condition includes that the encoding efficiency of the initial virtual speaker of the current frame is less than a first threshold.

9. The method according to claim 8, characterized in that The determining of the updated virtual speaker of the current frame from the candidate virtual speaker set comprises: If the coding efficiency of the initial virtual speaker of the current frame is less than a second threshold, using a preset virtual speaker in the candidate virtual speaker set as an updated virtual speaker for the current frame, and the second threshold is less than the first threshold; Alternatively, if the encoding efficiency of the initial virtual speaker of the current frame is less than the first threshold and greater than the second threshold, the virtual speaker of the previous frame is used as the updated virtual speaker of the current frame, and the virtual speaker of the previous frame is the virtual speaker used to encode the previous frame of the three-dimensional audio signal.

10. The method according to claim 9, characterized in that The method further comprises: Determining an adjusted coding efficiency of the initial virtual speaker of the current frame according to the coding efficiency of the initial virtual speaker of the current frame and the coding efficiency of the virtual speaker of the previous frame; If the encoding efficiency of the initial virtual speaker of the current frame is greater than the adjusted encoding efficiency of the initial virtual speaker of the current frame, the initial virtual speaker of the current frame is used as the virtual speaker of a subsequent frame of the current frame.

11. The method according to any one of claims 1 to 10, characterized in that The three-dimensional audio signal is a high-order surround sound HOA signal.

12. A three-dimensional audio signal encoding device, characterized in that: include: A communication module, used for acquiring a current frame of a three-dimensional audio signal; A coding efficiency acquisition module, configured to acquire, according to a current frame of the three-dimensional audio signal, a coding efficiency of an initial virtual speaker of the current frame, wherein the initial virtual speaker of the current frame belongs to a candidate virtual speaker set; A virtual speaker reselection module, configured to determine an updated virtual speaker for the current frame from the candidate virtual speaker set if the coding efficiency of the initial virtual speaker for the current frame meets a preset condition; An encoding module, configured to encode the current frame according to the updated virtual speaker of the current frame to obtain a first bit stream; The encoding module is further configured to encode the current frame according to the initial virtual speaker of the current frame to obtain a second code stream if the encoding efficiency of the initial virtual speaker of the current frame does not meet the preset condition.

13. The device according to claim 12, characterized in that When the coding efficiency acquisition module acquires the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it is specifically used to: Acquire a reconstructed current frame of a reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame; The coding efficiency of the initial virtual speaker of the current frame is determined according to the energy of the reconstructed current frame and the energy of the current frame.

14. The device according to claim 13, characterized in that The energy of the reconstructed current frame is determined based on the coefficients of the reconstructed current frame, and the energy of the current frame is determined based on the coefficients of the current frame.

15. The device according to claim 12, characterized in that When the coding efficiency acquisition module acquires the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it is specifically used to: Acquire a reconstructed current frame of a reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame; Acquire a residual signal of the current frame according to the current frame of the 3D audio signal and the reconstructed current frame of the reconstructed 3D audio signal; Obtaining the energy sum of the virtual speaker signal of the current frame and the residual signal; The coding efficiency of the initial virtual speaker of the current frame is determined according to the ratio of the energy of the virtual speaker signal of the current frame to the energy sum.

16. The device according to claim 13 or 15, characterized in that When the coding efficiency acquisition module acquires the reconstructed current frame of the reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame, it is specifically used to: Determine a virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; The reconstructed current frame is determined according to the virtual speaker signal of the current frame.

17. The device according to claim 12, characterized in that When the coding efficiency acquisition module acquires the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it is specifically used to: Determining the number of sound sources according to a current frame of the three-dimensional audio signal; The coding efficiency of the initial virtual speakers of the current frame is determined according to the number of the initial virtual speakers of the current frame and the number of sound sources.

18. The device according to claim 12, characterized in that When the coding efficiency acquisition module acquires the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it is specifically used to: Determining the number of sound sources according to a current frame of the three-dimensional audio signal; Determine a virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; The coding efficiency of the initial virtual speaker of the current frame is determined according to the number of virtual speaker signals of the current frame and the number of sound sources of the three-dimensional audio signal.

19. The device according to any one of claims 12 to 18, characterized in that The preset condition includes that the encoding efficiency of the initial virtual speaker of the current frame is less than a first threshold.

20. The device according to claim 19, characterized in that When the virtual speaker reselection module determines the updated virtual speaker of the current frame from the candidate virtual speaker set, it is specifically used to: If the coding efficiency of the initial virtual speaker of the current frame is less than a second threshold, using a preset virtual speaker in the candidate virtual speaker set as an updated virtual speaker for the current frame, and the second threshold is less than the first threshold; Alternatively, if the encoding efficiency of the initial virtual speaker of the current frame is less than the first threshold and greater than the second threshold, the virtual speaker of the previous frame is used as the updated virtual speaker of the current frame, and the virtual speaker of the previous frame is the virtual speaker used to encode the previous frame of the three-dimensional audio signal.

21. The device according to claim 20, characterized in that The virtual speaker reselection module is further used for: Determining an adjusted coding efficiency of the initial virtual speaker of the current frame according to the coding efficiency of the initial virtual speaker of the current frame and the coding efficiency of the virtual speaker of the previous frame; If the encoding efficiency of the initial virtual speaker of the current frame is greater than the adjusted encoding efficiency of the initial virtual speaker of the current frame, the initial virtual speaker of the current frame is used as the virtual speaker of a subsequent frame of the current frame.

22. The device according to any one of claims 12 to 21, characterized in that The three-dimensional audio signal is a high-order surround sound HOA signal.

23. An encoder, characterized in that: The encoder comprises at least one processor and a memory, wherein the memory is used to store a computer program, so that when the computer program is executed by the at least one processor, the three-dimensional audio signal encoding method according to any one of claims 1 to 11 is implemented.

24. A system, characterized in that: The system comprises an encoder as claimed in claim 23, and a decoder, wherein the encoder is used to execute the operation steps of the method according to any one of claims 1 to 11, and the decoder is used to decode the code stream generated by the encoder.

25. A computer program product, characterized in that The computer program product comprises a computer program or instructions, and when the computer program or instructions are executed by an encoder, the steps of the three-dimensional audio signal encoding method according to any one of claims 1 to 11 are implemented.

26. A computer-readable storage medium, characterized in that: The method comprises computer software instructions; when the computer software instructions are executed in an encoder, the encoder is enabled to perform the three-dimensional audio signal encoding method according to any one of claims 1 to 11.

27. A computer-readable storage medium, characterized in that: The method comprises a code stream obtained by the three-dimensional audio signal encoding method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method, apparatus, and computer readable medium to reproduce a 2-channel virtual sound

    CN1753577A

  • Mapping virtual speakers to physical speakers

    US20140219455A1