Audio encoding and decoding method and device
The audio encoding method for HOA technology selects a target virtual speaker and generates a virtual speaker signal with a residual signal to efficiently encode sound scenes, addressing data volume and bandwidth issues while maintaining high-quality sound reproduction.
Patent Information
- Application Number
- JP2023532525
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-11-30
- Filing Date
- 2021-05-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-05-28
AI Technical Summary
Higher order ambisonics (HOA) technology requires large amounts of data for detailed sound scene recording, leading to challenges in data transmission and storage, and existing encoding and decoding methods face issues with high data volume and bandwidth occupancy during bitstream compression.
An audio encoding method that selects a first target virtual speaker based on a scene audio signal, generates a virtual speaker signal and a residual signal, and encodes these signals into a bitstream, reducing data volume by using attribute information and HOA coefficients to represent the sound field efficiently.
This approach reduces the amount of encoded data and improves encoding efficiency by decoupling the data from the number of sound channels, ensuring high-quality sound reproduction while minimizing bandwidth requirements.
Smart Images

Figure 0007589883000013 
Figure 0007589883000014 
Figure 0007589883000015
Abstract
Description
[Technical field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to Chinese Patent Application No. 202011377433.0, entitled “AUDIO ENCODING AND DECODING METHOD AND APPARATUS,” filed with the State Intellectual Property Office of the People's Republic of China on November 30, 2020, the entire contents of which are incorporated by reference.
[0002] [Technical field] This application relates to the field of audio encoding and decoding technologies, and in particular to an audio encoding and decoding method and apparatus. [Background technology]
[0003] 3D audio technology is an audio technology used to capture, process, transmit, render and play back sound events and 3D sound field information in the real world. 3D audio technology gives sound a strong sense of space, surroundings and immersion, giving people an extraordinary "lifelike" auditory experience. Higher order ambisonics (HOA) technology has the characteristics of being independent of speaker layout in the recording, encoding and playback stages, and the characteristics of rotating and playing back data in HOA format, and has higher flexibility in 3D audio playback, and therefore has been paid more attention and researched.
[0004] In order to achieve better audio hearing effect, HOA technology requires a large amount of data to record more detailed information about the sound scene. Scene-based sampling and storage of three-dimensional audio signals is more conducive to storing and transmitting the spatial information of audio signals, but the increase in HOA order generates more data, and the large amount of data causes challenges in transmission and storage. Therefore, the HOA signal needs to be encoded and decoded.
[0005] Currently, there are methods for encoding and decoding multi-channel data, including: a core encoder (e.g., a 16-channel encoder) of an encoder directly encodes each sound channel of an audio signal in an original scene, and then outputs a bitstream; a core decoder (e.g., a 16-channel decoder) of a decoder decodes the bitstream to obtain each sound channel of an audio signal in a decoded scene.
[0006] In the above multi-channel encoding and decoding method, the corresponding encoder and decoder need to be adapted according to the number of sound channels of the audio signal in the original scene. Moreover, when the number of sound channels increases, there exists the problem of large data amount and high bandwidth occupancy during bitstream compression. Summary of the Invention
[0007] SUMMARY OF THE PRESENT APPLICATION The embodiments of this application provide an audio encoding and decoding method and apparatus for reducing the amount of data to be encoded and decoded, so as to improve encoding and decoding efficiency.
[0008] In order to solve the above technical problems, the embodiments of this application provide the following technical solutions:
[0009] According to a first aspect, an embodiment of the present application provides an audio encoding method, comprising: selecting a first target virtual speaker from a preset set of virtual speakers based on a first scene audio signal; generating a first virtual speaker signal based on a first scene audio signal and attribute information of a first target virtual speaker; Obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal; generating a residual signal based on the first scene audio signal and the second scene audio signal; encoding the first virtual speaker signal and the residual signal and writing the encoded signals into a bitstream; Includes.
[0010] In the embodiment of this application, firstly, a first target virtual speaker is selected from a preset virtual speaker set based on a first scene audio signal. The first virtual speaker signal is generated based on the first scene audio signal and attribute information of the first target virtual speaker. Then, a second scene audio signal is obtained by using the attribute information of the first target virtual speaker and the first virtual speaker signal. A residual signal is generated based on the first scene audio signal and the second scene audio signal. Finally, the first virtual speaker signal and the residual signal are encoded and written into a bitstream. In this embodiment of this application, the first virtual speaker signal can be generated based on the first scene audio signal and the attribute information of the first target virtual speaker. Furthermore, the audio encoder can further obtain the residual signal based on the attribute information of the first virtual speaker signal and the first target virtual speaker. The audio encoder encodes the first virtual speaker signal and the residual signal instead of directly encoding the first scene audio signal. In this embodiment of the application, the first target virtual speaker is selected based on the first scene audio signal, and the first virtual speaker signal generated based on the first target virtual speaker can represent the sound field at the position of the listener in the space. The sound field at the position is as close as possible to the original sound field when the first scene audio signal is recorded, thereby ensuring the encoding quality of the audio encoder. Furthermore, the first virtual speaker signal and the residual signal are encoded to obtain a bitstream, so that the amount of encoding data of the first virtual speaker signal is related to the first target virtual speaker and not related to the number of sound channels of the first scene audio signal, thereby reducing the amount of encoding data and improving the encoding efficiency.
[0011] In a possible implementation, the method comprises: obtaining a dominant sound field component from the first scene audio signal based on the virtual speaker set; The step of selecting a first target virtual speaker from a preset virtual speaker set based on a first scene audio signal includes: Selecting a first target virtual speaker from the set of virtual speakers based on the dominant sound field components.
[0012] In the above solution, each virtual speaker in the virtual speaker set corresponds to one sound field component, and the first target virtual speaker is selected from the virtual speaker set based on the main sound field component. For example, the virtual speaker corresponding to the main sound field component is the first target virtual speaker selected by the encoder. In this embodiment of the application, the encoder can select the first target virtual speaker based on the main sound field component to solve the problem that the encoder needs to determine the first target virtual speaker.
[0013] In a possible implementation, the step of selecting a first target virtual speaker from the set of virtual speakers based on a dominant sound field component comprises: selecting a Higher Order Ambisonics (HOA) coefficient for the dominant sound field component from a set of HOA coefficients based on the dominant sound field component, the HOA coefficients in the HOA coefficient set having a one-to-one correspondence with the virtual speakers in the set of virtual speakers; determining a virtual speaker corresponding to the HOA coefficient for the main sound field component among the virtual speaker set as a first target virtual speaker; Includes.
[0014] In the above solution, the encoder pre-configures a HOA coefficient set based on a virtual speaker set, and there is a one-to-one correspondence between the HOA coefficients in the HOA coefficient set and the virtual speakers in the virtual speaker set. Therefore, after the HOA coefficients are selected based on the main sound field components, the virtual speaker set is searched for a target virtual speaker corresponding to the HOA coefficient for the main sound field components based on the one-to-one correspondence, and the found target virtual speaker is the first target virtual speaker. This solves the problem that the encoder needs to determine the first target virtual speaker.
[0015] In a possible implementation, the step of selecting a first target virtual speaker from the set of virtual speakers based on a dominant sound field component comprises: Obtaining configuration parameters of a first target virtual speaker based on the main sound field components; generating HOA coefficients for a first target virtual speaker based on configuration parameters of the first target virtual speaker; determining a virtual speaker corresponding to the HOA coefficient for the first target virtual speaker among the virtual speaker set as a first target virtual speaker; Includes.
[0016] In the above solution, after obtaining the main sound field component, the encoder can determine the configuration parameters of the first target virtual speaker based on the main sound field component. For example, the main sound field component may be one or more sound field components having the largest value among the multiple sound field components, or the main sound field component may be one or more sound field components having a dominant direction among the multiple sound field components. The main sound field component can be used to determine a first target virtual speaker that matches the first scene audio signal, and corresponding attribute information is configured for the first target virtual speaker, and the HOA coefficient for the first target virtual speaker can be generated based on the setting configuration parameters of the first target virtual speaker. The process of generating the HOA coefficient can be realized by using an HOA algorithm, and the details will not be described again here. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient. Thus, the first target virtual speaker is selected from the virtual speaker set based on the HOA coefficient for each virtual speaker, which can solve the problem that the encoder needs to determine the first target virtual speaker.
[0017] In a possible implementation, the step of obtaining configuration parameters of the first target virtual speaker based on the main sound field components comprises: determining configuration parameters for a number of virtual speakers in a virtual speaker set based on configuration information of an audio encoder; selecting configuration parameters of a first target virtual speaker from the configuration parameters of the plurality of virtual speakers based on the main sound field components; Includes.
[0018] In the above solution, the encoder obtains configuration parameters of multiple virtual speakers from a virtual speaker set. For each virtual speaker, there is a corresponding virtual speaker configuration parameter, and each virtual speaker configuration parameter includes, but is not limited to, information such as the HOA order of the virtual speaker and the position coordinate of the virtual speaker. The configuration parameters of each virtual speaker can be used to generate HOA coefficients for the virtual speaker. The process of generating HOA coefficients can be realized by using an HOA algorithm, and the details will not be described again here. An HOA coefficient is generated for each virtual speaker in the virtual speaker set, and the HOA coefficients respectively configured for all virtual speakers in the virtual speaker set form an HOA coefficient set, solving the problem that the encoder needs to determine the HOA coefficient for each virtual speaker in the virtual speaker set.
[0019] In a possible implementation, the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker; The step of generating HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker includes: Determining HOA coefficients for the first target virtual speaker based on position information and HOA order information of the first target virtual speaker.
[0020] In the above solution, the configuration parameters of each virtual speaker in the virtual speaker set may include the position information of the virtual speaker and the HOA order information of the virtual speaker. Similarly, the configuration parameters of the first target virtual speaker include the position information and the HOA order information of the first target virtual speaker. For example, the position information of each virtual speaker in the virtual speaker set can be determined according to a local equidistant virtual speaker space distribution manner. The local equidistant virtual speaker space distribution manner means that the multiple virtual speakers are distributed in space in a local equidistant manner. For example, the local equidistant manner may include an even distribution or an uneven distribution. Both the position information and the HOA order information of each virtual speaker can be used to generate HOA coefficients for the virtual speakers. The process of generating the HOA coefficients can be realized by using an HOA algorithm. This solves the problem that the encoder needs to determine the HOA coefficients for the first target virtual speaker.
[0021] In a possible implementation, the method comprises: The method further includes the steps of encoding the attribute information of the first target virtual speaker and writing the encoded information into a bitstream.
[0022] In the above solution, in addition to encoding the virtual speakers, the encoder can also encode attribute information of the first target virtual speaker and write the encoded attribute information of the first target virtual speaker into the bitstream. In this case, the obtained bitstream may include the encoded virtual speakers and the encoded attribute information of the first target virtual speaker. In this embodiment of the application, the bitstream can carry the encoded attribute information of the first target virtual speaker, thereby enabling the decoder to determine the attribute information of the first target virtual speaker by decoding the bitstream to facilitate audio decoding by the decoder.
[0023] In a possible implementation, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes HOA coefficients for the first target virtual speaker; The step of generating a first virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker includes: The method includes performing a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal.
[0024] In the above solution, an example is used in which the first scene audio signal is a HOA signal to be encoded. First, the encoder determines a HOA coefficient for a first target virtual speaker. For example, the encoder selects a HOA coefficient from a HOA coefficient set based on a main sound field component, and the selected HOA coefficient is a HOA coefficient for the first target virtual speaker. After the encoder obtains the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker, the first virtual speaker signal can be generated based on the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker. The HOA signal to be encoded can be obtained by performing a linear combination by using the HOA coefficient for the first target virtual speaker, and the solution of the first virtual speaker signal can be converted into a solution of the linear combination.
[0025] In a possible implementation, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker; The step of generating a first virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker includes: Obtaining HOA coefficients for a first target virtual speaker based on position information of the first target virtual speaker; performing a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal; Includes.
[0026] In the above solution, after the encoder obtains the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker, the encoder performs a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker. In other words, the encoder combines the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a linear combination matrix. Then, the encoder can obtain an optimal solution of the linear combination matrix, and the obtained optimal solution is the first virtual speaker signal.
[0027] In a possible implementation, the method comprises: selecting a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; generating a second virtual speaker signal based on the first scene audio signal and attribute information of a second target virtual speaker; encoding a second virtual speaker signal and writing the encoded signal into a bitstream; Further comprising: Correspondingly, the step of obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal includes: The method includes obtaining a second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker, and the second virtual speaker signal.
[0028] In the above solution, the encoder can obtain attribute information of a first target virtual speaker, the first target virtual speaker being a virtual speaker in a virtual speaker set and used to play a first virtual speaker signal. The encoder can obtain attribute information of a second target virtual speaker, the second target virtual speaker being a virtual speaker in a virtual speaker set and used to play a second virtual speaker signal. The attribute information of the first target virtual speaker may include position information of the first target virtual speaker and an HOA coefficient for the first target virtual speaker. The attribute information of the second target virtual speaker may include position information of the second target virtual speaker and an HOA coefficient for the second target virtual speaker. After the encoder obtains the first virtual speaker signal and the second virtual speaker signal, the encoder can perform signal reconstruction based on the attribute information of the first target virtual speaker and the attribute information of the second target virtual speaker, and obtain a second scene audio signal through signal reconstruction.
[0029] In a possible implementation, the method comprises: aligning the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; Correspondingly, encoding the second virtual speaker signal includes: encoding the aligned second virtual speaker signals; Correspondingly, encoding the first virtual speaker signal and the residual signal includes: Encoding the aligned first virtual speaker signal and the residual signal.
[0030] In the above solution, after obtaining the aligned first virtual speaker signals, the encoder can encode the aligned first virtual speaker signals and the residual signal. In the embodiment of this application, by re-adjusting and aligning the sound channels of the first virtual speaker signals, the inter-channel correlation is enhanced, which facilitates the encoding process of the first virtual speaker signals by the core encoder.
[0031] In a possible implementation, the method comprises: selecting a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; generating a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker; Further comprising: Correspondingly, encoding the first virtual speaker signal and the residual signal includes: Obtaining a downmixed signal and first side information based on a first virtual speaker signal and a second virtual speaker signal, where the first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; encoding the downmixed signal, the first side information and the residual signal; Includes.
[0032] In the above solution, after the encoder obtains the first virtual speaker signal and the second virtual speaker signal, the encoder can further perform downmixing based on the first virtual speaker signal and the second virtual speaker signal to generate a downmixed signal, for example, perform amplitude downmixing on the first virtual speaker signal and the second virtual speaker signal to obtain a downmixed signal. Furthermore, first side information can be further generated based on the first virtual speaker signal and the second virtual speaker signal. The first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal, and the relationship has multiple realization manners. The first side information can be used by the decoder to upmix the downmixed signal and restore the first virtual speaker signal and the second virtual speaker signal. For example, the first side information includes a signal information loss analysis parameter, so that the decoder restores the first virtual speaker signal and the second virtual speaker signal by using the signal information loss analysis parameter. In another example, the first side information may specifically be a correlation parameter between the first virtual speaker signal and the second virtual speaker signal, for example an energy ratio parameter between the first virtual speaker signal and the second virtual speaker signal, and thus the decoder restores the first virtual speaker signal and the second virtual speaker signal by using the correlation parameter or the energy ratio parameter.
[0033] In a possible implementation, the method comprises: aligning the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; Correspondingly, obtaining a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal includes: Obtaining a downmixed signal and first side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0034] Correspondingly, the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0035] In the above solution, before generating the downmixed signal, the encoder can first perform an alignment operation on the virtual speaker signals, and generate the downmixed signal and the first side information after completing the alignment operation. In this embodiment of the application, by re-adjusting and aligning the sound channels of the first virtual speaker signal and the second virtual speaker signal, the inter-channel correlation is enhanced, which facilitates the encoding process of the first virtual speaker signal by the core encoder.
[0036] In a possible implementation, before selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal, the method further comprises: determining whether a target virtual speaker other than the first target virtual speaker needs to be obtained based on the coding rate and / or signal class information of the first scene audio signal; selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal only if a target virtual speaker other than the first target virtual speaker needs to be obtained; Further includes:
[0037] In the above solution, the encoder can further select a signal to determine whether a second target virtual speaker needs to be obtained. When a second target virtual speaker needs to be obtained, the encoder may generate a second virtual speaker signal. When a second target virtual speaker needs to be obtained, the encoder may not generate a second virtual speaker signal. The encoder can determine whether other target virtual speakers need to be selected in addition to the first target virtual speaker based on the configuration information of the audio encoder and / or the signal class information of the first scene audio signal. For example, when the coding rate is higher than a preset threshold, it is determined that target virtual speakers corresponding to two main sound field components need to be obtained, and in addition to determining the first target virtual speaker, the second target virtual speaker may be further determined. In another example, when it is determined based on the signal class information of the first scene audio signal that target virtual speakers corresponding to two main sound field components including a dominant sound source direction need to be obtained, in addition to determining the first target virtual speaker, the second target virtual speaker may be further determined. Conversely, if it is determined based on the coding rate and / or signal class information of the first scene audio signal that only one target virtual speaker needs to be obtained, it is determined that after the first target virtual speaker is determined, no target virtual speakers other than the first target virtual speaker are obtained. In this embodiment of the application, the signal is selected, thereby reducing the amount of data to be encoded by the encoder, allowing for improved encoding efficiency.
[0038] In a possible realisation, the residual signal comprises residual sub-signals on at least two sound channels, the method comprising: determining, from the residual sub-signals on the at least two sound channels, a residual sub-signal that needs to be encoded and that is on at least one sound channel based on configuration information of the audio encoder and / or signal class information of the first scene audio signal; Correspondingly, encoding the first virtual speaker signal and the residual signal includes: It includes encoding a first virtual speaker signal and a residual sub-signal that needs to be encoded and that is on at least one sound channel.
[0039] In the above solution, the encoder can make a decision for the residual signal based on the configuration information of the audio encoder and / or the signal class information of the first scene audio signal. For example, when the residual signal includes a residual sub-signal on at least two sound channels, the encoder can select the sound channel or multiple sound channels in which the residual sub-signal needs to be encoded and the sound channel or multiple sound channels in which the residual sub-signal does not need to be encoded. For example, the residual sub-signal having the dominant energy in the residual signal is selected for encoding based on the configuration information of the audio encoder. In another example, the residual sub-signal obtained through the calculation with the low-order HOA sound channel in the residual signal is selected for encoding based on the signal class information of the first scene audio signal. The sound channel is selected for the residual signal, thereby reducing the amount of data encoded by the encoder, so as to improve the encoding efficiency.
[0040] In a possible implementation, if the residual sub-signals on at least two sound channels do not need to be coded and include a residual sub-signal on at least one sound channel, the method comprises: obtaining second side information, the second side information indicating a relationship between a residual sub-signal that needs to be coded and that is on at least one sound channel and a residual sub-signal that does not need to be coded and that is on at least one sound channel; writing second side information into the bitstream; Further includes:
[0041] In the above solution, when selecting a signal, the encoder can determine the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. In this embodiment of the application, the residual sub-signals that need to be coded are coded, and the residual sub-signals that do not need to be coded are not coded, so that the amount of data coded by the encoder is reduced to improve coding efficiency. Since information loss occurs when the encoder selects a signal, signal compensation needs to be performed on the residual sub-signals that are not transmitted. The signal compensation may be, but is not limited to, information loss analysis, energy compensation, envelope compensation and noise compensation. The compensation method may be linear compensation, nonlinear compensation, etc. After the signal compensation, second side information may be generated, and the second side information may be written into the bitstream. The second side information indicates a relationship between the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. The relationship has multiple realization manners. For example, the second side information includes a signal information loss analysis parameter, so that the decoder uses the signal information loss analysis parameter to restore the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. In another example, the second side information may specifically be a correlation parameter between the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded, for example, an energy ratio parameter between the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded. Thus, the decoder restores the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded by using the correlation parameter or the energy ratio parameter. In this embodiment of the application, the decoder can obtain the second side information by using the bitstream, and the decoder can perform signal compensation based on the second side information to improve the quality of the decoded signal of the decoder.
[0042] According to a second aspect, an embodiment of the present application further provides an audio decoding method, comprising: receiving a bitstream; decoding the bitstream to obtain virtual speaker signals and a residual signal; obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal; Includes.
[0043] In the embodiment of this application, first, a bitstream is received, then the bitstream is decoded to obtain a virtual speaker signal and a residual signal, and finally, a reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal. In this embodiment of this application, the audio decoder performs a decoding process that is the inverse of the encoding process by the audio encoder, obtains the virtual speaker signal and the residual signal from the bitstream through decoding, and can obtain the reconstructed scene audio signal by using the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal. In this embodiment of this application, the obtained bitstream carries the virtual speaker signal and the residual signal, reducing the amount of data to be decoded and improving the decoding efficiency.
[0044] In a possible implementation, the method comprises: The method further includes decoding the bitstream to obtain attribute information of the target virtual speaker.
[0045] In the above solution, in addition to encoding the virtual speaker, the encoder can also encode attribute information of the target virtual speaker and write the encoded attribute information of the target virtual speaker into the bitstream. For example, the attribute information of the first target virtual speaker can be obtained by using the bitstream. In this embodiment of the application, the bitstream can carry the encoded attribute information of the first target virtual speaker, so that the decoder can determine the attribute information of the first target virtual speaker by decoding the bitstream to facilitate audio decoding by the decoder.
[0046] In a possible implementation, the attribute information of the target virtual speaker includes Higher Order Ambisonics (HOA) coefficients for the target virtual speaker; The step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: performing a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal; adjusting the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal; Includes.
[0047] In the above solution, first, the decoder determines the HOA coefficient for the target virtual speaker. For example, the decoder may pre-store the HOA coefficient for the target virtual speaker. After obtaining the virtual speaker signal and the HOA coefficient for the target virtual speaker, the decoder can obtain a synthesized scene audio signal based on the virtual speaker signal and the HOA coefficient for the target virtual speaker. Finally, the residual signal is used to adjust the synthesized scene audio signal to improve the quality of the reconstructed scene audio signal.
[0048] In a possible implementation, the attribute information of the target virtual speaker includes position information of the target virtual speaker; The step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: determining HOA coefficients for the target virtual speaker based on position information of the target virtual speaker; performing a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal; adjusting the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal; Includes.
[0049] In the above solution, the attribute information of the target virtual speaker may include position information of the target virtual speaker. The decoder pre-stores HOA coefficients for each virtual speaker in the virtual speaker set, and the decoder further stores position information of each virtual speaker. For example, the decoder can determine the HOA coefficient for the position information of the target virtual speaker based on the correspondence between the position information of the virtual speaker and the HOA coefficient for the virtual speaker, or the decoder can calculate the HOA coefficient for the target virtual speaker based on the position information of the target virtual speaker. Thus, the decoder can determine the HOA coefficient for the target virtual speaker based on the position information of the target virtual speaker. This solves the problem that the decoder needs to determine the HOA coefficient for the target virtual speaker.
[0050] In a possible realisation, the virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, the method comprising: decoding the bitstream to obtain first side information, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal; obtaining a first virtual speaker signal and a second virtual speaker signal based on the first side information and the downmixed signal; Further comprising: Correspondingly, the step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: The method includes obtaining a reconstructed scene audio signal based on attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal, and the second virtual speaker signal.
[0051] In the above solution, when the encoder performs downmixing based on the first virtual speaker signal and the second virtual speaker signal, it generates a downmixed signal, and the encoder can further perform signal compensation on the downmixed signal to generate first side information. The first side information can be written into a bitstream. The decoder can obtain the first side information by using the bitstream. The decoder can perform signal compensation based on the first side information to obtain the first virtual speaker signal and the second virtual speaker signal. Thus, during signal reconstruction, the first virtual speaker signal, the second virtual speaker signal, the attribute information of the target virtual speaker and the residual signal can be used to improve the quality of the decoded signal of the decoder.
[0052] In a possible realisation, the residual signal comprises a residual sub-signal on the first sound channel, the method comprising: - decoding the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on the second sound channel; obtaining a residual sub-signal on a second sound channel based on the second side information and the residual sub-signal on the first sound channel; Further comprising: Correspondingly, the step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: The method includes obtaining a reconstructed scene audio signal based on attribute information of the target virtual speaker, a residual sub-signal on the first sound channel, a residual sub-signal on the second sound channel, and the virtual speaker signal.
[0053] In the above solution, when selecting a signal, the encoder can determine the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded. Since information loss occurs when the encoder selects a signal, the encoder generates second side information. The second side information can be written into the bitstream. The decoder can obtain the second side information by using the bitstream. Assuming that the residual signal carried in the bitstream includes a residual sub-signal on a first sound channel, the decoder can perform signal compensation based on the second side information to obtain the residual sub-signal on the second sound channel. For example, the decoder restores the residual sub-signal on the second sound channel by using the residual sub-signal on the first sound channel and the second side information. The second sound channel is independent from the first sound channel. Therefore, during signal reconstruction, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel, the attribute information of the target virtual speaker and the virtual speaker signal can be used to improve the quality of the decoded signal of the decoder.
[0054] In a possible realisation, the residual signal comprises a residual sub-signal on the first sound channel, the method comprising: - decoding the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel; obtaining a residual sub-signal on a third sound channel and an updated residual sub-signal on the first sound channel based on the second side information and the residual sub-signal on the first sound channel; Further comprising: Correspondingly, the step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: The method includes obtaining a reconstructed scene audio signal based on attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel, and the virtual speaker signal.
[0055] In the above solution, when selecting a signal, the encoder can determine the residual sub-signal that needs to be encoded and the residual sub-signal that does not need to be encoded. Since information loss occurs when the encoder selects a signal, the encoder generates second side information. The second side information can be written into the bitstream. The decoder can obtain the second side information by using the bitstream. Assuming that the residual signal carried in the bitstream includes a residual sub-signal on a first sound channel, the decoder can perform signal compensation based on the second side information to obtain the residual sub-signal on the second sound channel. The residual sub-signal on the third sound channel is different from the residual sub-signal on the first sound channel. When the residual sub-signal on the third sound channel is obtained based on the second side information and the residual sub-signal on the first sound channel, the residual sub-signal on the first sound channel needs to be updated to obtain an updated residual sub-signal on the first sound channel. For example, the decoder generates a residual sub-signal on a third sound channel and an updated residual sub-signal on the first sound channel by using the residual sub-signal on the first sound channel and the second side information. Thus, during signal reconstruction, the residual sub-signal on the third sound channel, the updated residual sub-signal on the first sound channel, the attribute information of the target virtual speaker and the virtual speaker signal can be used to improve the quality of the decoded signal of the decoder.
[0056] According to a third aspect, an embodiment of the present application provides an audio encoding device, comprising: an acquisition module configured to select a first target virtual speaker from a preset set of virtual speakers based on a first scene audio signal; a signal generation module configured to generate virtual speaker signals based on a first scene audio signal and attribute information of a first target virtual speaker; The signal generation module is configured to obtain a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal; a signal generation module configured to generate a residual signal based on the first scene audio signal and the second scene audio signal; an encoding module configured to encode the virtual speaker signals and the residual signal to obtain a bitstream; Includes.
[0057] In a possible implementation, the acquisition module is configured to acquire a dominant sound field component from a first scene audio signal based on the virtual speaker set, and to select a first target virtual speaker from the virtual speaker set based on the dominant sound field component.
[0058] In a possible implementation, the acquisition module is configured to select a Higher Order Ambisonics (HOA) coefficient for the dominant sound field component from a HOA coefficient set based on the dominant sound field component, where the HOA coefficients in the HOA coefficient set have a one-to-one correspondence with the virtual speakers in the virtual speaker set, and to determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient for the dominant sound field component as a first target virtual speaker.
[0059] In a possible implementation, the acquisition module is configured to acquire configuration parameters of a first target virtual speaker based on the main sound field components, generate HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker, and determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficients for the first target virtual speaker as the first target virtual speaker.
[0060] In a possible implementation, the acquisition module is configured to determine configuration parameters of multiple virtual speakers in the virtual speaker set based on configuration information of the audio encoder, and to select configuration parameters of a first target virtual speaker from the configuration parameters of the multiple virtual speakers based on a main sound field component.
[0061] In a possible implementation, the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker.
[0062] The acquisition module is configured to determine HOA coefficients for the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
[0063] In a possible implementation, the encoding module is further configured to encode the attribute information of the first target virtual speaker and write the encoded information into the bitstream.
[0064] In a possible implementation, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes HOA coefficients for the first target virtual speaker.
[0065] The signal generation module is configured to perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal.
[0066] In a possible implementation, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker.
[0067] The signal generation module is configured to obtain HOA coefficients for the first target virtual speaker based on position information of the first target virtual speaker, and perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal.
[0068] In a possible implementation, the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal.
[0069] The signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker.
[0070] The encoding module is configured to encode the second virtual speaker signal and write the encoded signal to a bitstream.
[0071] Correspondingly, the signal generation module is configured to obtain a second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker, and the second virtual speaker signal.
[0072] In a possible implementation, the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0073] Correspondingly, the encoding module is configured to encode the aligned second virtual speaker signal.
[0074] Correspondingly, the encoding module is configured to encode the aligned first virtual speaker signal and the residual signal.
[0075] In a possible implementation, the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal.
[0076] The signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker.
[0077] Correspondingly, the encoding module is configured to obtain a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal, where the first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0078] Correspondingly, the encoding module is configured to encode the downmixed signal, the first side information and the residual signal.
[0079] In a possible implementation, the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0080] The encoding module is configured to obtain a downmixed signal and first side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0081] Correspondingly, the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0082] In a possible implementation, the acquisition module is configured to determine whether a target virtual speaker other than the first target virtual speaker needs to be acquired based on the coding rate and / or signal class information of the first scene audio signal before selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal, and to select the second target virtual speaker from the virtual speaker set based on the first scene audio signal only if a target virtual speaker other than the first target virtual speaker needs to be acquired.
[0083] In a possible realization, the residual signal comprises residual sub-signals on at least two sound channels.
[0084] The signal generation module is configured to determine, from the residual sub-signals on the at least two sound channels, a residual sub-signal that needs to be encoded and that is on at least one sound channel based on configuration information of the audio encoder and / or signal class information of the first scene audio signal.
[0085] Correspondingly, the encoding module is configured to encode the first virtual speaker signal and the residual sub-signal that needs to be encoded and that resides on at least one sound channel.
[0086] In a possible implementation, the acquisition module is configured to acquire second side information when the residual sub-signals on the at least two sound channels include a residual sub-signal that does not need to be encoded and is on at least one sound channel, the second side information indicating a relationship between the residual sub-signal that needs to be encoded and is on at least one sound channel and the residual sub-signal that does not need to be encoded and is on at least one sound channel.
[0087] Correspondingly, the encoding module is configured to write the second side information to the bitstream.
[0088] In a third aspect of this application, the configuration module of the audio encoding device may further perform the steps described in the first aspect and possible implementation manners. For details, please refer to the descriptions in the first aspect and possible implementation manners.
[0089] According to a fourth aspect, an embodiment of the present application further provides an audio decoding device, comprising: a receiving module configured to receive a bitstream; a decoding module configured to decode the bitstream to obtain virtual speaker signals and a residual signal; a reconstruction module configured to obtain a reconstructed scene audio signal based on attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal; Includes.
[0090] In a possible implementation, the decoding module is further configured to decode the bitstream to obtain attribute information of the target virtual speaker.
[0091] In a possible implementation, the attribute information of the target virtual speaker includes Higher Order Ambisonics (HOA) coefficients for the target virtual speaker.
[0092] The reconstruction module is configured to perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and to adjust the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal.
[0093] In a possible implementation, the attribute information of the target virtual speaker includes position information of the target virtual speaker.
[0094] The reconstruction module is configured to determine HOA coefficients for the target virtual speaker based on position information of the target virtual speaker, perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and adjust the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal.
[0095] In a possible implementation, the virtual speaker signal is a downmixed signal obtained by downmixing the first virtual speaker signal and the second virtual speaker signal. The apparatus further includes a first signal compensation module.
[0096] The decoding module is configured to decode the bitstream to obtain first side information, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0097] The first signal compensation module is configured to obtain a first virtual speaker signal and a second virtual speaker signal based on the first side information and the downmixed signal.
[0098] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal and the second virtual speaker signal.
[0099] In a possible implementation, the residual signal comprises a residual sub-signal on the first sound channel.The apparatus further comprises a second signal compensation module.
[0100] The decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on the second sound channel.
[0101] The second signal compensation module is configured to obtain a residual sub-signal on the second sound channel based on the second side information and the residual sub-signal on the first sound channel.
[0102] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel, and the virtual speaker signal.
[0103] In a possible implementation, the residual signal comprises a residual sub-signal on the first sound channel.The apparatus further comprises a third signal compensation module.
[0104] The decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel.
[0105] The third signal compensation module is configured to obtain a residual sub-signal on the third sound channel and an updated residual sub-signal on the first sound channel based on the second side information and the residual sub-signal on the first sound channel.
[0106] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel and the virtual speaker signal.
[0107] In the fourth aspect of this application, the configuration module of the audio decoding device may further perform the steps described in the second aspect and possible implementation manner. For details, please refer to the description in the second aspect and possible implementation manner.
[0108] According to a fifth aspect, an embodiment of the present application provides a computer readable storage medium storing instructions which, when executed on a computer, enable the computer to perform a method according to the first or second aspect.
[0109] According to a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions which, when executed on a computer, enable the computer to perform a method according to the first or second aspect.
[0110] According to a seventh aspect, an embodiment of the present application provides a communication device. The communication device may include an entity such as a terminal device or a chip. The communication device includes a processor. Optionally, the communication device further includes a memory. The memory is configured to store instructions. The processor is configured to execute the instructions in the memory, thereby causing the communication device to perform a method according to any one of the first or second aspects.
[0111] According to an eighth aspect, the present application provides a chip system. The chip system includes a processor and is configured to support an audio encoding device or an audio decoding device in implementing the functions in the above aspects, e.g., transmit or process data and / or information in the above manner. In a possible design, the chip system further includes a memory, the memory configured to store program instructions and data required by the audio encoding device or audio decoding device. The chip system may include a chip, or may include a chip and other discrete devices.
[0112] According to a ninth aspect, the application provides a computer-readable storage medium, comprising a bitstream generated in a method according to any one of the first aspects. [Brief description of the drawings]
[0113] [Figure 1] FIG. 1 is a schematic diagram of a configuration structure of an audio processing system according to an embodiment of the present application. [Figure 2a] 1 is a schematic diagram of a terminal device in which an audio encoder and an audio decoder are used according to an embodiment of the present application; [Figure 2b] 1 is a schematic diagram of a wireless device or core network device in which an audio encoder is used according to an embodiment of the present application; [Figure 2c] 1 is a schematic diagram of a wireless device or core network device in which an audio decoder is used according to an embodiment of the present application; [Figure 3a] 1 is a schematic diagram of a terminal device in which a multi-channel encoder and a multi-channel decoder are used according to an embodiment of the present application; [Figure 3b] 1 is a schematic diagram of a wireless device or core network device in which a multi-channel audio encoder is used according to an embodiment of the present application; [Figure 3c] 1 is a schematic diagram of a wireless device or core network device in which a multi-channel audio decoder is used according to an embodiment of the present application; [Figure 4] 2 is a schematic flow chart of the interaction between an audio encoding device and an audio decoding device according to an embodiment of the present application; [Diagram 5] FIG. 2 is a schematic diagram of the structure of an encoder according to an embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram of a decoder structure according to an embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of the structure of another encoder according to an embodiment of the present application; [Figure 8] FIG. 1 is a schematic diagram of virtual speakers approximately evenly distributed on a sphere according to an embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of the structure of another encoder according to an embodiment of the present application; [Figure 10] FIG. 1 is a schematic diagram of the configuration structure of an audio encoding device according to an embodiment of this application; [Figure 11] FIG. 2 is a schematic diagram of the configuration structure of an audio decoding device according to an embodiment of the present application; [Figure 12] FIG. 2 is a schematic diagram of the configuration structure of another audio encoding device according to an embodiment of this application; [Figure 13] FIG. 2 is a schematic diagram of the configuration structure of another audio decoding device according to an embodiment of this application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0114] SUMMARY OF THE PRESENT APPLICATION The embodiments of this application provide an audio encoding and decoding method and apparatus for reducing the amount of data to be encoded and decoded and improving the encoding and decoding efficiency.
[0115] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings.
[0116] In the specification, claims and accompanying drawings of this application, the terms "first", "second", etc. are intended to distinguish between similar objects, but do not necessarily indicate a particular order or sequence. It should be understood that the terms used in this manner are interchangeable in appropriate circumstances, and are merely a distinguishing scheme used in describing objects having the same attributes in the embodiments of this application. Furthermore, the terms "include", "contain" and any other variations are meant to cover a non-exclusive inclusion, whereby a process, method, system, product or device that includes a set of units is not necessarily limited to those units, but may include other units that are not expressly listed or inherent in such process, method, system, product or device.
[0117] The technical solutions in the embodiments of this application may be applied to various audio processing systems. Figure 1 is a schematic diagram of the configuration structure of an audio processing system according to an embodiment of this application. The audio processing system 100 may include an audio encoding device 101 and an audio decoding device 102. The audio encoding device 101 may be configured to generate a bitstream, and then the audio encoded bitstream may be transmitted to the audio decoding device 102 through an audio transmission channel. The audio decoding device 102 may receive the bitstream and then perform an audio decoding function of the audio decoding device 102 to finally obtain a reconstructed signal.
[0118] In an embodiment of this application, the audio encoding device may be used in various terminal devices that require audio communication, as well as wireless devices and core network devices that require transcoding. For example, the audio encoding device may be an audio encoder of the above terminal device, wireless device, or core network device. Similarly, the audio decoding device may be used in various terminal devices that require audio communication, as well as wireless devices and core network devices that require transcoding. For example, the audio decoding device may be an audio decoder of the above terminal device, wireless device, or core network device. For example, the audio encoder may include a radio access network, a media gateway of a core network, a transcoding device, a media resource server, a mobile terminal, and a fixed network terminal. Furthermore, the audio encoder may be an audio codec applied to a virtual reality (VR) streaming media service.
[0119] In this embodiment of this application, an audio encoding and decoding module applicable to virtual reality streaming media service is used as an example. The end-to-end audio signal processing procedure includes: After the audio signal A passes through the acquisition module, perform a preprocessing operation on the audio signal A, where the preprocessing operation includes filtering out the low-frequency part of the signal, and may also be to extract directional information from the signal by using 20Hz or 50Hz as the boundary point, then perform audio encoding and encapsulation, and then deliver the encapsulated signal to a decoder, where the decoder first performs decapsulation, then performs audio decoding, performs binaural rendering on the decoded signal, and maps the rendered signal to the listener's headphones, where the headset can be an independent headset or a headset on a glasses device.
[0120] FIG. 2a is a schematic diagram of a terminal device in which an audio encoder and an audio decoder are used according to an embodiment of this application. Each terminal device may include an audio encoder, a channel encoder, an audio decoder, and a channel decoder. Specifically, the channel encoder is configured to perform channel encoding on the audio signal, and the channel decoder is configured to perform channel decoding on the audio signal. For example, the first terminal device 20 may include a first audio encoder 201, a first channel encoder 202, a first audio decoder 203, and a first channel decoder 204. The second terminal device 21 may include a second audio decoder 211, a second channel decoder 212, a second audio encoder 213, and a second channel encoder 214. A first terminal device 20 is connected to a wireless or wired first network communication device 22, which is connected to a wireless or wired second network communication device 23 through a digital channel, and a second terminal device 21 is connected to the wireless or wired second network communication device 23. The wireless or wired network communication device may generally be a signal transmission device, for example a communication base station or a data switching device.
[0121] In audio communication, a terminal device acting as a transmitter first performs audio acquisition, performs audio encoding on the acquired audio signal, then performs channel encoding, and transmits the encoded audio signal on a digital channel by using a wireless network or a core network. A terminal device acting as a receiver performs channel decoding based on the received signal to obtain a bit stream, and then restores the audio signal through audio decoding. A terminal device acting as a receiver performs audio playback.
[0122] Fig. 2b is a schematic diagram of a wireless device or core network device in which an audio encoder is used according to an embodiment of this application. The wireless device or core network device 25 includes a channel decoder 251, an other audio decoder 252, an audio encoder 253 provided in this embodiment of this application, and a channel encoder 254. The other audio decoder 252 is an audio decoder other than the audio decoder. In the wireless device or core network device 25, the channel decoder 252 first performs channel decoding on the signal entering the device, then the other audio decoder 252 performs audio decoding, then the audio encoder 253 provided in the embodiment of this application performs audio encoding, and finally the channel encoder 254 performs channel encoding on the audio signal. After the channel encoding is completed, the channel-encoded audio signal is transmitted. The other audio decoder 252 performs audio decoding on the bitstream decoded by the channel decoder 251.
[0123] Fig. 2c is a schematic diagram of a wireless device or core network device in which an audio decoder is used according to an embodiment of this application. The wireless device or core network device 25 includes a channel decoder 251, an audio decoder 255 provided in this embodiment of this application, another audio encoder 256, and a channel encoder 254. The other audio encoder 256 is an audio encoder other than the audio encoder. In the wireless device or core network device 25, the channel decoder 251 first performs channel decoding on the signal entering the device, then the audio decoder 255 decodes the received audio encoded bitstream, then the other audio encoder 256 performs audio encoding, and finally the channel encoder 254 performs channel encoding on the audio signal. After the channel encoding is completed, the channel encoded audio signal is transmitted. In the wireless device or core network device, if transcoding needs to be realized, the corresponding audio encoding and decoding process needs to be performed. The wireless device is a radio frequency related device in communication, and the core network device is a core network related device in communication.
[0124] In some embodiments of this application, the audio encoding device may be used in various terminal devices that require audio communication, as well as wireless devices and core network devices that require transcoding. For example, the audio encoding device may be a multi-channel encoder of the above terminal device, wireless device, or core network device. Similarly, the audio decoding device may be used in various terminal devices that require audio communication, as well as wireless devices and core network devices that require transcoding. For example, the audio decoding device may be a multi-channel decoder of the above terminal device, wireless device, or core network device.
[0125] FIG. 3a is a schematic diagram of a terminal device in which a multi-channel encoder and a multi-channel decoder are used according to an embodiment of this application. Each terminal device may include a multi-channel encoder, a channel encoder, a multi-channel decoder, and a channel decoder. The multi-channel encoder may perform an audio encoding method provided in an embodiment of this application, and the multi-channel decoder may perform an audio decoding method provided in an embodiment of this application. Specifically, the channel encoder is used to perform channel encoding on the multi-channel signal, and the channel decoder is used to perform channel decoding on the multi-channel signal. For example, the first terminal device 30 may include a first multi-channel encoder 301, a first channel encoder 302, a first multi-channel decoder 303, and a first channel decoder 304. The second terminal device 31 may include a second multi-channel decoder 311, a second channel decoder 312, a second multi-channel encoder 313, and a second channel encoder 314. The first terminal device 30 is connected to a wireless or wired first network communication device 32, the first network communication device 32 is connected to a wireless or wired second network communication device 33 through a digital channel, and the second terminal device 31 is connected to the wireless or wired second network communication device 33. The wireless or wired network communication device may generally be a signal transmission device, for example, a communication base station or a data exchange device. In audio communication, the terminal device acting as a transmitter performs multi-channel encoding on the acquired multi-channel signal, then performs channel encoding, and transmits the encoded multi-channel signal on a digital channel by using a wireless network or a core network. The terminal device acting as a receiver performs channel decoding based on the received signal to obtain the encoded multi-channel signal into a bitstream, and then restores the multi-channel signal through multi-channel decoding. The terminal device acting as a receiver performs reproduction.
[0126] Figure 3b is a schematic diagram of a wireless device or core network device in which a multi-channel encoder is used according to an embodiment of this application. The wireless device or core network device 35 includes a channel decoder 351, an other audio decoder 352, a multi-channel encoder 353, and a channel encoder 354. Figure 3b is similar to Figure 2b, and the details will not be described again here.
[0127] Figure 3c is a schematic diagram of a wireless device or core network device in which a multi-channel decoder is used according to an embodiment of this application. The wireless device or core network device 35 includes a channel decoder 351, a multi-channel decoder 355, an other audio encoder 356, and a channel encoder 354. Figure 3c is similar to Figure 2c, and the details will not be described again here.
[0128] The audio encoding process may be part of a multi-channel encoder, and the audio decoding process may be part of a multi-channel decoder. For example, performing multi-channel encoding on an acquired multi-channel signal may be to process the acquired multi-channel signal to obtain an audio signal, and then encode the acquired audio signal according to the method provided in the embodiment of this application. The decoder decodes the multi-channel signal based on the encoded bitstream to obtain the audio signal, and restores the multi-channel signal after upmixing. Therefore, the embodiment of this application may also be applied to the multi-channel encoder and multi-channel decoder in a terminal device, a wireless device, or a core network device. In a wireless device or a core network device, if transcoding needs to be realized, corresponding multi-channel encoding and decoding processes need to be performed.
[0129] The audio encoding and decoding method provided in the embodiment of this application may include an audio encoding method and an audio decoding method. The audio encoding method is performed by an audio encoding device, and the audio decoding method is performed by an audio decoding device. The audio encoding device and the audio decoding device may communicate with each other. Based on the above system architecture, the audio encoding device and the audio decoding device, the audio encoding method and the audio decoding method provided in the embodiment of this application are described below. FIG. 4 is a schematic flowchart of the interaction between the audio encoding device and the audio decoding device according to the embodiment of this application. The following steps 401-403 may be performed by the audio encoding device (referred to as an encoder), and the following steps 411-413 may be performed by the audio decoding device (referred to as a decoder). The following processes are mainly included:
[0130] 401: Select a first target virtual speaker from a preset virtual speaker set based on a first scene audio signal.
[0131] The encoder acquires a first scene audio signal, which is an audio signal acquired from a sound field at a microphone position in a space, and may also be referred to as an audio signal in an original scene. For example, the first scene audio signal may be an audio signal acquired by using a higher order ambisonics (HOA) technique.
[0132] In this embodiment of the application, a virtual speaker set can be pre-configured for the encoder. The virtual speaker set may include multiple virtual speakers. During actual playback, the scene audio signal may be played back by using a headset, or may be played back by using multiple speakers arranged in a room. When speakers are used for playback, the basic method is to overlap the signals of multiple speakers, so that the sound field at a point in the space (the position of the listener) is as close as possible to the original sound field on the standard when the scene audio signal is recorded. In this embodiment of the application, the virtual speakers are used to calculate a playback signal corresponding to the scene audio signal, and the playback signal is used as a transmission signal to generate a compressed signal. The virtual speakers virtually represent the speakers that exist in the sound field in the space, and the virtual speakers can realize the playback of the scene audio signal in the encoder.
[0133] In an embodiment of this application, the virtual speaker set includes a plurality of virtual speakers, each of the plurality of virtual speakers corresponds to a virtual speaker configuration parameter (abbreviated as configuration parameter). The virtual speaker configuration parameter includes, but is not limited to, information such as the number of virtual speakers, the HOA order of the virtual speakers, and the position coordinates of the virtual speakers. After obtaining the virtual speaker set, the encoder selects a first target virtual speaker from the pre-configured virtual speaker set based on the first scene audio signal. The first scene audio signal is an audio signal to be encoded in the original scene, and the first target virtual speaker may be a virtual speaker in the virtual speaker set. For example, the first target virtual speaker can be selected from the pre-configured virtual speaker set according to a pre-configured target virtual speaker selection policy. The target virtual speaker selection policy is a policy for selecting a target virtual speaker that matches the first scene audio signal from the virtual speaker set, for example, a policy for selecting the first target virtual speaker based on sound field components acquired by each virtual speaker from the first scene audio signal. In another example, the first target virtual speaker is selected from the first scene audio signal based on position information of each virtual speaker. The first target virtual speaker is a virtual speaker that is in the virtual speaker set and is used to reproduce the first scene audio signal, i.e., the encoder can select a target virtual speaker from the virtual speaker set that can reproduce the first scene audio signal.
[0134] In this embodiment of the application, after the first target virtual speaker is selected in 401, a subsequent processing process for the first target virtual speaker, for example, the subsequent steps 402 to 405, may be performed. This is not limited. In the embodiment of the application, not only the first target virtual speaker can be selected, but also more target virtual speakers can be selected. For example, a second target virtual speaker may be selected. For the second target virtual speaker, a process similar to the subsequent steps 402 to 405 needs to be performed. For details, please refer to the description in the following embodiments.
[0135] In an embodiment of this application, after the encoder selects the first target virtual speaker, the encoder can further obtain attribute information of the first target virtual speaker. The attribute information of the first target virtual speaker includes information related to the attribute of the first target virtual speaker. The attribute information may be set depending on a specific application scenario. For example, the attribute information of the first target virtual speaker includes position information of the first target virtual speaker or HOA coefficient for the first target virtual speaker. The position information of the first target virtual speaker may be information about the distribution position of the first target virtual speaker in the space, or may be information about the position of the first target virtual speaker in the virtual speaker set relative to other virtual speakers. This is not specifically limited. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient, and the HOA coefficient may also be called an Ambisonic coefficient. The HOA coefficient for a virtual speaker is described below.
[0136] For example, the HOA order may be one of orders 2 to 10. When the audio signal is recorded, the signal sampling rate is 48 to 192 kilohertz (kHz), and the sampling depth is 16 or 24 bits (bit). The HOA signal may be generated based on the scene audio signal and the HOA coefficients for the virtual speakers. The HOA signal features information about a space having a sound field, and the HOA signal is information describing a particular accuracy of the sound field signal at a point in the space. Therefore, it can be considered that other representation formats are used to describe the sound field signal of a position point. In this description method, the signal of the position point in the space can be described with the same accuracy by using a smaller amount of data, thereby achieving the purpose of signal compression. The sound field in the space can be decomposed into a superposition of multiple plane waves. Therefore, theoretically, the sound field represented by the HOA signal can be represented by using a superposition of multiple plane waves, and each plane wave is represented by using an audio signal and a direction vector on one sound channel. The superposed plane wave representation can accurately represent the original sound field by using fewer sound channels, thus achieving the purpose of signal compression.
[0137] In some embodiments of this application, in addition to performing 401 by the encoder, the audio encoding method provided in this embodiment of this application further includes the following steps: A1: Obtain the main sound field components from the first scene audio signal based on a virtual speaker set.
[0138] The dominant sound field component in A1 may also be referred to as the first dominant sound field component.
[0139] When A1 is executed, selecting a first target virtual speaker from a preset virtual speaker set based on a first scene audio signal in 401 includes: B1: Select a first target virtual speaker from the virtual speaker set based on the dominant sound field components.
[0140] The encoder obtains a virtual speaker set, and the encoder performs signal decomposition on the first scene audio signal by using the virtual speaker set to obtain a dominant sound field component corresponding to the first scene audio signal. The dominant sound field component represents an audio signal corresponding to a dominant sound field in the first scene audio signal. For example, the virtual speaker set includes a plurality of virtual speakers, and the plurality of sound field components may be obtained from the first scene audio signal based on the plurality of virtual speakers, i.e., each virtual speaker may obtain one sound field component from the first scene audio signal, and then the dominant sound field component is selected from the plurality of sound field components. For example, the dominant sound field component may be one or more sound field components having a maximum value among the plurality of sound field components, and the dominant sound field component may alternatively be one or more sound field components having a dominant direction among the plurality of sound field components. Each virtual speaker in the virtual speaker set corresponds to a sound field component, and the first target virtual speaker is selected from the virtual speaker set based on the dominant sound field component. For example, the virtual speaker corresponding to the dominant sound field component is the first target virtual speaker selected by the encoder. In this embodiment of the application, the encoder can select the first target virtual speaker based on the main sound field components to solve the problem that the encoder needs to determine the first target virtual speaker.
[0141] In this embodiment of the application, the encoder can select the first target virtual speaker in multiple ways. For example, the encoder may pre-set a virtual speaker at a specified position as the first target virtual speaker, that is, based on the position of each virtual speaker in the virtual speaker set, the encoder may select a virtual speaker that fills the specified position as the first target virtual speaker. This is not limited.
[0142] In some embodiments of this application, selecting a first target virtual speaker from the virtual speaker set based on the main sound field component in B1 includes: selecting a higher order Ambisonics (HOA) coefficient for the dominant sound field component from a HOA coefficient set based on the dominant sound field component, where the HOA coefficients in the HOA coefficient set have a one-to-one correspondence with the virtual speakers in the virtual speaker set; A virtual speaker that corresponds to the HOA coefficient for the main sound field component among the set of virtual speakers is determined as a first target virtual speaker.
[0143] The encoder pre-configures the HOA coefficient set based on the virtual speaker set, and there is a one-to-one correspondence between the HOA coefficients in the HOA coefficient set and the virtual speakers in the virtual speaker set. Therefore, after the HOA coefficients are selected based on the main sound field components, the virtual speaker set is searched for a target virtual speaker corresponding to the HOA coefficient for the main sound field components based on the one-to-one correspondence, and the found target virtual speaker is the first target virtual speaker. This solves the problem that the encoder needs to determine the first target virtual speaker. For example, the HOA coefficient set includes HOA coefficient 1, HOA coefficient 2, and HOA coefficient 3, and the virtual speaker set includes virtual speaker 1, virtual speaker 2, and virtual speaker 3. The HOA coefficients in the HOA coefficient set have a one-to-one correspondence with the virtual speakers in the virtual speaker set. For example, HOA coefficient 1 corresponds to virtual speaker 1, HOA coefficient 2 corresponds to virtual speaker 2, and HOA coefficient 3 corresponds to virtual speaker 3. If HOA coefficient 3 is selected from the HOA coefficient set based on the main sound field components, it can be determined that the first target virtual speaker is virtual speaker 3.
[0144] In some embodiments of this application, selecting a first target virtual speaker from the virtual speaker set based on the main sound field component in B1 further includes: C1: Obtain configuration parameters of a first target virtual speaker based on the main sound field components. C2: Generate HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker. C3: A virtual speaker that corresponds to the HOA coefficient for the first target virtual speaker among the virtual speaker set is determined as the first target virtual speaker.
[0145] After obtaining the main sound field component, the encoder can determine the configuration parameters of the first target virtual speaker based on the main sound field component. For example, the main sound field component may be one or more sound field components having the largest value among the multiple sound field components, or the main sound field component may be one or more sound field components having a dominant direction among the multiple sound field components. The main sound field component can be used to determine a first target virtual speaker that matches the first scene audio signal, and corresponding attribute information is configured for the first target virtual speaker, and the HOA coefficient for the first target virtual speaker can be generated based on the setting configuration parameters of the first target virtual speaker. The process of generating the HOA coefficient can be realized by using an HOA algorithm, and the details will not be described again here. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient. Thus, the first target virtual speaker is selected from the virtual speaker set based on the HOA coefficient for each virtual speaker, which can solve the problem that the encoder needs to determine the first target virtual speaker.
[0146] In some embodiments of the present application, obtaining configuration parameters of the first target virtual speaker based on the main sound field components in C1 includes: determining configuration parameters for a plurality of virtual speakers in the virtual speaker set based on configuration information of the audio encoder; Configuration parameters of a first target virtual speaker are selected from the configuration parameters of the plurality of virtual speakers based on the main sound field components.
[0147] The audio encoder may pre-store the configuration parameters of the multiple virtual speakers, and the configuration parameters of each virtual speaker may be determined by using the configuration information of the audio encoder. The audio encoder refers to the above encoder, and the configuration information of the audio encoder includes, but is not limited to, HOA order and encoding bit rate. The configuration information of the audio encoder may be used to determine the number of virtual speakers and the position parameters of each virtual speaker, so as to solve the problem that the encoder needs to determine the configuration parameters of the virtual speakers. For example, when the encoding bit rate is low, a small number of virtual speakers may be configured, or when the encoding bit rate is high, a large number of virtual speakers may be configured. In another example, the HOA order of the virtual speakers may be equal to the HOA order of the audio encoder. In this embodiment of the present application, in addition to determining the configuration parameters of the multiple virtual speakers by using the configuration information of the audio encoder, the configuration parameters of the multiple virtual speakers can be further determined based on user-defined information. For example, the user can define the positions, HOA order, and number of virtual speakers of the virtual speakers. This is not limited.
[0148] The encoder obtains configuration parameters of multiple virtual speakers from the virtual speaker set. For each virtual speaker, there is a corresponding virtual speaker configuration parameter, and each virtual speaker configuration parameter includes, but is not limited to, information such as the HOA order of the virtual speaker and the position coordinate of the virtual speaker. The configuration parameters of each virtual speaker can be used to generate HOA coefficients for the virtual speaker. The process of generating HOA coefficients can be realized by using an HOA algorithm, and the details will not be described again here. An HOA coefficient is generated for each virtual speaker in the virtual speaker set, and the HOA coefficients respectively configured for all virtual speakers in the virtual speaker set form an HOA coefficient set, so as to solve the problem that the encoder needs to determine the HOA coefficient for each virtual speaker in the virtual speaker set.
[0149] In some embodiments of this application, the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker.
[0150] Generating HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker in C2 includes: An HOA coefficient for the first target virtual speaker is determined based on the position information and the HOA order information of the first target virtual speaker.
[0151] The configuration parameters of each virtual speaker in the virtual speaker set may include the position information of the virtual speaker and the HOA order information of the virtual speaker. Similarly, the configuration parameters of the first target virtual speaker include the position information and the HOA order information of the first target virtual speaker. For example, the position information of each virtual speaker in the virtual speaker set can be determined according to a local equidistant virtual speaker space distribution manner. The local equidistant virtual speaker space distribution manner means that the multiple virtual speakers are distributed in space in a local equidistant manner. For example, the local equidistant manner may include an even distribution or an uneven distribution. Both the position information and the HOA order information of each virtual speaker can be used to generate HOA coefficients for the virtual speakers. The process of generating HOA coefficients can be realized by using an HOA algorithm. This solves the problem that the encoder needs to determine the HOA coefficients for the first target virtual speaker.
[0152] Furthermore, in this embodiment of the present application, a group of HOA coefficients is generated for each virtual speaker in the virtual speaker set, and the groups of HOA coefficients form the above-mentioned HOA coefficient set. The HOA coefficients respectively configured for all virtual speakers in the virtual speaker set form an HOA coefficient set, solving the problem that the encoder needs to determine the HOA coefficient for each virtual speaker in the virtual speaker set.
[0153] 402: Generate a first virtual speaker signal based on a first scene audio signal and attribute information of a first target virtual speaker.
[0154] After the encoder obtains the first scene audio signal and the attribute information of the first target virtual speaker, the encoder may reproduce the first scene audio signal, and the encoder generates the first virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker. The first virtual speaker signal is a reproduction signal of the first scene audio signal. The attribute information of the first target virtual speaker describes information related to the attribute of the first target virtual speaker. The first target virtual speaker is a virtual speaker selected by the encoder and capable of reproducing the first scene audio signal. Thus, the first scene audio signal is reproduced by using the attribute information of the first target virtual speaker to obtain the first virtual speaker signal. The data amount of the first virtual speaker signal is not related to the number of sound channels of the first scene audio signal, and the data amount of the first virtual speaker signal is related to the first target virtual speaker. For example, in this embodiment of the application, compared with the audio signal of the first scene, the first virtual speaker signal is represented by using fewer sound channels. For example, the first scene audio signal is a third-order HOA signal, and the HOA signal has 16 sound channels. In this embodiment of the application, the 16 sound channels can be compressed to four sound channels. The four sound channels include two sound channels occupied by the virtual speaker signals generated by the encoder and two sound channels occupied by the residual signals. For example, the virtual speaker signals generated by the encoder may include a first virtual speaker signal and a second virtual speaker signal, and the number of sound channels of the virtual speaker signals generated by the encoder is not related to the number of sound channels of the first scene audio signal. It can be seen from the description in the following steps that the bitstream may carry the virtual speaker signals on two sound channels and carry the residual signals on two sound channels.Correspondingly, the decoder receives the bitstream and decodes the bitstream to obtain virtual speaker signals on two sound channels and residual signals on two sound channels. The decoder can reconstruct scene audio signals on 16 sound channels by using the virtual speaker signals on the two sound channels and the residual signals on the two sound channels. This ensures that the reconstructed scene audio signals have the same subjective and objective quality when compared with the audio signals in the original scene.
[0155] It may be appreciated that the above steps 401 and 402 may be specifically implemented by using a spatial encoder, for example a moving picture experts group (MPEG) spatial encoder.
[0156] In some embodiments of this application, the first scene audio signal may include an HOA signal to be encoded, and the attribute information of the first target virtual speaker includes an HOA coefficient for the first target virtual speaker.
[0157] Generating a first virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker at 402 includes: A linear combination is performed on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal.
[0158] An example is used in which the first scene audio signal is a HOA signal to be encoded. First, the encoder determines a HOA coefficient for a first target virtual speaker. For example, the encoder selects a HOA coefficient from a HOA coefficient set based on a main sound field component, and the selected HOA coefficient is a HOA coefficient for the first target virtual speaker. After the encoder obtains the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker, the first virtual speaker signal can be generated based on the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker. The HOA signal to be encoded can be obtained by performing a linear combination by using the HOA coefficient for the first target virtual speaker, and the solution of the first virtual speaker signal can be converted into the solution of the linear combination.
[0159] For example, the attribute information of the first target virtual speaker may include a HOA coefficient for the first target virtual speaker. The encoder can obtain the HOA coefficient for the first target virtual speaker by decoding the attribute information of the first target virtual speaker. The encoder performs a linear combination on the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker. In other words, the encoder combines the HOA signal to be encoded and the HOA coefficient for the first target virtual speaker together to obtain a linear combination matrix. Then, the encoder can obtain an optimal solution of the linear combination matrix, and the obtained optimal solution is the first virtual speaker signal. The optimal solution is related to an algorithm used to solve the linear combination matrix. This embodiment of the application solves the problem that the encoder needs to generate the first virtual speaker signal.
[0160] In some embodiments of this application, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker.
[0161] Generating a first virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker at 402 includes: Obtaining HOA coefficients for the first target virtual speaker based on position information of the first target virtual speaker; A linear combination is performed on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal.
[0162] The attribute information of the first target virtual speaker may include position information of the first target virtual speaker. The encoder pre-stores HOA coefficients for each virtual speaker in the virtual speaker set. The encoder further stores position information of each virtual speaker. There is a correspondence between the position information of the virtual speakers and the HOA coefficients for the virtual speakers. Thus, the encoder can determine the HOA coefficient for the first target virtual speaker based on the position information of the first target virtual speaker. When the attribute information includes the HOA coefficient, the encoder can obtain the HOA coefficient for the first target virtual speaker by decoding the attribute information of the first target virtual speaker.
[0163] After the encoder obtains the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker, the encoder performs a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker. In other words, the encoder combines the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a linear combination matrix. Then, the encoder can obtain an optimal solution of the linear combination matrix, and the obtained optimal solution is the first virtual speaker signal.
[0164] For example, the HOA coefficients for the first virtual speaker are represented by matrix A, and the HOA signal to be encoded can be obtained through linear combination by using matrix A. The theoretical optimal solution w, i.e., the first virtual speaker signal, can be obtained by using the least squares method. For example, the following calculation formula may be used: w=A -1 X Here, A -1 is the inverse matrix of matrix A, the size of matrix A is (M×C), C is the number of first target virtual speakers, M is the number of sound channels of the Nth order HOA coefficient, and a represents the HOA coefficient for the first target virtual speaker. For example,
number
[0165] X represents the HOA signal to be encoded, the size of matrix X is (M×L), M is the number of sound channels of the N-th order HOA coefficients, L is the number of sampling points, and x represents the coefficients for the HOA signal to be encoded. For example,
number
[0166] In this embodiment of the application, in order for the decoder to accurately obtain the first virtual speaker signal from the encoder, the encoder may further perform the following steps 403 and 404 to generate a residual signal.
[0167] 403: Obtain a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal.
[0168] The encoder can obtain attribute information of a first target virtual speaker, which may be a virtual speaker in a virtual speaker set and used to reproduce a first virtual speaker signal in a decoder. The attribute information of the first target virtual speaker may include position information of the first target virtual speaker and an HOA coefficient for the first target virtual speaker. After the encoder obtains the first virtual speaker signal, the encoder can perform signal reconstruction based on the attribute information of the first target virtual speaker, and obtain a second scene audio signal through the signal reconstruction.
[0169] In some embodiments of the present application, obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal in 403 includes: determining HOA coefficients for a first target virtual speaker; A synthesis process is performed on the first virtual speaker signal and the HOA coefficients for the first target virtual speaker.
[0170] The encoder first determines the HOA coefficient for the first target virtual speaker. For example, the encoder may pre-store the HOA coefficient for the first target virtual speaker. After obtaining the first virtual speaker signal and the HOA coefficient for the first target virtual speaker, the encoder can generate a reconstructed scene audio signal based on the first virtual speaker signal and the HOA coefficient for the first target virtual speaker.
[0171] For example, the HOA coefficients for the first target virtual speaker are represented by a matrix A, the size of which is (M×C), where C is the number of first target virtual speakers, and M is the number of sound channels of the N-th order HOA coefficients. The first virtual speaker signal is represented by a matrix W, the size of which is (C×L), where L is the number of signal sampling points. The reconstructed HOA signal is obtained by using the following formula: T=AW
[0172] T obtained by using the above formula is the second scene audio signal.
[0173] 404: Generate a residual signal based on the first scene audio signal and the second scene audio signal.
[0174] In this embodiment of the application, the encoder obtains a second scene audio signal through signal reconstruction (which may also be referred to as local decoding). The first scene audio signal is an audio signal in an original scene. Thus, a residual can be calculated for the first scene audio signal and the second scene audio signal to generate a residual signal. The residual signal can represent a difference between the second scene audio signal generated by using the first target virtual speaker and the audio signal in the original scene (i.e., the first scene audio signal).
[0175] In some embodiments of the present application, generating a residual signal based on the first scene audio signal and the second scene audio signal includes: A difference calculation is performed on the first scene audio signal and the second scene audio signal to obtain a residual signal.
[0176] Both the first scene audio signal and the second scene audio signal can be represented in a matrix format, and a residual signal can be obtained by performing a difference calculation on the matrices corresponding to the two scene audio signals respectively.
[0177] 405: Encode the first virtual speaker signal and the residual signal to obtain a bitstream.
[0178] In this embodiment of the application, after the encoder generates the first virtual speaker signal and the residual signal, the encoder can encode the first virtual speaker signal and the residual signal to obtain a bitstream. For example, the encoder may specifically be a core encoder, and the core encoder encodes the first virtual speaker signal to obtain a bitstream. The bitstream may also be called an audio signal encoded bitstream. In this embodiment of the application, the encoder encodes the first virtual speaker signal and the residual signal, but does not encode the scene audio signal. A first target virtual speaker is selected, so that the sound field at the position of the listener in the space is as close as possible to the original sound field when the scene audio signal is recorded, and ensures the encoding quality of the encoder. In addition, the amount of encoded data of the first virtual speaker signal is not related to the number of audio channels of the scene audio signal, thus reducing the amount of data of the encoded scene audio signal and improving the encoding and decoding efficiency.
[0179] In some embodiments of this application, after the encoder performs the above steps 401-405, the audio encoding method provided in the embodiments of this application further includes the following steps: Attribute information of the first target virtual speaker is encoded, and the encoded information is written into a bitstream.
[0180] In addition to encoding the virtual speakers, the encoder can also encode attribute information of the first target virtual speaker and write the encoded attribute information of the first target virtual speaker into the bitstream. In this case, the obtained bitstream may include the encoded virtual speakers and the encoded attribute information of the first target virtual speaker. In this embodiment of the application, the bitstream can carry the encoded attribute information of the first target virtual speaker, thereby enabling a decoder to determine the attribute information of the first target virtual speaker by decoding the bitstream to facilitate audio decoding by the decoder.
[0181] It should be noted that the above steps 401-405 describe a process of generating a first virtual speaker signal based on the first target virtual speaker when a first target virtual speaker is selected from the virtual speaker set, and performing signal reconstruction, residual signal generation and signal encoding based on the first virtual speaker. In the embodiment of this application, the encoder can not only select the first target virtual speaker, but also select more target virtual speakers. For example, the encoder may further select a second target virtual speaker. This is not limited. For the second target virtual speaker, a process similar to the above steps 402-405 needs to be performed. Details will be described below.
[0182] In some embodiments of this application, in addition to performing the above steps by the encoder, the audio encoding method provided in this embodiment of this application further includes: D1: Select a second target virtual speaker from the virtual speaker set based on the first scene audio signal. D2: Generate a second virtual speaker signal based on the first scene audio signal and attribute information of a second target virtual speaker. D3: Encode a second virtual speaker signal and write the encoded signal into the bitstream.
[0183] The implementation of D1 is similar to the implementation of 401. The second target virtual speaker is another target virtual speaker selected by the encoder and different from the first target virtual speaker. The first scene audio signal is an audio signal to be encoded in the original scene, and the second target virtual speaker may be a virtual speaker in a virtual speaker set. For example, the second target virtual speaker can be selected from a pre-configured virtual speaker set according to a pre-configured target virtual speaker selection policy. The target virtual speaker selection policy is a policy for selecting a target virtual speaker that matches the first scene audio signal from the virtual speaker set, for example, a policy for selecting the second target virtual speaker based on a sound field component acquired by each virtual speaker from the first scene audio signal.
[0184] In some embodiments of this application, the audio encoding method provided in this embodiment of this application further includes the following steps. E1: Obtain a second dominant sound field component from a first scene audio signal based on a set of virtual speakers.
[0185] When E1 is executed, selecting a second target virtual speaker from a preset virtual speaker set based on the first scene audio signal in D1 includes: F1: Select a second target virtual speaker from the virtual speaker set based on the second dominant sound field component.
[0186] The encoder obtains a virtual speaker set, and the encoder performs signal decomposition on the first scene audio signal by using the virtual speaker set to obtain a second dominant sound field component corresponding to the first scene audio signal. The second dominant sound field component represents an audio signal corresponding to a dominant sound field in the first scene audio signal. For example, the virtual speaker set includes a plurality of virtual speakers, and the plurality of sound field components may be obtained from the first scene audio signal based on the plurality of virtual speakers, i.e., each virtual speaker may obtain one sound field component from the first scene audio signal, and then the second dominant sound field component is selected from the plurality of sound field components. For example, the second dominant sound field component may be one or more sound field components having a maximum value among the plurality of sound field components, or alternatively, the second dominant sound field component may be one or more sound field components having a dominant direction among the plurality of sound field components. The second target virtual speaker is selected from the virtual speaker set based on the second dominant sound field component. For example, the virtual speaker corresponding to the second dominant sound field component is the second target virtual speaker selected by the encoder. In this embodiment of the application, the encoder can select the second target virtual speaker by using the main sound field components to solve the problem that the encoder needs to determine the second target virtual speaker.
[0187] In some embodiments of this application, selecting a second target virtual speaker from the virtual speaker set based on the second dominant sound field component at F1 includes: selecting an HOA coefficient for the second dominant sound field component from the HOA coefficient set based on the second dominant sound field component, where the HOA coefficients in the HOA coefficient set have a one-to-one correspondence with the virtual speakers in the virtual speaker set; A virtual speaker corresponding to the HOA coefficient for the second main sound field component among the set of virtual speakers is determined as a second target virtual speaker.
[0188] The above implementation manner is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again here.
[0189] In some embodiments of this application, selecting a second target virtual speaker from the virtual speaker set based on the second dominant sound field component in F1 further includes: G1: Obtain configuration parameters of a second target virtual speaker based on the second dominant sound field component. G2: Generate HOA coefficients for a second target virtual speaker based on the configuration parameters of the second target virtual speaker. G3: A virtual speaker corresponding to the HOA coefficient for the second target virtual speaker among the virtual speaker set is determined as the second target virtual speaker.
[0190] The above implementation manner is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again here.
[0191] The above implementation manner is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again here.
[0192] In some embodiments of the present application, obtaining configuration parameters of the second target virtual speaker based on the second dominant sound field component in G1 includes: determining configuration parameters for a plurality of virtual speakers in the virtual speaker set based on configuration information of the audio encoder; Configuration parameters of a second target virtual speaker are selected from the configuration parameters of the plurality of virtual speakers based on the second dominant sound field component.
[0193] The above implementation manner is similar to the process of determining the configuration parameters of the first target virtual speaker in the above embodiment, and the details will not be described again here.
[0194] In some embodiments of this application, the configuration parameters of the second target virtual speaker include position information and HOA order information of the second target virtual speaker.
[0195] Generating HOA coefficients for the second target virtual speaker based on the configuration parameters of the second target virtual speaker in G2 includes: An HOA coefficient for the second target virtual speaker is determined based on the position information and the HOA order information of the second target virtual speaker.
[0196] The above implementation manner is similar to the process of determining the HOA coefficient for the first target virtual speaker in the above embodiment, and the details will not be described again here.
[0197] In some embodiments of this application, the first scene audio signal includes an HOA signal to be encoded, and the attribute information of the second target virtual speaker includes an HOA coefficient for the second target virtual speaker.
[0198] Generating a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker at D2 includes: A linear combination is performed on the HOA signal to be encoded and the HOA coefficients for the second target virtual speaker to obtain a second virtual speaker signal.
[0199] In some embodiments of this application, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the second target virtual speaker includes position information of the second target virtual speaker.
[0200] Generating a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker at D2 includes: Obtaining HOA coefficients for the second target virtual speaker based on position information of the second target virtual speaker; A linear combination is performed on the HOA signal to be encoded and the HOA coefficients for the second target virtual speaker to obtain a second virtual speaker signal.
[0201] The above implementation manner is similar to the process of determining the first virtual speaker signal in the above embodiment, and the details will not be described again here.
[0202] In this embodiment of the application, after the encoder generates the second virtual speaker signal, the encoder may further execute D3 to encode the second virtual speaker signal and write the encoded signal into the bitstream. The encoding method used by the encoder is similar to 405, so that the bitstream can carry the encoding result of the second virtual speaker signal.
[0203] Correspondingly, in the realized scene where the above steps D1 to D3 are performed, obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal in 403 includes: H1: Obtain a second scene audio signal based on attribute information of a first target virtual speaker, a first virtual speaker signal, attribute information of a second target virtual speaker, and a second virtual speaker signal.
[0204] The encoder can obtain attribute information of a first target virtual speaker, the first target virtual speaker being a virtual speaker in the virtual speaker set and used to play the first virtual speaker signal. The encoder can obtain attribute information of a second target virtual speaker, the second target virtual speaker being a virtual speaker in the virtual speaker set and used to play the second virtual speaker signal. The attribute information of the first target virtual speaker may include position information of the first target virtual speaker and an HOA coefficient for the first target virtual speaker. The attribute information of the second target virtual speaker may include position information of the second target virtual speaker and an HOA coefficient for the second target virtual speaker. After the encoder obtains the first virtual speaker signal and the second virtual speaker signal, the encoder can perform signal reconstruction based on the attribute information of the first target virtual speaker and the attribute information of the second target virtual speaker, and obtain a second scene audio signal through the signal reconstruction.
[0205] In some embodiments of this application, obtaining a second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker, and the second virtual speaker signal in H1 includes: determining HOA coefficients for a first target virtual speaker and HOA coefficients for a second target virtual speaker; A synthesis process is performed on the first virtual speaker signal and the HOA coefficients for the first target virtual speaker, and a synthesis process is performed on the second virtual speaker signal and the HOA coefficients for the second target virtual speaker.
[0206] The encoder first determines an HOA coefficient for a first target virtual speaker. For example, the encoder may pre-store an HOA coefficient for the first target virtual speaker, and the encoder determines an HOA coefficient for a second target virtual speaker. For example, the encoder may pre-store an HOA coefficient for the second target virtual speaker, and the encoder generates a reconstructed scene audio signal based on the first virtual speaker signal, the HOA coefficient for the first target virtual speaker, the second virtual speaker signal, and the HOA coefficient for the second target virtual speaker.
[0207] In some embodiments of this application, the audio encoding method performed by the encoder may further include the following steps. I1: Align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0208] When I1 is performed, correspondingly, encoding the second virtual speaker signal in D3 includes: The aligned second virtual speaker signal is encoded.
[0209] Correspondingly, encoding the first virtual speaker signal and the residual signal at 405 includes: The aligned first virtual speaker signal and the residual signal are encoded.
[0210] The encoder can generate a first virtual speaker signal and a second virtual speaker signal, and the encoder can align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal. For example, if there are two virtual speaker signals, and the sound channel sequence of the virtual speaker signal for the current frame is 1 and 2 corresponding to the virtual speaker signals generated by the target virtual speakers P1 and P2, respectively, and the sound channel sequence of the virtual speaker signal for the previous frame is 1 and 2 corresponding to the virtual speaker signals generated by the target virtual speakers P2 and P1, respectively, the sound channel sequence of the virtual speaker signal for the current frame can be adjusted based on the sequence of the target virtual speaker for the previous frame. For example, the sound channel sequence of the virtual speaker signal for the current frame is adjusted to 2 and 1, so that the virtual speaker signals generated by the same target virtual speaker are on the same sound channel.
[0211] After obtaining the aligned first virtual speaker signals, the encoder can encode the aligned first virtual speaker signals and the residual signal. In an embodiment of this application, by realigning and aligning the sound channels of the first virtual speaker signals, the inter-channel correlation is enhanced to facilitate the encoding process of the first virtual speaker signals by the core encoder.
[0212] In some embodiments of this application, in addition to performing the above steps by the encoder, the audio encoding method provided in this embodiment of this application further includes: D1: Select a second target virtual speaker from the virtual speaker set based on the first scene audio signal. D2: Generate a second virtual speaker signal based on the first scene audio signal and attribute information of a second target virtual speaker.
[0213] Correspondingly, when the encoder performs D1 and D2, encoding the first virtual speaker signal and the residual signal in 405 includes the following steps.
[0214] J1: Obtain a downmixed signal and first side information based on a first virtual speaker signal and a second virtual speaker signal, where the first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0215] In this embodiment of the present invention, the relationship between the first virtual speaker signal and the second virtual speaker signal may be a direct relationship or an indirect relationship. For example, when the relationship between the first virtual speaker signal and the second virtual speaker signal is a direct relationship, the first side information may include a correlation parameter between the first virtual speaker signal and the second virtual speaker signal, for example an energy ratio parameter between the first virtual speaker signal and the second virtual speaker signal. For example, when the relationship between the first virtual speaker signal and the second virtual speaker signal is an indirect relationship, the first side information may include a correlation parameter between the first virtual speaker signal and the downmixed signal and a correlation parameter between the second virtual speaker signal and the downmixed signal, for example an energy ratio parameter between the first virtual speaker signal and the downmixed signal and an energy ratio parameter between the second virtual speaker signal and the downmixed signal.
[0216] When the relationship between the first virtual speaker signal and the second virtual speaker signal may be a direct relationship, the decoder can determine the first virtual speaker signal and the second virtual speaker signal based on the downmixed signal, the manner for obtaining the downmixed signal and the direct relationship. When the relationship between the first virtual speaker signal and the second virtual speaker signal may be an indirect relationship, the decoder can determine the first virtual speaker signal and the second virtual speaker signal based on the downmixed signal and the indirect relationship.
[0217] J2: Encode the downmixed signal, the first side information and the residual signal.
[0218] After the encoder obtains the first virtual speaker signal and the second virtual speaker signal, the encoder can further perform downmixing based on the first virtual speaker signal and the second virtual speaker signal to generate a downmixed signal, for example, perform amplitude downmixing on the first virtual speaker signal and the second virtual speaker signal to obtain a downmixed signal. Furthermore, first side information can be further generated based on the first virtual speaker signal and the second virtual speaker signal. The first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal, and the relationship has multiple realization manners. The first side information can be used by the decoder to upmix the downmixed signal and restore the first virtual speaker signal and the second virtual speaker signal. For example, the first side information includes a signal information loss analysis parameter, so that the decoder restores the first virtual speaker signal and the second virtual speaker signal by using the signal information loss analysis parameter. In another example, the first side information may specifically be a correlation parameter between the first virtual speaker signal and the second virtual speaker signal, for example an energy ratio parameter between the first virtual speaker signal and the second virtual speaker signal, and thus the decoder restores the first virtual speaker signal and the second virtual speaker signal by using the correlation parameter or the energy ratio parameter.
[0219] In some embodiments of this application, when the encoder performs D1 and D2, the encoder may further perform the following steps. I1: Align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0220] When I1 is executed, correspondingly, obtaining a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal in J1 includes: A downmixed signal and first side information are obtained based on the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0221] Correspondingly, the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0222] Before generating the downmixed signal, the encoder can first perform an alignment operation on the virtual speaker signals, and generate the downmixed signal and the first side information after completing the alignment operation. In this embodiment of the application, by re-adjusting and aligning the sound channels of the first virtual speaker signal and the second virtual speaker signal, the inter-channel correlation is enhanced, which facilitates the encoding process of the first virtual speaker signal by the core encoder.
[0223] It should be noted that in the above embodiment of this application, the second scene audio signal can be obtained based on the first virtual speaker signal before alignment and the second virtual speaker signal before alignment, or based on the first virtual speaker signal after alignment and the second virtual speaker signal after alignment. The specific implementation manner depends on the application scene and is not limited here.
[0224] In some embodiments of this application, before selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal at D1, the audio signal encoding method provided in this embodiment of this application further includes: K1: Determine whether target virtual speakers other than the first target virtual speaker need to be obtained based on the coding rate and / or signal class information of the first scene audio signal. K2: Select a second target virtual speaker from the virtual speaker set based on the first scene audio signal only when a target virtual speaker other than the first target virtual speaker needs to be obtained.
[0225] The encoder may further select the signal to determine whether a second target virtual speaker needs to be obtained. When a second target virtual speaker needs to be obtained, the encoder may generate a second virtual speaker signal. When a second target virtual speaker needs to be obtained, the encoder may not generate a second virtual speaker signal. The encoder may determine whether other target virtual speakers need to be selected in addition to the first target virtual speaker based on the configuration information of the audio encoder and / or the signal class information of the first scene audio signal. For example, if the coding rate is higher than a preset threshold, it is determined that target virtual speakers corresponding to two main sound field components need to be obtained, and in addition to determining the first target virtual speaker, the second target virtual speaker may be further determined. In another example, if it is determined based on the signal class information of the first scene audio signal that target virtual speakers corresponding to two main sound field components including a dominant sound source direction need to be obtained, in addition to determining the first target virtual speaker, the second target virtual speaker may be further determined. Conversely, if it is determined based on the coding rate and / or signal class information of the first scene audio signal that only one target virtual speaker needs to be obtained, it is determined that after the first target virtual speaker is determined, no target virtual speakers other than the first target virtual speaker are obtained. In this embodiment of the application, the signal is selected, thereby reducing the amount of data to be encoded by the encoder, allowing for improved encoding efficiency.
[0226] When selecting a signal, the encoder can determine whether a second virtual speaker signal needs to be generated. Because information loss occurs when the encoder selects a signal, signal compensation needs to be performed on the virtual speaker signal that is not transmitted. The signal compensation may be, but is not limited to, information loss analysis, energy compensation, envelope compensation and noise compensation. The compensation method may be linear compensation, nonlinear compensation, etc. After the signal compensation, first side information can be generated, and the first side information can be written into the bitstream, so that the decoder can obtain the first side information by using the bitstream, and the decoder can perform signal compensation based on the first side information to improve the quality of the decoded signal of the decoder.
[0227] In some embodiments of this application, for signal selection, in addition to selecting whether a second virtual speaker signal needs to be generated, the encoder may further perform signal selection on the residual signal to determine which residual sub-signal in the residual signal is to be transmitted. For example, the residual signal includes residual sub-signals on at least two sound channels, and the audio signal encoding method provided in this embodiment of this application further includes: L1: Based on configuration information of the audio encoder and / or signal class information of the first scene audio signal, determine a residual sub-signal that needs to be encoded and is on at least one sound channel from residual sub-signals on at least two sound channels.
[0228] In an implementation scenario in which L1 is implemented, correspondingly, encoding the first virtual speaker signal and the residual signal in 405 includes: The first virtual speaker signal and the residual sub-signal that needs to be encoded and that is on at least one sound channel are encoded.
[0229] The encoder can make a decision for the residual signal based on the configuration information of the audio encoder and / or the signal class information of the first scene audio signal. For example, when the residual signal includes a residual sub-signal on at least two sound channels, the encoder can select the sound channel or channels in which the residual sub-signal needs to be encoded and the sound channel or channels in which the residual sub-signal does not need to be encoded. For example, the residual sub-signal having the dominant energy in the residual signal is selected for encoding based on the configuration information of the audio encoder. In another example, the residual sub-signal obtained through the calculation with the low-order HOA sound channel in the residual signal is selected for encoding based on the signal class information of the first scene audio signal. The sound channel is selected for the residual signal, thereby reducing the amount of data encoded by the encoder, so as to improve the encoding efficiency.
[0230] In some embodiments of this application, when a residual sub-signal on at least two sound channels does not need to be encoded and includes a residual sub-signal on at least one sound channel, the audio signal encoding method provided in this embodiment of this application further includes: obtaining second side information, where the second side information indicates a relationship between a residual sub-signal that needs to be encoded and that is on at least one sound channel and a residual sub-signal that does not need to be encoded and that is on at least one sound channel; A second side information is written to the bitstream.
[0231] When selecting a signal, the encoder can determine the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. In this embodiment of the application, the residual sub-signals that need to be coded are coded, and the residual sub-signals that do not need to be coded are not coded, so that the amount of data coded by the encoder is reduced to improve coding efficiency. Since information loss occurs when the encoder selects a signal, signal compensation needs to be performed on the residual sub-signals that are not transmitted. The signal compensation may be, but is not limited to, information loss analysis, energy compensation, envelope compensation and noise compensation. The compensation method may be linear compensation, nonlinear compensation, etc. After the signal compensation, second side information may be generated, and the second side information may be written into the bitstream. The second side information indicates a relationship between the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. The relationship has multiple realization manners. For example, the second side information includes a signal information loss analysis parameter, so that the decoder uses the signal information loss analysis parameter to restore the residual sub-signals that need to be coded and the residual sub-signals that do not need to be coded. In another example, the second side information may specifically be a correlation parameter between the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded, for example, an energy ratio parameter between the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded. Thus, the decoder restores the residual sub-signal that needs to be coded and the residual sub-signal that does not need to be coded by using the correlation parameter or the energy ratio parameter. In this embodiment of the application, the decoder can obtain the second side information by using the bitstream, and the decoder can perform signal compensation based on the second side information to improve the quality of the decoded signal of the decoder.
[0232] According to the exemplary description in the above embodiment, in the embodiment of this application, a first target virtual speaker can be configured for the first scene audio signal. Furthermore, the audio encoder can further obtain a residual signal based on the attribute information of the first virtual speaker signal and the first target virtual speaker. Instead of directly encoding the first scene audio signal, the audio encoder encodes the first virtual speaker signal and the residual signal. In this embodiment of this application, the first target virtual speaker is selected based on the first scene audio signal, and the first virtual speaker signal generated based on the first target virtual speaker can represent a sound field at a position of a listener in a space. The sound field at the position is as close as possible to the original sound field when the first scene audio signal is recorded, thereby ensuring the encoding quality of the audio encoder. Furthermore, the first virtual speaker signal and the residual signal are encoded to obtain a bitstream, so that the amount of encoding data of the first virtual speaker signal is related to the first target virtual speaker and not related to the number of sound channels of the first scene audio signal, thereby reducing the amount of encoding data and improving the encoding efficiency.
[0233] In this embodiment of the present application, the encoder encodes the first virtual speaker signal and the residual signal to generate a bitstream. The encoder then outputs the bitstream and can transmit the bitstream to a decoder through an audio transmission channel. The decoder performs the following steps 411 to 413.
[0234] 411: Receive a bitstream.
[0235] The decoder receives a bitstream from the encoder. The bitstream can carry an encoded first virtual speaker signal and an encoded residual signal. The bitstream may further carry encoded attribute information of the first target virtual speaker. This is not limited. It should be noted that the bitstream may not carry the attribute information of the first target virtual speaker. In this case, the decoder can determine the attribute information of the first target virtual speaker through pre-configuration.
[0236] Furthermore, in some embodiments of this application, when the encoder generates a second virtual speaker signal, the bitstream may further carry the second virtual speaker signal. The bitstream may further carry encoded attribute information of the second target virtual speaker. This is not limited. It should be noted that the bitstream may not carry the attribute information of the second target virtual speaker. In this case, the decoder can determine the attribute information of the second target virtual speaker through pre-configuration.
[0237] 412: Decode the bitstream to obtain virtual speaker signals and a residual signal.
[0238] After receiving the bitstream from the encoder, the decoder decodes the bitstream and obtains the virtual speaker signals and the residual signal from the bitstream.
[0239] It should be noted that the virtual speaker signal may specifically be a first virtual speaker signal, or may be a first virtual speaker signal and a second virtual speaker signal, which is not limited here.
[0240] In some embodiments of this application, after the decoder performs 411 and 412, the audio decoding method provided in this embodiment of this application further includes the following steps: The bitstream is decoded to obtain the attribute information of the target virtual speaker.
[0241] In addition to encoding the virtual speakers, the encoder can also encode attribute information of the target virtual speaker and write the encoded attribute information of the target virtual speaker into the bitstream. For example, the attribute information of a first target virtual speaker can be obtained by using the bitstream. In this embodiment of the application, the bitstream can carry the encoded attribute information of the first target virtual speaker, thereby enabling a decoder to determine the attribute information of the first target virtual speaker by decoding the bitstream to facilitate audio decoding by the decoder.
[0242] 413: Obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal.
[0243] The decoder can obtain attribute information and a residual signal of a target virtual speaker. The target virtual speaker is a virtual speaker in a virtual speaker set and used to play a reconstructed scene audio signal. The attribute information of the target virtual speaker may include position information of the target virtual speaker and an HOA coefficient of the target virtual speaker. After obtaining the virtual speaker signal, the decoder can perform signal reconstruction based on the attribute information of the target virtual speaker and the residual signal, and output a reconstructed scene audio signal through signal reconstruction. The virtual speaker signal is used to reconstruct a main sound field component in the scene audio signal, and the residual signal compensates for an omnidirectional component in the reconstructed scene audio signal. The residual signal can improve the quality of the reconstructed scene audio signal.
[0244] In some embodiments of this application, the attribute information of the target virtual speaker includes an HOA coefficient for the target virtual speaker.
[0245] Obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal at 413 includes: performing a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal; The residual signal is used to adjust the synthesized scene audio signal to obtain a reconstructed scene audio signal.
[0246] First, the decoder determines the HOA coefficient for the target virtual speaker. For example, the decoder may pre-store the HOA coefficient for the target virtual speaker. After obtaining the virtual speaker signal and the HOA coefficient for the target virtual speaker, the decoder can obtain a synthesized scene audio signal based on the virtual speaker signal and the HOA coefficient for the target virtual speaker. Finally, the residual signal is used to adjust the synthesized scene audio signal to improve the quality of the reconstructed scene audio signal.
[0247] For example, the HOA coefficients for the target virtual speaker are represented by a matrix A', the size of which is (M×C), where C is the number of target virtual speakers, and M is the number of sound channels of the N-th order HOA coefficients. The virtual speaker signal is represented by a matrix W', the size of which is (C×L), where L is the number of signal sampling points. The reconstructed HOA signal is obtained by using the following formula: H=A'W'
[0248] H obtained by using the above formula is the reconstructed HOA signal.
[0249] After the above reconstructed HOA signal is obtained, the residual signal can be further used to adjust the synthesized scene audio signal to improve the quality of the reconstructed scene audio signal.
[0250] In some embodiments of this application, the attribute information of the target virtual speaker includes position information of the target virtual speaker.
[0251] Obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal at 413 includes: determining HOA coefficients for the target virtual speaker based on position information of the target virtual speaker; performing a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal; The residual signal is used to adjust the synthesized scene audio signal to obtain a reconstructed scene audio signal.
[0252] The attribute information of the target virtual speaker may include position information of the target virtual speaker. The decoder pre-stores HOA coefficients for each virtual speaker in the virtual speaker set, and the decoder further stores position information of each virtual speaker. For example, the decoder can determine the HOA coefficient for the position information of the target virtual speaker based on the correspondence between the position information of the virtual speaker and the HOA coefficient for the virtual speaker, or the decoder can calculate the HOA coefficient for the target virtual speaker based on the position information of the target virtual speaker. Thus, the decoder can determine the HOA coefficient for the target virtual speaker based on the position information of the target virtual speaker. This solves the problem that the decoder needs to determine the HOA coefficient for the target virtual speaker.
[0253] In some embodiments of this application, it can be seen from the description of the encoder method that the virtual speaker signal is a downmixed signal obtained by downmixing the first virtual speaker signal and the second virtual speaker signal. In this realization scenario, the audio decoding method provided in this embodiment of this application further includes: decoding the bitstream to obtain first side information, where the first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; A first virtual speaker signal and a second virtual speaker signal are obtained based on the first side information and the downmixed signal.
[0254] Correspondingly, obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal at 413 includes: A reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal, and the second virtual speaker signal.
[0255] When the encoder performs downmixing based on the first virtual speaker signal and the second virtual speaker signal, it generates a downmixed signal, and the encoder can further perform signal compensation on the downmixed signal to generate first side information. The first side information can be written into a bitstream. The decoder can obtain the first side information by using the bitstream. The decoder can perform signal compensation based on the first side information to obtain the first virtual speaker signal and the second virtual speaker signal. Thus, during signal reconstruction, the first virtual speaker signal, the second virtual speaker signal, the attribute information of the target virtual speaker and the residual signal can be used to improve the quality of the decoded signal of the decoder.
[0256] In some embodiments of this application, it can be seen from the description of the method of the encoder that the encoder performs signal selection for the residual signal and adds the second side information to the bitstream. In this implementation scenario, assuming that the residual signal includes a residual sub-signal on a first sound channel, the audio decoding method provided in this embodiment of this application further includes: decoding the bitstream to obtain second side information, where the second side information indicates a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on the second sound channel; A residual sub-signal on the second sound channel is obtained based on the second side information and the residual sub-signal on the first sound channel.
[0257] Correspondingly, obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal at 413 includes: A reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel and the virtual speaker signal.
[0258] When selecting a signal, the encoder can determine the residual sub-signal that needs to be encoded and the residual sub-signal that does not need to be encoded. Because information loss occurs when the encoder selects a signal, the encoder generates second side information. The second side information can be written into the bitstream. The decoder can obtain the second side information by using the bitstream. Assuming that the residual signal carried in the bitstream includes a residual sub-signal on a first sound channel, the decoder can perform signal compensation based on the second side information to obtain the residual sub-signal on the second sound channel. For example, the decoder restores the residual sub-signal on the second sound channel by using the residual sub-signal on the first sound channel and the second side information. The second sound channel is independent from the first sound channel. Therefore, during signal reconstruction, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel, the attribute information of the target virtual speaker and the virtual speaker signal can be used to improve the quality of the decoded signal of the decoder. For example, the scene audio signal includes 16 sound channels in total. In the 16 sound channels, there are four first sound channels, e.g., sound channels 1, 3, 5 and 7, and the second side information describes the relationship between the residual sub-signals on the sound channels 1, 3, 5 and 7 and the residual sub-signals on the other sound channels. Thus, the decoder can obtain the residual sub-signals on the other 12 sound channels in the 16 sound channels based on the residual sub-signals on the first sound channels and the second side information. In another example, the scene audio signal includes a total of 16 sound channels. The first sound channel is the third sound channel in the 16 sound channels, the second sound channel is the eighth sound channel in the 16 sound channels, and the second side information describes the relationship between the residual sub-signals on the third sound channel and the residual sub-signals on the eighth sound channel. Thus, the decoder can obtain the residual sub-signal on the eighth sound channel based on the residual sub-signal on the third sound channel and the second side information.
[0259] In some embodiments of this application, it can be seen from the description of the method of the encoder that the encoder performs signal selection for the residual signal and adds the second side information to the bitstream. In this implementation scenario, assuming that the residual signal includes a residual sub-signal on a first sound channel, the audio decoding method provided in this embodiment of this application includes: decoding the bitstream to obtain second side information, where the second side information indicates a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel; A residual sub-signal on a third sound channel and an updated residual sub-signal on the first sound channel are obtained based on the second side information and the residual sub-signal on the first sound channel.
[0260] Correspondingly, obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal at 413 includes: A reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel and the virtual speaker signal.
[0261] There may be one or more first sound channels, there may be one or more second sound channels, or there may be one or more tertiary sound channels.
[0262] When selecting a signal, the encoder can determine the residual sub-signal that needs to be encoded and the residual sub-signal that does not need to be encoded. Since information loss occurs when the encoder selects a signal, the encoder generates second side information. The second side information can be written into the bitstream. The decoder can obtain the second side information by using the bitstream. Assuming that the residual signal carried in the bitstream includes a residual sub-signal on the first sound channel, the decoder can perform signal compensation based on the second side information to obtain the residual sub-signal on the second sound channel. The residual sub-signal on the third sound channel is different from the residual sub-signal on the first sound channel. When the residual sub-signal on the third sound channel is obtained based on the second side information and the residual sub-signal on the first sound channel, the residual sub-signal on the first sound channel needs to be updated to obtain an updated residual sub-signal on the first sound channel. For example, the decoder generates a residual sub-signal on a third sound channel and an updated residual sub-signal on the first sound channel by using the residual sub-signal on the first sound channel and the second side information. Thus, during signal reconstruction, the residual sub-signal on the third sound channel, the updated residual sub-signal on the first sound channel, the attribute information of the target virtual speaker and the virtual speaker signal can be used to improve the quality of the decoded signal of the decoder. For example, the scene audio signal includes 16 sound channels in total. In the 16 sound channels, there are four first sound channels, for example, sound channels 1, 3, 5 and 7, and the second side information describes the relationship between the residual sub-signals on the sound channels 1, 3, 5 and 7 and the residual sub-signals on the other sound channels. Thus, the decoder can obtain the residual sub-signals on the 16 sound channels based on the residual sub-signal on the first sound channel and the second side information, and the residual sub-signals on the 16 sound channels include the updated residual sub-signals on the sound channels 1, 3, 5 and 7. In another example, the scene audio signal includes a total of 16 sound channels.The first sound channel is a third sound channel among the 16 sound channels, the second sound channel is an eighth sound channel among the 16 sound channels, and the second side information describes a relationship between the residual sub-signal on the third sound channel and the residual sub-signal on the eighth sound channel. Thus, the decoder can obtain the residual sub-signal on the eighth sound channel and an updated residual sub-signal on the third sound channel based on the residual sub-signal on the third sound channel and the second side information.
[0263] In some embodiments of this application, it can be seen from the description of the encoder method that the bitstream generated by the encoder may carry both the first side information and the second side information. In this case, the decoder needs to decode the bitstream to obtain the first side information and the second side information, the decoder needs to perform signal compensation using the first side information, and further needs to perform signal compensation using the second side information. In other words, the decoder may perform signal compensation based on the first side information and the second side information to obtain signal-compensated virtual speaker signals and signal-compensated residual signals. Thus, during signal reconstruction, the signal-compensated virtual speaker signals and the signal-compensated residual signals can be used to improve the quality of the decoded signal of the decoder.
[0264] In the above embodiment, the bitstream is first received, then decoded to obtain the virtual speaker signal and the residual signal, and finally, the reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal. In this embodiment of the application, the audio decoder performs a decoding process that is the reverse of the encoding process by the audio encoder, obtains the virtual speaker signal and the residual signal from the bitstream through decoding, and can obtain the reconstructed scene audio signal by using the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal. In this embodiment of the application, the obtained bitstream carries the virtual speaker signal and the residual signal, reducing the amount of data to be decoded and improving the decoding efficiency.
[0265] For example, in this embodiment of the application, compared with the audio signal of the first scene, the first virtual speaker signal is represented by using fewer sound channels. For example, the first scene audio signal is a third-order HOA signal, and the HOA signal has 16 sound channels. In this embodiment of the application, the 16 sound channels can be compressed to four sound channels. The four sound channels include two sound channels occupied by the virtual speaker signals generated by the encoder and two sound channels occupied by the residual signals. For example, the virtual speaker signals generated by the encoder may include a first virtual speaker signal and a second virtual speaker signal, and the number of sound channels of the virtual speaker signals generated by the encoder is not related to the number of sound channels of the first scene audio signal. It can be seen from the description in the following steps that the bitstream may carry the virtual speaker signals on two sound channels and carry the residual signals on two sound channels. Correspondingly, the decoder receives the bitstream and decodes the bitstream to obtain the virtual speaker signals on two sound channels and the residual signals on two sound channels. The decoder can reconstruct the scene audio signal on 16 sound channels by using the virtual speaker signals on two sound channels and the residual signals on two sound channels, which ensures that the reconstructed scene audio signal has the same subjective and objective quality when compared with the audio signal in the original scene.
[0266] For better understanding and realization of the above solution in this embodiment of this application, a specific description is provided below by using a corresponding application scenario as an example.
[0267] In this embodiment of the application, an example is used in which the scene audio signal is an HOA signal. Sound waves are propagated in an ideal medium, with the wave number k=w / c and the angular frequency w=2πf, where f is the frequency of the sound wave and c is the speed of sound. In this case, the sound pressure p satisfies the following formula, where ▽ 2 is the Laplace operator. ▽ 2 p+k 2 p=0
[0268] The above equation is solved in spherical coordinates. For a passive spherical domain, the solution of the equation is
number
[0269] In the above formula, r is the spherical radius, θ is the horizontal angle, φ is the elevation angle, k is the number of waves, s is the amplitude of an ideal plane wave, m is the series number of the HOA order, and j is the m j m kr (kr) are spherical Bessel functions, also known as radial basis functions, where the first j is the imaginary unit. (2m+1)j m j m kr (kr) does not change with angle. Y m,n σ (θ,φ) is the spherical harmonic function in the direction of θ,φ, and Y m,n σ (θ s ,φ s ) is a spherical harmonic function in the direction of the sound source.
[0270] HOA coefficient is B (m,n) σ =s Y m,n σ (θ s ,φ s ) may also be expressed as
[0271] The following formula is provided:
number
[0272] The above formula is calculated by assuming that the sound field is expanded on a sphere according to spherical harmonics, and the coefficient B m,n σ Alternatively, the coefficient B m,n σ If is known, the sound field can be reconstructed. The above equation is truncated to the Nth term, and the coefficient B m,n σ are used as an approximate description of the sound field and are called the Nth order HOA coefficients. The HOA coefficients may also be called Ambisonic coefficients. The Nth order HOA coefficients are (N+1) in total. 2 1 sound channels. Ambisonic signals of order greater than 1 are also called HOA signals. By superposing spherical harmonics according to the coefficients for the sampling points of the HOA signal, the spatial sound field at the time corresponding to the sampling points can be reconstructed.
[0273] For example, in a configuration, the HOA order may be 2-6, and when the audio in the scene is recorded, the signal sampling rate is 48kHz-192kHz, and the sampling depth is 16bit or 24bit. The HOA signal features the spatial information of the sound field and is a description of the sound field signal at a certain point in space with a certain accuracy. It can therefore be considered that other representation formats are used to describe the sound field signal at that point. If this description method can use a smaller amount of data to describe the signal at that point with the same accuracy, the purpose of signal compression can be achieved.
[0274] A sound field in a space can be decomposed into a superposition of multiple plane waves. Therefore, the sound field represented by the HOA signal can be represented by using a superposition of multiple plane waves, where each plane wave is represented by using an audio signal and a direction vector on one sound channel. If the representation of the superposed plane waves can better represent the original sound field by using fewer sound channels, signal compression can be achieved.
[0275] During actual playback, the HOA signal may be played back by using a headset, or by using multiple speakers arranged in a room. When speakers are used for playback, the basic method is to overlap the sound fields of multiple speakers, so that the sound field at a point in space (the listener's position) is as close as possible to the original sound field on the standard when the HOA signal is recorded. In the embodiment of this application, it is assumed that a virtual speaker ray is used. Then, the playback signal of the virtual speaker ray is calculated, and the playback signal is used as a transmission signal to generate a compressed signal. The decoder decodes the bitstream to obtain the playback signal, and uses the playback signal to reconstruct the scene audio signal.
[0276] An embodiment of this application provides an encoder applicable to encoding a scene audio signal, and a decoder applicable to decoding the scene audio signal. The encoder encodes an original HOA signal into a compressed bitstream, and the encoder sends the compressed bitstream to a decoder, and then the decoder restores the compressed bitstream into a reconstructed HOA signal. In this embodiment of this application, the amount of data obtained after the compression performed by the encoder is as small as possible, or the quality of the HOA signal obtained after the reconstruction performed by the decoder at the same bitrate is higher.
[0277] In this embodiment of the present application, the problems of large data volume, high bandwidth occupancy, low compression efficiency and low encoding quality during encoding of HOA signals can be solved. The N-th order HOA signal is (N+1) 2 Since the HOA signal has multiple sound channels, a high bandwidth would be consumed to transmit it directly. Therefore, an effective multi-channel coding scheme is required.
[0278] In this embodiment of the application, a different sound channel extraction method is used, and the assumption of the sound source is not limited in this embodiment of the application, and does not rely on the assumption of a single sound source in the time-frequency domain, so that complex scenes such as signals of multiple sound sources can be processed more effectively. The encoder and decoder in this embodiment of the application provide a spatial encoding and decoding method in which fewer sound channels are used to represent the original HOA signal. Figure 5 is a schematic diagram of the structure of an encoder according to this embodiment of the application. The encoder includes a spatial encoder and a core encoder. The spatial encoder may perform sound channel extraction on the HOA signal to be encoded to generate a virtual speaker signal. The core encoder may encode the virtual speaker signal to obtain a bitstream. The encoder sends the bitstream to the decoder. Figure 6 is a schematic diagram of the structure of a decoder according to this embodiment of the application. The decoder includes a core decoder and a spatial decoder. The core decoder first receives the bitstream from the encoder, and then decodes the bitstream to obtain the virtual speaker signal. The spatial decoder then reconstructs the virtual speaker signal to obtain a reconstructed HOA signal.
[0279] Below, examples from the encoder and decoder are described separately.
[0280] As shown in FIG. 7, an encoder provided in this embodiment of the application is described first. The encoder may include a virtual speaker configuration unit, an encoding analysis unit, a virtual speaker set generation unit, a virtual speaker selection unit, a virtual speaker signal generation unit, a core encoder processing unit, a signal reconstruction unit, a residual signal generation unit, a selection unit, and a signal compensation unit. The following describes the function of each component unit of the encoder separately. In this embodiment of the application, the encoder shown in FIG. 7 may generate one virtual speaker signal, or may generate multiple virtual speaker signals. The process of generating multiple virtual speaker signals may be realized by performing multiple generation according to the encoder structure shown in FIG. 7. The following uses the process of generating one virtual speaker signal as an example.
[0281] The virtual speaker configuration unit is configured to configure the virtual speakers in the virtual speaker set to obtain a plurality of virtual speakers.
[0282] The virtual speaker configuration unit outputs virtual speaker configuration parameters based on the configuration information of the encoder. The configuration information of the encoder includes, but is not limited to, HOA order, coding bit rate, and user-defined information. The virtual speaker configuration parameters include, but are not limited to, the number of virtual speakers, the HOA order of the virtual speakers, and the position coordinates of the virtual speakers.
[0283] The virtual speaker configuration parameters output by the virtual speaker configuration unit are used as input of a virtual speaker set generation unit.
[0284] The encoding analysis unit is configured to perform encoding analysis on the HOA signal to be encoded, and analyze the sound field distribution of the HOA signal to be encoded, including characteristics such as the number of sound sources, directivity and dispersion of the HOA signal to be encoded, which are used as one of the decision conditions for determining how to select a target virtual speaker.
[0285] In this embodiment of the application, the encoder may not include a coding analysis unit, i.e., the encoder may not analyze the input signal, and a default configuration may be used to determine how to select the target virtual speaker. This is not a limitation.
[0286] The encoder obtains the HOA signal to be encoded, for example, a HOA signal recorded from a real acquisition device or a HOA signal synthesized by using an artificial audio object may be used as input to the encoder, and the HOA signal to be encoded input by the encoder may be a time-domain HOA signal or a frequency-domain HOA signal.
[0287] The virtual speaker set generation unit is configured to generate a virtual speaker set. The virtual speaker set may include a plurality of virtual speakers, and the virtual speakers in the virtual speaker set may also be referred to as "candidate virtual speakers."
[0288] The virtual speaker set generation unit generates HOA coefficients for the designated candidate virtual speakers. Generating HOA coefficients for the candidate virtual speakers requires the coordinates (i.e., position coordinates or position information) of the candidate virtual speakers and the HOA order of the candidate virtual speakers. Methods for determining the coordinates of the candidate virtual speakers include, but are not limited to, generating K virtual speakers according to an equidistance rule and generating K candidate virtual speakers that are not evenly distributed according to the auditory perception principle. The following provides an example of a method for generating a fixed amount of evenly distributed virtual speakers.
[0289] The coordinates of the evenly distributed candidate virtual speakers are generated based on the number of candidate virtual speakers, for example, by using a numerical iterative calculation method to provide an approximately uniform speaker arrangement. Figure 8 is a schematic diagram of a virtual speaker that is approximately evenly distributed on a sphere. It is assumed that several material particles are distributed on a unit sphere, and a second-order inversely proportional repulsive force is set between these material particles, which is similar to the electrostatic repulsive force between the same charges. It is assumed that these material particles are allowed to move freely under the repulsive force, and when the material particles reach a stationary state, the distribution of the material particles is uniform. In the calculation, the actual physical laws are simplified, and the moving distance of the material particle is directly equal to the stress. Therefore, for the i-th material particle, the moving distance of the material particle in the iterative calculation step, i.e., the stressed virtual force, is calculated by using the following formula:
number
[0290]
number
number
number
[0291] Displacement Vector
number
[0292] Next, the HOA coefficients for the candidate virtual speakers are generated. After an ideal plane wave is expanded by spherical harmonics, the amplitude s and the position coordinates of the speaker are (θ s ,φ s ) the shape of an ideal plane wave is calculated using the following formula:
number
[0293] The HOA coefficient for a plane wave is B m,n σ and satisfies the following formula: B m,n σ =s Y m,n σ (θ s ,φ s )
[0294] The HOA coefficients of the candidate virtual speakers output by the virtual speaker set generation unit are used as inputs of the virtual speaker selection unit.
[0295] The virtual speaker selection unit is configured to select a target virtual speaker from a plurality of candidate virtual speakers in the virtual speaker set based on the HOA signal to be encoded. The target virtual speaker may be referred to as a "virtual speaker that matches the HOA signal to be encoded" or may be referred to as a matching virtual speaker for short.
[0296] The virtual speaker selection unit matches the HOA signal to be encoded with the HOA coefficients of the candidate virtual speakers output by the virtual speaker set generation unit, and selects a designated matching virtual speaker.
[0297] The following describes the method for selecting a virtual speaker by using an example. In an embodiment, after the candidate virtual speaker is obtained, the HOA signal to be coded is matched with the HOA coefficient of the candidate virtual speaker output by the virtual speaker set generation unit to find the best match of the HOA signal to be coded for the candidate virtual speaker, and the HOA signal to be coded is matched and combined according to the HOA coefficient of the candidate virtual speaker. In an embodiment, the inner product is performed between the HOA coefficient of the candidate virtual speaker and the HOA signal to be coded, and the candidate virtual speaker with the largest absolute value of the inner product is selected as the target virtual speaker, i.e., the matching virtual speaker, and the projection of the HOA signal to be coded for the candidate virtual speaker is superimposed on the linear combination of the HOA coefficient of the candidate virtual speaker, and then the projection vector is subtracted from the HOA signal to be coded to obtain the difference. The above process is repeated for the difference to realize iterative calculation, and a matching virtual speaker is generated at each iteration, and the coordinates of the matching virtual speaker and the HOA coefficient of the target virtual speaker are output. It can be understood that multiple matching virtual speakers are selected, and one matching virtual speaker is generated at each iteration.
[0298] The coordinates of the target virtual speaker and the HOA coefficients for the target virtual speaker output by the virtual speaker selection unit are used as inputs of the virtual speaker signal generation unit.
[0299] In some embodiments of this application, in addition to the configuration units shown in Figure 7, the encoder may further include a side information generating unit. The encoder may not include a side information generating unit, which is merely an example here. This is not limited.
[0300] The coordinates of the target virtual speaker and / or the HOA coefficients for the target virtual speaker output by the virtual speaker selection unit are used as input of a side information generation unit.
[0301] The side information generation unit converts the HOA coefficients for the target virtual speaker or the coordinates of the target virtual speaker into side information, which is easy to process and transmit by the core encoder.
[0302] The output of the side information generation unit is used as the input of the core encoder processing unit.
[0303] The virtual speaker signal generation unit is configured to generate a virtual speaker signal based on the HOA signal to be encoded and the attribute information of a target virtual speaker.
[0304] The virtual speaker signal generation unit calculates the virtual speaker signals by using the HOA signal to be encoded and the HOA coefficients for the target virtual speaker.
[0305] The HOA coefficients for the target virtual speaker are represented by matrix A, and the HOA signal to be encoded can be obtained through linear combination by using matrix A. The theoretical optimal solution w, i.e., the virtual speaker signal, can be obtained by using the least squares method. For example, the following calculation formula may be used: w=A -1 X Here, A -1 is the inverse matrix of matrix A, the size of matrix A is (M×C), C is the number of target virtual speakers, M is the number of sound channels of the Nth order HOA coefficient, and a represents the HOA coefficient for the target virtual speaker. For example,
number
[0306] X represents the HOA signal to be encoded, the size of matrix X is (M×L), M is the number of sound channels of the N-th order HOA coefficients, L is the number of sampling points, and x represents the coefficients for the HOA signal to be encoded. For example,
number
[0307] The virtual speaker signals output by the virtual speaker signal generation unit are used as inputs of the core encoder processing unit.
[0308] In some embodiments of this application, in addition to the configuration unit shown in Figure 7, the encoder may further include a signal alignment unit. The encoder may not include a signal alignment unit, which is merely an example here. This is not limited.
[0309] The virtual speaker signals output by the virtual speaker signal generation unit are used as inputs of the signal alignment unit.
[0310] The signal alignment unit is configured to realign the sound channels of the virtual speaker signals to enhance inter-channel correlation and facilitate processing by the core encoder.
[0311] The aligned virtual speaker signals output by the signal alignment unit are input to the core encoder processing unit.
[0312] The signal reconstruction unit is configured to reconstruct the HOA signal by using the virtual speaker signal and the HOA coefficients for the target virtual speaker.
[0313] The configuration of HOA coefficients for the target virtual speaker is represented by matrix A, whose size is (M×C), where C is the number of matching virtual speakers and M is the number of sound channels for the Nth order HOA coefficients. The virtual speaker signal is represented by matrix W, whose size is (C×L), where L is the number of signal sampling points. Thus, the reconstructed HOA signal is T=AW It is.
[0314] The reconstructed HOA signal output by the signal reconstruction unit is the input of the residual signal generation unit.
[0315] The residual signal generating unit is configured to calculate the residual signal by using the HOA signal to be coded and the reconstructed HOA signal output by the signal reconstruction unit. For example, the calculation method is to obtain the difference between the HOA signal to be coded and the corresponding sampling points in the sound channel corresponding to the reconstructed HOA signal output by the signal reconstruction unit.
[0316] The residual signal output by the residual signal generating unit is the input of the signal compensation unit and the selection unit.
[0317] The selection unit is configured to select the virtual speaker signals and / or the residual signal based on the configuration information of the encoder and the signal class information, for example the selection includes selecting the virtual speaker signals and selecting the residual signal.
[0318] For example, in order to reduce the number of sound channels, a residual signal having less than M sound channels may be selected as the residual signal to be coded. A low-order residual signal may be selected as the residual signal to be coded, or a residual signal having high energy may be selected as the residual signal to be coded.
[0319] The residual signal output by the selection unit is the input of the core encoder processing unit and the input of the signal compensation unit.
[0320] The signal compensation unit is configured to perform signal compensation on the non-transmitted residual signal, because signal loss occurs when a residual signal having less than M sound channels is selected as the residual signal to be encoded, compared with the residual signal having M sound channels serving as the residual signal to be encoded. The signal compensation may be, but is not limited to, information loss analysis, energy compensation, envelope compensation and noise compensation. The compensation method may be linear compensation, nonlinear compensation, etc. The signal compensation unit generates side information for signal compensation.
[0321] The core encoder processing unit is configured to perform core encoder processing on the side information and the aligned virtual speaker signals to obtain a bitstream for transmission.
[0322] The core encoder processing includes, but is not limited to, transformation, quantization, psychoacoustic modeling and bitstream generation, and may process frequency domain sound channels or time domain sound channels, which is not limited here.
[0323] As shown in FIG. 9, the decoder provided in this embodiment of this application may include a core decoder processing unit and a HOA signal reconstruction unit.
[0324] The core decoder processing unit is configured to perform core decoder processing on the bitstream for transmission to obtain virtual speaker signals and a residual signal.
[0325] If the encoder adds side information to the bitstream, the decoder needs to further include a side information decoding unit, which is not limited.
[0326] The side information decoding unit is configured to decode the side information to be decoded output by the core decoder processing unit to obtain the decoded side information.
[0327] The core decoder processing includes conversion, bitstream analysis and dequantization, and may process frequency domain sound channels or time domain sound channels, which is not limited here.
[0328] The virtual speaker signals and the residual signal output by the core decoder processing unit are used as the input of the HOA signal reconstruction unit, and the decoded side information output by the core decoder processing unit is the input of the side information decoding unit.
[0329] The side information decoding unit converts the decoded side information into HOA coefficients for the target virtual speaker.
[0330] The HOA coefficients for the target virtual speaker output by the side information decoding unit are the input of the HOA signal reconstruction unit.
[0331] The HOA signal reconstruction unit is configured to reconstruct the virtual speaker signal by using the residual signal and the HOA coefficients for the target virtual speaker to obtain a reconstructed HOA signal.
[0332] The HOA coefficients for the target virtual speaker are represented by matrix A'. The size of matrix A' is (M×C), where matrix A' represents the number of target virtual speakers and M represents the number of sound channels for the N-th order HOA coefficients. The configuration of the virtual speaker signals is a (C×L) matrix, represented by matrix W', where L represents the number of signal sampling points. The reconstructed HOA signal H is obtained by using the following equation: H=A'W' Here, the reconstructed HOA signal output by the signal reconstruction unit is the output of the decoder.
[0333] In some embodiments of this application, if the encoder bitstream further carries side information used for signal compensation, the decoder The method may further include a signal compensation unit configured to combine the reconstructed HOA signal and the residual signal to obtain a combined HOA signal, which is adjusted by using side information used for signal compensation to obtain reconstructed HOA coefficients.
[0334] In this embodiment of the application, the encoder may use a spatial encoder to represent the original HOA signal by using fewer sound channels. For example, for an original 3-order HOA signal, the spatial encoder in this embodiment of the application can compress 16 sound channels to 4 sound channels, and ensure that subjective listening is not obviously different. The subjective listening test is an evaluation criterion in audio encoding and decoding. No obvious difference is the level of subjective evaluation.
[0335] In some other embodiments of this application, the virtual speaker selection unit of the encoder may select a target virtual speaker from the virtual speaker set or may use a virtual speaker at a specified direction and position as the target virtual speaker, and the virtual speaker signal generation unit directly performs projection onto each target virtual speaker to obtain a virtual speaker signal.
[0336] As mentioned above, the virtual speaker at the specified direction and position is used as the target virtual speaker, which can simplify the virtual speaker selection process and improve the encoding and decoding speed.
[0337] In some other embodiments of this application, the encoder may not include a signal alignment unit. In this case, the output of the virtual speaker signal generation unit is directly encoded by the core encoder. The above scheme reduces the signal alignment process and reduces the complexity of the encoder.
[0338] From the above example description, it can be seen that in the embodiment of this application, the selected target virtual speaker is applied to the encoding and decoding of the HOA signal.In the embodiment of this application, the accurate location of the sound source of the HOA signal can be obtained, the direction for reconstructing the HOA signal is more accurate, the encoding efficiency is higher, and the complexity of the decoder is very low.This is beneficial for the application in mobile terminals, and can improve the performance of encoding and decoding.
[0339] It should be noted that for ease of explanation, the above method embodiments are represented as a sequence of actions. However, those skilled in the art should recognize that, according to this application, some steps may be performed in other orders or simultaneously, and therefore, this application is not limited to the order of actions described. It should be further recognized by those skilled in the art that the embodiments described in this specification all belong to exemplary embodiments, and the actions and modules involved are not necessarily required in this application.
[0340] In order to better realize the solutions of the embodiments of this application, related apparatuses for realizing the solutions are further provided below.
[0341] As shown in FIG. 10, an audio encoding device 1000 provided in an embodiment of this application may include: an obtaining module 1001, a signal generating module 1002, and an encoding module 1003.
[0342] The acquisition module is configured to select a first target virtual speaker from a preset set of virtual speakers based on the first scene audio signal.
[0343] The signal generation module is configured to generate a virtual speaker signal based on the first scene audio signal and the attribute information of the first target virtual speaker.
[0344] The signal generation module is configured to obtain a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal.
[0345] The signal generation module is configured to generate a residual signal based on the first scene audio signal and the second scene audio signal.
[0346] The encoding module is configured to encode the virtual speaker signals and the residual signal to obtain a bitstream.
[0347] In some embodiments of this application, the acquisition module is configured to acquire a dominant sound field component from a first scene audio signal based on a virtual speaker set, and to select a first target virtual speaker from the virtual speaker set based on the dominant sound field component.
[0348] In some embodiments of the application, the acquisition module is configured to select a Higher Order Ambisonics (HOA) coefficient for the dominant sound field component from a HOA coefficient set based on the dominant sound field component, where the HOA coefficients in the HOA coefficient set have a one-to-one correspondence with virtual speakers in the virtual speaker set, and to determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient for the dominant sound field component as a first target virtual speaker.
[0349] In some embodiments of the application, the acquisition module is configured to acquire configuration parameters of a first target virtual speaker based on the main sound field components, generate HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker, and determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficients for the first target virtual speaker as the first target virtual speaker.
[0350] In some embodiments of the application, the acquisition module is configured to determine configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of the audio encoder, and to select configuration parameters of a first target virtual speaker from the configuration parameters of the plurality of virtual speakers based on a dominant sound field component.
[0351] In some embodiments of this application, the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker.
[0352] The acquisition module is configured to determine HOA coefficients for the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
[0353] In some embodiments of the present application, the encoding module is further configured to encode the attribute information of the first target virtual speaker and write the encoded information into the bitstream.
[0354] In some embodiments of this application, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes HOA coefficients for the first target virtual speaker.
[0355] The signal generation module is configured to perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain a first virtual speaker signal.
[0356] In some embodiments of this application, the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker.
[0357] The signal generation module is configured to obtain HOA coefficients for the first target virtual speaker based on position information of the first target virtual speaker, and perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal.
[0358] In some embodiments of the application, the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal.
[0359] The signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker.
[0360] The encoding module is configured to encode the second virtual speaker signal and write the encoded signal to a bitstream.
[0361] Correspondingly, the signal generation module is configured to obtain a second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker, and the second virtual speaker signal.
[0362] In some embodiments of the application, the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0363] Correspondingly, the encoding module is configured to encode the aligned second virtual speaker signal.
[0364] Correspondingly, the encoding module is configured to encode the aligned first virtual speaker signal and the residual signal.
[0365] In some embodiments of the application, the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal.
[0366] The signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and the attribute information of the second target virtual speaker.
[0367] Correspondingly, the encoding module is configured to obtain a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0368] Correspondingly, the encoding module is configured to encode the downmixed signal, the first side information and the residual signal.
[0369] In some embodiments of the application, the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal.
[0370] The encoding module is configured to obtain a downmixed signal and first side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0371] Correspondingly, the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
[0372] In some embodiments of the application, the acquisition module is configured to determine whether a target virtual speaker other than the first target virtual speaker needs to be acquired based on the coding rate and / or signal class information of the first scene audio signal before selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal, and to select the second target virtual speaker from the virtual speaker set based on the first scene audio signal only if a target virtual speaker other than the first target virtual speaker needs to be acquired.
[0373] In some embodiments of this application, the residual signal includes residual sub-signals on at least two sound channels.
[0374] The signal generation module is configured to determine, from the residual sub-signals on the at least two sound channels, a residual sub-signal that needs to be encoded and that is on at least one sound channel based on configuration information of the audio encoder and / or signal class information of the first scene audio signal.
[0375] Correspondingly, the encoding module is configured to encode the first virtual speaker signal and the residual sub-signal that needs to be encoded and that resides on at least one sound channel.
[0376] In some embodiments of this application, the acquisition module is configured to acquire second side information when the residual sub-signals on the at least two sound channels include a residual sub-signal that does not need to be encoded and is on at least one sound channel, the second side information indicating a relationship between the residual sub-signal that needs to be encoded and is on at least one sound channel and the residual sub-signal that does not need to be encoded and is on at least one sound channel.
[0377] Correspondingly, the encoding module is configured to write the second side information to the bitstream.
[0378] As shown in FIG. 11, an audio decoding device 1100 provided in an embodiment of this application may include: a receiving module 1101, a decoding module 1102, and a reconstruction module 1103.
[0379] The receiving module is configured to receive the bitstream.
[0380] The decoding module is configured to decode the bitstream to obtain virtual speaker signals and a residual signal.
[0381] The reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal and the virtual speaker signal.
[0382] In some embodiments of the present application, the decoding module is further configured to decode the bitstream to obtain attribute information of the target virtual speaker.
[0383] In some embodiments of this application, the attribute information of the target virtual speaker includes Higher Order Ambisonics (HOA) coefficients for the target virtual speaker.
[0384] The reconstruction module is configured to perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and to adjust the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal.
[0385] In some embodiments of this application, the attribute information of the target virtual speaker includes position information of the target virtual speaker.
[0386] The reconstruction module is configured to perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and to adjust the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal.
[0387] In some embodiments of this application, the attribute information of the target virtual speaker includes position information of the target virtual speaker.
[0388] The reconstruction module is configured to determine HOA coefficients for the target virtual speaker based on position information of the target virtual speaker, perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and adjust the synthesized scene audio signal by using the residual signal to obtain a reconstructed scene audio signal.
[0389] In some embodiments of the present application, the virtual speaker signal is a downmixed signal obtained by downmixing the first virtual speaker signal and the second virtual speaker signal, as shown in Fig. 11. The apparatus 1100 further includes a first signal compensation module 1104.
[0390] The decoding module is configured to decode the bitstream to obtain first side information, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0391] The first signal compensation module is configured to obtain a first virtual speaker signal and a second virtual speaker signal based on the first side information and the downmixed signal.
[0392] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal and the second virtual speaker signal.
[0393] In some embodiments of the present application, the residual signal includes a residual sub-signal on the first sound channel, as shown in Figure 11. The apparatus 1100 further includes a second signal compensation module 1105.
[0394] The decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on the second sound channel.
[0395] The second signal compensation module is configured to obtain a residual sub-signal on the second sound channel based on the second side information and the residual sub-signal on the first sound channel.
[0396] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel, and the virtual speaker signal.
[0397] In some embodiments of the present application, the residual signal includes a residual sub-signal on the first sound channel, as shown in Figure 11. The apparatus 1100 further includes a third signal compensation module 1106.
[0398] The decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between a residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel.
[0399] The third signal compensation module is configured to obtain a residual sub-signal on the third sound channel and an updated residual sub-signal on the first sound channel based on the second side information and the residual sub-signal on the first sound channel.
[0400] Correspondingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel and the virtual speaker signal.
[0401] It should be noted that the contents such as information exchange between the modules / units of the device and the execution process thereof are based on the same concept as the method embodiment of this application, and produce the same technical effect as the method embodiment of this application. For the specific contents, please refer to the above description in the method embodiment of this application, and the details will not be described again here.
[0402] An embodiment of this application further provides a computer storage medium, which stores a program, and the program performs some or all of the steps described in the above method embodiments.
[0403] The following describes another audio encoding device provided in an embodiment of this application. As shown in Fig. 12, the audio encoding device 1200 includes a receiver 1201, a transmitter 1202, a processor 1203, and a memory 1204 (there may be one or more processors 1203 in the audio encoding device 1200, and one processor is used as an example in Fig. 12). In some embodiments of this application, the receiver 1201, the transmitter 1202, the processor 1203, and the memory 1204 may be connected through a bus or in other manners. In Fig. 12, the connection through a bus is used as an example.
[0404] Memory 1204 may include read-only memory and random access memory to provide instructions and data to processor 1203. A portion of memory 1204 may further include non-volatile random access memory (NVRAM). Memory 1204 stores an operating system and operating instructions, executable modules or data structures, or a subset or extended set thereof. The operating instructions may include various operating instructions used to perform various operations. The operating system may include various system programs for implementing various basic services and handling hardware-based tasks.
[0405] The processor 1203 controls the operation of the audio encoding device and may also be referred to as a central processing unit (CPU). In a particular application, the components of the audio encoding device are coupled together through a bus system. In addition to a data bus, the bus system may further include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, the various types of buses in the drawings are depicted as a bus system.
[0406] The methods disclosed in the embodiments of this application may be applied to the processor 1203 or may be realized by using the processor 1203. The processor 1203 may be an integrated circuit chip and has signal processing capabilities. In the realization process, the steps in the above methods may be completed by using instructions in the form of integrated logic circuits of hardware or software in the processor 1203. The processor 1203 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It may realize or execute the methods, steps and logical block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor, or the processor may alternatively be any conventional processor, etc. The steps of the methods disclosed with reference to the embodiments of this application may be directly executed and achieved by a hardware decoding processor, or may be executed and achieved by using a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium that is mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory 1204, and the processor 1203 reads the information in the memory 1204 and completes the steps of the above method in combination with the hardware of the processor.
[0407] The receiver 1201 may be configured to receive input digital or textual information and generate signal inputs related to relevant settings and function control of the audio encoding device. The transmitter 1202 may include a display device, such as a display screen, and the transmitter 1202 may be configured to output the digital or textual information through an external interface.
[0408] In this embodiment of the application, the processor 1203 is configured to execute the audio encoding method executed by the audio encoding device in the above embodiment shown in FIG.
[0409] The following describes another audio decoding device provided in the embodiment of this application. As shown in Fig. 13, the audio decoding device 1300 includes a receiver 1301, a transmitter 1302, a processor 1303, and a memory 1304 (there may be one or more processors 1303 in the audio decoding device 1300, and one processor is used as an example in Fig. 13). In some embodiments of this application, the receiver 1301, the transmitter 1302, the processor 1303, and the memory 1304 may be connected through a bus or in other manners. In Fig. 13, the connection through a bus is used as an example.
[0410] Memory 1304 may include read-only memory and random access memory to provide instructions and data to processor 1303. A portion of memory 1304 may further include NVRAM. Memory 1304 stores an operating system and operating instructions, executable modules or data structures, or a subset or extended set thereof. The operating instructions may include various operating instructions used to perform various operations. The operating system may include various system programs for implementing various basic services and handling hardware-based tasks.
[0411] The processor 1303 controls the operation of the audio decoding device, and may also be referred to as a CPU. In a particular application, the components of the audio decoding device are coupled together through a bus system. In addition to a data bus, the bus system may further include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, the various types of buses in the drawings are depicted as a bus system.
[0412] The method disclosed in the embodiments of this application may be applied to the processor 1303 or may be realized by using the processor 1303. The processor 1303 may be an integrated circuit chip and has signal processing capabilities. In the realization process, the steps in the above method may be completed by using an instruction in the form of an integrated logic circuit of hardware or software in the processor 1303. The processor 1303 may be a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. It may realize or execute the method, steps and logical block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor, or the processor may alternatively be any conventional processor, etc. The steps of the method disclosed with reference to the embodiments of this application may be directly executed and achieved by a hardware decoding processor, or may be executed and achieved by using a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium that is mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory 1304, and the processor 1303 reads the information in the memory 1304 and completes the steps of the above method in combination with the hardware of the processor.
[0413] In this embodiment of the application, the processor 1303 is configured to execute the audio decoding method executed by the audio decoding device in the above embodiment shown in FIG.
[0414] In another possible design, when the audio encoding device or the audio decoding device is a chip in a terminal, the chip includes a processing unit and a communication unit. The processing unit may be, for example, a processor. The communication unit may be, for example, an input / output interface, a pin, or a circuit. The processing unit may execute computer-executable instructions stored in the storage unit to enable the chip in the terminal to perform the audio encoding method in any of the first aspects or the audio decoding method in any of the second aspects. Optionally, the storage unit is a storage unit in the chip, for example, a register or a cache. Alternatively, the storage unit may be a storage unit in the terminal and outside the chip, for example, a read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, or a random access memory (RAM).
[0415] The processor referred to in any of the above may be a general purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits configured to control program execution of the method of the first or second aspect.
[0416] Furthermore, it should be noted that the described device embodiments are merely examples. Units described as separate parts may or may not be physically separated, and parts shown as units may or may not be physical units, and may be located in one place or distributed among multiple network units. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solutions in the embodiments. Furthermore, in the accompanying drawings of the device embodiments provided by this application, the connection relationships between the modules indicate that the modules have communication connections with each other, which may be specifically realized as one or more communication buses or signal cables.
[0417] Based on the above description of the implementation, a person skilled in the art can clearly understand that this application may be implemented by software in addition to the necessary universal hardware, or may be implemented by dedicated hardware, including dedicated integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. In general, any function that can be executed by a computer program can be easily implemented by using corresponding hardware. Furthermore, the specific hardware structure used to achieve the same function may be in various forms, for example, in the form of an analog circuit, a digital circuit, or a dedicated circuit. However, for this application, in most cases, the implementation form of a software program is a better implementation form. Based on such understanding, the technical solution of this application or the part that contributes to the prior art may be essentially realized in the form of a software product. The computer software product is stored in a readable storage medium, for example, a computer floppy disk, a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and includes some instructions for instructing a computer device (which may be a personal computer, a server, a network device, etc.) to execute the method described in the embodiments of this application.
[0418] All or part of the above embodiments may be realized by using software, hardware, firmware, or any combination thereof. When software is used to realize the embodiments, all or part of the embodiments may be realized in the form of a computer program product.
[0419] A computer program product includes one or more computer instructions. When the computer program instructions are loaded into a computer and executed, the procedures or functions according to the embodiments of this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio, or microwave) manner. The computer-readable storage medium may be any available medium accessible 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 may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape, etc.), an optical medium (e.g., a DVD), a semiconductor medium (e.g., a solid state disk (SSD)), etc.
Claims
1. 1. An audio encoding method, comprising: selecting a first target virtual speaker from a preset set of virtual speakers based on a first scene audio signal; generating a first virtual speaker signal based on the first scene audio signal and attribute information of the first target virtual speaker; obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal; generating a residual signal based on the first scene audio signal and the second scene audio signal; encoding the first virtual speaker signal and the residual signal and writing the encoded signals into a bitstream; The method includes:
2. The method comprises: obtaining a main sound field component from the first scene audio signal based on the set of virtual speakers; The step of selecting a first target virtual speaker from a preset virtual speaker set based on a first scene audio signal includes: The method of claim 1 , comprising selecting the first target virtual speaker from the set of virtual speakers based on the dominant sound field components.
3. The step of selecting the first target virtual speaker from the set of virtual speakers based on the dominant sound field components comprises: selecting a Higher Order Ambisonics (HOA) coefficient for the dominant sound field component from a set of HOA coefficients based on the dominant sound field component, the HOA coefficients in the set of HOA coefficients being in one-to-one correspondence with virtual speakers in the set of virtual speakers; determining a virtual speaker corresponding to the HOA coefficient for the main sound field component among the set of virtual speakers as the first target virtual speaker; The method of claim 2 , comprising:
4. The step of selecting the first target virtual speaker from the set of virtual speakers based on the dominant sound field components comprises: obtaining configuration parameters of the first target virtual speaker based on the main sound field components; generating HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker; determining a virtual speaker in the set of virtual speakers that corresponds to the HOA coefficient for the first target virtual speaker as the first target virtual speaker; The method of claim 2 , comprising:
5. The step of obtaining configuration parameters of the first target virtual speaker based on the main sound field components includes: determining configuration parameters for a number of virtual speakers in the set of virtual speakers based on configuration information of an audio encoder; selecting the configuration parameters of the first target virtual speaker from the configuration parameters of the plurality of virtual speakers based on the main sound field components; The method of claim 4 , comprising:
6. the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker; generating HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker, The method of claim 4 or 5, comprising determining the HOA coefficients for the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
7. The method comprises: The method of claim 1 , further comprising the step of: encoding the attribute information of the first target virtual speaker and writing the encoded information into the bitstream.
8. the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes HOA coefficients for the first target virtual speaker; The step of generating a first virtual speaker signal based on the first scene audio signal and attribute information of the first target virtual speaker includes:
8. The method of claim 1 , further comprising: performing a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal.
9. The first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker; The step of generating a first virtual speaker signal based on the first scene audio signal and attribute information of the first target virtual speaker includes: obtaining HOA coefficients for the first target virtual speaker based on the position information of the first target virtual speaker; performing a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal; The method of any one of claims 1 to 7, comprising:
10. The method comprises: selecting a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; generating a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker; encoding the second virtual speaker signal and writing the encoded signal into the bitstream; Further comprising: obtaining a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal, 10. The method of claim 1, further comprising: obtaining the second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker and the second virtual speaker signal.
11. The method comprises: aligning the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; Encoding the second virtual speaker signal includes: encoding the aligned second virtual speaker signals; Encoding the first virtual speaker signal and the residual signal includes: The method of claim 10 , comprising encoding the aligned first virtual speaker signal and the residual signal.
12. The method comprises: selecting a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; generating a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker; Further comprising: Encoding the first virtual speaker signal and the residual signal includes: obtaining a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal, where the first side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; encoding the downmixed signal, the first side information and the residual signal; 10. The method of claim 1 , comprising:
13. The method comprises: aligning the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; Obtaining a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal includes: obtaining the downmixed signal and the first side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; The method of claim 12 , wherein the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
14. Prior to selecting a second target virtual speaker from the set of virtual speakers based on the first scene audio signal, the method further comprises: determining whether a target virtual speaker other than the first target virtual speaker needs to be obtained based on coding rate and / or signal class information of the first scene audio signal; selecting the second target virtual speaker from the set of virtual speakers based on the first scene audio signal only if the target virtual speaker other than the first target virtual speaker needs to be obtained; The method of any one of claims 10 to 13, further comprising:
15. The residual signal comprises residual sub-signals on at least two sound channels, the method comprising: determining, from the residual sub-signals on the at least two sound channels, a residual sub-signal that needs to be encoded and that is on at least one sound channel based on audio encoder configuration information and / or signal class information of the first scene audio signal; Encoding the first virtual speaker signal and the residual signal includes:
15. The method of claim 1, further comprising encoding the first virtual speaker signal and the residual sub-signal that needs to be encoded and that is on the at least one sound channel.
16. If the residual sub-signals on the at least two sound channels include a residual sub-signal that does not need to be encoded and is on at least one sound channel, the method further comprises: obtaining second side information, the second side information indicating a relationship between the residual sub-signal that needs to be encoded and that is on the at least one sound channel and the residual sub-signal that does not need to be encoded and that is on the at least one sound channel; writing said second side information into said bitstream; The method of claim 15 further comprising:
17. 1. An audio decoding method, comprising: receiving a bitstream; Decoding the bitstream to obtain a virtual speaker signal, a residual signal, and attribute information of a target virtual speaker; obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal; Including, the attribute information of the target virtual speaker includes position information of the target virtual speaker, The step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal includes: determining HOA coefficients for the target virtual speaker based on the position information of the target virtual speaker, the HOA coefficients for the target virtual speaker being a matrix, the size of the matrix being (M×C), where C is the number of target virtual speakers and M is the number of sound channels for an Nth order HOA coefficient; performing a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal; adjusting the synthesized scene audio signal using the residual signal to obtain the reconstructed scene audio signal. A method comprising:
18. The virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, the method comprising: decoding the bitstream to obtain first side information, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal; obtaining the first virtual speaker signal and the second virtual speaker signal based on the first side information and the downmixed signal; Further comprising: The step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker, the residual signal, and the virtual speaker signal includes:
20. The method of claim 17, comprising obtaining the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal, and the second virtual speaker signal.
19. The residual signal comprises a residual sub-signal on a first sound channel, the method comprising: decoding the bitstream to obtain second side information, the second side information indicating a relationship between the residual sub-signal on the first sound channel and a residual sub-signal on a second sound channel; obtaining the residual sub-signal on the second sound channel based on the second side information and the residual sub-signal on the first sound channel; Further comprising: The step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker, the residual signal, and the virtual speaker signal includes:
19. The method of claim 17 or 18, comprising obtaining the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel and the virtual speaker signal.
20. The residual signal comprises a residual sub-signal on a first sound channel, the method comprising: decoding the bitstream to obtain second side information, the second side information indicating a relationship between the residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel; obtaining the residual sub-signal on the third sound channel and an updated residual sub-signal on the first sound channel based on the second side information and the residual sub-signal on the first sound channel; Further comprising: The step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker, the residual signal, and the virtual speaker signal includes:
19. The method of claim 17 or 18, comprising obtaining the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel and the virtual speaker signal.
21. An audio encoding device, comprising: an acquisition module configured to select a first target virtual speaker from a preset set of virtual speakers based on a first scene audio signal; a signal generation module configured to generate a first virtual speaker signal based on the first scene audio signal and attribute information of the first target virtual speaker; The signal generation module is configured to obtain a second scene audio signal by using the attribute information of the first target virtual speaker and the first virtual speaker signal; a signal generation module configured to generate a residual signal based on the first scene audio signal and the second scene audio signal; an encoding module configured to encode the first virtual speaker signal and the residual signal to obtain a bitstream; An apparatus comprising:
22. 22. The apparatus of claim 21, wherein the acquisition module is configured to acquire a dominant sound field component from the first scene audio signal based on the set of virtual speakers, and to select the first target virtual speaker from the set of virtual speakers based on the dominant sound field component.
23. 23. The apparatus of claim 22, wherein the acquisition module is configured to select a Higher Order Ambisonics (HOA) coefficient for the dominant sound field component from a set of HOA coefficients based on the dominant sound field component, where the HOA coefficients in the HOA coefficient set have a one-to-one correspondence with virtual speakers in the set of virtual speakers, and to determine a virtual speaker in the set of virtual speakers that corresponds to the HOA coefficient for the dominant sound field component as the first target virtual speaker.
24. 23. The apparatus of claim 22, wherein the acquisition module is configured to acquire configuration parameters of the first target virtual speaker based on the main sound field components, generate HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker, and determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient for the first target virtual speaker as the first target virtual speaker.
25. 25. The apparatus of claim 24, wherein the acquisition module is configured to determine configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of an audio encoder, and to select the configuration parameters of the first target virtual speaker from the configuration parameters of the plurality of virtual speakers based on the dominant sound field component.
26. the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker; 26. The apparatus of claim 24 or 25, wherein the acquisition module is configured to determine the HOA coefficients for the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
27. 27. The apparatus of claim 21, wherein the encoding module is further configured to encode the attribute information of the first target virtual speaker and write the encoded information into the bitstream.
28. the first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes HOA coefficients for the first target virtual speaker; 28. The apparatus of claim 21, wherein the signal generation module is configured to perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal.
29. The first scene audio signal includes a Higher Order Ambisonics (HOA) signal to be encoded, and the attribute information of the first target virtual speaker includes position information of the first target virtual speaker; 28. The apparatus of claim 21, wherein the signal generation module is configured to obtain HOA coefficients for the first target virtual speaker based on the position information of the first target virtual speaker, and to perform a linear combination on the HOA signal to be encoded and the HOA coefficients for the first target virtual speaker to obtain the first virtual speaker signal.
30. the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; the signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker; the encoding module is configured to encode the second virtual speaker signal and write the encoded signal to the bitstream; 30. The apparatus of claim 21, wherein the signal generation module is configured to obtain the second scene audio signal based on the attribute information of the first target virtual speaker, the first virtual speaker signal, the attribute information of the second target virtual speaker and the second virtual speaker signal.
31. the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; the encoding module is configured to encode the aligned second virtual speaker signal; The apparatus of claim 30 , wherein the encoding module is configured to encode the aligned first virtual speaker signal and the residual signal.
32. the acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the first scene audio signal; the signal generation module is configured to generate a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker; the encoding module is configured to obtain a downmixed signal and first side information based on the first virtual speaker signal and the second virtual speaker signal, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal; 30. The apparatus of claim 21, wherein the encoding module is configured to encode the downmixed signal, the first side information, and the residual signal.
33. the signal generation module is configured to align the first virtual speaker signal and the second virtual speaker signal to obtain an aligned first virtual speaker signal and an aligned second virtual speaker signal; the encoding module is configured to obtain the downmixed signal and the first side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; 33. The apparatus of claim 32, wherein the first side information indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
34. 34. The apparatus of claim 30, wherein the acquisition module is configured to determine whether a target virtual speaker other than the first target virtual speaker needs to be acquired based on a coding rate and / or signal class information of the first scene audio signal before selecting the second target virtual speaker from the virtual speaker set based on the first scene audio signal, and to select the second target virtual speaker from the virtual speaker set based on the first scene audio signal only if the target virtual speaker other than the first target virtual speaker needs to be acquired.
35. the residual signal comprises residual sub-signals on at least two sound channels; the signal generation module is configured to determine, based on audio encoder configuration information and / or signal class information of the first scene audio signal, from the residual sub-signals on the at least two sound channels, a residual sub-signal that needs to be encoded and that is on at least one sound channel; 35. The apparatus of claim 21, wherein the encoding module is configured to encode the first virtual speaker signal and the residual sub-signal that needs to be encoded and that is on the at least one sound channel.
36. The acquisition module is configured to acquire second side information when the residual sub-signals on the at least two sound channels include a residual sub-signal that does not need to be encoded and is on at least one sound channel, the second side information indicating a relationship between the residual sub-signal that needs to be encoded and is on the at least one sound channel and the residual sub-signal that does not need to be encoded and is on the at least one sound channel; 36. The apparatus of claim 35, wherein the encoding module is configured to write the second side information to the bitstream.
37. An audio decoding device, comprising: a receiving module configured to receive a bitstream; a decoding module configured to decode the bitstream to obtain a virtual speaker signal, a residual signal, and attribute information of a target virtual speaker; a reconstruction module configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, and the virtual speaker signal; Including, the attribute information of the target virtual speaker includes position information of the target virtual speaker, the reconstruction module is configured to determine HOA coefficients for the target virtual speaker based on the position information of the target virtual speaker, perform a synthesis process on the virtual speaker signals and the HOA coefficients for the target virtual speaker to obtain a synthesized scene audio signal, and adjust the synthesized scene audio signal by using the residual signal to obtain the reconstructed scene audio signal, wherein the HOA coefficients for the target virtual speaker are a matrix, the size of the matrix is (M×C), where C is the number of target virtual speakers and M is the number of sound channels for Nth order HOA coefficients.
38. The virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, and the apparatus further includes a first signal compensation module; the decoding module is configured to decode the bitstream to obtain first side information, the first side information indicating a relationship between the first virtual speaker signal and the second virtual speaker signal; the first signal compensation module is configured to obtain the first virtual speaker signal and the second virtual speaker signal based on the first side information and the downmixed signal; 38. The apparatus of claim 37, wherein the reconstruction module is configured to obtain the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual signal, the first virtual speaker signal, and the second virtual speaker signal.
39. The residual signal includes a residual sub-signal on a first sound channel, and the apparatus further includes a second signal compensation module; the decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between the residual sub-signal on the first sound channel and a residual sub-signal on a second sound channel; the second signal compensation module is configured to obtain the residual sub-signal on the second sound channel based on the second side information and the residual sub-signal on the first sound channel; 39. The apparatus of claim 37 or 38, wherein the reconstruction module is configured to obtain the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the residual sub-signal on the first sound channel, the residual sub-signal on the second sound channel and the virtual speaker signal.
40. The residual signal includes a residual sub-signal on a first sound channel, and the apparatus further includes a third signal compensation module; the decoding module is configured to decode the bitstream to obtain second side information, the second side information indicating a relationship between the residual sub-signal on the first sound channel and a residual sub-signal on a third sound channel; the third signal compensation module is configured to obtain the residual sub-signal on the third sound channel and an updated residual sub-signal on the first sound channel based on the second side information and the residual sub-signal on the first sound channel; 39. The apparatus of claim 37 or 38, wherein the reconstruction module is configured to obtain the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the updated residual sub-signal on the first sound channel, the residual sub-signal on the third sound channel and the virtual speaker signal.
41. An audio encoding device, comprising: The audio encoding device includes at least one processor; 17. An audio encoding device, wherein the at least one processor is coupled to a memory and configured to read and execute instructions in the memory to implement a method according to any one of claims 1 to 16.
42. 42. The audio encoding device of claim 41, further comprising the memory.
43. An audio decoding device, comprising: The audio decoding device includes at least one processor; 21. Audio decoding device, wherein the at least one processor is coupled to a memory and configured to read and execute instructions in the memory to implement a method according to any one of claims 17 to 20.
44. 44. An audio decoding apparatus according to claim 43, further comprising the memory.
45. A computer-readable storage medium containing instructions, A computer readable storage medium, the instructions of which, when executed on a computer, enable the computer to carry out the method of any one of claims 1 to 16 or any one of claims 17 to 20.
Citation Information
Patent Citations
Apparatus and method for providing enhanced and guided downmixing capabilities for 3D audio
JP2015532062A
Method and apparatus for compressing and decompressing higher-order ambisonic representations for sound fields.
JP2015537256A
Method and Apparatus for Compressing and Decompressing Higher Order Ambisonics Representations
JP2016520864A
Method and apparatus for encoding audio signals, and method and apparatus for decoding audio signals
JP2016523377A
Concept for generating extended or modified sound field descriptions using multi-layer descriptions
JP2020527745A
