Scene audio decoding method and electronic device

By using a combination of the first encoding method and other encoding methods in HOA signal encoding, the problem of low HOA signal encoding performance is solved, more efficient code rate utilization and encoding complexity reduction are achieved, and it is suitable for audio signals and networks in different scenarios. condition.

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

Patent Information

Application Number
PCT/CN2024/071725
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 high-order reverberation (HOA) signals, resulting in large amounts of data, difficulty in transmission and storage, and difficulty in balancing coding quality and bit rate overhead.

Method used

Use a combination of the first encoding method and other encoding methods, including direct encoding, spatial encoding and channel copy encoding. The encoding methods are combined according to the characteristics of the scene audio signal and network bandwidth to improve encoding quality and reduce bit rate overhead and encoding complexity. .

Benefits of technology

On the premise of ensuring encoding quality, the code rate overhead and encoding complexity are reduced, the encoding performance of scene audio signals is improved, and the encoding performance is adapted to different scenes and network conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071725_17102024_PF_FP_ABST
    Figure CN2024071725_17102024_PF_FP_ABST
Patent Text Reader

Abstract

A scene audio decoding method and an electronic device. The method comprises: firstly, receiving a code stream (S301); and then, decoding the code stream on the basis of a decoding mode combination, so as to obtain a reconstructed scene audio signal (S302), wherein the decoding mode combination comprises at least one of the following combinations: a combination of a first decoding mode, a second decoding mode and a third decoding mode, and a combination of the first decoding mode and the third decoding mode, the first decoding mode being decoding encoded data obtained by encoding a signal itself, the second decoding mode being a spatial decoding mode, and the third decoding mode being a decoding mode other than the first decoding mode and the second decoding mode. Thus, the decoding complexity can be reduced while ensuring a certain degree of audio quality.
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 202310428890.5 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. 3D audio imparts a strong sense of space, envelopment, and immersion, creating an extraordinary auditory experience of "being there." High-order ambisonics (HOA) technology, in particular, is gaining widespread attention and research due to its independence from speaker layout during recording, encoding, and playback, as well as the rotatable playback capabilities of HOA format data. This allows for greater flexibility in 3D audio playback.

[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, encoding the scene audio signal based on a combination of encoding methods; wherein the encoding method combination comprises at least one of the following combinations: a combination of a first encoding method, a second encoding method, and a third encoding method, and a combination of a first encoding method and a third encoding method; the first encoding method is to encode the signal itself; the second encoding method is a spatial encoding method; and the third encoding method is an encoding method other than the first encoding method and the second encoding method.

[0008] 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.

[0009] 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.

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

[0011] 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)

[0012] 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.

[0013] Exemplarily, the first encoding method can also be referred to as a direct encoding method, i.e., encoding the signal itself by performing operations such as time-frequency transformation, preprocessing, bit allocation, quantization, and entropy coding on the signal. It should be noted that encoding the signal itself refers to encoding the signal (or data) to be encoded. For example, when the signal to be encoded is a scene audio signal, encoding the scene audio signal using the first encoding method may refer to encoding the audio signals of some or all channels in the scene audio signal.

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

[0015] According to the first aspect, the spatial coding method is a coding method for encoding attribute information of a target virtual speaker, where the attribute information of the target virtual speaker is determined based on a scene audio signal.

[0016] 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.

[0017] 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.

[0018] 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.

[0019] 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.

[0020] 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.

[0021] 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.

[0022] According to the first aspect, or any implementation of the first aspect above, the third encoding method includes one or more encoding methods.

[0023] It should be understood that this application does not limit the types and number of encoding methods included in the third encoding method. In this way, the third encoding method can be determined according to the current scene (such as the content complexity of the scene audio signal, network bandwidth, etc.) to further improve the encoding performance.

[0024] According to the first aspect, or any implementation of the first aspect above, the third encoding method includes a channel copy encoding method. In this way, the fluctuation of the decoded reconstructed scene audio signal can be reduced, and the audio fluency can be improved.

[0025] According to the first aspect, or any implementation of the first aspect above, the channel copy coding mode is a decorrelation coding mode. Thus, the bitrate overhead required by the third coding mode is lower than the bitrate overhead required by the second coding mode. Compared to encoding the scene audio signal using a combination of the first, second, and third coding modes, encoding the scene audio signal using the combination of the first and third coding modes can reduce bitrate overhead and coding complexity.

[0026] According to the first aspect, or any implementation of the first aspect above, encoding the scene audio signal based on the coding mode combination includes encoding a frame of the scene audio signal using multiple coding modes in the coding mode combination. This improves the coding quality of each frame of the scene audio signal.

[0027] According to the first aspect, or any implementation of the first aspect above, the scene audio signal is X frames, where the X frames include the i-th frame and the j-th frame; encoding the scene audio signal based on the coding mode combination includes: encoding the i-th frame scene audio signal using multiple coding modes in the coding mode combination; encoding the j-th frame scene audio signal using the first coding mode in the coding mode combination; wherein i and j are integers between 1 and X, i is not equal to j, and X is a positive integer.

[0028] That is to say, a part of the frame scene audio signal is encoded using multiple encoding methods in the encoding method combination, and another part of the frame scene audio signal is encoded using the first encoding method in the encoding method combination. It can flexibly adapt to encoding in various scenarios (such as different content complexity of scene audio signals, network bandwidth, etc.), thereby improving the generalization of the scene audio encoding method of this application.

[0029] According to the first aspect, or any implementation of the first aspect above, the scene audio signal is X frames, and the X frames include the i-th frame and the j-th frame; based on the coding method combination, the scene audio signal is encoded, including: for the i-th frame scene audio signal, multiple coding methods in the k1-th coding method combination are used for encoding; for the j-th frame scene audio signal, multiple coding methods in the k2-th coding method combination are used for encoding; wherein i and j are positive integers between 1 and X, i is not equal to j, k1 and k2 are positive integers, and k1 is not equal to k2.

[0030] That is to say, different frame scene audio signals are encoded using multiple encoding methods in different encoding method combinations, which can flexibly adapt to various scenarios (such as the content complexity of different scene audio signals, network bandwidth, etc.) and improve the generalization of the scene audio encoding method of this application.

[0031] According to the first aspect, or any implementation method of the first aspect above, a frame of scene audio signal includes audio signals of C channels. When the coding method combination includes a combination of a first coding method, a second coding method, and a third coding method, for one frame of scene audio signal, multiple coding methods in the coding method combination are used for encoding, including: for one frame of scene audio signal: C1 first channels are encoded using the first coding method, C2 second channels are encoded using the second coding method, and C3 third channels are encoded using the third coding method; wherein C is equal to the sum of C1, C2, and C3, and C, C1, C2, and C3 are positive integers.

[0032] According to the first aspect, or any implementation method of the first aspect above, a frame of scene audio signal includes C channels of audio signals, the audio signal of one channel has Y frequency bands, and C and Y are positive integers; for one frame of scene audio signal, multiple encoding methods in the encoding method combination are used for encoding, including: for one frame of scene audio signal, the Y frequency bands of a channel are encoded using multiple encoding methods in the encoding method combination.

[0033] For example, the frequency range of each frequency band can be set as required, and this application does not impose any restrictions on this.

[0034] According to the first aspect, or any implementation of the first aspect above, the scene audio signal is an N-order high-order ambisonics (HOA) signal;

[0035] C1 first channels are C1 channels from the 0th order to the Mth order in the Nth order HOA signal, where M is an integer less than N, C is equal to the square of (N+1), and C1 is less than or equal to the square of (M+1);

[0036] The C2 second channels include: the other C4 channels included in the 0th order to the Mth order in the Nth order HOA signal, and the C5 channels other than the channels included in the 0th order to the Mth order in the Nth order HOA signal;

[0037] The C3 third channels include: the other C6 channels included in the 0th order to the Mth order in the Nth order HOA signal, and the other C7 channels in the Nth order HOA signal except the channels included in the 0th order to the Mth order;

[0038] Among them, C2 is equal to the sum of C4 and C5, C3 is equal to the sum of C6 and C7, the square of (M+1) is equal to the sum of C1, C4 and C6, and C4, C5, C6 and C7 are integers.

[0039] According to the first aspect, or any implementation method of the above first aspect, the C3 third channels are encoded using a third encoding method, including: encoding a first preset identifier corresponding to the C3 third channels, the first preset identifier indicating that the third encoding method of the C3 third channels is a time domain decorrelation encoding method or a frequency domain decorrelation encoding method.

[0040] When the third encoding mode is a time-domain decorrelation encoding mode, the first preset identifier is the first preset value; when the third encoding mode is a frequency-domain decorrelation encoding mode, the first preset identifier is the second preset value. This facilitates the decoding end to know whether the C3 third channels use the time-domain decorrelation decoding mode or the frequency-domain decorrelation decoding mode.

[0041] Of course, the encoding end and the decoding end can also pre-agree whether the C3 third channels adopt the time domain decorrelation decoding method (time domain decorrelation encoding method) or the frequency domain decorrelation decoding method (frequency domain decorrelation encoding method); this application does not impose any restrictions on this.

[0042] According to the first aspect, or any implementation of the first aspect above, when the encoding mode combination is a combination of the first encoding mode, the second encoding mode and the third encoding mode, the method further includes: encoding feature information corresponding to C2 second channels.

[0043] Exemplarily, the characteristic information corresponding to the fifth audio signal in the scene audio signal may be determined based on information such as energy and intensity of the scene audio signal. For example, the characteristic information is gain information.

[0044] In this way, after decoding the feature information from the bit stream, the decoding end can compensate for the reconstructed audio signals of the C2 second channels in the reconstructed scene audio signal, thereby improving the audio quality of the reconstructed audio signals of the C2 second channels.

[0045] According to the first aspect, or any implementation of the first aspect above, the method further includes: encoding a second preset identifier, the second preset identifier indicating the type of the coding mode combination, so that the decoder can easily know which coding mode combination to use for decoding.

[0046] Of course, the encoding end and the decoding end may also pre-agree on the type of encoding mode combination; this application does not impose any restrictions on this.

[0047] In a second aspect, an embodiment of the present application provides a scene audio decoding method, which includes: first, receiving a code stream; then, decoding the code stream based on a decoding method combination to obtain a reconstructed scene audio signal; wherein the decoding method combination includes at least one of the following combinations: a combination of a first decoding method, a second decoding method and a third decoding method, and a combination of the first decoding method and the third decoding method; the first decoding method is to decode the encoded data obtained by encoding the 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.

[0048] Corresponding to the decoding end, the present application adopts a combination of the first decoding method and other decoding methods for decoding, which can reduce the decoding complexity while ensuring a certain degree of audio quality.

[0049] According to the second aspect, the spatial decoding method is a decoding method that reconstructs based on attribute information of a target virtual speaker, where the target virtual speaker information is obtained by decoding a bitstream.

[0050] According to the second aspect, or any implementation of the second aspect above, the third decoding method includes one or more decoding methods.

[0051] According to the second aspect, or any implementation of the second aspect above, the third decoding mode includes a channel copy decoding mode.

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

[0053] In this way, when the third decoding mode is the channel copy decoding mode, the fluctuation degree of the reconstructed scene audio signal obtained by decoding can be reduced, thereby improving the audio fluency.

[0054] According to the second aspect, or any implementation of the second aspect above, decoding the bitstream based on the decoding mode combination to obtain a reconstructed scene audio signal includes:

[0055] For a frame of code stream, multiple decoding methods in the decoding method combination are used for decoding to obtain a frame of reconstructed scene audio signal.

[0056] According to the second aspect, or any implementation of the second aspect above, the bitstream is X frames, where the X frames include the i-th frame and the j-th frame; decoding the bitstream based on the decoding mode combination to obtain a reconstructed scene audio signal includes:

[0057] For the i-th frame code stream, multiple decoding methods in the decoding method combination are used to decode to obtain the i-th frame reconstructed scene audio signal;

[0058] Decoding the j-th frame stream using the first decoding method in the decoding method combination to obtain the j-th frame reconstructed scene audio signal;

[0059] Wherein, i and j are integers between 1 and X, i is not equal to j, and X is a positive integer.

[0060] According to the second aspect, or any implementation of the second aspect above, the bitstream is X frames, where the X frames include the i-th frame and the j-th frame; decoding the bitstream based on the decoding mode combination to obtain a reconstructed scene audio signal includes:

[0061] For the i-th frame code stream, multiple decoding methods in the k1-th decoding method combination are used to decode to obtain the i-th frame reconstructed scene audio signal;

[0062] For the j-th frame code stream, multiple decoding methods in the k2-th decoding method combination are used to decode to obtain the j-th frame reconstructed scene audio signal;

[0063] Wherein, i and j are positive integers between 1 and X, i is not equal to j, k1 and k2 are positive integers, k1 is not equal to k2.

[0064] According to the second aspect, or any implementation of the second aspect above, a frame of reconstructed scene audio signal includes C channels of reconstructed audio signals. When the decoding mode combination is a combination of the first decoding mode, the second decoding mode, and the third decoding mode, a frame of code stream is decoded using multiple decoding modes in the decoding mode combination to obtain a frame of reconstructed scene audio signal, including:

[0065] Based on one frame of code stream, the first channels C1 are decoded using a first decoding method, the second channels C2 are decoded using a second decoding method, and the third channels C3 are decoded using a third decoding method to obtain one frame of reconstructed scene audio signal;

[0066] Wherein, C is equal to the sum of C1, C2 and C3, and C, C1, C2 and C3 are positive integers.

[0067] According to the second aspect, or any implementation of the second aspect above, a frame of reconstructed scene audio signal includes C channels of reconstructed audio signals, the reconstructed audio signal of one channel has Y frequency bands, and C and Y are positive integers;

[0068] For a frame of code stream, multiple decoding methods in the decoding method combination are used for decoding to obtain a frame of reconstructed scene audio signal, including:

[0069] For Y frequency bands of a channel in a frame of reconstructed scene audio signal, a plurality of decoding methods in the decoding method combination are used to decode a frame of code stream to obtain a frame of reconstructed scene audio signal.

[0070] According to the second aspect, or any implementation of the second aspect above, the reconstructed scene audio signal is an N-order high-order ambisonic reverberation HOA signal;

[0071] C1 first channels are C1 channels from the 0th order to the Mth order in the Nth order HOA signal, where M is an integer less than N, C is equal to the square of (N+1), and C1 is less than or equal to the square of (M+1);

[0072] The C2 second channels include the other C4 channels included in the 0th order to the Mth order in the N-order HOA signal, and the C5 channels other than the channels included in the 0th order to the Mth order in the N-order HOA signal;

[0073] The C3 third channels include the other C6 channels included in the 0th order to the Mth order in the N-order HOA signal, and the other C7 channels in the N-order HOA signal except the channels included in the 0th order to the Mth order;

[0074] Among them, C2 is equal to the sum of C4 and C5, C3 is equal to the sum of C6 and C7, the square of (M+1) is equal to the sum of C1, C4 and C6, and C4, C5, C6 and C7 are integers.

[0075] According to the second aspect, or any implementation method of the above second aspect, the C3 third channels are decoded using a third decoding method, including: decoding the C3 third channels based on the third decoding method corresponding to the first preset identifier parsed from the code stream; the third decoding method corresponding to the first preset identifier is a time domain decorrelation decoding method or a frequency domain decorrelation decoding method.

[0076] According to the second aspect, or any implementation of the second aspect above, when the decoding mode combination is a combination of the first decoding mode, the second decoding mode, and the third decoding mode, the method further includes:

[0077] Based on feature information corresponding to the C2 second channels parsed from the bitstream, compensation is performed on the reconstructed audio signals of the C2 second channels in the reconstructed scene audio signal.

[0078] According to the second aspect, or any implementation of the second aspect above, the method further includes:

[0079] Parsing a second preset identifier from the code stream;

[0080] Decode the bitstream based on a combination of decoding methods to obtain a reconstructed scene audio signal, including:

[0081] The code stream is decoded according to the decoding mode combination corresponding to the second preset identifier to obtain a reconstructed scene audio signal.

[0082] 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.

[0083] 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.

[0084] 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.

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

[0086] A signal acquisition module, used to acquire the scene audio signal to be encoded;

[0087] A coding module is used to encode a scene audio signal based on a combination of coding methods; wherein the coding method combination includes at least one of the following combinations: a combination of a first coding method, a second coding method, and a third coding method, and a combination of the first coding method and the third coding method; the first coding method is to encode the signal itself; the second coding method is a spatial coding method; and the third coding method is a coding method other than the first coding method and the second coding method.

[0088] 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.

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

[0090] 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.

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

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

[0093] A decoding module, configured to decode the bit stream based on a combination of decoding modes to obtain a reconstructed scene audio signal;

[0094] Among them, the decoding method combination includes at least one of the following combinations: a combination of the first decoding method, the second decoding method and the third decoding method, and a combination of the first decoding method and the third decoding method; the first decoding method is to decode the encoded data obtained by encoding the 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.

[0095] 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.

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

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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.

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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.

[0105] 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.

[0106] 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.

[0107] 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.

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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.

[0113] 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.

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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.

[0118] 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.

[0119] 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

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

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

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

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

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

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

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

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

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

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

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

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

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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.

[0136] 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.

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

[0138] 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.

[0139] 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.

[0140] 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.

[0141] 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.

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

[0143] 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.

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

[0145] 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.

[0146] 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.

[0147] 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.

[0148] 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).

[0149] 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).

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

[0151] Among them, m is truncated to the Nth item, that is, m=N, with 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 Nth-order HOA signal). The sound field refers to the area in the medium where sound waves exist. N is an integer greater than or equal to 1.

[0152] 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.

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

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

[0155] 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.

[0156] 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.

[0157] 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.

[0158] It should be noted that the second audio playback module can perform post-processing (such as audio rendering (for example, the audio signal containing (N+1) 2 The 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

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

[0165] 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.

[0166] 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.

[0167] 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.

[0168] 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.

[0169] 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.

[0170] Specifically, the first electronic device uses a scene audio encoding module to encode the scene audio signal to obtain a first bitstream; the first bitstream is channel-encoded and transmitted to a wireless or core network device. The channel decoding module of the wireless or core network device can then perform channel decoding and output the first bitstream obtained by channel decoding to the scene audio decoding module. The scene audio decoding module then decodes the first bitstream to obtain a scene audio signal and outputs the scene audio signal to another audio encoding module. The other audio encoding module can then encode the scene audio signal to obtain a second bitstream and output the second bitstream to the channel encoding module. The channel encoding module then channel-encodes the second bitstream and transmits it to the second electronic device. The second electronic device can then call another audio decoding module to decode the second bitstream obtained by channel decoding to obtain a reconstructed scene audio signal; the reconstructed scene audio signal can then be played back.

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

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

[0173] S201: Acquire a scene audio signal.

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

[0175] 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)

[0176] For example, an N-order HOA signal may include C channels of audio signals, where C=(N+1) 2For 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.

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

[0178] S202: Encode the scene audio signal based on the encoding method combination.

[0179] Exemplarily, a coding method combination consisting of multiple coding methods may be used to encode the scene audio signal to obtain a code stream of the scene audio signal.

[0180] In one possible manner, a first encoding mode, a second encoding mode, and a third encoding mode may be used to form an encoding mode combination.

[0181] In one possible manner, the first encoding mode and the third encoding mode may be used to form an encoding mode combination.

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

[0183] 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.

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

[0185] 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.

[0186] It should be understood that the encoding mode combination includes at least one of the following combinations: a combination of the first encoding mode and the third encoding mode, and a combination of the first encoding mode, the second encoding mode, and the third encoding mode.

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

[0188] When the bit rate overhead required by the third encoding method is lower than the bit rate overhead required by the second encoding method, for example, the third encoding method is a channel copy encoding method; compared with using a combination of the first encoding method, the second encoding method and the third encoding method to encode the scene audio signal, the present application uses a combination of the first encoding method and the third encoding method to encode the scene audio signal, which can reduce the bit rate overhead and encoding complexity.

[0189] In one possible approach, the encoding end and the decoding end may pre-agreed on the type of encoding mode combination (or decoding mode combination).

[0190] In one possible approach, the encoder and decoder have not pre-agreed on the type of encoding scheme combination (or decoding scheme combination). In this case, the encoder can also encode a second preset identifier, where the second preset identifier can be used to indicate the type of encoding scheme combination (or decoding scheme combination). In this way, after the second preset identifier is transmitted to the decoder via the bitstream, the decoder can learn the type of encoding scheme combination (or decoding scheme combination) and use the decoding scheme combination corresponding to the encoding scheme combination of the encoder to perform decoding and obtain a reconstructed scene audio signal.

[0191] 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.

[0192] S301, receiving a code stream.

[0193] S302: Decode the code stream based on the decoding mode combination to obtain a reconstructed scene audio signal.

[0194] Exemplarily, a decoding method combination consisting of multiple decoding methods may be used to decode the bit stream to obtain a reconstructed scene audio signal.

[0195] In one possible manner, a first decoding manner, a second decoding manner, and a third decoding manner may be used to form a decoding manner combination.

[0196] In one possible manner, the first decoding manner and the third decoding manner may be used to form a decoding manner combination.

[0197] Exemplarily, the first decoding method may be to decode the encoded data obtained by encoding the signal itself, that is, to perform entropy decoding, inverse quantization, bit allocation, post-processing and time-frequency transformation and other operations on the encoded data obtained by encoding the signal itself; wherein, the first decoding method may also be referred to as a direct decoding method.

[0198] Exemplarily, the second decoding method may be a spatial decoding method, which is to reconstruct the target virtual speaker based on the attribute information of the target virtual speaker. The process of reconstructing the target virtual speaker based on the attribute information will be described later.

[0199] Exemplarily, the third decoding mode may include one or more decoding modes in addition to the first decoding mode and the second decoding mode. In one possible embodiment, the third decoding mode may be channel copy (HOA copy) decoding. Optionally, the third decoding mode is a decorrelation decoding mode. It should be understood that this application does not limit the number and types of decoding modes included in the third decoding mode.

[0200] It should be understood that the decoding mode combination includes at least one of the following combinations: a combination of the first decoding mode and the third decoding mode, and a combination of the first decoding mode, the second decoding mode, and the third decoding mode.

[0201] Exemplarily, when the encoding end and the decoding end pre-agreed on the type of encoding mode combination (decoding mode combination), the decoding end may use the pre-agreed decoding mode combination to decode the bitstream to obtain the reconstructed scene audio signal.

[0202] Exemplarily, when the encoding end and the decoding end have not pre-agreed on the type of encoding mode combination (or decoding mode combination), the decoding end can first parse the second preset identifier from the bit stream, and then decode the bit stream based on the decoding mode combination corresponding to the second preset identifier to obtain a reconstructed scene audio signal.

[0203] In this way, when the third decoding mode is the channel copy decoding mode, the fluctuation degree of the reconstructed scene audio signal obtained by decoding can be reduced, thereby improving the audio fluency.

[0204] In one possible approach, when the scene audio signal to be encoded is a single frame, the frame can be encoded using multiple encoding methods from the encoding method combination; see the description of the embodiment of Figure 4a or Figure 6 below. Correspondingly, the decoding end receives a single frame of code stream and decodes the single frame of code stream using multiple decoding methods from the decoding method combination to obtain a single frame of reconstructed scene audio signal; see the description of the embodiment of Figure 5 or Figure 7 below.

[0205] In one possible approach, when the scene audio signal to be encoded comprises multiple frames, each frame of the scene audio signal can be encoded using multiple encoding methods from the encoding method combination; see the description of the embodiment of Figure 4a or Figure 6 below. Correspondingly, the decoding end receives a multi-frame code stream and decodes each frame of the code stream using multiple decoding methods from the decoding method combination to obtain a single frame of the reconstructed scene audio signal; see the description of the embodiment of Figure 5 or Figure 7 below.

[0206] The following describes the encoding and decoding process of a frame of scene audio signal by taking the third encoding mode, which is the decorrelation encoding mode, as an example.

[0207] Figure 4a is a schematic diagram illustrating an exemplary scene audio encoding process. In the embodiment of Figure 4a, multiple channels of a frame of scene audio signal are encoded using a combination of multiple encoding methods. The encoding method combination is a combination of a first encoding method, a second encoding method, and a third encoding method.

[0208] S401: Acquire a scene audio signal, where the scene audio signal includes audio signals of C channels.

[0209] S402 , for the scene audio signal: encode C1 first channels using a first encoding method, encode C2 second channels using a second encoding method, and encode C3 third channels using a third encoding method.

[0210] For example, for a frame of scene audio signal, it can be determined that, among the C channels included in the frame of scene audio signal, C1 first channels are encoded using a first encoding method, C2 second channels are encoded using a second encoding method, and C3 third channels are encoded using a third encoding method. Here, C is equal to the sum of C1, C2, and C3, and C, C1, C2, and C3 are positive integers; the first channel, the second channel, and the third channel are different channels.

[0211] Next, the C1 first channels are encoded using the first encoding method, the C2 second channels are encoded using the second encoding method, and the C3 third channels are encoded using the third encoding method, so as to obtain the code stream of the scene audio signal of this frame.

[0212] Exemplarily, the process of encoding C1 first channels using the first encoding method can be to directly encode the audio signals of the C1 first channels, that is, to perform time-frequency transformation, preprocessing, bit allocation, quantization and entropy coding on the audio signals of the C1 first channels to obtain encoded data of the audio signals of the C1 first channels.

[0213] Exemplarily, the process of encoding the C2 second channels using the second encoding method may include: determining attribute information of the target virtual speaker based on the scene audio signal; and encoding the attribute information of the target virtual speaker.

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

[0215] 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.

[0216] 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.

[0217] 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.

[0218] 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.

[0219] 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:

[0220] 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.

[0221] 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.

[0222] 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.

[0223] 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.

[0224] 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).

[0225] 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.

[0226] 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.

[0227] 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).

[0228] 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.

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

[0230] 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.

[0231] 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.

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

[0233] 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.

[0234] 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.

[0235] 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.

[0236] 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.

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

[0238] 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.

[0239] Exemplarily, when the third encoding mode is a decorrelation encoding mode, encoding the C3 third channels using the third encoding mode may mean that the audio signals of the C3 third channels are not processed; instead, the decoding end performs a decorrelation decoding mode on the C3 third channels to determine the reconstructed audio signals of the C3 third channels.

[0240] 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 the decorrelation coding method, encoding the C3 third channels using the third coding method may mean, for the C3 third channels, determining 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 the time-domain decorrelation coding method, the audio signals of the C3 third channels may not be processed. Instead, the value of the first preset flag is set to the first preset value, and the first preset flag corresponding to the C3 third channels is encoded. The first preset flag set to the first preset value indicates that the third coding method for the C3 third channels is the time-domain decorrelation coding method. When the third coding method is the frequency-domain decorrelation coding method, the audio signals of the C3 third channels may not be processed. Instead, the value of the first preset flag is set to the second preset value, and the first preset flag corresponding to the C3 third channels is encoded. The first preset flag set to the second preset value indicates that the third coding method for the C3 third channels is the frequency-domain decorrelation coding method. In this way, it is convenient for the decoding end to know whether the third encoding mode is a time domain decorrelation encoding mode or a frequency domain decorrelation encoding mode; and then use the corresponding decorrelation decoding mode algorithm to perform decoding.

[0241] The following describes how to determine C1 first channels, C2 second channels, and C3 third channels, taking the scene audio signal as an N-order HOA signal as an example.

[0242] Exemplarily, C1 first channels may refer to C1 channels included in the 0th to Mth orders in the Nth order HOA signal, where M is an integer less than N, C is equal to the square of (N+1), and C1 is less than or equal to the square of (M+1).

[0243] Exemplarily, the C2 second channels may include: other C4 channels included in the 0th order to the Mth order in the Nth order HOA signal, and C5 channels other than the channels included in the 0th order to the Mth order in the Nth order HOA signal;

[0244] Exemplarily, the C3 third channels may include: the other C6 channels included in the 0th order to the Mth order in the Nth order HOA signal, and the other C7 channels excluding the channels included in the 0th order to the Mth order in the Nth order HOA signal;

[0245] Among them, C2=C4+C5, C3=C6+C7, C1+C4+C6=the square of (M+1), and C4, C5, C6 and C7 are integers.

[0246] Assume that N=3, then C=16, that is, the third-order HOA signal includes 16 channels.

[0247] Among them, when the value of n in formula (3) is 0, formula (3) is expanded to obtain one monomial, as shown in the following formula (5); at this time, an audio signal of one channel can be obtained (hereinafter referred to as channel 1). When the value of n in formula (3) is 1, formula (3) is expanded to obtain three monomials, as shown in the following formula (6); at this time, audio signals of three channels can be obtained (referred to as channel 2, channel 3, and channel 4, respectively). When the value of n in formula (4) is 2, formula (3) is expanded to obtain five monomials, as shown in the following formula (7); at this time, audio signals of five channels can be obtained (referred to as channel 5, channel 6, channel 7, channel 8, and channel 9, respectively). When the value of n in formula (4) is 3, formula (3) is expanded to obtain seven monomials, as shown in the following formula (8); at this time, audio signals of seven channels can be obtained (referred to as channel 10, channel 11, channel 12, channel 13, channel 14, channel 15, and channel 16, respectively). Each monomial corresponds to a channel, and each monomial can represent the audio signal of a channel.

[0248] in, It is the location information of the sound source in the scene audio signal.

[0249] For example, if M = 0, that is, m in formula (3) is equal to 0, then the value of n can be 0. Expanding formula (3) yields a monomial, meaning that the 0th order in the 3rd-order HOA signal includes one channel, namely, channel 1. In this case, C1 = 1, meaning the first channel is channel 1, C4 = 0, and C6 = 0. Correspondingly, the 3rd-order HOA signal includes 15 channels in addition to the 0th order channel, namely, channels 2 to 16. From these 15 channels, C5 channels can be selected as the second channel, and C7 channels can be selected as the third channel.

[0250] For example

[0251] Assume that C5=14, C7=1; then C2 second channels are channels 2 to 15, and C3 third channels are channel 16; or, C2 second channels are channels 2 to 13 and 16, and C3 third channels are channel 15; the specific settings can be made according to requirements, and this application does not impose any restrictions on this.

[0252] For example, if M = 1, that is, m in formula (3) is equal to 1, then the value of n can be 0 or 1. Expanding formula (3) yields four monomials, namely, the four channels from order 0 to order 1 in the third-order HOA signal, namely, channels 1 to 4. In this case, C1 first channels can be selected from these four channels, C4 other channels can be selected as second channels, and C6 other channels can be selected as third channels. Correspondingly, in addition to the channels from order 0 to order 1, the third-order HOA signal also includes 12 other channels, namely, channels 5 to 16. From these 12 channels, C5 channels can be selected as second channels, and C7 channels can be selected as third channels.

[0253] For example

[0254] Assume that C1=4, C4=0, C6=0, C5=10, and C7=2; then the C1 first channels are channels 1 to 4, the C2 second channels are channels 5 to 14, and the C3 third channels are channels 16 and 15; or, the C1 first channels are channels 1 to 4, the C2 second channels are channels 5 to 10 and channels 13 to 16, and the C3 third channels are channels 11 and 12; the specific settings can be made according to requirements, and this application does not impose any restrictions on this.

[0255] For example, if M = 2, that is, m in formula (3) is equal to 2, then the value of n can be 0, 1, and 2. Expanding formula (3) yields 9 monomials, namely, the 9 channels from the 0th to the 2nd order in the 3rd-order HOA signal, namely, channel 1 to channel 9. In this case, C1 first channels can be selected from these 9 channels, the remaining C4 channels can be selected as second channels, and the remaining C6 channels can be selected as third channels. Correspondingly, in addition to the channels from the 0th to the 2nd order, the 3rd-order HOA signal also includes 7 other channels, namely, channel 10 to channel 16. From these 7 channels, C5 channels can be selected as second channels, and C7 channels can be selected as third channels.

[0256] For example

[0257] For example, if C1=8, C4=1, C6=0, C5=5, and C7=2, then the C1 first channels include channels 1 to 5 and channels 7 to 9, the C2 second channels include channel 6 and channels 11 to 15, and the C3 third channels include channel 10 and channel 16. Accordingly, the encoding method corresponding to the 16 channels can be shown in "Subcombination 2" in the third column of Table 1 below.

[0258] For example, if C1=9, C4=0, C6=0, C5=5, and C7=2, then the C1 first channels include channels 1 to 9, the C2 second channels include channels 11 to 15, and the C3 third channels include channels 10 and 16. Correspondingly, the encoding method for the 16 channels can be shown in "Subcombination 3" in the third column of Table 1 below.

[0259] It should be understood that C1, C2 and C3 can take other values, and the first channel, the second channel and the third channel can be selected in other ways; in this way, for the 16 channels of a frame of scene audio signal, r (r is a positive integer greater than or equal to 2) sub-combinations can be obtained, and this application does not impose any restrictions on this.

[0260] Table 1

[0261] Exemplarily, when the encoding combination is a combination of the first encoding method and the third encoding method, the C8 fourth channels may be encoded using the first encoding method, and the C9 fifth channels may be encoded using the third encoding method.

[0262] Among them, the C8 fourth channels are the C8 channels included in the 0th order to the Mth order in the N-order HOA signal, M is an integer less than N, C is equal to the square of (N+1), and C8 is less than or equal to the square of (M+1); the C9 fifth channels include: the other C10 channels included in the 0th order to the Mth order in the N-order HOA signal, and the channels in the N-order HOA signal other than the channels included in the 0th order to the Mth order; among them, C8+C10 is equal to the square of (M+1).

[0263] For example, if M = 0, that is, m in formula (3) is equal to 0, then the value of n can be 0; expanding formula (3) can yield a monomial, meaning that the 0th order in the 3rd-order HOA signal includes one channel, namely, channel 1. In this case, C8 = 1, meaning that the fourth channel is channel 1, and C10 = 0. Correspondingly, the 3rd-order HOA signal includes 15 channels in addition to the channels included in the 0th order, namely, channels 2 to 16, each of which is the fifth channel. In this case, the encoding method corresponding to the 16 channels can be shown in "Subcombination 1" in the second column of Table 1 below.

[0264] For example, if M = 1, that is, m in formula (3) is equal to 1, then the value of n can be 0 or 1. Expanding formula (3) yields four monomials, namely, the four channels from order 0 to order 1 in the third-order HOA signal, namely, channels 1 to 4. In this case, C8 channels can be selected from these four channels as the third channel, and the remaining C10 channels can be selected as the fifth channel. Correspondingly, in addition to the channels from order 0 to order 1, the third-order HOA signal also includes 12 other channels, namely, channels 5 to 16 are all fifth channels.

[0265] For example

[0266] Assume that C8=4, C10=0, and C9=12; then the C1 fourth channels are channels 1 to 4, and the C9 fifth channels are channels 5 to 16.

[0267] Assume that C8=2, C10=2, and C9=12; then C1 fourth channels are channels 1 to 2, and C9 fifth channels are channels 3 to 16.

[0268] For example, if M = 2, that is, m in formula (3) is equal to 2, then the value of n can be 0, 1, and 2. Expanding formula (3) yields nine monomials, representing the nine channels from order 0 to order 2 in the third-order HOA signal, namely, channels 1 to 9. From these nine channels, C8 channels can be selected as the fourth channel, and the remaining C10 channels can be selected as the fifth channel. Correspondingly, the third-order HOA signal includes seven channels in addition to the channels from order 0 to order 2, namely, channels 10 to 16 are all fifth channels.

[0269] For example

[0270] For example, C8=8, C10=0, C9=8, then C8 fourth channels include channel 1 to channel 8, and C9 fifth channels include channel 9 to channel 16.

[0271] It should be noted that the value of M, the values ​​of C1 to C10, and the specific channels included in C1 first channels, C2 second channels, C3 third channels, C8 fourth channels, and C9 fifth channels can all be determined based on the characteristics of the audio signals of different channels. The characteristics of the audio signals of different channels may include direction; the directions of the audio signals of different channels may be as shown in Table 2:

[0272] Table 2

[0273] For example, from the channels of the N-order HOA signal, excluding the channels from the 0th to the Mth order, C7 channels whose audio signals contain longitudinal components greater than a threshold are selected as the third channel. For example, if the longitudinal components of the audio signals of channels 10 and 16 are greater than the threshold, then channels 10 and 16 are selected as the third channel, as shown in "Subcombination 2" and "Subcombination 3" in Table 1.

[0274] In one possible approach, the decoding end and the encoding end agree in advance on which encoding method to use for encoding (or which decoding method to use for decoding) for each channel of a frame of scene audio signal.

[0275] In one possible approach, the decoder and encoder have not pre-agreed on which encoding method to use (or which decoding method to use) for each channel of a frame of scene audio signal. In this case, the encoder can encode a fourth preset identifier, which can be used to indicate the encoding method corresponding to each channel. Optionally, the encoder does not need to encode the second preset identifier. In this way, after the fourth preset identifier is transmitted to the decoder, it facilitates decoding by the decoder.

[0276] 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.

[0277] S501, receiving a code stream.

[0278] S502 , based on the code stream, decode C1 first channels using a first decoding method, decode C2 second channels using a second decoding method, and decode C3 third channels using a third decoding method to obtain a frame of reconstructed scene audio signal.

[0279] Exemplarily, the reconstructed scene audio signal may include C channels of reconstructed audio signals. For a frame of the reconstructed scene audio signal, it may be determined that, among the C channels included in the frame of the reconstructed scene audio signal, C1 first channels are decoded using a first decoding method, C2 second channels are decoded using a second decoding method, and C3 third channels are decoded using a third decoding method. Wherein, C is equal to the sum of C1, C2, and C3, C1, C2, and C3 are positive integers, and the first channel, the second channel, and the third channel are different channels.

[0280] Next, based on the code stream, the C1 first channels are decoded using the first decoding method, the C2 second channels are decoded using the second decoding method, and the C3 third channels are decoded using the third decoding method, so as to obtain the code stream of the scene audio signal of this frame.

[0281] Exemplarily, based on the bit stream, the process of decoding C1 first channels using the first decoding method can be: parsing the bit stream to determine the encoded data corresponding to the audio signals of the C1 first channels; then performing entropy decoding, inverse quantization, bit allocation, post-processing and time-frequency transformation on the encoded data corresponding to the audio signals of the C1 first channels to obtain reconstructed audio signals of the C1 first channels.

[0282] Exemplarily, based on the code stream, the process of decoding C2 second channels using the second decoding method may include the following S21 to S24: wherein C1 is equal to (M+1) 2 .

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

[0284] 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, corresponding to C1 first channels.

[0285] 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.

[0286] 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.

[0287] 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 the C1 first channel can be selected. 2 (M+1) channels corresponding to 2 A virtual speaker coefficient is used as the first virtual speaker coefficient.

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

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

[0290] 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 the C1 first channels. 2. And a matrix X of size (L×P) is used to represent the reconstructed audio signal of C1 first channels; where L is the number of sampling points of the reconstructed audio signal of C1 first channels. The theoretical optimal solution w is obtained by the least squares method, where w represents the virtual speaker signal as shown in formula (9). w=A -1 X (9)

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

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

[0293] 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.

[0294] 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.

[0295] 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.

[0296] 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.

[0297] S24 , obtaining C2 reconstructed audio signals of second channels based on the virtual speaker signal and the second virtual speaker coefficient.

[0298] 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 (10). H=BA (10)

[0299] Next, C2 reconstructed audio signals of the second channel may be selected from the first reconstructed scene audio signal.

[0300] In one possible approach, during the encoding process, feature information corresponding to the C2th second 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 signals of the C2th second channel based on this feature information, thereby improving the audio quality of the reconstructed audio signals of the C2th second channel in the reconstructed scene audio signal.

[0301] For example, the gain information Gain(i) corresponding to the C2 second channels in the scene audio signal can be calculated by referring to the following formula (11): Gain(i)=E(i) / E(1) (11)

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

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

[0304] Wherein, i is the channel number of the C2 second 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 C2 second channels in the scene audio signal.

[0305] In one possible approach, based on the bit stream, the process of decoding C3 third channels using a third decoding method may be to use an all-pass filter to process the reconstructed audio signals of one or more channels in C1 first channels to obtain C3 reconstructed audio signals of third channels.

[0306] Exemplarily, the decoding end and the encoding end pre-synchronize Table 1, and the corresponding decoding end stores Table 3 corresponding to Table 1:

[0307] Table 3

[0308] In one possible approach, when the decoding end and the encoding end have agreed in advance on which encoding method to use for encoding (or which decoding method to use for decoding) for each channel of a frame of scene audio signal, the decoding end can use the decoding method agreed in advance for each channel of the frame of scene audio signal for decoding.

[0309] In one possible approach, when the decoder and encoder have not pre-agreed on which encoding method to use (or which decoding method to use) for each channel of a frame of scene audio signal, the decoder can first parse the bitstream to extract a fourth preset identifier, and then determine the decoding method for each channel based on the fourth preset identifier; then, based on the decoding method for each channel, decode each frame of the bitstream to obtain a reconstructed scene audio signal for each frame. In other words, for the same channel in the same frame, the codec uses the corresponding codec for encoding and decoding.

[0310] In one possible approach, the i-th frame of scene audio signal is encoded using multiple encoding methods from the k1-th encoding method combination; the j-th frame of scene audio signal is encoded using multiple encoding methods from the k2-th encoding method combination; where i and j are positive integers between 1 and X, i is not equal to j, and k1 and k2 are positive integers, k1 is not equal to k2. In other words, different frames of scene audio signal are encoded using multiple encoding method combinations from different types of encoding method combinations.

[0311] Correspondingly, after receiving the code stream, the decoding end uses multiple decoding methods in the k1th decoding method combination to decode the i-th frame code stream to obtain the i-th frame reconstructed scene audio signal; for the j-th frame code stream, it uses multiple decoding methods in the k2th decoding method combination to decode to obtain the j-th frame reconstructed scene audio signal.

[0312] Fig. 6 is a schematic diagram of an exemplary scene audio encoding process. In the embodiment of Fig. 6, multiple frequency bands of the same channel in a frame are encoded using multiple encoding methods in the encoding method combination.

[0313] S601 : Acquire a scene audio signal, where the scene audio signal includes C channels of audio signals, and one channel of audio signal has Y frequency bands.

[0314] For example, the audio signal of each channel in a frame of scene audio signal can be divided into Y frequency bands; wherein Y can be set as required, and this application does not impose any limitation on this.

[0315] 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.

[0316] 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.

[0317] 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.

[0318] S602 : Encode Y frequency bands of a channel in the scene audio signal using multiple encoding methods in the encoding method combination.

[0319] The following description takes one channel as an example.

[0320] For example, when Y=2 and the encoding mode combination is a combination of the first encoding mode and the third encoding mode, the audio signal in frequency band 1 of the channel may be encoded using the first encoding mode, and the audio signal in frequency band 2 of the channel may be encoded using the third encoding mode, as shown in subcombination 1 in Table 4. Alternatively, the audio signal in frequency band 1 of the channel may be encoded using the third encoding mode, and the audio signal in frequency band 2 of the channel may be encoded using the first encoding mode.

[0321] For example, when Y=2, and the encoding mode combination is a combination of the first encoding mode, the second encoding mode, and the third encoding mode, the audio signal in frequency band 1 of the channel can be encoded using the first encoding mode, and the audio signal in frequency band 2 of the channel can be encoded using the second encoding mode, as shown in subcombination 2 in Table 4. Alternatively, the audio signal in frequency band 1 of the channel can be encoded using the second encoding mode, and the audio signal in frequency band 2 of the channel can be encoded using the third encoding mode. Alternatively, the audio signal in frequency band 1 of the channel can be encoded using the first encoding mode, and the audio signal in frequency band 2 of the channel can be encoded using the third encoding mode.

[0322] For example, when Y=3 and the encoding mode combination is a combination of the first encoding mode and the third encoding mode, the audio signals in frequency bands 1 and 2 of the channel can be encoded using the first encoding mode, and the audio signals in frequency band 3 of the channel can be encoded using the third encoding mode, as shown in subcombination 3 in Table 4. Alternatively, the audio signals in frequency bands 1 and 3 of the channel can be encoded using the first encoding mode, and the audio signals in frequency band 2 of the channel can be encoded using the third encoding mode. Alternatively, the audio signals in frequency bands 1 and 2 of the channel can be encoded using the third encoding mode, and the audio signals in frequency band 3 of the channel can be encoded using the first encoding mode, and so on.

[0323] For example, when Y=3, and the encoding mode combination is a combination of the first encoding mode, the second encoding mode, and the third encoding mode, the audio signal in frequency band 1 of the channel can be encoded using the first encoding mode, the audio signal in frequency band 2 of the channel can be encoded using the second encoding mode, and the audio signal in frequency band 3 of the channel can be encoded using the third encoding mode, as shown in subcombination 4 in Table 4. Alternatively, the audio signal in frequency band 1 of the channel can be encoded using the second encoding mode, the audio signal in frequency band 2 of the channel can be encoded using the first encoding mode, and the audio signal in frequency band 3 of the channel can be encoded using the third encoding mode, and so on.

[0324] In this way, w (w is a positive integer) sub-combinations can be generated for one channel; different coding mode combinations can include one or more sub-combinations.

[0325] Table 4

[0326] In one possible approach, the decoding end and the encoding end may pre-agreed on which encoding method to use (or which decoding method to use to use) for Y frequency bands of a channel of a frame of scene audio signal.

[0327] In one possible approach, the decoder and encoder have not pre-agreed on which encoding method to use (or which decoding method to use) for the Y frequency bands of a channel in a frame of scene audio signal. In this case, the encoder can encode a fifth preset identifier, which can be used to indicate the encoding method corresponding to each frequency band of each channel. Optionally, the encoder does not need to encode the second preset identifier. In this way, after the fifth preset identifier is transmitted to the decoder, it facilitates decoding by the decoder.

[0328] It should be understood that, for multiple frequency bands of different channels of a frame of scene audio signal, multiple encoding methods in different types of encoding method combinations can be used for encoding, and this application does not impose any restrictions on this. This application does not impose any restrictions on this.

[0329] 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.

[0330] S701, receiving a code stream.

[0331] For example, the reconstructed audio signal of each channel in a frame of reconstructed scene audio signal can be divided into Y frequency bands; wherein Y can be set as required, and this application does not impose any limitation on this.

[0332] For example, Y=2, that is, the reconstructed 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.

[0333] For example, Y=3, that is, the reconstructed 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.

[0334] 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.

[0335] It should be understood that the way in which the decoding end divides the frequency band for each channel is the same as the way in which the encoding end divides the frequency band for each channel.

[0336] S702 : For Y frequency bands of a channel in a frame, a plurality of decoding methods in the decoding method combination are used to decode a frame of code stream to obtain a frame of reconstructed scene audio signal.

[0337] The following description takes one channel as an example.

[0338] For example, when Y=2 and the decoding mode combination is a combination of the first decoding mode and the third decoding mode, the audio signal in frequency band 1 of the channel can be decoded using the first decoding mode, and the audio signal in frequency band 2 of the channel can be decoded using the third decoding mode, as shown in subcombination 1 in Table 5. Alternatively, the audio signal in frequency band 1 of the channel can be decoded using the third decoding mode, and the audio signal in frequency band 2 of the channel can be decoded using the first decoding mode.

[0339] For example, when Y=2, and the decoding mode combination is a combination of the first decoding mode, the second decoding mode, and the third decoding mode, the audio signal in frequency band 1 of the channel can be decoded using the first decoding mode, and the audio signal in frequency band 2 of the channel can be decoded using the second decoding mode, as shown in subcombination 2 in Table 5. Alternatively, the audio signal in frequency band 1 of the channel can be decoded using the second decoding mode, and the audio signal in frequency band 2 of the channel can be decoded using the third decoding mode. Alternatively, the audio signal in frequency band 1 of the channel can be decoded using the second decoding mode, and the audio signal in frequency band 2 of the channel can be decoded using the third decoding mode.

[0340] For example, when Y=3 and the decoding mode combination is a combination of the first decoding mode and the third decoding mode, the audio signals in frequency bands 1 and 2 in the channel can be decoded using the first decoding mode, and the audio signals in frequency band 3 in the channel can be decoded using the third decoding mode, as shown in subcombination 3 in Table 5. Alternatively, the audio signals in frequency bands 1 and 3 in the channel can be decoded using the first decoding mode, and the audio signals in frequency band 2 in the channel can be decoded using the third decoding mode. Alternatively, the audio signals in frequency bands 1 and 2 in the channel can be decoded using the third decoding mode, and the audio signals in frequency band 3 in the channel can be decoded using the first decoding mode, and so on.

[0341] For example, when Y=3, and the decoding mode combination is a combination of the first decoding mode, the second decoding mode, and the third decoding mode, the audio signal in frequency band 1 of the channel can be decoded using the first decoding mode, the audio signal in frequency band 2 of the channel can be decoded using the second decoding mode, and the audio signal in frequency band 3 of the channel can be decoded using the third decoding mode, as shown in subcombination 4 in Table 5. Alternatively, the audio signal in frequency band 1 of the channel can be decoded using the second decoding mode, the audio signal in frequency band 2 of the channel can be decoded using the first decoding mode, and the audio signal in frequency band 3 of the channel can be decoded using the third decoding mode, and so on.

[0342] In this way, w (w is a positive integer) sub-combinations can be generated for one channel; different decoding mode combinations can include one or more sub-combinations.

[0343] Table 5

[0344] In one possible approach, when the decoding end and the encoding end have agreed in advance on which encoding method to use (or which decoding method to use) for the Y frequency bands of a channel of a frame of scene audio signal, the decoding end can use the pre-agreed encoding method to decode the corresponding frequency bands to obtain the reconstructed audio signal of the channel.

[0345] In one possible approach, when the decoding end and the encoding end have not agreed in advance on which encoding method to use for encoding (or which decoding method to use for decoding) the Y frequency bands of a channel of a frame of scene audio signal, the decoding end can first parse the fifth preset identifier from the code stream after receiving the code stream, and then determine the decoding method for each frequency band in the Y frequency regions of each channel based on the fifth preset identifier; then, for the Y frequency bands of each channel, the code stream is decoded based on the decoding method determined by the fifth preset identifier to obtain the reconstructed audio signal of the channel.

[0346] Figure 8 is a schematic diagram illustrating an exemplary scene audio encoding process. In the embodiment of Figure 8, some frames are encoded using multiple encoding methods in the encoding method combination, and another part of the frames is encoded using the first encoding method in the encoding method combination.

[0347] S801: Acquire a scene audio signal.

[0348] S802 : Encode the i-th frame scene audio signal using multiple encoding methods in the encoding method combination.

[0349] For example, S802 may refer to the above description and will not be described in detail here.

[0350] S803 , encoding the j-th frame scene audio signal using the first encoding method in the encoding method combination.

[0351] Wherein, i and j are positive integers between 1 and X, i is not equal to j, k1 and k2 are positive integers, k1 is not equal to k2.

[0352] Exemplarily, no matter whether the encoding mode combination is a combination of the first encoding mode and the third encoding mode, or a combination of the first encoding mode, the second encoding mode and the third encoding mode, the j-th frame scene audio signal is encoded using the first encoding mode in the encoding mode combination.

[0353] It should be noted that the present application does not limit the number of frames of the scene audio signal encoded using the first encoding method in the encoding method combination, and the number of frames of the scene audio signal encoded using multiple encoding methods in the encoding method combination; and the present application does not limit which frame is encoded using the first encoding method in the encoding method combination, and does not limit which frame is encoded using multiple encoding methods in the encoding method combination.

[0354] In one possible manner, the encoding end and the decoding end may pre-agree on which frames are to be encoded using the first encoding method in the encoding method combination, and pre-agree on which frames are to be encoded using multiple encoding methods in the encoding method combination.

[0355] In one possible method, the encoding end and the decoding end have not pre-agreed on the encoding and decoding method for each frame. When the i-th frame scene audio signal is encoded using multiple encoding methods in the encoding method combination, a second preset identifier is written in the i-th frame bitstream (the second preset identifier is used to indicate the type of encoding method combination corresponding to each frame); when the j-th frame scene audio signal is encoded using the first encoding method in the encoding method combination, a sixth preset identifier is written in the j-th frame bitstream, and the sixth preset identifier is used to indicate that the current frame is encoded using the first encoding method.

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

[0357] S901: Receive code stream.

[0358] S902 : decoding the i-th frame code stream using multiple decoding methods in the decoding method combination to obtain the i-th frame reconstructed scene audio signal.

[0359] For example, S902 may refer to the above description and will not be described in detail here.

[0360] S903: Decode the j-th frame stream using one of the decoding methods in the decoding method combination to obtain the j-th frame reconstructed scene audio signal.

[0361] Wherein, i and j are positive integers between 1 and X, i is not equal to j, k1 and k2 are positive integers, k1 is not equal to k2.

[0362] Exemplarily, regardless of whether the decoding method combination is a combination of the first decoding method and the third decoding method, or a combination of the first decoding method, the second decoding method and the third decoding method, the j-th frame scene audio signal is decoded using the first decoding method in the decoding method combination.

[0363] It should be noted that the present application does not impose any restriction on the number of frames of the scene audio signal decoded using the first decoding method in the decoding method combination, or on the number of frames of the scene audio signal decoded using multiple decoding methods in the decoding method combination.

[0364] In one possible method, the decoding end and the encoding end predetermine which frames are encoded using multiple encoding methods of the encoding method combination and which frames are encoded using the first encoding method in the encoding method combination. The decoding end can then decode the code stream according to the pre-agreed encoding method to obtain a reconstructed scene audio signal.

[0365] In one possible approach, when the decoder and encoder have not pre-agreed on which frames are encoded using multiple encoding methods in the encoding method combination and which frames are encoded using the first encoding method in the encoding method combination, upon receiving the bitstream, the decoder, upon parsing a second preset identifier from a particular bitstream frame, may decode the bitstream frame using multiple encoding methods in the decoding method combination corresponding to the second preset identifier to obtain a single-frame reconstructed scene audio signal. When a sixth preset identifier is parsed from a particular bitstream frame, the decoder may decode the bitstream frame using the first encoding method to obtain a single-frame reconstructed scene audio signal.

[0366] 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 .

[0367] 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.

[0368] Optionally, the memory 1003 may be used to store instructions in the aforementioned method embodiments. The processor 1001 may be used to execute the instructions in the memory 1003 and control the receiving pin to receive signals and the transmitting pin to send signals. When the processor 1001 is used to execute the instructions in the memory 1003, the electronic device implements the aforementioned method steps in the aforementioned embodiments.

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

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

[0371] 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.

[0372] 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. 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 transceiver / transceiver pin 1002.

[0373] 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.

[0374] 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.

[0375] 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.

[0376] 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.

[0377] 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.

[0378] 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.

[0379] 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.

[0380] 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.

[0381] 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.

[0382] 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.

[0383] 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.

[0384] 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.

[0385] 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.

[0386] 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; Decoding the bitstream based on a combination of decoding modes to obtain a reconstructed scene audio signal; The decoding mode combination includes at least one of the following combinations: a combination of the first decoding mode, the second decoding mode and the third decoding mode, and a combination of the first decoding mode and the third decoding mode; The first decoding method is to decode the encoded data obtained by encoding the 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.

2. The method according to claim 1, 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.

3. The method according to claim 1 or 2, characterized in that: The third decoding method includes one or more decoding methods.

4. The method according to any one of claims 1 to 3, characterized in that: The third decoding mode includes a channel copy decoding mode.

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

6. The method according to any one of claims 1 to 5, characterized in that: The decoding of the bit stream based on the decoding mode combination to obtain a reconstructed scene audio signal includes: For one frame of the code stream, multiple decoding methods in the decoding method combination are used for decoding to obtain one frame of reconstructed scene audio signal.

7. The method according to any one of claims 1 to 5, characterized in that: The bitstream includes X frames, the X frames include an i-th frame and a j-th frame, and X is a positive integer; and the decoding method combination is based on decoding the bitstream to obtain a reconstructed scene audio signal, including: For the i-th frame code stream, multiple decoding methods in the decoding method combination are used for decoding to obtain the i-th frame reconstructed scene audio signal; Decoding the j-th frame bitstream using the first decoding method in the decoding method combination to obtain a j-th frame reconstructed scene audio signal; Wherein, i and j are integers between 1 and X, and i is not equal to j.

8. The method according to any one of claims 1 to 5, characterized in that: The bitstream includes X frames, the X frames include an i-th frame and a j-th frame, and X is a positive integer; and the decoding method combination is based on decoding the bitstream to obtain a reconstructed scene audio signal, including: For the i-th frame code stream, multiple decoding methods in the k1-th decoding method combination are used for decoding to obtain the i-th frame reconstructed scene audio signal; For the j-th frame code stream, multiple decoding methods in the k2-th decoding method combination are used for decoding to obtain the j-th frame reconstructed scene audio signal; Wherein, i and j are positive integers between 1 and X, i is not equal to j, k1 is not equal to k2, and k1 and k2 are positive integers.

9. The method according to claim 6, characterized in that A frame of reconstructed scene audio signal includes C channels of reconstructed audio signals. When the decoding mode combination is a combination of the first decoding mode, the second decoding mode and the third decoding mode, decoding a frame of code stream using multiple decoding modes in the decoding mode combination to obtain a frame of reconstructed scene audio signal includes: Based on the one frame of code stream, decoding C1 first channels using the first decoding method, decoding C2 second channels using the second decoding method, and decoding C3 third channels using the third decoding method to obtain one frame of reconstructed scene audio signal; Wherein, C is equal to the sum of C1, C2 and C3, and C, C1, C2 and C3 are positive integers.

10. The method according to claim 6, characterized in that One frame of reconstructed scene audio signal includes C channels of reconstructed audio signals, one channel of reconstructed audio signal has Y frequency bands, and C and Y are positive integers; The decoding of a frame of code stream using multiple decoding methods in the decoding method combination to obtain a frame of reconstructed scene audio signal includes: For the Y frequency bands of one channel in the one-frame reconstructed scene audio signal, multiple decoding methods in the decoding method combination are used to decode the one-frame code stream to obtain the one-frame reconstructed scene audio signal.

11. The method according to claim 9, characterized in that The reconstructed scene audio signal is an N-order high-order ambisonic reverberation HOA signal; The C1 first channels are C1 channels included in the 0th order to the Mth order in the Nth order HOA signal, M is an integer less than N, C is equal to the square of (N+1), and C1 is less than or equal to the square of (M+1); The C2 second channels include the other C4 channels included in the 0th order to the Mth order in the Nth order HOA signal, and the C5 channels other than the channels included in the 0th order to the Mth order in the Nth order HOA signal; The C3 third channels include the other C6 channels included in the 0th order to the Mth order in the Nth order HOA signal, and the other C7 channels except the channels included in the 0th order to the Mth order in the Nth order HOA signal; Among them, C2 is equal to the sum of C4 and C5, C3 is equal to the sum of C6 and C7, the square of (M+1) is equal to the sum of C1, C4 and C6, and C4, C5, C6 and C7 are integers.

12. The method according to claim 9, characterized in that The decoding of C3 third channels by using the third decoding method includes: Decoding the C3 third channels based on a third decoding mode corresponding to the first preset identifier parsed from the bitstream; The third decoding method corresponding to the first preset identifier is a time domain decorrelation decoding method or a frequency domain decorrelation decoding method.

13. The method according to claim 9 or 12, characterized in that: When the decoding mode combination is a combination of the first decoding mode, the second decoding mode and the third decoding mode, the method further includes: Based on feature information corresponding to the C2 second channels parsed from the bitstream, the reconstructed audio signals of the C2 second channels in the reconstructed scene audio signal are compensated.

14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: Parsing a second preset identifier from the bit stream; The decoding of the bit stream based on the decoding mode combination to obtain a reconstructed scene audio signal includes: The bit stream is decoded based on the decoding mode combination corresponding to the second preset identifier to obtain the reconstructed scene audio signal.

15. A scene audio decoding device, characterized in that: The device comprises: A code stream receiving module, used for receiving code stream; A decoding module, used for decoding the bit stream based on a decoding mode combination to obtain a reconstructed scene audio signal; The decoding mode combination includes at least one of the following combinations: a combination of the first decoding mode, the second decoding mode and the third decoding mode, and a combination of the first decoding mode and the third decoding mode; The first decoding method is to decode the encoded data obtained by encoding the 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.

16. 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 14.

17. 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 14.

18. 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 14.

19. 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 14 are performed.

Citation Information

Patent Citations

  • Scene audio decoding method and electronic equipment

    CN118800250A

  • Voice signal coding and decoding method and device, electronic equipment and storage medium

    CN113470667A

  • Audio encoding and decoding method and device

    CN114299967A

  • Audio encoding and decoding method and device

    CN114582356A

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

    CN115881138A