Audio encoding and decoding method and apparatus
By selecting and encoding virtual speaker signals based on attribute information, the data volume is reduced, addressing the high data requirements of HOA technology and improving encoding efficiency.
Patent Information
- Application Number
- JP2023532579
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-11-30
- Filing Date
- 2021-05-28
- Publication Date
- 2025-01-15
- 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 multi-channel encoding methods result in high bandwidth occupancy during bitstream compression.
Selecting a target virtual speaker from a preset set based on the current scene audio signal, generating a virtual speaker signal using attribute information, and encoding it to reduce data volume, independent of the number of channels, thereby improving encoding efficiency.
Reduces the amount of encoded data and enhances encoding and decoding efficiency by using virtual speaker signals that maintain the quality of the original sound field, allowing for more efficient data transmission and storage.
Smart Images

Figure 0007612987000024 
Figure 0007612987000025 
Figure 0007612987000026
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202011377320.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, which is incorporated by reference in its entirety into this specification.
[0002] The present application relates to the field of audio encoding and decoding technologies, and in particular to audio encoding and decoding methods and apparatuses. [Background technology]
[0003] 3D audio technology is an audio technology that captures, processes, transmits, renders, and plays back sound events and 3D sound field information in the real world. 3D audio technology imparts a strong sense of space, surrounding, and immersion to the sound, providing people with a special auditory experience as if they were really there. Higher order ambisonics (HOA) technology has the property of being independent of speaker layout in recording, encoding, and playback phases, and the rotatable playback property of data in HOA format, and has higher flexibility during 3D audio playback, and therefore has been the subject of more attention and research.
[0004] In order to achieve better audio auditory effect, HOA technology needs a large amount of data to record more detailed information about sound scene.Such scene-based sampling and storage of three-dimensional audio signal is more conducive to storing and transmitting spatial information of audio signal, but as HOA order increases, a large amount of data is generated, which makes transmission and storage difficult.Therefore, HOA signal needs to be coded and decoded.
[0005] Currently, there exists a method for encoding and decoding multi-channel data, which includes: on the encoder side, directly encoding each channel of an audio signal in an original scene by using a core encoder (e.g., a 16-channel encoder), and then outputting a bitstream; on the decoder side, a core decoder (e.g., a 16-channel decoder) decodes the bitstream to obtain each channel of a decoded scene.
[0006] In the above multi-channel encoding and decoding method, the corresponding encoder and the corresponding decoder need to be adapted according to the number of channels of the audio signal in the original scene. In addition, as the number of channels increases, a large amount of data and high bandwidth occupancy will exist during the compression of the bitstream. Summary of the Invention
[0007] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide an audio encoding and decoding method and apparatus to reduce the amount of encoded and decoded data, thereby improving the efficiency of encoding and decoding.
[0008] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0009] According to a first aspect, an embodiment of the present application comprises: selecting a first target virtual speaker from a set of pre-defined virtual speakers based on a current scene audio signal; generating a first virtual speaker signal based on the current scene audio signal and attribute information of the first target virtual speaker; and encoding the first virtual speaker signal to obtain a bitstream; The present invention provides an audio encoding method, including:
[0010] In this embodiment of the present application, the first target virtual speaker is selected from a pre-defined virtual speaker set based on the current scene audio signal; the first virtual speaker signal is generated based on the current scene audio signal and the attribute information of the first target virtual speaker; and the first virtual speaker signal is encoded to obtain a bitstream. In this embodiment of the present 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, and the audio encoder side encodes the first virtual speaker signal instead of directly encoding the first scene audio signal. In this embodiment of the present 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 listener's position in space, and the sound field at this position is as close as possible to the original sound field when the first scene audio signal is recorded. This ensures the encoding quality of the audio encoder side. In addition, the first virtual speaker signal and the residual signal are encoded to obtain a bitstream. The amount of coded data of the first virtual speaker signal is related to the first target virtual speaker and is independent of the number of channels of the first scene audio signal, which reduces the amount of coded data and improves coding efficiency.
[0011] In a possible implementation, the method further comprises: obtaining a main sound field component from the current scene audio signal based on the virtual speaker set; Includes; The step of selecting a first target virtual speaker from a preset virtual speaker set based on a current scene audio signal includes: selecting the first target virtual speaker from the set of virtual speakers based on the main sound field component; Includes.
[0012] In the aforementioned solution, 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 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 side. In this embodiment of the present application, the encoder side may select the first target virtual speaker based on the main sound field component. In this way, the encoder side may determine the first target virtual speaker.
[0013] In a possible implementation, the step of selecting the first target virtual speaker from the virtual speaker set based on the main sound field component comprises: selecting an HOA coefficient for the main sound field component from a higher order Ambisonics HOA coefficient set based on the main 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 determining a virtual speaker in the virtual speaker set corresponding to the HOA coefficient of the main sound field component as the first target virtual speaker; Includes.
[0014] In the above solution, the encoder side pre-configures an 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 component, the virtual speaker set is searched for a target virtual speaker corresponding to the HOA coefficient of the main sound field component based on the one-to-one correspondence. The found target virtual speaker is the first target virtual speaker. In this way, the encoder side can determine the first target virtual speaker.
[0015] In a possible implementation, the step of selecting the first target virtual speaker from the virtual speaker set based on the main sound field component 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; and determining a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the first target virtual speaker as the target virtual speaker; Includes.
[0016] In the above solution, after obtaining the main sound field component, the encoder side can be used to determine the configuration parameters of the first target virtual speaker based on the main sound field component. For example, the main sound field component can be one or several sound field components having the maximum value among the multiple sound field components, or the main sound field component can be one or several 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 matching the current scene audio signal, and corresponding attribute information is configured for the first target virtual speaker, and the HOA coefficient of the first target virtual speaker can be generated based on the configuration parameters of the first target virtual speaker. The process of generating the HOA coefficient can be implemented according to the HOA algorithm, and the details are not described herein. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient. Therefore, the first target virtual speaker can be selected from the virtual speaker set based on the HOA coefficient of each virtual speaker. In this way, the encoder side may 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 includes: determining configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of an audio encoder; and 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 component. Includes.
[0018] In the above-mentioned solution, the audio encoder may store configuration parameters of each of the multiple virtual speakers in advance. The configuration parameters of each virtual speaker may be determined based on configuration information of the audio encoder. The audio encoder is the above-mentioned encoder side. The configuration information of the audio encoder includes, but is not limited to, HOA order, and encoding bit rate, etc. The configuration information of the audio encoder may be used to determine the number of virtual speakers and position parameters of each virtual speaker. In this manner, the encoder side may 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; when the encoding bit rate is high, multiple virtual speakers may be configured. In another example, the HOA order of the virtual speaker may be equal to the HOA order of the audio encoder. In this embodiment of the present application, in addition to the step of determining the configuration parameters of each of the multiple virtual speakers based on the configuration information of the audio encoder, the configuration parameters of each of the multiple virtual speakers may further be determined based on information defined by a user. For example, the user may define the position, HOA order, and number of virtual speakers of the virtual speakers, etc. This is not a limitation herein.
[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 the HOA coefficient of the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker; Includes.
[0020] In the above solution, the HOA coefficient of each virtual speaker can be generated based on the position information and HOA order information of the virtual speaker, and the process of generating the HOA coefficient can be implemented according to the HOA algorithm. In this way, the encoder side can determine the HOA coefficient of the first target virtual speaker.
[0021] In a possible implementation, the method further comprises: The method includes encoding the attribute information of the first target virtual speaker, and writing the encoded attribute information into the bitstream.
[0022] In the above-mentioned solution, in addition to encoding the virtual speaker, the encoder side may 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 acquired bitstream may include the encoded virtual speaker and the encoded attribute information of the first target virtual speaker. In this embodiment of the present application, the bitstream may carry the encoded attribute information of the first target virtual speaker. In this way, the decoder side may determine the attribute information of the first target virtual speaker by decoding the bitstream. This facilitates audio decoding at the decoder side.
[0023] In a possible implementation, the current scene audio signal includes a higher order Ambisonics HOA signal to be encoded, and the attribute information of the first target virtual speaker includes the HOA coefficients of the first target virtual speaker; The step of generating a first virtual speaker signal based on the current scene audio signal and attribute information of the first target virtual speaker includes: performing a linear combination on the HOA signal to be encoded and the HOA coefficients to obtain the first virtual speaker signal; Includes.
[0024] In the above solution, an example is used in which the current scene audio signal is an HOA signal to be encoded. The encoder side first determines an HOA coefficient of a first target virtual speaker. For example, the encoder side selects an HOA coefficient from an HOA coefficient set based on a main sound field component. The selected HOA coefficient is the HOA coefficient of the first target virtual speaker. After the encoder side obtains the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker, a first virtual speaker signal can be generated based on the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker. The HOA signal to be encoded can be obtained by performing a linear combination on the HOA coefficient of the first target virtual speaker, and the solution of the first virtual speaker signal can be converted into a solution of a linear combination.
[0025] In a possible implementation, the current scene audio signal includes a Higher Order Ambisonics HOA signal to be encoded, and the attribute information of the first target virtual speaker includes the position information of the first target virtual speaker; The step of generating a first virtual speaker signal based on the current scene audio signal and attribute information of the first target virtual speaker includes: obtaining the HOA coefficient of the first target virtual speaker based on the position information of the first target virtual speaker; and performing a linear combination on the HOA signal to be encoded and the HOA coefficients to obtain the first virtual speaker signal; Includes.
[0026] In the above-mentioned solution, the attribute information of the first target virtual speaker may include position information of the first target virtual speaker. The encoder side pre-stores the HOA coefficient of each virtual speaker in the virtual speaker set, and the encoder side further stores the position information of each virtual speaker. There is a correspondence between the position information of the virtual speakers and the HOA coefficients of the virtual speakers. Therefore, the encoder side may determine the HOA coefficient of 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 side may obtain the HOA coefficient of the first target virtual speaker by decoding the attribute information of the first target virtual speaker.
[0027] In a possible implementation, the method further comprises: selecting a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; generating a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; and encoding the second virtual speaker signal and writing the encoded second virtual speaker signal into the bitstream. Equipped with.
[0028] In the above-mentioned solution, the second target virtual speaker is another target virtual speaker selected by the encoder side, 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 can 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 matching the first scene audio signal from the virtual speaker set, for example, selecting the second target virtual speaker based on sound field components acquired by each virtual speaker from the first scene audio signal.
[0029] In a possible implementation, the method further comprises: performing an alignment process on 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. Equipped with; Accordingly, the step of encoding the second virtual speaker signal may further comprise: encoding the aligned second virtual speaker signal; Accordingly, the step of encoding the first virtual speaker signal may further comprise: Encoding the aligned first virtual speaker signal.
[0030] In the above solution, after obtaining the aligned first virtual speaker signal, the encoder side may encode the aligned first virtual speaker signal. In this embodiment of the present application, the correlation between the channels is enhanced by realigning and realigning the channels of the first virtual speaker signal, which facilitates the encoding process performed by the core encoder on the first virtual speaker signal.
[0031] In a possible implementation, the method further comprises: selecting a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; and generating a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; Equipped with; Accordingly, the step of encoding the first virtual speaker signal may further comprise: obtaining a downmixed signal and side information based on the first virtual speaker signal and the second virtual speaker signal, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and encoding the downmixed signal and the side information Includes.
[0032] In the above solution, after obtaining the first virtual speaker signal and the second virtual speaker signal, the encoder side may further perform a downmix process based on the first virtual speaker signal and the second virtual speaker signal to generate a downmixed signal, for example, perform an amplitude downmix process on the first virtual speaker signal and the second virtual speaker signal to obtain a downmixed signal. In addition, side information may be generated based on the first virtual speaker signal and the second virtual speaker signal. The side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal. The relationship may be implemented in multiple ways. The side information may be used by the decoder side to perform an upmix on the downmixed signal and restore the first virtual speaker signal and the second virtual speaker signal. For example, the side information includes a signal information loss analysis parameter. In this way, the decoder side restores the first virtual speaker signal and the second virtual speaker signal by using the signal information loss analysis parameter.
[0033] In a possible implementation, the method further comprises: performing an alignment process on 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. Equipped with; Accordingly, the step of obtaining a downmixed signal and side information based on the first virtual loudspeaker signal and the second virtual loudspeaker signal comprises: obtaining the downmixed signal and the side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal. Includes; Accordingly, the side information indicates a relationship between the aligned first virtual loudspeaker signal and the aligned second virtual loudspeaker signal.
[0034] In the above solution, before generating the downmixed signal, the encoder side may first perform an alignment operation of the virtual speaker signals, and then generate the downmixed signal and side information after completing the alignment operation. In this embodiment of the present application, the correlation between the channels is enhanced by realigning and realigning the channels of the first virtual speaker signal and the second virtual speaker, which facilitates the encoding process performed by the core encoder on the first virtual speaker signal.
[0035] In a possible implementation, prior to the step of selecting a second target virtual speaker from the virtual speaker set based on the current 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 type information of the current scene audio signal; and selecting the second target virtual speaker from the virtual speaker set based on the current scene audio signal if the target virtual speaker other than the first target virtual speaker needs to be obtained. Includes.
[0036] In the above solution, the encoder side may further perform signal selection to determine whether a second target virtual speaker needs to be obtained. If the second target virtual speaker needs to be obtained, the encoder side may generate a second virtual speaker signal. If the second target virtual speaker does not need to be obtained, the encoder side may not generate a second virtual speaker signal. The encoder may make a decision to determine whether another target virtual speaker needs to be selected in addition to the first target virtual speaker based on the configuration information of the audio encoder and / or the signal type information of the first scene audio signal. For example, if the encoding rate is higher than a preset threshold, it may be determined that target virtual speakers corresponding to two main sound field components need to be obtained, and the second target virtual speaker may be further determined in addition to the first target virtual speaker. In another example, if it is determined based on the signal type information of the first scene audio signal that target virtual speakers corresponding to two main sound field components whose sound source directions are dominant need to be obtained, a second target virtual speaker may be further determined in addition to the first target virtual speaker. On the contrary, if it is determined based on the encoding rate and / or the signal type 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, target virtual speakers other than the first target virtual speaker are no longer obtained. In this embodiment of the present application, the signal selection is performed to reduce the amount of data to be encoded by the encoder side and improve encoding efficiency.
[0037] According to a second aspect, an embodiment of the present application further comprises: receiving a bitstream; decoding the bitstream to obtain virtual speaker signals; and Obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker and the virtual speaker signal. The present invention provides an audio decoding method, including:
[0038] In this embodiment of the present application, a bitstream is first received, then the bitstream is decoded to obtain a virtual speaker signal, and finally, a reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker and the virtual speaker signal. In this embodiment of the present application, the virtual speaker signal can be obtained by decoding the bitstream, and the reconstructed scene audio signal is obtained based on the attribute information of the target virtual speaker and the virtual speaker signal. In this embodiment of the present application, the obtained bitstream carries the virtual speaker signal and the residual signal, which reduces the amount of decoded data and improves the decoding efficiency.
[0039] In a possible implementation, the method further comprises: The method includes decoding the bitstream to obtain the attribute information of the target virtual speaker.
[0040] In the above-mentioned solution, in addition to encoding the virtual speaker, the encoder side may 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 may be obtained by using the bitstream. In this embodiment of the present application, the bitstream may carry the encoded attribute information of the first target virtual speaker. In this way, the decoder side may determine the attribute information of the first target virtual speaker by decoding the bitstream. This facilitates audio decoding at the decoder side.
[0041] In a possible implementation, the attribute information of the target virtual speaker includes higher order Ambisonics HOA coefficients of the target virtual speaker; The step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker and the virtual speaker signal includes: performing a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain the reconstructed scene audio signal. Includes.
[0042] In the above solution, the decoder side first determines the HOA coefficient of the target virtual speaker. For example, the decoder side may pre-store the HOA coefficient of the target virtual speaker. After obtaining the virtual speaker signal and the HOA coefficient of the target virtual speaker, the decoder side may obtain a reconstructed scene audio signal based on the virtual speaker signal and the HOA coefficient of the target virtual speaker. In this way, the quality of the reconstructed scene audio signal is improved.
[0043] 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 attribute information of a target virtual speaker and the virtual speaker signal includes: determining an HOA coefficient for the target virtual speaker based on the position information of the target virtual speaker; and performing a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain the reconstructed scene audio signal. Includes.
[0044] In the above-mentioned solution, the attribute information of the target virtual speaker may include position information of the target virtual speaker. The decoder side pre-stores the HOA coefficient of each virtual speaker in the virtual speaker set, and the decoder side further stores the position information of each virtual speaker. For example, the decoder side may determine the HOA coefficient of the position information of the target virtual speaker based on the correspondence between the position information of the virtual speaker and the HOA coefficient of the virtual speaker, or the decoder side may calculate the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker. Therefore, the decoder side may determine the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker. In this way, the decoder side may determine the HOA coefficient of the target virtual speaker.
[0045] In a possible implementation, the virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, and the method further comprises: decoding the bitstream to obtain side information, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and obtaining the first virtual speaker signal and the second virtual speaker signal based on the side information and the downmixed signal; Equipped with; Accordingly, the step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker and the virtual speaker signal includes: obtaining the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal; Includes.
[0046] In the above solution, the encoder side generates a downmixed signal when a downmix process is performed based on the first virtual speaker signal and the second virtual speaker signal, and the encoder side may further perform signal compensation on the downmixed signal to generate side information. The side information may be written into a bitstream, and the decoder side may obtain the side information by using the bitstream, and the decoder side may obtain the first virtual speaker signal and the second virtual speaker signal by performing signal compensation based on the side information. Therefore, during signal reconstruction, the above-mentioned attribute information of the first virtual speaker signal, the second virtual speaker signal, and the target virtual speaker may be used to improve the quality of the decoded signal at the decoder side.
[0047] According to a third aspect, an embodiment of the present application comprises: an acquisition module configured to select a first target virtual speaker from a set of pre-defined virtual speakers based on a current scene audio signal; a signal generation module configured to generate a first virtual speaker signal based on the current scene audio signal and attribute information of the first target virtual speaker; and an encoding module configured to encode the first virtual speaker signal to obtain a bitstream; The present invention provides an audio encoding device including:
[0048] In a possible implementation, the acquisition module is configured to: acquire a main sound field component from the current scene audio signal based on the virtual speaker set; and select the first target virtual speaker from the virtual speaker set based on the main sound field component.
[0049] In the third aspect of the present application, the organization module of the audio encoding device may further perform the steps described in the first aspect and possible implementations. For details, please refer to the descriptions in the first aspect and possible implementations.
[0050] In a possible implementation, the acquisition module is configured to select an HOA coefficient for the main sound field component from a higher order Ambisonics HOA coefficient set based on the main 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 determine the virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the main sound field component as a first target virtual speaker.
[0051] In a possible implementation, 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 coefficients of the first target virtual speaker as the target virtual speaker.
[0052] 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 an audio encoder; and select the configuration parameters of the first target virtual speaker from the configuration parameters of the multiple virtual speakers based on the main sound field component.
[0053] 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 acquisition module is configured to determine the HOA coefficient of the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
[0054] 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 attribute information into the bitstream.
[0055] In a possible implementation, the current scene audio signal includes an HOA signal to be encoded, and the attribute information of the first target virtual speaker includes the HOA coefficient of the first target virtual speaker; The signal generation module is configured to perform a linear combination on the HOA signal to be encoded and the HOA coefficients to obtain a first virtual speaker signal.
[0056] In a possible implementation, the current scene audio signal includes a Higher Order Ambisonics HOA signal to be encoded, and the attribute information of the first target virtual speaker includes the position information of the first target virtual speaker; The signal generation module is configured to: obtain the HOA coefficients of the first target virtual speaker based on the position information of the first target virtual speaker; and perform a linear combination on the HOA signal to be encoded and the HOA coefficients to obtain the first virtual speaker signal.
[0057] 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 current scene audio signal; The signal generation module is configured to generate a second virtual speaker signal based on the current 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 second virtual speaker signal into the bitstream.
[0058] In a possible implementation, the signal generation module is configured to perform an alignment process on 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; In response, the encoding module is configured to encode the aligned second virtual speaker signal; The encoding module is configured to encode the aligned first virtual speaker signal accordingly.
[0059] 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 current scene audio signal; The signal generation module is configured to generate a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; Accordingly, the encoding module is configured to obtain a downmixed signal and side information based on the first virtual speaker signal and the second virtual speaker signal, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and to encode the downmixed signal and the side information.
[0060] In a possible implementation, the signal generation module is configured to perform an alignment process on 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; Accordingly, the encoding module is configured to obtain the downmixed signal and the side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; Accordingly, the side information indicates a relationship between the aligned first virtual loudspeaker signal and the aligned second virtual loudspeaker signal.
[0061] In a possible implementation, the acquisition module is configured to: determine, prior to the step of selecting a second target virtual speaker from the virtual speaker set based on the current scene audio signal, whether a target virtual speaker other than the first target virtual speaker needs to be acquired based on encoding rate and / or signal type information of the current scene audio signal; and if the target virtual speaker other than the first target virtual speaker needs to be acquired, select the second target virtual speaker from the virtual speaker set based on the current scene audio signal.
[0062] According to a fourth aspect, an embodiment of the present application comprises: a receiving module configured to receive the bitstream; a decoding module configured to decode the bitstream to obtain virtual speaker signals; and a reconstruction module configured to obtain a reconstructed scene audio signal based on attribute information of a target virtual speaker and the virtual speaker signal; The present invention provides an audio decoding device, including:
[0063] In a possible implementation, the decoding module is further configured to decode the bitstream to obtain the attribute information of the target virtual speaker.
[0064] In a possible implementation, the attribute information of the target virtual speaker includes higher order Ambisonics HOA coefficients of the target virtual speaker; The reconstruction module is configured to perform a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain the reconstructed scene audio signal.
[0065] In a possible implementation, the attribute information of the target virtual speaker includes position information of the target virtual speaker; The reconstruction module determines HOA coefficients of the target virtual speaker based on the position information of the target virtual speaker; and performing a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain the reconstructed scene audio signal; The present invention is configured to:
[0066] In a possible implementation, the virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, and the device further comprises a signal compensation module, where the decoding module is configured to decode the bitstream to obtain the side information, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; the signal compensation module is configured to obtain the first virtual speaker signal and the second virtual speaker signal based on the side information and the downmixed signal; Accordingly, the reconstruction module is configured to obtain the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal.
[0067] In the fourth aspect of the present application, the organization module of the audio decoding device may further perform the steps described in the second aspect and possible implementations. For details, please refer to the description in the second aspect and possible implementations.
[0068] 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.
[0069] 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.
[0070] According to a seventh aspect, an embodiment of the present application provides a communication apparatus. The communication apparatus may include an entity such as a terminal device or a chip. The communication apparatus includes a processor. Optionally, the communication apparatus further includes a memory. The memory is configured to store instructions. The processor is configured to execute the instructions in the memory to enable the communication apparatus to perform a method according to any one of the first or second aspects.
[0071] According to an eighth aspect, the present application provides a chip system. The chip system includes a processor configured to support an audio encoding device or an audio decoding device in implementing the functions in the aforementioned aspects, such as transmitting or processing data and / or information in the aforementioned methods. In a possible design, the chip system further includes a memory, the memory configured to store program instructions and data required for the audio encoding device or the audio decoding device. The chip system may include a chip, or may include a chip and another discrete component.
[0072] According to a ninth aspect, the present application provides a computer-readable storage medium comprising a bitstream generated by using a method according to any one of the implementations of the first aspect. [Brief description of the drawings]
[0073] [Figure 1] FIG. 1 is a schematic diagram of an organizational structure of an audio processing system according to an embodiment of the present application.
[0074] [Figure 2a] 1 is a schematic diagram of an application of an audio encoder and an audio decoder according to an embodiment of the present application to a terminal device;
[0075] [Figure 2b] FIG. 2 is a schematic diagram of an application of an audio encoder according to an embodiment of the present application to a wireless device or a core network device.
[0076] [Figure 2c] FIG. 2 is a schematic diagram of an application of an audio decoder according to an embodiment of the present application in a wireless device or core network device;
[0077] [Figure 3a] FIG. 2 is a schematic diagram of the application of a multi-channel encoder and a multi-channel decoder according to an embodiment of the present application to a terminal device;
[0078] [Figure 3b] FIG. 2 is a schematic diagram of an application of a multi-channel encoder according to an embodiment of the present application to a wireless device or a core network device;
[0079] [Figure 3c] FIG. 2 is a schematic diagram of an application of a multi-channel decoder according to an embodiment of the present application in a wireless device or core network device;
[0080] [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;
[0081] [Diagram 5] FIG. 2 is a schematic diagram of an encoder-side structure according to an embodiment of the present application.
[0082] [Figure 6] FIG. 2 is a schematic diagram of a decoder-side structure according to an embodiment of the present application;
[0083] [Figure 7] FIG. 2 is a schematic diagram of an encoder-side structure according to an embodiment of the present application.
[0084] [Figure 8] FIG. 2 is a schematic diagram of virtual speakers approximately evenly distributed over a sphere, according to an embodiment of the present application.
[0085] [Figure 9] FIG. 2 is a schematic diagram of an encoder-side structure according to an embodiment of the present application.
[0086] [Figure 10] FIG. 2 is a schematic diagram of an organizational structure of an audio encoding device according to an embodiment of the present application;
[0087] [Figure 11] FIG. 2 is a schematic diagram of an organizational structure of an audio decoding device according to an embodiment of the present application;
[0088] [Figure 12] FIG. 2 is a schematic diagram of an organizational structure of another audio encoding device according to an embodiment of the present application;
[0089] [Figure 13] FIG. 2 is a schematic diagram of an organizational structure of another audio decoding device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0090] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide an audio encoding and decoding method and apparatus, which reduces the amount of data of an audio signal in an encoding scene and improves the efficiency of encoding and decoding.
[0091] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings.
[0092] In the specification, claims, and accompanying drawings of this application, the terms "first", "second", etc. are intended to distinguish between similar objects and 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 this is merely a method of identification used when objects having the same attributes are described in the embodiments of this application. In addition, the terms "include", "have" and any variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or device that includes a set of units is not necessarily limited to those units, and may include other units that are not expressly listed or inherent to such process, method, product, or device.
[0093] The technical solutions in the embodiments of the present application may be applied to various audio processing systems. Figure 1 is a schematic diagram of an organizational structure of an audio processing system according to an embodiment of the present 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 coding 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 its audio decoding function to finally obtain a reconstructed signal.
[0094] In the embodiment of the present application, the audio encoding device may be applied to various terminal devices having audio communication requirements, and wireless devices and core network devices having transcoding requirements. For example, the audio encoding device may be an audio encoder of the aforementioned terminal device, wireless device, or core network device. Similarly, the audio decoding device may be applied to various terminal devices having audio communication requirements, and wireless devices and core network devices having transcoding requirements. For example, the audio decoding device may be an audio decoder of the aforementioned 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, etc. The audio encoder may further be an audio codec applied to a virtual reality (VR) technology streaming media service.
[0095] In this embodiment of the present application, an audio encoding and decoding module applicable to a virtual reality streaming media (VR streaming) service is used as an example. The end-to-end audio signal processing procedure includes: A preprocessing operation is performed on the audio signal A after the audio signal A passes through an acquisition module. The preprocessing operation includes filtering the low frequency part in the signal by using 20Hz or 50Hz as the boundary point. The orientation information in the signal is extracted. After the encoding process (audio encoding) and encapsulation (file / segment encapsulation), the audio signal is delivered to the decoder side. The decoder side first performs decapsulation and then performs decoding. A binaural rendering process is performed on the decoded signal, and the rendered signal is mapped to the listener's headphones. The headphones may be separate headphones or may be headphones on a glasses device.
[0096] 2a is a schematic diagram of an application of an audio encoder and an audio decoder to a terminal device according to an embodiment of the present 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. The first terminal device 20 is connected to a wireless or wired first network communication device 22, the first network communication device 22 is connected to a wireless or wired second network communication device 23 through a digital channel, and the second terminal device 21 is connected to the wireless or wired second network communication device 23. A wireless or wired network communication device may generally be a signal transmission device, for example a communication base station or a data switching device.
[0097] In audio communication, a terminal device serving as a transmitting end first obtains audio, performs audio coding on the obtained audio signal, and then performs channel coding, and transmits the audio signal on a digital channel by using a wireless network or a core network. A terminal device serving as a receiving end obtains a bit stream by performing channel decoding based on a received signal, and then restores the audio signal through audio decoding. The terminal device serving as a receiving end performs audio playback.
[0098] Fig. 2b is a schematic diagram of the application of the audio encoder according to an embodiment of the present application to a wireless device or a core network device. The wireless device or the core network device 25 includes a channel decoder 251, another audio decoder 252, an audio encoder 253 provided in this embodiment of the present application, and a channel encoder 254. The another audio decoder 252 is an audio decoder other than the above audio decoder. In the wireless device or the core network device 25, the signal input to the device is first channel decoded by using the channel decoder 251, then audio decoding is performed by using the another audio decoder 252, and then audio encoding is performed by using the audio encoder 253 provided in this embodiment of the present application. Finally, the audio signal is channel encoded by using the channel encoder 254, and then transmitted after the channel encoding is completed. The another audio decoder 252 performs audio decoding on the bitstream decoded by the channel decoder 251.
[0099] Fig. 2c is a schematic diagram of the application of the audio decoder according to an embodiment of the present application to a wireless device or a core network device. The wireless device or core network device 25 includes a channel decoder 251, an audio decoder 255 provided in this embodiment of the present application, another audio encoder 256, and a channel encoder 254. The another audio encoder 256 is another audio encoder other than the above audio encoder. In the wireless device or core network device 25, the signal input to the device is first channel decoded by using the channel decoder 251, then the received audio encoding bit stream is decoded by using the audio decoder 255, and then audio encoding is performed by using the another audio encoder 256. Finally, the audio signal is channel encoded by using the channel encoder 254, and then transmitted after the channel encoding is completed. If transcoding needs to be implemented in the wireless device or core network device, 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.
[0100] In some embodiments of the present application, an audio encoding device may be applied to various terminal devices having audio communication requirements, and wireless devices and core network devices having transcoding requirements. For example, the audio encoding device may be a multi-channel encoder of the aforementioned terminal device, wireless device, or core network device. Similarly, an audio decoding device may be applied to various terminal devices having audio communication requirements, and wireless devices and core network devices having transcoding requirements. For example, the audio decoding device may be a multi-channel decoder of the aforementioned terminal device, wireless device, or core network device.
[0101] 3a is a schematic diagram of the application of a multi-channel encoder and a multi-channel decoder to a terminal device according to an embodiment of the present 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 the audio encoding method provided in this embodiment of the present application, and the multi-channel decoder may perform the audio decoding method provided in this embodiment of the present 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 a wireless or wired second network communication device 33. The wireless or wired network communication device can generally be a signal transmission device, such as a communication base station or a data switching device. In audio communication, the terminal device serving as a transmitting end performs multi-channel coding on the acquired multi-channel signal, and then performs channel coding, and transmits the multi-channel signal on a digital channel by using a wireless network or a core network. The terminal device serving as a receiving end performs channel decoding according to the received signal to obtain a multi-channel signal coding bit stream, and then restores the multi-channel signal through multi-channel decoding, and the terminal device serving as the receiving end performs playback.
[0102] Fig. 3b is a schematic diagram of the application of a multi-channel encoder according to an embodiment of the present application to a wireless device or a core network device. The wireless device or core network device 35 includes a channel decoder 351, a further audio decoder 352, a multi-channel encoder 353 and a channel encoder 354. Fig. 3b is similar to Fig. 2b and the details will not be described again here.
[0103] Fig. 3c is a schematic diagram of the application of a multi-channel decoder according to an embodiment of the present application to a wireless device or a core network device. The wireless device or core network device 35 includes a channel decoder 351, a multi-channel decoder 355, a further audio encoder 356 and a channel encoder 354. Fig. 3c is similar to Fig. 2c and the details will not be described again here.
[0104] 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 the acquired multi-channel signal may be to obtain an audio signal by processing the acquired multi-channel signal, and then encode the acquired audio signal according to the method provided in this embodiment of the present application. The decoder side obtains the audio signal by performing decoding based on the multi-channel signal encoding bitstream, and restores the multi-channel signal after the up-mix process. Therefore, the embodiment of the present 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. If transcoding needs to be implemented in the wireless device or the core network device, the corresponding multi-channel encoding and decoding processes need to be performed.
[0105] The audio encoding and decoding method provided in the embodiment of the present application may include an audio encoding method and an audio decoding method. The audio encoding method is performed by an audio encoding device, the audio decoding method is performed by an audio decoding device, and the audio encoding device and the audio decoding device may communicate with each other. The following describes the audio encoding method and the audio decoding method provided in the embodiment of the present application based on the above-mentioned system architecture, audio encoding device, and audio decoding device. Figure 4 is a schematic flowchart of the interaction between the audio encoding device and the audio decoding device according to the embodiment of the present application. The following steps 401 to 403 may be performed by the audio encoding device (hereinafter referred to as the encoder side), and the following steps 411 to 413 may be performed by the audio decoding device (hereinafter referred to as the decoder side). The following processes are mainly included:
[0106] 401: Select a first target virtual speaker from a preset virtual speaker set based on a current scene audio signal.
[0107] The encoder side obtains a current scene audio signal, which is an audio signal obtained by acquiring a sound field at a position where a microphone is located in a space, and may also be referred to as an audio signal in an original scene. For example, the current scene audio signal may be an audio signal obtained by using a higher order ambisonics (HOA) technique.
[0108] In this embodiment of the present application, the encoder side may pre-configure a virtual speaker set. The virtual speaker set may include multiple virtual speakers. During the actual playback of the scene audio signal, the scene audio signal may be played back by using headphones, or may be played back by using multiple speakers arranged in a room. When speakers are used for playback, the basic method is to superimpose the signals of multiple speakers. In this way, under a certain criterion, the sound field at a certain point in the space (the position of the listener) is as close as possible to the original sound field when the scene audio signal is recorded. In this embodiment of the present 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, and a compressed signal is further generated. The virtual speakers represent speakers that are virtually present in the spatial sound field, and the virtual speakers may implement the playback of the scene audio signal on the encoder side.
[0109] In this embodiment of the present application, the virtual speaker set includes a plurality of virtual speakers, each of which corresponds to a virtual speaker configuration parameter (abbreviated as configuration parameter). The virtual speaker configuration parameter includes information such as, but not limited to, 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 side selects a first target virtual speaker from a pre-set virtual speaker set based on a current scene audio signal. The current scene audio signal is an audio signal to be encoded in an original scene, and the first target virtual speaker can be a virtual speaker in the virtual speaker set. For example, the first target virtual speaker can be selected from the pre-set 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 from the virtual speaker set that matches the current scene audio signal, for example, selecting a first target virtual speaker based on the sound field components acquired by each virtual speaker from the current scene audio signal. In another example, the first target virtual speaker is selected from the current scene audio signal based on the position information of each virtual speaker. The first target virtual speaker is a virtual speaker in the virtual speaker set that is used to play back the current scene audio signal, i.e., the encoder side can select a target virtual speaker from the virtual speaker set that can play back the current scene audio signal.
[0110] In this embodiment of the present application, after the first target virtual speaker is selected in step 401, subsequent processing processes for the first target virtual speaker, such as subsequent steps 402 and 403, may be performed. This is not limited in this specification. In this embodiment of the present application, in addition to the first target virtual speaker, more target virtual speakers may also be selected. For example, a second target virtual speaker may be selected. For the second target virtual speaker, similar processes to the subsequent steps 402 and 403 also need to be performed. For details, please refer to the description in the following embodiments.
[0111] In this embodiment of the present application, after the encoder side selects the first target virtual speaker, the encoder side may 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 based on a specific application scene. For example, the attribute information of the first target virtual speaker includes position information of the first target virtual speaker or HOA coefficient of the first target virtual speaker. The position information of the first target virtual speaker may be the spatial distribution position of the first target virtual speaker, or may be information about the position of the first target virtual speaker in the virtual speaker set relative to another virtual speaker. This specification is not specifically limited thereto. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient, and the HOA coefficient may also be referred to as an Ambisonic coefficient. The HOA coefficient of a virtual speaker will be described below.
[0112] For example, the HOA order may be one of 2nd to 10th orders, the signal sampling rate during audio signal recording is 48 to 192 kilohertz (kHz), and the sampling depth is 16 or 24 bits (bits). The HOA signal may be generated based on the HOA coefficients of the virtual speakers and the scene audio signal. The HOA signal is specified by spatial information having a sound field, and the HOA signal is information that describes the specific accuracy of the sound field signal at a specific point in space. Therefore, it may be considered that another representation format is used to describe the sound field signal at the position point. In this description method, the signal at the spatial position point may be described with the same accuracy by using a smaller amount of data, thereby implementing signal compression. The spatial sound field may be decomposed into a superposition of multiple plane waves. Therefore, theoretically, the sound field represented by the HOA signal may be represented by using a superposition of multiple plane waves, and each plane wave is represented by using a one-channel audio signal and a direction vector. The plane wave superposition representation can accurately represent the original sound field by using fewer channels, thereby implementing signal compression.
[0113] In some embodiments of the present application, in addition to the aforementioned step 401 performed by the encoder side, the audio encoding method provided in this embodiment of the present application further includes the following steps:
[0114] A1: Obtain the main sound field components from the current scene audio signal based on the virtual speaker set.
[0115] The main sound field component in stage A1 may also be referred to as the first main sound field component.
[0116] In a scenario in which step A1 is performed, the step of selecting a first target virtual speaker from a pre-defined virtual speaker set based on a current scene audio signal in the aforementioned step 401 includes:
[0117] B1: Select a first target virtual speaker from the virtual speaker set based on the main sound field components.
[0118] The encoder side obtains a virtual speaker set, and the encoder side performs signal decomposition on the current scene audio signal by using the virtual speaker set, thereby obtaining a main sound field component corresponding to the current scene audio signal. The main sound field component represents an audio signal corresponding to a main sound field in the current scene audio signal. For example, the virtual speaker set includes multiple virtual speakers, and the multiple sound field components can be obtained from the current scene audio signal based on the multiple virtual speakers, i.e., each virtual speaker obtains one sound field component from the current scene audio signal, and then the main sound field component can be selected from the multiple sound field components. For example, the main sound field component can be one or several sound field components having a maximum value among the multiple sound field components, or the main sound field component can be one or several sound field components having a dominant directionality among the multiple 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 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 side. In this embodiment of the present application, the encoder side may select the first target virtual speaker based on the main sound field component. In this manner, the encoder side may determine the first target virtual speaker.
[0119] In this embodiment of the present application, the encoder side may select the first target virtual speaker in a number of ways. For example, the encoder side 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, select a virtual speaker that fills the specified position as the first target virtual speaker. This is not limited in this specification.
[0120] In some embodiments of the present application, the step of selecting a first target virtual speaker from the virtual speaker set based on the main sound field component in the aforementioned step B1 comprises: selecting an HOA coefficient for the main sound field component from a high-order Ambisonics HOA coefficient set based on the main 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 determining a virtual speaker in the virtual speaker set corresponding to the HOA coefficient of the main sound field component as a first target virtual speaker; Includes.
[0121] The encoder side pre-configures an 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 component, the virtual speaker set is searched from the target virtual speaker corresponding to the HOA coefficient of the main sound field component based on the one-to-one correspondence. The found target virtual speaker is the first target virtual speaker. In this way, the encoder side can 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 component, it may be determined that the first target virtual speaker is virtual speaker 3.
[0122] In some embodiments of the present application, the step of selecting a first target virtual speaker from the virtual speaker set based on the main sound field component in the aforementioned step B1 further includes:
[0123] C1: Obtain configuration parameters of a first target virtual speaker based on the main sound field components.
[0124] C2: Generate HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker.
[0125] C3: A virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the first target virtual speaker is determined as the first target virtual speaker.
[0126] In the above solution, after obtaining the main sound field component, the encoder side may be used to 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 several sound field components having the maximum value among the multiple sound field components, or the main sound field component may be one or several sound field components having a dominant directionality among the multiple sound field components. The main sound field component may be used to determine a first target virtual speaker matching the current scene audio signal, and corresponding attribute information is configured for the first target virtual speaker, and the HOA coefficient of the first target virtual speaker may be generated based on the configuration parameters of the first target virtual speaker. The process of generating the HOA coefficient may be implemented according to the HOA algorithm, and the details will not be described herein. Each virtual speaker in the virtual speaker set corresponds to an HOA coefficient. Therefore, the first target virtual speaker may be selected from the virtual speaker set based on the HOA coefficient of each virtual speaker. In this way, the encoder side may determine the first target virtual speaker.
[0127] In some embodiments of the present application, the step of obtaining configuration parameters of a first target virtual speaker based on the main sound field components in step C1 includes: determining configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of the audio encoder; and 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 component; Includes.
[0128] In the above-mentioned solution, the audio encoder may store configuration parameters of each of the multiple virtual speakers in advance. The configuration parameters of each virtual speaker may be determined based on configuration information of the audio encoder. The audio encoder is the above-mentioned encoder side. The configuration information of the audio encoder includes, but is not limited to, HOA order, and encoding bit rate, etc. The configuration information of the audio encoder may be used to determine the number of virtual speakers and position parameters of each virtual speaker. In this manner, the encoder side may 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; when the encoding bit rate is high, multiple virtual speakers may be configured. In another example, the HOA order of the virtual speaker may be equal to the HOA order of the audio encoder. In this embodiment of the present application, in addition to the step of determining the configuration parameters of each of the multiple virtual speakers based on the configuration information of the audio encoder, the configuration parameters of each of the multiple virtual speakers may further be determined based on information defined by a user. For example, the user may define the position, HOA order, and number of virtual speakers of the virtual speakers, etc. This is not a limitation herein.
[0129] The encoder side obtains configuration parameters of multiple virtual speakers from the virtual speaker set. Each virtual speaker has a corresponding configuration parameter, and the configuration parameter of each virtual speaker 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 HOA coefficient of each virtual speaker can be generated based on the configuration parameter of the virtual speaker, and the process of generating the HOA coefficient can be implemented according to the HOA algorithm, and the details will not be described again in this specification. One HOA coefficient is generated separately for each virtual speaker in the virtual speaker set, and the multiple HOA coefficients configured separately for all virtual speakers in the virtual speaker set form an HOA coefficient set. In this way, the encoder side can determine the HOA coefficient of each virtual speaker in the virtual speaker set.
[0130] In some embodiments of the present application, 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 of the first target virtual speaker based on the configuration parameters of the first target virtual speaker in the above-mentioned step C2 includes the steps of: determining an HOA coefficient of the first target virtual speaker based on position information and HOA order information of the first target virtual speaker; Includes.
[0131] 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 HOA order information of the first target virtual speaker. For example, the position information of each virtual speaker in the virtual speaker set may be determined based on a locally equidistant virtual speaker space distribution manner. The locally equidistant virtual speaker space distribution manner refers to a plurality of virtual speakers being distributed in space in a locally equidistant manner. For example, locally equidistant may include being evenly distributed or unevenly distributed. The HOA coefficient of each virtual speaker may be generated based on the position information and HOA order information of the virtual speaker, and the process of generating the HOA coefficient may be implemented according to the HOA algorithm. In this way, the encoder side may determine the HOA coefficient of the first target virtual speaker.
[0132] In addition, in this embodiment of the present application, a group of HOA coefficients is generated separately for each virtual speaker in the virtual speaker set, and the groups of HOA coefficients form the aforementioned HOA coefficient set. The HOA coefficients are configured separately for all virtual speakers in the virtual speaker set to form the HOA coefficient set. In this way, the encoder side can determine the HOA coefficient of each virtual speaker in the virtual speaker set.
[0133] 402: Generate a first virtual speaker signal based on a current scene audio signal and attribute information of a first target virtual speaker.
[0134] After the encoder side obtains the current scene audio signal and the attribute information of the first target virtual speaker, the encoder side can play back the current scene audio signal, and the encoder side generates a first virtual speaker signal based on the current scene audio signal and the attribute information of the first target virtual speaker. The first virtual speaker signal is a playback signal of the current 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 that is selected by the encoder side and can play back the current scene audio signal. Therefore, the current scene audio signal is played back based on the attribute information of the first target virtual speaker, thereby obtaining the first virtual speaker signal. The data amount of the first virtual speaker signal is independent of the number of channels of the current 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 present application, compared with the current scene audio signal, the first virtual speaker signal is represented by using fewer channels. For example, the current scene audio signal is a third-order HOA signal, and the HOA signal is 16 channels. In this embodiment of the present application, the 16 channels can be compressed to two channels, that is, the virtual speaker signal generated by the encoder side is two channels. For example, the virtual speaker signal generated by the encoder side can include the above-mentioned first virtual speaker signal and second virtual speaker signal, and the number of channels of the virtual speaker signal generated by the encoder side is independent of the number of channels of the first scene audio signal. It can be seen from the description of the subsequent steps that the bitstream can carry the two-channel first virtual speaker signal. Accordingly, the decoder side receives the bitstream, obtains a two-channel virtual speaker signal by decoding the bitstream, and the decoder side can reconstruct a 16-channel scene audio signal based on the two-channel virtual speaker signal. In addition, it is guaranteed that the reconstructed scene audio signal has the same subjective and objective quality as the audio signal in the original scene.
[0135] It may be understood that the above steps 401 and 402 may be specifically implemented by a moving picture experts group (MPEG) spatial encoder.
[0136] In some embodiments of the present application, the current 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 of the first target virtual speaker; The step of generating a first virtual speaker signal based on a current scene audio signal and attribute information of a first target virtual speaker in step 402 includes the steps of: performing a linear combination on the HOA signal and HOA coefficients to be encoded of the first target virtual speaker to obtain a first virtual speaker signal; Includes.
[0137] For example, the current scene audio signal is a HOA signal to be encoded. The encoder side first determines an HOA coefficient of a first target virtual speaker. For example, the encoder side selects an HOA coefficient from an HOA coefficient set based on a main sound field component. The selected HOA coefficient is the HOA coefficient of the first target virtual speaker. After the encoder side obtains the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker, a first virtual speaker signal can be generated based on the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker. The HOA signal to be encoded can be obtained by performing a linear combination on the HOA coefficient of the first target virtual speaker, and the solution of the first virtual speaker signal can be converted into a solution of the linear combination.
[0138] For example, the attribute information of the first target virtual speaker may include the HOA coefficient of the first target virtual speaker. The encoder side may obtain the HOA coefficient of the first target virtual speaker by decoding the attribute information of the first target virtual speaker. The encoder side may perform a linear combination on the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker, i.e., the encoder side may combine the HOA signal to be encoded and the HOA coefficient of the first target virtual speaker together to obtain a linear combination matrix. Then, the encoder side may perform an optimal solution on the linear combination matrix, and the obtained optimal solution is the first virtual speaker signal. The optimal solution is related to the algorithm used to solve the linear combination matrix. In this embodiment of the present application, the encoder side may generate the first virtual speaker signal.
[0139] In some embodiments of the present application, the current 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 a current scene audio signal and attribute information of a first target virtual speaker in step 402 includes the steps of: Obtaining an HOA coefficient of the first target virtual speaker based on the position information of the first target virtual speaker; and performing a linear combination on the HOA signal and HOA coefficients to be encoded of the first target virtual speaker to obtain a first virtual speaker signal; Includes.
[0140] The attribute information of the first target virtual speaker may include position information of the first target virtual speaker. The encoder side pre-stores the HOA coefficient of each virtual speaker in the virtual speaker set, and the encoder side further stores the position information of each virtual speaker. There is a correspondence between the position information of the virtual speakers and the HOA coefficients of the virtual speakers. Therefore, the encoder side may determine the HOA coefficient of 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 side may obtain the HOA coefficient of the first target virtual speaker by decoding the attribute information of the first target virtual speaker.
[0141] After the encoder side obtains the HOA signal and HOA coefficients to be encoded of the first target virtual speaker, the encoder side performs a linear combination on the HOA signal and HOA coefficients to be encoded of the first target virtual speaker, i.e., the encoder side combines the HOA signal and HOA coefficients to be encoded of the first target virtual speaker together to obtain a linear combination matrix. Then, the encoder side can perform an optimal solution on the linear combination matrix, and the obtained optimal solution is the first virtual speaker signal.
[0142] For example, the HOA coefficient of the first target virtual speaker is 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 can be obtained by using the least squares method, i.e., the first virtual speaker signal. For example, the following calculation formula can be used: w=A -1 X
[0143] A -1 represents 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 channels of the N-th order HOA coefficient, and a represents the HOA coefficient of the first target virtual speaker. An example is given below.
number
[0144] X represents the HOA signal to be encoded, and the size of the matrix X is (M×L), where M is the number of channels of the N-th order HOA coefficients, L is the number of sampling points, and x represents the coefficients of the HOA signal to be encoded. An example is given below.
number
[0145] 403: Encode the virtual speaker signal to obtain a bitstream.
[0146] In this embodiment of the present application, after the encoder side generates the first virtual speaker signal, the encoder side may encode the first virtual speaker signal to obtain a bitstream. For example, the encoder side 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 referred to as an audio signal encoding bitstream. In this embodiment of the present application, the encoder side encodes the first virtual speaker signal instead of encoding the scene audio signal. A first target virtual speaker is selected, so that the sound field at the position where the listener is located in the space is as close as possible to the original sound field when the scene audio signal is recorded. This ensures the encoding quality of the encoder side. In addition, the amount of encoded data of the first virtual speaker signal is independent of the number of channels of the scene audio signal. This reduces the amount of data of the encoded scene audio signal and improves the efficiency of encoding and decoding.
[0147] In some embodiments of the present application, after the encoder side performs the above steps 401 to 403, the audio encoding method provided in this embodiment of the present application further includes the following steps: Encoding attribute information of a first target virtual speaker; and writing the encoded attribute information into a bitstream.
[0148] In addition to encoding the virtual speaker, the encoder side may 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 acquired bitstream may include the encoded virtual speaker and the encoded attribute information of the first target virtual speaker. In this embodiment of the present application, the bitstream may carry the encoded attribute information of the first target virtual speaker. In this way, the decoder side may determine the attribute information of the first target virtual speaker by decoding the bitstream. This facilitates audio decoding at the decoder side.
[0149] It should be noted that the above steps 401 to 403 describe the process of generating a first virtual speaker signal based on a first target virtual speaker when a first target speaker is selected from a virtual speaker set, and performing signal encoding based on the first virtual speaker. In this embodiment of the present application, in addition to the first target virtual speaker, the encoder side may also select more target virtual speakers. For example, the encoder side may further select a second target virtual speaker. For the second target virtual speaker, a process similar to the above steps 402 and 403 also needs to be performed. This is not limited in this specification. Details will be described below.
[0150] In some embodiments of the present application, in addition to the aforementioned steps performed by the encoder side, the audio encoding method provided in this embodiment of the present application further includes:
[0151] D1: Select a second target virtual speaker from the virtual speaker set based on the first scene audio signal.
[0152] D2: Generate a second virtual speaker signal based on the first scene audio signal and attribute information of a second target virtual speaker.
[0153] D3: Encode the second virtual speaker signal and write the encoded second virtual speaker signal into the bitstream.
[0154] The implementation of step D1 is similar to that of step 401 described above. The second target virtual speaker is another target virtual speaker selected by the encoder side and different from the first target virtual encoder. The first scene audio signal is an audio signal to be encoded in the original scene, and the second target virtual speaker can 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 matching the first scene audio signal from the virtual speaker set, for example, selecting the second target virtual speaker based on the sound field components acquired by each virtual speaker from the first scene audio signal.
[0155] In some embodiments of the present application, the audio encoding method provided in this embodiment of the present application further includes the following steps.
[0156] E1: Obtain the second main sound field component from the first scene audio signal based on a virtual speaker set.
[0157] In a scenario in which step E1 is performed, the step of selecting a second target virtual speaker from a pre-defined set of virtual speakers based on the first scene audio signal in the aforementioned step D1 includes:
[0158] F1: Select a second target virtual speaker from the virtual speaker set based on the second main sound field component.
[0159] The encoder side obtains a virtual speaker set, and the encoder side performs signal decomposition on the first scene audio signal by using the virtual speaker set, thereby obtaining a second main sound field component corresponding to the first scene audio signal. The second main sound field component represents an audio signal corresponding to a main sound field in the first scene audio signal. For example, the virtual speaker set includes multiple virtual speakers, and the multiple sound field components can be obtained from the first scene audio signal based on the multiple virtual speakers, i.e., each virtual speaker obtains one sound field component from the first scene audio signal, and then the second main sound field component can be selected from the multiple sound field components. For example, the second main sound field component can be one or several sound field components having a maximum value among the multiple sound field components, or the second main sound field component can be one or several sound field components having a dominant directionality among the multiple sound field components. The second target virtual speaker is selected from the virtual speaker set based on the second main sound field component. For example, the virtual speaker corresponding to the second main sound field component is the second target virtual speaker selected by the encoder side. In this embodiment of the present application, the encoder side may select the second target virtual speaker based on the main sound field component. In this manner, the encoder side may determine the second target virtual speaker.
[0160] In some embodiments of the present application, the step of selecting a second target virtual speaker from the virtual speaker set based on the second main sound field component in the aforementioned step F1 comprises: selecting an HOA coefficient for the second main sound field component from the HOA coefficient set based on the second main 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 determining a virtual speaker in the virtual speaker set corresponding to the HOA coefficient of the second main sound field component as a second target virtual speaker; Includes.
[0161] The above implementation is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again herein.
[0162] In some embodiments of the present application, the step of selecting a second target virtual speaker from the virtual speaker set based on the second main sound field component in the aforementioned step F1 further includes:
[0163] G1: Obtain the configuration parameters of the second target virtual speaker based on the second main sound field component.
[0164] G2: Generate HOA coefficients for the second target virtual speaker based on the configuration parameters of the second target virtual speaker.
[0165] G3: Determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the second target virtual speaker as the second target virtual speaker.
[0166] The above implementation is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again herein.
[0167] The above implementation is similar to the process of determining the first target virtual speaker in the above embodiment, and the details will not be described again herein.
[0168] In some embodiments of the present application, the step of obtaining configuration parameters of a second target virtual speaker based on the second main sound field component in step G1 includes: determining configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of the audio encoder; and selecting configuration parameters of a second target virtual speaker from the configuration parameters of the plurality of virtual speakers based on the second main sound field component; Includes.
[0169] The above implementation 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 herein.
[0170] In some embodiments of the present application, the configuration parameters of the second target virtual speaker include position information and HOA order information of the second target virtual speaker.
[0171] The step of generating HOA coefficients of the second target virtual speaker based on the configuration parameters of the second target virtual speaker in the aforementioned step G2 includes: Determining an HOA coefficient of the second target virtual speaker based on the position information and the HOA order information of the second target virtual speaker.
[0172] The above implementation is similar to the process of determining the HOA coefficient of the first target virtual speaker in the above embodiment, and the details will not be described again in this specification.
[0173] In some embodiments of the present application, the first scene audio signal may include an HOA signal to be encoded, and the attribute information of the second target virtual speaker includes an HOA coefficient of the second target virtual speaker; The step of generating a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker in step D2 includes the steps of: performing a linear combination on the HOA signal and HOA coefficients to be encoded of the second target virtual speaker to obtain a second virtual speaker signal; Includes.
[0174] In some embodiments of the present 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; The step of generating a second virtual speaker signal based on the first scene audio signal and attribute information of the second target virtual speaker in step D2 includes the steps of: Obtaining an HOA coefficient of the second target virtual speaker based on the position information of the second target virtual speaker; and performing a linear combination on the HOA signal and HOA coefficients to be encoded of the second target virtual speaker to obtain a second virtual speaker signal; Includes.
[0175] The above implementation is similar to the process of determining the first virtual speaker signal in the above embodiment, and the details will not be described again herein.
[0176] In this embodiment of the present application, after the encoder side generates the second virtual speaker signal, the encoder side may further encode the second virtual speaker signal and write the encoded second virtual speaker signal into the bitstream by performing step D3. The encoding method used by the encoder side is similar to step 403. In this way, the bitstream may carry the encoding result of the second virtual speaker signal.
[0177] In some embodiments of the present application, the audio encoding method performed by the encoder side may further include the following steps.
[0178] I1: Perform an alignment process on 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.
[0179] In a scenario in which step I1 is performed, the step of encoding the second virtual loudspeaker signal in step D3 accordingly comprises: encoding the aligned second virtual speaker signal; Accordingly, the step of encoding the first virtual loudspeaker signal in step 403 may include the steps of: The method includes encoding the aligned first virtual speaker signal.
[0180] The encoder side may generate a first virtual speaker signal and a second virtual speaker signal, and the encoder side may perform an alignment process on 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, there are two virtual speaker signals. The channel sequences of the virtual speaker signals of the current frame are 1 and 2, which correspond to the virtual speaker signals generated by the target virtual speakers P1 and P2, respectively. The channel sequences of the virtual speaker signals of the previous frame are 1 and 2, which correspond to the virtual speaker signals generated by the target virtual speakers P2 and P1, respectively. In this case, the channel sequence of the virtual speaker signals of the current frame may be adjusted based on the sequence of the target virtual speaker of the previous frame. For example, the channel sequence of the virtual speaker signals of 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 channel.
[0181] After obtaining the aligned first virtual speaker signal, the encoder side may encode the aligned first virtual speaker signal. In this embodiment of the present application, the correlation between the channels is enhanced by realigning and realigning the channels of the first virtual speaker signal. This facilitates the encoding process performed by the core encoder on the first virtual speaker signal.
[0182] In some embodiments of the present application, in addition to the aforementioned steps performed by the encoder side, the audio encoding method provided in this embodiment of the present application further includes:
[0183] D1: Select a second target virtual speaker from the virtual speaker set based on the first scene audio signal.
[0184] D2: Generate a second virtual speaker signal based on the first scene audio signal and attribute information of a second target virtual speaker.
[0185] Accordingly, in a scenario where the encoder side performs steps D1 and D2, the step of encoding the first virtual loudspeaker signal in step 403 includes:
[0186] J1: Obtain a downmixed signal and side information based on a first virtual speaker signal and a second virtual speaker signal, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal.
[0187] J2: Encode the downmixed signal and side information.
[0188] After obtaining the first virtual speaker signal and the second virtual speaker signal, the encoder side may further perform a downmix process based on the first virtual speaker signal and the second virtual speaker signal to generate a downmixed signal, for example, perform an amplitude downmix process on the first virtual speaker signal and the second virtual speaker signal to obtain a downmixed signal. In addition, side information may be generated based on the first virtual speaker signal and the second virtual speaker signal. The side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal. The relationship may be implemented in multiple ways. The side information may be used by the decoder side to perform an upmix on the downmixed signal and restore the first virtual speaker signal and the second virtual speaker signal. For example, the side information includes a signal information loss analysis parameter. In this way, the decoder side restores the first virtual speaker signal and the second virtual speaker signal by using the signal information loss analysis parameter. In another example, the 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, in which case the decoder side restores the first virtual speaker signal and the second virtual speaker signal by using the correlation parameter or the energy ratio parameter.
[0189] In some embodiments of the present application, in a scenario in which the encoder side performs steps D1 and D2, the encoder side may further perform the following steps.
[0190] I1: Perform an alignment process on 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.
[0191] In a scenario in which step I1 is performed, the step of obtaining a downmixed signal and side information based on the first virtual loudspeaker signal and the second virtual loudspeaker signal in step J1 accordingly comprises: obtaining a downmixed signal and side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; Accordingly, the side information indicates a relationship between the aligned first virtual loudspeaker signal and the aligned second virtual loudspeaker signal.
[0192] Before generating the downmixed signal, the encoder side may first perform an alignment operation of the virtual speaker signals, and then generate the downmixed signal and side information after completing the alignment operation. In this embodiment of the present application, the correlation between the channels is enhanced by realigning and realigning the channels of the first virtual speaker signal and the second virtual speaker, which facilitates the encoding process performed by the core encoder on the first virtual speaker signal.
[0193] It should be noted that in the above embodiment of the present application, the second scene audio signal may 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 depends on the application scenario, which is not limited in this specification.
[0194] In some embodiments of the present application, prior to the step of selecting a second target virtual speaker from the virtual speaker set based on the first scene audio signal in step D1, the audio signal encoding method provided in this embodiment of the present application further includes:
[0195] K1: Determine whether target virtual speakers other than the first target virtual speaker need to be obtained based on the encoding rate and / or signal type information of the first scene audio signal.
[0196] K2: If a target virtual speaker other than the first target virtual speaker needs to be obtained, select a second target virtual speaker from the virtual speaker set based on the first scene audio signal.
[0197] The encoder side may further perform signal selection to determine whether a second target virtual speaker needs to be obtained. If a second target virtual speaker needs to be obtained, the encoder side may generate a second virtual speaker signal. If a second target virtual speaker needs not to be obtained, the encoder side may not generate a second virtual speaker signal. The encoder may make a decision to determine whether another target virtual speaker needs to be selected in addition to the first target virtual speaker based on the configuration information of the audio encoder and / or the signal type information of the first scene audio signal. For example, if the encoding rate is higher than a preset threshold, it may be determined that target virtual speakers corresponding to two main sound field components need to be obtained, and the second target virtual speaker may be further determined in addition to the first target virtual speaker. In another example, if it is determined based on the signal type information of the first scene audio signal that target virtual speakers corresponding to two main sound field components whose sound source directions are dominant need to be obtained, a second target virtual speaker may be further determined in addition to the first target virtual speaker. On the contrary, if it is determined based on the encoding rate and / or the signal type 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, target virtual speakers other than the first target virtual speaker are no longer obtained. In this embodiment of the present application, the signal selection is performed to reduce the amount of data to be encoded by the encoder side and improve encoding efficiency.
[0198] When performing signal selection, the encoder side may determine whether a second virtual speaker signal needs to be generated. Since information loss occurs when the encoder side performs signal selection, signal compensation needs to be performed on the non-transmitted virtual speaker signal. The signal compensation may be selected, including but not limited to information loss analysis, energy compensation, envelope compensation, noise compensation, and the like. The compensation method may be linear compensation, nonlinear compensation, and the like. After the signal compensation is performed, side information may be generated, and the side information may be written into the bitstream. Thus, the decoder side may obtain the side information by using the bitstream. The decoder side may perform signal compensation based on the side information to improve the quality of the decoded signal at the decoder side.
[0199] According to the example described in the above embodiment, the first virtual speaker signal may be generated based on the first scene audio signal and the attribute information of the first target virtual speaker, and the audio encoder side encodes the first virtual speaker signal instead of directly encoding the first scene audio signal. In this embodiment of the present 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 may represent a sound field at a position where the listener is located in the space, and the sound field at this position is as close as possible to the original sound field when the first scene audio signal is recorded. This ensures the encoding quality of the audio encoder side. In addition, the first virtual speaker signal and the residual signal are encoded to obtain a bitstream. The amount of encoded data of the first virtual speaker signal is related to the first target virtual speaker and is independent of the number of channels of the first scene audio signal. This reduces the amount of encoded data and improves the encoding efficiency.
[0200] In this embodiment of the present application, the encoder side encodes the virtual speaker signals to generate a bitstream. Then, the encoder side may output the bitstream and transmit the bitstream to the decoder side through an audio transmission channel. The decoder side performs the following steps 411 to 413.
[0201] 411: Receive a bitstream.
[0202] The decoder side receives a bitstream from the encoder side. The bitstream may carry an encoded first virtual speaker signal. The bitstream may further carry encoded attribute information of a first target virtual speaker. This is not limited in this specification. It should be noted that the bitstream may not carry the attribute information of the first target virtual speaker. In this case, the decoder side may determine the attribute information of the first target virtual speaker by pre-configuring.
[0203] In addition, in some embodiments of the present application, when the encoder side 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 in this specification. It should be noted that the bitstream may not carry the attribute information of the second target virtual speaker. In this case, the decoder side may determine the attribute information of the second target virtual speaker by pre-configuration.
[0204] 412: Decode the bitstream to obtain virtual speaker signals.
[0205] After receiving the bitstream from the encoder side, the decoder side decodes the bitstream to obtain the virtual speaker signals from the bitstream.
[0206] It should be noted that the virtual speaker signal may specifically be the first virtual speaker signal described above, or may be the first virtual speaker signal and the second virtual speaker signal described above, which is not limited in this specification.
[0207] In some embodiments of the present application, after the decoder side performs the above steps 411 and 412, the audio decoding method provided in this embodiment of the present application further includes the following steps: Decoding the bitstream to obtain attribute information of the target virtual speaker.
[0208] In addition to encoding the virtual speaker, the encoder side may 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 may be obtained by using the bitstream. In this embodiment of the present application, the bitstream may carry the encoded attribute information of the first target virtual speaker. In this way, the decoder side may determine the attribute information of the first target virtual speaker by decoding the bitstream. This facilitates audio decoding at the decoder side.
[0209] 413: Obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker and the virtual speaker signal.
[0210] The decoder side may obtain attribute information of a target virtual speaker. The target virtual speaker is a virtual speaker in a virtual speaker set and used to play back the reconstructed scene audio signal. The attribute information of the target virtual speaker may include position information of the target virtual speaker and the HOA coefficient of the target virtual speaker. After obtaining the virtual speaker signal, the decoder side may reconstruct the signal based on the attribute information of the target virtual speaker, and output the reconstructed scene audio signal through signal reconstruction.
[0211] In some embodiments of the present application, the attribute information of the target virtual speaker includes an HOA coefficient of the target virtual speaker; The step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker and the virtual speaker signal in step 413 includes the steps of: performing a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain a reconstructed scene audio signal; Includes.
[0212] The decoder side first determines the HOA coefficient of the first target virtual speaker. For example, the decoder side may pre-store the HOA coefficient of the target virtual speaker. After obtaining the virtual speaker signal and the HOA coefficient of the target virtual speaker, the decoder side may obtain a reconstructed scene audio signal based on the virtual speaker signal and the HOA coefficient of the target virtual speaker. In this way, the quality of the reconstructed scene audio signal is improved.
[0213] For example, the HOA coefficients of 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 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 according to the following calculation formula: H=A'W'
[0214] H, obtained by using the above formula, is the reconstructed HOA signal.
[0215] In some embodiments of the present application, 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 and the virtual speaker signal in step 413 includes the steps of: Determining the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker; and performing a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain a reconstructed scene audio signal; Includes.
[0216] The attribute information of the target virtual speaker may include position information of the target virtual speaker. The decoder side pre-stores the HOA coefficient of each virtual speaker in the virtual speaker set, and the decoder side further stores the position information of each virtual speaker. For example, the decoder side may determine the HOA coefficient of the position information of the target virtual speaker based on the correspondence between the position information of the virtual speaker and the HOA coefficient of the virtual speaker, or the decoder side may calculate the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker. Therefore, the decoder side may determine the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker. In this way, the decoder side may determine the HOA coefficient of the target virtual speaker.
[0217] It can be seen from the description of the encoder-side method that 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. In this implementation scenario, the audio decoding method provided in this embodiment of the present application includes: obtaining side information from the bitstream, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and Obtaining a first virtual speaker signal and a second virtual speaker signal based on the side information and the downmixed signal. Further includes:
[0218] 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, such as 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, such as 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.
[0219] When the relationship between the first virtual speaker signal and the second virtual speaker signal may be a direct relationship, the decoder side may determine the first virtual speaker signal and the second virtual speaker signal based on the downmixed signal, the acquisition manner of 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 side may determine the first virtual speaker signal and the second virtual speaker signal based on the downmixed signal and the indirect relationship.
[0220] Accordingly, in step 413, the step of obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker and the virtual speaker signal includes: Obtaining a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal.
[0221] The encoder side generates a downmixed signal when a downmix process is performed based on the first virtual speaker signal and the second virtual speaker signal, and the encoder side may further perform signal compensation on the downmixed signal to generate side information. The side information may be written into a bitstream, and the decoder side may obtain the side information by using the bitstream, and the decoder side may obtain the first virtual speaker signal and the second virtual speaker signal by performing signal compensation based on the side information. Therefore, during signal reconstruction, the aforementioned attribute information of the first virtual speaker signal, the second virtual speaker signal, and the target virtual speaker may be used to improve the quality of the decoded signal at the decoder side.
[0222] According to the example described in the previous embodiment, in this embodiment of the present application, a virtual speaker signal can be obtained by decoding a bitstream, and the virtual speaker signal is used as a playback signal of a scene audio signal. A reconstructed scene audio signal is obtained based on the attribute information of a target virtual speaker and the virtual speaker signal. In this embodiment of the present application, the obtained bitstream carries the virtual speaker signal and a residual signal, which reduces the amount of decoded data and improves the decoding efficiency.
[0223] For example, in this embodiment of the present application, compared with the first scene audio signal, the first virtual speaker signal is represented by using fewer channels. For example, the first scene audio signal is a third-order HOA signal, and the HOA signal is 16 channels. In this embodiment of the present application, the 16 channels can be compressed to two channels, that is, the virtual speaker signal generated by the encoder side is two channels. For example, the virtual speaker signal generated by the encoder side can include the above-mentioned first virtual speaker signal and a second virtual speaker signal, and the number of channels of the virtual speaker signal generated by the encoder side is independent of the number of channels of the first scene audio signal. It can be seen from the description of the subsequent steps that the bitstream can carry the second channel virtual speaker signal. Accordingly, the decoder side receives the bitstream, obtains a two-channel virtual speaker signal by decoding the bitstream, and the decoder side can reconstruct a 16-channel scene audio signal based on the two-channel virtual speaker signal. In addition, it is guaranteed that the reconstructed scene audio signal has the same subjective and objective quality as the audio signal in the original scene.
[0224] In order to better understand and implement the aforementioned solutions in the embodiments of the present application, a specific description is provided below by using a corresponding application scenario as an example.
[0225] In this embodiment of the present application, an example is used in which the scene audio signal is an HOA signal. Sound waves propagate in an ideal medium, with the wave number k=w / c and the angular frequency w=2πf, where f is the sound wave frequency and c is the sound speed. The sound pressure p satisfies the following formula, where ∇ 2 is the Laplace operator.
number
[0226] The above equations are calculated in spherical coordinates. In the passive spherical domain, the solution of the above equations can be expressed as the following calculation:
number
[0227] In the above formula, r represents the spherical radius, θ represents the horizontal angle, φ represents the elevation angle, k represents the wave number, s is the amplitude of the ideal plane wave, and m is the HOA order sequence number.
number
number
number
number
[0228] The HOA coefficient is:
number
[0229] The following formula is provided:
number
[0230] The above formula is based on the fact that the sound field is expanded on a sphere based on spherical harmonics, and the coefficients
number
number
number
[0231] For example, in one configuration, when the scene audio is recorded, the HOA order may be 2nd to 6th order, the signal sampling rate is 48 to 192 kHz, and the sampling depth is 16 or 24 bits. The HOA signal is specified by spatial information with the sound field, and the HOA signal is a description of a certain accuracy of the sound field signal at a certain point in space. Therefore, it may be considered that another representation format is used to describe the sound field signal at a position point. In this description method, if the signal at said point can be described with the same accuracy by using a smaller amount of data, signal compression may be implemented.
[0232] A spatial sound field can be decomposed into a superposition of multiple plane waves. Thus, 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 a one-channel audio signal and a direction vector. If the representation of the plane wave superposition can better represent the original sound field by using fewer channels, signal compression can be implemented.
[0233] During the actual playback, the HOA signal can be played back by using headphones, or by using multiple speakers arranged in the room. When speakers are used for playback, the basic method is to superimpose the sound fields of multiple speakers. In this way, under a certain criterion, the sound field at a certain point in the space (the position of the listener) is as close as possible to the original sound field when the HOA signal is recorded. In this embodiment of the present application, it is assumed that a virtual speaker array is used. Then, the playback signal of the virtual speaker array is calculated, and the playback signal is used as a transmission signal to further generate a compressed signal. The decoder side decodes the bitstream to obtain the playback signal, and reconstructs the scene audio signal based on the playback signal.
[0234] In this embodiment of the present application, an encoder side applicable to scene audio signal encoding and a decoder side applicable to scene audio signal decoding are provided. The encoder side encodes the original HOA signal into a compressed bitstream, and the encoder side sends the compressed bitstream to the decoder side, and then the decoder side restores the compressed bitstream into a reconstructed HOA signal. In this embodiment of the present application, the amount of data compressed by the encoder side is as small as possible, or the quality of the HOA signal reconstructed by the decoder side at the same bitrate is higher.
[0235] In this embodiment of the present application, the problems of large amount of data, high bandwidth occupation, low compression efficiency, and low encoding quality can be solved when the HOA signal is encoded. The N-th order HOA signal is (N+1) 2 Since the HOA signal has multiple channels, direct transmission of the HOA signal would require consuming a large bandwidth. Therefore, an effective multi-channel coding scheme is needed.
[0236] In this embodiment of the present application, a different channel extraction method is used, and the assumption of the sound source is not limited in this embodiment of the present application, and the assumption of a single sound source in the time-frequency domain is not relied upon. Therefore, complex scenarios such as multi-source signals can be handled more effectively. The encoder and decoder in this embodiment of the present application provide a spatial encoding and decoding method, in which the original HOA signal is represented by fewer channels. FIG. 5 is a schematic diagram of the structure of the encoder side according to an embodiment of the present application. The encoder side includes a spatial encoder and a core encoder. The spatial encoder may perform 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 side transmits the bitstream to the decoder side. FIG. 6 is a schematic diagram of the structure of the decoder side according to an embodiment of the present application. The decoder side includes a core decoder and a spatial decoder. The core decoder first receives the bitstream from the encoder side, 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.
[0237] In the following, examples for the encoder side and the decoder side are described separately.
[0238] As shown in Fig. 7, the encoder side provided in the embodiment of the present application is described first. The encoder side 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, and a core encoder processing unit. In the following, the function of each organizational unit of the encoder side is described separately. In this embodiment of the present application, the encoder side shown in Fig. 7 may generate one virtual speaker signal, or may generate multiple virtual speaker signals. The procedure of generating multiple virtual speaker signals may be generated multiple times based on the structure of the encoder shown in Fig. 7. In the following, the procedure of generating one virtual speaker signal is used as an example.
[0239] The virtual speaker configuration unit is configured to configure the virtual speakers in the virtual speaker set to obtain a plurality of virtual speakers.
[0240] The virtual speaker configuration unit outputs virtual speaker configuration parameters based on the encoder configuration information. The encoder configuration information includes, but is not limited to, HOA order, encoding 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, etc.
[0241] The virtual speaker configuration parameters output by the virtual speaker configuration unit are used as input of the virtual speaker set generation unit.
[0242] The coding analysis unit is configured to perform coding analysis on the HOA signal to be coded, for example to analyze the sound field distribution of the HOA signal to be coded, including characteristics such as the number of sound sources, directivity, and dispersion of the HOA signal to be coded, which is used as a decision criterion for how to select the target virtual speaker.
[0243] In this embodiment of the present application, the encoder side may not include a coding analysis unit, i.e., the encoder side may not analyze the input signal, and no default configuration is used to determine how to select the target virtual speaker, which is not a limitation in this specification.
[0244] The encoder side acquires the HOA signal to be encoded, and may use, for example, an HOA signal recorded from a real acquisition device, or an HOA signal synthesized by using an artificial audio object 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.
[0245] 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".
[0246] The virtual speaker set generation unit generates the designated HOA coefficients of the candidate virtual speakers. Generating the HOA coefficients of 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. The method of determining the coordinates of the candidate virtual speakers includes, but is 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 gives an example of a method for generating a fixed number of evenly distributed virtual speakers.
[0247] The coordinates of the evenly distributed candidate virtual speakers are generated based on the number of candidate virtual speakers. For example, the almost evenly distributed speakers can be provided by using a numerical iterative calculation method. FIG. 8 is a schematic diagram of the almost evenly distributed virtual speakers on a sphere. Assume that several mass points are distributed on a unit sphere, and a secondary counter-repulsive force is placed between these mass points. This is similar to the electrostatic repulsive force between the same electric charge. These mass points are allowed to move freely under the repulsive action, and it is expected that the mass points should be evenly distributed when the mass points reach a stable state. In the calculation, the actual physical law is simplified, and the moving distance of the mass point is directly equal to the force acting on the mass point. Therefore, for the i-th mass point, the moving distance of the i-th mass point in the iterative calculation stage, i.e., the virtual force acting on the i-th mass point, is calculated according to the following calculation formula:
number
[0248]
number
number
number
[0249] Displacement Vector
number
[0250] Next, the HOA coefficients of the candidate virtual speakers are generated. The amplitude is s and the position coordinates of the speaker are (θ s ,φ s ) and the shape of the ideal plane wave after it has been expanded by using spherical harmonics are expressed as the following formula:
number
[0251] The HOA coefficient for a plane wave is
number
number
[0252] The HOA coefficients of the candidate virtual speakers output by the virtual speaker set generation unit are used as the input of the virtual speaker selection unit.
[0253] 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 matching the HOA signal to be encoded" or may be referred to as a matching virtual speaker for short.
[0254] 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.
[0255] In the following, the method of selecting a virtual speaker is described 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 coefficients 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 in the candidate virtual speaker. The goal is to match and combine the HOA signal to be coded by using the HOA coefficients of the candidate virtual speaker. In an embodiment, a dot product is performed by using the HOA coefficients of the candidate virtual speaker and the HOA signal to be coded, and the candidate virtual speaker with the maximum absolute value of the dot product is selected as the target virtual speaker, i.e., the virtual speaker to be matched, and the projection of the HOA signal to be coded on the candidate virtual speaker is superimposed on the linear combination of the HOA coefficients 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 for the difference is repeated to implement an iterative calculation, and a matching virtual speaker is generated at each iteration, and the coordinates of the matching virtual speaker and the HOA coefficients of the matching 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.
[0256] The coordinates of the target virtual speaker and the HOA coefficients of the target virtual speaker output by the virtual speaker selection unit are used as inputs of the virtual speaker signal generation unit.
[0257] In some embodiments of the present application, in addition to the organizational unit shown in Fig. 7, the encoder side may further include a side information generating unit. The encoder side may not include a side information generating unit. This is only an example and is not limited in this specification.
[0258] The coordinates of the target virtual loudspeakers and / or the HOA coefficients of the target virtual loudspeakers output by the virtual loudspeaker selection unit are used as multiple or single inputs of the side information generation unit.
[0259] The side information generation unit converts the HOA coefficients of the target virtual speaker or the coordinates of the target virtual speaker into side information, which is easy for the core encoder to process and transmit.
[0260] The output of the side information generation unit is used as the input of the core encoder processing unit.
[0261] The virtual speaker signal generation unit is configured to generate a virtual speaker signal based on the encoded HOA signal and attribute information of the target virtual speaker.
[0262] The virtual speaker signal generation unit calculates a virtual speaker signal based on the HOA signal to be encoded and the HOA coefficients of a target virtual speaker.
[0263] The HOA coefficients of the matching 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 can be obtained by using the least squares method, that is, the virtual speaker signal. For example, the following calculation formula can be used: w=A- 1 X
[0264] A -1 represents 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 channels of the N-th order HOA coefficient, and a represents the HOA coefficient of the target virtual speaker. An example is given below.
number
[0265] X represents the HOA signal to be encoded, and the size of the matrix X is (M×L), where M is the number of channels of the N-th order HOA coefficients, L is the number of sampling points, and x represents the coefficients of the HOA signal to be encoded. An example is given below.
number
[0266] The virtual speaker signals output by the virtual speaker signal generation unit are used as inputs of the core encoder processing unit.
[0267] In some embodiments of the present application, in addition to the organizational unit shown in Figure 7, the encoder side may further include a signal alignment unit. The encoder side may not include a signal alignment unit. This is only an example and is not limited in this specification.
[0268] The virtual speaker signals output by the virtual speaker signal generation unit are used as inputs of the signal alignment unit.
[0269] The signal alignment unit is configured to realign the channels of the virtual speaker signals to enhance correlation between the channels and to facilitate processing by the core encoder.
[0270] The aligned virtual speaker signals output by the signal alignment unit are input to the core encoder processing unit.
[0271] 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 transmission bitstream.
[0272] The core encoder processing includes, but is not limited to, transforms, quantization, psychoacoustic models, bitstream generation, etc., and may process frequency domain or time domain channels, although this is not a limitation herein.
[0273] As shown in FIG. 9, the decoder side provided in this embodiment of the present application may include a core decoder processing unit and an HOA signal reconstruction unit.
[0274] The core decoder processing unit is configured to perform core decoder processing on the transmission bitstream to obtain virtual speaker signals.
[0275] If the encoder side carries side information in the bitstream, the decoder side further needs to include a side information decoding unit, which is not limited in this specification.
[0276] The side information decoding unit is configured to decode the decoded side information output by the core decoder processing unit to obtain the decoded side information.
[0277] The core decoder processing may include transformation, bitstream parsing, dequantization, etc., and may process frequency domain channels or time domain channels, although this is not limited herein.
[0278] The virtual speaker signal output by the core decoder processing unit is 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.
[0279] The side information decoding unit converts the decoded side information into HOA coefficients of the target virtual speaker.
[0280] The HOA coefficients of the target virtual speaker output by the side information decoding unit are the input of the HOA signal reconstruction unit.
[0281] The HOA signal reconstruction unit is configured to reconstruct the HOA signal by using the virtual speaker signal and the HOA coefficients of the target virtual speaker.
[0282] The HOA coefficients of the target virtual speaker are represented by a matrix A'. The size of the matrix A' is (M×C) and is denoted as A'. C is the number of target virtual speakers, and M is the number of channels of the N-th order HOA coefficients. The virtual speaker signals form a matrix (C×L), which is denoted as W', and L is the number of signal sampling points. The reconstructed HOA signal H is obtained according to the following calculation formula: H=A'W'
[0283] The reconstructed HOA signal output by the HOA signal reconstruction unit is the output of the decoder side.
[0284] In this embodiment of the present application, the encoder side can use a spatial encoder to represent the original HOA signal by using fewer channels, for example, the original 3rd order HOA signal.The spatial encoder in this embodiment of the present application can compress 16 channels to 4 channels to ensure that there is no obvious difference in subjective hearing.Subjective hearing test is an evaluation criterion in audio coding and decoding, and no obvious difference is a certain level of subjective evaluation.
[0285] In some other embodiments of the present application, the virtual speaker selection unit on the encoder side may select a target virtual speaker from a virtual speaker set or use a virtual speaker at a specified position as the target virtual speaker, and the virtual speaker signal generation unit obtains the virtual speaker signal by directly performing projection onto each target virtual speaker.
[0286] In the above method, the virtual speaker at the specified position is used as the target virtual speaker, which can simplify the virtual speaker selection process and improve the encoding and decoding speed.
[0287] In some other embodiments of the present application, the encoder side 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. In the above manner, the signal alignment process is reduced, and the complexity of the encoder side is also reduced.
[0288] It can be seen from the above exemplary description that in this embodiment of the present application, the selected target virtual speaker is applied to the encoding and decoding of the HOA signal. In this embodiment of the present application, accurate sound source positioning of the HOA signal can be obtained, the direction of the reconstructed HOA signal is more accurate, the encoding efficiency is higher, and the complexity on the decoder side is very low. This is beneficial for the application to mobile terminals and can improve the performance of encoding and decoding.
[0289] It should be noted that the above-mentioned method embodiments are expressed as a series of operations for the sake of simplicity. However, according to the present application, some steps may be performed in other orders or simultaneously, and therefore, those skilled in the art should understand that the present application is not limited to the described order of operations. It should be further understood by those skilled in the art that all the embodiments described herein belong to exemplary embodiments, and the operations and modules involved are not necessarily required by the present application.
[0290] In order to better implement the solutions of the embodiments of the present application, the following further provides related devices for implementing the solutions.
[0291] Please refer to Fig. 10. The audio encoding device 1000 provided in the embodiment of the present application may include an acquisition module 1001, a signal generation module 1002, and an encoding module 1003, where The acquisition module is configured to select a first target virtual speaker from a set of pre-defined virtual speakers based on a current scene audio signal; The signal generating module is configured to generate a first virtual speaker signal based on the current scene audio signal and the attribute information of the first target virtual speaker; The encoding module is configured to encode the first virtual speaker signal to obtain a bitstream.
[0292] In some embodiments of the present application, the acquisition module is configured to acquire a main sound field component from the current scene audio signal based on the virtual speaker set; and select a first target virtual speaker from the virtual speaker set based on the main sound field component.
[0293] In some embodiments of the present application, the acquisition module is configured to: select an HOA coefficient for the main sound field component from a higher-order Ambisonics HOA coefficient set based on the main 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 determine the virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the main sound field component as a first target virtual speaker.
[0294] In some embodiments of the present 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 of 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 of the first target virtual speaker as the target virtual speaker.
[0295] In some embodiments of the present 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 select configuration parameters of a first target virtual speaker from the configuration parameters of the plurality of virtual speakers based on the main sound field component.
[0296] In some embodiments of the present application, the configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker; The acquisition module is configured to determine an HOA coefficient of the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
[0297] In some embodiments of the present application, the encoding module is further configured to encode attribute information of the first target virtual speaker and write the encoded attribute information into the bitstream.
[0298] In some embodiments of the present application, the current scene audio signal includes an HOA signal to be encoded, and the attribute information of the first target virtual speaker includes an HOA coefficient of the first target virtual speaker; The signal generation module is configured to perform a linear combination on the HOA signal to be encoded and the HOA coefficients to obtain a first virtual speaker signal.
[0299] In some embodiments of the present application, the current 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 signal generation module is configured to obtain HOA coefficients of the first target virtual speaker based on 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 to obtain the first virtual speaker signal.
[0300] In some embodiments of the present application, the acquisition module is configured to select a second target virtual speaker from the virtual speaker set based on the current scene audio signal; The signal generating module is configured to generate a second virtual speaker signal based on the current scene audio signal and the attribute information of the second target virtual speaker; The encoding module is configured to encode the second virtual loudspeaker signal and write the encoded second virtual loudspeaker signal to the bitstream.
[0301] In some embodiments of the present application, the signal generation module is configured to perform an alignment process on 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; In response, the encoding module is configured to encode the aligned second virtual speaker signal; The encoding module is configured to encode the aligned first virtual speaker signal accordingly.
[0302] In some embodiments of the present application, the acquisition module is configured to select a second target virtual speaker from the virtual speaker set based on the current scene audio signal; The signal generating module is configured to generate a second virtual speaker signal based on the current scene audio signal and the attribute information of the second target virtual speaker; Accordingly, the encoding module is configured to obtain a downmixed signal and side information based on the first virtual speaker signal and the second virtual speaker signal, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and to encode the downmixed signal and the side information.
[0303] In some embodiments of the present application, the signal generation module is configured to perform an alignment process on 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; Accordingly, the encoding module is configured to obtain a downmixed signal and side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; Accordingly, the side information indicates a relationship between the aligned first virtual loudspeaker signal and the aligned second virtual loudspeaker signal.
[0304] In some embodiments of the present application, the acquisition module is configured to: determine, prior to the step of selecting a second target virtual speaker from the virtual speaker set based on the current scene audio signal, whether a target virtual speaker other than the first target virtual speaker needs to be acquired based on the encoding rate and / or signal type information of the current scene audio signal; and, if a target virtual speaker other than the first target virtual speaker needs to be acquired, select a second target virtual speaker from the virtual speaker set based on the current scene audio signal.
[0305] Referring to FIG. 11, the audio decoding device 1100 provided in the embodiment of the present application may include: a receiving module 1101, a decoding module 1102, and a reconstruction module 1103, where The receiving module is configured to receive the bitstream; The decoding module is configured to decode the bitstream to obtain a virtual speaker signal; The reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker and the virtual speaker signal.
[0306] 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.
[0307] In some embodiments of the present application, the attribute information of the target virtual speaker includes higher-order Ambisonics HOA coefficients of the target virtual speaker; The reconstruction module is configured to perform a synthesis process on the virtual speaker signals and the HOA coefficients of the target virtual speaker to obtain a reconstructed scene audio signal.
[0308] In some embodiments of the present application, the attribute information of the target virtual speaker includes position information of the target virtual speaker; The reconstruction module determines the HOA coefficient of the target virtual speaker based on the position information of the target virtual speaker; and Performing a synthesis process on the virtual speaker signal and the HOA coefficients of the target virtual speaker to obtain a reconstructed scene audio signal. The present invention is configured to:
[0309] 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, and the apparatus further includes a signal compensation module, wherein: The decoding module is configured to decode the bitstream to obtain side information, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; The signal compensation module is configured to obtain a first virtual speaker signal and a second virtual speaker signal based on the side information and the downmixed signal; Accordingly, the reconstruction module is configured to obtain a reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal.
[0310] It should be noted that the exchange of contents such as information between the modules / units of the device and their execution processes are based on the same idea as the method embodiments of the present application, and produce the same technical effects as the method embodiments of the present application. For specific contents, please refer to the above description of the method embodiments of the present application. Details will not be described again in this specification.
[0311] The embodiments of the present application further provide a computer storage medium, which stores a program, and the program performs some or all of the steps described in the above method embodiments.
[0312] The following describes another audio encoding device provided in an embodiment of the present application. Please refer to Fig. 12. The audio encoding device 1200 includes: 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 the present application, the receiver 1201, the transmitter 1202, the processor 1203, and the memory 1204 may be connected through a bus or in another manner. In FIG. 12, connection through a bus is used as an example.
[0313] Memory 1204 may include read-only memory and random access memory and may 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, operating instructions, executable modules or data structures, or a subset or extended set thereof. The operating instructions may include various operating instructions used to implement various operations. The operating system may include various system programs that implement various basic services and handle hardware-based tasks.
[0314] The processor 1203 controls the operation of the audio encoding device, and may also be referred to as a central processing unit (CPU). In certain applications, 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 figures will be referred to as a bus system.
[0315] The methods disclosed in the embodiments of the present application may be applied to the processor 1203 or may be implemented by using the processor 1203. The processor 1203 may be an integrated circuit chip and has signal processing capabilities. During implementation, the steps of the aforementioned methods may be completed by using instructions in the form of hardware integrated logic circuits or software in the processor 1203. The processor 1203 may be a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a separate hardware component. The processor may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the methods disclosed with reference to the embodiments of the present application may be directly executed and completed by a hardware decoding processor, or may be executed and completed 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 information in the memory 1204 and completes the steps in the above-mentioned method together with the processor hardware 1203.
[0316] 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. The transmitter 1202 may be configured to output the digital or textual information through an external interface.
[0317] In this embodiment of the present application, the processor 1203 is configured to execute the audio encoding method executed by the audio encoding device in the previous embodiment illustrated in FIG.
[0318] The following describes another audio decoding device provided in an embodiment of the present application. Please refer to Figure 13. The audio decoding device 1300 includes: 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 the present application, the receiver 1301, the transmitter 1302, the processor 1303, and the memory 1304 may be connected through a bus or in another manner. In FIG. 13, the connection through a bus is used as an example.
[0319] Memory 1304 may include read-only memory and random access memory and may provide instructions and data for processor 1303. A portion of memory 1304 may further include NVRAM. Memory 1304 stores an operating system, operating instructions, executable modules or data structures, or a subset or extended set thereof. The operating instructions may include various operating instructions used to implement various operations. The operating system may include various system programs that implement various basic services and handle hardware-based tasks.
[0320] The processor 1303 controls the operation of the audio decoding device, and the processor 1303 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 figures will be referred to as a bus system.
[0321] The methods disclosed in the embodiments of the present application may be applied to the processor 1303 or may be implemented by using the processor 1303. The processor 1303 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, the steps of the aforementioned methods may be implemented using integrated logic circuits of hardware in the processor 1303 or using instructions in the form of software. The aforementioned processor 1303 may be a general-purpose processor, a DSP, an ASIC, an FPGA or another programmable logic device, a discrete gate or transistor logic device, or a separate hardware component. The processor may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc. The steps of the methods disclosed with reference to the embodiments of the present application may be directly executed and completed by a hardware decoding processor, or may be executed and completed 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 information in the memory 1304 and completes the steps in the above-mentioned method together with the hardware 1303 in the processor.
[0322] In this embodiment of the present application, the processor 1303 is configured to execute the audio decoding method executed by the audio decoding device in the previous embodiment shown in FIG.
[0323] 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, and 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 according to any one of the implementations of the first aspect or the audio decoding method according to any one of the implementations of the second aspect. 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 located outside the chip, such as, for example, a read-only memory (ROM), another type of static storage device that can store static information and instructions, or a random access memory (RAM).
[0324] The processor may be a general purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits configured to control the execution of a program of the method of the first or second aspect.
[0325] Additionally, it should be noted that the described apparatus embodiments are merely examples. The units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units, and may be located in one location or distributed among multiple network units. Some or all of these modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. In addition, in the accompanying drawings of the embodiments of the device provided by the present application, the connection relationships between the modules indicate that the modules have communication connections with each other, which may be specifically implemented as one or more communication buses or signal cables.
[0326] Based on the above implementation description, a person skilled in the art can clearly understand that the present application can be implemented by software in addition to the necessary general-purpose hardware or dedicated hardware (including dedicated integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc.). Generally, any function that can be performed by a computer program can be easily implemented by using corresponding hardware. Furthermore, the specific hardware structure used to achieve the same function can be in various forms, such as in the form of an analog circuit, a digital circuit, or a dedicated circuit. However, for the present application, in most cases, the software program implementation is a better implementation. Based on such understanding, the technical solution of the present application that essentially or partially contributes to the prior art can be implemented in the form of a software product. The computer software product is stored in a readable storage medium, such as a floppy disk, a USB, a flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or a computer optical disk, and includes some instructions for instructing a computer device (which can be a personal computer, a server, and a network device, etc.) to execute the method described in the embodiments of the present application.
[0327] All or some of the above embodiments may be implemented using software, hardware, firmware, or any combination thereof. If software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product.
[0328] A computer program product includes one or more computer instructions. When the computer program instructions are loaded into a computer and executed, all or part of the procedures or functions according to the embodiments of the present application are generated. 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 wave, 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), 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 virtual speaker set based on a main sound field component of a current scene audio signal, where the main sound field component represents an audio signal corresponding to a main sound field in the current scene audio signal; generating a first virtual speaker signal by performing a linear combination on a Higher Order Ambisonics (HOA) signal to be encoded in the current scene audio signal and an HOA coefficient of the first target virtual speaker obtained according to attribute information of the first target virtual speaker, where the first virtual speaker signal is an optimal solution of a linear combination matrix obtained by the linear combination; and Encoding the first virtual speaker signal to obtain a bitstream. A method comprising:
2. The step of selecting the first target virtual speaker from the virtual speaker set based on the main sound field component comprises: selecting an HOA coefficient for the main sound field component from an HOA coefficient set based on the main 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 determining a virtual speaker in the virtual speaker set corresponding to the HOA coefficient of the main sound field component as the first target virtual speaker; The method of claim 1 , comprising:
3. The step of selecting the first target virtual speaker from the virtual speaker set based on the main sound field component comprises: obtaining configuration parameters of the first target virtual speaker based on the main sound field components; generating the HOA coefficients for the first target virtual speaker based on the configuration parameters of the first target virtual speaker; and determining a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the first target virtual speaker as the first target virtual speaker; The method of claim 1 , comprising:
4. The step of obtaining configuration parameters of the first target virtual speaker based on the main sound field component includes: determining configuration parameters of a plurality of virtual speakers in the virtual speaker set based on configuration information of an audio encoder; and 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 component. The method of claim 3 , comprising:
5. 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 comprises: determining the HOA coefficient of the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker; The method according to claim 3 or 4, comprising:
6. The method further comprises: The method of claim 1 , further comprising the steps of: encoding the attribute information of the first target virtual speaker; and writing the encoded attribute information into the bitstream.
7. A method according to any one of claims 1 to 6, wherein the attribute information of the first target virtual speaker includes the HOA coefficient of the first target virtual speaker.
8. A method according to any one of claims 1 to 6, wherein the attribute information of the first target virtual speaker includes position information of the first target virtual speaker, and the HOA coefficient of the first target virtual speaker is obtained based on the position information of the first target virtual speaker.
9. The method further comprises: selecting a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; generating a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; and encoding the second virtual speaker signal and writing the encoded second virtual speaker signal into the bitstream. The method of any one of claims 1 to 8, comprising:
10. The method further comprises: performing an alignment process on 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. With Accordingly, the step of encoding the second virtual speaker signal may further comprise: encoding the aligned second virtual speaker signal; Accordingly, the step of encoding the first virtual speaker signal may further comprise: The method of claim 9 , comprising encoding the aligned first virtual speaker signal.
11. The method further comprises: selecting a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; and generating a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; With Accordingly, the step of encoding the first virtual speaker signal may further comprise: obtaining a downmixed signal and side information based on the first virtual speaker signal and the second virtual speaker signal, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and encoding the downmixed signal and the side information 9. The method of claim 1 , comprising:
12. The method further comprises: performing an alignment process on 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. With Accordingly, the step of obtaining a downmixed signal and side information based on the first virtual speaker signal and the second virtual speaker signal comprises: obtaining the downmixed signal and the side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal. Including; The method of claim 11 , wherein the side information accordingly indicates a relationship between the aligned first virtual loudspeaker signal and the aligned second virtual loudspeaker signal.
13. Prior to the step of selecting a second target virtual speaker from the set of virtual speakers based on the current 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 type information of the current scene audio signal; and selecting the second target virtual speaker from the virtual speaker set based on the current scene audio signal if the target virtual speaker other than the first target virtual speaker needs to be obtained.
13. The method of any one of claims 9 to 12, comprising:
14. 1. An audio decoding method, comprising: receiving a bitstream; Decoding the bitstream to obtain a virtual speaker signal and attribute information of a target virtual speaker; and Obtaining a reconstructed scene audio signal by performing a synthesis process on the virtual speaker signal and a Higher Order Ambisonics (HOA) coefficient of the target virtual speaker obtained according to the attribute information of the target virtual speaker. A method comprising:
15. The method of claim 14 , wherein the attribute information of the target virtual speaker includes the Higher Order Ambisonics (HOA) coefficients of the target virtual speaker.
16. The attribute information of the target virtual speaker includes position information of the target virtual speaker; The method of claim 14 , wherein the HOA coefficients of the target virtual speaker are determined based on the position information of the target virtual speaker.
17. The virtual speaker signal is a downmixed signal obtained by downmixing a first virtual speaker signal and a second virtual speaker signal, and the method further comprises: decoding the bitstream to obtain side information, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; and obtaining the first virtual speaker signal and the second virtual speaker signal based on the side information and the downmixed signal; With Accordingly, the step of obtaining a reconstructed scene audio signal based on attribute information of a target virtual speaker and the virtual speaker signal includes: obtaining the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal; 17. The method of any one of claims 14 to 16, comprising:
18. An audio encoding device, comprising: an obtaining module configured to select a first target virtual speaker from a preset virtual speaker set based on a main sound field component of a current scene audio signal, where the main sound field component represents an audio signal corresponding to a main sound field in the current scene audio signal; a signal generation module configured to generate a first virtual speaker signal by performing a linear combination on a Higher Order Ambisonics (HOA) signal to be encoded in the current scene audio signal and an HOA coefficient of the first target virtual speaker obtained according to attribute information of the first target virtual speaker, where the first virtual speaker signal is an optimal solution of a linear combination matrix obtained by the linear combination; and an encoding module configured to encode the first virtual speaker signal to obtain a bitstream; An apparatus comprising:
19. 19. The apparatus of claim 18, wherein the acquisition module is configured to: select an HOA coefficient for the main sound field component from an HOA coefficient set based on the main 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 determine a virtual speaker in the virtual speaker set that corresponds to the HOA coefficient of the main sound field component as the first target virtual speaker.
20. 19. The device of claim 18, wherein the acquisition module is configured to: acquire configuration parameters of the first target virtual speaker based on the main sound field component; generate the HOA coefficient of 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 of the first target virtual speaker as the first target virtual speaker.
21. 21. The apparatus of claim 20, 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 select 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 component.
22. The configuration parameters of the first target virtual speaker include position information and HOA order information of the first target virtual speaker; 22. The apparatus of claim 20 or 21, wherein the acquisition module is configured to determine the HOA coefficients of the first target virtual speaker based on the position information and the HOA order information of the first target virtual speaker.
23. 23. The apparatus of claim 18, wherein the encoding module is further configured to encode the attribute information of the first target virtual speaker and write the encoded attribute information to the bitstream.
24. An apparatus as described in any one of claims 18 to 23, wherein the attribute information of the first target virtual speaker includes the HOA coefficient of the first target virtual speaker.
25. The attribute information of the first target virtual speaker includes position information of the first target virtual speaker; 24. The apparatus of claim 18, wherein the HOA coefficients of the first target virtual speaker are obtained based on the position information of the first target virtual speaker.
26. The acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; The signal generation module is configured to generate a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; 26. The apparatus of claim 18, wherein the encoding module is configured to encode the second virtual speaker signal and to write the encoded second virtual speaker signal into the bitstream.
27. the signal generation module is configured to perform an alignment process on 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; In response, the encoding module is configured to encode the aligned second virtual speaker signal; 27. The apparatus of claim 26, wherein the encoding module is configured to encode the aligned first virtual speaker signal accordingly.
28. The acquisition module is configured to select a second target virtual speaker from the set of virtual speakers based on the current scene audio signal; The signal generation module is configured to generate a second virtual speaker signal based on the current scene audio signal and attribute information of the second target virtual speaker; 26. The apparatus of claim 18, wherein the encoding module is configured accordingly to obtain a downmixed signal and side information based on the first virtual loudspeaker signal and the second virtual loudspeaker signal, where the side information indicates a relationship between the first virtual loudspeaker signal and the second virtual loudspeaker signal; and to encode the downmixed signal and the side information.
29. the signal generation module is configured to perform an alignment process on 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; Accordingly, the encoding module is configured to obtain the downmixed signal and the side information based on the aligned first virtual speaker signal and the aligned second virtual speaker signal; 30. The apparatus of claim 28, wherein the side information accordingly indicates a relationship between the aligned first virtual speaker signal and the aligned second virtual speaker signal.
30. 30. The apparatus of claim 18, 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 encoding rate and / or signal type information of the current scene audio signal before selecting a second target virtual speaker from the virtual speaker set based on the current scene audio signal; and if the target virtual speaker other than the first target virtual speaker needs to be acquired, select the second target virtual speaker from the virtual speaker set based on the current scene audio signal.
31. An audio decoding device, comprising: a receiving module configured to receive the bitstream; a decoding module configured to decode the bitstream to obtain a virtual speaker signal and attribute information of a target virtual speaker; and a reconstruction module configured to obtain a reconstructed scene audio signal by performing a synthesis process on the virtual speaker signal and a higher-order Ambisonics (HOA) coefficient of the target virtual speaker obtained according to the attribute information of the target virtual speaker. An apparatus comprising:
32. The apparatus of claim 31 , wherein the attribute information of the target virtual speaker includes the Higher Order Ambisonics (HOA) coefficients of the target virtual speaker.
33. The attribute information of the target virtual speaker includes position information of the target virtual speaker; The apparatus of claim 31 , wherein the HOA coefficients of the target virtual speaker are determined based on the position information of the target virtual speaker.
34. 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 comprises a signal compensation module, where the decoding module is configured to decode the bitstream to obtain side information, where the side information indicates a relationship between the first virtual speaker signal and the second virtual speaker signal; the signal compensation module is configured to obtain the first virtual speaker signal and the second virtual speaker signal based on the side information and the downmixed signal; 34. The apparatus of claim 31, wherein the reconstruction module is configured to obtain the reconstructed scene audio signal based on the attribute information of the target virtual speaker, the first virtual speaker signal, and the second virtual speaker signal.
35. 14. An audio encoding device, comprising at least one processor coupled to a memory and configured to implement a method according to any one of claims 1 to 13 by reading and executing instructions in the memory.
36. The audio encoding device of claim 35 , further comprising the memory.
37. 18. An audio decoding device, comprising at least one processor coupled to a memory and configured to implement the method of any one of claims 14 to 17 by reading and executing instructions in the memory.
38. The audio decoding device of claim 37 , further comprising the memory.
39. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 13 or claims 14 to 17.
Citation Information
Patent Citations
Method and apparatus for encoding and decoding successive frames of ambisonics representation of two-dimensional or three-dimensional sound field
JP2012133366A
Efficient rendering of virtual sound fields
JP2021527354A
Efficient rendering of virtual soundfields
WO2019241345A1