Scene audio signal decoding method and device
By performing multiple decoding methods and transient detection processing on the HOA signal, the problem of insufficient transient signal processing in the existing technology is solved, and the reconstruction quality and user experience of the audio signal are improved.
Patent Information
- Application Number
- PCT/CN2024/086387
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-13
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-17
AI Technical Summary
The existing technology fails to effectively process transient signals when encoding and decoding high-order reverberation (HOA) signals, resulting in a decrease in the quality of the reconstructed audio signal and affecting the user's listening experience.
Use at least two decoding methods to decode scene audio signals, perform transient detection and recovery on channels that require transient detection, optimize the code stream through transient identification, and improve the transient signal processing capabilities of the decoder.
It improves the quality of the reconstructed audio signal, improves the user's listening experience, and improves encoding and decoding efficiency by saving bit streams.
Smart Images

Figure CN2024086387_17102024_PF_FP_ABST
Abstract
Description
Method and device for decoding scene audio signals Technical Field
[0001] The present application relates to audio coding and decoding technology, and in particular to a method and device for decoding scene audio signals. Background Art
[0002] Three-dimensional audio technology uses computers and signal processing to acquire, process, transmit, and render real-world sound events and three-dimensional sound field information. Three-dimensional 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.
[0003] In order to achieve better audio listening effects, HOA technology requires a large amount of data to record more detailed sound scene information. Although this scene-based three-dimensional audio signal sampling and storage is more conducive to the preservation and transmission of audio signal spatial information, for N-order HOA signals, the corresponding number of channels is (N+1). 2 ,With the increase of the HOA order, more data will be generated. ,A large amount of data may cause difficulties in transmission and storage, ,so HOA signals need to be encoded and decoded.
[0004] Related technologies can save bitrates and improve encoding and decoding efficiency by encoding and decoding some channels, but they do not take into account the processing of transient signals, resulting in a decrease in the quality of the reconstructed audio signal and affecting the user's listening experience.
[0005] Summary of the Invention
[0006] The present application provides a method and apparatus for decoding a scene audio signal to process transient signals in the scene audio signal, thereby improving the quality of the reconstructed audio signal and the user's auditory experience.
[0007] In a first aspect, the present application provides a method for decoding a scene audio signal, comprising: receiving a bit stream; decoding the bit stream using at least two decoding methods to obtain a reconstructed scene audio signal, the at least two decoding methods including direct decoding processing, the reconstructed scene audio signal including audio signals of C channels, where C is a positive integer; performing transient detection on M channels of the C channels that require transient detection to obtain transient identifiers of the M channels, the transient identifiers being used to indicate whether a transient signal exists in the corresponding channels, 1≤M≤C; and performing transient recovery on channels of the M channels that have transient signals according to the transient identifiers of the M channels.
[0008] In an embodiment of the present application, the decoding end performs transient detection on the selected M channels to facilitate transient recovery at the decoding end, thereby processing transient signals in the scene audio signal. On the one hand, since there is no need to write transient identifiers in the bitstream, bitstream can be saved, and on the other hand, the quality of the reconstructed audio signal and the user's auditory experience can be improved.
[0009] Corresponding to the encoding end, the decoding end can use at least two decoding methods to decode the bitstream, particularly the portion of the bitstream corresponding to the scene audio signal. The at least two decoding methods mentioned above include direct decoding, and may also include spatial decoding and / or decorrelation. Direct decoding can be a decoding method for decoding the encoded data obtained by encoding the signal itself.
[0010] The decoding end decodes the code stream, including: applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, and applying spatial decoding processing to the second code stream to obtain a reconstructed signal of the second channel; or applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, and applying decorrelation processing to the third code stream to obtain a reconstructed signal of the third channel; or applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, applying spatial decoding processing to the second code stream to obtain a reconstructed signal of the second channel, and applying decorrelation processing to the third code stream to obtain a reconstructed signal of the third channel.
[0011] The reconstructed scene audio signal may include a reconstructed signal of a first channel, a reconstructed signal of a second channel, and / or a reconstructed signal of a third channel. The reconstructed scene audio signal includes reconstructed audio signals of C channels, where C is a positive integer.
[0012] The decoding method adopted by the decoding end can refer to the example shown in Table 1 above, and will not be repeated here.
[0013] Transients, also known as transients, can occur in multiple channels of reconstructed scene audio signals. The energy of one or more channels may experience a sudden, instantaneous change. For example, if the energy suddenly increases at a certain moment, the channel with this sudden change can be considered a transient. Determining whether a channel has transient signals is called transient detection.
[0014] The M channels requiring transient detection refer to the M channels among the C channels of the reconstructed scene audio signal that require transient detection. M is a positive integer greater than or equal to 1 and less than or equal to C. That is, M can be as small as 1, indicating that only one of the C channels of the reconstructed scene audio signal requires transient detection; M can be as large as C, indicating that all of the C channels of the reconstructed scene audio signal require transient detection; and when M is any number between 1 and C, it indicates that some of the C channels of the reconstructed scene audio signal require transient detection.
[0015] Optionally, the decoding end may determine the M channels for transient detection in a preset manner.
[0016] For example, a transient detection table is generated in advance, in which channels requiring transient detection among the C channels are filled with 1 in the corresponding table, and channels not requiring transient detection are filled with 0 in the corresponding table. The decoding end can obtain the above M channels by querying the transient detection table.
[0017] For example, based on the HOA channel directionality, a transient detection table is generated based on the horizontal plane. Then, the W, Y, X, V, U, Q, and P channels are filled with 1, and the other channels are filled with 0.
[0018] For example, M channels may be specified according to user configuration; or, the number of channels included in the Kth stage may be specified to be M channels, where K is less than N.
[0019] After determining the M channels for transient detection, the decoding end may perform transient detection on the M channels one by one to obtain transient detection results for each of the M channels, and then assign transient identifiers to the corresponding channels based on the transient detection results.
[0020] Optionally, the transient flag can be represented by a 1-bit syntax element, for example, 1 indicates the presence of a transient signal, and 0 indicates the absence of a transient signal. If the transient detection result of a channel indicates the presence of a transient signal, the transient flag of the channel is set to 1; if the transient detection result of a channel indicates the absence of a transient signal, the transient flag of the channel is set to 0.
[0021] Optionally, if M=1, the decoder can perform transient detection on one of the C channels in the scene audio signal. The one of them can be a fixed channel, for example, the channel to be transient detected is the W channel (i.e., the above (N+1) 2 Channel 1 (also called the first channel) among the channels, the decoding end can calculate the energy envelope of the W channel respectively, and compare the ratio of the envelope peak value to the envelope valley value with the first threshold. If it is greater than the first threshold, it is determined that a transient signal exists in the W channel; otherwise, it is determined that no transient signal exists in the W channel.
[0022] The above-mentioned first threshold can be pre-set, for example, 0.1. The embodiment of the present application does not specifically limit the value of the first threshold.
[0023] The high-frequency signal and the low-frequency signal can be distinguished by comparing them with a preset second threshold. For example, signals in the frequency band greater than T MHz (the second threshold) in the W channel are determined to be high-frequency signals, and signals in the frequency band less than or equal to T kHz in the W channel are determined to be low-frequency signals. The energy of the signal can be calculated using the square of the amplitude. The second threshold can be, for example, 4 kHz, which is not specifically limited in the present embodiment.
[0024] After the decoder obtains the transient detection result of channel W, it further obtains the transient identifier of channel W. Optionally, the transient identifier of channel W can be used as the transient identifier of the C channels in the current frame of the scene audio signal. That is, if a transient signal exists in channel W, then transient signals exist in all C channels; if no transient signal exists in channel W, then no transient signal exists in all C channels.
[0025] Optionally, if M=C, the decoder can perform transient detection on all C channels in the scene audio signal to obtain a transient identifier for each channel. The transient detection method for any channel can refer to the transient detection method for W channels above and will not be repeated here.
[0026] Optionally, if 1 < M < C, the decoder can perform transient detection on some of the C channels in the scene audio signal to obtain transient identifications for these channels. Channels for which transient detection is not performed are considered to have no transient signals. The transient detection method for any of these channels can refer to the transient detection method for W channels described above and will not be repeated here.
[0027] The decoding end can determine which channels have transient signals from the M channels based on the transient identifiers of the M channels, and then perform transient recovery on these channels.
[0028] In a second aspect, the present application provides a decoding device for a scene audio signal, comprising: a receiving module for receiving a code stream; a decoding module for decoding the code stream using at least two decoding methods to obtain a reconstructed scene audio signal, wherein the at least two decoding methods include direct decoding processing, and the reconstructed scene audio signal includes audio signals of C channels, where C is a positive integer; a transient detection module for performing transient detection on M channels among the C channels that require transient detection to obtain transient identifiers of the M channels, wherein the transient identifier is used to indicate whether a transient signal exists in the corresponding channel, 1≤M≤C; and a transient recovery module for performing transient recovery on channels among the M channels that have transient signals based on the transient identifiers of the M channels.
[0029] In a possible implementation, when M=1, the M channels are W channels among the C channels; or, when 1<M<C, the M channels are preset.
[0030] In one possible implementation, the transient detection module is specifically used to obtain the energy difference between the high-frequency signal and the low-frequency signal of the target channel, the high-frequency signal is a signal in the audio signal of the target channel whose frequency is greater than a first threshold, and the low-frequency signal is a signal in the audio signal of the target channel whose frequency is less than or equal to the first threshold, and the target channel is any channel among the M channels; when the energy difference is greater than a second threshold, the target channel is assigned a first transient identifier, and the first transient identifier is used to indicate that a transient signal exists in the target channel; or, when the energy difference is less than or equal to the second threshold, the target channel is assigned a second transient identifier, and the second transient identifier is used to indicate that no transient signal exists in the target channel.
[0031] In a possible implementation manner, the at least two decoding methods further include spatial decoding processing and / or decorrelation processing.
[0032] In one possible implementation, the decoding module is specifically configured to perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and perform the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel; or, perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and perform the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; or, perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, perform the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel, and perform the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; wherein the first code stream, the second code stream, or the third code stream is a type of code stream among the code streams, and the first channel, the second channel, or the third channel is a type of channel among the C channels.
[0033] In a third aspect, the present application provides an electronic device comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement a method as described in any one of the above-mentioned first aspects.
[0034] In a fourth aspect, the present application provides a chip comprising 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, wherein the signal includes a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes any one of the methods described in the first aspect above.
[0035] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the method as described in any one of the above-mentioned first aspects.
[0036] In a sixth aspect, the present application provides a computer program product, which includes a computer program code. When the computer program code is run on a computer, the computer executes any one of the methods in the first aspect.
[0037] In a seventh aspect, 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.
[0038] In an eighth aspect, 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 transmitter being used to obtain the code stream from the storage medium and send the code stream to an end-side device via a transmission medium.
[0039] In a ninth aspect, 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, a streaming media device for obtaining the code stream from the at least one storage medium and sending the code stream to an end-side device, wherein the streaming media device comprises a content server or a content distribution server. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1a is a schematic diagram of an application scenario of an embodiment of the present application;
[0041] FIG1b is a schematic diagram of an application scenario of an embodiment of the present application;
[0042] FIG2a is a schematic diagram of the encoding process of a scene audio signal;
[0043] Figure 2b is a schematic diagram of the distribution of candidate virtual speakers;
[0044] FIG3 is a schematic diagram of the decoding process of a scene audio signal;
[0045] FIG4 is a flowchart of a process 400 of a scene audio encoding method provided by an embodiment of the present application;
[0046] FIG5 is a flowchart of a process 500 of a scene audio decoding method provided by an embodiment of the present application;
[0047] FIG6 is a schematic structural diagram of an audio signal decoding device 600 in the present application scenario. DETAILED DESCRIPTION
[0048] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0049] The terms "first," "second," and the like in the description, embodiments, claims, and drawings of this application are used solely for descriptive purposes and are not to be construed as indicating or implying relative importance or order. Furthermore, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions, such as, for example, inclusion of a series of steps or units. A method, system, product, or apparatus is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0050] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0051] The following is a brief introduction to the relevant technologies involved in the embodiments of this application.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] The waveform of the sound wave determines the timbre, which includes square wave, sawtooth wave, sine wave and pulse wave.
[0057] Based on the characteristics of sound waves, sounds can be divided into regular sounds and irregular sounds. Irregular sounds are sounds produced by the irregular vibration of a sound source. For example, irregular sounds can disrupt people's work, study, and rest. Regular sounds are sounds produced by the regular vibration of a sound source. Regular sounds include speech and music. When represented electrically, regular sounds are analog signals that continuously vary in the time-frequency domain. These analog signals are called audio signals. Audio signals are information carriers that carry speech, music, and sound effects.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] As we all know, sound waves propagate in an ideal medium with a wave number of The angular frequency is w = 2πf, where f is the frequency of the sound wave and c is the speed of sound. The sound pressure p satisfies the formula (1), is the Laplace operator.
[0062] 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).
[0063] Where 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. express Spherical harmonics of the direction, The spherical harmonic function representing the direction of the sound source. The HOA signal satisfies formula (3).
[0064] Substituting formula (3) into formula (2), formula (2) can be transformed into formula (4).
[0065] 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.
[0066] 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.
[0067] The HOA signal to be encoded may refer to an N-order HOA signal, which may be represented by an HOA coefficient or an Ambisonic coefficient, where N is an integer greater than or equal to 1 (when N=1, a 1st-order HOA signal may be referred to as a First Order Ambisonic (FOA) signal). The N-order HOA signal includes (N+1) 2 channels of audio signals.
[0068] FIG1a is a schematic diagram of an application scenario of an embodiment of the present application. As shown in FIG1a , the application scenario is an encoding and decoding scenario of a scene audio signal.
[0069] Exemplarily, 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 FIG. 1a , and this is not specifically limited in this embodiment of the present application.
[0070] Exemplarily, 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 FIG. 1a , and this is not specifically limited in this embodiment of the present application.
[0071] Exemplarily, the process of encoding and transmitting a scene audio signal by a first electronic device to a second electronic device, and decoding and playing back the audio by the second electronic device may include:
[0072] In the first electronic device, the first audio acquisition module can perform audio acquisition and output a scene audio signal to the first scene audio encoding module. The first scene audio encoding module can then encode the scene audio signal and output a code stream to the first channel encoding module. The first channel encoding module can then perform channel encoding on the code stream and transmit the channel-encoded code stream to the second electronic device via a wireless or wired network communication device.
[0073] In the second electronic device, the second channel decoding module can perform channel decoding on the received data to obtain a code stream, and output the code stream to the second scene audio decoding module. The second scene audio decoding module can then decode the code stream to obtain a reconstructed scene audio signal, and output the reconstructed scene audio signal to the second audio playback module, which then performs audio playback.
[0074] It should be noted that the second audio playback module can perform post-processing (for example, audio rendering (for example, converting the audio signal containing (N+1) 2 The method includes the step of converting the reconstructed scene audio signal of the audio signal of the plurality of channels 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.
[0075] It should be understood that the process of the second electronic device encoding and transmitting the scene audio signal to the first electronic device, which is decoded and played back by the first electronic device, is similar to the above-mentioned process of the first electronic device encoding and transmitting the scene audio signal to the second electronic device, which is decoded and played back by the second electronic device, and will not be repeated here.
[0076] 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.
[0077] For example, the embodiments of the present application can be specifically applied to virtual reality (VR) / augmented reality (AR) scenarios. In one possible implementation, the first electronic device is a server, and the second electronic device is a VR / AR device. In another possible implementation, the second electronic device is a server, and the first electronic device is a VR / AR device.
[0078] 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.
[0079] 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.
[0080] FIG1 b is a schematic diagram of an application scenario of an embodiment of the present application. As shown in FIG1 b , the application scenario is a transcoding scenario of a scene audio signal.
[0081] As shown in Figure 1b(1), the wireless or core network device may include, for example, 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.
[0082] Exemplarily, a specific application scenario 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 may be used for transcoding.
[0083] 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.
[0084] As shown in Figure 1b(2), the wireless or core network device may include, for example, 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.
[0085] Exemplarily, a specific application scenario 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 has 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.
[0086] Specifically, the first electronic device uses a scene audio encoding module to encode the scene audio signal to obtain a first code stream; and then performs channel encoding on the first code stream and sends it to a wireless or core network device. Then, the channel decoding module of the wireless or core network device can perform channel decoding and output the first code stream obtained by channel decoding to the scene audio decoding module. After that, the scene audio decoding module decodes the first code stream to obtain a scene audio signal and outputs the scene audio signal to other audio encoding modules. Then, other audio encoding modules can encode the scene audio signal to obtain a second code stream and output the second code stream to the channel encoding module, which performs channel encoding on the second code stream and sends it to the second electronic device. In this way, the second electronic device can call other audio decoding modules to decode the second code stream obtained by channel decoding to obtain a reconstructed scene audio signal; the reconstructed scene audio signal can then be played back.
[0087] The encoding process and decoding process of the scene audio signal provided by the related art can be described with reference to the following.
[0088] FIG2a is a schematic diagram of a coding process for a scene audio signal. As shown in FIG2a , the coding process may include:
[0089] S201 : Acquire a scene audio signal to be encoded, where the scene audio signal includes audio signals of C channels, where C is a positive integer.
[0090] For example, when the scene audio signal is an HOA signal, the HOA signal may be an N1-order HOA signal, that is, when m is truncated to the N1-th term, the above formula (3) is
[0091] For example, the N1-order HOA signal may include C1-channel audio signals, where C1=(N1+1) 2 For example, when N1=3, the 3rd-order HOA signal includes 16 channels of audio signals; when N1=4, the 4th-order HOA signal includes 25 channels of audio signals.
[0092] S202: Determine attribute information of a target virtual speaker based on the scene audio signal.
[0093] S203 , encode a first audio signal in the scene audio signal and attribute information of the target virtual speaker to obtain a first bitstream; wherein the first audio signal is audio signals of K channels in the scene audio signal, and K is a positive integer less than or equal to C1.
[0094] Exemplarily, the virtual speaker is a virtual speaker, not a real speaker.
[0095] Exemplarily, the scene audio signal can be expressed by 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.
[0096] In a possible implementation, 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.
[0097] FIG2 b is a schematic diagram of the distribution of candidate virtual speakers. As shown in FIG2 b , multiple candidate virtual speakers may be evenly distributed on a sphere, and a point on the sphere represents a candidate virtual speaker.
[0098] It should be noted that there is no restriction on the number and distribution of candidate virtual speakers, and they can be set as required.
[0099] Exemplarily, 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.
[0100] In a possible implementation, a target virtual speaker may be preset.
[0101] Exemplarily, in one possible implementation, during the decoding process, the scene audio signal can be reconstructed based on the virtual speaker signal; however, directly transmitting the virtual speaker signal of the target virtual speaker will increase the bit rate; and the virtual speaker signal of the target virtual speaker can be generated based on the attribute information of the target virtual speaker and the scene audio signal of some or all channels; therefore, the attribute information of the target virtual speaker and the audio signals of K channels in the scene audio signal can be obtained as the first audio signal; then the first audio signal and the attribute information of the target virtual speaker are encoded to obtain a first code stream.
[0102] For example, downmixing, transformation, quantization, and entropy coding can be performed on the first audio signal and the target virtual speaker attribute information to obtain a first bitstream. In other words, the first bitstream can include encoded data of the first audio signal in the scene audio signal and encoded data of the target virtual speaker attribute information.
[0103] In addition, the encoder directly encodes the audio signals of some channels in the scene audio signal without calculating the virtual speaker signal and the residual signal, and the encoding complexity of the encoder is lower.
[0104] FIG3 is a schematic diagram of a decoding process of a scene audio signal. FIG3 is a decoding process corresponding to the encoding process of FIG2 . As shown in FIG3 , the decoding process may include:
[0105] S301: Receive a first code stream.
[0106] S302: Decode the first code stream to obtain a first reconstructed signal and attribute information of a target virtual speaker.
[0107] For example, the encoded data of the first audio signal in the scene audio signal included in the first bitstream can be decoded to obtain a first reconstructed signal; that is, the first reconstructed signal is a reconstructed signal of the first audio signal. Furthermore, the encoded data of the attribute information of the target virtual speaker included in the first bitstream can be decoded to obtain the attribute information of the target virtual speaker.
[0108] It should be understood that when the encoder performs lossy compression on the first audio signal in the scene audio signal, the first reconstructed signal decoded by the decoder differs from the first audio signal encoded by the encoder. When the encoder performs lossless compression on the first audio signal, the first reconstructed signal decoded by the decoder is the same as the first audio signal encoded by the encoder.
[0109] It should be understood that when the encoder performs lossy compression on the target virtual speaker attribute information, the attribute information decoded by the decoder differs from the attribute information encoded by the encoder. When the encoder performs lossless compression on the virtual speaker attribute information, the attribute information decoded by the decoder is the same as the attribute information encoded by the encoder.
[0110] S303: Generate a virtual speaker signal corresponding to the target virtual speaker based on the attribute information and the first reconstructed signal.
[0111] S304: Reconstruct based on the attribute information and the virtual speaker signal to obtain a first reconstructed scene audio signal.
[0112] For example, based on the above description, a scene audio signal can be reconstructed based on a virtual speaker signal. Furthermore, a virtual speaker signal corresponding to the target virtual speaker can be generated based on the target virtual speaker's attribute information and the first reconstructed signal. Each target virtual speaker corresponds to one virtual speaker signal, and the virtual speaker signal is a plane wave. Next, reconstruction is performed based on the target virtual speaker's attribute information and the virtual speaker signal to generate a first reconstructed scene audio signal.
[0113] Exemplarily, when the scene audio signal is an HOA signal, the reconstructed first reconstructed scene audio signal may also be an HOA signal, and the HOA signal may be an N2-order HOA signal, where N2 is a positive integer. Exemplarily, the N2-order HOA signal may include audio signals of C2 channels, where C2=(N2+1). 2 .
[0114] Exemplarily, the order N2 of the first reconstructed scene audio signal may be greater than or equal to the order N1 of the scene audio signal in the embodiment shown in FIG2a ; correspondingly, the number of channels C2 of the audio signal included in the first reconstructed scene audio signal may be greater than or equal to the number of channels C1 of the audio signal included in the scene audio signal in the embodiment shown in FIG2a .
[0115] The encoding and decoding processes of the scene audio signals described in Figures 2a-3 can improve the encoding and decoding efficiency, but do not take into account the processing of transient signals, which may cause the quality of the reconstructed audio signal to deteriorate, thereby affecting the user's auditory experience.
[0116] To solve the above technical problems, in the application scenario shown in Figures 1a and 1b, an embodiment of the present application provides a scene audio encoding method and device, and the following embodiments will illustrate its technical solution.
[0117] FIG4 is a flowchart of process 400 of the scene audio encoding method provided in an embodiment of the present application. As shown in FIG4 , process 400 can be performed by an encoding end, for example, the first electronic device or the second electronic device described above. Process 400 is described as a series of steps or operations. It should be understood that process 400 can be performed in various orders and / or occur simultaneously, and is not limited to the execution order shown in FIG4 . Process 400 includes the following steps:
[0118] Step 401: Acquire a scene audio signal to be encoded.
[0119] A scene audio signal is an information carrier that carries the spatial position information of a sound source in a sound field, and describes the sound field of a listener in space. The scene audio signal may include audio signals of C channels, where C is a positive integer.
[0120] Optionally, the scene audio signal may be an HOA signal, and the HOA signal may refer to an N-order HOA signal, including (N+1) 2 Channel audio signal. At this time, C=(N+1) 2 .
[0121] Step 402: Perform transient detection on M channels that need to be transient detected among the C channels to obtain transient identifiers of the M channels.
[0122] Transients, also known as transients, can occur in multiple channels of a scene audio signal. The energy of one or more channels may experience a sudden, instantaneous change. For example, if the energy suddenly increases at a certain moment, the channel experiencing this sudden change can be considered a transient. Determining whether a channel has transient signals is called transient detection.
[0123] The M channels for transient detection refer to the M channels in the C channels of the scene audio signal that require transient detection. M is a positive integer greater than or equal to 1 and less than or equal to C. That is, M can be as small as 1, indicating that only one of the C channels of the scene audio signal requires transient detection; M can be as large as C, indicating that all of the C channels of the scene audio signal require transient detection; when M is any number between 1 and C, it indicates that some of the C channels of the scene audio signal require transient detection.
[0124] Optionally, the encoding end may determine the M channels for transient detection in a pre-set manner.
[0125] For example, a transient detection table is generated in advance, in which channels requiring transient detection among the C channels are filled with 1 in the corresponding table, and channels not requiring transient detection are filled with 0 in the corresponding table. The encoder can obtain the above M channels by querying the transient detection table.
[0126] For example, based on the HOA channel directionality, a transient detection table is generated based on the horizontal plane. Then, the W, Y, X, V, U, Q, and P channels are filled with 1, and the other channels are filled with 0.
[0127] For example, M channels may be specified according to user configuration; or, the number of channels included in the Kth stage may be specified to be M channels, where K is less than N.
[0128] After determining the M channels for transient detection, the encoder may perform transient detection on the M channels one by one to obtain transient detection results for each of the M channels, and then assign transient identifiers to the corresponding channels based on the transient detection results.
[0129] Optionally, the transient flag can be represented by a 1-bit syntax element, for example, 1 indicates the presence of a transient signal, and 0 indicates the absence of a transient signal. If the transient detection result of a channel indicates the presence of a transient signal, the transient flag of the channel is set to 1; if the transient detection result of a channel indicates the absence of a transient signal, the transient flag of the channel is set to 0.
[0130] Optionally, if M=1, the encoder can perform transient detection on one of the C channels in the scene audio signal. The one of them can be a fixed channel, for example, the channel to be transient detected is the W channel (i.e., the above (N+1) 2 For channel 1 (also referred to as the first channel), the encoder can calculate the energy envelope of channel W respectively, and compare the ratio of the envelope peak value to the envelope valley value with a first threshold. If the ratio is greater than the first threshold, it is determined that a transient signal exists in channel W; otherwise, it is determined that no transient signal exists in channel W.
[0131] The above-mentioned first threshold can be pre-set, for example, 0.1. The embodiment of the present application does not specifically limit the value of the first threshold.
[0132] The high-frequency signal and the low-frequency signal can be distinguished by comparing them with a preset second threshold. For example, signals in the frequency range of the W channel greater than T kHz (the second threshold) are determined to be high-frequency signals, and signals in the frequency range of the W channel less than or equal to T kHz are determined to be low-frequency signals. The energy of the signal can be calculated using the square of the amplitude. The second threshold can be, for example, 4 kHz, which is not specifically limited in the present embodiment.
[0133] After the encoder obtains the transient detection result of channel W, it further obtains the transient identifier of channel W. Optionally, the transient identifier of channel W can be used as the transient identifier of the C channels in the current frame of the scene audio signal. That is, if a transient signal exists in channel W, then transient signals exist in all C channels; if no transient signal exists in channel W, then no transient signal exists in all C channels.
[0134] Optionally, if M=C, the encoder can perform transient detection on all C channels in the scene audio signal to obtain a transient identifier for each channel. The transient detection method for any channel can refer to the transient detection method for W channels above and will not be repeated here.
[0135] Optionally, if 1 < M < C, the encoder can perform transient detection on some of the C channels in the scene audio signal to obtain transient identifications for these channels. Channels for which transient detection is not performed are considered to have no transient signals. The transient detection method for any of these channels can refer to the transient detection method for W channels described above and is not further described here.
[0136] Step 403: Encode the transient identifiers of the M channels and the scene audio signal to obtain a bit stream.
[0137] In the embodiment of the present application, the encoding end encodes the scene audio signal using at least two encoding methods, and the at least two encoding methods include direct encoding processing. Direct encoding processing can be an encoding method for encoding the signal itself.
[0138] Optionally, the C channels in the scene audio signal may be divided into at least two channels, wherein the first channel is directly coded and the second channel is coded in other ways.
[0139] Other encoding methods may include spatial encoding and decorrelation. For spatial encoding, refer to the embodiment shown in FIG. 2A . Spatial encoding information (also known as target virtual speaker attribute information) is extracted from the scene audio signal to be encoded and encoded into the bitstream. Decorrelation can employ either time-domain decorrelation or frequency-domain decorrelation, using an all-pass filter to adjust the delay and phase of the decorrelation signal.
[0140] The encoding end can use the above method to encode the scene audio signal, including: direct encoding processing for the first channel and spatial encoding processing for the second channel; or direct encoding processing for the first channel and decorrelation processing for the third channel; or direct encoding processing for the first channel, spatial encoding processing for the second channel, and decorrelation processing for the third channel.
[0141] Exemplarily, N=3, C=16, the scene audio signal includes 16 channels of audio signals, and the 16 channels are numbered 1-16.
[0142] Table 1
[0143] Table 2
[0144] Table 1 and Table 2 respectively show configuration examples of a coding and decoding method for a 3rd order HOA signal at different rates. Taking Table 1 as an example,
[0145] When the rate is 256 kbps, the first channel using direct coding includes 1-4, the second channel using spatial coding includes 6-8 and 11-15, and the third channel using decorrelation includes 5, 9-10 and 16.
[0146] When the rate is 384 kbps, the first channel using direct coding includes 1-4, the second channel using spatial coding includes 6-8 and 11-15, and the third channel using decorrelation includes 5, 9-10 and 16.
[0147] When the rate is 512 kbps, the first channel using direct coding includes 1-6, the second channel using spatial coding includes 7-9 and 11-15, and the third channel using decorrelation includes 10 and 16.
[0148] When the rate is 768 kbps, the first channel using direct coding includes 1-9, the second channel using spatial coding includes 11-15, and the third channel using decorrelation includes 10 and 16.
[0149] In addition, the encoder also writes the transient identifiers of the M channels into the bitstream for use by the decoder for transient recovery.
[0150] In an embodiment of the present application, the encoder performs transient detection on the selected M channels and writes the transient detection results (transient detection identifier) into the bitstream to facilitate transient recovery on the decoder. This can process transient signals in the scene audio signal, thereby improving the quality of the reconstructed audio signal and the user's auditory experience.
[0151] FIG5 is a flow chart of process 500 of the scene audio decoding method provided in an embodiment of the present application. As shown in FIG5 , process 500 can be performed by a decoding end, for example, the second electronic device or the first electronic device described above. Process 500 is described as a series of steps or operations. It should be understood that process 500 can be performed in various orders and / or occur simultaneously, and is not limited to the execution order shown in FIG5 . Process 500 includes the following steps:
[0152] Step 501: Receive a code stream.
[0153] Step 502: Decode the code stream using at least two decoding methods to obtain a reconstructed scene audio signal.
[0154] Corresponding to the encoding end, the decoding end can use at least two decoding methods to decode the bitstream, particularly the portion of the bitstream corresponding to the scene audio signal. The at least two decoding methods mentioned above include direct decoding, and may also include spatial decoding and / or decorrelation. Direct decoding can be a decoding method for decoding the encoded data obtained by encoding the signal itself.
[0155] The decoding end decodes the code stream, including: applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, and applying spatial decoding processing to the second code stream to obtain a reconstructed signal of the second channel; or applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, and applying decorrelation processing to the third code stream to obtain a reconstructed signal of the third channel; or applying direct decoding processing to the first code stream to obtain a reconstructed signal of the first channel, applying spatial decoding processing to the second code stream to obtain a reconstructed signal of the second channel, and applying decorrelation processing to the third code stream to obtain a reconstructed signal of the third channel.
[0156] The reconstructed scene audio signal may include a reconstructed signal of a first channel, a reconstructed signal of a second channel, and / or a reconstructed signal of a third channel. The reconstructed scene audio signal includes reconstructed audio signals of C channels, where C is a positive integer.
[0157] The decoding method adopted by the decoding end can refer to the example shown in Table 1 above, and will not be repeated here.
[0158] Step 503: Perform transient detection on M channels that need to be transient detected among the C channels to obtain transient identifiers of the M channels.
[0159] Transients, also known as transients, can occur in multiple channels of reconstructed scene audio signals. The energy of one or more channels may experience a sudden, instantaneous change. For example, if the energy suddenly increases at a certain moment, the channel with this sudden change can be considered a transient. Determining whether a channel has transient signals is called transient detection.
[0160] The M channels requiring transient detection refer to the M channels among the C channels of the reconstructed scene audio signal that require transient detection. M is a positive integer greater than or equal to 1 and less than or equal to C. That is, M can be as small as 1, indicating that only one of the C channels of the reconstructed scene audio signal requires transient detection; M can be as large as C, indicating that all of the C channels of the reconstructed scene audio signal require transient detection; and when M is any number between 1 and C, it indicates that some of the C channels of the reconstructed scene audio signal require transient detection.
[0161] Optionally, the decoding end may determine the M channels for transient detection in a preset manner.
[0162] For example, a transient detection table is generated in advance, in which channels requiring transient detection among the C channels are filled with 1 in the corresponding table, and channels not requiring transient detection are filled with 0 in the corresponding table. The decoding end can obtain the above M channels by querying the transient detection table.
[0163] For example, based on the HOA channel directionality, a transient detection table is generated based on the horizontal plane. Then, the W, Y, X, V, U, Q, and P channels are filled with 1, and the other channels are filled with 0.
[0164] For example, M channels may be specified according to user configuration; or, the number of channels included in the Kth stage may be specified to be M channels, where K is less than N.
[0165] After determining the M channels for transient detection, the decoding end may perform transient detection on the M channels one by one to obtain transient detection results for each of the M channels, and then assign transient identifiers to the corresponding channels based on the transient detection results.
[0166] Optionally, the transient flag can be represented by a 1-bit syntax element, for example, 1 indicates the presence of a transient signal, and 0 indicates the absence of a transient signal. If the transient detection result of a channel indicates the presence of a transient signal, the transient flag of the channel is set to 1; if the transient detection result of a channel indicates the absence of a transient signal, the transient flag of the channel is set to 0.
[0167] Optionally, if M=1, the decoder can perform transient detection on one of the C channels in the scene audio signal. The one of them can be a fixed channel, for example, the channel to be transient detected is the W channel (i.e., the above (N+1) 2 Channel 1 (also called the first channel) among the channels, the decoding end can calculate the energy envelope of the W channel respectively, and compare the ratio of the envelope peak value to the envelope valley value with the first threshold. If it is greater than the first threshold, it is determined that a transient signal exists in the W channel; otherwise, it is determined that no transient signal exists in the W channel.
[0168] The above-mentioned first threshold can be pre-set, for example, 0.1. The embodiment of the present application does not specifically limit the value of the first threshold.
[0169] The high-frequency signal and the low-frequency signal can be distinguished by comparing them with a preset second threshold. For example, signals in the frequency band greater than T MHz (the second threshold) in the W channel are determined to be high-frequency signals, and signals in the frequency band less than or equal to T kHz in the W channel are determined to be low-frequency signals. The energy of the signal can be calculated using the square of the amplitude. The second threshold can be, for example, 4 kHz, which is not specifically limited in the present embodiment.
[0170] After the decoder obtains the transient detection result of channel W, it further obtains the transient identifier of channel W. Optionally, the transient identifier of channel W can be used as the transient identifier of the C channels in the current frame of the scene audio signal. That is, if a transient signal exists in channel W, then transient signals exist in all C channels; if no transient signal exists in channel W, then no transient signal exists in all C channels.
[0171] Optionally, if M=C, the decoder can perform transient detection on all C channels in the scene audio signal to obtain a transient identifier for each channel. The transient detection method for any channel can refer to the transient detection method for W channels above and will not be repeated here.
[0172] Optionally, if 1 < M < C, the decoder can perform transient detection on some of the C channels in the scene audio signal to obtain transient identifications for these channels. Channels for which transient detection is not performed are considered to have no transient signals. The transient detection method for any of these channels can refer to the transient detection method for W channels described above and will not be repeated here.
[0173] Step 504: Perform transient recovery on the channels with transient signals among the M channels according to the transient identifiers of the M channels.
[0174] The decoding end can determine which channels have transient signals from the M channels based on the transient identifiers of the M channels, and then perform transient recovery on these channels.
[0175] In an embodiment of the present application, the decoding end performs transient detection on the selected M channels to facilitate transient recovery at the decoding end, thereby processing transient signals in the scene audio signal. On the one hand, since there is no need to write transient identifiers in the bitstream, bitstream can be saved, and on the other hand, the quality of the reconstructed audio signal and the user's auditory experience can be improved.
[0176] FIG6 is a schematic diagram of the structure of a decoding device 600 for a scene audio signal of the present application. As shown in FIG6 , the decoding device 600 for a scene audio signal of the present embodiment can be applied to a decoding end. The decoding device 600 for a scene audio signal can include: a receiving module 601, a decoding module 602, a transient detection module 603, and a transient recovery module 604.
[0177] A receiving module 601 is configured to receive a bitstream; a decoding module 602 is configured to decode the bitstream using at least two decoding methods to obtain a reconstructed scene audio signal, wherein the at least two decoding methods include direct decoding processing, and the reconstructed scene audio signal includes audio signals of C channels, where C is a positive integer; a transient detection module 603 is configured to perform transient detection on M channels among the C channels that require transient detection to obtain transient identifiers of the M channels, wherein the transient identifiers are used to indicate whether a transient signal exists in the corresponding channels, where 1≤M≤C; and a transient recovery module 604 is configured to perform transient recovery on channels among the M channels that have transient signals based on the transient identifiers of the M channels.
[0178] In a possible implementation, when M=1, the M channels are W channels among the C channels; or, when 1<M<C, the M channels are preset.
[0179] In one possible implementation, the transient detection module 603 is specifically used to obtain an energy difference between a high-frequency signal and a low-frequency signal of a target channel, where the high-frequency signal is a signal in the audio signal of the target channel whose frequency is greater than a first threshold, and the low-frequency signal is a signal in the audio signal of the target channel whose frequency is less than or equal to the first threshold. The target channel is any one of the M channels; when the energy difference is greater than a second threshold, a first transient identifier is assigned to the target channel, and the first transient identifier is used to indicate that a transient signal exists in the target channel; or, when the energy difference is less than or equal to the second threshold, a second transient identifier is assigned to the target channel, and the second transient identifier is used to indicate that no transient signal exists in the target channel.
[0180] In a possible implementation manner, the at least two decoding methods further include spatial decoding processing and / or decorrelation processing.
[0181] In one possible implementation, the decoding module 602 is specifically configured to perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and perform the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel; or, perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and perform the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; or, perform the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, perform the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel, and perform the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; wherein the first code stream, the second code stream, or the third code stream is a type of code stream among the code streams, and the first channel, the second channel, or the third channel is a type of channel among the C channels.
[0182] The device of this embodiment can be used to execute the technical solution of the method embodiment shown in Figure 5. Its implementation principle and technical effects are similar and will not be repeated here.
[0183] During implementation, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware coding processor, or can be executed by a combination of hardware and software modules in the coding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0184] The memory mentioned in the above embodiments may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0185] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0186] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0187] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely 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 system, 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.
[0188] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0190] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment 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.
[0191] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for decoding a scene audio signal, characterized in that: include: Receive code stream; Decoding the bitstream using at least two decoding methods to obtain a reconstructed scene audio signal, wherein the at least two decoding methods include direct decoding processing, and the reconstructed scene audio signal includes audio signals of C channels, where C is a positive integer; Performing transient detection on M channels that need to be transiently detected among the C channels to obtain transient identifications of the M channels, where the transient identifications are used to indicate whether a transient signal exists in the corresponding channel, 1≤M≤C; Transient recovery is performed on a channel having a transient signal among the M channels according to the transient identifiers of the M channels.
2. The method according to claim 1, characterized in that: When M=1, the M channels are W channels among the C channels; or, When 1<M<C, the M channels are preset.
3. The method according to claim 1 or 2, characterized in that: The performing transient detection on M channels that need to be transiently detected among the C channels to obtain transient identifications of the M channels includes: Acquire an energy difference between a high-frequency signal and a low-frequency signal of a target channel, wherein the high-frequency signal is a signal in the audio signal of the target channel whose frequency is greater than a first threshold, and the low-frequency signal is a signal in the audio signal of the target channel whose frequency is less than or equal to the first threshold, and the target channel is any channel among the M channels; When the energy difference is greater than a second threshold, a first transient flag is assigned to the target channel, where the first transient flag is used to indicate that a transient signal exists in the target channel; or When the energy difference is less than or equal to the second threshold, a second transient flag is assigned to the target channel, where the second transient flag is used to indicate that there is no transient signal in the target channel.
4. The method according to any one of claims 1 to 3, characterized in that The at least two decoding methods further include spatial decoding processing and / or decorrelation processing.
5. The method according to claim 4, characterized in that The decoding of the code stream using at least two decoding methods includes: Performing the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and performing the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel; or, Performing the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, and performing the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; or, Performing the direct decoding process on the first code stream to obtain a reconstructed signal of the first channel, performing the spatial decoding process on the second code stream to obtain a reconstructed signal of the second channel, and performing the decorrelation process on the third code stream to obtain a reconstructed signal of the third channel; The first code stream, the second code stream or the third code stream is a type of code stream among the code streams, and the first channel, the second channel or the third channel is a type of channel among the C channels.
6. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
7. 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 method according to any one of claims 1 to 5.
8. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Error hidden frame reconstruction method based on overlap change compression code
CN101046964A
Audio encoding and decoding method and device
CN114582357A
Coding and decoding method, device, equipment, storage medium and computer program
CN115881139A
Parametric method for decoding audio signal of e.g. MPEG stereo parametric standard, involves determining discontinuity value based on transient value and value of coefficients determined from parameters estimated by estimation window
FR2980619A1
Audio decoding apparatus and audio decoding method
US20100228552A1
