Audio compression and reconstruction method, device, equipment and medium

By correcting the combination of discrete cosine transformation, lightweight convolutional neural network and spectrum extension network, the spectrum integrity and computing efficiency problems of existing audio encoding and decoding technologies at low bit rates are solved, and high-quality audio reconstruction and stability adaptability are achieved.

CN120526782APending Publication Date: 2025-08-22PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202510651662.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

Existing audio encoding and decoding technologies are difficult to balance spectrum integrity, reconstruction quality and computing efficiency under low bit rate conditions, high-frequency details are easily lost, time domain distortion control is insufficient, and the stability and adaptability in different business scenarios are poor.

Method used

The time-domain characteristics are generated by modified discrete cosine transformation processing, and key spectrum information is extracted using lightweight convolutional neural networks, residual vector quantization and spectrum expansion network compensation are performed, and time-domain error prediction is predicted in combination with long and short-term memory networks, and high-quality audio signals are finally generated.

Benefits of technology

Implement high-quality audio reconstruction at low bit rate, reduce computing complexity, improve spectrum integrity and time domain stability, and is suitable for high sampling rate and resource-constrained scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120526782A_ABST
    Figure CN120526782A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of voice processing, can be applied to service system platforms of medical health, financial science and technology, communication and the like, and discloses an audio compression and reconstruction method, device, equipment and medium. Residual vector quantization and inverse quantization are carried out to generate basic spectrum features; and compensating a high-frequency component by adopting a spectrum expansion network, predicting a time domain error in combination with a long-short-term memory network, generating a time domain residual compensation signal, and superposing the time domain residual compensation signal with the reconstructed time domain audio signal to obtain a target audio signal. Through residual vector quantization and neural network modeling, the audio reconstruction quality under low-bit-rate compression is improved, spectrum detail reservation and time domain error compensation are optimized, meanwhile, the calculation complexity is reduced, and the method is suitable for high-sampling-rate and resource-limited scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech processing technology, and in particular to an audio compression and reconstruction method, device, equipment and storage medium. Background Art

[0002] Audio codec technology is widely used in modern communications, financial technology, and healthcare. Its core goal is to achieve high-quality audio reconstruction at low bit rates. However, existing audio codec methods still have many limitations in terms of high sampling rates, low bit rates, and adaptability to multiple scenarios, which affects the storage, transmission, and practical application of audio signals.

[0003] In the healthcare sector, audio signals are widely used in telemedicine, heart and lung sound analysis, speech diagnosis, and other fields. Medical audio signals typically contain rich high-frequency details, such as subtle abnormal changes in heart and lung sounds, which are crucial for disease detection. However, existing audio codec methods struggle to preserve these details when compressed at low bit rates, which can affect the accuracy of disease detection. In addition, medical devices typically use embedded systems for audio acquisition and processing. Limited by computing resources and power consumption requirements, existing neural network-based audio codec methods have high computational complexity and are difficult to directly apply to these devices, impacting their application in medical scenarios. At the same time, medical audio data requires extremely high privacy. Efficient storage and transmission of audio require a balance between data integrity and security. Existing methods struggle to meet privacy protection requirements while ensuring compression efficiency, potentially leading to the leakage of sensitive medical information.

[0004] In the FinTech sector, application scenarios such as intelligent voice customer service, voice analysis, and financial conference recording place higher demands on audio codec technology. Feature loss in low-bitrate speech coding often affects the accuracy of speech recognition and speech synthesis, reducing the interactive experience of financial services. Furthermore, financial data processing typically involves large-scale audio streams. Existing deep learning-based audio codec methods have high computational overhead and are unable to meet the real-time audio processing requirements of tasks such as real-time transaction monitoring and fraud detection. Furthermore, the voice application environment of financial services is complex, involving multiple scenarios such as telephone banking, remote customer service, and conference voice recording. Background noise interference and adaptability issues for different languages ​​limit the stability of existing audio codec methods, making it difficult to meet the financial industry's demand for high-precision speech analysis.

[0005] In the field of modern communications and multimedia, the current mainstream audio codec standards (such as MP3, AAC, Opus, etc.) mainly rely on discrete cosine transform (DCT) or discrete Fourier transform (DFT) for frequency domain analysis. These methods can provide good sound quality at medium bit rates, but their reconstruction capabilities are limited in high sampling rate scenarios. It is difficult to retain complete spectral information under low bit rate conditions, especially in the high frequency part, where information loss is prone to occur, resulting in a decrease in sound quality. In addition, low-bit rate compression often causes serious sound quality degradation, such as artifacts, metallic sounds, blurriness, and transient distortion, which greatly reduces the listening experience. At the same time, existing audio codec methods have poor adaptability between different types of audio signals (such as speech, music, and ambient sound), and cannot maintain stable performance in complex audio scenarios, affecting the versatility of audio processing technology.

[0006] Existing audio codec technologies in healthcare, modern communications, and financial technology still face numerous challenges. These include the loss of sound quality in high sampling and low bitrate scenarios with traditional methods, the high computational complexity of neural network-based methods, the susceptibility to high-frequency information loss, the introduction of artifacts with low-bitrate compression, and stability and adaptability issues in various business scenarios. Therefore, there is an urgent need for an audio codec method that can efficiently compress and reconstruct high-quality audio signals at low bitrates, while also possessing low computational overhead, adaptability to multiple scenarios, and strong robustness to overcome the shortcomings of existing technologies. Summary of the Invention

[0007] The main purpose of the present invention is to provide an audio compression and reconstruction method, device, equipment and storage medium, aiming to solve the technical problems that existing audio coding and decoding technologies are difficult to balance spectral integrity, reconstruction quality and computational efficiency under low bit rate conditions, and have significant deficiencies in high-frequency detail loss and time domain distortion control.

[0008] To achieve the above object, the present invention provides an audio compression and reconstruction method, comprising:

[0009] Perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0010] Extracting key spectral information from the time-frequency domain features through a lightweight convolutional neural network;

[0011] Performing residual vector quantization processing on the key spectrum information to generate a compressed feature code;

[0012] Performing residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0013] Inputting the basic spectrum characteristics into the spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum characteristic;

[0014] Performing modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal;

[0015] Performing time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0016] The time domain residual compensation signal and the reconstructed time domain audio signal are superimposed to generate a target audio signal.

[0017] Furthermore, to achieve the above-mentioned object, the present invention provides an audio compression and reconstruction device, comprising:

[0018] The time-frequency transformation module is used to perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0019] A feature extraction module, configured to extract key spectrum information from the time-frequency domain features through a lightweight convolutional neural network;

[0020] A quantization coding module, configured to perform residual vector quantization processing on the key spectrum information to generate a compressed feature code;

[0021] A decoding and recovery module, configured to perform residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0022] A spectrum expansion module is used to input the basic spectrum characteristics into the spectrum expansion network to perform high-frequency component compensation processing to generate a complete spectrum characteristic;

[0023] A time-frequency reconstruction module, configured to perform a modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal;

[0024] A time domain error prediction module, configured to perform time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0025] The time domain fusion module is used to perform superposition processing on the time domain residual compensation signal and the reconstructed time domain audio signal to generate a target audio signal.

[0026] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer device, which includes a memory, a processor, and an audio compression and reconstruction program stored in the memory and runnable on the processor, and when the audio compression and reconstruction program is executed by the processor, the steps of the audio compression and reconstruction method described above are implemented.

[0027] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which an audio compression and reconstruction program is stored. When the audio compression and reconstruction program is executed by a processor, the steps of the audio compression and reconstruction method described above are implemented.

[0028] Beneficial effects: The present invention relates to the field of speech processing technology and can be applied to business system platforms such as medical health, financial technology and communications. It discloses an audio compression and reconstruction method, including: performing modified discrete cosine transform processing on the original audio signal to generate time-frequency domain features, using a lightweight convolutional neural network to extract key spectrum information, and performing residual vector quantization processing on the extracted key spectrum information to generate compressed feature coding; after restoring the basic spectrum features based on residual vector inverse quantization, a spectrum expansion network is used to compensate for the high-frequency components to obtain complete spectrum features; after the complete spectrum features are processed by modified inverse discrete cosine transform, the time domain audio signal is reconstructed, and the time domain error is predicted through a long short-term memory network to generate a time domain residual compensation signal; the time domain residual compensation signal is superimposed on the reconstructed time domain audio signal to obtain a target audio signal. The present invention combines residual vector quantization with deep learning modeling to achieve high-quality reconstruction of audio signals under low bit rate compression; optimizes feature extraction through lightweight convolutional neural networks to improve the retention of key spectral information; uses a spectrum expansion network to compensate for high-frequency components and enhance the spectral integrity of the reconstructed audio; combines long short-term memory networks for time domain error prediction to effectively reduce time domain distortion; the overall architecture reduces computational complexity, making the audio reconstruction quality under low bit rate conditions better than traditional methods, and is also suitable for high sampling rate audio and resource-constrained scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0030] Figure 1 A schematic diagram of an application environment of an audio compression and reconstruction method according to an embodiment of the present invention;

[0031] Figure 2 1. A flowchart of an audio compression and reconstruction method according to an embodiment of the present invention;

[0032] Figure 3 Schematic diagram of the functional modules of a preferred embodiment of the audio compression and reconstruction device of the present invention;

[0033] Figure 4 A schematic diagram of the structure of a computer device according to an embodiment of the present invention;

[0034] Figure 5 FIG. 2 is another structural diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0036] The audio compression and reconstruction method provided by the embodiment of the present invention can be applied in Figure 1 In an application environment, the user end communicates with the server end through a network. The server end can perform modified discrete cosine transform processing on the original audio signal through the user end to generate time-frequency domain features, use a lightweight convolutional neural network to extract key spectrum information, and perform residual vector quantization processing on the extracted key spectrum information to generate compressed feature coding; after restoring the basic spectrum features based on residual vector inverse quantization, a spectrum expansion network is used to compensate for high-frequency components to obtain complete spectrum features; after the complete spectrum features are processed by modified inverse discrete cosine transform, the time domain audio signal is reconstructed, and the time domain error is predicted through a long short-term memory network to generate a time domain residual compensation signal; the time domain residual compensation signal is superimposed on the reconstructed time domain audio signal to obtain the target audio signal. The present invention achieves high-quality reconstruction of audio signals under low bit rate compression by combining residual vector quantization with deep learning modeling; optimizes feature extraction through lightweight convolutional neural networks to improve the retention of key spectral information; uses a spectrum expansion network to compensate for high-frequency components to enhance the spectral integrity of the reconstructed audio; combines long and short-term memory networks for time domain error prediction to effectively reduce time domain distortion; the overall architecture reduces computational complexity, making the audio reconstruction quality under low bit rate conditions better than traditional methods, and is also suitable for high sampling rate audio and resource-constrained scenarios. Among them, the user end can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server end can be implemented with an independent server or a server cluster consisting of multiple servers. The present invention is described in detail below through specific embodiments.

[0037] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of the audio compression and reconstruction method provided by the present invention. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0038] like Figure 2 As shown, the audio compression and reconstruction method proposed in the present invention includes the following steps:

[0039] S10, performing modified discrete cosine transform processing on the original audio signal to generate time-frequency domain features;

[0040] In this embodiment, the audio signal is a continuous waveform data that changes over time and is widely used in many fields such as voice communication, music processing, biosignal analysis, and financial technology applications. The original audio signal can be audio data that has not been transformed or compressed and can come from various acquisition devices, such as microphones, ultrasonic sensors, electroencephalogram (EEG) acquisition devices, financial voice transaction recording systems, etc. These signals are usually stored in analog or digital form and may contain interference factors such as environmental noise and nonlinear distortion. In audio processing and analysis tasks, directly processing the original signal is usually computationally complex and difficult to effectively extract information. Therefore, it is necessary to convert it into a time-frequency domain representation that is more suitable for analysis.

[0041] To achieve more efficient information representation and compressed storage, it is often necessary to convert the original audio signal into a frequency domain representation to extract the characteristic information of different frequency components. The Modified Discrete Cosine Transform (MDCT) is a time-frequency transform technology widely used in audio signal processing. It can reduce blocking artifacts through an overlap-add (OLA) mechanism while providing high spectral resolution, making the signal's frequency information clearer. The design of the MDCT makes it valuable in a variety of scenarios, including speech encoding and decoding, high-quality music compression, and medical audio data analysis.

[0042] The basic principle of the MDCT transform is to divide the input signal into overlapping time segments. Each segment is windowed and then subjected to a discrete cosine transform to obtain the corresponding spectral characteristics. The windowing operation is crucial to the effectiveness of the transform. Common window functions include KBD windows and sine windows. Different window functions behave differently in the time-frequency domain. For example, the KBD window has good time-frequency localization characteristics and is widely used in high-fidelity audio processing, while the sine window is adopted in low-bitrate speech coding due to its energy smoothing properties. In addition, an adaptive window function switching mechanism can be used to dynamically adjust the window function selection to improve compression efficiency and signal reconstruction quality.

[0043] The time-frequency domain features of the MDCT transform are important representations of audio signals, providing a sound data foundation for subsequent compression, noise reduction, feature extraction, and other tasks. Because the MDCT effectively concentrates signal energy, allowing key information to be represented with fewer coefficients, it is particularly important in low-bitrate audio coding scenarios. For example, in speech coding, the MDCT improves clarity and intelligibility, while in music coding, it preserves musical details and reduces distortion.

[0044] In different application environments, the implementation of MDCT can be optimized according to computing resources and audio processing requirements.

[0045] In high-performance computing environments, longer frame lengths (such as 2048 points) can be used to improve spectral resolution and better preserve low-frequency details. This approach is suitable for high-quality audio coding, such as lossless compression or high-fidelity music coding. In low-power or real-time processing environments, shorter frame lengths (such as 512 points or 256 points) can be selected to reduce computational complexity and improve computational efficiency. This approach is suitable for scenarios such as speech coding and mobile device audio processing. In addition, an adaptive frame length adjustment mechanism can be used to dynamically select the frame length based on the content of the audio signal to optimize the transformation effect. For example, in a low-noise environment, a longer frame length can be used to enhance frequency resolution, while in a high-noise environment, a shorter frame length can be used to improve time resolution and reduce the impact of noise.

[0046] The MDCT calculation process can be optimized in conjunction with the Fast Fourier Transform (FFT) to reduce computational complexity and improve transform efficiency. For example, the MDCT can be decomposed into two complementary DCT-II transforms, allowing efficient computation using existing FFT libraries. DCT-II (Discrete Cosine Transform Type II) is a mathematical transform commonly used in signal processing, audio compression, and image compression. It is a type of discrete cosine transform (DCT) and is particularly well-suited for energy-intensive data representation. This means it can convert a time-domain signal into a frequency-domain signal, concentrating the majority of the signal's energy in a relatively small number of transform coefficients, thereby improving data compression efficiency. The core concept of the DCT-II transform is to leverage the symmetry of the cosine function to decompose the input signal into cosine components of different frequencies, thereby achieving efficient spectral representation. Because the DCT-II transform effectively removes signal correlation, allowing the transformed signal to be represented using less data, it is widely used in audio, image, and video compression algorithms, such as those in MP3, AAC, and JPEG.

[0047] During the MDCT (Modified Discrete Cosine Transform) calculation process, two complementary DCT-II transforms are typically used to decompose the signal, enabling lossless conversion between the time and frequency domains. These two complementary transforms are calculated for even-indexed and odd-indexed data points, respectively, to ensure symmetry and perfect reconstruction. For example, in audio coding, the input signal is segmented into overlapping time segments, each of which is transformed using a DCT-II transform to obtain spectral coefficients, which are then reconstructed using complementary DCT-II transforms, thereby reducing blocking artifacts and improving audio quality.

[0048] In addition, to ensure the stability of the transformation, preprocessing can be performed before the signal enters the MDCT processing, such as applying dynamic range control (DRC) to signals with a large dynamic range to prevent calculation overflow due to excessive amplitude, or performing gain adjustment on low-amplitude signals to improve quantization accuracy.

[0049] Example description:

[0050] In the healthcare sector, the time-frequency domain analysis capabilities of the MDCT transform have important applications in scenarios such as biosignal processing, hearing aid device optimization, and medical audio analysis. For example, in a heart sound analysis system, MDCT can be used to extract the time-frequency characteristics of heart sounds to detect arrhythmias or heart murmurs, thereby improving the diagnostic accuracy of cardiovascular disease. In hearing aids, the MDCT transform can be used to extract features from input speech signals, making subsequent noise reduction and speech enhancement processing more accurate and improving the effectiveness of hearing aids. In the field of electroencephalogram (EEG) signal analysis, the time-frequency characteristics of the MDCT can be combined to perform multi-scale decomposition of EEG signals to analyze neural activity patterns and improve the accuracy of medical applications such as cognitive impairment and epilepsy detection.

[0051] In the FinTech sector, audio data processing plays a vital role in scenarios such as intelligent customer service, speech recognition, and identity authentication. For example, in intelligent voice interaction systems, the MDCT transform can be used to convert speech signals into time-frequency features to optimize the input of speech recognition models and improve speech recognition accuracy. In identity authentication systems, the MDCT's time-frequency conversion capabilities can be leveraged to extract user voiceprint features, enabling more accurate voice identification and enhancing security and robustness. In financial market monitoring, the MDCT transform can be combined with market speech data analysis to extract key speech events, improving the efficiency of market analysis and risk assessment.

[0052] The MDCT transform converts the original audio signal into time-frequency domain features, allowing the audio signal to be more effectively represented at different frequency components while ensuring the reversibility of the signal. Compared to traditional time-domain compression methods, the time-frequency domain features after MDCT transform have higher energy concentration, allowing the main audio information to be represented with less data, thereby improving the compression ratio while maintaining high sound quality. By properly selecting the frame length and window function, the spectrum representation can be optimized while ensuring computational efficiency, so that even under low bit rate compression conditions, high-quality audio reconstruction can still be obtained. In addition, the overlap-addition characteristics of MDCT give the time-frequency conversion better energy distribution characteristics, which can effectively reduce quantization noise and blocking effects, improve the smoothness of the audio, and thus enhance the overall sound quality.

[0053] S20, extracting key spectrum information from the time-frequency domain features through a lightweight convolutional neural network;

[0054] In this embodiment, after the audio signal undergoes time-frequency transformation, time-frequency domain features are obtained. These features describe the spectral distribution of the audio signal along the time axis. To extract the critical spectral information that determines sound quality, a lightweight convolutional neural network is used to process these time-frequency domain features. This reduces the interference of redundant information and computational complexity, making the compression and reconstruction process more efficient.

[0055] Time-frequency domain features refer to the representation of an audio signal after it has been converted to the frequency domain using a transformation method (such as the modified discrete cosine transform (MDCT)). These features contain information about the spectral amplitude at different time slices, which helps analyze the audio's composition. Different audio types, such as speech, music, and ambient sound, have different representations in the time-frequency domain. Therefore, during the compression process, it is important to focus on the features that have the greatest impact on sound quality.

[0056] Key spectral information refers to spectral regions with significant energy distribution in the frequency domain that play a major role in audio quality. For speech, this primarily includes formant frequencies and voiced components; for music, it includes the fundamental frequency and its harmonic structure. Because some spectral components of an audio signal have little impact on perceived quality, automatic learning methods can be used to filter key spectral information and remove those components that contribute less to sound quality, thereby improving the compression ratio while maintaining the quality of the restored audio.

[0057] A lightweight convolutional neural network (CNN) is an optimized convolutional neural network architecture designed to reduce computational complexity and storage requirements while maintaining strong feature extraction capabilities. Traditional convolutional neural networks (CNNs) struggle to process high-dimensional audio data due to their large number of parameters and high computational overhead, making them difficult to run efficiently on low-power devices or in real-time applications. Therefore, lightweight convolutional neural networks achieve a good balance between computational effort and accuracy through specific design optimizations.

[0058] Lightweight convolutional neural networks mainly include the following optimization methods:

[0059] Depthwise Separable Convolution is a convolution method that reduces computational complexity. It consists of two steps: depthwise convolution and pointwise convolution. Depthwise convolution performs convolution operations independently on each input channel, while pointwise convolution uses $1\times 1$ convolution for cross-channel fusion, reducing the amount of computation and the number of parameters compared to standard convolution.

[0060] Grouped convolution divides the input channels into multiple groups and performs convolution operations within each group. This method reduces the number of parameters and computational complexity while improving computational parallelism. It is used in network structures such as ResNeXt.

[0061] Pruning is a method of removing redundant parameters by analyzing the weight distribution in the network and deleting neurons or connections with lower importance, thereby reducing the amount of computation while maintaining model performance as much as possible.

[0062] Quantization reduces the numerical precision of weights and activations (for example, from 32-bit floating point numbers to 8-bit integers), reducing storage usage and accelerating inference computations. This quantized network can run efficiently on low-power devices, making it suitable for embedded systems and mobile devices.

[0063] Mobile Network Architecture (MNA): Lightweight network architectures, such as the MobileNet series (MobileNetV1 / V2 / V3) and ShuffleNet, are specifically designed for resource-constrained devices and are widely used in tasks such as speech recognition and image processing. These architectures combine technologies such as separable convolution, grouped convolution, and attention mechanisms to make models more efficient.

[0064] When processing time-frequency domain features, lightweight convolutional neural networks can use separable convolution for feature extraction, reducing the number of parameters and improving computational efficiency. First, deep convolution is performed on the input time-frequency domain features to extract local information on the time and frequency axes. Then, global information is fused through point-by-point convolution, preserving key spectral information. During the convolution process, attention mechanisms can be used to further optimize feature extraction, such as the SE (Squeeze-and-Excitation) mechanism based on channel attention or the frequency-domain attention mechanism based on the frequency dimension, to enhance the ability to select key spectral information.

[0065] Furthermore, before extracting key spectral information, a lightweight convolutional neural network can be pre-trained to optimize the network's parameters, enabling it to effectively extract key spectral information from time-frequency domain features while ensuring audio reconstruction quality. The training process involves multiple steps, including dataset construction, loss function calculation, and optimization strategy. The selection and design of each step directly impacts the network's ultimate performance.

[0066] First, a training dataset containing multiple types of audio is needed. The quality of the training data determines the generalization ability of the model, so it is necessary to include different types of audio data, such as speech, music, and environmental sounds. Speech data can cover audio from different languages, accents, and speakers to ensure the stability of the model on speech signals. Music data involves audio of different styles, such as classical, pop, and electronic music, to improve the model's adaptability to complex audio signals. Environmental sound data includes natural sounds, traffic noise, industrial noise, etc., to ensure that the model can operate stably in different scenarios. To further enhance the adaptability of the training data, the audio data can be preprocessed, such as denoising, time stretching, loudness normalization, and other operations to improve the robustness of the model.

[0067] Secondly, the design of the loss function during training is crucial, as it determines the goal of model optimization. During training, the model continuously adjusts parameters to minimize the gap between the reconstructed audio and the original audio. To quantify this gap, a loss function needs to be calculated. First, the Mel-Frequency Cepstral Coefficients (MFCC) loss is used to measure the difference in spectral features between the reconstructed and original audio. MFCC is an audio representation method based on the human auditory characteristics, with high resolution for low frequencies and low resolution for high frequencies, making the model more consistent with human auditory perception during the optimization process. During training, the MFCC features of the reconstructed and original audio are calculated, and the difference between the two is calculated using the mean squared error (MSE) or L1 norm as the first loss term to optimize the spectral structure of the audio and reduce sound quality distortion.

[0068] Next, an adversarial loss term is introduced to improve the naturalness of audio reconstruction. Since optimizing only the MFCC loss may cause the audio signal to be too smooth and lack naturalness, it is necessary to use the generative adversarial network (GAN) method to use the discriminant network to evaluate the quality of the reconstructed audio during the training process. The role of the discriminant network is to determine whether the input audio is real original audio or audio reconstructed by the neural network, while the generative network continuously adjusts its own parameters to make it more difficult for the discriminant network to identify the reconstructed audio as "synthetic", thereby improving the naturalness of the audio. During the training process, the discriminant network and the generative network are alternately optimized, making the reconstructed audio not only mathematically closer to the original audio, but also more realistic in sound.

[0069] Then, a weighted summation of the different loss terms is performed to ensure a balance between the different optimization objectives. During training, optimizing a single loss term alone may bias the model's performance in one direction. For example, optimizing only the MFCC loss may overlook the naturalness of the audio, while optimizing only the adversarial loss may result in spectral distortion. Therefore, during training, a weighted summation of multiple loss terms is required to form a comprehensive loss function.

[0070] Finally, a gradient descent optimization strategy is used to continuously update the model parameters until training converges. During training, the backpropagation algorithm is used to calculate the gradient, and an optimization algorithm (such as Adam, RMSprop, or SGD) is used to adjust the neural network weight parameters to continuously reduce the loss function. The training process continues until the loss function converges or the set number of training rounds is reached.

[0071] By processing the time-frequency domain features through a lightweight convolutional neural network, the computational complexity can be effectively reduced, making the audio compression and reconstruction process more efficient while ensuring audio quality. While using separable convolution to reduce the amount of computation, a strong feature extraction capability is maintained, making the selection of key spectrum information more accurate. By introducing the attention mechanism, the focus on important spectral components is enhanced, so that the compressed audio signal can still maintain high fidelity after decoding. In addition, the lightweight design makes this method suitable for environments with limited computing resources such as mobile terminals and embedded devices, which increases the breadth of application. S30, performing residual vector quantization processing on the key spectrum information to generate compressed feature coding;

[0072] In this embodiment, audio signal compression requires minimizing data volume while maintaining high-quality audio reconstruction. Residual Vector Quantization (RVQ) is a method that can improve quantization efficiency and reduce coding loss. The core concept of RVQ is to decompose the high-dimensional signal to be quantized into multiple low-dimensional subvectors and quantize them step by step. Each quantization level reduces the residual error of the previous level, thereby improving overall quantization accuracy.

[0073] First, the key spectrum information needs to be divided into sub-vectors. Key spectrum information is an important audio feature extracted from the time-frequency domain features, and usually exists in the form of a high-dimensional vector. Directly quantizing high-dimensional vectors is prone to information loss, so it is necessary to first divide it into multiple low-dimensional sub-vectors. For example, the key spectrum information can be divided into several sub-band vectors of equal length according to the frequency dimension, and each sub-band vector corresponds to a fixed frequency range, thereby ensuring that the spectral structure of the audio signal is not destroyed during quantization. For different types of audio signals, such as speech, music, or ambient sound, different division strategies can be adopted to adapt to the different characteristics of various audio signals.

[0074] After the sub-vector division is completed, multi-level residual vector quantization needs to be performed. The quantization process is usually divided into multiple levels, and each level uses an independent vector quantizer to encode the residual information. In the first level quantization, the original sub-vector is directly quantized, and the closest quantization codebook vector is selected to obtain the first level quantization index. At the same time, the quantization error is calculated, that is, the difference between the original sub-vector and the quantization codebook vector. Next, the second level quantizer further quantizes this quantization error, and the process is repeated until the energy of the residual is lower than the preset threshold or the maximum number of quantization levels is reached. This ensures that each level of quantization can minimize the error while avoiding excessive information loss at low bit rates.

[0075] During each quantization layer, the norm of the subvectors must be calculated and a threshold judgment performed. Norm calculation is used to measure the magnitude of the current quantization error. Common methods include the L2 norm (Euclidean norm), which calculates the square root of the sum of the squares of all elements of the subvector. If the residual norm after a certain level of quantization is below the preset threshold, the quantization error is sufficiently small, and the subsequent quantization process can be terminated, directly outputting the currently quantized index information. If the residual error remains large, quantization continues at the next level until the termination condition is met.

[0076] After quantizing all subvectors, all quantization indices need to be entropy-encoded to further compress the data. Entropy coding is a lossless data compression method that adjusts the code length based on the frequency of the quantization index, assigning shorter codes to frequently occurring indices and longer codes to less frequently occurring indices, thereby improving coding efficiency. Common entropy coding methods include Huffman coding and arithmetic coding, which can significantly reduce the number of bits required to encode the final compressed feature, improving coding efficiency.

[0077] Example description:

[0078] In the healthcare sector, accurate audio signal compression is crucial for telemedicine, medical data storage, and physiological signal monitoring. Residual vector quantization (RVQ) technology can be applied to compress a variety of medical audio data, such as electrocardiogram (ECG) audio, lung sounds, heart sounds, and electroencephalogram (EEG) audio. These physiological audio signals typically have long durations and rich spectral characteristics. However, data transmission bandwidth and storage resources may be limited when used for remote diagnosis, on mobile medical devices, or in the cloud. RVQ enables efficient compression of these signals without compromising the medical diagnostic information. For example, in lung sound analysis, high-frequency components often contain important features for diagnosing diseases such as asthma and chronic obstructive pulmonary disease (COPD). Using traditional audio compression algorithms can result in loss of high-frequency information, potentially affecting doctors' judgment. RVQ technology achieves low bitrate compression while precisely quantizing key spectral regions of lung sounds. This allows doctors to accurately identify abnormal audio signals when remotely reviewing or archiving patient lung sound data. In addition, in implantable medical devices (such as pacemakers and wearable health monitoring devices), due to limited computing and storage resources, the computational efficiency of residual vector quantization can reduce device power consumption, extend the service life of the device while ensuring high-quality data storage, and improve the reliability of real-time monitoring.

[0079] In the financial sector, efficient compression of voice data is a key component of the intelligent development of the financial industry. For example, the storage and transmission of audio data in applications such as bank customer service recordings, intelligent voice customer service, speech synthesis announcements, telephone transaction recordings, and financial meeting minutes all involve large-scale audio data processing. Since the financial industry requires long-term storage of large amounts of customer voice interaction data and may perform data analysis, sentiment recognition, and call monitoring, compression algorithms must not only reduce storage overhead but also maintain sufficient audio clarity to ensure that subsequent speech recognition and analysis are not compromised by excessive compression. Residual vector quantization (RVQ) technology, by layer-by-layer quantization of the error, preserves speech characteristics at extremely low bit rates, enabling financial institutions to efficiently transmit voice data in bandwidth-constrained environments (such as remote voice interaction and edge computing deployments). For example, in intelligent customer service systems, financial institutions can use this method to efficiently store user consultation recordings and ensure high-quality information for tasks such as sentiment analysis and keyword extraction. This allows intelligent customer service systems to accurately identify user emotions and improve the customer experience. In addition, in the archiving of telephone transaction recordings, this method can ensure that even when storage space is limited, long-term financial voice data can still be stored at a low bit rate, ensuring compliance requirements while improving data storage efficiency.

[0080] In high-quality music compression scenarios, residual vector quantization (RVQ) can effectively improve the fidelity of music files at low bit rates, allowing high-quality music to be transmitted in limited bandwidth environments. For example, in applications such as online music streaming, high-definition audio storage, music production and editing, and wireless Bluetooth audio transmission, traditional audio compression technologies such as MP3 and AAC tend to lose audio details at low bit rates, resulting in a decrease in the layering and spatial sense of the music. RVQ can more finely preserve the details of the music signal at low bit rates by gradually quantizing the error, especially in the high-frequency part. For example, in lossless music streaming applications, this method can be used to improve the quality of low-bitrate lossless compression, allowing users to enjoy a high-fidelity music experience even when network bandwidth is limited. In addition, in Bluetooth audio transmission, due to the bandwidth limitations of wireless transmission, audio coding schemes using RVQ can significantly reduce the amount of data and improve the stability of audio transmission, allowing devices such as Bluetooth headsets and smart speakers to still provide a high-quality audio playback experience in low-latency mode. In the field of music production and editing, this method can also be used to store and transmit high-resolution audio files, allowing music creators to achieve high-quality audio processing and mixing with lower data usage, thereby improving production efficiency.

[0081] Residual vector quantization (RVQ) effectively reduces information loss during audio compression, improving sound quality fidelity at low bit rates. Multi-level RVQ progressively reduces quantization error, preserving audio detail. Combined with entropy coding, RVQ can further reduce the encoding bit rate and improve storage and transmission efficiency. RVQ is particularly well-suited for compressing audio signals with a high dynamic range, enabling efficient compression encoding of various audio data types, including speech, music, and ambient sound.

[0082] S40, performing residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0083] In this embodiment, during the audio signal compression and reconstruction process, residual vector quantization (RVQ) provides a coding method that progressively approximates the original features, minimizing quantization error. The purpose of residual vector inverse quantization is to restore the compressed feature encoding during the decoding phase, making it as close as possible to the uncompressed original features. The key to this step is how to use the encoding index and codebook to restore the underlying spectral features, thereby ensuring the quality of the reconstructed audio.

[0084] Compressed feature codes are index data obtained during the residual vector quantization process. These indices record the codeword matching status of each subvector at different quantization levels. The core of residual vector inverse quantization lies in using these indices to search for the corresponding quantization codewords level by level, and then accumulating them to restore the original vector. Specifically, first, based on the index in the compressed feature code, the corresponding quantization vector is retrieved from the multi-level codebook in sequence. Because each codebook level stores the quantization residual of the previous level, the level-by-level addition effectively reduces the quantization error, thereby obtaining more accurate basic spectral features.

[0085] The basic spectral features are the core data representation for reconstructing audio signals. They contain the main spectral components of the audio signal and are an important input for subsequent high-frequency compensation and time-domain reconstruction. Since audio signals have different distribution characteristics in the time-frequency domain, the basic spectral features need to retain the temporal consistency and frequency distribution characteristics of the signal as much as possible. In order to ensure high-quality spectrum recovery, the process of inverse quantization of the residual vector can be combined with an adaptive codebook adjustment strategy, that is, different codebook structures are selected according to different audio content (such as speech, music, ambient sound, etc.) to optimize the decoding effect. For example, for vocal data, the resolution of low and mid-frequency frequencies can be enhanced, while for music data, the accuracy of the high-frequency part can be optimized to better restore the details of the instrument's timbre.

[0086] In addition, to avoid the cumulative errors generated during the dequantization process, mean adjustment or energy normalization strategies can be used to ensure that the restored basic spectral features match the original signal in terms of dynamic range and amplitude distribution. This not only improves audio quality but also effectively reduces the generation of artifacts, making the final generated audio signal more natural and smooth.

[0087] In specific implementations, various techniques can be employed to optimize residual vector inverse quantization. For example, the use of a fixed codebook in traditional residual vector inverse quantization results in uneven recovery for different audio data types. To overcome this issue, a dynamic codebook selection strategy can be employed. This strategy calculates the spectral distribution characteristics of the input audio during the encoding phase and selects the optimal codebook set based on the audio type during the decoding phase, thereby improving recovery quality.

[0088] Another optimization approach is to use deep learning-assisted vector dequantization technology. This involves using a neural network to learn the error distribution of different quantization levels and then using the neural network to correct the accumulated error during the decoding phase. For example, a long short-term memory network (LSTM) or a variational autoencoder (VAE) can be used to predict the error distribution after dequantization and compensate for it to obtain more accurate basic spectral characteristics.

[0089] In addition, in edge computing environments or low-power devices, low-complexity inverse quantization methods, such as index compression based on Huffman coding, can be used to reduce storage and computational overhead, so that residual vector inverse quantization can run efficiently in resource-constrained environments.

[0090] By gradually accumulating quantized residuals, the inevitable information loss during audio compression can be effectively reduced, making the basic spectral characteristics after decoding closer to the original audio data. This can provide higher reconstruction accuracy at the same bit rate, thereby improving audio quality. In addition, through optimization strategies such as dynamic codebook selection and adaptive error compensation, the recovery effect of different types of audio can be further improved, allowing low-bitrate encoding to still maintain high auditory quality. This not only improves coding efficiency, but also enhances the adaptability of audio in different application scenarios, making high-quality audio compression more efficient and reliable during storage, transmission, and processing.

[0091] S50, inputting the basic spectrum feature into a spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum feature;

[0092] In this embodiment, during the audio signal compression and reconstruction process, the fundamental spectral features primarily contain the low- and mid-frequency information of the audio signal. High-frequency components, however, are weaker in energy and more susceptible to compression, making them difficult to fully recover at low bit rates. Therefore, the core goal of high-frequency component compensation is to predict and generate the missing high-frequency components based on the existing fundamental spectral features, thereby restoring the complete audio spectrum and making the reconstructed audio perceptually closer to the original.

[0093] The spectrum expansion network is a deep learning-based model that can generate missing high-frequency information by learning the mapping relationship between low and high frequencies. The network's input is basic spectral features, and its output is complete spectral information, including predicted high-frequency components. This network typically uses a convolutional neural network (CNN) or a transformer network based on a self-attention mechanism to extract low-frequency features and uses deconvolution or bandwise interpolation techniques to generate the high-frequency components.

[0094] In the high-frequency compensation process, there are several key points:

[0095] Low-Frequency Feature Extraction: To more accurately predict high-frequency components, we first need to extract features from the underlying spectral features to capture their primary time-frequency structure. This is typically achieved through frequency-domain convolution, attention mechanisms, or specific feature pooling methods. For example, one- or two-dimensional convolution operations can be used to extract features across time or frequency, ensuring accurate high-frequency predictions.

[0096] High-frequency prediction generation: Utilizing a spectrum expansion network, high-frequency components are inferred from low-frequency features. Common approaches include frequency upsampling using deconvolution layers or gradually predicting high-frequency components using autoregressive models. Furthermore, strategies based on GANs (generative adversarial networks) can be used to enhance the realism of high-frequency predictions through adversarial losses.

[0097] Spectral Energy Alignment: There may be an energy imbalance between the base spectrum features and the generated high-frequency features, such as lower or higher energy in the high-frequency portion, resulting in an unnatural audio signal. Therefore, we calculate the energy mean of the base spectrum features and the high-frequency sub-band predicted features in the overlapping frequency bands, and use gain compensation techniques to adjust the predicted high-frequency components to more closely match the energy level of the original signal.

[0098] Spectral fusion: The compensated high-frequency components are combined with the basic spectral features to form a complete spectral representation. This can usually be achieved through a simple splicing operation or a frequency-domain weighted fusion method to ensure a smooth spectral transition at the splicing point and reduce splicing artifacts.

[0099] Furthermore, in audio signal processing, the definitions of low and high frequencies are typically based on the human hearing range and the spectral distribution of audio signals. The human ear can typically hear frequencies between 20 Hz and 20 kHz, while the spectrum of an audio signal can be categorized based on energy distribution, timbre characteristics, and application scenarios. The definitions of low and high frequencies may vary slightly across different applications, such as speech processing, music analysis, or ambient sound processing, but generally follow the following quantitative approach:

[0100] Low frequency (LF): Generally refers to the frequency components between 0Hz and 1kHz or 0Hz and 4kHz. This frequency range primarily carries the fundamental tone (fundamental frequency) and primary harmonics of the audio signal. For example, in a speech signal, the primary vowel energy is concentrated between 300Hz and 3kHz. In a music signal, the low frequency portion includes the fundamental tones of instruments like bass drums and bass.

[0101] Mid-frequency (MF): Typically defined between 1kHz and 5kHz, this frequency range contains both low-frequency and high-frequency information, often significantly impacting the clarity and brightness of the sound. While this spectrum expansion technique primarily focuses on mapping low-frequency to high-frequency components, the mid-frequency portion can also be used to predict high-frequency components.

[0102] High Frequency (HF): Generally refers to frequency components above 5kHz. In music and speech signals, high frequencies often contain important information such as overtones, airiness, and environmental reverberation. The absence of high-frequency information often causes the audio to lose detail, become fuzzy, or become "muffled" and unclear. For example, in speech signals, high frequencies significantly impact the clarity of consonants (such as / s / , / t / , and / f / ), while in music signals, high frequencies determine the overall brightness of the timbre.

[0103] In digital audio processing, distinguishing between low and high frequencies isn't just based on a fixed frequency range; it also involves specific calculations. For example, spectral energy distribution analysis, filter decomposition, and spectral statistical features can be used to quantify the energy distribution and impact of audio signals in different frequency bands. The following are several common calculation methods, illustrated with practical application examples.

[0104] Based on energy distribution: In audio signal processing, the Short-Time Fourier Transform (STFT) or Mel-Spectrogram is often used to analyze the spectral energy distribution of audio signals. By calculating the Power Spectral Density (PSD) over specific frequency bands, the energy distribution of an audio signal across different frequency ranges can be quantified. For example, in speech signal processing, vowels (such as / a / , / o / , / e / ) typically have higher energy density in the low-frequency range (300Hz to 1kHz), while consonants (such as / s / , / t / , / f / ) have their energy primarily concentrated in the high-frequency range (above 4kHz). In music signal processing, the sound of a bass guitar and drums is primarily concentrated in the low-frequency range (20Hz to 250Hz), while the sound of a violin or soprano saxophone has more high-frequency components (above 3kHz). When compressing low-bitrate audio, the energy in high-frequency regions is typically relatively low and therefore easily lost during the compression process, resulting in audio distortion or loss of clarity. Therefore, during audio reconstruction, high-frequency components require additional compensation to restore the audio details lost due to compression.

[0105] Filter-based decomposition: Filter decomposition is another common audio signal analysis method. Using a set of bandpass filters (such as a Mel filter bank or a wavelet transform filter bank), an audio signal can be decomposed into multiple frequency bands and the average energy in each band calculated. For example, in speech recognition systems, the Mel scale is widely used to divide the frequency range of audio signals because it aligns with the perceptual characteristics of the human ear. A Mel filter bank typically divides the speech signal from 0Hz to 8kHz into 20-40 equally spaced frequency bands, resulting in finer resolution in the low-frequency region and lower resolution in the high-frequency region. For example, in telephone voice transmission, due to bandwidth limitations, only the frequency range of 300Hz to 3.4kHz is typically transmitted. Using a Mel filter bank can effectively extract important speech features within this range. In music streaming services, audio encoders (such as AAC and Opus) use sub-band filters to decompose the signal into multiple sub-bands and adaptively quantize them based on the energy level of each sub-band, thereby maintaining better sound quality at low bit rates.

[0106] Statistical feature extraction: In addition to energy distribution and filter decomposition, statistical feature extraction methods can also be used to quantify low-frequency and high-frequency components. For example, features such as the spectral centroid, spectral spread, and spectral slope can be calculated to analyze the energy concentration of the audio signal in different frequency ranges. For example, in ambient sound recognition applications, the spectral centroid of low-frequency ambient noise (such as wind and subway noise) is typically low, while the spectral centroid of high-frequency noise (such as sirens and breaking glass) is higher. If the spectral centroid of an audio segment remains at a low frequency (for example, below 1kHz) for a long period of time, it can be inferred that the audio segment is primarily composed of low-frequency noise, such as car engine noise or wind noise. If the spectral centroid is high (for example, above 3kHz), it may contain more high-frequency components, such as bird calls or percussion instruments. In music information retrieval (MIR) systems, the spectral centroid and spectral slope can be used to analyze musical style. For example, jazz music typically has a lower spectral tilt, while rock music typically has a higher spectral tilt because rock music typically contains more high-frequency components, such as the treble of an electric guitar.

[0107] By modeling low-frequency information and compensating for high-frequency components, this technology effectively restores audio signal details under low-bitrate compression conditions. Even in the presence of information loss, it can compensate for the missing high-frequency components through learning. The compensation method can be adaptively adjusted for different audio content, providing a more natural audio reconstruction effect. Furthermore, energy alignment technology prevents unnatural artifacts introduced during high-frequency compensation, ensuring that the final reconstructed audio signal retains the main characteristics of the original audio while avoiding the high-frequency loss caused by traditional compression algorithms.

[0108] S60, performing modified inverse discrete cosine transform processing on the complete spectrum feature to generate a reconstructed time-domain audio signal;

[0109] In this embodiment, audio signals are typically processed after being represented in the frequency domain for compression, enhancement, or transformation, with the ultimate goal of converting them back to the time domain to restore an auditory effect close to the original signal. The Inverse Modified Discrete Cosine Transform (IMDCT) is a common frequency-domain to time-domain conversion method widely used in audio codecs. This method is used to restore the complete spectral characteristics of the time-frequency domain processing to a time-domain signal, allowing it to be correctly played or further processed by audio equipment.

[0110] The core of the modified inverse discrete cosine transform (IDCT) lies in converting the complete spectral features back into the time domain. This complete spectral feature is obtained through a spectrum expansion network. It contains the basic spectral characteristics of the original audio as well as high-frequency information obtained through high-frequency component compensation. Therefore, when performing the IMDCT transform, it is necessary to consider how to ensure the time domain continuity of the converted signal to avoid blocking artifacts or discontinuities.

[0111] In its implementation, the IMDCT differs from the standard inverse discrete cosine transform (IDCT) in that it uses an overlap-add technique to ensure smooth transitions in the time domain. While the traditional IDCT typically maps individual transform blocks directly back into the time domain, the key feature of the IMDCT is that each transform block partially overlaps with adjacent blocks to form a seamless time domain signal. To achieve this, a special window function is used to weight each transform block, ensuring that the energy of adjacent blocks in the overlapping region remains consistent, avoiding splicing distortion.

[0112] Through IMDCT processing, the complete spectral characteristics can be converted back into a time-domain signal, and overlapping windowing techniques can be used to eliminate blocking effects, thereby improving the smoothness and listening quality of the audio signal. Because IMDCT maintains the high-frequency information compensated by the spectrum expansion network during the conversion process, compared to direct IDCT transformation methods, IMDCT can better restore audio details and improve the fidelity of sound quality. In addition, the combination of different window functions can further optimize the time-domain transition characteristics of the signal and reduce the distortion of transient signals. This can improve the overall listening quality, especially in music and language signal processing.

[0113] S70, performing time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0114] In this embodiment, after audio signals undergo compression, quantization, and spectral reconstruction, errors in the time domain may be introduced, resulting in artifacts, ringing, or loss of detail during the audio reconstruction process. To address this issue, a Long Short-Term Memory Network (LSTM) is used to perform time-domain error prediction on the reconstructed time-domain audio signal, thereby generating a time-domain residual compensation signal to correct the reconstructed signal and make it closer to the original audio signal.

[0115] LSTM is a special type of recurrent neural network (RNN), whose main feature is its ability to effectively capture long-term dependencies in time series. Compared to traditional RNNs, LSTM, by introducing forget gates, input gates, and output gates, can more stably learn long-term dependencies, making it a superior performer in audio signal modeling. During this processing, LSTM primarily analyzes the historical information of the reconstructed time-domain audio signal and, combined with the data of the current frame, predicts potential errors and generates corresponding compensation signals.

[0116] To achieve effective error prediction, the reconstructed time-domain audio signal must first be modeled using time series. Specifically, a time-series sliding window approach can be used to segment the audio signal into multiple time segments, each containing multiple consecutive sampling points. The size and step size of the sliding window need to be adjusted based on the application scenario. Larger windows help capture dependencies over longer timeframes, while smaller windows improve real-time performance.

[0117] After processing the time segments, they need to be input into the LSTM network for feature extraction. The LSTM gradually learns the audio signal's short-term dynamic characteristics and long-term trends, and stores historical information through a hidden state transfer mechanism, enabling the network to predict current time-domain errors based on past information. The key to this process lies in designing a suitable network structure. For example, a bidirectional LSTM (Bi-LSTM) can be used to enhance the model's temporal perception, thereby improving the accuracy of error prediction. Furthermore, convolutional layers (CNN-LSTM) can be combined to extract local patterns, enhancing the LSTM's ability to perceive short-term structures.

[0118] After error prediction is complete, the predicted error signal undergoes nonlinear activation and amplitude constraints to ensure the rationality of the compensation signal. Nonlinear activation can use functions such as sigmoid, tanh, or ReLU to keep the predicted error value within a reasonable range, while amplitude constraints prevent the compensation signal from being too large, affecting the overall balance of the audio. Ultimately, the optimized residual compensation signal is used to correct and reconstruct the time-domain audio signal, bringing it closer to the original audio and improving the fidelity of the sound quality.

[0119] By using LSTM to predict the error of the reconstructed time-domain audio signal and generate a residual compensation signal, distortion during audio reconstruction can be effectively reduced and audio quality improved. Because LSTM can capture long-term dependencies, it can more accurately predict the error trend of the audio signal along the time axis, allowing the compensation signal to more naturally correct audio distortion. Compared to traditional linear prediction compensation methods, LSTM can adaptively learn the error distribution and dynamically adjust the compensation strategy to ensure that the reconstructed audio is closer to the original signal. Furthermore, through nonlinear activation and amplitude constraints, artifacts caused by overcompensation can be avoided, resulting in smoother and more natural audio.

[0120] S80 , superimposing the time-domain residual compensation signal and the reconstructed time-domain audio signal to generate a target audio signal.

[0121] In this embodiment, even with efficient compression and restoration techniques, detail loss, time domain distortion, or spectral distortion may still occur during audio signal reconstruction. To further improve audio quality, the reconstructed time domain audio signal needs to be compensated to reduce artifacts and distortion and improve sound fidelity. To this end, a time domain residual compensation method is employed, whereby the time domain residual compensation signal is superimposed on the reconstructed time domain audio signal to generate a target audio signal that is closer to the original signal.

[0122] The time-domain residual compensation signal is generated during the error prediction phase. This signal represents the difference between the reconstructed signal and the true signal and provides the necessary correction information to make the final audio output more natural and smooth. In practical applications, the amplitude of the residual compensation signal is typically small, but it significantly improves audio quality. The superposition operation involves adding the residual compensation signal to the reconstructed signal at corresponding time points, ensuring that the value of each sampling point is appropriately adjusted to reduce artifacts or sudden changes in the audio signal.

[0123] During the superposition process, it is necessary to ensure that the time axes of the residual compensation signal and the reconstructed signal are aligned to ensure phase consistency and avoid additional distortion caused by time misalignment. To achieve this, the two signals can first be timestamp matched and phase aligned to ensure that their correspondence at the same time point is accurate. Timestamp matching can be based on short-time Fourier transform (STFT) or cross-correlation methods to estimate the time delay between the signals and perform the corresponding time alignment operations. Phase calibration is used to adjust the phase of the residual signal to synchronize it with the reconstructed signal in the time domain, preventing signal interference or weakening due to phase mismatch.

[0124] The initial fusion signal after superposition may have an amplitude that is too large or a dynamic range that exceeds the auditory comfort of the human ear. Therefore, limiting processing is required to ensure that the signal fluctuates within a reasonable range. In addition, since signal superposition may introduce high-frequency noise or short-term fluctuations, further smoothing filtering can eliminate unnecessary jitter and improve signal stability and auditory quality. The limiting operation can use nonlinear compression methods, such as soft threshold limiting (Soft Clipping), to ensure that the signal is within the maximum amplitude range without generating clipping distortion caused by hard truncation. Smoothing filtering can use low-pass filters, sliding mean filters, or adaptive filters to remove excessively sudden signal components to ensure the continuity and naturalness of the audio signal.

[0125] Example description:

[0126] In healthcare, the acquisition, storage, and analysis of audio signals are crucial for disease diagnosis, patient monitoring, and medical data management. For example, heart sound signals, breathing sounds, and electroencephalogram (EEG) audio data may contain information lost during the acquisition process due to environmental noise, equipment distortion, or bandwidth limitations. Modified discrete cosine transform (MDCT) processing of the raw audio signal converts time-domain information into frequency-domain features, enabling the storage and analysis of low- and high-frequency information in the signal in a more compact form. Furthermore, a lightweight convolutional neural network is used to extract key spectral information, making the key features in medical audio data more prominent. For example, in heart sound signal analysis, the key frequency bands of S1 (first heart sound) and S2 (second heart sound) can be extracted, improving doctors' ability to identify heart murmurs and abnormal signals.

[0127] To meet the needs of medical audio data compression and remote transmission, residual vector quantization (RVQ) of key spectral information can effectively reduce data storage and transmission overhead while preserving important medical information. For example, in a remote diagnosis system, doctors need to analyze heart sound data uploaded by patients. Traditional compression methods may cause loss of high-frequency information, affecting the diagnosis of heart disease. RVQ can adaptively allocate the bit rate to ensure that the core features of the heart sound data are preserved. At the decoding end, RV dequantization of the compressed feature code can restore the basic spectral features on the medical server or doctor's end, making the reconstructed medical audio closer to the original heart sound signal, thereby improving the accuracy of the diagnosis.

[0128] In medical speech recognition and medical record management systems, doctors' voice recordings may be unclear, lose some high-frequency information, or suffer from noise interference due to equipment or network interference. Inputting basic spectral features into a spectrum expansion network to compensate for high-frequency components can restore detailed information in the speech, making it easier for the speech recognition system to accurately transcribe the doctor's oral content and improving the efficiency of electronic medical record (EMR) input. For example, during medical imaging diagnosis, doctors may enter case information by voice. However, the recording equipment or data compression may cause some phoneme information to be lost, affecting the speech recognition results. Through high-frequency compensation, the integrity of the speech signal is improved, thereby optimizing the accuracy and efficiency of the medical record entry system.

[0129] In the FinTech sector, voice interaction is widely used in intelligent customer service, telephone banking, identity verification, and financial market analysis. Due to network constraints, financial voice data often requires compressed storage and transmission. Low bitrate encoding can affect voice quality, thereby reducing the accuracy of voice interaction. During the data decoding stage, a modified inverse discrete cosine transform (MDIT) is applied to the complete spectral features to restore the time domain signal from the frequency domain, making the reconstructed speech more natural. For example, in an intelligent voice customer service system, the customer's voice commands may suffer from a loss of voice clarity during the compressed transmission process, thereby reducing the recognition accuracy of the natural language understanding (NLU) system. Through this processing method, the customer service system can more accurately identify customer needs and improve the fluency of voice interaction.

[0130] For speech recognition and security verification applications in the financial sector, using a long short-term memory network to predict the time-domain error of reconstructed time-domain audio signals can effectively correct errors introduced during the encoding and decoding processes. For example, in a telephone transaction verification system, user voice commands need to be compressed and stored to support subsequent comparison and security authentication. However, traditional audio compression methods can result in the loss of timbre characteristics, reducing the accuracy of the voice matching system. By using a long short-term memory network to predict the time-domain error and generate a time-domain residual compensation signal, the decoded speech can be made closer to the original timbre, improving the accuracy of voice verification in financial transactions and reducing the risk of identity forgery.

[0131] By superimposing the time-domain residual compensation signal with the reconstructed time-domain audio signal, distortion during the audio reconstruction process can be effectively corrected, improving audio quality and listening experience. Because the residual compensation signal is generated based on error prediction, the correction information it provides can specifically compensate for the difference between the original signal and the reconstructed signal, making the final audio closer to the original recording. This allows for more precise compensation of lost signal components without introducing additional spectral distortion. Furthermore, through limiting and smoothing filtering, signal mutations caused by overcompensation can be avoided, making the audio signal more stable and natural, and enhancing the user's listening experience.

[0132] The present invention relates to the field of speech processing technology and can be applied to business system platforms such as medical health, financial technology and communications. It discloses an audio compression and reconstruction method, including: performing modified discrete cosine transform processing on the original audio signal to generate time-frequency domain features, using a lightweight convolutional neural network to extract key spectrum information, and performing residual vector quantization processing on the extracted key spectrum information to generate compressed feature coding; after restoring the basic spectrum features based on residual vector inverse quantization, using a spectrum expansion network to compensate for high-frequency components to obtain complete spectrum features; after the complete spectrum features are processed by modified inverse discrete cosine transform, the time domain audio signal is reconstructed, and the time domain error is predicted through a long short-term memory network to generate a time domain residual compensation signal; the time domain residual compensation signal is superimposed on the reconstructed time domain audio signal to obtain a target audio signal. The present invention combines residual vector quantization with deep learning modeling to achieve high-quality reconstruction of audio signals under low bit rate compression; optimizes feature extraction through lightweight convolutional neural networks to improve the retention of key spectral information; uses a spectrum expansion network to compensate for high-frequency components and enhance the spectral integrity of the reconstructed audio; combines long short-term memory networks for time domain error prediction to effectively reduce time domain distortion; the overall architecture reduces computational complexity, making the audio reconstruction quality under low bit rate conditions better than traditional methods, and is also suitable for high sampling rate audio and resource-constrained scenarios.

[0133] In one embodiment, the above step S20 includes:

[0134] S201, performing deep convolution processing on the time-frequency domain features through a lightweight convolutional neural network to generate a deep convolution feature map;

[0135] S202, performing point-by-point convolution processing on the depth convolution feature map to generate a point-by-point convolution feature map;

[0136] S203, performing attention weight analysis on the point-by-point convolution feature map in the frequency domain dimension to generate a frequency domain attention mask;

[0137] S204: Perform weighted fusion of the frequency domain attention mask and the point-by-point convolution feature map to generate the key spectrum information.

[0138] In this embodiment, in audio signal processing, a lightweight convolutional neural network can be used to extract key information from time-frequency domain features. This process involves multiple key technical steps, each of which processes data differently to improve the network's computational efficiency and recognition capabilities while reducing computing resource consumption.

[0139] Lightweight convolutional neural networks (LCNs) are neural network structures that have low computational complexity while still maintaining high feature extraction capabilities. Common LCNs include MobileNet, EfficientNet, and ShuffleNet. By reducing the number of parameters and computational effort, these networks are suitable for scenarios with limited computing resources, such as embedded devices, mobile applications, or real-time processing systems. In this task, LCNs are used to efficiently extract key spectral information from audio signals to ensure reconstruction quality even with low-bitrate audio compression.

[0140] Deep convolution processing refers to the use of depthwise separable convolution or standard convolution to perform local feature extraction on time-frequency domain data. Depthwise separable convolution decomposes traditional convolution operations through channel-by-channel convolution and point-by-point convolution, significantly reducing the amount of computation while preserving key information. In audio signal processing, deep convolution layers can capture local time and frequency correlations, such as formants in speech signals or characteristic frequencies in music signals.

[0141] Pointwise convolution is an operation performed after depthwise convolution and is used to fuse information across channels. Similar to channel mixing, pointwise convolution uses a 1×1 convolution kernel to establish correlations between features in different frequency bands. Pointwise convolution further reduces computational effort while enhancing interactions between different frequency components, helping to better extract global spectral features.

[0142] Frequency-domain attention weight analysis is primarily used to strengthen the network's focus on key spectral information. On the frequency axis, some frequency bands (such as the formant region of a speech signal or the main melody band of a music signal) contain more information than others. Therefore, an attention mechanism can be used to automatically assign weights to different frequency bands. Specific methods include channel attention (SE module) and spectral self-attention to improve the ability to capture important frequency bands.

[0143] Weighted fusion applies a frequency-domain attention mask to each point-by-point convolutional feature map to amplify the contribution of key information while suppressing noise or irrelevant frequency bands. This step ensures that the output key spectral information retains the most representative features, making subsequent audio reconstruction more accurate.

[0144] During implementation, different types of lightweight convolutional neural networks can be used for feature extraction. For example, MobileNetV3 can be used as the backbone network, which utilizes hard Sigmoid and h-swish activation functions to reduce computational effort while maintaining feature extraction capabilities. Alternatively, ShuffleNet can be selected to improve computational efficiency through channel shuffling. Furthermore, different attention mechanisms can be used, such as SE attention (Squeeze-and-Excitation Attention), which is suitable for enhancing key frequency bands in compressed environments, and Transformer frequency-domain attention, which is suitable for more complex audio scenarios.

[0145] For frequency-domain attention calculation, a power spectrum-based attention weighting approach can be used. This involves performing spectral analysis on the input point-by-point convolutional feature map and adaptively adjusting the attention weight based on the distribution of the power spectrum density. For example, in speech signal processing, the weight of the 300Hz-3400Hz frequency band can be increased to enhance speech clarity, while in music signal processing, the 100Hz-12kHz frequency band can be weighted to improve the preservation of melodic details.

[0146] When computing resources are limited, discrete convolution (Grouped Convolution) can be used instead of standard convolution to further reduce the amount of computation, and combined with quantization-aware training (QAT) to adapt the network to low-bitrate deployment environments, such as mobile devices or embedded systems.

[0147] This embodiment uses a lightweight convolutional neural network to extract key spectral information, reducing computational complexity while ensuring feature integrity. The combination of deep convolution and point-by-point convolution improves the ability to analyze time-frequency information while avoiding the computational redundancy of traditional full convolution methods. Attention weight analysis enables the network to focus on key information, thereby enhancing the perceptual quality of low-bitrate audio. The weighted fusion operation further improves the spectral accuracy of the signal, providing high-quality input features for subsequent audio compression and reconstruction.

[0148] In one embodiment, the above step S30 includes:

[0149] S301, dividing the key spectrum information into multiple sub-vectors;

[0150] S302, performing a first-level residual vector quantization process on each sub-vector, generating a first-level quantization index and determining a first-level residual vector;

[0151] S303, performing a second-level residual vector quantization process according to the first-level residual vector, generating a second-level quantization index and determining a second-level residual vector;

[0152] S304, determining a norm value of the second-level residual vector, and judging whether the norm value of the second-level residual vector is lower than a preset threshold;

[0153] S305: When the norm value of the second-level residual vector is lower than a preset threshold, use the first-level quantization index and the second-level quantization index as the final quantization index of the current sub-vector;

[0154] S306: When the norm value of the second-level residual vector is not less than a preset threshold, performing a third-level residual vector quantization process on the second-level residual vector to generate a third-level quantization index, and using the first-level quantization index, the second-level quantization index, and the third-level quantization index as the final quantization index of the current sub-vector;

[0155] S307 , performing entropy coding on the final quantized indexes of all sub-vectors to generate the compressed feature codes.

[0156] In this embodiment, in audio signal processing, to improve compression efficiency and reduce reconstruction errors, key spectral information needs to be quantized so that it can be stored and transmitted with fewer bits. Residual vector quantization is a hierarchical quantization method that gradually approximates the original signal through multi-level quantization, thereby maintaining high audio quality at low bit rates.

[0157] The key spectral information is first divided into multiple subvectors. This division can be fixed-length, dividing the entire spectral information into several equally spaced segments, or adaptive, dynamically adjusting the subvector boundaries based on changes in audio characteristics. For example, in speech signal processing, division can be based on the Mel scale to better align with human hearing, or in music signal processing, division can be based on harmonic structure.

[0158] After each sub-vector is divided, first-level residual vector quantization (RVQ) is performed. The first-level quantization performs preliminary encoding of the signal, generates first-level quantization indices, and calculates the quantization error, or the first-level residual vector. The residual vector represents the error between the original signal and the quantized signal, still containing unencoded details. Therefore, based on the first-level residual vector, second-level RVQ is performed to further reduce the error. The second-level quantization generates second-level quantization indices and calculates a new residual vector.

[0159] Before performing deeper quantization, it is necessary to determine whether the norm value of the current residual vector is small enough. The norm can be calculated using the L2 norm (Euclidean distance) or the L1 norm (absolute value sum) to measure the energy of the residual vector. When the norm value is lower than the preset threshold, it means that the residual error is small enough and the accuracy improvement brought by subsequent quantization is limited. Therefore, the first and second level quantization indexes can be directly used as the final quantization index. If the norm value is not lower than the threshold, it is necessary to further perform the third level residual vector quantization to finally generate the third level quantization index, and use it together with the first two levels of quantization indexes as the final quantization index.

[0160] After all sub-vectors are quantized, entropy coding is performed on these quantization indices to further improve compression efficiency. Entropy coding is a lossless compression method, such as Huffman Coding or Arithmetic Coding, that optimizes the amount of data stored and transmitted based on the statistical distribution characteristics of the quantization indices.

[0161] This embodiment uses multi-level residual vector quantization to effectively reduce the quantization error of the audio signal and improve encoding accuracy, thereby maintaining high reconstructed sound quality even at low bitrate compression. Furthermore, adaptive quantization adjusts the quantization accuracy based on the different frequency components of the signal, thereby better matching the human auditory characteristics and improving perceived quality. Furthermore, the introduction of entropy coding further reduces data storage and transmission overhead, making the compressed data more compact and suitable for storage-limited or bandwidth-constrained applications.

[0162] In one embodiment, the above step S50 includes:

[0163] S501, extracting low-frequency sub-band features from the basic spectrum features through frequency domain convolution processing;

[0164] S502, generating high-frequency sub-band prediction features through a deconvolution layer based on the low-frequency sub-band features;

[0165] S503, respectively determining energy means of the basic spectrum feature and the high frequency sub-band prediction feature in an overlapping frequency band between the basic spectrum feature and the high frequency sub-band prediction feature;

[0166] S504, performing gain compensation processing on the high frequency sub-band prediction feature according to a ratio of an energy mean of the basic spectrum feature in the overlapping frequency band to an energy mean of the high frequency sub-band prediction feature in the overlapping frequency band;

[0167] S505 , performing frequency domain splicing on the high frequency sub-band prediction feature after the gain compensation processing and the basic spectrum feature to generate the complete spectrum feature.

[0168] In this embodiment, during the audio signal processing process, in order to retain high-frequency information under low bit rate compression conditions, it is necessary to use spectrum expansion technology to compensate for the high-frequency components of the basic spectrum characteristics, so that more complete spectrum characteristics can be obtained during audio reconstruction, thereby improving sound quality and perceptual quality.

[0169] First, low-frequency subband features are extracted from the basic spectral features. This step uses frequency domain convolution processing to analyze the time-frequency structure of the low-frequency part. Frequency domain convolution is a convolution operation performed in the spectral space. Unlike time domain convolution, it can capture spectral patterns more effectively. In audio processing tasks, one-dimensional convolution (1D Convolution) or two-dimensional convolution (2D Convolution) is usually used to extract features of a specific frequency band. For example, 1D convolution is suitable for processing speech signals, while 2D convolution can more effectively capture the harmonic characteristics in music signals. In this step, the extraction method of low-frequency subband features can be adjusted according to different audio types. For example, in speech signal processing, the focus can be on the 300Hz-3kHz speech band, while in music signal processing, a wider low-frequency range can be used.

[0170] Next, based on the extracted low-frequency sub-band features, the high-frequency sub-band prediction features are generated through the deconvolution layer. Deconvolution is an operation used for upsampling, and its function is to expand the low-frequency information to the high-frequency region. Since the low-frequency part usually contains the main structural information of the audio signal, and the high-frequency part mainly contains detail information, the characteristics of the high-frequency signal can be inferred by learning the relationship between low and high frequencies. The deconvolution layer can use different kernel sizes and strides to control the accuracy of high-frequency prediction. For example, in audio processing with lower bit rates, a larger step size can be used to generate smoother high-frequency prediction features, while in audio processing with high bit rates, a smaller step size can be used to obtain more spectral details.

[0171] In order to ensure the energy consistency between the generated high-frequency sub-band prediction features and the original low-frequency information, it is necessary to calculate the energy mean of the basic spectrum features and the high-frequency sub-band prediction features in the overlapping frequency band. The overlapping frequency band refers to the frequency range shared by the basic spectrum features and the high-frequency prediction features. For example, in the bandwidth extension (BWE) technology, 6kHz-8kHz may be the highest boundary of the low-frequency part, while 8kHz-12kHz is the lowest boundary of the high-frequency prediction part. In this way, there is an overlapping spectrum region near 8kHz. When calculating the energy mean, the power spectral density (PSD) or short-time energy (STE) method can be used to more accurately measure the energy levels of different frequency bands.

[0172] After obtaining the energy mean of the overlapping frequency bands, it is necessary to calculate the ratio of the energy mean of the basic spectrum feature to the energy mean of the high-frequency sub-band prediction feature, and perform gain compensation on the high-frequency sub-band prediction feature accordingly. The purpose of this operation is to ensure that the energy distribution of the high-frequency prediction part and the low-frequency part in the overlapping area is consistent, so as to avoid sound quality distortion caused by prediction errors. For example, if the energy of the high-frequency prediction feature is lower than the energy of the basic spectrum, it needs to be amplified to ensure that the reconstructed high-frequency information is not too weak. Gain compensation can adopt the method of adaptive gain adjustment, that is, calculating different gain factors according to different frequency bands, rather than using a global fixed gain value, to achieve smoother spectrum matching.

[0173] Finally, the gain-compensated high-frequency subband prediction features are concatenated with the basic spectrum features in the frequency domain to generate a complete spectrum feature. Frequency domain concatenation can be performed using methods such as interpolation, concatenation filtering, or weighted fusion. For example, in speech coding applications, linear interpolation can be used to smooth the transition between low and high frequencies, while in high-fidelity audio processing, weighted fusion can be used to minimize auditory artifacts at the spectral concatenation point.

[0174] This embodiment can effectively expand the bandwidth of the audio signal by compensating the high-frequency components of the basic spectrum features, so that relatively complete spectrum information can be maintained under low bit rate compression, thereby improving the quality of audio reconstruction. The frequency domain convolution is used to extract low-frequency sub-band features, so that the low-frequency information can be better used to predict the high-frequency part, thereby improving the accuracy of high-frequency compensation. The high-frequency sub-band prediction features are generated by the deconvolution layer, so that the high-frequency part can obtain more reasonable compensation information through learning, thereby reducing the sound quality degradation caused by the lack of high frequency. The introduction of gain compensation ensures the energy consistency of the high-frequency prediction part and the low-frequency part in the overlapping frequency band, avoiding the problem of unnatural listening caused by energy mismatch. Finally, the high and low frequency information are fused through frequency domain splicing to ensure the smooth transition of the entire spectrum, thereby improving the subjective hearing quality and objective evaluation indicators after audio reconstruction.

[0175] In one embodiment, the above step S60 includes:

[0176] S601, processing the complete spectrum feature by a cosine window function that satisfies time domain symmetry and overlap-add constraints to generate a windowed time-frequency block;

[0177] S602, performing modified inverse discrete cosine transform processing on the windowed time-frequency block to generate a time-domain signal block;

[0178] S603, superimposing each time domain signal block with an adjacent previous time domain signal block and an adjacent next time domain signal block according to a preset overlap ratio to generate an initial reconstructed time domain signal;

[0179] S604: Perform phase compensation and boundary alignment processing on the initial reconstructed time domain signal to generate the reconstructed time domain audio signal.

[0180] In this embodiment, the time-frequency conversion of audio signals typically utilizes the modified discrete cosine transform (MDCT), a modified form of the discrete cosine transform (DCT) specifically designed for audio signal processing. Unlike the standard DCT, the MDCT enhances spectral resolution, reduces blocking artifacts, and improves transform energy concentration by introducing temporal overlap and an improved window function. During audio signal reconstruction, the inverse modified discrete cosine transform (IMDCT), the inverse of the MDCT, is performed to restore the spectral information to the time domain.

[0181] In IMDCT processing, a window function that adheres to time-domain symmetry and overlap-add (OLA) constraints must first be applied to the complete spectral features. This ensures that adjacent audio blocks can be joined together without distortion in the overlapping regions during the inverse transform. The window function adjusts the signal weights within the transform window, ensuring that adjacent blocks maintain consistent energy when joined, avoiding spectral leakage or fragmentation. Common window functions include Vorbis, Kaiser-Bessel-Derived (KBD), and sine windows. The choice of each window function affects the final reconstruction quality.

[0182] After windowing, the modified inverse discrete cosine transform (IMDCT) is performed to restore the spectral characteristics to the time domain signal block. The IMDCT uses a computational method based on the DCT-IV transform kernel to map the frequency domain data back to the time domain. Because the MDCT has temporal overlap, its inverse transform operation requires joint processing with previous and next frames to ensure phase consistency in the overlapping area.

[0183] To avoid discontinuities between blocks, each time-domain signal block is superimposed with the adjacent previous and subsequent blocks at a preset overlap ratio. The overlap ratio is typically set to 50% or 75% to ensure a smooth transition between blocks along the time axis. This superposition operation is based on OLA technology, which performs a weighted summation of the signals of adjacent blocks within the overlap region, ensuring that the energy of each signal block is evenly distributed throughout the entire signal sequence.

[0184] After superposition is complete, phase compensation and boundary alignment are still required to correct for phase shifts that may have been introduced during the transformation process. Phase compensation primarily corrects for phase shifts caused by windowing and quantization errors during the transformation and inverse transformation of the time domain signal. This is typically accomplished using minimum mean square error (MSE) optimization or coherence matching-based methods. Boundary alignment ensures smooth transitions between audio frames, preventing sound quality distortion caused by inter-frame discontinuities.

[0185] Finally, after IMDCT processing, time domain signal superposition, phase compensation and boundary alignment, the complete spectral features are successfully converted back into a reconstructed time domain audio signal, which can maximize the preservation of the original audio details and is suitable for subsequent playback, storage or further processing.

[0186] This embodiment uses a modified inverse discrete cosine transform for time-domain signal recovery, combined with windowing that adheres to time-domain symmetry and overlap-add constraints. This allows for highly accurate reconstruction of spectral information into the time-domain signal while ensuring smooth inter-block splicing. Time-domain signal superposition based on the OLA mechanism reduces blocking artifacts and improves audio quality. Phase compensation and boundary alignment techniques optimize time-domain signal continuity, minimizing the impact of spectral misalignment and phase shift on sound quality.

[0187] In one embodiment, the above step S70 includes:

[0188] S701, dividing the reconstructed time-domain audio signal into time segments using a time-series sliding window;

[0189] S702, inputting the time segment into a long short-term memory network, and extracting multi-scale context features from the time segment through the long short-term memory network;

[0190] S703, predicting a temporal error distribution through a hidden state transfer mechanism of the long short-term memory network based on the multi-scale contextual features;

[0191] S704: Perform nonlinear activation and amplitude constraint processing on the time domain error distribution to generate the time domain residual compensation signal.

[0192] In this example, the Long Short-Term Memory (LSTM) network is a neural network designed specifically for sequential data. It effectively captures long-range temporal dependencies and has broad applications in fields such as speech processing and audio signal modeling. Its core feature is the use of gating units (such as input gates, forget gates, and output gates) to control the storage and transmission of information, preventing vanishing and exploding gradients and enabling the network to learn long-term dependent time series features.

[0193] During audio reconstruction, the reconstructed time-domain audio signal must first be divided into time segments suitable for LSTM processing. A temporal sliding window approach is typically used, segmenting the signal into windows of fixed length (e.g., 256 samples) and setting a fixed frame shift (e.g., 128 samples) to ensure a certain overlap between adjacent windows and enhance temporal continuity. The sliding window maintains signal coherence along the time axis, ensuring that each time segment carries information from both the preceding and following moments, thereby improving the LSTM's ability to model temporal dependencies.

[0194] After inputting time segments into a long short-term memory (LSTM) network, the LSTM extracts multi-scale contextual features through its gating structure, modeling the temporal relationships of the signal at different time scales. This multi-scale feature extraction is based on the ability of the hidden state within the LSTM to accumulate short-term and long-term information at different levels. For example, in speech signal processing scenarios, low-level features may correspond to short-term speech components, while high-level features may reflect phoneme or word-level information over longer time frames. For audio signals, this means that the LSTM can learn short-term amplitude changes, long-term amplitude trends, and changes in energy distribution over larger time windows.

[0195] Based on the extracted multi-scale contextual features, the LSTM further leverages its hidden state transfer mechanism to predict the time-domain error distribution for the current time segment. The goal of error prediction is to calculate the residual between the original and reconstructed time-domain signals, representing the distortion introduced by quantization, conversion, and processing. During the LSTM computation process, the error distribution prediction is based on recursive updates of the hidden state. This allows the error estimate for each time segment to fully consider past and future information, ensuring that the predicted residual reflects global trends rather than just local differences.

[0196] After obtaining the error distribution, nonlinear activation and amplitude constraints are required to ensure the stability of the residual compensation signal. Nonlinear activation can use functions such as Sigmoid, ReLU, or Softsign to prevent extreme values ​​from affecting the compensation effect. The purpose of amplitude constraints is to limit the dynamic range of the compensation signal to avoid additional distortion caused by excessive compensation values. For example, a preset compensation range of [-1, 1] can be set to ensure that the residual compensation signal does not cause excessive amplification or clipping of the audio.

[0197] Ultimately, the residual compensation signal predicted by LSTM can be used to correct and reconstruct the time-domain audio signal, thereby improving audio quality, reducing auditory artifacts caused by quantization error, conversion distortion, etc., and improving the clarity and naturalness of the final audio output.

[0198] This embodiment uses LSTM to predict time-domain errors, fully leveraging the contextual information of the time series to accurately predict the residual portion of the reconstructed audio signal and reduce distortion introduced by processes such as conversion and compression. The sliding window segmentation method ensures the continuity of the time-domain signal, enabling smooth transitions in the prediction process along the time axis. The combination of nonlinear activation and amplitude constraints improves the stability of the residual compensation signal and avoids audio quality distortion caused by overcompensation.

[0199] In one embodiment, the above step S80 includes:

[0200] S801, performing timestamp matching and phase calibration on the time-domain residual compensation signal and the reconstructed time-domain audio signal to generate an aligned residual compensation signal;

[0201] S802, respectively determining an energy mean of the reconstructed time-domain audio signal and the aligned residual compensation signal during an overlapping period between the reconstructed time-domain audio signal and the aligned residual compensation signal;

[0202] S803: performing gain adjustment on the residual compensation signal according to a ratio of an energy mean of the reconstructed time-domain audio signal in the overlapping period to an energy mean of the aligned residual compensation signal in the overlapping period;

[0203] S804, performing sampling processing on the gain-adjusted residual compensation signal and the reconstructed time-domain audio signal at corresponding time points to generate a preliminary fusion signal;

[0204] S805 , performing amplitude limiting and smoothing filtering processing on the preliminary fusion signal to generate the target audio signal.

[0205] In this embodiment, the time-domain residual compensation signal is superimposed on the reconstructed time-domain audio signal to correct the audio signal in the time domain, making it closer to the original audio. Because the time-domain residual compensation signal is generated by the error prediction model, it must be aligned with the reconstructed time-domain audio signal on the time axis and phase-adjusted before superimposition to avoid phase shift or frequency distortion caused by signal asynchrony.

[0206] First, timestamp matching and phase calibration are performed to ensure that the residual compensation signal and the reconstructed signal are fully aligned on the time axis. In audio processing, different processing modules may introduce different delays, such as frame shifts caused by window functions and phase delays caused by filters. Therefore, the residual compensation signal needs to be timestamp matched to align with the timestamp of the reconstructed signal. In addition, because phase information has a significant impact on audio quality, especially in high-frequency parts, phase errors may cause waveform distortion. Therefore, it is necessary to analyze the phase offset through short-time Fourier transform (STFT) and perform phase compensation to ensure that the residual compensation signal is consistent with the phase of the reconstructed signal within each time segment.

[0207] After time alignment, the energy mean of the reconstructed time-domain audio signal and the aligned residual compensation signal during the overlapping period between them needs to be calculated. The overlapping period refers to the common portion of the time axis between the two signals. This portion requires energy analysis before fusion to ensure that the compensated signal maintains amplitude stability. The energy mean can be calculated using a short-term energy calculation method, which calculates the mean of the sum of squares of the sampling points within a specific time window to obtain the average energy level of the signal.

[0208] After obtaining the mean energy values, the ratio of the two can be calculated, and the gain of the residual compensation signal can be adjusted based on this ratio. The purpose of gain adjustment is to ensure that the energy of the residual compensation signal matches the reconstructed audio signal, avoiding over- or under-compensation. For example, if the mean energy of the residual signal is higher than that of the reconstructed signal, this may cause an abrupt enhancement of the audio signal, while if the mean energy of the residual signal is lower, this may result in insufficient compensation. Therefore, a dynamic normalization method can be used to scale the residual signal according to the energy ratio, so that its energy level during the overlapping period is consistent with that of the reconstructed signal.

[0209] After gain adjustment, the sample values ​​of the gain-adjusted residual compensation signal and the reconstructed time-domain audio signal are added at corresponding time points to generate a preliminary fusion signal. This sample value addition is a point-by-point operation, that is, the values ​​of each sampling point are linearly superimposed to ensure the continuity of the audio signal.

[0210] Finally, to improve the quality of the final signal, the preliminary fusion signal needs to be limited and smoothed. The purpose of limiting is to prevent the amplitude of the audio signal from exceeding the acceptable range and avoid clipping distortion. A limiting method based on dynamic range control, such as soft threshold limiting, can be used to ensure that the signal is not directly clipped when it exceeds the set maximum amplitude, but rather transitions smoothly. Smoothing filtering is used to remove high-frequency noise that may be introduced during the fusion process. Low-pass filtering or time-frequency transform-based smoothing can be used to make the final target audio signal closer to the natural characteristics of the original audio.

[0211] This embodiment uses timestamp matching and phase calibration to align the residual compensation signal with the reconstructed audio signal in time and phase, avoiding distortion caused by signal asynchrony. Gain adjustment is performed by calculating the energy mean ratio to ensure that the energy of the compensation signal matches the reconstructed signal, improving the stability of the audio signal. The compensation signals are fused through point-by-point addition to effectively correct residual errors in the audio signal. Limiting and smoothing filtering prevent clipping distortion caused by overcompensation and eliminate high-frequency noise, making the final target audio signal more natural and smooth.

[0212] In one embodiment, an audio compression and reconstruction device is provided, which corresponds one-to-one to the audio compression and reconstruction method in the above embodiment. Figure 3 , Figure 3 This is a schematic diagram of the functional modules of a preferred embodiment of the audio compression and reconstruction device of the present invention. It includes a time-frequency conversion module 10, a feature extraction module 20, a quantization and coding module 30, a decoding and recovery module 40, a spectrum expansion module 50, a time-frequency reconstruction module 60, a time-domain error prediction module 70, and a time-domain fusion module 80. Each functional module is described in detail below:

[0213] The time-frequency transformation module 10 is used to perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0214] A feature extraction module 20, configured to extract key spectrum information from the time-frequency domain features through a lightweight convolutional neural network;

[0215] The quantization coding module 30 is used to perform residual vector quantization processing on the key spectrum information to generate a compressed feature code;

[0216] The decoding and recovery module 40 is used to perform residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0217] The spectrum expansion module 50 is used to input the basic spectrum characteristics into the spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum characteristic;

[0218] A time-frequency reconstruction module 60 is configured to perform a modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal;

[0219] A time domain error prediction module 70 is configured to perform time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0220] The time domain fusion module 80 is configured to perform superposition processing on the time domain residual compensation signal and the reconstructed time domain audio signal to generate a target audio signal.

[0221] In one embodiment, the feature extraction module 20 is specifically configured to:

[0222] Performing deep convolution processing on the time-frequency domain features through a lightweight convolutional neural network to generate a deep convolution feature map;

[0223] Performing point-by-point convolution processing on the depth convolution feature map to generate a point-by-point convolution feature map;

[0224] Performing attention weight analysis on the point-by-point convolution feature map in the frequency domain dimension to generate a frequency domain attention mask;

[0225] The frequency domain attention mask is weightedly fused with the point-by-point convolution feature map to generate the key spectrum information.

[0226] In one embodiment, the quantization coding module 30 is specifically configured to:

[0227] Dividing the key spectrum information into a plurality of sub-vectors;

[0228] Performing a first-level residual vector quantization process on each sub-vector, generating a first-level quantization index and determining a first-level residual vector;

[0229] Performing a second-level residual vector quantization process according to the first-level residual vector to generate a second-level quantization index and determine a second-level residual vector;

[0230] Determining a norm value of the second-level residual vector, and determining whether the norm value of the second-level residual vector is lower than a preset threshold;

[0231] When the norm value of the second-level residual vector is lower than a preset threshold, using the first-level quantization index and the second-level quantization index as the final quantization index of the current sub-vector;

[0232] When the norm value of the second-level residual vector is not less than a preset threshold, performing a third-level residual vector quantization process on the second-level residual vector to generate a third-level quantization index, and using the first-level quantization index, the second-level quantization index, and the third-level quantization index as a final quantization index of the current subvector;

[0233] The final quantized indexes of all sub-vectors are entropy-encoded to generate the compressed feature codes.

[0234] In one embodiment, the spectrum expansion module 50 is specifically configured to:

[0235] Extracting low-frequency sub-band features from the basic spectrum features through frequency domain convolution processing;

[0236] Based on the low-frequency sub-band features, generating high-frequency sub-band prediction features through a deconvolution layer;

[0237] respectively determining energy means of the basic spectrum feature and the high frequency sub-band prediction feature in overlapping frequency bands between the basic spectrum feature and the high frequency sub-band prediction feature;

[0238] performing gain compensation processing on the high frequency sub-band prediction feature according to a ratio of an energy mean of the basic spectrum feature in the overlapping frequency band to an energy mean of the high frequency sub-band prediction feature in the overlapping frequency band;

[0239] The high-frequency sub-band prediction feature after the gain compensation process is spliced ​​with the basic spectrum feature in the frequency domain to generate the complete spectrum feature.

[0240] In one embodiment, the time-frequency reconstruction module 60 is specifically configured to:

[0241] Processing the complete spectrum features by a cosine window function that satisfies time domain symmetry and overlap-add constraints to generate a windowed time-frequency block;

[0242] Performing modified inverse discrete cosine transform processing on the windowed time-frequency block to generate a time-domain signal block;

[0243] Superimposing each time domain signal block with an adjacent previous time domain signal block and an adjacent next time domain signal block according to a preset overlap ratio to generate an initial reconstructed time domain signal;

[0244] Phase compensation and boundary alignment processing are performed on the initial reconstructed time domain signal to generate the reconstructed time domain audio signal.

[0245] In one embodiment, the time domain error prediction module 70 is specifically configured to:

[0246] Segmenting the reconstructed time-domain audio signal into time segments using a temporal sliding window;

[0247] Inputting the time segment into a long short-term memory network, and extracting multi-scale context features from the time segment through the long short-term memory network;

[0248] Based on the multi-scale contextual features, predicting the temporal error distribution through the hidden state transfer mechanism of the long short-term memory network;

[0249] Nonlinear activation and amplitude constraint processing are performed on the time domain error distribution to generate the time domain residual compensation signal.

[0250] In one embodiment, the time domain fusion module 80 is specifically configured to:

[0251] Performing timestamp matching and phase calibration on the time-domain residual compensation signal and the reconstructed time-domain audio signal to generate an aligned residual compensation signal;

[0252] respectively determining energy means of the reconstructed time-domain audio signal and the aligned residual compensation signal during overlapping periods between the reconstructed time-domain audio signal and the aligned residual compensation signal;

[0253] performing gain adjustment on the residual compensation signal according to a ratio of an energy mean of the reconstructed time-domain audio signal in the overlapping period to an energy mean of the aligned residual compensation signal in the overlapping period;

[0254] Performing sampling addition processing on the gain-adjusted residual compensation signal and the reconstructed time-domain audio signal at corresponding time points to generate a preliminary fusion signal;

[0255] The preliminary fusion signal is subjected to amplitude limiting and smoothing filtering to generate the target audio signal.

[0256] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external user terminal via a network connection. When the computer program is executed by the processor, it implements the functions or steps on the server side of an audio compression and reconstruction method.

[0257] In one embodiment, a computer device is provided. The computer device may be a user terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, memory, network interface, display screen and input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a user-side of an audio compression and reconstruction method.

[0258] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed:

[0259] Perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0260] Extracting key spectral information from the time-frequency domain features through a lightweight convolutional neural network;

[0261] Performing residual vector quantization processing on the key spectrum information to generate a compressed feature code;

[0262] Performing residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0263] Inputting the basic spectrum characteristics into the spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum characteristic;

[0264] Performing modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal;

[0265] Performing time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0266] The time domain residual compensation signal and the reconstructed time domain audio signal are superimposed to generate a target audio signal.

[0267] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0268] Perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0269] Extracting key spectral information from the time-frequency domain features through a lightweight convolutional neural network;

[0270] Performing residual vector quantization processing on the key spectrum information to generate a compressed feature code;

[0271] Performing residual vector dequantization processing on the compressed feature code to generate basic spectrum features;

[0272] Inputting the basic spectrum characteristics into the spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum characteristic;

[0273] Performing modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal;

[0274] Performing time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal;

[0275] The time domain residual compensation signal and the reconstructed time domain audio signal are superimposed to generate a target audio signal.

[0276] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can be found in the relevant descriptions of the server side and the user side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0277] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0278] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0279] It should be noted that if any software tools or components other than those of the Company appear in the embodiments of this application, they are merely for illustration and do not represent actual use. The above embodiments are intended only to illustrate the technical solutions of the present invention, not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some of the technical features therein with equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the scope of protection of the present invention.

Claims

1. An audio compression and reconstruction method, characterized in that: The following steps are involved: Perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features; Extracting key spectral information from the time-frequency domain features through a lightweight convolutional neural network; Performing residual vector quantization processing on the key spectrum information to generate a compressed feature code; Performing residual vector dequantization processing on the compressed feature code to generate basic spectrum features; Inputting the basic spectrum characteristics into the spectrum expansion network to perform high frequency component compensation processing to generate a complete spectrum characteristic; Performing modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal; Performing time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal; The time domain residual compensation signal and the reconstructed time domain audio signal are superimposed to generate a target audio signal.

2. The audio compression and reconstruction method according to claim 1, wherein: Extracting key spectral information from the time-frequency domain features through a lightweight convolutional neural network, including: Performing deep convolution processing on the time-frequency domain features through a lightweight convolutional neural network to generate a deep convolution feature map; Performing point-by-point convolution processing on the depth convolution feature map to generate a point-by-point convolution feature map; Performing attention weight analysis on the point-by-point convolution feature map in the frequency domain dimension to generate a frequency domain attention mask; The frequency domain attention mask is weightedly fused with the point-by-point convolution feature map to generate the key spectrum information.

3. The audio compression and reconstruction method according to claim 1, wherein: Performing residual vector quantization processing on the key spectrum information to generate a compressed feature code includes: Dividing the key spectrum information into a plurality of sub-vectors; Performing a first-level residual vector quantization process on each sub-vector, generating a first-level quantization index and determining a first-level residual vector; Performing a second-level residual vector quantization process according to the first-level residual vector to generate a second-level quantization index and determine a second-level residual vector; Determining a norm value of the second-level residual vector, and determining whether the norm value of the second-level residual vector is lower than a preset threshold; When the norm value of the second-level residual vector is lower than a preset threshold, using the first-level quantization index and the second-level quantization index as the final quantization index of the current sub-vector; When the norm value of the second-level residual vector is not less than a preset threshold, performing a third-level residual vector quantization process on the second-level residual vector to generate a third-level quantization index, and using the first-level quantization index, the second-level quantization index, and the third-level quantization index as a final quantization index of the current subvector; The final quantized indexes of all sub-vectors are entropy-encoded to generate the compressed feature codes.

4. The audio compression and reconstruction method according to claim 1, wherein: The basic spectrum characteristics are input into the spectrum expansion network to perform high frequency component compensation processing to generate complete spectrum characteristics, including: Extracting low-frequency sub-band features from the basic spectrum features through frequency domain convolution processing; Based on the low-frequency sub-band features, generating high-frequency sub-band prediction features through a deconvolution layer; respectively determining energy means of the basic spectrum feature and the high frequency sub-band prediction feature in overlapping frequency bands between the basic spectrum feature and the high frequency sub-band prediction feature; performing gain compensation processing on the high frequency sub-band prediction feature according to a ratio of an energy mean of the basic spectrum feature in the overlapping frequency band to an energy mean of the high frequency sub-band prediction feature in the overlapping frequency band; The high-frequency sub-band prediction feature after the gain compensation process is spliced ​​with the basic spectrum feature in the frequency domain to generate the complete spectrum feature.

5. The audio compression and reconstruction method according to claim 1, wherein: Performing modified inverse discrete cosine transform on the complete spectral features to generate a reconstructed time-domain audio signal, including: Processing the complete spectrum features by a cosine window function that satisfies time domain symmetry and overlap-add constraints to generate a windowed time-frequency block; Performing modified inverse discrete cosine transform processing on the windowed time-frequency block to generate a time-domain signal block; Superimposing each time domain signal block with an adjacent previous time domain signal block and an adjacent next time domain signal block according to a preset overlap ratio to generate an initial reconstructed time domain signal; Phase compensation and boundary alignment processing are performed on the initial reconstructed time domain signal to generate the reconstructed time domain audio signal.

6. The audio compression and reconstruction method according to claim 1, wherein: The reconstructed time domain audio signal is subjected to time domain error prediction processing by a long short-term memory network to generate a time domain residual compensation signal, including: Segmenting the reconstructed time-domain audio signal into time segments using a temporal sliding window; Inputting the time segment into a long short-term memory network, and extracting multi-scale context features from the time segment through the long short-term memory network; Based on the multi-scale contextual features, predicting the temporal error distribution through the hidden state transfer mechanism of the long short-term memory network; Nonlinear activation and amplitude constraint processing are performed on the time domain error distribution to generate the time domain residual compensation signal.

7. The audio compression and reconstruction method according to claim 1, wherein: The method of superimposing the time domain residual compensation signal and the reconstructed time domain audio signal to generate a target audio signal includes: Performing timestamp matching and phase calibration on the time-domain residual compensation signal and the reconstructed time-domain audio signal to generate an aligned residual compensation signal; respectively determining energy means of the reconstructed time-domain audio signal and the aligned residual compensation signal during overlapping periods between the reconstructed time-domain audio signal and the aligned residual compensation signal; performing gain adjustment on the residual compensation signal according to a ratio of an energy mean of the reconstructed time-domain audio signal in the overlapping period to an energy mean of the aligned residual compensation signal in the overlapping period; Performing sampling addition processing on the gain-adjusted residual compensation signal and the reconstructed time-domain audio signal at corresponding time points to generate a preliminary fusion signal; The preliminary fusion signal is subjected to amplitude limiting and smoothing filtering to generate the target audio signal.

8. An audio compression and reconstruction device, characterized in that: The audio compression and reconstruction device comprises: The time-frequency transformation module is used to perform modified discrete cosine transform on the original audio signal to generate time-frequency domain features; A feature extraction module, configured to extract key spectrum information from the time-frequency domain features through a lightweight convolutional neural network; A quantization coding module, configured to perform residual vector quantization processing on the key spectrum information to generate a compressed feature code; A decoding and recovery module, configured to perform residual vector dequantization processing on the compressed feature code to generate basic spectrum features; A spectrum expansion module is used to input the basic spectrum characteristics into the spectrum expansion network to perform high-frequency component compensation processing to generate a complete spectrum characteristic; A time-frequency reconstruction module, configured to perform a modified inverse discrete cosine transform on the complete frequency spectrum features to generate a reconstructed time-domain audio signal; A time domain error prediction module, configured to perform time domain error prediction processing on the reconstructed time domain audio signal through a long short-term memory network to generate a time domain residual compensation signal; The time domain fusion module is used to perform superposition processing on the time domain residual compensation signal and the reconstructed time domain audio signal to generate a target audio signal.

9. A computer device, characterized in that: The computer device includes a memory, a processor, and an audio compression and reconstruction program stored in the memory and capable of running on the processor. When the audio compression and reconstruction program is executed by the processor, the steps of the audio compression and reconstruction method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that The storage medium stores an audio compression and reconstruction program, which, when executed by a processor, implements the steps of the audio compression and reconstruction method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Audio encoding and decoding method, electronic equipment and program product

    CN120783775A

  • Video mixing and cutting system based on AIGC

    CN120956987A

  • Audio signal processing method and device, equipment and storage medium

    CN121054011A

  • Speech spectrum reconstruction method and system combining time domain half-wave rectification and weighted Gaussian mixture model decoder, terminal and medium

    CN121054016A

  • A speech spectrum reconstruction method, system, terminal, and medium combining time-domain half-wave rectification and weighted Gaussian mixture model decoder.

    CN121054016B