Scene audio decoding method and electronic device

By determining a suitable combination of coding methods in the scene audio signal for encoding and decoding, the problem of low coding performance of the HOA signal is solved, the coding efficiency and fluency are improved, and it is suitable for scene audio signals with different channel numbers.

WO2024212637A1PCT designated stage expired Publication Date: 2024-10-17HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071760
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-01-11
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

The existing technology has low coding performance for HOA signals, resulting in a large amount of data and difficulty in transmission and storage. Moreover, the HOA signal is used to record more detailed sound scene information as the order increases, resulting in low coding and decoding efficiency.

Method used

A scene audio decoding method is provided. By acquiring the scene audio signal, determining the encoding method combination corresponding to the signal, selecting a suitable combination from a pre-established encoding method set for encoding and decoding, and using a combination of encoding methods corresponding to multiple channels. Make up for the shortcomings of a single encoding method and reduce code rate overhead and encoding complexity.

Benefits of technology

It improves coding efficiency and decoding efficiency, ensures coding performance and audio fluency in different scenes, is suitable for scene audio signals with different channel numbers, and reduces bit rate overhead and coding complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071760_17102024_PF_FP_ABST
    Figure CN2024071760_17102024_PF_FP_ABST
Patent Text Reader

Abstract

A scene audio decoding method and an electronic device. The method comprises: first, receiving a code stream; then determining from a decoding mode set a decoding mode combination corresponding to the code stream, wherein the decoding mode set comprises a plurality of decoding mode combinations; and next, decoding the code stream on the basis of the decoding mode combination corresponding to the code stream, so as to obtain a reconstructed scene audio signal. In this way, the time consumed by the whole decoding process can be saved on, thereby improving the decoding efficiency; the method is suitable for decoding scene audio signals of different scenes; in addition, decoding mode combinations with better coding performance are generally selected to establish a decoding mode set, and therefore the audio reconstruction quality of scene audio signals of scenes can be guaranteed to a certain extent, and the flexibility is high.
Need to check novelty before this filing date? Find Prior Art

Description

Scene audio decoding method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 13, 2023, with application number 202310409986.7 and application name “Scene Audio Decoding Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of audio coding and decoding, and in particular to a scene audio decoding method and electronic device. Background Art

[0003] 3D audio technology uses computers and signal processing to acquire, process, transmit, and render real-world sound events and three-dimensional sound field information for playback. 3D audio imparts a strong sense of space, envelopment, and immersion, creating an extraordinary, immersive auditory experience. High-order ambisonics (HOA) technology, owing to its independence from speaker layout during recording, encoding, and playback, as well as the rotatable playback capabilities of HOA format data, offers greater flexibility in 3D audio playback and has garnered widespread attention and research.

[0004] For an N-order HOA signal, the corresponding number of channels is (N+1) 2 As the HOA order increases, the information in the HOA signal used to record more detailed sound scenes also increases; however, the amount of data in the HOA signal also increases, which makes transmission and storage difficult. Therefore, HOA signal encoding and decoding are necessary. However, existing technologies have low encoding performance for HOA signals.

[0005] Summary of the Invention

[0006] In view of this, the present application provides a scene audio decoding method and electronic device.

[0007] In a first aspect, an embodiment of the present application provides a scene audio encoding method, the method comprising: first, obtaining a scene audio signal; then, determining a coding method combination corresponding to the scene audio signal from a coding method set, wherein the coding method set includes multiple coding method combinations; and then, encoding the scene audio signal based on the coding method combination corresponding to the scene audio signal.

[0008] In this way, by querying the pre-established encoding mode set, the encoding mode combination used for encoding can be quickly determined; thereby, the time consumed in the entire encoding process can be saved and the encoding efficiency can be improved.

[0009] Secondly, for scene audio signals of different scenes, a coding method combination suitable for different scenes can be selected from a pre-established coding method set for encoding; since the coding method set usually uses a coding method combination with better coding performance, this application can guarantee the coding performance of the scene audio signals of each scene to a certain extent, and is highly flexible.

[0010] Among them, the encoding method combination corresponding to the scene audio signal includes encoding methods corresponding to multiple channels. When the encoding methods corresponding to at least two channels among the multiple channels are different, compared with encoding using a single encoding method, encoding using the encoding method combination can adopt the advantages of one encoding method in the encoding method combination and compensate for the shortcomings of another encoding method to a certain extent, thereby improving the encoding performance to a certain extent.

[0011] In addition, even if the encoding methods corresponding to the multiple channels included in the encoding method combination corresponding to the scene audio signal are the same, they are all direct encoding methods (that is, the signal itself is encoded, for example, the signal can be subjected to time-frequency transformation, preprocessing, bit allocation, quantization and entropy coding and other operations); compared with the prior art, the number of channels of the audio signal encoded in this application is fewer; therefore, under the premise of achieving the same quality, the encoding bit rate of this application is lower.

[0012] Exemplarily, the scene audio signal involved in the embodiments of the present application may refer to a signal used to describe the sound field; wherein the scene audio signal may include: an HOA signal (wherein the HOA signal may include a three-dimensional HOA signal and a two-dimensional HOA signal (also referred to as a planar HOA signal)) and a three-dimensional audio signal; the three-dimensional audio signal may refer to other audio signals in the scene audio signal except the HOA signal.

[0013] Exemplarily, the scene audio signal may include audio signals of C channels, where C is a positive integer.

[0014] For example, when the scene audio signal is an HOA signal, the HOA signal may be an N-order HOA signal, that is, when m is truncated to the Nth term, the above formula (3)

[0015] For example, an N-order HOA signal may include C channels of audio signals, where C=(N+1) 2 For example, when N=3, the N-order HOA signal includes 16 channels of audio signals; when N=4, the N-order HOA signal includes 25 channels of audio signals.

[0016] Exemplarily, the scene audio signal may be one frame or multiple frames.

[0017] Exemplarily, each coding mode combination in the coding mode set may include coding modes corresponding to multiple channels.

[0018] According to the first aspect, a coding mode combination in the coding mode set corresponds to a type of scene information, wherein the scene information may include information related to the coded scene audio signal.

[0019] According to the first aspect, or any implementation of the first aspect above, the scene information includes coding rate and / or channel information.

[0020] The channel information may include the number of channels and a channel identifier (eg, channel number).

[0021] According to the first aspect, or any implementation method of the first aspect above, a coding mode combination of the coding mode set includes coding modes corresponding to K channels, where K is a positive integer; the coding mode corresponding to one channel includes at least one of the following: a first coding mode, a second coding mode, and a third coding mode; wherein the first coding mode is the coded signal itself; the second coding mode is a spatial coding mode; and the third coding mode is a coding mode other than the first coding mode and the second coding mode.

[0022] Exemplarily, the first encoding method may be to encode the signal itself, that is, to perform time-frequency transformation, preprocessing, bit allocation, quantization, entropy coding and other operations on the signal; wherein, the first encoding method may also be referred to as a direct encoding method.

[0023] Exemplarily, the second encoding method may be a spatial encoding method, which is an encoding method for encoding attribute information of a target virtual speaker determined based on a scene audio signal.

[0024] Exemplarily, the third encoding mode may include one or more encoding modes other than the first encoding mode and the second encoding mode.

[0025] In one possible manner, the third encoding mode is channel copy (or HOA copy) encoding. Optionally, the third encoding mode is decorrelation encoding.

[0026] In one possible manner, each encoding mode combination may include a first encoding mode and a third encoding mode.

[0027] In one possible manner, each encoding mode combination may include a first encoding mode, a second encoding mode, and a third encoding mode.

[0028] In one possible manner, each encoding mode combination may include a first encoding mode and a second encoding mode.

[0029] In one possible manner, each encoding mode combination may include the first encoding mode.

[0030] Since the first encoding method is used for encoding, the encoding quality can be improved, but the required bit rate overhead is high; the other encoding methods (the second encoding method, the third encoding method) are used for encoding, the bit rate overhead can be reduced, but the encoding quality will be reduced; furthermore, the present application adopts a combination of the first encoding method and other encoding methods for encoding, which reduces the bit rate overhead and encoding complexity while ensuring a certain degree of encoding quality.

[0031] According to the first aspect, or any implementation of the first aspect above, the encoding modes corresponding to at least two channels of the K channels are different.

[0032] It should be understood that, in a possible scenario, the encoding modes corresponding to each channel in a encoding mode combination of the encoding mode set are the same.

[0033] According to the first aspect, or any implementation method of the first aspect above, the scene audio signal includes audio signals of C channels, the encoding method combination corresponding to the scene audio signal includes encoding methods corresponding to the C channels, and the scene audio signal is encoded based on the encoding method combination corresponding to the scene audio signal, including: using the encoding method corresponding to the C channels to encode the C channels of the scene audio signal, where C is a positive integer.

[0034] According to the first aspect, or any implementation of the first aspect above, determining a coding mode combination corresponding to a scene audio signal from a coding mode set includes: based on current scene information, searching for a coding mode combination corresponding to the scene audio signal from the coding mode set.

[0035] According to the first aspect, or any implementation method of the first aspect above, when a coding mode combination in a coding mode set corresponds to a coding rate, based on the current scene information, searching the coding mode combination corresponding to the scene audio signal from the coding mode set includes: based on the current coding rate, searching the coding mode combination corresponding to the scene audio signal from the coding mode set.

[0036] In this way, a coding mode combination is selected from a coding mode set based on the current coding rate, so that encoding can be adapted to the current coding rate, thereby ensuring audio fluency.

[0037] According to the first aspect, or any implementation method of the first aspect above, the scene audio signal includes C channels of audio signals, and based on the current coding rate, searching for a coding mode combination corresponding to the scene audio signal from the coding mode set, including: searching for multiple coding mode combinations corresponding to the current coding rate from the coding mode set, wherein the multiple coding mode combinations corresponding to the current coding rate correspond to multiple numbers of channels; based on the number of channels C of the scene audio signal, searching for a coding mode combination corresponding to the scene audio signal from the multiple coding mode combinations corresponding to the current coding rate.

[0038] In this way, based on the current encoding rate and the number of channels of the scene audio signal, a coding method combination is selected from the coding method set for encoding, which can adapt to the current encoding rate for encoding, thereby ensuring audio fluency. It can also be applied to the encoding of scene audio signals containing different numbers of channels, with high versatility. Moreover, since the coding method set is generally established by selecting a coding method combination with better encoding performance, this application can also guarantee the encoding quality of various scene audio signals containing different numbers of channels to a certain extent.

[0039] According to the first aspect, or any implementation method of the first aspect above, the scene audio signal includes C channels of audio signals, and based on the current coding rate, searching for a coding mode combination corresponding to the scene audio signal from a coding mode set, including: searching for a coding mode combination corresponding to the current coding rate from the coding mode set, wherein the coding mode combination corresponding to the current coding rate includes coding modes corresponding to K channels, K is an integer greater than or equal to C; from the coding mode combination corresponding to the current coding rate, selecting the coding modes corresponding to the C channels of the scene audio signal to form a coding mode combination corresponding to the scene audio signal.

[0040] In this way, based on the current coding rate and the channel identifier of the scene audio signal, a coding method combination is selected from the coding method set for encoding, which can adapt to the current coding rate for encoding, thereby ensuring audio fluency. It can also be applied to the encoding of scene audio signals containing different numbers of channels, with high versatility. Moreover, since the coding method set is generally established by selecting a coding method combination with better coding performance, this application can also guarantee the encoding quality of various scene audio signals containing different numbers of channels to a certain extent.

[0041] According to the first aspect, or any implementation method of the first aspect above, the scene audio signal includes an audio signal of C channels. When a coding mode combination in the coding mode set corresponds to a channel number, based on the current scene information, the coding mode combination corresponding to the scene audio signal is searched from the coding mode set, including: based on the channel number C of the scene audio signal, searching for the coding mode combination corresponding to the scene audio signal from the coding mode set.

[0042] In this way, a coding scheme combination is selected from a coding scheme set based on the number of channels of the scene audio signal. This is suitable for encoding scene audio signals with different numbers of channels, and has high versatility. Furthermore, since a coding scheme combination with superior coding performance is typically selected when establishing a coding scheme set, the present application can also guarantee, to a certain extent, the encoding quality of various scene audio signals with different numbers of channels.

[0043] According to the first aspect, or any implementation of the first aspect above, the spatial encoding method is an encoding method for encoding attribute information of a target virtual speaker, and the target virtual speaker information is determined based on a scene audio signal.

[0044] It should be noted that the position of the target virtual speaker matches the position of the sound source in the scene audio signal; based on the attribute information of the target virtual speaker and the audio signals of some channels in the scene audio signal, a virtual speaker signal corresponding to the target virtual speaker can be generated; and based on the virtual speaker signal, the scene audio signal can be reconstructed. Therefore, the encoder encodes the audio signals of some channels in the scene audio signal and the attribute information of the target virtual speaker and sends them to the decoder. The decoder can reconstruct the scene audio signal based on the reconstructed audio signals of some channels obtained by decoding and the attribute information of the target virtual speaker.

[0045] The data volume of the attribute information of the target virtual speaker is much smaller than the data volume of the audio signal of one channel; therefore, compared with the encoding in the first encoding method, the encoding in the second encoding method requires a smaller bit rate overhead.

[0046] The attribute information of the target virtual speaker includes at least one of the following: position information of the target virtual speaker, a position index corresponding to the position information of the target virtual speaker, or a virtual speaker index of the target virtual speaker.

[0047] For example, in the spherical coordinate system, the position information of the target virtual speaker can be expressed as Among them, θ s3 is the horizontal angle information of the target virtual speaker, is the pitch angle information of the target virtual speaker.

[0048] Exemplarily, the position index is used to uniquely identify the position of a virtual speaker. The position index may include a horizontal angle index (used to uniquely identify horizontal angle information) and a pitch angle index (used to uniquely identify pitch angle information). The virtual speaker position index corresponds one-to-one to the virtual speaker position information.

[0049] Exemplarily, the virtual speaker index may be used to uniquely identify a virtual speaker; wherein the position information / position index of the virtual speaker corresponds one-to-one to the virtual speaker index.

[0050] According to the first aspect, or any implementation of the first aspect above, the third encoding method includes channel copy encoding.

[0051] According to the first aspect, or any implementation of the first aspect above, the channel copy coding is a decorrelation coding method.

[0052] According to the first aspect, or any implementation of the first aspect above, a preset identifier is encoded, and the preset identifier indicates the type of scene information. In this way, after the preset identifier is transmitted to the decoding end, it is convenient for the decoder to use a decoding method combination corresponding to the encoding method combination of the encoding end for decoding.

[0053] In a second aspect, an embodiment of the present application provides a scene audio decoding method, which includes: first, receiving a bit stream; then, determining a decoding method combination corresponding to the bit stream from a decoding method set, wherein the decoding method set includes multiple decoding method combinations; then, decoding the bit stream based on the decoding method combination corresponding to the bit stream to obtain a reconstructed scene audio signal.

[0054] In this way, by querying the pre-established decoding mode set, the decoding mode combination for decoding can be quickly determined; thus, the time consumed in the entire decoding process can be saved, and the decoding efficiency can be improved.

[0055] Secondly, for audio signals in different scenarios, a decoding combination method suitable for different scenarios can be selected from a pre-established set of decoding methods for decoding; since the establishment of a coding method set usually selects a coding method combination with better coding performance (the decoding method combination and the coding method combination correspond to each other), this application can guarantee the audio reconstruction quality of different scenarios to a certain extent and has high flexibility.

[0056] According to the second aspect, a decoding mode combination in the decoding mode set corresponds to a type of scene information.

[0057] According to the second aspect, or any implementation of the second aspect, the scene information includes decoding rate and / or channel information.

[0058] According to the second aspect, or any implementation method of the above second aspect, a decoding method combination of the decoding method set includes decoding methods corresponding to K channels, where K is a positive integer; the decoding method corresponding to one channel includes at least one of the following: a first decoding method, a second decoding method, or a third decoding method; wherein the first decoding method is the decoding signal itself; the second decoding method is a spatial decoding method; and the third decoding method is a decoding method other than the first decoding method and the second decoding method.

[0059] According to the second aspect, or any implementation of the second aspect, among the decoding modes corresponding to the K channels, the decoding modes corresponding to at least two channels are different.

[0060] According to the second aspect, or any implementation method of the above second aspect, the reconstructed scene audio signal includes a reconstructed audio signal of C channels, the decoding method combination corresponding to the code stream includes a decoding method corresponding to C channels, and based on the decoding method combination corresponding to the code stream, the code stream is decoded to obtain the reconstructed scene audio signal, including: based on the code stream, using the decoding method corresponding to the C channels to decode the C channels to obtain the reconstructed scene audio signal, where C is a positive integer.

[0061] According to the second aspect, or any implementation of the second aspect above, determining a decoding mode combination corresponding to the code stream from a decoding mode set includes: searching for a decoding mode combination corresponding to the code stream from the decoding mode set based on current scene information.

[0062] According to the second aspect, or any implementation of the second aspect above, when a decoding mode combination in a decoding mode set corresponds to a decoding rate, searching the decoding mode combination corresponding to the code stream from the decoding mode set based on current scene information includes: searching the decoding mode combination corresponding to the code stream from the decoding mode set based on the current decoding rate.

[0063] According to the second aspect, or any implementation method of the second aspect above, the reconstructed scene audio signal includes a reconstructed audio signal of C channels, and based on the current decoding rate, searching for a decoding mode combination corresponding to the code stream from the decoding mode set, including: searching for multiple decoding mode combinations corresponding to the current decoding rate from the decoding mode set, wherein the multiple decoding mode combinations corresponding to the current decoding rate correspond to multiple numbers of channels; based on the number of channels C of the reconstructed scene audio signal, determining the decoding mode combination corresponding to the code stream from the multiple decoding mode combinations corresponding to the current decoding rate.

[0064] According to the second aspect, or any implementation method of the above second aspect, the reconstructed scene audio signal includes a reconstructed audio signal of C channels, and based on the current decoding rate, a decoding method combination corresponding to the code stream is searched from the decoding method set, including: determining a decoding method combination corresponding to the current decoding rate from the decoding method set, wherein a decoding method combination corresponding to the current decoding rate includes decoding methods corresponding to K channels, K is greater than or equal to C; from a decoding method combination corresponding to the current decoding rate, selecting the decoding methods corresponding to the C channels of the reconstructed scene audio signal to form a decoding method combination corresponding to the code stream.

[0065] According to the second aspect, or any implementation method of the second aspect above, the reconstructed scene audio signal includes a reconstructed audio signal of C channels. When a decoding method combination in the decoding method set corresponds to a channel number, based on the current scene information, the decoding method combination corresponding to the code stream is searched from the decoding method set, including: based on the channel number C of the reconstructed scene audio signal, determining the decoding method combination corresponding to the code stream from the decoding method set.

[0066] According to the second aspect, or any implementation of the second aspect, the spatial decoding method is a decoding method of reconstructing based on attribute information of a target virtual speaker, and the target virtual speaker information is obtained by decoding a bitstream.

[0067] According to the second aspect, or any implementation of the second aspect above, the third decoding method includes channel copy decoding.

[0068] According to the second aspect, or any implementation of the second aspect above, the channel copy decoding is a decorrelation decoding method.

[0069] According to the second aspect, or any implementation of the second aspect above, the method further includes: parsing a preset identifier from the bitstream; and searching, based on current scene information, a decoding mode combination corresponding to the bitstream from a decoding mode set, including: searching, based on current scene information corresponding to the preset identifier, a decoding mode combination corresponding to the bitstream from the decoding mode set.

[0070] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0071] In a third aspect, an embodiment of the present application provides a method for generating a bitstream, which can generate a bitstream according to the first aspect and any one of the implementation methods of the first aspect.

[0072] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0073] In a fourth aspect, an embodiment of the present application provides a scene audio encoding device, the device comprising:

[0074] A signal acquisition module is used to acquire scene audio signals;

[0075] an encoding mode determination module, configured to determine an encoding mode combination corresponding to the scene audio signal from an encoding mode set, wherein the encoding mode set includes a plurality of encoding mode combinations;

[0076] The encoding module is used to encode the scene audio signal based on a combination of encoding modes corresponding to the scene audio signal.

[0077] The scene audio encoding device of the fourth aspect can execute the steps of the first aspect and any one of the implementation methods of the first aspect, which will not be repeated here.

[0078] In addition, the scene audio encoding device of the fourth aspect may further include a communication module.

[0079] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0080] In a fifth aspect, an embodiment of the present application provides a scene audio decoding device, the device comprising:

[0081] A code stream receiving module, used for receiving code stream;

[0082] A decoding mode determination module, configured to determine a decoding mode combination corresponding to a bitstream from a decoding mode set, wherein the decoding mode set includes a plurality of decoding mode combinations;

[0083] The decoding module is used to decode the code stream based on a decoding mode combination corresponding to the code stream to obtain a reconstructed scene audio signal.

[0084] The scene audio decoding device of the fifth aspect can execute the steps of the second aspect and any one of the implementation methods of the second aspect, which will not be repeated here.

[0085] In addition, the scene audio decoding device of the fifth aspect may further include a communication module.

[0086] The fifth aspect and any implementation of the fifth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0087] In a sixth aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the scene audio encoding method of the first aspect or any possible implementation of the first aspect.

[0088] The sixth aspect and any implementation of the sixth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0089] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the scene audio decoding method in the second aspect or any possible implementation of the second aspect.

[0090] The seventh aspect and any implementation of the seventh aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the seventh aspect and any implementation of the seventh aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0091] In an eighth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the scene audio encoding method in the first aspect or any possible implementation of the first aspect.

[0092] The eighth aspect and any implementation of the eighth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the eighth aspect and any implementation of the eighth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0093] In the ninth aspect, an embodiment of the present application provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data through the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device executes the scene audio decoding method in the second aspect or any possible implementation of the second aspect.

[0094] The ninth aspect and any implementation of the ninth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the ninth aspect and any implementation of the ninth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0095] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or processor, it enables the computer or processor to execute the scene audio encoding method in the first aspect or any possible implementation of the first aspect.

[0096] The tenth aspect and any implementation of the tenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the tenth aspect and any implementation of the tenth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0097] In the eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or processor, it enables the computer or processor to execute the scene audio decoding method in the second aspect or any possible implementation of the second aspect.

[0098] The eleventh aspect and any implementation of the eleventh aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the eleventh aspect and any implementation of the eleventh aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0099] In the twelfth aspect, an embodiment of the present application provides a computer program product, which includes a software program. When the software program is executed by a computer or a processor, the computer or the processor executes the scene audio encoding method in the first aspect or any possible implementation of the first aspect.

[0100] The twelfth aspect and any implementation of the twelfth aspect respectively correspond to the first aspect and any implementation of the first aspect. The technical effects corresponding to the twelfth aspect and any implementation of the twelfth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0101] In a thirteenth aspect, an embodiment of the present application provides a computer program product, which includes a software program. When the software program is executed by a computer or a processor, the computer or the processor executes the scene audio decoding method in the second aspect or any possible implementation of the second aspect.

[0102] The thirteenth aspect and any implementation of the thirteenth aspect correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the thirteenth aspect and any implementation of the thirteenth aspect can be referred to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, and will not be repeated here.

[0103] In a fourteenth aspect, an embodiment of the present application provides a device for storing a code stream, the device comprising: a receiver and at least one storage medium, the receiver being used to receive the code stream; the at least one storage medium being used to store the code stream; the code stream being generated according to the first aspect and any one of the implementation methods of the first aspect.

[0104] The fourteenth aspect and any implementation of the fourteenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourteenth aspect and any implementation of the fourteenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here.

[0105] In a fifteenth aspect, an embodiment of the present application provides a device for transmitting a code stream, the device comprising: a transmitter and at least one storage medium, the at least one storage medium being used to store the code stream, the code stream being generated according to the first aspect and any one of the implementation methods of the first aspect; the transmitter being used to receive the code stream from the storage medium and send the code stream to an end-side device via a transmission medium.

[0106] The fifteenth aspect and any implementation of the fifteenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifteenth aspect and any implementation of the fifteenth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0107] In a sixteenth aspect, an embodiment of the present application provides a system for distributing code streams, the system comprising: at least one storage medium for storing at least one code stream, the at least one code stream being generated according to the first aspect and any one of the implementation methods of the first aspect; a streaming media device for obtaining a target code stream from the at least one storage medium and sending the target code stream to an end-side device, wherein the streaming media device comprises a content server or a content distribution server.

[0108] The sixteenth aspect and any implementation of the sixteenth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the sixteenth aspect and any implementation of the sixteenth aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] FIG1a is a schematic diagram of an exemplary application scenario;

[0110] FIG1b is a schematic diagram of an exemplary application scenario;

[0111] FIG2 is a schematic diagram illustrating an exemplary process of encoding a scene audio signal;

[0112] FIG3 is a schematic diagram illustrating an exemplary scene audio signal decoding process;

[0113] FIG4a is a schematic diagram illustrating an exemplary scene audio signal encoding process;

[0114] FIG4 b is a schematic diagram showing an exemplary distribution of candidate virtual speakers;

[0115] FIG5 is a schematic diagram illustrating an exemplary scene audio signal decoding process;

[0116] FIG6 is a schematic diagram illustrating an exemplary process of encoding a scene audio signal;

[0117] FIG7 is a schematic diagram illustrating an exemplary scene audio signal decoding process;

[0118] FIG8 is a schematic diagram illustrating an exemplary scene audio signal encoding process;

[0119] FIG9 is a schematic diagram illustrating an exemplary scene audio signal decoding process;

[0120] FIG10 is a schematic structural diagram of an exemplary device. DETAILED DESCRIPTION

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

[0122] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0123] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0124] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0125] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

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

[0127] Sound is a continuous wave produced by the vibration of an object. The object that vibrates and emits sound waves is called the sound source. As sound waves propagate through a medium (such as air, solid, or liquid), they are detected by the human or animal auditory system.

[0128] The characteristics of sound waves include pitch, intensity, and timbre. Pitch indicates the highness of a sound. Intensity indicates how loud a sound is. Intensity can also be called loudness or volume. The unit of intensity is decibel (dB). Timbre is also called timbre quality.

[0129] The frequency of a sound wave determines its pitch. The higher the frequency, the higher the pitch. The frequency is the number of times an object vibrates in one second, measured in hertz (Hz). The human ear can detect sounds with frequencies between 20Hz and 20,000Hz.

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

[0131] The waveform of the sound wave determines the timbre, which includes square wave, sawtooth wave, sine wave and pulse wave.

[0132] Based on the characteristics of sound waves, sounds can be divided into regular sounds and irregular sounds. Irregular sounds are sounds produced by the irregular vibration of a sound source. Irregular sounds, for example, are noises that disrupt people's work, study, and rest. Regular sounds are sounds produced by the regular vibration of a sound source. Regular sounds include speech and music. When represented electrically, regular sounds are analog signals that continuously vary in the time-frequency domain. These analog signals are called audio signals. Audio signals are information carriers that carry speech, music, and sound effects.

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

[0134] As people's attention to and demand for higher quality in their auditory systems grows, three-dimensional audio technology has emerged to enhance the sense of depth, presence, and spatiality. This allows listeners to perceive not only sounds from sources in front, behind, left, and right, but also a sense of being enveloped by the spatial sound field (or "sound field") generated by these sources, with the sound spreading outward in all directions. This creates an immersive sound experience that transports listeners to places like a movie theater or concert hall.

[0135] The scene audio signal involved in the embodiments of the present application may refer to a signal used to describe a sound field. The scene audio signal may include: an HOA signal (wherein an HOA signal may include a three-dimensional HOA signal and a two-dimensional HOA signal (also referred to as a planar HOA signal)) and a three-dimensional audio signal. The three-dimensional audio signal may refer to other audio signals in the scene audio signal in addition to the HOA signal. The following description uses the HOA signal as an example.

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

[0137] Assume that the spatial system outside the human ear is a sphere, with the listener at the center of the sphere. Sounds from outside the sphere have a projection on the sphere, filtering out sounds outside the sphere. Assuming that the sound sources are distributed on this sphere, the sound field generated by the sound sources on the sphere is used to fit the sound field generated by the original sound source. In other words, three-dimensional audio technology is a method for fitting sound fields. Specifically, equation (1) is solved in a spherical coordinate system. Within the passive spherical region, equation (1) is solved as follows (2).

[0138] Among them, r represents the radius of the sphere, θ represents the horizontal angle information (or azimuth information), represents the pitch angle information (or called elevation angle information), k represents the wave number, s represents the amplitude of the ideal plane wave, and m represents the order number of the HOA signal (or called the order number of the HOA signal). represents the spherical Bessel function, which is also called the radial basis function, where the first j represents the imaginary unit, Does not change with angle. represents θ, Spherical harmonics of the direction, The spherical harmonic function representing the direction of the sound source. The HOA signal satisfies formula (3).

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

[0140] Among them, m is truncated to the N1th item, that is, m=N1, so As an approximate description of the sound field; at this time, It can be called the HOA coefficient (which can be used to represent the N1-order HOA signal). The sound field refers to the area in the medium where sound waves exist. N1 is an integer greater than or equal to 1.

[0141] The scene audio signal is an information carrier that carries the spatial position information of the sound source in the sound field and describes the sound field of the listener in space. Formula (4) shows that the sound field can be expanded on a sphere using spherical harmonics, that is, the sound field can be decomposed into the superposition of multiple plane waves. Therefore, the sound field described by the HOA signal can be expressed as the superposition of multiple plane waves, and the sound field can be reconstructed using the HOA coefficients.

[0142] The HOA signal to be encoded involved in the embodiments of the present application may refer to an N1-order HOA signal, which may be represented by an HOA coefficient or an Ambisonic (stereo reverberation) coefficient, where N1 is an integer greater than or equal to 1 (wherein, when N1 is equal to, the first-order HOA signal may be referred to as a FOA (First Order Ambisonic, first-order stereo reverberation) signal). The N1-order HOA signal includes (N1+1) 2 channels of audio signals.

[0143] Figure 1a is a schematic diagram of an exemplary application scenario, which shows the encoding and decoding scenario of a scene audio signal.

[0144] Referring to Figure 1a, illustratively, the first electronic device may include a first audio acquisition module, a first scene audio encoding module, a first channel encoding module, a first channel decoding module, a first scene audio decoding module, and a first audio playback module. It should be understood that the first electronic device may include more or fewer modules than those shown in Figure 1a, and this application does not limit this.

[0145] 1a, illustratively, the second electronic device may include a second audio acquisition module, a second scene audio encoding module, a second channel encoding module, a second channel decoding module, a second scene audio decoding module, and a second audio playback module. It should be understood that the second electronic device may include more or fewer modules than those shown in FIG1a, and this application does not limit this.

[0146] Exemplarily, the process of encoding and transmitting a scene audio signal by a first electronic device to a second electronic device, and decoding and audio playback by the second electronic device can be as follows: the first audio acquisition module can perform audio acquisition and output the scene audio signal to the first scene audio encoding module. Then, the first scene audio encoding module can encode the scene audio signal and output a code stream to the first channel encoding module. Thereafter, the first channel encoding module can channel encode the code stream and transmit the channel-encoded code stream to the second electronic device via a wireless or wired network communication device. Then, the second channel decoding module of the second electronic device can channel decode the received data to obtain a code stream and output the code stream to the second scene audio decoding module. Then, the second scene audio decoding module can decode the code stream to obtain a reconstructed scene audio signal; then, the reconstructed scene audio signal is output to the second audio playback module, and the second audio playback module performs audio playback.

[0147] It should be noted that the second audio playback module can perform post-processing (such as audio rendering (for example, the audio signal containing (N1+1) 2The invention relates to a method for converting a reconstructed scene audio signal of a plurality of channel audio signals into an audio signal with the same number of channels as the number of speakers in the second electronic device), loudness normalization, user interaction, audio format conversion or noise removal, etc., to convert the reconstructed scene audio signal into an audio signal suitable for playback by the speakers in the second electronic device.

[0148] It should be understood that the process of the second electronic device encoding and transmitting the scene audio signal to the first electronic device, and the first electronic device decoding and audio playback is similar to the above-mentioned process of the first electronic device transmitting the scene audio signal to the second electronic device, and the second electronic device playing back the audio, and will not be repeated here.

[0149] Exemplarily, the first electronic device and the second electronic device may include, but are not limited to: personal computers, computer workstations, smart phones, tablet computers, servers, smart cameras, smart cars or other types of cellular phones, media consumption devices, wearable devices, set-top boxes, game consoles, etc.

[0150] For example, this application can be specifically applied to VR (Virtual Reality) / AR (Augmented Reality) scenarios. In one possible embodiment, the first electronic device is a server and the second electronic device is a VR / AR device. In another possible embodiment, the second electronic device is a server and the first electronic device is a VR / AR device.

[0151] Exemplarily, the first scene audio encoding module and the second scene audio encoding module may be scene audio encoders, and the first scene audio decoding module and the second scene audio decoding module may be scene audio decoders.

[0152] For example, when a first electronic device encodes a scene audio signal and a second electronic device reconstructs the scene audio signal, the first electronic device can be referred to as an encoding end and the second electronic device can be referred to as a decoding end. When a second electronic device encodes a scene audio signal and a first electronic device reconstructs the scene audio signal, the second electronic device can be referred to as an encoding end and the first electronic device can be referred to as a decoding end.

[0153] Figure 1b is a schematic diagram of an exemplary application scenario, which shows a transcoding scenario of a scene audio signal.

[0154] 1b(1), illustratively, a wireless or core network device may include: a channel decoding module, other audio decoding modules, a scene audio encoding module, and a channel encoding module. The wireless or core network device may be used for audio transcoding.

[0155] Exemplarily, the specific application scenario of Figure 1b (1) may be: when the first electronic device is not provided with a scene audio encoding module but only with other audio encoding modules; and the second electronic device is only provided with a scene audio decoding module but not with other audio decoding modules, in order to enable the second electronic device to decode and play back the scene audio signal encoded by the first electronic device using other audio encoding modules, wireless or core network equipment can be used for transcoding.

[0156] Specifically, the first electronic device uses other audio encoding modules to encode the scene audio signal to obtain a first code stream; and then performs channel encoding on the first code stream and sends it to the wireless or core network device. Then, the channel decoding module of the wireless or core network device can perform channel decoding and output the first code stream obtained by channel decoding to the other audio decoding modules. After that, the other audio decoding modules decode the first code stream to obtain a scene audio signal and output the scene audio signal to the scene audio encoding module. Then, the scene audio encoding module can encode the scene audio signal to obtain a second code stream and output the second code stream to the channel encoding module. The channel encoding module performs channel encoding on the second code stream and sends it to the second electronic device. In this way, the second electronic device can call the scene audio decoding module to decode the second code stream obtained by channel decoding to obtain a reconstructed scene audio signal; and then the reconstructed scene audio signal can be played back.

[0157] 1b(2), illustratively, a wireless or core network device may include: a channel decoding module, a scene audio decoding module, other audio encoding modules, and a channel encoding module. The wireless or core network device may be used for audio transcoding.

[0158] Exemplarily, the specific application scenario of Figure 1b (2) may be: when the first electronic device is only provided with a scene audio encoding module and no other audio encoding modules; and the second electronic device is not provided with a scene audio decoding module and only provided with other audio decoding modules, in order to enable the second electronic device to decode and play back the scene audio signal encoded by the scene audio encoding module of the first electronic device, wireless or core network equipment may be used for transcoding.

[0159] Specifically, the first electronic device uses a scene audio encoding module to encode the scene audio signal to obtain a first code stream; and then performs channel encoding on the first code stream and sends it to a wireless or core network device. Then, the channel decoding module of the wireless or core network device can perform channel decoding and output the first code stream obtained by channel decoding to the scene audio decoding module. After that, the scene audio decoding module decodes the first code stream to obtain a scene audio signal and outputs the scene audio signal to other audio encoding modules. Then, other audio encoding modules can encode the scene audio signal to obtain a second code stream and output the second code stream to the channel encoding module, which performs channel encoding on the second code stream and sends it to the second electronic device. In this way, the second electronic device can call other audio decoding modules to decode the second code stream obtained by channel decoding to obtain a reconstructed scene audio signal; the reconstructed scene audio signal can then be played back.

[0160] The following describes the encoding and decoding process of the scene audio signal.

[0161] FIG2 is a schematic diagram illustrating an exemplary process of encoding a scene audio signal.

[0162] S201: Acquire a scene audio signal.

[0163] Exemplarily, a scene audio signal to be encoded is obtained, wherein the scene audio signal may include audio signals of C channels, where C is a positive integer.

[0164] For example, when the scene audio signal is an HOA signal, the HOA signal may be an N1-order HOA signal, that is, when m is truncated to the N1-th term, the above formula (3) is

[0165] For example, the N1-order HOA signal may include C-channel audio signals, where C=(N1+1) 2 For example, when N1=3, the N1-order HOA signal includes 16 channels of audio signals; when N1=4, the N1-order HOA signal includes 25 channels of audio signals.

[0166] Exemplarily, the scene audio signal may be one frame or multiple frames.

[0167] S202: Determine a coding mode combination corresponding to the scene audio signal from a coding mode set, where the coding mode set includes a plurality of coding mode combinations.

[0168] For example, a coding scheme set can be pre-established and stored at the encoding end. The coding scheme set can include multiple coding scheme combinations, each of which can include coding schemes corresponding to multiple channels. The specific process of establishing the coding scheme set is described later. The number of coding scheme combinations included in the coding scheme set can be represented by R (where R is a positive integer).

[0169] In this way, after obtaining the scene audio signal to be encoded, the encoding end can search for the encoding method combination corresponding to the scene audio signal from the encoding method set. Exemplarily, based on the current scene information, the encoding method combination corresponding to the scene audio signal can be searched from the encoding method set. The current scene information may include information related to the encoded scene audio signal, such as the encoding rate (also known as the encoding bit rate), channel information (such as the number of channels, channel identifier (such as channel number)), etc., which is not limited in this application.

[0170] Exemplarily, a coding mode combination of the coding mode set may include coding modes corresponding to K channels, where K is a positive integer.

[0171] In one possible manner, the encoding modes corresponding to at least two channels of the K channels are different.

[0172] In one possible approach, the encoding methods corresponding to the K channels are the same.

[0173] S203 : Encode the scene audio signal based on a combination of encoding modes corresponding to the scene audio signal.

[0174] Exemplarily, after determining a coding mode combination corresponding to a scene audio signal, the scene audio signal may be encoded using the coding mode combination corresponding to the scene audio signal. Specifically, the coding mode combination corresponding to the scene audio signal includes coding modes corresponding to multiple channels. Each channel of the scene audio signal may be encoded using the coding mode corresponding to each channel in the coding mode combination corresponding to the scene audio signal to obtain a bitstream of the scene audio signal.

[0175] Assuming that the scene audio signal includes audio signals of C channels, the encoding method combination corresponding to the scene audio signal includes the encoding methods corresponding to the C channels; in this way, the encoding methods corresponding to the C channels can be used to encode the C channels of the scene audio signal to obtain the code stream of the scene audio signal.

[0176] In one possible method, when the scene audio signal is multiple frames, a coding method combination corresponding to each frame of the scene audio signal can be determined from a coding method set; and then each frame of the scene audio signal is encoded based on the coding method combination corresponding to each frame of the scene audio signal.

[0177] In one possible method, when the scene audio signal is multiple frames, a coding method combination corresponding to one frame of the scene audio signal can be determined from a coding method set; then, based on a coding method combination corresponding to one frame of the scene audio signal, the multiple frames of the scene audio signal are encoded.

[0178] In this way, by querying the pre-established encoding mode set, the encoding mode combination used for encoding can be quickly determined; thereby, the time consumed in the entire encoding process can be saved and the encoding efficiency can be improved.

[0179] Secondly, for scene audio signals of different scenes, a coding method combination suitable for different scenes can be selected from a pre-established coding method set for encoding; since the coding method set usually uses a coding method combination with better coding performance, this application can guarantee the coding performance of the scene audio signals of each scene to a certain extent, and is highly flexible.

[0180] In addition, when the encoding methods corresponding to multiple channels included in the encoding method combination corresponding to the scene audio signal are different, compared with encoding using a single encoding method, encoding using the encoding method combination can adopt the advantages of one encoding method in the encoding method combination to compensate for the shortcomings of another encoding method to a certain extent, thereby improving the encoding performance to a certain extent.

[0181] Again, even if the encoding methods corresponding to the multiple channels included in the encoding method combination corresponding to the scene audio signal are the same, they are all direct encoding methods (that is, the signal itself is encoded, for example, the signal can be subjected to time-frequency transformation, preprocessing, bit allocation, quantization and entropy coding and other operations); compared with the existing technology, the number of channels of the audio signal encoded by this application is fewer; therefore, under the premise of achieving the same quality, the encoding bit rate of this application is lower.

[0182] Exemplarily, the encoding end and the decoding end may pre-synchronize an encoding mode set (correspondingly referred to as a decoding mode set at the decoding end).

[0183] In one possible approach, the encoder and decoder pre-agree on the type of scene information used to determine a codec combination (including a coding combination and a decoding combination) for encoding and decoding from a codec set (including a coding set and a decoding set).

[0184] In one possible approach, the encoder and decoder have not pre-agreed on the type of scene information used to determine the codec combination used for encoding and decoding from a set of codecs. In this case, the encoder can encode a preset identifier (hereinafter referred to as a first preset identifier for ease of distinction), where the first preset identifier can be used to indicate the type of scene information. In this way, the first preset identifier is transmitted to the decoder, so that the decoder can determine the code combination used for decoding from the set of decoding methods.

[0185] Figure 3 is a schematic diagram illustrating an exemplary scene audio decoding process. The embodiment of Figure 3 is a decoding process corresponding to the encoding process in the embodiment of Figure 2.

[0186] S301, receiving a code stream.

[0187] S302: Determine a decoding mode combination corresponding to the code stream from a decoding mode set, wherein the decoding mode set includes a plurality of decoding mode combinations.

[0188] Exemplarily, the decoding mode set may include multiple decoding mode combinations, each of which may include decoding modes corresponding to multiple channels. The number of decoding mode combinations included in the decoding mode set may be represented by R (R is a positive integer).

[0189] Exemplarily, after receiving the code stream, a decoding method combination corresponding to the code stream can be determined from the decoding method set. Specifically, based on the current scene information, a decoding method combination corresponding to the code stream can be searched from the decoding method set. The current scene information may include information related to the decoded scene audio signal, such as the decoding rate (also known as the decoding bit rate), channel information (such as the number of channels, channel identifier (such as the channel number)), etc., which is not limited in this application.

[0190] In one possible approach, when the encoding end and the decoding end have pre-agreed on the type of scene information used to determine the codec combination used for encoding and decoding from a codec set, the decoding end can search for the decoding combination corresponding to the bitstream from the decoding set based on the pre-agreed type of current scene information.

[0191] In one possible approach, when the encoder and decoder have not pre-agreed on the type of scene information used to determine the codec combination used for encoding and decoding from a codec set, the decoder may first parse a first preset identifier from the bitstream; then, based on the current scene information corresponding to the first preset identifier, search the decoding method combination corresponding to the bitstream from the decoding method set.

[0192] S303: Decode the code stream based on a decoding method combination corresponding to the code stream to obtain a reconstructed scene audio signal.

[0193] Exemplarily, the reconstructed scene audio signal may include audio signals of C channels, where C is a positive integer.

[0194] For example, when the reconstructed scene audio signal is an N1-order HOA signal, C=(N1+1) 2 For example, when N1=3, the N1-order HOA signal includes 16 channels of reconstructed audio signals; when N1=4, the N1-order HOA signal includes 25 channels of reconstructed audio signals.

[0195] Exemplarily, after determining a decoding method combination corresponding to the bitstream, the bitstream can be decoded using the decoding method combination corresponding to the bitstream to obtain a reconstructed scene audio signal. Specifically, the decoding method combination corresponding to the bitstream includes decoding methods corresponding to multiple channels. Based on the bitstream, the decoding method corresponding to each channel in the decoding method combination corresponding to the bitstream can be used to decode each channel to obtain a reconstructed scene audio signal.

[0196] Assuming that the reconstructed scene audio signal includes reconstructed audio signals of C channels, the decoding method combination corresponding to the bit stream includes the decoding method corresponding to the C channels; in this way, based on the bit stream, the decoding method corresponding to the C channels can be used to decode the C channels to obtain a reconstructed audio signal containing C channels. The reconstructed audio signals of these C channels can constitute the reconstructed scene audio signal.

[0197] Exemplarily, the code stream is one frame or multiple frames, and correspondingly, the reconstructed scene audio signal can be one frame or multiple frames.

[0198] In one possible approach, when the code stream consists of multiple frames, a decoding method combination corresponding to each frame of the code stream can be determined from a decoding method set; then, based on the decoding method combination corresponding to each frame of the code stream, each frame of the code stream is decoded to obtain a reconstructed scene audio signal for each frame.

[0199] In one possible method, when the code stream is multi-frame, a decoding method combination corresponding to one frame of the code stream can be determined from a decoding method set; then, based on the decoding method combination corresponding to one frame of the code stream, the multi-frame code stream is decoded to obtain a multi-frame reconstructed scene audio signal.

[0200] It should be understood that when the encoder uses a corresponding encoding method combination to encode a frame of scene audio signals, the decoder uses a corresponding decoding method combination to decode each frame of the code stream. When the encoder uses the same encoding method combination to encode multiple frames of scene audio signals, the decoder uses the same decoding method combination to decode the multiple frame code streams.

[0201] In this way, by querying the pre-established decoding mode set, the decoding mode combination for decoding can be quickly determined; thus, the time consumed in the entire decoding process can be saved, and the decoding efficiency can be improved.

[0202] Secondly, for audio signals in different scenarios, a decoding combination method suitable for different scenarios can be selected from a pre-established set of decoding methods for decoding; since the establishment of a coding method set usually selects a coding method combination with better coding performance (the decoding method combination and the coding method combination correspond to each other), this application can guarantee the audio reconstruction quality of different scenarios to a certain extent and has high flexibility.

[0203] The following describes the process of establishing a coding scheme set based on channels of an N2-order HOA signal, where the number of channels K of the N2-order HOA signal is equal to the square of (N2+1).

[0204] In one possible approach, different coding mode combinations may be established for different coding rates; thus, multiple coding mode combinations may be established for a variety of coding rates; and these multiple coding mode combinations may constitute a coding mode set.

[0205] In one possible approach, for a coding rate, a coding mode combination corresponding to a number of channels (N2 has a value of one) is established, where N2 is greater than or equal to N1, and K is greater than or equal to C.

[0206] Exemplarily, each encoding mode combination in the encoding mode set may include encoding modes corresponding to K channels. In one possible embodiment, the encoding modes corresponding to at least two channels of the K channels are different. In another possible embodiment, the encoding modes corresponding to the K channels are the same, which is not limited in this application.

[0207] Exemplarily, the decoding method corresponding to a channel may include at least one of the following: a first decoding method, a second decoding method or a third decoding method; the first decoding method is the decoding signal itself; the second decoding method is a spatial decoding method; the third decoding method is a decoding method other than the first decoding method and the second decoding method.

[0208] Exemplarily, the first encoding method may be to encode the signal itself, that is, to perform time-frequency transformation, preprocessing, bit allocation, quantization, entropy coding and other operations on the signal; wherein, the first encoding method may also be referred to as a direct encoding method.

[0209] Exemplarily, the second encoding method may be a spatial encoding method, which encodes the attribute information of the target virtual speaker determined based on the scene audio signal. The process of determining the attribute information of the target virtual speaker based on the scene audio signal will be described later.

[0210] Exemplarily, the third encoding mode may include one or more encoding modes other than the first encoding mode and the second encoding mode.

[0211] In one possible embodiment, the third encoding method is channel copy (or HOA copy) encoding. Optionally, the third encoding method is a decorrelation encoding method. It should be understood that this application does not limit the number and types of encoding methods included in the third encoding method.

[0212] Table 1

[0213] Assuming N2 = 3, then K = 16, meaning each coding combination in the coding set can include coding methods corresponding to 16 channels (channel 1 to channel 16). As shown in Table 1, for a coding rate of 256 kbps, coding combination 1 is established; for a coding rate of 384 kbps, coding combination 2 is established; for a coding rate of 512 kbps, coding combination 3 is established; and for a coding rate of 768 kbps, coding combinations 4 and 5 are established.

[0214] It should be understood that Table 1 is only an example, and corresponding coding mode combinations can also be set for other coding rates, and this application does not limit this.

[0215] It should be understood that Table 1 is only an example, and other coding combinations can be established for coding rates of 256 kbps, 384 kbps, 512 kbps, and 768 kbps, respectively, and this application does not impose any restrictions on this.

[0216] Referring to Table 1, encoding scheme combination 1 includes encoding schemes corresponding to 16 channels. For example, the encoding scheme corresponding to channels 1 through 4 in encoding scheme combination 1 is direct encoding; the encoding scheme corresponding to channels 5, 9, 10, and 16 in encoding scheme combination 1 is decorrelation encoding; and the encoding scheme corresponding to channels 6 through 8 and 11 through 15 in encoding scheme combination 1 is spatial encoding. The descriptions of the other encoding scheme combinations in Table 1 are similar and will not be repeated here. Accordingly, the set of decoding schemes stored by the decoding end can be shown in Table 2:

[0217] Table 2

[0218] The following describes the process of establishing a coding scheme set based on channels of an N2-order HOA signal, where the number of channels K of the N2-order HOA signal is equal to the square of (N2+1).

[0219] In one possible approach, different coding mode combinations may be established for different coding rates; thus, multiple coding mode combinations may be established for a variety of coding rates; and these multiple coding mode combinations may constitute a coding mode set.

[0220] In one possible approach, for one coding rate, coding mode combinations corresponding to multiple numbers of channels (ie, multiple values ​​of N2) are established.

[0221] Exemplarily, each encoding mode combination in the encoding mode set may include encoding modes corresponding to K channels. In one possible embodiment, the encoding modes corresponding to at least two channels of the K channels are different. In another possible embodiment, the encoding modes corresponding to the K channels are the same, which is not limited in this application.

[0222] Exemplarily, the decoding method corresponding to a channel may include at least one of the following: a first decoding method, a second decoding method or a third decoding method; the first decoding method is the decoding signal itself; the second decoding method is a spatial decoding method; the third decoding method is a decoding method other than the first decoding method and the second decoding method.

[0223] Exemplarily, the third encoding mode may include one or more encoding modes other than the first encoding mode and the second encoding mode.

[0224] In one possible embodiment, the third encoding method is channel copy (or HOA copy) encoding. Optionally, the third encoding method is a decorrelation encoding method. It should be understood that this application does not limit the number and types of encoding methods included in the third encoding method.

[0225] Table 3

[0226] Assuming N2 = 3, then K = 16, meaning each coding combination in the coding set can include coding methods corresponding to 16 channels (channel 1 to channel 16). For example, Table 3 shows coding combination 1 for a coding rate of 256 kbps, and Table 4 shows coding combination 4 for a coding rate of 384 kbps.

[0227] Assuming N2 = 2, then K = 9, meaning each coding combination in the coding set can include coding methods corresponding to nine channels (channels 1 to 9). For example, Table 3 shows coding combination 2 for a coding rate of 256 kbps, and Table 4 shows coding combination 5 for a coding rate of 384 kbps.

[0228] Assuming N2 = 1, then K = 4, meaning each coding combination in the coding set can include coding methods corresponding to four channels (channels 1 to 4). For example, Table 3 shows coding combination 3 for a coding rate of 256 kbps, and Table 4 shows coding combination 6 for a coding rate of 384 kbps.

[0229] It should be understood that Table 3 and Table 4 are only examples, and corresponding coding mode combinations can also be set for other coding rates, which is not limited in this application.

[0230] It should be understood that Table 3 and Table 4 are only examples. When N2 is equal to 1, 2 or 3 respectively, other coding mode combinations can be established for coding rates of 256kbps and 384kbps respectively, and this application does not limit this.

[0231] Referring to Table 3, coding scheme combination 2 includes coding schemes corresponding to nine channels. For example, the coding scheme corresponding to channel 1 in coding scheme combination 2 is direct coding; the coding schemes corresponding to channels 2 through 9 in coding scheme combination 1 are decorrelation coding. The descriptions of the other coding scheme combinations in Tables 3 and 4 are similar and are not repeated here.

[0232] Table 4

[0233] Accordingly, the decoding mode sets stored at the decoding end may be as shown in Table 5 and Table 6:

[0234] Table 5

[0235] Table 6

[0236] The following describes the process of establishing a coding scheme set based on channels of an N2-order HOA signal, where the number of channels K of the N2-order HOA signal is equal to the square of (N2+1).

[0237] In one possible approach, when N2 takes different values, different coding mode combinations may be established; thus, for various values ​​of N2, multiple coding mode combinations may be established; these multiple coding mode combinations may constitute a coding mode set.

[0238] Exemplarily, each encoding mode combination in the encoding mode set may include encoding modes corresponding to K channels. In one possible embodiment, the encoding modes corresponding to at least two channels of the K channels are different. In another possible embodiment, the encoding modes corresponding to the K channels are the same, which is not limited in this application.

[0239] Exemplarily, the decoding method corresponding to a channel may include at least one of the following: a first decoding method, a second decoding method or a third decoding method; the first decoding method is the decoding signal itself; the second decoding method is a spatial decoding method; the third decoding method is a decoding method other than the first decoding method and the second decoding method.

[0240] Exemplarily, the third encoding mode may include one or more encoding modes other than the first encoding mode and the second encoding mode.

[0241] In one possible embodiment, the third encoding method is channel copy (or HOA copy) encoding. Optionally, the third encoding method is a decorrelation encoding method. It should be understood that this application does not limit the number and types of encoding methods included in the third encoding method.

[0242] Table 7

[0243] Assuming that N2=3, then K=16, a coding mode combination in the coding mode set may include coding modes corresponding to 16 channels (channel 1 to channel 16), which can be referred to as coding mode combination 1 in Table 7.

[0244] Assuming that N2=2, then K=9, a coding mode combination in the coding mode set may include coding modes corresponding to 9 channels (channel 1 to channel 9), which can be referred to as coding mode combination 2 in Table 7.

[0245] Assuming that N2=1, then K=4, a coding mode combination in the coding mode set may include coding modes corresponding to 4 channels (channel 1 to channel 4), as can be seen from coding mode combination 3 in Table 7.

[0246] It should be understood that Table 7 is only an example. When N2 is equal to 1, 2 or 3, different coding mode combinations can also be set, and this application does not limit this.

[0247] It should be understood that Table 7 is only an example, and corresponding coding method combinations can also be established for other values ​​of N2, and this application does not limit this.

[0248] Referring to Table 7, coding scheme combination 2 includes coding schemes corresponding to nine channels. For example, the coding scheme corresponding to channel 1 in coding scheme combination 2 is direct coding; the coding schemes corresponding to channels 2 through 9 in coding scheme combination 1 are decorrelation coding. The descriptions of the other coding scheme combinations in Table 7 are similar and are not repeated here.

[0249] Accordingly, the decoding mode set stored at the decoding end may be as shown in Table 8 below:

[0250] Table 8

[0251] Exemplarily, multiple encoding modes may be set for multiple frequency bands of each channel in each encoding mode combination.

[0252] Exemplarily, the audio signal of a channel can be divided into Y frequency bands; wherein Y can be set as required, and this application does not impose any limitation on this.

[0253] For example, Y=2, that is, the audio signal of one channel may include frequency band 1 and frequency band 2; wherein the frequency of frequency band 1 is less than the first frequency threshold, and the frequency of frequency band 2 is greater than the first frequency threshold.

[0254] For example, Y=3, that is, the audio signal of one channel may include frequency band 1, frequency band 2, and frequency band 3; wherein the frequency of frequency band 1 is less than the first frequency threshold, the frequency of frequency band 2 is greater than the first frequency threshold and less than the second frequency threshold, and the frequency of frequency band 3 is greater than the second frequency threshold.

[0255] It should be noted that for different channels, the number of frequency bands Y can be different; the thresholds used to divide the frequency bands can also be different, and this application does not impose any restrictions on this. Among them, the first frequency threshold and the second frequency threshold can be set as needed and will not be repeated here.

[0256] For example, if Y=2, the first encoding mode is used for frequency band 1 in the channel, and the third encoding mode is used for frequency band 2 in the channel. Alternatively, the first encoding mode is used for frequency band 1 in the channel, and the second encoding mode is used for frequency band 2 in the channel.

[0257] For example, Y=3, frequency band 1 in the channel corresponds to the first encoding mode, frequency band 2 in the channel corresponds to the second encoding mode, frequency band 3 in the channel corresponds to the third encoding mode, and so on.

[0258] The following describes the encoding and decoding process of a scene audio signal using the encoding method set in Table 1 and the decoding method set in Table 2 as examples, wherein the scene audio signal to be encoded is an N1-order HOA signal.

[0259] FIG4 a is a schematic diagram illustrating an exemplary process of encoding a scene audio signal.

[0260] S401: Acquire a scene audio signal.

[0261] Exemplarily, the scene audio signal is an N1-order HOA signal, and the N1-order HOA signal includes audio signals of C channels, where C is equal to the square of (N1+1).

[0262] In one possible approach, based on the current coding rate, a coding mode combination corresponding to the scene audio signal may be searched from a coding mode set; for details, refer to S402 to S403 below:

[0263] S402: Search for a coding mode combination corresponding to the current coding rate from the coding mode set.

[0264] Exemplarily, based on the current coding rate, a coding mode combination corresponding to the current coding rate may be searched from the coding mode set in Table 1.

[0265] For example, if the current coding rate is 256 kbps, a coding mode combination corresponding to the current coding rate is searched from the coding mode set in Table 1 and is taken as coding mode combination 1.

[0266] For example, if the current coding rate is 384 kbps, a coding mode combination corresponding to the current coding rate is searched from the coding mode set in Table 1 as coding mode combination 2.

[0267] For example, if the current coding rate is 512 kbps, a coding mode combination corresponding to the current coding rate is searched from the coding mode set in Table 1 and is identified as coding mode combination 3.

[0268] For example, if the current coding rate is 768 kbps, a coding mode combination corresponding to the current coding rate is searched from the coding mode set in Table 1 and is selected as coding mode combination 4 or coding mode combination 5.

[0269] Exemplarily, a coding mode combination corresponding to the current coding rate may include coding modes corresponding to K channels, where K is greater than or equal to C.

[0270] S403 : Select encoding modes corresponding to C channels of the scene audio signal from an encoding mode combination corresponding to the current encoding rate to form an encoding mode combination corresponding to the scene audio signal.

[0271] Exemplarily, when K is greater than C, encoding modes corresponding to C channels of the scene audio signal can be selected from a combination of encoding modes corresponding to the current encoding rate to form a combination of encoding modes corresponding to the scene audio signal. Exemplarily, C target channels corresponding to the C channels in the scene audio signal from the K channels in Table 1 can be determined based on the channel identifiers of the K channels in Table 1 and the channel identifiers of the C channels in the scene audio signal; then, encoding modes corresponding to the C target channels are selected from Table 1 to form a combination of encoding modes corresponding to the scene audio signal.

[0272] Specifically, when the identification method of the K channels in Table 1 (such as the channel number allocation method) is the same as the identification method of the C channels in the scene audio signal, the combination of encoding methods corresponding to the first C channels can be selected from a coding method combination corresponding to the current coding rate to form a coding method combination corresponding to the scene audio signal.

[0273] For example, if K=16 and C=9, the encoding modes corresponding to the first 9 channels can be selected from an encoding mode combination corresponding to the current encoding rate to form an encoding mode combination corresponding to the scene audio signal.

[0274] For example, if K=16 and C=4, the encoding modes corresponding to the first four channels can be selected from an encoding mode combination corresponding to the current encoding rate to form an encoding mode combination corresponding to the scene audio signal.

[0275] For example, if K=16 and C=1, the encoding method corresponding to the first channel can be selected from an encoding method combination corresponding to the current encoding rate to form an encoding method combination corresponding to the scene audio signal.

[0276] Exemplarily, when K=C in Table 1, a coding mode combination corresponding to the current coding rate is the coding mode combination corresponding to the scene audio signal.

[0277] S404 : Encode the C channels of the scene audio signal using encoding methods corresponding to the C channels, where C is a positive integer.

[0278] Exemplarily, for a channel, when the encoding method corresponding to the channel is the first encoding method (direct encoding method), the audio signal of the channel can be subjected to time-frequency transformation, preprocessing, bit allocation, quantization, entropy encoding and other operations to obtain the encoded data of the audio signal of the channel.

[0279] Exemplarily, for a channel, when the encoding mode corresponding to the channel is the second encoding mode (spatial encoding mode), the attribute information of the target virtual speaker can be determined based on the scene audio signal; and the attribute information of the target virtual speaker can be encoded.

[0280] Exemplarily, the virtual speaker is a virtual speaker, not a real speaker.

[0281] Exemplarily, based on the above, the scene audio signal can be expressed by the superposition of multiple plane waves, and then the target virtual speaker used to simulate the sound source in the scene audio signal can be determined; in this way, in the subsequent decoding process, the virtual speaker signal corresponding to the target virtual speaker is used to reconstruct the scene audio signal.

[0282] In one possible approach, multiple candidate virtual speakers at different positions may be set on a sphere; then, a target virtual speaker whose position matches the sound source position in the scene audio signal may be selected from the multiple candidate virtual speakers.

[0283] Fig. 4b is a schematic diagram showing an exemplary distribution of candidate virtual speakers. In Fig. 4b, multiple candidate virtual speakers can be evenly distributed on a sphere, and a point on the sphere represents a candidate virtual speaker.

[0284] It should be noted that this application does not limit the number and distribution of candidate virtual speakers, which can be set according to needs, and will be explained in detail later.

[0285] For example, based on the scene audio signal, a target virtual speaker whose position corresponds to the sound source position in the scene audio signal can be selected from the multiple candidate virtual speakers; wherein the number of target virtual speakers can be one or more, and this application does not impose a limitation on this. For details, please refer to S11 to S13:

[0286] S11 , obtaining multiple groups of virtual speaker coefficients corresponding to multiple candidate virtual speakers, where the multiple groups of virtual speaker coefficients correspond one-to-one to the multiple candidate virtual speakers.

[0287] Exemplarily, the first configuration information of an encoding module (e.g., a scene audio encoding module) can be obtained; then, based on the first configuration information of the encoding module, the second configuration information of the candidate virtual speaker can be determined; then, based on the second configuration information of the candidate virtual speaker, multiple candidate virtual speakers can be generated.

[0288] Exemplarily, the first configuration information includes but is not limited to: encoding bit rate, user-defined information (for example, the HOA order corresponding to the encoding module (referring to the order of the HOA signal that the encoding module can support encoding), the order of the reconstructed scene audio signal (the order of the reconstructed HOA signal obtained by the desired decoding end), the format of the reconstructed scene audio signal (the format of the reconstructed HOA signal obtained by the desired decoding end), etc.); this application does not impose any restrictions on this.

[0289] Exemplarily, the second configuration information includes but is not limited to: the total number of candidate virtual speakers, the HOA order of each candidate virtual speaker, the position information of each candidate virtual speaker, and other information; this application does not impose any restrictions on this.

[0290] Exemplarily, based on the first configuration information of the encoding module, there may be multiple ways to determine the second configuration information of the candidate virtual speakers; for example, if the encoding bit rate is low, a smaller number of candidate virtual speakers may be configured; if the encoding bit rate is high, a plurality of candidate virtual speakers may be configured. For another example, the HOA order of the virtual speaker may be configured as the HOA order of the encoding module. It is not limited that, in an embodiment of the present application, in addition to determining the second configuration information of the candidate virtual speakers based on the first configuration information of the encoding module, the second configuration information of the candidate virtual speakers may also be determined based on user-defined information (for example, the total number of candidate virtual speakers that can be customized by the user, the HOA order of each candidate virtual speaker, the position information of each candidate virtual speaker, and other information).

[0291] For example, a configuration table may be pre-set, which contains the relationship between the number of candidate virtual speakers and the location information of the candidate virtual speakers. In this way, after the total number of candidate virtual speakers is determined, the location information of each candidate virtual speaker can be determined by searching the configuration table.

[0292] Exemplarily, after determining the second configuration information of the candidate virtual speakers, multiple candidate virtual speakers may be generated based on the second configuration information of the candidate virtual speakers. Exemplarily, a corresponding number of candidate virtual speakers may be generated based on the total number of candidate virtual speakers, and the HOA order of each candidate virtual speaker may be set based on the HOA order of each candidate virtual speaker; and the position of each candidate virtual speaker may be set based on the position information of each candidate virtual speaker.

[0293] For example, when each candidate virtual speaker is used as a virtual sound source, the virtual speaker signal generated by the virtual sound source is a plane wave, which can be expanded in a spherical coordinate system. The ideal plane wave of can be expanded using spherical harmonics as shown in formula (3). Here, the HOA order of the candidate virtual speaker is the cutoff value of m in formula (3).

[0294] Then, based on the HOA order of each candidate virtual speaker, the virtual speaker coefficient corresponding to each candidate virtual speaker can be determined (wherein each candidate virtual speaker corresponds to a set of virtual speaker coefficients). For example, for a candidate virtual speaker, the cutoff value of m in formula (3) can be set to the HOA order of the candidate virtual speaker, and the cutoff value of m in formula (3) can be set to the HOA order of the candidate virtual speaker. Set as the position information of the candidate virtual speaker At this time, the formula (3) shows That is, a set of virtual speaker coefficients (wherein the virtual speaker coefficients are also HOA coefficients. It should be noted that, based on formula (3), when the position of the candidate virtual speaker is different from the position of the sound source in the scene audio signal, the virtual speaker coefficients of the candidate virtual speaker and the scene audio signal are different HOA coefficients). In this way, a set of virtual speaker coefficients corresponding to each candidate virtual speaker can be determined.

[0295] S12 , selecting a target virtual speaker from multiple candidate virtual speakers based on the scene audio signal and multiple sets of virtual speaker coefficients.

[0296] Exemplarily, inner products are performed on the scene audio signal and the multiple sets of virtual speaker coefficients to obtain multiple inner product values; the multiple inner product values ​​correspond one-to-one to the multiple sets of virtual speaker coefficients. Exemplarily, for each candidate virtual speaker among the multiple candidate virtual speakers, an inner product of the set of virtual speaker coefficients corresponding to the candidate virtual speaker and the scene audio signal can be performed to obtain a corresponding inner product value.

[0297] Then, based on multiple inner product values, a target virtual speaker can be selected from multiple candidate virtual speakers. In one possible approach, the first G (G is a positive integer) candidate virtual speakers with the largest inner product values ​​can be selected as target virtual speakers. In one possible approach, the candidate virtual speaker with the largest inner product can be first selected as a target virtual speaker; then, the scene audio signal is projected and superimposed on a linear combination of a set of virtual speaker coefficients corresponding to the candidate virtual speaker with the largest inner product to obtain a projection vector; then, the projection vector is subtracted from the scene audio signal to obtain a difference. Afterwards, the above process is repeated for the difference to implement iterative calculation, and a target virtual speaker is generated each iteration.

[0298] S13: Acquire attribute information of the target virtual speaker.

[0299] In one possible approach, attribute information of the target virtual speaker is generated based on the position information of the target virtual speaker. In one possible approach, the position information of the target virtual speaker (including pitch angle information and horizontal angle information) can be used as the attribute information of the target virtual speaker. In another possible approach, a position index corresponding to the position information of the target virtual speaker (including a pitch angle index (which can be used to uniquely identify the pitch angle information) and a horizontal angle index (which can be used to uniquely identify the horizontal angle information)) is used as the attribute information of the target virtual speaker.

[0300] In one possible approach, the virtual speaker index (eg, virtual speaker identifier) ​​of the target virtual speaker may be used as the attribute information of the target virtual speaker, wherein the virtual speaker index corresponds one-to-one to the position information.

[0301] In one possible approach, the virtual speaker coefficients of the target virtual speaker may be used as the attribute information of the target virtual speaker. For example, C virtual speaker coefficients of the target virtual speaker may be determined and used as the attribute information of the target virtual speaker; wherein the C virtual speaker coefficients of the target virtual speaker correspond one-to-one to the audio signals of the C channels included in the first reconstructed scene audio signal.

[0302] It should be noted that the data volume of the virtual speaker coefficient is much larger than the data volume of the position information, the index of the position information, and the virtual speaker index; based on the bandwidth, it can be decided which information among the position information, the index of the position information, the virtual speaker index, and the virtual speaker coefficient to use as the attribute information of the target virtual speaker. For example, when the bandwidth is large, the virtual speaker coefficient can be used as the attribute information of the target virtual speaker; in this way, the decoding end does not need to calculate the virtual speaker coefficient of the target virtual speaker, which can save the computing power of the decoding end. When the bandwidth is small, any one of the position information, the index of the position information, and the virtual speaker index can be used as the attribute information of the target virtual speaker; in this way, the bit rate can be saved. It should be understood that it can also be pre-set which information among the position information, the index of the position information, the virtual speaker index, and the virtual speaker coefficient to use as the attribute information of the target virtual speaker; this is not limited in this application.

[0303] In one possible approach, a target virtual speaker may be preset.

[0304] It should be understood that the present application does not limit the method of determining the target virtual speaker, nor does it limit the method of determining the attribute information of the target virtual speaker.

[0305] Exemplarily, for a channel, when the encoding method corresponding to the channel is the third encoding method (decorrelation encoding method), the audio signal of the channel may not be processed; instead, the decoding end performs decorrelation decoding on the channel to determine the reconstructed audio signal of the channel.

[0306] In one possible approach, the decorrelation coding method may include a time-domain decorrelation coding method and a frequency-domain decorrelation coding method. When the third coding method is a decorrelation coding method, encoding the channel using the third coding method may mean determining, for the channel, whether the third coding method is a time-domain decorrelation coding method or a frequency-domain decorrelation coding method. When the third coding method is a time-domain decorrelation coding method, the audio signal of the channel may not be processed, and only the second preset identifier corresponding to the channel may be encoded. The second preset identifier indicates that the third coding method for the channel is a time-domain decorrelation coding method. When the third coding method is a frequency-domain decorrelation coding method, the audio signal of the channel may not be processed, and only the third preset identifier corresponding to the channel may be encoded. The third preset identifier indicates that the third coding method for the channel is a frequency-domain decorrelation coding method. This facilitates the decoding end to determine whether the third coding method is a time-domain decorrelation coding method or a frequency-domain decorrelation coding method; the corresponding decorrelation decoding method algorithm may then be used for decoding.

[0307] Fig. 5 is a schematic diagram illustrating an exemplary scene audio decoding process. The embodiment of Fig. 5 is a decoding process corresponding to the encoding process in the embodiment of Fig. 4a.

[0308] S501, receiving a code stream.

[0309] In one possible manner, based on the current decoding rate, a decoding mode combination corresponding to the code stream may be searched from the decoding mode set; for details, refer to S502 to S503 below:

[0310] S502: Search for a decoding mode combination corresponding to the current decoding rate from the decoding mode set, wherein the decoding mode combination corresponding to the current decoding rate includes decoding modes corresponding to K channels, where K is greater than or equal to C.

[0311] Exemplarily, based on the current decoding rate, a decoding mode combination corresponding to the current decoding rate may be searched from the decoding mode set in Table 2.

[0312] For example, if the current decoding rate is 256 kbps, a decoding mode combination corresponding to the current decoding rate is searched from the decoding mode set in Table 2 and is taken as decoding mode combination 1.

[0313] For example, if the current decoding rate is 384 kbps, a decoding mode combination corresponding to the current decoding rate is searched from the decoding mode set in Table 2 and is taken as decoding mode combination 2.

[0314] For example, if the current decoding rate is 512 kbps, a decoding mode combination corresponding to the current decoding rate is searched from the decoding mode set in Table 2 and is identified as decoding mode combination 3 .

[0315] For example, if the current decoding rate is 768 kbps, a decoding mode combination corresponding to the current decoding rate is searched from the decoding mode set in Table 2 and is selected as decoding mode combination 4 or decoding mode combination 5.

[0316] Exemplarily, a decoding mode combination corresponding to the current decoding rate may include decoding modes corresponding to K channels, where K is greater than or equal to C.

[0317] S503 : Select decoding modes corresponding to the C channels of the reconstructed scene audio signal from a decoding mode combination corresponding to the current decoding rate to form a decoding mode combination corresponding to the bitstream.

[0318] Exemplarily, when K is greater than C, decoding methods corresponding to the C channels of the reconstructed scene audio signal can be selected from a decoding method combination corresponding to the current decoding rate to form a decoding method combination corresponding to the bitstream. Exemplarily, C target channels corresponding to the C channels in the reconstructed scene audio signal can be first determined from the K channels in Table 2; then, decoding methods corresponding to the C target channels can be selected from Table 2 to form a decoding method combination corresponding to the bitstream.

[0319] Specifically, when the identification method of the K channels in Table 2 (such as the allocation method of channel numbers) and the identification method of the C channels in the reconstructed scene audio signal are used, the decoding method corresponding to the first C channels can be selected from a decoding method combination corresponding to the current decoding rate to form a decoding method combination corresponding to the bit stream.

[0320] For example, if K=16 and C=9, the decoding modes corresponding to the first 9 channels can be selected from a decoding mode combination corresponding to the current decoding rate to form a decoding mode combination corresponding to the code stream.

[0321] For example, if K=16 and C=4, the decoding modes corresponding to the first four channels can be selected from a decoding mode combination corresponding to the current decoding rate to form a decoding mode combination corresponding to the code stream.

[0322] For example, if K=16 and C=1, the decoding mode corresponding to the first channel can be selected from a decoding mode combination corresponding to the current decoding rate to form a decoding mode combination corresponding to the code stream.

[0323] Exemplarily, when K=C in Table 2, a decoding mode combination corresponding to the current decoding rate is the decoding mode combination corresponding to the code stream.

[0324] S504 : Based on the code stream, decode the C channels using decoding methods corresponding to the C channels to obtain the reconstructed scene audio signal, where C is a positive integer.

[0325] Exemplarily, for a channel, when the decoding method corresponding to the channel is the first decoding method (direct decoding method), the code stream is parsed to determine the encoded data corresponding to the audio signal of the channel; then, the encoded data corresponding to the audio signal of the channel is subjected to entropy decoding, inverse quantization, bit allocation, post-processing, time-frequency transformation and other operations to obtain the reconstructed audio signal of the channel.

[0326] For example, for a channel, the process of decoding the channel using the second decoding method (spatial decoding method) may include the following steps S21 to S24: wherein C1 is equal to (M+1) 2 .

[0327] S21 : Determine a first virtual speaker coefficient corresponding to the target virtual speaker based on the attribute information of the target virtual speaker.

[0328] Exemplarily, the encoder can write M into the first bitstream; then, M can be decoded from the first bitstream (of course, the encoder and decoder can also pre-agreed on M, which is not limited in this application). Exemplarily, when the attribute information of the target virtual speaker is position information, the position information of the target virtual speaker can be substituted into the above formula (3), and m in formula (3) is set to M, so that the first virtual speaker coefficient corresponding to the target virtual speaker can be obtained. Among them, the first virtual speaker coefficient includes (M+1) 2 virtual speaker coefficients, which (M+1) 2 Virtual speaker coefficients correspond to C1 channels.

[0329] Exemplarily, when the attribute information of the target virtual speaker is the position index of the position information, the position information of the target virtual speaker can be determined based on the relationship between the position information and the position index; then the first virtual speaker coefficient is determined in the above manner, which will not be repeated here.

[0330] Exemplarily, when the attribute information of the target virtual speaker is a virtual speaker index, the position information of the target virtual speaker can be determined based on the relationship between the position information and the virtual speaker index; and then the first virtual speaker coefficient is determined in the above manner, which will not be repeated here.

[0331] For example, when the attribute information of the target virtual speaker is a virtual speaker coefficient, based on the above description, a set of virtual speaker coefficients corresponding to the target virtual speaker includes C virtual speaker coefficients; in this case, (M+1) virtual speaker coefficients included in the reconstructed audio signal from C1 channels can be selected.2 (M+1) channels corresponding to 2 A virtual speaker coefficient is used as the first virtual speaker coefficient.

[0332] S22 : Generate a virtual speaker signal based on the reconstructed audio signals of C1 channels and the first virtual speaker coefficient.

[0333] Exemplarily, a virtual speaker signal may be generated based on the reconstructed audio signals of C1 channels and the first virtual speaker coefficients.

[0334] For example, it is assumed that a matrix A of size (Y1×P) is used to represent the first virtual speaker coefficient of the target virtual speaker, where Y1 (Y1 is a positive integer) is the number of target virtual speakers, and P is the number of channels (M+1) of the audio signal contained in the reconstructed audio signal of C1 channels. 2 . And a matrix X of size (L×P) is used to represent the reconstructed audio signal of C1 channels; where L is the number of sampling points of the reconstructed audio signal of C1 channels. The theoretical optimal solution w is obtained by the least squares method, where w represents the virtual speaker signal as shown in formula (5). w=A -1 X (5)

[0335] Among them, the matrix A -1 is the inverse matrix of matrix A.

[0336] S23 : Determine a second virtual speaker coefficient corresponding to the target virtual speaker based on the attribute information of the target virtual speaker.

[0337] For example, m in the above formula (3) can be determined to be equal to N based on the desired order N of the reconstructed scene audio signal. Then, when the attribute information of the target virtual speaker is position information, the position information of the target virtual speaker can be substituted into the above formula (3), and m in the formula (3) can be set to be equal to N to obtain the second virtual speaker coefficient. The second virtual speaker coefficient includes C virtual speaker coefficients, and these C virtual speaker coefficients correspond to the C channels of the reconstructed scene audio signal.

[0338] Exemplarily, when the attribute information of the target virtual speaker is the position index of the position information, the position information of the target virtual speaker can be determined based on the relationship between the position information and the position index; then the first virtual speaker coefficient is determined in the above manner, which will not be repeated here.

[0339] Exemplarily, when the attribute information of the target virtual speaker is a virtual speaker index, the position information of the target virtual speaker can be determined based on the relationship between the position information and the virtual speaker index; and then the first virtual speaker coefficient is determined in the above manner, which will not be repeated here.

[0340] Exemplarily, when the attribute information of the target virtual speaker is a virtual speaker coefficient, the attribute information of the target virtual speaker may be directly used as the second virtual speaker coefficient.

[0341] S24 , obtaining a reconstructed audio signal of the channel based on the virtual speaker signal and the second virtual speaker coefficient.

[0342] For example, assume that a matrix A of size (Y1×C) is used to represent the second virtual speaker coefficient, where Y1 is the number of target virtual speakers and C is the number of channels of the reconstructed scene audio signal. And a matrix B of size (L×Y1) is used to represent the virtual speaker signal; where L is the number of sampling points of the reconstructed scene audio signal. Then the first reconstructed scene audio signal can be represented by H, as shown in formula (6). H=BA (6)

[0343] Next, the reconstructed audio signal of the channel may be selected from the first reconstructed scene audio signal.

[0344] In one possible approach, during the encoding process, feature information corresponding to the channel in the scene audio signal can be extracted and encoded and sent to the decoder. After receiving the bitstream, the decoder can compensate for the reconstructed audio signal of the channel based on the feature information, thereby improving the audio quality of the reconstructed audio signal of the channel in the reconstructed scene audio signal.

[0345] For example, the gain information Gain(i) corresponding to the channel in the scene audio signal can be calculated by referring to the following formula (7): Gain(i)=E(i) / E(1) (7)

[0346] Where i is the channel number of the channel, E(i) is the energy of the i-th channel, and E(1) is the energy of the audio signals of C channels in the scene audio signal.

[0347] For example, when the characteristic information is gain information, compensation can be performed according to the following formula (8): E(i) = Gain(i) * E(1) (8)

[0348] Where i is the channel number of the C2 channels, E(i) is the energy of the i-th channel, E(1) is the energy of the reconstructed audio signal of the C channels in the reconstructed scene audio signal, and Gain(i) is the gain information corresponding to the channel in the scene audio signal.

[0349] In one possible embodiment, for a channel, based on the bit stream, the process of decoding the channel using the third decoding method (decorrelation decoding method) can be to use an all-pass filter to process the reconstructed audio signal of one or more channels (such as channel 1) obtained by decoding using the first decoding method to obtain the reconstructed audio signal of the channel.

[0350] In this way, based on the current encoding rate (current decoding rate) and the channel identifier of the scene audio signal, a codec combination is selected from the codec set for encoding and decoding, which can be applied to the current codec rate for encoding and decoding, thereby ensuring audio fluency. It can also be applied to the encoding and decoding of scene audio signals containing different numbers of channels, with high versatility. Moreover, since the codec combination with better encoding performance is usually selected when establishing the codec set, the present application can also guarantee the encoding quality of various scene audio signals containing different numbers of channels to a certain extent.

[0351] The following describes the encoding and decoding process of scene audio signals using the encoding method sets in Tables 3 and 4 and the decoding method sets in Tables 5 and 6 as examples. The description is based on the example of an N1-order HOA signal as the scene audio signal to be encoded.

[0352] FIG6 is a schematic diagram illustrating an exemplary process of encoding a scene audio signal.

[0353] S601: Acquire a scene audio signal.

[0354] Exemplarily, the scene audio signal is an N1-order HOA signal, and the N1-order HOA signal includes audio signals of C channels, where C is equal to the square of (N1+1).

[0355] In one possible approach, based on the current coding rate, a coding mode combination corresponding to the scene audio signal may be searched from a coding mode set; for details, refer to S602 to S603 below:

[0356] S602: Search for multiple coding mode combinations corresponding to the current coding rate from the coding mode set, wherein the multiple coding mode combinations corresponding to the current coding rate correspond to multiple numbers of channels.

[0357] Exemplarily, based on the current coding rate, multiple coding mode combinations corresponding to the current coding rate can be searched from the coding mode sets in Table 3 and Table 4.

[0358] For example, if the current coding rate is 256 kbps, then from the coding mode set in Table 3, multiple coding mode combinations corresponding to the current coding rate are searched, including: coding mode combination 1, coding mode combination 2, and coding mode combination 3.

[0359] For example, if the current coding rate is 384 kbps, then from the coding mode set in Table 4, multiple coding mode combinations corresponding to the current coding rate are searched, including: coding mode combination 4, coding mode combination 5, and coding mode combination 6.

[0360] Exemplarily, the number of coding mode combinations corresponding to the current coding rate may be r (r is a positive integer, r is less than or equal to R). Each coding mode combination may include coding modes corresponding to multiple channels; for example, coding mode combination 1 includes coding modes corresponding to k1 (k1 is a positive integer) channels, coding mode combination 2 includes coding modes corresponding to C channels, and coding mode combination r includes coding modes corresponding to kr (kr is a positive integer) channels.

[0361] S603 : Based on the number of channels C of the scene audio signal, search for a coding mode combination corresponding to the scene audio signal from a plurality of coding mode combinations corresponding to the current coding rate.

[0362] For example, assuming that the current coding rate is 256 kbps and C=16, coding combination 1 can be selected from coding combination 1, coding combination 2, and coding combination 3 as the coding combination corresponding to the scene audio signal.

[0363] For example, assuming that the current coding rate is 256 kbps and C=9, coding combination 2 can be selected from coding combination 1, coding combination 2 and coding combination 3 as the coding combination corresponding to the scene audio signal.

[0364] For example, assuming that the current coding rate is 256 kbps and C=4, coding combination 3 can be selected from coding combination 1, coding combination 2 and coding combination 3 as the coding combination corresponding to the scene audio signal.

[0365] For example, assuming that the current coding rate is 384 kbps and C=16, coding combination 4 can be selected from coding combination 4, coding combination 5, and coding combination 6 as the coding combination corresponding to the scene audio signal.

[0366] For example, assuming that the current coding rate is 384 kbps and C=9, coding combination 5 can be selected from coding combination 4, coding combination 5 and coding combination 6 as the coding combination corresponding to the scene audio signal.

[0367] For example, assuming that the current coding rate is 384 kbps and C=4, coding combination 6 can be selected from coding combination 4, coding combination 5 and coding combination 6 as the coding combination corresponding to the scene audio signal.

[0368] S604 : Encode the C channels of the scene audio signal using encoding methods corresponding to the C channels, where C is a positive integer.

[0369] For details, please refer to the description of S404 above, which will not be repeated here.

[0370] FIG7 is a schematic diagram illustrating an exemplary scene audio decoding process. The embodiment of FIG7 is a decoding process corresponding to the encoding process in the embodiment of FIG6.

[0371] S701, receiving a code stream.

[0372] In one possible manner, based on the current decoding rate, a decoding mode combination corresponding to the code stream may be searched from the decoding mode set; for details, refer to S702 to S703 below:

[0373] S702: Search for a plurality of decoding mode combinations corresponding to the current decoding rate from the decoding mode set, wherein the plurality of decoding mode combinations corresponding to the current decoding rate correspond to a plurality of channel numbers.

[0374] Exemplarily, based on the current decoding rate, multiple decoding mode combinations corresponding to the current decoding rate can be searched from the decoding mode sets in Table 5 and Table 6.

[0375] For example, if the current decoding rate is 256 kbps, searching for a decoding mode combination corresponding to the current decoding rate from the decoding mode set in Table 5 includes: decoding mode combination 1, decoding mode combination 2, and decoding mode combination 3.

[0376] For example, if the current decoding rate is 384 kbps, searching for a decoding mode combination corresponding to the current decoding rate from the decoding mode set in Table 6 includes: decoding mode combination 4, decoding mode combination 5, and decoding mode combination 6.

[0377] Exemplarily, the number of decoding mode combinations corresponding to the current decoding rate may be r (r is a positive integer, r is less than or equal to R). Each decoding mode combination may include decoding modes corresponding to multiple channels; for example, decoding mode combination 1 includes decoding modes corresponding to k1 (k1 is a positive integer) channels, decoding mode combination 2 includes decoding modes corresponding to C channels, and decoding mode combination r includes decoding modes corresponding to kr (kr is a positive integer) channels.

[0378] S703 : Based on the number C of channels of the reconstructed scene audio signal, search for a decoding mode combination corresponding to the bitstream from a plurality of decoding mode combinations corresponding to the current decoding rate.

[0379] For example, assuming that the current decoding rate is 256 kbps and C=16, decoding mode combination 1 can be selected from decoding mode combination 1, decoding mode combination 2, and decoding mode combination 3 as the decoding mode combination corresponding to the code stream.

[0380] For example, assuming that the current decoding rate is 256 kbps and C=9, decoding mode combination 2 can be selected from decoding mode combination 1, decoding mode combination 2, and decoding mode combination 3 as the decoding mode combination corresponding to the code stream.

[0381] For example, assuming that the current decoding rate is 256 kbps and C=4, decoding mode combination 3 can be selected from decoding mode combination 1, decoding mode combination 2, and decoding mode combination 3 as the decoding mode combination corresponding to the code stream.

[0382] For example, assuming that the current decoding rate is 384 kbps and C=16, decoding mode combination 4 can be selected from decoding mode combination 4, decoding mode combination 5, and decoding mode combination 6 as the decoding mode combination corresponding to the code stream.

[0383] For example, assuming that the current decoding rate is 384 kbps and C=9, decoding mode combination 5 can be selected from decoding mode combination 4, decoding mode combination 5 and decoding mode combination 6 as the decoding mode combination corresponding to the code stream.

[0384] For example, assuming that the current decoding rate is 384 kbps and C=4, decoding mode combination 6 can be selected from decoding mode combination 4, decoding mode combination 5 and decoding mode combination 6 as the decoding mode combination corresponding to the code stream.

[0385] S704 : Based on the code stream, decode the C channels using decoding methods corresponding to the C channels to obtain the reconstructed scene audio signal, where C is a positive integer.

[0386] Specifically, please refer to the description of S504 above, which will not be repeated here.

[0387] In this way, based on the current encoding rate (current decoding rate) and the number of channels of the scene audio signal, a codec combination is selected from the codec set for encoding and decoding, which can be applied to the current encoding rate for encoding and decoding, thereby ensuring audio fluency. It can also be applied to the encoding of scene audio signals containing different numbers of channels, with high versatility. Moreover, since the codec combination with better encoding performance is usually selected when establishing the codec set, the present application can also guarantee the encoding quality of various scene audio signals containing different numbers of channels to a certain extent.

[0388] The following describes the encoding and decoding process of a scene audio signal using the encoding method set in Table 7 and the decoding method set in Table 8 as examples. The description is made using the N1-order HOA signal as an example.

[0389] FIG8 is a schematic diagram illustrating an exemplary process of encoding a scene audio signal.

[0390] S801: Acquire a scene audio signal.

[0391] Exemplarily, the scene audio signal is an N1-order HOA signal, and the N1-order HOA signal includes audio signals of C channels, where C is equal to the square of (N1+1).

[0392] S602 : Based on the number of channels C of the scene audio signal, search for a coding mode combination corresponding to the scene audio signal from the coding mode set.

[0393] For example, if C=16, the coding mode combination 1 corresponding to the number of channels C of the scene audio signal is searched from the coding mode set in Table 7 as the coding mode combination corresponding to the scene audio signal.

[0394] For example, if C=9, the coding mode combination 2 corresponding to the number of channels C of the scene audio signal is searched from the coding mode set in Table 7 as the coding mode combination corresponding to the scene audio signal.

[0395] For example, if C=4, the coding mode combination 3 corresponding to the number of channels C of the scene audio signal is searched from the coding mode set in Table 7 as the coding mode combination corresponding to the scene audio signal.

[0396] S803 : Encode the C channels of the scene audio signal using encoding methods corresponding to the C channels, where C is a positive integer.

[0397] For details, please refer to the description of S404 above, which will not be repeated here.

[0398] FIG9 is a schematic diagram illustrating an exemplary scene audio decoding process. The embodiment of FIG9 is a decoding process corresponding to the encoding process in the embodiment of FIG8.

[0399] S901: Receive code stream.

[0400] S902: Based on the number C of channels of the reconstructed scene audio signal, search for a decoding mode combination corresponding to the bitstream from the decoding mode set.

[0401] For example, if C=16, then the decoding mode combination 1 corresponding to the number of channels C of the scene audio signal is searched from the decoding mode set in Table 8 as the decoding mode combination corresponding to the scene audio signal.

[0402] For example, if C=9, the decoding mode combination 2 corresponding to the number of channels C of the scene audio signal is searched from the decoding mode set in Table 8 as the decoding mode combination corresponding to the scene audio signal.

[0403] For example, if C=4, then the decoding mode combination 3 corresponding to the number of channels C of the scene audio signal is searched from the decoding mode set in Table 8 as the decoding mode combination corresponding to the scene audio signal.

[0404] S903 : Based on the code stream, decode the C channels using decoding methods corresponding to the C channels to obtain the reconstructed scene audio signal, where C is a positive integer.

[0405] Specifically, please refer to the description of S504 above, which will not be repeated here.

[0406] In this way, a codec combination is selected from a codec set based on the number of channels of the scene audio signal. This is suitable for encoding and decoding scene audio signals with different numbers of channels, and has high versatility. Furthermore, since a codec combination with superior encoding performance is typically selected when establishing a codec set, the present application can also guarantee, to a certain extent, the encoding quality of various scene audio signals with different numbers of channels.

[0407] In an example, FIG10 shows a schematic block diagram of a device 1000 according to an embodiment of the present application. The device 1000 may include: a processor 1001 and a transceiver / transceiver pin 1002 , and optionally, a memory 1003 .

[0408] The various components of the device 1000 are coupled together via a bus 1004. The bus 1004 includes a data bus, a power bus, a control bus, and a status signal bus. However, for clarity, all buses are referred to as bus 1004 in the figure.

[0409] Optionally, the memory 1003 may be used to store instructions in the aforementioned method embodiment. The processor 1001 may be used to execute the instructions in the memory 1003 and control the receiving pin to receive a signal and control the transmitting pin to send a signal.

[0410] The apparatus 1000 may be the electronic device or a chip of the electronic device in the above method embodiment.

[0411] The electronic device may be a terminal device or a server.

[0412] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0413] The present application also provides a chip comprising one or more interface circuits and one or more processors; the one or more processors receive or send data via the one or more interface circuits, and when the one or more processors execute computer instructions, the electronic device implements the aforementioned method steps in the aforementioned embodiment. The interface circuit is a transceiver / transceiver pin 1002.

[0414] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.

[0415] This embodiment further provides a computer program product, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the computer executes the above-mentioned related steps to implement the method in the above-mentioned embodiment.

[0416] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the methods in the above-mentioned method embodiments.

[0417] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0418] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0419] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0420] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0421] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0422] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0423] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0424] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0425] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0426] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0427] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A scene audio decoding method, characterized in that: The method comprises: Receive code stream; Determine a decoding mode combination corresponding to the bitstream from a decoding mode set, wherein the decoding mode set includes a plurality of decoding mode combinations; The code stream is decoded based on a decoding mode combination corresponding to the code stream to obtain a reconstructed scene audio signal.

2. The method according to claim 1, characterized in that A decoding method combination in the decoding method set corresponds to a type of scene information.

3. The method according to claim 2, characterized in that The scene information includes decoding rate and / or channel information.

4. The method according to any one of claims 1 to 3, characterized in that: A decoding mode combination of the decoding mode set includes decoding modes corresponding to K channels, where K is a positive integer; The decoding method corresponding to a channel includes at least one of the following: a first decoding method, a second decoding method or a third decoding method; wherein the first decoding method is the decoding signal itself; the second decoding method is a spatial decoding method; and the third decoding method is a decoding method other than the first decoding method and the second decoding method.

5. The method according to claim 4, characterized in that Among the decoding modes corresponding to the K channels, the decoding modes corresponding to at least two channels are different.

6. The method according to any one of claims 1 to 5, characterized in that: The reconstructed scene audio signal includes reconstructed audio signals of C channels, the decoding mode combination corresponding to the code stream includes decoding modes corresponding to C channels, and decoding the code stream based on the decoding mode combination corresponding to the code stream to obtain the reconstructed scene audio signal includes: Based on the bit stream, the C channels are decoded using a decoding method corresponding to the C channels to obtain the reconstructed scene audio signal, where C is a positive integer.

7. The method according to any one of claims 1 to 6, characterized in that: The step of determining a decoding mode combination corresponding to the bitstream from a set of decoding modes includes: Based on the current scene information, a decoding mode combination corresponding to the code stream is searched from the decoding mode set.

8. The method according to claim 7, characterized in that When a decoding mode combination of the decoding mode set corresponds to a decoding rate, searching the decoding mode combination corresponding to the bitstream from the decoding mode set based on the current scene information includes: Based on the current decoding rate, a decoding mode combination corresponding to the code stream is searched from the decoding mode set.

9. The method according to claim 8, characterized in that The reconstructed scene audio signal includes reconstructed audio signals of C channels, and searching for a decoding mode combination corresponding to the bitstream from the decoding mode set based on the current decoding rate includes: Searching for a plurality of decoding mode combinations corresponding to the current decoding rate from the set of decoding modes, wherein the plurality of decoding mode combinations corresponding to the current decoding rate correspond to a plurality of channel numbers; Based on the number of channels C of the reconstructed scene audio signal, a decoding mode combination corresponding to the bitstream is determined from a plurality of decoding mode combinations corresponding to the current decoding rate.

10. The method according to claim 8, characterized in that The reconstructed scene audio signal includes reconstructed audio signals of C channels, and searching for a decoding mode combination corresponding to the bitstream from the decoding mode set based on the current decoding rate includes: Determine a decoding mode combination corresponding to the current decoding rate from the set of decoding modes, wherein the decoding mode combination corresponding to the current decoding rate includes decoding modes corresponding to K channels, where K is greater than or equal to C; From a decoding mode combination corresponding to the current decoding rate, a decoding mode corresponding to the C channels of the reconstructed scene audio signal is selected to form a decoding mode combination corresponding to the bit stream.

11. The method according to claim 7, characterized in that The reconstructed scene audio signal includes reconstructed audio signals of C channels. When a decoding mode combination in the decoding mode set corresponds to a number of channels, searching the decoding mode combination corresponding to the bitstream from the decoding mode set based on the current scene information includes: Based on the number of channels C of the reconstructed scene audio signal, a decoding mode combination corresponding to the bitstream is determined from the decoding mode set.

12. The method according to claim 4, characterized in that The spatial decoding method is a decoding method for reconstructing based on attribute information of a target virtual speaker, and the target virtual speaker information is obtained by decoding the bit stream.

13. The method according to any one of claims 3 or 12, characterized in that: The third decoding method includes channel copy decoding.

14. The method according to claim 13, characterized in that The channel copy decoding is a decorrelation decoding method.

15. The method according to claim 2 or 3 or 7 or 8 or 9 or 10 or 11, characterized in that: The method further comprises: Parsing a preset identifier from the code stream; The searching, based on the current scene information, for a decoding mode combination corresponding to the bitstream from the decoding mode set includes: Based on the current scene information corresponding to the preset identifier, a decoding mode combination corresponding to the code stream is searched from the decoding mode set.

16. A scene audio decoding device, characterized in that: The device comprises: A code stream receiving module, used for receiving code stream; A decoding mode determination module, used to determine a decoding mode combination corresponding to the bitstream from a decoding mode set, wherein the decoding mode set includes a plurality of decoding mode combinations; A decoding module is used to decode the code stream based on a decoding mode combination corresponding to the code stream to obtain a reconstructed scene audio signal.

17. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the scene audio decoding method according to any one of claims 1 to 15.

18. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal comprising a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the scene audio decoding method according to any one of claims 1 to claim 15.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the scene audio decoding method according to any one of claims 1 to 15.

20. A computer program product, characterized in that The computer program product comprises a software program, and when the software program is executed by a computer or a processor, the steps of the method according to any one of claims 1 to 15 are performed.

Citation Information

Patent Citations

  • Scene audio decoding method and electronic equipment

    CN118800248A

  • Method for and apparatus for decoding an ambisonics audio soundfield representation for audio playback using 2d setups

    CA3147189A1

  • Correlating scene-based audio data for psychoacoustic audio coding

    CN114341976A

  • Audio encoding and decoding method and device

    CN114582356A

  • Decoding method and device, equipment, storage medium and computer program product

    CN115881138A