Methods and systems for encoding three-dimensional audio signals, and encoders.
Patent Information
- Application Number
- VN1202400356
- Authority / Receiving Office
- VN · VN
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-06-18
- Filing Date
- 2022-05-31
- Publication Date
- 2026-11-18
- Estimated Expiration
- 2042-05-31
AI Technical Summary
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.
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 selected from the candidate virtual speaker set for encoding, thereby reducing the volatility between virtual speakers and improving the sound quality at the decoder. .
The quality of the reconstructed three-dimensional audio signal and the sound quality of the decoder are improved, and the fluctuation of the virtual speaker between different frames is reduced.
Smart Images

Figure VN1202400356_0
Abstract
Description
Three-dimensional audio signal encoding method, device, encoder and system
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 18, 2021, with application number 202110680341.8 and application name “Three-dimensional audio signal encoding method, device, encoder and system”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] 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
[0003] With the rapid development of high-performance computers and signal processing technologies, listeners have increasingly higher expectations for voice and audio experiences, and immersive audio can meet these needs. For example, three-dimensional audio technology has been widely used in wireless communications (such as 4G / 5G), voice, virtual reality / augmented reality, and media audio. Three-dimensional audio technology captures, processes, transmits, and renders and plays back real-world sounds and three-dimensional sound field information. This technology imparts a strong sense of space, envelopment, and immersion, giving listeners an extraordinary, "immersive" auditory experience.
[0004] Typically, 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 in 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 virtual speakers to compress the three-dimensional audio signal. However, if the virtual speakers used by the encoder to encode different frames of the three-dimensional audio signal have large fluctuations, the quality of the reconstructed three-dimensional audio signal will be low and the sound quality will be poor. Therefore, how to improve the quality of the reconstructed three-dimensional audio signal is a problem that needs to be solved urgently.
[0005] Summary of the Invention
[0006] The present application provides a three-dimensional audio signal encoding method, apparatus, encoder, and system, thereby improving the quality of reconstructed three-dimensional audio signals.
[0007] In a first aspect, the present application provides a method for encoding a three-dimensional audio signal, the method being performed by an encoder and comprising the following steps: after the encoder obtains a current frame of a three-dimensional audio signal, the encoder obtains, based on the current frame of the three-dimensional audio signal, a coding efficiency of initial virtual speakers for the current frame, wherein the coding efficiency represents the ability of the initial virtual speakers for the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs. If the coding efficiency of the initial virtual speakers for the current frame satisfies a preset condition, indicating that the initial virtual speakers for the current frame cannot fully express the sound field information of the three-dimensional audio signal and the initial virtual speakers for the current frame have a weak ability to reconstruct the sound field to which the three-dimensional audio signal belongs, the encoder determines updated virtual speakers for the current frame from a set of candidate virtual speakers, and encodes the current frame based on the updated virtual speakers for the current frame to obtain a first bitstream. If the coding efficiency of the initial virtual speakers for the current frame does not meet the preset condition, indicating that the initial virtual speakers for the current frame fully express the sound field information of the three-dimensional audio signal and the initial virtual speakers for the current frame have a strong ability to reconstruct the sound field to which the three-dimensional audio signal belongs, the encoder encodes the current frame based on the initial virtual speakers for the current frame to obtain a second bitstream. 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.
[0008] In this way, after the encoder obtains the initial virtual speakers of the current frame, it determines the coding efficiency of the initial virtual speakers, and determines whether to reselect the virtual speakers of the current frame based on the ability of the initial virtual speakers 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 speakers of the current frame meets the preset conditions, that is, when the initial virtual speakers of the current frame cannot fully represent the scenario of the reconstructed sound field to which the three-dimensional audio signal belongs, the virtual speakers of the current frame are reselected, and the updated virtual speakers of the current frame are used as the virtual speakers for encoding the current frame. Thus, by reselecting the virtual speakers, the volatility of the virtual speakers 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.
[0009] Specifically, the encoder may obtain the coding efficiency of the initial virtual speaker of the current frame according to any one of the following four methods.
[0010] Method 1, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame based on 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 based on 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 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.
[0011] Method 2: The encoder obtains the coding efficiency of the initial virtual speakers of the current frame based on the current frame of the 3D audio signal. This includes: the encoder determines a reconstructed current frame of the 3D audio signal based on the initial virtual speakers of the current frame; and after obtaining a residual signal of the current frame based on the current frame and the reconstructed current frame, the encoder determines the coding efficiency of the initial virtual speakers of the current frame based on 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 encoder. Thus, the encoder can indirectly determine the ability of the initial virtual speakers to reconstruct the sound field to which the 3D audio signal belongs based on the ratio of the energy of the virtual speaker signal of the current frame to the energy of the signal to be transmitted, avoiding the encoder from determining the reconstructed current frame and reducing the complexity of the encoder determining the coding efficiency of the initial virtual speakers of the current frame. For example, if the energy of the virtual speaker signal of the current frame is less than half the energy of the signal to be transmitted, it indicates that the initial virtual speakers of the current frame cannot fully express the sound field information of the 3D audio signal and the initial virtual speakers of the current frame are weak in reconstructing the sound field to which the 3D audio signal belongs.
[0012] The encoder obtains a reconstructed current frame of a reconstructed 3D audio signal based on the initial virtual speakers of the current frame, including: determining a virtual speaker signal for the current frame based on the initial virtual speakers of the current frame; and determining a reconstructed current frame based on the virtual speaker signal for the current frame. For example, energy of the reconstructed current frame is determined based on coefficients of the reconstructed current frame, and the energy of the current frame is determined based on the coefficients of the current frame.
[0013] Method three, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame based on the current frame of the three-dimensional audio signal, including: the encoder determines the number of sound sources based on the current frame of the three-dimensional audio signal; determines the coding efficiency of the initial virtual speaker of the current frame based on the ratio of the number of initial virtual speakers of the current frame to the number of sound sources.
[0014] Method 4, the encoder obtains the coding efficiency of the initial virtual speaker of the current frame based on the current frame of the three-dimensional audio signal, including: the encoder determines the number of sound sources based on the current frame of the three-dimensional audio signal, determines the virtual speaker signal of the current frame based on the initial virtual speaker of the current frame, and determines the coding efficiency of the initial virtual speaker of the current frame based on the ratio of the number of virtual speaker signals in the current frame to the number of sound sources.
[0015] 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 the information of the sound field to which the three-dimensional audio signal belongs. The encoder uses 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 to determine the coding efficiency of the initial virtual speakers of the current frame, or the encoder uses 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 to determine the coding efficiency of the initial virtual speakers of the current frame. 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.
[0016] If the encoder determines, according to any of the above methods 1 to 4, that the coding efficiency of the initial virtual speaker for the current frame is less than the first threshold, that is, the coding efficiency of the initial virtual speaker for the current frame meets the preset condition, the encoder can determine the updated virtual speaker for the current frame according to the following possible implementation methods. It is understood that the preset condition includes that the coding efficiency of the initial virtual speaker for 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.
[0017] In one possible implementation, the encoder determines the updated virtual speaker for the current frame from the candidate virtual speaker set, including: if the encoding efficiency of the initial virtual speaker for the current frame is less than a second threshold, the preset virtual speaker in the candidate virtual speaker set is used as the updated virtual speaker for the current frame, and the second threshold is less than the first threshold.
[0018] In this way, in scenarios where the initial virtual speakers in the current frame cannot fully represent the sound field of the reconstructed 3D audio signal, resulting in poor quality of the reconstructed 3D audio signal at the decoder, the encoder further improves the accuracy of the encoder's determination of the initial virtual speakers' ability to reconstruct the sound field of the 3D audio signal by re-determining the coding efficiency of the current frame's initial virtual speakers. Furthermore, by selectively selecting updated virtual speakers for the current frame, the encoder reduces the fluctuation of the virtual speakers used for encoding the 3D audio signal between different frames, improving the quality of the reconstructed 3D audio signal at the decoder and the sound quality of the sound played back by the decoder.
[0019] In another possible implementation, the encoder determines updated virtual speakers for the current frame from a set of candidate virtual speakers, including: if the coding efficiency of the initial virtual speakers for the current frame is less than a first threshold but greater than a second threshold, using the virtual speakers of the previous frame as the updated virtual speakers for the current frame, with the virtual speakers of the previous frame being the virtual speakers used to encode the previous frame of the 3D audio signal. By using the virtual speakers of the previous frame as the virtual speakers for encoding the current frame, the encoder reduces the fluctuation of the virtual speakers used for encoding different frames of the 3D audio signal, thereby improving the quality of the 3D audio signal reconstructed by the decoder and the sound quality of the sound played by the decoder.
[0020] Optionally, the method further includes: the encoder determining an adjusted coding efficiency of the initial virtual speakers of the current frame based on the coding efficiency of the initial virtual speakers of the current frame and the coding efficiency of the virtual speakers of the previous frame; if the coding efficiency of the initial virtual speakers of the current frame is greater than the adjusted coding efficiency of the initial virtual speakers of the current frame, indicating that the initial virtual speakers of the current frame are capable of representing the sound field to which the 3D audio signal belongs, the initial virtual speakers of the current frame are used as virtual speakers for subsequent frames of the current frame. This reduces the fluctuation of the virtual speakers used for encoding different frames of the 3D audio signal, improves the quality of the reconstructed 3D audio signal at the decoder, and improves the sound quality of the sound played by the decoder.
[0021] In addition, the three-dimensional audio signal may be a higher order ambisonics (HOA) signal.
[0022] In a second aspect, the present application provides a three-dimensional audio signal encoding device, comprising modules for executing the three-dimensional audio signal encoding method of 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 configured to acquire a current frame of a three-dimensional audio signal. The coding efficiency acquisition module is configured to acquire, based on the current frame of the three-dimensional audio signal, the coding efficiency of an initial virtual speaker for the current frame, where the initial virtual speaker for the current frame belongs to a set of candidate virtual speakers. The virtual speaker reselection module is configured to determine, from the set of candidate virtual speakers, an updated virtual speaker for the current frame if the coding efficiency of the initial virtual speaker for the current frame meets a preset condition. The encoding module is configured to encode the current frame based on the updated virtual speaker for the current frame to obtain a first bitstream. The encoding module is further configured to encode the current frame based on the initial virtual speaker for the current frame to obtain a second bitstream if the coding efficiency of the initial virtual speaker for the current frame does not meet the preset condition. These modules can perform the corresponding functions described in the example method of the first aspect above. For details, please refer to the detailed description of the example method and are not further described here.
[0023] 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.
[0024] 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 configured to execute the operating 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 configured to decode the bitstream generated by the encoder.
[0025] 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.
[0026] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on an encoder, it enables the encoder to perform the operating steps of the method described in the first aspect or any possible implementation of the first aspect.
[0027] 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 of the first aspect.
[0028] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] FIG1 is a schematic structural diagram of an audio encoding and decoding system provided in an embodiment of the present application;
[0030] FIG2 is a schematic diagram of a scenario of an audio encoding and decoding system provided in an embodiment of the present application;
[0031] FIG3 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0032] FIG4 is a schematic flow chart of a three-dimensional audio signal encoding and decoding method provided in an embodiment of the present application;
[0033] FIG5 is a schematic flow chart of a three-dimensional audio signal encoding method provided in an embodiment of the present application;
[0034] FIG6 is a schematic diagram of the structure of another encoder provided in an embodiment of the present application;
[0035] FIG7 is a schematic diagram of the structure of another encoder provided in an embodiment of the present application;
[0036] FIG8 is a schematic diagram of the structure of another encoder provided in an embodiment of the present application;
[0037] FIG9 is a schematic diagram of the structure of another encoder provided in an embodiment of the present application;
[0038] FIG10 is a schematic flow chart of another three-dimensional audio signal encoding method provided in an embodiment of the present application;
[0039] FIG11 is a flow chart of a method for selecting a virtual speaker according to an embodiment of the present application;
[0040] FIG12 is a schematic structural diagram of a three-dimensional audio signal encoding device provided by the present application;
[0041] FIG13 is a schematic diagram of the structure of an encoder provided in this application. DETAILED DESCRIPTION
[0042] In order to make the description of the following embodiments clear and concise, a brief introduction to the relevant technology is first given.
[0043] Sound is a continuous wave produced by the vibration of an object. The object that vibrates and emits sound waves is called the sound source. As sound waves propagate through a medium (such as air, solid, or liquid), they are detected by the human or animal auditory system.
[0044] The characteristics of sound waves include pitch, intensity, and timbre. Pitch indicates the highness of a sound. Intensity indicates how loud a sound is. Intensity can also be called loudness or volume. The unit of intensity is decibel (dB). Timbre is also called timbre quality.
[0045] The frequency of a sound wave determines its pitch. The higher the frequency, the higher the pitch. The frequency is the number of times an object vibrates in one second, measured in hertz (Hz). The human ear can detect sounds with frequencies between 20Hz and 20,000Hz.
[0046] The amplitude of a sound wave determines its intensity. The greater the amplitude, the greater the intensity. The closer to the sound source, the greater the intensity.
[0047] The waveform of the sound wave determines the timbre, which includes square wave, sawtooth wave, sine wave and pulse wave.
[0048] Based on the characteristics of sound waves, sounds can be divided into regular sounds and irregular sounds. Irregular sounds are sounds produced by the irregular vibration of a sound source. For example, irregular sounds can disrupt people's work, study, and rest. Regular sounds are sounds produced by the regular vibration of a sound source. Regular sounds include speech and music. When represented electrically, regular sounds are analog signals that continuously vary in the time-frequency domain. These analog signals are called audio signals. Audio signals are information carriers that carry speech, music, and sound effects.
[0049] 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, intensity and timbre of the sounds, they can also feel the direction of the sounds.
[0050] As people's attention to and demand for higher quality in their auditory systems grows, three-dimensional audio technology has emerged to enhance the sense of depth, presence, and spatiality. This allows listeners to perceive not only sounds from sources in front, behind, left, and right, but also a sense of being enveloped by the spatial sound field (or "sound field") generated by these sources, with the sound spreading outward in all directions. This creates an immersive sound experience that transports listeners to places like a movie theater or concert hall.
[0051] 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.
[0052] As we all know, when sound waves propagate in an ideal medium, the wave number is k = w / c 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.
[0053]
[0054] Assume that the spatial system outside the human ear is a sphere, with the listener at the center of the sphere. Sounds from outside the sphere have a projection on the sphere, filtering out sounds outside the sphere. Assuming that the sound sources are distributed on this sphere, the sound field generated by the sound sources on the sphere is used to fit the sound field generated by the original sound source. In other words, three-dimensional audio technology is a method for fitting sound fields. Specifically, equation (1) is solved in a spherical coordinate system. Within the passive spherical region, equation (1) is solved as follows (2).
[0055]
[0056] 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 change 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).
[0057]
[0058] Substituting formula (3) into formula (2), formula (2) can be transformed into formula (4).
[0059]
[0060] in, Represents the Nth-order three-dimensional audio signal coefficients, used to approximate the sound field. A sound field is the area within a medium where sound waves exist. N is an integer greater than or equal to 1. For example, N ranges from 2 to 6. The three-dimensional audio signal coefficients described in the embodiments of the present application may refer to HOA coefficients or ambisonic coefficients.
[0061] 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 using 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 as the superposition of multiple plane waves, and the sound field can be reconstructed using the three-dimensional audio signal coefficients.
[0062] Compared with 5.1-channel audio signals or 7.1-channel audio signals, 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 bit stream, and transmit the bit stream to the playback device. The playback device decodes the bit 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's compression encoding of the three-dimensional audio signal is high, which occupies too many computing resources of the encoder. Therefore, how to reduce the computational complexity of compression encoding of the three-dimensional audio signal is an urgent problem to be solved.
[0063] An embodiment of the present application provides an audio coding and decoding technology, and 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, thereby more efficiently storing and / or transmitting. 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 of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0064] Figure 1 is a schematic diagram of the structure of an audio codec system provided in an embodiment of the present application. Audio codec system 100 includes a source device 110 and a destination device 120. Source device 110 compresses and encodes a 3D audio signal to generate a bitstream, which is then transmitted to destination device 120. Destination device 120 decodes the bitstream, reconstructs the 3D audio signal, and plays the reconstructed 3D audio signal.
[0065] Specifically, the source device 110 includes an audio acquirer 111 , a preprocessor 112 , an encoder 113 , and a communication interface 114 .
[0066] 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.
[0067] The preprocessor 112 is configured 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.
[0068] Encoder 113 is configured to receive the 3D audio signal generated by preprocessor 112 and compress and encode the 3D audio signal to obtain a bitstream. For example, encoder 113 may include a spatial encoder 1131 and a core encoder 1132. Spatial encoder 1131 is configured to select (or search for) a virtual speaker from a set of candidate virtual speakers based on the 3D audio signal and generate a virtual speaker signal based on the 3D audio signal and the virtual speaker. The virtual speaker signal may also be referred to as a playback signal. Core encoder 1132 is configured to encode the virtual speaker signal to obtain a bitstream.
[0069] The communication interface 114 is configured 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 can reconstruct a 3D audio signal based on the code stream.
[0070] The destination device 120 includes a player 121 , a post-processor 122 , a decoder 123 , and a communication interface 124 .
[0071] The communication interface 124 is configured 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.
[0072] The communication interface 114 and the communication interface 124 may be configured to send or receive data related to the original audio via a direct communication link between the source device 110 and the destination device 120, such as a direct wired or wireless connection, or via any type of network, such as a wired network, a wireless network, or any combination thereof, any type of private network, a public network, or any combination thereof.
[0073] Both the communication interface 114 and the communication interface 124 may be configured as a unidirectional communication interface, as indicated by the arrow pointing from the source device 110 to the corresponding communication channel 130 of the destination device 120 in FIG1 , or a bidirectional communication interface, and may 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 the transmission of an encoded bit stream, etc.
[0074] Decoder 123 is used to decode the bitstream and reconstruct a 3D audio signal. For example, decoder 123 includes a core decoder 1231 and a spatial decoder 1232. Core decoder 1231 is used to decode the bitstream to obtain a decoded virtual speaker signal. Spatial decoder 1232 is used to reconstruct a 3D audio signal based on the candidate virtual speaker set and the decoded virtual speaker signal, thereby obtaining a reconstructed 3D audio signal.
[0075] The post-processor 122 is configured 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 may include audio rendering, loudness normalization, user interaction, audio format conversion, or noise removal.
[0076] The player 121 is configured to play the reconstructed sound according to the reconstructed 3D audio signal.
[0077] It should be noted that the audio acquirer 111 and the encoder 113 can be integrated into one physical device, or can be set on different physical devices, without limitation. For example, the source device 110 shown in Figure 1 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 can also be called an acquisition 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 acquisition 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 acquisition device or an audio storage device).
[0078] In addition, the player 121 and the decoder 123 can be integrated into one physical device, or can be set on different physical devices, without limitation. For example, the destination device 120 shown in Figure 1 includes a player 121 and a decoder 123, which means that the player 121 and the decoder 123 are integrated into one physical device, then the destination device 120 can also be called a playback device, and the destination device 120 has the function of decoding and playing reconstructed audio. The destination device 120 is, for example, a speaker, a headset or other device that plays 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.
[0079] In addition, FIG. 1 shows that the source device 110 and the destination device 120 may be integrated into one physical device, or may be set on different physical devices, which is not limited.
[0080] For example, as shown in Figure 2 (a), source device 110 can be a microphone in a recording studio, and destination device 120 can be a speaker. Source device 110 can capture raw audio from various instruments and transmit the raw audio to a codec device. The codec device encodes and decodes the raw audio to generate a reconstructed 3D audio signal, which is then played back by destination device 120. For another example, source device 110 can be a microphone in a terminal device, and destination device 120 can be headphones. Source device 110 can capture external sounds or audio synthesized by the terminal device.
[0081] As another example, as shown in FIG2(b), source device 110 and destination device 120 are integrated into a VR device, an AR device, a Mixed Reality (MR) device, or an Extended Reality (ER) device. The VR / AR / MR / ER device then has the capabilities of capturing original audio, playing back audio, and performing encoding and decoding. Source device 110 can capture sounds emitted by the user and sounds emitted by virtual objects in the user's virtual environment.
[0082] 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 through separate hardware and / or software or any combination thereof. As described, the presence and division of different units or functions in the source device 110 and / or destination device 120 shown in FIG1 may vary depending on the actual device and application, which will be apparent to those skilled in the art.
[0083] The structure of the audio codec system described above is merely illustrative. In some possible implementations, the audio codec system may also include other devices, such as end-side devices or cloud-side devices. After capturing raw audio, source device 110 preprocesses the raw audio to generate a 3D audio signal. The 3D audio is then transmitted to the end-side device or cloud-side device, which then encodes and decodes the 3D audio signal.
[0084] The audio signal encoding and decoding method provided in the embodiments of the present application is primarily applied to the encoding end. The structure of the encoder (e.g., encoder 311) is described in detail with reference to FIG3 . As shown in FIG3 , encoder 300 includes a virtual speaker configuration unit 310, a virtual speaker set generation unit 320, a coding analysis unit 330, a virtual speaker selection unit 340, a virtual speaker signal generation unit 350, and an encoding unit 360.
[0085] The virtual speaker configuration unit 310 is used to generate virtual speaker configuration parameters based on the encoder configuration information 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 the virtual speakers, the position coordinates of the virtual speakers, etc. The number of virtual speakers can be, for example, 2048, 1669, 1343, 1024, 530, 512, 256, 128, or 64. The order of the virtual speakers can be any one of 2 to 6 orders. The position coordinates of the virtual speakers include the horizontal angle and the pitch angle.
[0086] The virtual speaker configuration parameters output by the virtual speaker configuration unit 310 serve as input to the virtual speaker set generation unit 320 .
[0087] The virtual speaker set generation unit 320 is configured to generate a candidate virtual speaker set based on the virtual speaker configuration parameters, where the candidate virtual speaker set includes a plurality of virtual speakers. Specifically, the virtual speaker set generation unit 320 determines the plurality of virtual speakers included in the candidate virtual speaker set based on the number of virtual speakers, and determines the coefficients of the virtual speakers based on the position information (e.g., coordinates) of the virtual speakers and the order of the virtual speakers. For example, methods for determining the coordinates of the virtual speakers include, but are not limited to: generating a plurality of virtual speakers according to an equidistant rule, or generating a plurality of non-uniformly distributed virtual speakers based on the principle of auditory perception; and then generating the coordinates of the virtual speakers based on the number of virtual speakers.
[0088] According to the above principle of generating three-dimensional audio signals, the coefficients of virtual speakers can also be generated. s and are set as the position coordinates of the virtual speakers, Indicates the coefficients of a virtual speaker of order N. The coefficients of a virtual speaker are also called ambisonics coefficients.
[0089] 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.
[0090] 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 .
[0091] The sound field distribution feature of the three-dimensional audio signal output by the encoding analysis unit 330 serves as an input to the virtual speaker selection unit 340 .
[0092] The virtual speaker selection unit 340 is configured to determine a representative virtual speaker that matches the 3D audio signal according to the 3D audio signal to be encoded, the sound field distribution characteristics of the 3D audio signal, and coefficients of multiple virtual speakers.
[0093] Without limitation, 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 may use a default configuration to determine the representative virtual speaker. For example, the virtual speaker selection unit 340 may determine the representative virtual speaker that matches the 3D audio signal based solely on the 3D audio signal and the coefficients of the multiple virtual speakers.
[0094] The encoder 300 may use a 3D audio signal acquired from an acquisition device or a 3D audio signal synthesized using an artificial audio object as input to the encoder 300. Furthermore, the 3D audio signal input to the encoder 300 may be a time-domain 3D audio signal or a frequency-domain 3D audio signal, without limitation.
[0095] 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 .
[0096] The virtual speaker signal generation unit 350 is configured to generate a virtual speaker signal based on a 3D audio signal and attribute information representing a virtual speaker. The attribute information representing the virtual speaker includes at least one of position information representing the virtual speaker, coefficients representing the virtual speaker, and coefficients of the 3D audio signal. If the attribute information includes position information representing the virtual speaker, the coefficients representing the virtual speaker are determined based on the position information. If the attribute information includes coefficients of the 3D audio signal, the coefficients representing the virtual speaker are obtained based on the coefficients of the 3D audio signal. Specifically, the virtual speaker signal generation unit 350 calculates the virtual speaker signal based on the coefficients of the 3D audio signal and the coefficients representing the virtual speaker.
[0097] For example, assume 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. Least squares method is used to find the theoretical optimal solution w, where w represents the virtual speaker signal. The virtual speaker signal satisfies formula (5).
[0098] w=A -1 X Formula (5)
[0099] 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 can refer to the HOA coefficient representing the virtual speaker or the ambisonics coefficient representing the virtual speaker. For example,
[0100] The virtual speaker signal output by the virtual speaker signal generating unit 350 serves as an input to the encoding unit 360 .
[0101] Optionally, to improve the quality of the reconstructed 3D audio signal at the decoding end, the encoder 300 may also pre-estimate the reconstructed 3D audio signal, generate a residual signal using the pre-estimated reconstructed 3D audio signal, and use the residual signal to compensate the virtual speaker signal, thereby improving the accuracy of the virtual speaker signal at the encoding end in representing the sound field information of the sound source of the 3D audio signal. For example, the encoder 300 may further include a signal reconstruction unit 370 and a residual signal generation unit 380.
[0102] The signal reconstruction unit 370 is configured to pre-estimate the reconstructed 3D audio signal based on the position information and coefficients representing the virtual speakers output by the virtual speaker selection unit 340 and the virtual speaker signal output by the virtual speaker signal generation unit 350, thereby obtaining a reconstructed 3D audio signal. The reconstructed 3D audio signal output by the signal reconstruction unit 370 serves as input to the residual signal generation unit 380.
[0103] The residual signal generation unit 380 is configured to generate a residual signal based on 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 from the virtual speaker signal and the original 3D audio signal. The residual signal output by the residual signal generation unit 380 serves as input to the residual signal selection unit 390 and the signal compensation unit 3100.
[0104] The encoding unit 360 can encode the virtual speaker signal and the residual signal to obtain a bitstream. To improve the encoding efficiency of the encoder 300, a portion of the residual signal can be selected from the residual signal for encoding by the encoding unit 360. Optionally, the encoder 300 can further include a residual signal selection unit 390 and a signal compensation unit 3100.
[0105] 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 the residual signal 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.
[0106] Because the residual signal selection unit 390 selects a number of coefficients less than the Nth-order ambisonic coefficient as the residual signal to be transmitted, information is lost compared to the residual signal of the Nth-order ambisonic coefficient. Therefore, the signal compensation unit 3100 compensates the residual signal not to be transmitted. The signal compensation unit 3100 is configured to determine compensation information based on the 3D audio signal to be encoded, the residual signal, and the residual signal to be encoded. The compensation information indicates information related to the residual signal to be encoded and the residual signal not to be transmitted. For example, the compensation information indicates the difference between the residual signal to be encoded and the residual signal not to be transmitted, so that the decoding end can provide decoding accuracy.
[0107] The encoding unit 360 performs core encoding processing on the virtual speaker signal, the residual signal to be encoded, and the compensation information to generate a bitstream. The core encoding processing includes but is not limited to: transformation, quantization, psychoacoustic modeling, noise shaping, bandwidth extension, downmixing, arithmetic coding, and bitstream generation.
[0108] 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. In other words, 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 functions of the spatial encoder 1131. The core encoder 1132 may include an encoding unit 360, that is, the encoding unit 360 implements the functions of the core encoder 1132.
[0109] The encoder shown in Figure 3 can generate one virtual speaker signal or multiple virtual speaker signals. The multiple virtual speaker signals can be obtained by executing the encoder shown in Figure 3 multiple times or by executing the encoder shown in Figure 3 once.
[0110] Next, the encoding and decoding process of a 3D audio signal will be described with reference to the accompanying drawings. Figure 4 is a schematic flow chart of a 3D audio signal encoding and decoding method provided in an embodiment of the present application. This description will be based on an example of the 3D audio signal encoding and decoding process performed by source device 110 and destination device 120 in Figure 1. As shown in Figure 4, the method includes the following steps.
[0111] S410: The source device 110 obtains a current frame of a 3D audio signal.
[0112] As described in the above embodiment, if source device 110 carries audio acquirer 111, source device 110 can capture raw audio through audio acquirer 111. Alternatively, source device 110 can receive raw audio captured by other devices, or acquire raw audio from a memory or other storage device within source device 110. Raw audio can include at least one of real-world sounds captured in real time, audio stored on the device, and audio synthesized from multiple audio sources. This embodiment does not limit the method for acquiring raw audio or the type of raw audio.
[0113] After receiving the original audio, source device 110 generates a 3D audio signal based on 3D audio technology and the original audio. This allows destination device 120 to play back the reconstructed 3D audio signal. Specifically, when destination device 120 plays back the sound generated by the reconstructed 3D audio signal, it provides the listener with an immersive sound experience. For the specific method of generating the 3D audio signal, refer to the description of preprocessor 112 in the above embodiment and the prior art.
[0114] Furthermore, audio signals are continuous analog signals. During audio signal processing, the audio signal can be sampled to generate a digital signal consisting of a sequence of frames. A frame can include multiple sampling points. A frame can also refer to a sampling point obtained by sampling. A frame can also include subframes obtained by dividing a frame. A frame can also refer to a subframe obtained by dividing a frame. For example, if a frame is L sampling points long and is divided into N subframes, then each subframe corresponds to L / N sampling points. Audio encoding and decoding generally refers to processing a sequence of audio frames containing multiple sampling points.
[0115] An 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 or 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 the current frame of the three-dimensional audio signal to be encoded. The current frame of a three-dimensional audio signal may be referred to as the current frame. The previous frame of a three-dimensional audio signal may be referred to as the previous frame.
[0116] S420 : The source device 110 determines a candidate virtual speaker set.
[0117] In one scenario, a candidate virtual speaker set is preconfigured in the memory of source device 110. Source device 110 can read the candidate virtual speaker set from the memory. The candidate virtual speaker set includes multiple virtual speakers. Virtual speakers represent speakers that exist virtually in a spatial sound field. The virtual speakers are used to calculate virtual speaker signals based on the 3D audio signal to facilitate playback of the reconstructed 3D audio signal by destination device 120, that is, to facilitate playback of the sound generated by the reconstructed 3D audio signal by destination device 120.
[0118] In another scenario, virtual speaker configuration parameters are pre-configured in the memory of source device 110. Source device 110 generates a candidate virtual speaker set based on the virtual speaker configuration parameters. Alternatively, source device 110 generates the candidate virtual speaker set in real time based on its own computing resources (e.g., processor) capabilities and characteristics of the current frame (e.g., channels and data volume).
[0119] The specific method for generating the candidate virtual speaker set may refer to the prior art and the description of the virtual speaker configuration unit 310 and the virtual speaker set generation unit 320 in the above embodiments.
[0120] S430 : The source device 110 selects a representative virtual speaker for the current frame from the candidate virtual speaker set according to the current frame of the 3D audio signal.
[0121] 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.
[0122] Source device 110 may also vote for virtual speakers based on the coefficients of the current frame and the coefficients of the virtual speakers, and select a representative virtual speaker for the current frame from a set of candidate virtual speakers based on the votes of the virtual speakers. A limited number of representative virtual speakers for the current frame are searched from the set of candidate virtual speakers to be used as the best-matching virtual speakers for the current frame to be encoded, thereby achieving data compression of the 3D audio signal to be encoded.
[0123] It should be noted that the representative virtual speaker of the current frame belongs to the candidate virtual speaker set, and 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.
[0124] 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.
[0125] The source device 110 generates a virtual speaker signal based on the coefficients of the current frame and the coefficients representing the virtual speaker of the current frame. The specific method of generating the virtual speaker signal can refer to the existing technology and the description of the virtual speaker signal generating unit 350 in the above embodiment.
[0126] 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.
[0127] The source device 110 generates a reconstructed 3D audio signal based on the coefficients representing the virtual speakers and the coefficients of the virtual speaker signal of the current frame. Specific methods for generating the reconstructed 3D audio signal can refer to prior art and the description of the signal reconstruction unit 370 in the above embodiment.
[0128] 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.
[0129] S470: The source device 110 generates compensation information according to the current frame of the 3D audio signal and the residual signal.
[0130] 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 embodiment.
[0131] S480: The source device 110 encodes the virtual speaker signal, the residual signal, and the compensation information to obtain a bit stream.
[0132] 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 data compression for the encoded 3D audio signal. The specific method for generating the bitstream can be referenced in the prior art and the description of the encoding unit 360 in the above embodiment.
[0133] S490 : The source device 110 sends a code stream to the destination device 120 .
[0134] After encoding the original audio, source device 110 can send the original audio code stream to destination device 120. Alternatively, source device 110 can encode the 3D audio signal in real time, frame by frame, and send the code stream for each frame after encoding. For specific methods of sending the code stream, reference can be made to existing technologies and the description of communication interface 114 and communication interface 124 in the above embodiments.
[0135] 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.
[0136] After receiving the bitstream, the destination device 120 decodes the bitstream to obtain a virtual speaker signal, and then reconstructs a 3D audio signal based on the candidate virtual speaker set and the virtual speaker signal to obtain a reconstructed 3D audio signal. The destination device 120 plays back the reconstructed 3D audio signal, that is, the destination device 120 plays back the sound generated by the reconstructed 3D audio signal. Alternatively, the destination device 120 transmits the reconstructed 3D audio signal to another playback device, which plays back the reconstructed 3D audio signal, that is, the other playback device plays back the sound generated by the reconstructed 3D audio signal, making the listener's "immersive" sound effect in a theater, concert hall, or virtual scene more realistic.
[0137] At present, in the virtual speaker search process, the encoder uses the result of the correlation calculation between the three-dimensional audio signal to be encoded and the virtual speaker as a metric for selecting 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 fluctuate greatly, the quality of the reconstructed three-dimensional audio signal will be low, and the sound quality of the sound played at the decoding end will be poor. Therefore, an embodiment of the present application provides a method for selecting virtual speakers. After the encoder obtains the initial virtual speakers of the current frame, it determines the coding efficiency of the initial virtual speakers, and determines whether to reselect the virtual speakers of the current frame based on the ability of the initial virtual speakers to reconstruct the sound field to which the three-dimensional audio signal belongs, as represented by the coding efficiency. When the coding efficiency of the initial virtual speakers of the current frame meets the preset conditions, that is, when the initial virtual speakers of the current frame cannot fully represent the sound field to which the three-dimensional audio signal belongs, the virtual speakers of the current frame are reselected, and the updated virtual speakers of the current frame are used as the virtual speakers 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.
[0138] In the embodiment of the present application, the coding efficiency may also be referred to as the efficiency of reconstructing the sound field, the efficiency of reconstructing the three-dimensional audio signal, or the efficiency of selecting a virtual speaker.
[0139] Next, the process of selecting virtual speakers is described in detail with reference to the accompanying drawings. Figure 5 is a schematic flow chart of a method for encoding a three-dimensional audio signal according to an embodiment of the present application. This description uses the process of selecting virtual speakers executed by encoder 113 in source device 110 in Figure 1 as an example. As shown in Figure 5, the method includes the following steps.
[0140] S510 : The encoder 113 obtains a current frame of a 3D audio signal.
[0141] The encoder 113 may obtain a current frame of a 3D audio signal obtained by pre-processing 112 after the original audio acquired by the audio acquirer 111 is processed. For explanations related to the current frame of the 3D audio signal, reference may be made to the above description of S410.
[0142] S520 : The encoder 113 obtains a coding efficiency of an initial virtual speaker of a current frame according to the current frame of the 3D audio signal.
[0143] The encoder 113 selects an initial virtual speaker for the current frame from the candidate virtual speaker set based on 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 for obtaining the initial virtual speakers, see S420 and S430 above, as well as the description of obtaining representative virtual speakers in FIG. 11 below.
[0144] The coding efficiency of the initial virtual speakers of the current frame represents the ability of the initial virtual speakers of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs. It is understood that if the initial virtual speakers of the current frame fully express the sound field information of the three-dimensional audio signal, the ability of the initial virtual speakers of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is relatively strong. If the initial virtual speakers of the current frame cannot fully express the sound field information of the three-dimensional audio signal, the ability of the initial virtual speakers of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is relatively weak.
[0145] The following describes a method in which the encoder 113 obtains the coding efficiency of the initial virtual speaker of the current frame.
[0146] 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, for the specific method of generating the virtual speaker signal of the current frame and the reconstructed current frame of the reconstructed three-dimensional audio signal, reference can be made to the description in S440 and S450 above. The coding efficiency of the initial virtual speaker of the current frame can satisfy the following formula (6).
[0147]
[0148] Where R′ represents the coding efficiency of the initial virtual speaker of the current frame, NRG1 represents the energy of the reconstructed current frame, and NRG2 represents the energy of the current frame.
[0149] In some embodiments, the energy of the reconstructed current frame is determined based on the coefficients of the reconstructed 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 representation 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 t-th channel of the reconstructed current frame. If the three-dimensional audio signal is an HOA signal, the value of t ranges from 1 to the square of (the order of the HOA signal + 1).
[0150] The encoder 113 may calculate energy representation values N1, N2 to Nt of the current frame, where Nt=norm(SNt), where SNt represents the MDCT coefficients of the t-th channel of the current frame.
[0151] 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, and NRG2 is equal to sum(N).
[0152] In a second possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speaker of the current frame based on 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. 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 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, and obtains the residual signal of the current frame based on the current frame and the reconstructed current frame. Specifically, for the specific method of generating the residual signal, reference can be made to the description in S460 above. The coding efficiency of the initial virtual speaker of the current frame can satisfy the following formula (7).
[0153]
[0154] Where 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.
[0155] In a third possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speakers for the current frame based on the ratio of the number of initial virtual speakers to the number of sound sources for the current frame, and then executes S530. The encoder 113 may determine the number of sound sources based on the current frame of the 3D audio signal. Specifically, the specific method for determining the number of sound sources for the 3D audio signal may refer to the description of the coding analysis unit 330. The coding efficiency of the initial virtual speakers for the current frame may satisfy the following formula (8).
[0156]
[0157] Where R′ represents the coding efficiency of the initial virtual speakers in the current frame. N1 represents the number of initial virtual speakers in the current frame. N2 represents the number of sound sources of the 3D audio signal. The number of sound sources can be pre-arranged according to the actual scene, for example. The number of sound sources can be an integer greater than or equal to 1.
[0158] In a fourth possible implementation, the encoder 113 determines the coding efficiency of the initial virtual speakers for the current frame based on the ratio of the number of virtual speaker signals for the current frame to the number of sound sources for the 3D audio signal, and then performs S530. The coding efficiency of the initial virtual speakers for the current frame may satisfy the following formula (9).
[0159]
[0160] Where 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.
[0161] S530 : The encoder 113 determines whether the coding efficiency of the initial virtual speaker of the current frame meets a preset condition.
[0162] 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.
[0163] 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.
[0164] 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.
[0165] It should be noted that, for the above four different possible implementations, the value range of the first threshold may be different.
[0166] For example, in a first possible implementation, the first threshold may be in a range of 0.5 to 1. It is understandable that if the coding efficiency is less than 0.5, it means that the energy used to reconstruct the current frame is less than half of the energy of the current frame, 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 ability of the initial virtual speakers of the current frame to reconstruct the sound field to which the three-dimensional audio signal belongs is relatively weak.
[0167] 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 transmitted 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 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.
[0168] 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 relatively weak in their 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 relatively weak in their ability to reconstruct the sound field to which the three-dimensional audio signal belongs.
[0169] For another example, in a 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 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. 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 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.
[0170] In some embodiments, the first threshold value may also be a specific value, for example, the first threshold value is 0.65.
[0171] It is understood that, as the first threshold value increases and the preset conditions become stricter, the encoder 113 is more likely to reselect virtual speakers, the complexity of selecting virtual speakers for the current frame increases, and the fluctuation of virtual speakers used for encoding different frames of the 3D audio signal decreases. Conversely, as the first threshold value decreases and the preset conditions become looser, the encoder 113 is less likely to reselect virtual speakers, the complexity of selecting virtual speakers for the current frame decreases, and the fluctuation of virtual speakers used for encoding different frames of the 3D audio signal increases. The first threshold value can be set based on actual application scenarios, and this embodiment does not limit the specific value of the first threshold value.
[0172] S540 : The encoder 113 determines an updated virtual speaker for the current frame from the candidate virtual speaker set.
[0173] In one possible example, as shown in FIG6 , FIG6 differs from FIG3 in that the encoder 300 further includes a post-processing unit 3200 . The post-processing unit 3200 is connected to the virtual speaker signal generation unit 350 and the signal reconstruction unit 370 , respectively. After obtaining the reconstructed current frame of the reconstructed 3D audio signal from the signal reconstruction unit 370 , the post-processing unit 3200 can determine the coding efficiency of the initial virtual speakers for the current frame based on 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 speakers for the current frame meets a preset condition, it determines an updated virtual speaker for the current frame from a set of candidate virtual speakers. Furthermore, the post-processing unit 3200 feeds the updated virtual speakers for the current frame back to the signal reconstruction unit 370 , the virtual speaker signal generation unit 350 , and the encoding unit 360 . The virtual speaker signal generation unit 350 generates a virtual speaker signal based on the updated virtual speakers for the current frame and the current frame, and the signal reconstruction unit 370 generates the reconstructed 3D audio signal based on the updated virtual speakers for the current frame and the updated virtual speaker signal. The input and output of each of the residual signal generation unit 380, residual signal selection unit 390, signal compensation unit 3100, and encoding unit 360 are information related to the updated virtual speakers for the current frame (e.g., the reconstructed 3D audio signal and virtual speaker signal), which is different from the information generated based on the initial virtual speakers for the current frame. As can be understood, after the post-processing unit 3200 obtains the updated virtual speakers for the current frame, the encoder 113 executes steps S440 to S480 based on the updated virtual speakers.
[0174] As shown in FIG7 , the difference between FIG7 and FIG6 is that the encoder 300 further includes a post-processing unit 3200. The post-processing unit 3200 is connected to the virtual speaker signal generation unit 350 and the residual signal generation unit 380, respectively. The post-processing unit 3200 can obtain the virtual speaker signal of the current frame from the virtual speaker signal generation unit 350, and after obtaining the residual signal from the residual signal generation unit 380, determine the coding efficiency of the initial virtual speaker of the current frame based on 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, it determines an updated virtual speaker for the current frame from the candidate virtual speaker set.
[0175] As shown in Figure 8, the difference between Figure 8 and Figure 6 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. After obtaining the number of sound sources of the three-dimensional audio signal from the coding analysis unit 330 and the number of initial virtual speakers of the current frame from the virtual speaker selection unit 340, the post-processing unit 3200 can determine the coding efficiency of the initial virtual speakers of the current frame based on 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 pre-set or analyzed by the virtual speaker selection unit 340.
[0176] As shown in Figure 9, the difference between Figure 9 and Figure 8 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 generation unit 350 respectively. After obtaining 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 generation unit 350, the post-processing unit 3200 can determine the coding efficiency of the initial virtual speakers of the current frame based on 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 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 virtual speaker signals of the current frame can be pre-set or analyzed by the virtual speaker selection unit 340.
[0177] 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 based on a second threshold smaller than the first threshold, so as to facilitate the encoder 113 to reselect the accuracy of the virtual speaker of the current frame.
[0178] For example, as shown in FIG10 , the method flow shown in FIG10 is an elaboration of the specific operation process included in S540 in FIG5 .
[0179] S541 : The encoder 113 determines whether the coding efficiency of the initial virtual speaker of the current frame is less than a second threshold.
[0180] If the coding efficiency of the initial virtual speaker of the current frame is less than or equal to the second threshold, execute S542; if the coding efficiency of the initial virtual speaker of the current frame is greater than the second threshold and less than the first threshold, execute S543.
[0181] S542 : The encoder 113 uses the preset virtual speaker in the candidate virtual speaker set as the updated virtual speaker for the current frame.
[0182] The preset virtual speaker can be a specified virtual speaker. The specified virtual speaker can be any virtual speaker in the virtual speaker set. For example, the specified virtual speaker has a horizontal angle of 100 degrees and a pitch angle of 50 degrees.
[0183] Preset virtual speakers can be virtual speakers based on a standard speaker layout or a non-standard speaker layout. Standard speakers can be speakers configured according to 22.2 channels, 7.1.4 channels, 5.1.4 channels, 7.1 channels, or 5.1 channels. Non-standard speakers can be speakers pre-arranged based on actual scenarios.
[0184] The preset virtual loudspeaker may also be a virtual loudspeaker determined according to the position of a sound source in the sound field. The position of the sound source may be obtained from the encoding analysis unit 330 or from the 3D audio signal to be encoded.
[0185] S543 : The encoder 113 uses the virtual speaker of the previous frame as the updated virtual speaker of the current frame.
[0186] The virtual speakers of the previous frame are virtual speakers used to encode the previous frame of the three-dimensional audio signal.
[0187] 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.
[0188] Optionally, if the coding efficiency of the initial virtual speaker of the current frame is greater than the second threshold and the coding efficiency is less than the first threshold, the encoder 113 may further determine an adjusted coding efficiency of the initial virtual speaker of the current frame based on 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 based on 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).
[0189]
[0190] Where R′ represents the initial coding efficiency of the virtual speaker in the current frame, MR′ represents the adjusted coding efficiency, and MR represents the average coding efficiency of the virtual speakers in the previous frame. The previous frame may refer to one or more frames before the current frame.
[0191] If the encoding efficiency of the initial virtual speakers for the current frame is greater than the adjusted encoding efficiency of the initial virtual speakers for the current frame, it indicates that the initial virtual speakers for the current frame can fully express the sound field information of the 3D audio signal compared to the virtual speakers for the previous frame. Therefore, encoder 113 uses the initial virtual speakers for the current frame as the virtual speakers for subsequent frames. This further reduces the fluctuation of the virtual speakers used for encoding different frames of the 3D audio signal, ensuring improved quality of the reconstructed 3D audio signal at the decoder and the sound quality of the sound played by the decoder.
[0192] 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.
[0193] It should be noted that the second threshold value can be a specific value. The second threshold value is smaller 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.
[0194] Optionally, if the coding efficiency of the initial virtual speaker for the current frame meets a preset condition, 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 coding efficiency of the initial virtual speaker for the current frame is less than or equal to the second threshold, encoder 113 may determine whether the coding efficiency of the initial virtual speaker for the current frame is less than the third threshold.
[0195] S550 : The encoder 113 encodes the current frame according to the updated virtual speaker of the current frame to obtain a first code stream.
[0196] The encoder 113 generates an updated virtual speaker signal based on the updated virtual speaker of the current frame and the current frame, generates an updated reconstructed 3D audio signal based on the updated virtual speaker of the current frame and the updated virtual speaker signal, determines an updated residual signal based on the updated reconstructed current frame and the current frame, and determines a first bitstream based on the current frame and the updated residual signal. The encoder 113 can generate the first bitstream according to the above descriptions of S430 to S480. Specifically, the encoder 113 updates the initial virtual speaker of the current frame and encodes the first bitstream using the updated virtual speaker of the current frame, the updated residual signal, and the updated compensation information.
[0197] S560 : The encoder 113 encodes the current frame according to the initial virtual speaker of the current frame to obtain a second code stream.
[0198] 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.
[0199] In this way, if the initial virtual speakers in the current frame are unable to fully represent the sound field of the reconstructed 3D audio signal, resulting in poor quality of the reconstructed 3D audio signal at the decoder, the encoder can determine to reselect virtual speakers for the current frame based on the initial virtual speakers' ability to reconstruct the sound field of the 3D audio signal, as indicated by the coding efficiency of the initial virtual speakers. The encoder then uses the updated virtual speakers of the current frame as the virtual speakers for encoding the current frame. By reselecting virtual speakers, the encoder reduces the fluctuation of the virtual speakers used for encoding different frames of the 3D audio signal, thereby improving the quality of the reconstructed 3D audio signal at the decoder and the sound quality of the sound played back at the decoder.
[0200] In some embodiments, source device 110 votes for virtual speakers based on the coefficients of the current frame and the coefficients of the virtual speakers. Based on the votes, a representative virtual speaker for the current frame is selected from a set of candidate virtual speakers, thereby compressing the 3D audio signal to be encoded. In this embodiment, the representative virtual speaker for the current frame can serve as the initial virtual speaker in the aforementioned embodiments.
[0201] Figure 11 is a schematic flow chart of a method for selecting virtual speakers provided in an embodiment of the present application. The method flow shown in Figure 11 illustrates the specific operations included in S430 in Figure 4 . This description uses the virtual speaker selection process performed by encoder 113 in source device 110 shown in Figure 1 as an example. Specifically, the functions of virtual speaker selection unit 340 are implemented. As shown in Figure 11 , the method includes the following steps.
[0202] S1110 , the encoder 113 obtains representative coefficients of the current frame.
[0203] The representative coefficient can refer to a frequency domain representative coefficient or a time domain representative coefficient. The frequency domain representative coefficient can also be called a frequency domain representative frequency point or a spectrum representative coefficient. The time domain representative coefficient can also be called a time domain representative sampling point.
[0204] For example, after encoder 113 obtains a fourth number of coefficients for the current frame of the 3D audio signal and the frequency domain eigenvalues of the fourth number of coefficients, it selects a third number of representative coefficients from the fourth number of coefficients based on the frequency domain eigenvalues of the fourth number of coefficients. Furthermore, based on the third number of representative coefficients, encoder 113 selects a second number of representative virtual speakers for the current frame from the candidate virtual speaker set. 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 is part of the fourth number of coefficients. The current frame of the 3D audio signal is an HOA signal; the frequency domain eigenvalues of the coefficients are determined based on the coefficients of the HOA signal.
[0205] 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.
[0206] 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.
[0207] 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 speaker of the current frame from the candidate virtual speaker set according to the final voting value of the virtual speaker in the current frame.
[0208] For example, encoder 113 determines a first number of virtual speakers and a first number of voting values based on a third number of representative coefficients for the current frame, a set of candidate virtual speakers, and a number of voting rounds. Based on the first number of voting values, encoder 113 selects a second number of representative virtual speakers for the current frame from the first number of virtual speakers. The second number is less than the first number, indicating that the second number of representative virtual speakers for the current frame are part of the candidate virtual speaker set. It is understood that virtual speakers and voting values correspond one-to-one. For example, the first number of virtual speakers includes a 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 indicate the priority of using the first virtual speaker when encoding the current frame. The candidate virtual speaker set includes a 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.
[0209] 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 measurement index for selecting 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 the embodiment of the present application, the encoder uses a smaller number of representative coefficients instead of all the 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 based on 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.
[0210] The second number is used to characterize the number of representative virtual speakers for the current frame selected by the encoder. A larger second number indicates a larger number of representative virtual speakers for the current frame, and more sound field information of the three-dimensional audio signal; a smaller second number indicates a smaller number of representative virtual speakers for the current frame, and less sound field information of the three-dimensional audio signal. Therefore, the number of representative virtual speakers for 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. For example, the value of the second number can be 1, 2, 4, or 8.
[0211] 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 speaker selected from the candidate virtual speaker set for the current frame. However, if the results of the virtual speakers selected in consecutive frames differ significantly, this can lead to unstable sound images in the reconstructed 3D audio signal and reduce the sound quality of the reconstructed 3D audio signal. In an embodiment of the present application, the encoder 113 can update the initial voting values of the virtual speakers included in the candidate virtual speaker set in the current frame based on the final voting values of the representative virtual speakers in the previous frame, obtaining the final voting values of the virtual speakers in the current frame. The encoder then selects the representative virtual speaker for the current frame from the candidate virtual speaker set based on the final voting values of the virtual speakers in the current frame. Thus, by referencing the representative virtual speakers in the previous frame to select the representative virtual speakers for the current frame, the encoder tends to select the same virtual speakers as the representative virtual speakers in the previous frame when selecting the representative virtual speakers for the current frame, thereby increasing the continuity of the orientations between consecutive frames and overcoming the problem of large differences in the results of the virtual speakers selected in consecutive frames. Therefore, an embodiment of the present application can also include S1130.
[0212] 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.
[0213] The encoder 113 votes for the virtual speakers in the candidate virtual speaker set based on the representative coefficients of the current frame and the coefficients of the virtual speakers. After obtaining the initial voting values of the virtual speakers in the current frame, the encoder 113 adjusts the initial voting values of the virtual speakers in the candidate virtual speaker set in the current frame based on the final voting values of the representative virtual speakers in the previous frame to obtain 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.
[0214] Based on the first number of voting values and the sixth number of final voting values of the previous frame, the encoder 113 obtains the seventh number of final voting values of the current frame corresponding to the seventh number of virtual speakers for the current frame. Based on the seventh number of final voting values of the current frame, the encoder 113 selects a second number of representative virtual speakers for the current frame from the seventh number of virtual speakers. If the second number is less than the seventh number, it means that the representative virtual speakers for the second number of current frames are part of the seventh number of virtual speakers. 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. 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 has a one-to-one correspondence with the sixth number of final voting values of the previous frame.
[0215] During the virtual speaker search process, since the position of the real sound source and the position of the virtual speaker do not necessarily coincide, the virtual speaker may not be able to form a one-to-one correspondence with the real sound source. In addition, in actual complex scenarios, 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, which will significantly affect the listener's auditory perception and cause 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 speaker of the previous frame, thereby reducing the frequent jumps of virtual speakers between frames, enhancing the continuity of 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.
[0216] In some embodiments, if the current frame is the first frame in the original audio, encoder 113 executes S1110 to S1120. If the current frame is any frame above the second frame in the original audio, encoder 113 may 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 position between consecutive frames and reduce encoding complexity. Embodiments of the present application may also include S1140.
[0217] 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.
[0218] If the encoder 113 determines to perform a virtual speaker search, S1110 to S1130 are executed. Alternatively, the encoder 113 may first execute S1110, i.e., the encoder 113 obtains the representative coefficients of the current frame, and then 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.
[0219] If the encoder 113 determines not to perform a virtual speaker search, step S1150 is executed.
[0220] S1150 : The encoder 113 determines to reuse the representative virtual speaker of the previous frame to encode the current frame.
[0221] 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 .
[0222] 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 to zero, thereby avoiding the encoder 113 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.
[0223] It is understood that in order to implement the functions in the above embodiments, the encoder includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily appreciate that, in conjunction with the various exemplary units and method steps described in the embodiments disclosed herein, 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 hardware or in a manner driven by computer software depends on the specific application scenario and design constraints of the technical solution.
[0224] The above describes in detail the 3D audio signal encoding method provided by this embodiment with reference to FIG. 1 to FIG. 11 . The following describes the 3D audio signal encoding apparatus and encoder provided by this embodiment with reference to FIG. 12 and FIG. 13 .
[0225] Figure 12 is a schematic 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-mentioned method embodiments, thereby also achieving the beneficial effects of the above-mentioned method embodiments. In this embodiment, the 3D audio signal encoding device can be encoder 113 as shown in Figure 1, or encoder 300 as shown in Figure 3, or a module (such as a chip) applied to a terminal device or server.
[0226] As shown in FIG12 , a 3D audio signal encoding apparatus 1200 includes a communication module 1210, a coding efficiency acquisition module 1220, a virtual speaker reselection module 1230, an encoding module 1240, and a storage module 1250. 3D audio signal encoding apparatus 1200 is configured to implement the functions of encoder 113 in the method embodiments shown in FIG5 and FIG10 .
[0227] The communication module 1210 is configured to obtain a current frame of a 3D audio signal. Optionally, the communication module 1210 may also receive the current frame of a 3D audio signal from another device, or obtain the current frame of the 3D audio signal from the storage module 1250. The 3D audio signal is an HOA signal; the frequency domain eigenvalues of the coefficients are determined based on a two-dimensional vector comprising the HOA coefficients of the HOA signal.
[0228] Coding efficiency acquisition module 1220 is configured to acquire, based on a current frame of a 3D audio signal, the coding efficiency of an initial virtual speaker in the current frame, where the initial virtual speaker in the current frame belongs to the candidate virtual speaker set. When 3D audio signal encoding apparatus 1200 is configured to implement the functions of encoder 113 in the method embodiments shown in Figures 5 and 10 , coding efficiency acquisition module 1220 is configured to implement the related functions of S520.
[0229] 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 coding efficiency of the initial virtual speaker for the current frame meets a preset condition. When the 3D audio signal encoding apparatus 1200 is configured to implement the functions of the encoder 113 in the method embodiment shown in FIG. 5 , the virtual speaker reselection module 1230 is configured to implement functions related to S530 and S540 . When the 3D audio signal encoding apparatus 1200 is configured to implement the functions of the encoder 113 in the method embodiment shown in FIG. 10 , the virtual speaker reselection module 1230 is configured to implement functions related to S530 and S541 through S543 .
[0230] 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.
[0231] 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.
[0232] When the 3D audio signal encoding apparatus 1200 is used to implement the function of the encoder 113 in the method embodiments shown in FIG. 5 and FIG. 10 , the encoding module 1240 is used to implement the related functions of S550 and S560 .
[0233] The storage module 1250 is used to store coefficients related to the three-dimensional audio signal, the candidate virtual speaker set, the representative virtual speaker set of the previous frame, the bitstream, and the selected coefficients and virtual speakers, etc., so that the encoding module 1240 can encode the current frame to obtain the bitstream and transmit the bitstream to the decoder.
[0234] It should be understood that the 3D audio signal encoding apparatus 1200 of the embodiment of the present application can be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). 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. Alternatively, when the 3D audio signal encoding method shown in FIG. 5 and FIG. 10 is implemented using software, the 3D audio signal encoding apparatus 1200 and its various modules can also be software modules.
[0235] A more detailed description of the communication module 1210, coding efficiency acquisition module 1220, virtual speaker reselection module 1230, coding module 1240 and storage module 1250 can be directly obtained by referring to the relevant descriptions in the method embodiments shown in Figures 5 and 10, and will not be repeated here.
[0236] FIG13 is a schematic diagram of the structure of an encoder 1300 provided in this embodiment. As shown in the figure, the encoder 1300 includes a processor 1310 , a bus 1320 , a memory 1330 , and a communication interface 1340 .
[0237] It should be understood that in this embodiment, the processor 1310 may be a central processing unit (CPU), or may 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.
[0238] 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.
[0239] 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.
[0240] Bus 1320 may include a path for transmitting information between the aforementioned components (e.g., processor 1310 and memory 1330). In addition to a data bus, bus 1320 may also include a power bus, a control bus, and a status signal bus. However, for clarity, various buses are collectively labeled bus 1320 in the figure.
[0241] As an example, encoder 1300 may include multiple processors. The processor may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and / or computing units for processing data (e.g., computer program instructions). Processor 1310 may access coefficients related to a three-dimensional audio signal, candidate virtual speaker sets, a representative virtual speaker set of a previous frame, and selected coefficients and virtual speakers, etc., stored in memory 1330.
[0242] It is worth noting that Figure 13 only takes the encoder 1300 including 1 processor 1310 and 1 memory 1330 as an example. 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.
[0243] 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 virtual speaker set of 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 drive.
[0244] The encoder 1300 can be a general-purpose device or a dedicated device. For example, the encoder 1300 can be an X86-based or ARM-based server, or can be another dedicated server, such as a policy control and charging (PCC) server. The embodiment of the present application does not limit the type of the encoder 1300.
[0245] It should be understood that the encoder 1300 according to this embodiment may correspond to the 3D audio signal encoding apparatus 1200 in this embodiment, and may correspond to executing the corresponding subject in any of the methods in FIG. 5 and FIG. 10 . The above-mentioned and other operations and / or functions of each module in the 3D audio signal encoding apparatus 1200 are for implementing the corresponding processes of each method in FIG. 5 and FIG. 10 , respectively. For the sake of brevity, they are not further described here.
[0246] An embodiment of the present application also provides a system, which includes a decoder and an encoder as shown in Figure 13. The encoder and decoder are used to implement the method steps shown in Figures 5 and 10 above. For the sake of brevity, they are not repeated here.
[0247] 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 read-only memory (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 an integral part of the processor. The processor and 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 storage medium can also exist as discrete components in a network device or a terminal device.
[0248] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, all or part of the embodiments can be implemented 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 instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is performed in whole or in part. The computer can 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 can 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 can be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (SSD).
[0249] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for encoding three-dimensional audio signals, characterized in that, it includes: Obtain the current frame of the three-dimensional audio signal; Obtain the coding efficiency of the initial virtual loudspeaker of the current frame according to the current frame of the three-dimensional audio signal, and the initial virtual loudspeaker of the current frame belongs to the candidate virtual loudspeaker set; If the coding efficiency of the initial virtual loudspeaker of the current frame meets the preset condition, determine the updated virtual loudspeaker of the current frame from the candidate virtual loudspeaker set, and encode the current frame according to the updated virtual loudspeaker of the current frame to obtain the first bitstream; If the coding efficiency of the initial virtual loudspeaker of the current frame does not meet the preset condition, encode the current frame according to the initial virtual loudspeaker of the current frame to obtain the second bitstream.
2. The method according to claim 1, characterized in that, The obtaining the coding efficiency of the initial virtual loudspeaker of the current frame according to the current frame of the three-dimensional audio signal includes: Obtain the reconstructed current frame of the three-dimensional audio signal after reconstruction according to the initial virtual loudspeaker of the current frame; Determine the coding efficiency of the initial virtual loudspeaker of the current frame 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 according to the coefficients of the reconstructed current frame, and the energy of the current frame is determined according to the coefficients of the current frame.
4. The method according to claim 1, characterized in that, The obtaining the coding efficiency of the initial virtual loudspeaker of the current frame according to the current frame of the three-dimensional audio signal includes: Obtain the reconstructed current frame of the three-dimensional audio signal after reconstruction according to the initial virtual loudspeaker of the current frame; Obtain the residual signal of the current frame according to the current frame of the three-dimensional audio signal and the reconstructed current frame of the three-dimensional audio signal after reconstruction; Obtain the sum of the energies of the virtual loudspeaker signal and the residual signal of the current frame; Determine the coding efficiency of the initial virtual loudspeaker of the current frame according to the ratio of the energy of the virtual loudspeaker signal of the current frame to the sum of the energies.
5. The method according to claim 2 or 4, characterized in that, The obtaining the reconstructed current frame of the three-dimensional audio signal after reconstruction according to the initial virtual loudspeaker of the current frame includes: Determine the virtual loudspeaker signal of the current frame according to the initial virtual loudspeaker of the current frame; Determine the reconstructed current frame according to the virtual loudspeaker signal of the current frame.
6. The method according to claim 1, characterized in that, The obtaining the coding efficiency of the initial virtual loudspeaker of the current frame according to the current frame of the three-dimensional audio signal includes: Determine the number of sound sources according to the current frame of the three-dimensional audio signal; Determine the coding efficiency of the initial virtual loudspeaker of the current frame according to the number of the initial virtual loudspeakers of the current frame and the number of sound sources.
7. The method according to claim 1, characterized in that, The obtaining the coding efficiency of the initial virtual loudspeaker of the current frame according to the current frame of the three-dimensional audio signal includes: Determine the number of sound sources according to the current frame of the three-dimensional audio signal; Determine the virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; Determine the coding efficiency of the initial virtual speaker of the current frame 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 coding 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, determining the updated virtual speaker of the current frame from the candidate virtual speaker set includes: If the coding efficiency of the initial virtual speaker of the current frame is less than a second threshold, use the preset virtual speaker in the candidate virtual speaker set as the updated virtual speaker of the current frame, and the second threshold is less than the first threshold; Or, if the coding efficiency of the initial virtual speaker of the current frame is less than the first threshold and greater than the second threshold, use the virtual speaker of the previous frame as the updated virtual speaker of the current frame, and the virtual speaker of the previous frame is the virtual speaker used for encoding the previous frame of the three-dimensional audio signal.
10. The method according to claim 9, characterized in that, the method further includes: 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; 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, use the initial virtual speaker of the current frame as the virtual speaker of the 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 ambisonics (HOA) signal.
12. A three-dimensional audio signal encoding device, characterized in that, comprising: A communication module for obtaining the current frame of the three-dimensional audio signal; A coding efficiency acquisition module for obtaining 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 a candidate virtual speaker set; A virtual speaker reselection module for determining the 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; A coding module for encoding the current frame according to the updated virtual speaker of the current frame to obtain a first bitstream; The coding module is further configured to encode the current frame according to the initial virtual speaker of the current frame to obtain a second bitstream if the coding 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 obtains 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 configured to: Obtain the reconstructed current frame of the three-dimensional audio signal according to the initial virtual speaker of the current frame; Determine 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.
14. The apparatus according to claim 13, wherein, the energy of the reconstructed current frame is determined according to the coefficients of the reconstructed current frame, and the energy of the current frame is determined according to the coefficients of the current frame.
15. The apparatus according to claim 12, wherein, when the coding efficiency acquisition module obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it specifically is used for: Obtain the reconstructed current frame of the reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame; Obtain the residual signal of the current frame according to the current frame of the three-dimensional audio signal and the reconstructed current frame of the reconstructed three-dimensional audio signal; Obtain the sum of the energies of the virtual speaker signal and the residual signal of the current frame; 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 energies.
16. The apparatus according to claim 13 or 15, wherein, when the coding efficiency acquisition module obtains the reconstructed current frame of the reconstructed three-dimensional audio signal according to the initial virtual speaker of the current frame, it specifically is used for: Determine the virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; Determine the reconstructed current frame according to the virtual speaker signal of the current frame.
17. The apparatus according to claim 12, wherein, when the coding efficiency acquisition module obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it specifically is used for: Determine the number of sound sources according to the current frame of the three-dimensional audio signal; Determine the coding efficiency of the initial virtual speaker of the current frame according to the number of the initial virtual speakers of the current frame and the number of sound sources.
18. The apparatus according to claim 12, wherein, when the coding efficiency acquisition module obtains the coding efficiency of the initial virtual speaker of the current frame according to the current frame of the three-dimensional audio signal, it specifically is used for: Determine the number of sound sources according to the current frame of the three-dimensional audio signal; Determine the virtual speaker signal of the current frame according to the initial virtual speaker of the current frame; Determine the coding efficiency of the initial virtual speaker of the current frame according to the number of the virtual speaker signals of the current frame and the number of sound sources of the three-dimensional audio signal.
19. The apparatus according to any one of claims 12 to 18, wherein, the preset condition includes that the coding efficiency of the initial virtual speaker of the current frame is less than a first threshold.
20. The apparatus according to claim 19, wherein, when the virtual speaker reselection module determines the updated virtual speaker of the current frame from the candidate virtual speaker set, it specifically is used for: If the encoding efficiency of the initial virtual loudspeaker of the current frame is less than a second threshold, use the preset virtual loudspeaker in the candidate virtual loudspeaker set as the updated virtual loudspeaker of the current frame, where the second threshold is less than the first threshold; Or, if the encoding efficiency of the initial virtual loudspeaker of the current frame is less than the first threshold and greater than the second threshold, use the virtual loudspeaker of the prior frame as the updated virtual loudspeaker of the current frame, where the virtual loudspeaker of the prior frame is the virtual loudspeaker used for encoding the prior frame of the three-dimensional audio signal.
21. The apparatus according to claim 20, wherein, the virtual loudspeaker reselection module is further configured to: determine the adjusted encoding efficiency of the initial virtual loudspeaker of the current frame according to the encoding efficiency of the initial virtual loudspeaker of the current frame and the encoding efficiency of the virtual loudspeaker of the prior frame; If the encoding efficiency of the initial virtual loudspeaker of the current frame is greater than the adjusted encoding efficiency of the initial virtual loudspeaker of the current frame, use the initial virtual loudspeaker of the current frame as the virtual loudspeaker of the subsequent frame of the current frame.
22. The apparatus according to any one of claims 12 to 21, wherein, the three-dimensional audio signal is a high-order ambisonics (HOA) signal.
23. An encoder, wherein, the encoder includes at least one processor and a memory, where 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, wherein, the system includes the encoder according to claim 23 and a decoder, the encoder is used to perform the operation steps of the method according to any one of claims 1 to 11 above, and the decoder is used to decode the code stream generated by the encoder.
25. A computer program, wherein, when the computer program is executed, the three-dimensional audio signal encoding method according to any one of claims 1 to 11 is implemented.
26. A computer-readable storage medium, wherein, it includes computer software instructions; when the computer software instructions run in an encoder, the encoder is caused to execute the three-dimensional audio signal encoding method according to any one of claims 1 to 11.
27. A computer-readable storage medium, wherein, it includes the code stream obtained by the three-dimensional audio signal encoding method according to any one of claims 1 to 11.
