A method and system for generating full-bandwidth spectrum coefficients based on generative adversarial network

By using a generative adversarial network to generate high-frequency missing spectral coefficients in the Bluetooth audio codec, the problem of audio bandwidth loss is solved, high-quality output in low-power devices is achieved, and the user experience is improved.

CN114999503BActive Publication Date: 2024-08-27BEIJING BAIRUI INTERNET TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210560097.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-23
Publication Date
2024-08-27
Estimated Expiration
2042-05-23

AI Technical Summary

Technical Problem

Existing Bluetooth audio codecs will discard high-frequency parts when processing audio with different sampling rates, resulting in loss of audio bandwidth and affecting sound quality. Especially in low-power and embedded devices, it is difficult to achieve high-quality and low-power audio. consumption balance.

Method used

A full-bandwidth spectral coefficient generation method based on a generative adversarial network is used to obtain the bandwidth spectral coefficients through the LC3 decoder, and the pre-trained generation network is used to generate high-frequency missing spectral coefficients, which are spliced ​​to obtain complete full-bandwidth spectral coefficients, thereby improving the audio sound quality.

Benefits of technology

Without changing the encoding end, it improves audio quality, reduces processing complexity and power consumption, is suitable for low-power Bluetooth devices and embedded systems, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114999503B
    Figure CN114999503B
Patent Text Reader

Abstract

The present application discloses a method and system for generating full-bandwidth spectrum coefficients based on a generative adversarial network, which belongs to the technical field of audio coding and decoding. The method comprises: in the process of decoding music audio, using an LC3 decoder to decode the audio code stream, and obtaining the bandwidth spectrum coefficients corresponding to the audio code stream; using a pre-trained generative network to process the bandwidth spectrum coefficients, and obtaining the high-frequency missing spectrum coefficients corresponding to the audio code stream; splicing the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain the full-bandwidth spectrum coefficients. The present application obtains the bandwidth spectrum coefficients of the audio in the process of decoding the audio by the LC3 decoder, and uses a pre-trained generative network to generate the high-frequency missing spectrum coefficients lost by the LC3 codec according to the bandwidth spectrum coefficients, and splices the bandwidth spectrum coefficients obtained by standard encoding with the generated high-frequency missing spectrum coefficients to obtain a complete full-bandwidth spectrum coefficient, thereby ensuring the sound quality of the audio when listening and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio coding and decoding technology, and in particular to a method and system for generating full-bandwidth spectrum coefficients based on a generative adversarial network. Background Art

[0002] The current mainstream Bluetooth audio encoders are as follows: SBC: mandatory requirement of the A2DP protocol, the most widely used, and must be supported by all Bluetooth audio devices, but the sound quality is average; AAC-LC: better sound quality and more widely used, many mainstream mobile phones support it, but compared with SBC, it occupies a larger memory and has a higher computational complexity. Many Bluetooth devices are based on embedded platforms with limited battery capacity, poor processor computing power and limited memory, and its patent fees are high; aptX series: better sound quality, but very high bit rate, aptX requires a bit rate of 384kbps, while apt X-HD has a bit rate of 576kbps, and it is a unique technology of Qualcomm and is relatively closed; LDAC: The sound quality is good, but the bit rate is also very high, which are 330kbps, 660kbps and 990kbps respectively. Since the wireless environment of Bluetooth devices is particularly complex, it is difficult to stably support such a high bit rate, and it is a unique technology of Sony and is also very closed; LHDC: The sound quality is good, but the bit rate is also very high, typically including 400kbps, 600kbps and 900kbps. Such a high bit rate puts high demands on the baseband / RF design of Bluetooth. For the above reasons, the Bluetooth International Alliance Bluetooth Sig and many manufacturers launched LC3, which is mainly for low-power Bluetooth and can also be used for classic Bluetooth. It has the advantages of lower latency, higher sound quality and coding gain, and no patent fees in the Bluetooth field, and has attracted the attention of many manufacturers.

[0003] However, in order to reduce the complexity and bit rate of the codec for implementation in embedded Bluetooth devices, the standard LC3 codec will discard some high-frequency parts when processing audio at the following two sampling rates. For example, for a sampling rate of 44.1KHz, the effective bandwidth of the original audio is 22.05KHz, and the effective bandwidth of the audio after passing through the LC3 codec is 18.375KHz; for a sampling rate of 48KHz, the effective bandwidth of the original audio is 24KHz, and the effective bandwidth of the audio after passing through the LC3 codec is 20KHz. There is a loss of bandwidth, so the lost bandwidth causes a reduction in audio quality. Summary of the invention

[0004] In response to the problem that when audio is encoded and decoded through the LC3 codec, there is a loss of audio bandwidth, which affects the audio quality and reduces the user experience. This application proposes a full-bandwidth spectral coefficient generation method and system based on a generative adversarial network.

[0005] In the first aspect, the present application proposes a method for generating full-bandwidth spectrum coefficients based on a generative adversarial network, comprising: in the process of decoding music audio, using an LC3 decoder to decode the audio bit stream to obtain the bandwidth spectrum coefficients corresponding to the audio bit stream; using a pre-trained generative network to process the bandwidth spectrum coefficients to obtain high-frequency missing spectrum coefficients corresponding to the audio bit stream; splicing the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain the full-bandwidth spectrum coefficients.

[0006] Optionally, an audio bitstream is decoded using an LC3 decoder to obtain bandwidth spectrum coefficients corresponding to the audio bitstream, including: using an LC3 decoder to decode the audio bitstream to a transform domain noise shaping step to obtain bandwidth spectrum coefficients, and the decoding process only includes arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding steps.

[0007] Optionally, the bandwidth spectrum coefficients are processed using a pre-trained generation network to obtain high-frequency missing spectrum coefficients corresponding to the audio bit stream, including: determining the sampling rate of the audio bit stream; if the sampling rate is a first sampling rate, generating the corresponding first high-frequency missing spectrum coefficients through the generation network; if the sampling rate is a second sampling rate, generating the corresponding second high-frequency missing spectrum coefficients through the generation network.

[0008] Optionally, the pre-training process of the generative network includes: obtaining the full-bandwidth spectrum coefficients of the audio data, and extracting the real high-frequency missing spectrum coefficients from the full-bandwidth spectrum coefficients; decoding the audio bit stream corresponding to the audio data using the LC3 decoder to obtain the bandwidth spectrum coefficients; training the generative network through the high-frequency spectrum coefficients and the bandwidth spectrum coefficients, so that the generative network can obtain the high-frequency missing spectrum coefficients according to the bandwidth spectrum coefficients.

[0009] Optionally, the generation network is trained using high-frequency spectrum coefficients and bandwidth spectrum coefficients, including: processing the bandwidth coefficients through the generation network to obtain predicted high-frequency missing spectrum coefficients; using an adversarial network to compare the predicted high-frequency missing spectrum coefficients with actual high-frequency missing spectrum coefficients to obtain comparison results; and optimizing the generation network based on the comparison results so that the error between the predicted high-frequency missing spectrum coefficients and the actual high-frequency missing spectrum coefficients is lower than a preset threshold.

[0010] Optionally, the full-bandwidth spectrum coefficients of the audio data are obtained, and the real high-frequency spectrum coefficients are extracted from the full-bandwidth spectrum coefficients, including: judging the sampling rate of the audio data, wherein if the sampling rate is 48KHz, it corresponds to the real high-frequency spectrum coefficients of 20-24KHz; if the sampling rate is 44.1KHz, it corresponds to the real high-frequency spectrum coefficients of 18.375-22.05KHz.

[0011] In the second aspect, the present application provides a full-bandwidth spectrum coefficient generation system based on a generative adversarial network, including: a feature extraction module, which uses an LC3 decoder to decode the audio bit stream during the decoding process of music audio to obtain the bandwidth spectrum coefficient corresponding to the audio bit stream; a bandwidth extension module, which uses a pre-trained generative network to process the bandwidth spectrum coefficient to obtain the high-frequency missing spectrum coefficient corresponding to the audio bit stream; a splicing module, which splices the bandwidth spectrum coefficient and the high-frequency missing spectrum coefficient to obtain the full-bandwidth spectrum coefficient.

[0012] On the third aspect, the present application proposes a full-bandwidth spectrum coefficient decoding method, including: in the process of decoding music audio, using the LC3 decoder to decode the audio bit stream to obtain the bandwidth spectrum coefficients corresponding to the audio bit stream; using a pre-trained generation network to process the bandwidth spectrum coefficients to obtain high-frequency missing spectrum coefficients corresponding to the audio bit stream; splicing the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain full-bandwidth spectrum coefficients; using the LC3 decoder to continue decoding the audio bit stream according to the full-bandwidth spectrum coefficients to obtain audio data corresponding to the audio bit stream.

[0013] In a fourth aspect, the present application proposes a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed, the computer executes the method in scheme one or scheme three.

[0014] In a fifth aspect, the present application proposes a computer device, comprising a processor and a memory, wherein the memory stores computer instructions, wherein: the processor operates the computer instructions to execute the method in scheme one or scheme two.

[0015] The present application obtains the bandwidth spectrum coefficients of the audio during the decoding process of the audio by the LC3 decoder, and uses a pre-trained generation network to generate the high-frequency missing spectrum coefficients lost by the LC3 codec based on the bandwidth spectrum coefficients. The bandwidth spectrum coefficients obtained by standard encoding are spliced ​​with the generated high-frequency missing spectrum coefficients to obtain complete full-bandwidth spectrum coefficients, thereby ensuring the sound quality of the audio when listening and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings in the following description exemplarily show some embodiments of the present application.

[0017] Figure 1 It is a schematic diagram of an implementation method of the full-bandwidth spectrum coefficient generation method based on the generative adversarial network of the present application;

[0018] Figure 2 This is the original spectrum of audio at a sampling rate of 48KHz;

[0019] Figure 3 This is the spectrum diagram after being encoded and decoded by LC3 codec at 48KHz sampling rate;

[0020] Figure 4 is a schematic diagram of an example of the network training process generated by the present application;

[0021] Figure 5 It is a schematic diagram of an implementation of a full-bandwidth spectral coefficient generation system based on a generative adversarial network of the present application;

[0022] Figure 6 It is a schematic diagram of an implementation method of the full-bandwidth spectrum coefficient decoding method of the present application;

[0023] Figure 7 It is a schematic diagram of an example of the full-bandwidth spectrum coefficient decoding method of the present application.

[0024] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0025] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present application.

[0026] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0027] The current mainstream Bluetooth audio encoders are as follows: SBC: mandatory requirement of the A2DP protocol, the most widely used, and must be supported by all Bluetooth audio devices, but the sound quality is average; AAC-LC: better sound quality and more widely used, many mainstream mobile phones support it, but compared with SBC, it occupies a larger memory and has a higher computational complexity. Many Bluetooth devices are based on embedded platforms with limited battery capacity, poor processor computing power and limited memory, and its patent fees are high; aptX series: better sound quality, but very high bit rate, aptX requires a bit rate of 384kbps, while apt X-HD has a bit rate of 576kbps, and it is a unique technology of Qualcomm and is relatively closed; LDAC: The sound quality is good, but the bit rate is also very high, which are 330kbps, 660kbps and 990kbps respectively. Since the wireless environment of Bluetooth devices is particularly complex, it is difficult to stably support such a high bit rate, and it is a unique technology of Sony and is also very closed; LHDC: The sound quality is good, but the bit rate is also very high, typically including 400kbps, 600kbps and 900kbps. Such a high bit rate puts high demands on the baseband / RF design of Bluetooth. For the above reasons, the Bluetooth International Alliance Bluetooth Sig and many manufacturers launched LC3, which is mainly for low-power Bluetooth and can also be used for classic Bluetooth. It has the advantages of lower latency, higher sound quality and coding gain, and no patent fees in the Bluetooth field, and has attracted the attention of many manufacturers.

[0028] However, in order to reduce the complexity and bit rate of the codec so as to implement it in embedded Bluetooth devices, the standard LC3 codec will discard some high-frequency parts when processing audio at the following two sampling rates. For example, for a sampling rate of 44.1KHz, the effective bandwidth of the original audio is 22.05KHz, and the effective bandwidth of the audio after passing through the LC3 codec is 18.375KHz; for a sampling rate of 48KHz, the effective bandwidth of the original audio is 24KHz, and the effective bandwidth of the audio after passing through the LC3 codec is 20KHz. There is a loss of bandwidth, so the lost bandwidth causes a reduction in audio quality. Because the LC3 codec itself has strict requirements on power consumption and computing power, and the LC3 encoder is used in embedded systems, the storage space and computing power are relatively limited. When solving the above-mentioned bandwidth shortage problem, it is also necessary to fully consider the low power consumption and low computing power of the LC3 editor and the embedded system itself.

[0029] In response to the above problems, this application proposes a method and system for generating full-bandwidth spectrum coefficients based on a generative adversarial network. By using the relevant parameters of the LC3 decoder when decoding the audio, the missing bandwidth is generated using the generative network, and finally the full bandwidth is obtained, and the full-bandwidth signal is output to improve the audio quality. No changes are made to the encoding end to obtain high-quality audio, reduce the complexity of processing, and only require lower power consumption and computing power. It is suitable for LC3 codec low-power Bluetooth and embedded systems.

[0030] To this end, the present application proposes a method and system for generating full-bandwidth spectrum coefficients based on a generative adversarial network. The method includes: in the process of decoding music audio, using an LC3 decoder to decode the audio bitstream to obtain the bandwidth spectrum coefficients corresponding to the audio bitstream; using a pre-trained generative network to process the bandwidth spectrum coefficients to obtain the high-frequency missing spectrum coefficients corresponding to the audio bitstream; splicing the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain the full-bandwidth spectrum coefficients.

[0031] The present application obtains the bandwidth spectrum coefficients of the audio during the decoding process of the audio by the LC3 decoder, and uses a pre-trained generation network to generate the high-frequency missing spectrum coefficients lost by the LC3 codec based on the bandwidth spectrum coefficients. The bandwidth spectrum coefficients obtained by standard decoding are spliced ​​with the generated high-frequency missing spectrum coefficients to obtain complete full-bandwidth spectrum coefficients, thereby ensuring the sound quality of the audio when listening and improving the user experience.

[0032] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The specific embodiments described below can be combined with each other to form new embodiments. The same or similar ideas or processes described in one embodiment may not be repeated in other embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0033] Figure 1 An implementation of the full-bandwidth spectral coefficient generation method based on a generative adversarial network of the present application is shown.

[0034] exist Figure 1 In the illustrated implementation manner, the full-bandwidth spectrum coefficient generation method based on a generative adversarial network of the present application includes process S101, in which, during the decoding process of the music audio, the audio bitstream is decoded using the LC3 decoder to obtain the bandwidth spectrum coefficients corresponding to the audio bitstream.

[0035] In this embodiment, when decoding the music audio, the code stream data of the music audio encoded by the LC3 encoder is input into the LC3 audio decoder, and the code stream is decoded by the LC3 decoder, and the bandwidth spectrum coefficient corresponding to the audio code stream is extracted during the decoding process. Due to the characteristics of the LC3 codec itself, the output bandwidth spectrum coefficient is not the full bandwidth spectrum coefficient. For example, after the audio data with a sampling rate of 44.1KHz is encoded and decoded by the LC3 codec, an effective bandwidth of 0-18.375KHz is obtained, rather than a full bandwidth of 0-22.05KHz; after the audio data with a sampling rate of 48KHz is encoded and decoded by the LC3 codec, an effective bandwidth of 0-20KHz is obtained, rather than a full bandwidth of 0-24KHz. Due to the lack of the high-frequency part of the bandwidth, there is a certain impact on the audio quality.

[0036] Optionally, an audio bitstream is decoded using an LC3 decoder to obtain bandwidth spectrum coefficients corresponding to the audio bitstream, including: using an LC3 decoder to decode the audio bitstream to a transform domain noise shaping step to obtain bandwidth spectrum coefficients, and the decoding process only includes arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding steps.

[0037] In this optional embodiment, when the LC3 decoder decodes the audio code stream to obtain the bandwidth spectrum coefficient, the decoding is performed according to the decoding process of the LC3 decoder standard, and the bandwidth spectrum coefficient is obtained in the transform domain noise shaping step. The decoding process is sequentially arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding steps to obtain the bandwidth spectrum coefficient corresponding to the audio code stream. The process of obtaining the bandwidth spectrum coefficient of the present application is directly obtained in the decoding process of the standard LC3 decoder, without the need for other changes and operations, reducing unnecessary processing, power consumption and computing power, and is therefore more suitable for LC3 low-power Bluetooth and embedded systems.

[0038] exist Figure 1 In the illustrated implementation manner, the full-bandwidth spectrum coefficient generation method based on a generative adversarial network of the present application includes process S102, which processes the bandwidth spectrum coefficients using a pre-trained generative network to obtain high-frequency missing spectrum coefficients corresponding to an audio bit stream.

[0039] In this implementation, in order to supplement the bandwidth lost when the LC3 codec encodes and decodes the audio, the present application uses a generation network to generate predicted high-frequency missing spectrum coefficients based on existing bandwidth spectrum coefficients. The generation of high-frequency missing spectrum coefficients using a deep learning network can ensure the accuracy of the generated high-frequency missing spectrum coefficients through good model training, thereby ensuring the sound quality of the audio.

[0040] Optionally, the bandwidth spectrum coefficients are processed using a pre-trained generation network to obtain high-frequency missing spectrum coefficients corresponding to the audio bit stream, including: determining the sampling rate of the audio bit stream; if the sampling rate is a first sampling rate, generating the corresponding first high-frequency missing spectrum coefficients through the generation network; if the sampling rate is a second sampling rate, generating the corresponding second high-frequency missing spectrum coefficients through the generation network.

[0041] In this optional embodiment, it is known that the LC3 codec corresponds to two sampling rates, a first sampling rate of 48KHz and a second sampling rate of 44.1KHz. For these two different sampling rates, the bandwidth loss of the audio obtained during decoding is also different. Therefore, when using the generation network to generate high-frequency missing bandwidth, it is necessary to distinguish the sampling rate of the audio and then perform corresponding processing. Among them, for audio with a sampling rate of 48KHz, a first high-frequency missing spectrum coefficient of 20-24KHz is generated by the generation network; for audio with a sampling rate of 44.1KHz, a second high-frequency missing spectrum coefficient of 18.375-24KHz is generated by the generation network. By distinguishing the audio sampling rate, the corresponding high-frequency missing spectrum coefficient is generated to ensure the accuracy of the high-frequency missing spectrum coefficient, thereby ensuring the sound quality.

[0042] Optionally, the pre-training process of the generative network includes: obtaining the full-bandwidth spectrum coefficients of the audio data, and extracting the real high-frequency missing spectrum coefficients from the full-bandwidth spectrum coefficients; decoding the audio bit stream corresponding to the audio data using the LC3 decoder to obtain the bandwidth spectrum coefficients; training the generative network through the high-frequency spectrum coefficients and the bandwidth spectrum coefficients, so that the generative network can obtain the high-frequency missing spectrum coefficients according to the bandwidth spectrum coefficients.

[0043] In this optional embodiment, during the training process of the generated network, the training data of the generated network is first obtained. For the full-bandwidth audio data with a sampling rate of 44.1KHz or 48KHz, the full-bandwidth spectrum coefficients are extracted, and then the corresponding real high-frequency missing spectrum coefficients are extracted according to a certain sampling rate. For example, for audio data with a sampling rate of 48KHz, the bandwidth spectrum coefficients of 20-24KHz are extracted as the true value data for model training. Then, the audio code stream is decoded using the LC3 decoder to obtain the bandwidth spectrum coefficients. By using the bandwidth spectrum coefficients and the real high-frequency missing spectrum coefficients for model training, the generated network can finally obtain the high-frequency missing spectrum coefficients according to the bandwidth spectrum coefficients, and the error between the obtained high-frequency missing spectrum coefficients and the real high-frequency missing spectrum coefficients is within a preset range, and the training of the model is completed.

[0044] Specifically, take the audio data with a configured frame length of 10ms and a sampling rate of 48KHz as an example. The input audio data is divided into frames, and the size of each frame after segmentation is 480 sampling points, and one frame of data is input each time. One of the inputs is LD-MDCT (i.e., the low-delay improved discrete cosine transform in the standard LC3 encoder), and the output is the full-bandwidth spectrum coefficient. The high-frequency spectrum coefficient is taken as the 'true' signal used in the training of the generative adversarial network, which is briefly described as follows:

[0045] t(n)=x s (ZN F +n), for n=0…2·N F -1-Z

[0046] t(2N F -Z+n)=0,for n=0…Z-1

[0047]

[0048] where x s (n) is the input time domain audio pcm signal. Taking the configuration of 48kHz and 10ms as an example, the length of one frame is 480 sampling points. X(k) is the frequency domain spectrum coefficient after discrete cosine transform, which contains 480 valid spectrum coefficients. The high frequency spectrum coefficient used for training is defined as: X(k), k = 400 ~ 479. Through the above process, the real high frequency missing spectrum coefficient can be obtained, which is the true value of model training.

[0049] The other processing is as follows: the audio data is input into the standard LC3 encoder, encoded and output as a bitstream, and the bitstream is decoded by the standard LC3 decoder to transform domain noise shaping, including arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding, and outputs bandwidth spectrum coefficients of 0 to 20 kHz.

[0050]

[0051] Take the configuration of 10ms and 48kHz sampling rate as an example, N F =480, that is, a total of 480 spectral coefficients. Since the last 80 spectral coefficients are discarded during the encoding process, when k = 0 to 399, Contains effective spectrum coefficients, when k = 400 ~ 479, Through the above process, the bandwidth spectrum coefficient can be obtained.

[0052] Specifically, there are two different ways to obtain bandwidth spectrum coefficients during model training. One is to use X(k) output by LD-MDCT in the encoder, when k = 0 to 399, then X(k) is equal to The second is similar but not identical; the second is obtained by LC3 encoding and partial decoding k=0~399. The present invention uses the second method because when the generation network of the present invention is actually deployed in an embedded network, only the second method can be obtained. The training results in a better generative network. Although the training method requires a large amount of computation, the training is usually done offline, based on a PC or server, and is not sensitive to the amount of computation.

[0053] Optionally, the generation network is trained using high-frequency spectrum coefficients and bandwidth spectrum coefficients, including: processing the bandwidth spectrum coefficients through the generation network to obtain predicted high-frequency missing spectrum coefficients; using an adversarial network to compare the predicted high-frequency missing spectrum coefficients with actual high-frequency missing spectrum coefficients to obtain comparison results; and optimizing the generation network based on the comparison results so that the error between the predicted high-frequency missing spectrum coefficients and the actual high-frequency missing spectrum coefficients is lower than a preset threshold.

[0054] In this optional embodiment, in order to ensure that a generative network with better training effect is obtained, the predicted high-frequency missing spectrum coefficients and the real high-frequency missing spectrum coefficients generated by the generative network are compared and learned through an adversarial network, and the relevant parameters of the generative layer network are adjusted and optimized according to the comparison results of the two, so that the error between the predicted high-frequency missing spectrum coefficients and the real high-frequency missing spectrum coefficients is finally lower than the preset threshold. At this time, the parameters of the generative network are recorded to complete the training of the model.

[0055] Specifically, the setting of the preset threshold can be reasonably set according to the accuracy requirements of the generated network training, etc., and this application does not impose any specific restrictions on this.

[0056] Optionally, the full-bandwidth spectrum coefficients of the audio data are obtained, and the real high-frequency spectrum coefficients are extracted from the full-bandwidth spectrum coefficients, including: judging the sampling rate of the audio data, wherein if the sampling rate is 48KHz, it corresponds to the real high-frequency spectrum coefficients of 20-24KHz; if the sampling rate is 44.1KHz, it corresponds to the real high-frequency spectrum coefficients of 18.375-22.05KHz.

[0057] In this optional embodiment, for the LC3 codec, it mainly consists of two sampling rates: 44.1KHz and 48KHZ. Therefore, in the training process of the generation network, it is necessary to perform corresponding processing processes for different sampling rates. Among them, when obtaining the real high frequency spectrum coefficient, the sampling rate of the audio data is judged, wherein, if the sampling rate is 48KHz, the real high frequency missing spectrum coefficient of 20-24KHz is obtained; if the sampling rate is 44.1KHz, the real high frequency missing spectrum coefficient of 18.375-22.05KHz is obtained.

[0058] exist Figure 1 In the illustrated implementation manner, the method for generating full-bandwidth spectrum coefficients based on a generative adversarial network of the present application includes a process S103 of concatenating the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain the full-bandwidth spectrum coefficients.

[0059] In this implementation, after obtaining the high-frequency missing spectrum coefficients through the generation network, the high-frequency missing spectrum coefficients are spliced ​​with the bandwidth spectrum coefficients obtained by encoding and decoding through the LC3 codec to obtain the full-bandwidth spectrum coefficients. The full-bandwidth spectrum coefficients are then used to perform subsequent audio decoding processes, and finally audio data corresponding to the full-bandwidth spectrum coefficients are obtained. Compared with the audio data corresponding to the original bandwidth spectrum coefficients, the audio quality is improved because the high-frequency missing parts are supplemented, thereby enhancing the user experience.

[0060] Specifically, Figure 2 The original spectrogram of audio at 48KHz sampling rate is shown. Figure 3 The spectrum diagram after being encoded and decoded by LC3 codec at 48KHz sampling rate is shown. Figure 2 and Figure 3 It can be seen from the comparison that the effective bandwidth of the original spectrum graph is 0-24KHz, while the effective bandwidth of the audio after being encoded and decoded by the LC3 codec is 0-20KHz, and the high-frequency part of 20-24KHz is lost, which affects the audio quality. This application uses the above method to generate the spectrum coefficients of the missing high-frequency part by using the generation network, so that after the LC3 codec encodes and decodes the audio, it also has good sound quality corresponding to the full-bandwidth spectrum coefficients, thereby improving the user experience.

[0061] Specifically, Figure 4 An example of the network training process generated by the present application is shown.

[0062] exist Figure 4 In the example shown, audio with a sampling rate of 48KHz is used as the input audio. The full-bandwidth spectrum coefficients of 0-24KHz are obtained by performing LD-MDCT discrete cosine transform on the input audio, and then the high-frequency part is intercepted to obtain the real high-frequency missing spectrum coefficients of 20-24KHz. In another branch, the input audio is encoded and decoded by standard LC3 to the transform domain noise shaping decoding step to obtain the bandwidth spectrum coefficients of 0-20KHz, and then the predicted high-frequency missing spectrum coefficients of 20-24KHz are obtained through the generation network. The real high-frequency missing spectrum coefficients and the predicted high-frequency missing spectrum coefficients are compared by the discriminant network to judge the authenticity of the training results, and the generation network is optimized according to the comparison results, and the training of the generation network is finally completed.

[0063] Specifically, the generative network used in the present invention can be based on a deep neural network or other neural network models, such as CNN, RNN, LSTM, etc., which are not limited by the present invention. One implementation method is briefly described as follows: Using a fully connected network, the input is k=0…399, 200 nodes in the first hidden layer, 100 nodes in the second hidden layer, 80 nodes in the output, and each layer also includes a batch normalization function and an activation function.

[0064] The discriminant network used in the present invention can be based on a deep neural network or other neural network models, which is not limited by the present invention). One implementation method is briefly described as follows: taking the input audio sampling rate of 48kHz and the frame length configuration of 10ms as an example, the input layer has 160 nodes, the first hidden layer has 80 nodes, the second hidden layer has 80 nodes, and the output layer has 1 node. Each layer also includes a batch normalization function and an activation function.

[0065] The full-bandwidth spectrum coefficient generation method based on generative adversarial network of the present application obtains the bandwidth spectrum coefficient of the audio during the decoding process of the audio by the LC3 decoder, and uses the pre-trained generative network to generate the high-frequency missing spectrum coefficient lost by the LC3 codec according to the bandwidth spectrum coefficient, and splices the bandwidth spectrum coefficient obtained by standard encoding with the generated high-frequency missing spectrum coefficient to obtain a complete full-bandwidth spectrum coefficient, thereby ensuring the sound quality of the audio when listening and improving the user experience. The encoding end of the present application can output a full-band signal at the decoding end without any change, which effectively improves the sound quality and enhances the user experience; the present application can be applied to both 44.1kHz sampling rate and 48kHz sampling rate configuration; it can be applied to the configuration of 10ms frame length and the configuration of 7.5ms frame length; the present invention takes the Bluetooth field as an example, and can also be used in other fields.

[0066] Figure 5 A schematic diagram of an implementation of a full-bandwidth spectral coefficient generation system based on a generative adversarial network of the present application is shown.

[0067] exist Figure 5 In the illustrated implementation manner, the full-bandwidth spectrum coefficient generation system based on the generative adversarial network of the present application includes: a feature extraction module 501, which uses an LC3 decoder to decode the audio bit stream during the decoding process of the music audio to obtain the bandwidth spectrum coefficient corresponding to the audio bit stream; a bandwidth extension module 502, which uses a pre-trained generative network to process the bandwidth spectrum coefficient to obtain the high-frequency missing spectrum coefficient corresponding to the audio bit stream; a splicing module 503, which splices the bandwidth spectrum coefficient and the high-frequency missing spectrum coefficient to obtain the full-bandwidth spectrum coefficient.

[0068] Optionally, in the feature extraction module 501, an LC3 decoder is used to decode the audio code stream to a transform domain noise shaping step to obtain bandwidth spectrum coefficients, and the decoding process only includes arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding steps.

[0069] Optionally, in the bandwidth extension module 502, the sampling rate of the audio code stream is determined; if the sampling rate is 48KHz, high-frequency missing spectrum coefficients of 20-24KHz are generated through the generation network; if the sampling rate is 44.1KHz, high-frequency missing spectrum coefficients of 18.375-22.05KHz are generated through the generation network.

[0070] Optionally, the pre-training process of the generative network includes: obtaining the full-bandwidth spectrum coefficients of the audio data, and extracting the real high-frequency missing spectrum coefficients from the full-bandwidth spectrum coefficients; decoding the audio bit stream using the LC3 decoder to obtain the bandwidth spectrum coefficients; training the generative network through the high-frequency spectrum coefficients and the bandwidth spectrum coefficients, so that the generative network can obtain the high-frequency missing spectrum coefficients according to the bandwidth spectrum coefficients.

[0071] Optionally, during the training process of the generative network, the bandwidth spectrum coefficient is processed by the generative network to obtain the predicted high-frequency missing spectrum coefficient; the predicted high-frequency missing spectrum coefficient and the actual high-frequency missing spectrum coefficient are compared using the adversarial network to obtain a comparison result; the generative network is optimized according to the comparison result so that the error between the predicted high-frequency missing spectrum coefficient and the actual high-frequency missing spectrum coefficient is lower than a preset threshold.

[0072] Optionally, during the training process of the generated network, the sampling rate of the audio data is judged, wherein, if the sampling rate is 48KHz, it corresponds to the real high-frequency missing spectrum coefficient of 20-24KHz; if the sampling rate is 44.1KHz, it corresponds to the real high-frequency missing spectrum coefficient of 18.375-22.05KHz.

[0073] The full-bandwidth spectrum coefficient generation system based on the generative adversarial network of the present application obtains the bandwidth spectrum coefficient of the audio during the decoding process of the audio by the LC3 decoder, and uses the pre-trained generative network to generate the high-frequency missing spectrum coefficient lost by the LC3 codec according to the bandwidth spectrum coefficient, and splices the bandwidth spectrum coefficient obtained by standard encoding with the generated high-frequency missing spectrum coefficient to obtain a complete full-bandwidth spectrum coefficient, thereby ensuring the sound quality of the audio when listening and improving the user experience. The encoding end of the present application can output a full-band signal at the decoding end without making any changes, which effectively improves the sound quality and enhances the user experience.

[0074] Figure 6 A schematic diagram showing an implementation of the full-bandwidth spectral coefficient decoding method of the present application.

[0075] exist Figure 6 In the illustrated implementation manner, the full-bandwidth spectrum coefficient decoding method of the present application includes: process 601, in the process of decoding the music audio, using the LC3 decoder to decode the audio bitstream to obtain the bandwidth spectrum coefficients corresponding to the audio bitstream; process 602, using the pre-trained generation network to process the bandwidth spectrum coefficients to obtain the high-frequency missing spectrum coefficients corresponding to the audio bitstream; process 603, splicing the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain the full-bandwidth spectrum coefficients; process S604, using the LC3 decoder to continue decoding the audio bitstream according to the full-bandwidth spectrum coefficients to obtain the audio data corresponding to the audio bitstream.

[0076] Specifically, Figure 7 An example of the full-bandwidth spectrum coefficient decoding method of the present application is shown.

[0077] exist Figure 7 In the example shown, the LC3 decoder performs code stream analysis, arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding, and transform domain noise shaping decoding on the input 48KHz sampling rate code stream to obtain the 0-20KHz bandwidth spectrum coefficient of the code stream part, and then generates network processing to obtain the 20-24KHz high-frequency missing spectrum coefficient. Then the spectrum coefficients are spliced ​​to obtain the 0-24KHz full-bandwidth spectrum coefficients, and the full-bandwidth spectrum coefficients are used for subsequent decoding processes, low-delay improved inverse discrete cosine transform and long-term post-filter decoding to obtain the spectrum coefficients corresponding to the full-bandwidth spectrum coefficients, which improves the sound quality and user experience compared to the audio data of the bandwidth spectrum coefficients of the previous part.

[0078] In a specific embodiment of the present application, a computer-readable storage medium stores computer instructions, wherein the computer instructions are operated to execute the full-bandwidth spectral coefficient generation method or full-bandwidth spectral coefficient decoding method based on a generative adversarial network described in any embodiment. The storage medium can be directly in hardware, in a software module executed by a processor, or in a combination of the two.

[0079] The software modules may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from and write information to the storage medium.

[0080] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0081] In a specific embodiment of the present application, a computer device includes a processor and a memory, the memory storing computer instructions, wherein: the processor operates the computer instructions to execute the full-bandwidth spectral coefficient generation method or the full-bandwidth spectral coefficient decoding method based on a generative adversarial network described in any embodiment.

[0082] In the embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, 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.

[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0084] The above are merely embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structural transformations made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for generating full-bandwidth spectrum coefficients based on a generative adversarial network, characterized in that: include: In the process of decoding the music audio, the audio code stream is decoded by using the LC3 decoder to obtain the bandwidth spectrum coefficient corresponding to the audio code stream; Processing the bandwidth spectrum coefficients using a pre-trained generation network to obtain high-frequency missing spectrum coefficients corresponding to the audio code stream, including determining a sampling rate of the audio code stream, if the sampling rate is a first sampling rate, generating a corresponding first high-frequency missing spectrum coefficient through the generation network, if the sampling rate is a second sampling rate, generating a corresponding second high-frequency missing spectrum coefficient through the generation network, wherein the first sampling rate is 48 kHz and the second sampling rate is 44.1 kHz; The bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients are concatenated to obtain full-bandwidth spectrum coefficients.

2. The method for generating full-bandwidth spectrum coefficients based on a generative adversarial network according to claim 1, characterized in that: The method of decoding the audio code stream by using the LC3 decoder to obtain the bandwidth spectrum coefficient corresponding to the audio code stream includes: The audio code stream is decoded by the LC3 decoder to a transform domain noise shaping step to obtain the bandwidth spectrum coefficients, and the decoding process only includes arithmetic and residual decoding, noise filling, global gain, time domain noise shaping decoding and transform domain noise shaping decoding steps.

3. The method for generating full-bandwidth spectrum coefficients based on a generative adversarial network according to claim 1, characterized in that: The pre-training process of the generating network includes: Acquire full-bandwidth spectrum coefficients of the audio data, and extract true high-frequency missing spectrum coefficients from the full-bandwidth spectrum coefficients; Decoding the audio code stream corresponding to the audio data using an LC3 decoder to obtain bandwidth spectrum coefficients; The generation network is trained by using the real high-frequency missing spectrum coefficients and the bandwidth spectrum coefficients, so that the generation network can obtain the high-frequency missing spectrum coefficients according to the bandwidth spectrum coefficients.

4. The method for generating full-bandwidth spectrum coefficients based on a generative adversarial network according to claim 3, characterized in that: The step of training the generation network by using the real high-frequency missing spectrum coefficients and the bandwidth spectrum coefficients comprises: Processing the bandwidth spectrum coefficients through the generation network to obtain predicted high-frequency missing spectrum coefficients; Using an adversarial network to compare the predicted high-frequency missing spectrum coefficient and the actual high-frequency missing spectrum coefficient to obtain a comparison result; The generation network is optimized according to the comparison result so that the error between the predicted high-frequency missing spectrum coefficient and the actual high-frequency missing spectrum coefficient is lower than a preset threshold.

5. The method for generating full-bandwidth spectrum coefficients based on a generative adversarial network according to claim 3, characterized in that: The step of obtaining full-bandwidth spectrum coefficients of the audio data and extracting true high-frequency missing spectrum coefficients from the full-bandwidth spectrum coefficients includes: The sampling rate of the audio data is determined, wherein: If the sampling rate is 48KHz, it corresponds to the real high-frequency missing spectrum coefficients of 20-24KHz; If the sampling rate is 44.1 KHz, it corresponds to the real high-frequency missing spectrum coefficients of 18.375-22.05 KHz.

6. A full-bandwidth spectral coefficient generation system based on a generative adversarial network, characterized in that: include: A feature extraction module, which uses an LC3 decoder to decode the audio code stream during the decoding process of the music audio, and obtains the bandwidth spectrum coefficient corresponding to the audio code stream; A bandwidth extension module, which processes the bandwidth spectrum coefficients using a pre-trained generation network to obtain high-frequency missing spectrum coefficients corresponding to the audio code stream, including determining a sampling rate of the audio code stream, if the sampling rate is a first sampling rate, generating a corresponding first high-frequency missing spectrum coefficient through the generation network, if the sampling rate is a second sampling rate, generating a corresponding second high-frequency missing spectrum coefficient through the generation network, wherein the first sampling rate is 48kHz and the second sampling rate is 44.1kHz; A splicing module splices the bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients to obtain full-bandwidth spectrum coefficients.

7. A full bandwidth spectrum coefficient decoding method, characterized in that: include: In the process of decoding the music audio, the audio code stream is decoded by using the LC3 decoder to obtain the bandwidth spectrum coefficient corresponding to the audio code stream; Processing the bandwidth spectrum coefficients using a pre-trained generation network to obtain high-frequency missing spectrum coefficients corresponding to the audio code stream, including determining a sampling rate of the audio code stream, if the sampling rate is a first sampling rate, generating a corresponding first high-frequency missing spectrum coefficient through the generation network, if the sampling rate is a second sampling rate, generating a corresponding second high-frequency missing spectrum coefficient through the generation network, wherein the first sampling rate is 48 kHz and the second sampling rate is 44.1 kHz; The bandwidth spectrum coefficients and the high-frequency missing spectrum coefficients are concatenated to obtain full-bandwidth spectrum coefficients; The audio code stream is further decoded using the LC3 decoder according to the full-bandwidth spectrum coefficients to obtain audio data corresponding to the audio code stream.

8. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed, the computer executes the full-bandwidth spectral coefficient generation method based on a generative adversarial network described in any one of claims 1 to 5 or the full-bandwidth spectral coefficient decoding method described in claim 7.

9. A computer device comprising a processor and a memory, wherein the memory stores computer instructions, wherein: The processor operates computer instructions to execute the full-bandwidth spectral coefficient generation method based on a generative adversarial network described in any one of claims 1-5 or the full-bandwidth spectral coefficient decoding method described in claim 7.

Citation Information

Patent Citations

  • Excitation signal generation in bandwidth spreading and signal reconstruction method and apparatus

    CN101458930A

  • Generative adversarial network training method oriented to band spreading, and audio encoding and decoding methods

    CN107945811A

  • Audio encoding and decoding method and device, medium and electronic equipment

    CN112767954A

  • Generative adversarial network-based frequency band extension method, encoding and decoding method and system

    CN114420140A

  • Adaptive Bandwidth Extension and Apparatus for the Same

    US20150073784A1