Audio compression and reconstruction method and apparatus, and device and medium

By modifying the discrete cosine transform and extracting time-frequency domain features using a lightweight convolutional neural network, and combining spectral expansion and long short-term memory networks to compensate for errors, the problem of insufficient spectral integrity and reconstruction quality in existing audio encoding and decoding technologies at low bit rates is solved, achieving efficient and high-fidelity audio signal reconstruction.

WO2026242347A1PCT designated stage Publication Date: 2026-11-26PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/137862
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2025-11-26
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing audio encoding and decoding technologies struggle to balance spectral integrity, reconstruction quality, and computational efficiency at low bit rates, particularly exhibiting significant shortcomings in high-frequency detail loss and temporal distortion control, which impacts their application in medical and financial scenarios.

Method used

A modified discrete cosine transform is used to generate time-frequency domain features. Key spectral information is extracted through a lightweight convolutional neural network, residual vector quantization is performed, high-frequency components are compensated by a spectrum spread network, and time-domain errors are predicted by a long short-term memory network to generate a high-fidelity target audio signal.

Benefits of technology

High-quality audio reconstruction is achieved at low bit rates, improving spectral integrity and computational efficiency. It is suitable for devices with limited computing resources and meets the real-time and privacy protection requirements of medical and financial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025137862_26112026_PF_FP_ABST
    Figure CN2025137862_26112026_PF_FP_ABST
Patent Text Reader

Abstract

An audio compression and reconstruction method and apparatus, and a device and a medium, which relate to the technical fields of artificial intelligence and speech processing, and solve the technical problems of the loss of high-frequency details and insufficient residual compensation in conventional compression. Time-frequency features are extracted by means of a modified discrete cosine transform, and efficient compression and decoding are implemented by combining a convolutional neural network with residual vector quantization; and a spectral expansion network is used to compensate for high-frequency components, and time-domain errors are predicted by means of a long short-term memory network to perform residual correction, thereby generating a high-fidelity target audio signal. The method is applicable to scenarios such as financial speech analysis, medical acoustic-signal monitoring, audio communication, and intelligent speech terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Audio compression and reconstruction methods, apparatus, equipment and media

[0001] This application claims priority to Chinese Patent Application No. 202510651662.3, filed on May 20, 2025, entitled “Audio Compression and Reconstruction Method, Apparatus, Device and Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the fields of artificial intelligence and speech processing technology, and in particular to an audio compression and reconstruction method, apparatus, device and storage medium. Background Technology

[0003] Audio encoding and decoding technologies are widely used in modern communications, fintech, and healthcare, with the core objective of achieving high-quality audio reconstruction under low bitrate conditions. However, the inventors recognized that existing audio encoding and decoding methods still have many limitations in terms of high sampling rates, low bitrates, and adaptability to various scenarios, affecting the storage, transmission, and practical application of audio signals.

[0004] In healthcare, audio signals are widely used in telemedicine, heart and lung sound analysis, and voice diagnosis. Medical audio signals typically contain rich high-frequency details, such as subtle abnormalities in heart and lung sounds, which are crucial for disease detection. However, existing audio encoding and decoding methods struggle to preserve these details at low bitrate compression, potentially affecting the accuracy of disease detection. Furthermore, medical devices often rely on embedded systems for audio acquisition and processing. Limited by computational resources and power consumption, existing neural network-based audio encoding and decoding methods are computationally complex and difficult to apply directly to these devices, hindering their use in medical settings. Simultaneously, medical audio data has extremely high privacy requirements. Efficient audio storage and transmission must balance data integrity and security, but existing methods struggle to meet privacy requirements while maintaining compression efficiency, potentially leading to the leakage of sensitive medical information.

[0005] In fintech applications such as intelligent voice customer service, voice analytics, and financial meeting recording place higher demands on audio encoding and decoding technologies. The feature loss from low-bit-rate speech coding often affects the accuracy of speech recognition and synthesis, reducing the interactive experience of financial services. Meanwhile, financial data processing typically involves large-scale audio streams; existing deep learning-based audio encoding and decoding methods are computationally expensive and struggle to meet the real-time requirements of tasks such as real-time transaction monitoring and fraud detection. Furthermore, the voice application environment in financial services is complex, involving multiple scenarios such as telephone banking, remote customer service, and meeting recording. Background noise interference and adaptability issues with different languages ​​limit the stability of existing audio encoding and decoding methods, making it difficult to meet the financial industry's demand for high-precision speech analysis. Summary of the Invention

[0006] The main objective of this application is to provide an audio compression and reconstruction method, apparatus, device, and storage medium, which aims to solve the technical problems that existing audio encoding and decoding technologies have significant shortcomings in balancing spectral integrity, reconstruction quality, and computational efficiency under low bit rate conditions, as well as in controlling high-frequency detail loss and temporal distortion.

[0007] To achieve the above objectives, this application provides an audio compression and reconstruction method, comprising:

[0008] The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features;

[0009] Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network;

[0010] The key spectral information is subjected to residual vector quantization to generate compressed feature codes;

[0011] The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features;

[0012] The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features.

[0013] The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal;

[0014] The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal.

[0015] The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

[0016] Furthermore, to achieve the above objectives, this application provides an audio compression and reconstruction apparatus, comprising:

[0017] The time-frequency transformation module is used to perform corrected discrete cosine transform processing on the original audio signal to generate time-frequency domain features.

[0018] The feature extraction module is used to extract key spectral information from the time-frequency domain features using a lightweight convolutional neural network;

[0019] The quantization encoding module is used to perform residual vector quantization processing on the key spectral information to generate compressed feature codes;

[0020] The decoding and recovery module is used to perform residual vector inverse quantization on the compressed feature encoding to generate basic spectral features;

[0021] The spectrum extension module is used to input the basic spectrum features into the spectrum extension network for high-frequency component compensation processing to generate complete spectrum features;

[0022] The time-frequency reconstruction module is used to perform a modified inverse discrete cosine transform on the complete spectral features to generate a reconstructed time-domain audio signal.

[0023] The time-domain error prediction module is used 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.

[0024] The time-domain fusion module is used to superimpose the time-domain residual compensation signal with the reconstructed time-domain audio signal to generate the target audio signal.

[0025] Furthermore, to achieve the above objectives, this application also provides a computer device, the computer device including a memory, a processor, and an audio compression and reconstruction program stored in the memory and executable on the processor, wherein when the audio compression and reconstruction program is executed by the processor, it performs the following steps of the audio compression and reconstruction method as described above:

[0026] The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features;

[0027] Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network;

[0028] The key spectral information is subjected to residual vector quantization to generate compressed feature codes;

[0029] The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features;

[0030] The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features.

[0031] The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal;

[0032] The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal.

[0033] The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

[0034] Furthermore, to achieve the above objectives, this application also provides a non-volatile computer-readable storage medium storing an audio compression and reconstruction program, which, when executed by a processor, implements the steps of the audio compression and reconstruction method described above.

[0035] Beneficial Effects: This application relates to the fields of artificial intelligence and speech processing technology, and discloses an audio compression and reconstruction method, apparatus, device, and medium. Addressing the technical problems of high-frequency detail loss and insufficient residual compensation in traditional compression, it extracts time-frequency features by modifying discrete cosine transform, and achieves efficient compression and decoding by combining convolutional neural networks and residual vector quantization. It utilizes a spectrum spreading network to compensate for high-frequency components and uses a long short-term memory network to predict time-domain errors for residual correction, thereby generating a high-fidelity target audio signal. It can be applied to scenarios such as financial speech analysis, medical sound signal monitoring, audio communication, and intelligent voice terminals. Attached Figure Description

[0036] The present application will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:

[0037] Figure 1 is a schematic diagram of an application environment for an audio compression and reconstruction method according to an embodiment of this application;

[0038] Figure 2 is a flowchart illustrating an embodiment of the audio compression and reconstruction method of this application;

[0039] Figure 3 is a schematic diagram of the functional modules of a preferred embodiment of the audio compression and reconstruction apparatus of this application;

[0040] Figure 4 is a structural schematic diagram of a computer device according to an embodiment of this application;

[0041] Figure 5 is another structural schematic diagram of a computer device according to one embodiment of this application. Detailed Implementation

[0042] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0043] The audio compression and reconstruction method provided in this application can be applied in the application environment shown in Figure 1, where the user terminal communicates with the server via a network. The server can extract time-frequency features by modifying the discrete cosine transform on the user terminal, and achieve efficient compression and decoding by combining convolutional neural networks and residual vector quantization; it utilizes a spectrum spreading network to compensate for high-frequency components and uses a long short-term memory network to predict time-domain errors for residual correction, thereby generating a high-fidelity target audio signal. This method can be applied to scenarios such as financial voice analysis, medical sound signal monitoring, audio communication, and intelligent voice terminals. The user terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented using a standalone server or a server cluster consisting of multiple servers. The following detailed description of specific embodiments further illustrates this application.

[0044] Please refer to Figure 2, which is a flowchart illustrating an embodiment of the audio compression and reconstruction method provided in this application. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0045] As shown in Figure 2, the audio compression and reconstruction method proposed in this application includes the following steps:

[0046] S10 performs a modified discrete cosine transform on the original audio signal to generate time-frequency domain features;

[0047] In this embodiment, the audio signal is a continuous waveform data that varies over time and is widely used in various fields such as voice communication, music processing, biosignal analysis, and fintech applications. The raw audio signal can be untransformed or uncompressed audio data, originating from various acquisition devices such as microphones, ultrasound sensors, electroencephalogram (EEG) acquisition devices, and financial voice transaction recording systems. These signals are typically 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 raw signal usually involves high computational complexity and makes it difficult to effectively extract information; therefore, it is necessary to convert it to a time-frequency domain representation that is more suitable for analysis.

[0048] To achieve more efficient information representation and compressed storage, it is typically necessary to convert the original audio signal to a frequency domain representation and extract the feature information of different frequency components. Modified Discrete Cosine Transform (MDCT) is a time-frequency transformation technique widely used in audio signal processing. It reduces block artifacts through Overlap Addition (OLA) while providing high spectral resolution, making the frequency information of the signal clearer. The design of MDCT makes it valuable in various scenarios such as speech encoding and decoding, high-quality music compression, and medical audio data analysis.

[0049] The basic principle of MDCT transform is to divide the input signal into overlapping time segments. Each segment is windowed and then subjected to discrete cosine transform to obtain the corresponding spectral features. The windowing operation is crucial to the transform effect. Common window functions include KBD window and sine window, each exhibiting different characteristics in the time-frequency domain. For example, the KBD window has good time-frequency localization properties and is widely used in high-fidelity audio processing, while the sine window is used in low bit-rate speech coding due to its energy smoothing properties. Furthermore, adaptive window function switching mechanisms can be used to dynamically adjust the selection of window functions, improving compression efficiency and signal reconstruction quality.

[0050] The time-frequency domain features after MDCT transformation are an important representation of audio signals, providing a solid data foundation for subsequent tasks such as compression, noise reduction, and feature extraction. Because MDCT effectively concentrates signal energy, allowing key information to be represented with fewer coefficients, it is particularly important in low-bit-rate audio coding scenarios. For example, in speech coding, MDCT can improve clarity and intelligibility, while in music coding, it can preserve musical detail and reduce distortion.

[0051] The MDCT transform converts the original audio signal into time-frequency domain features, enabling more effective representation of the audio signal at different frequency components while ensuring signal reversibility. Compared to traditional time-domain compression methods, the time-frequency features after MDCT transformation have higher energy concentration, allowing the main audio information to be represented with less data, thus improving the compression ratio while maintaining high sound quality. By appropriately selecting the frame length and window function, the spectral representation can be optimized while ensuring computational efficiency, enabling high-quality audio reconstruction even under low bit-rate compression conditions. Furthermore, the overlapping and additive characteristics of MDCT give the time-frequency transformation better energy distribution characteristics, effectively reducing quantization noise and block artifacts, improving audio smoothness, and thus enhancing overall sound quality.

[0052] S20, extract key spectral information from the time-frequency domain features using a lightweight convolutional neural network;

[0053] In this embodiment, after time-frequency transformation, the audio signal can obtain time-frequency domain features, which describe the spectral distribution of the audio signal on the time axis. In order to extract the key spectral information that plays a decisive role in sound quality, a lightweight convolutional neural network is used to process the time-frequency domain features to reduce the interference of redundant information and reduce computational complexity, making the compression and reconstruction process more efficient.

[0054] Time-frequency domain features refer to the representation of an audio signal after it has been transformed to the frequency domain using methods such as Modified Discrete Cosine Transform (MDCT). These features contain spectral amplitude information at different time slices, which helps in analyzing the composition of the audio. Different audio categories, such as speech, music, and ambient sounds, exhibit different representations in the time-frequency domain; therefore, during compression, it is crucial to focus on the features that have the greatest impact on sound quality.

[0055] Key spectral information refers to the spectral regions in the frequency domain that have significant energy distribution and play a major role in audio quality. For speech, this mainly includes formant frequencies and voiced components; for music, it includes the fundamental frequency and its harmonic structure. Since some spectral components of an audio signal have a relatively small impact on perceived quality, key spectral information can be filtered using automatic learning methods to remove parts that contribute less to sound quality, thereby improving compression ratio while ensuring the quality of the restored audio.

[0056] Lightweight Convolutional Neural Networks (Lightweight CNNs) are a class of optimized convolutional neural network architectures designed to reduce computational complexity and storage requirements while maintaining strong feature extraction capabilities. Traditional convolutional neural networks (CNNs) struggle to operate efficiently on low-power devices or in real-time applications when processing high-dimensional audio data due to their large number of parameters and high computational cost. Therefore, lightweight convolutional neural networks achieve a good balance between computational cost and accuracy through specific design optimizations.

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

[0058] Separable convolution is a computationally intensive convolution method that combines two steps: depthwise convolution and pointwise convolution. Depthwise convolution performs convolution operations independently on each input channel, while pointwise convolution uses 1 x 1 convolutions to fuse across channels, reducing computation and the number of parameters compared to standard convolution.

[0059] 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 cost while improving computational parallelism, and has been applied to network architectures such as ResNeXt.

[0060] Pruning is a method for removing redundant parameters. By analyzing the weight distribution in the network, less important neurons or connections are removed, thereby reducing computational cost while maintaining model performance as much as possible.

[0061] Quantization reduces storage footprint and accelerates inference computation by decreasing the numerical precision of weights and activation values ​​(e.g., from 32-bit floating-point numbers to 8-bit integers). Quantized networks can operate efficiently on low-power devices, making them suitable for embedded systems and mobile devices.

[0062] Mobile network architectures, including 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 techniques such as separable convolution, grouped convolution, and attention mechanisms to make models more efficient.

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

[0064] By processing time-frequency domain features using lightweight convolutional neural networks, computational complexity can be effectively reduced, making audio compression and reconstruction more efficient while maintaining audio quality. Separable convolutions reduce computation while maintaining strong feature extraction capabilities, enabling more precise selection of key spectral information. Introducing an attention mechanism enhances focus on important spectral components, ensuring high fidelity of the decoded audio signal. Furthermore, the lightweight design makes this method suitable for environments with limited computing resources, such as mobile and embedded devices, increasing its applicability.

[0065] S30, perform residual vector quantization processing on the key spectral information to generate compressed feature codes;

[0066] In this embodiment, when performing audio compression, it is necessary to reduce the amount of data while minimizing reconstruction errors. Therefore, residual vector quantization is used to generate compressed feature codes. Key spectral information is usually a high-dimensional vector, and direct quantization can easily lead to loss of detail. Therefore, it is first divided into multiple sub-vectors to enable more refined encoding at a lower dimension.

[0067] Multi-level residual vector quantization is applied to each sub-vector. The first level of quantization directly encodes the original sub-vector and generates quantization error; the second level of quantization continues to encode the error portion, progressively reducing the remaining error. After each level of quantization, the norm of the residual vector is calculated to determine whether to continue to subsequent quantization levels; quantization can be terminated early when the residual energy is below a preset threshold, and the quantization index of the current level is output. If the residual is still significant, a deeper level of residual quantization is added to further reduce the error.

[0068] After the final quantization index of all sub-vectors is generated, the number of storage bits is further compressed using entropy coding. Entropy coding adaptively allocates the coding length according to the statistical distribution of the quantization index, thereby improving compression efficiency. By combining multi-level residual quantization with entropy coding, high fidelity can be maintained at low bit rates, and distinctive spectral details in speech, music, and ambient sound can be effectively preserved.

[0069] Residual vector quantization (RPQ) effectively reduces information loss during audio compression, improving sound fidelity at low bit rates. Multi-level RQ reduces quantization errors progressively, preserving audio details. Furthermore, combining it with entropy coding further reduces the coding bit rate, improving storage and transmission efficiency. RQ is particularly suitable for high dynamic range audio signal compression, enabling efficient compression coding of various audio data types, including speech, music, and ambient sound.

[0070] S40, perform residual vector inverse quantization on the compressed feature encoding to generate basic spectral features;

[0071] In this embodiment, during the compression and reconstruction of the audio signal, Residual Vector Quantization (RVQ) provides an encoding method that approximates the original features step by step to minimize quantization errors. The purpose of Residual Vector Inverse Quantization is to recover the compressed feature encoding during the decoding stage, making it as close as possible to the uncompressed original features. The key to this step lies in how to utilize the encoding index and codebook to recover the basic spectral features, thereby ensuring the quality of the reconstructed audio.

[0072] Compressed feature encoding is index data obtained during residual vector quantization. These indices record the codeword matching of each sub-vector at different quantization levels. The core of residual vector dequantization lies in using these indices to find the corresponding quantized codewords level by level and then accumulating them sequentially to recover the original vector. Specifically, firstly, based on the indices in the compressed feature encoding, the corresponding quantization vectors are retrieved sequentially from the multi-level codebook. Since each codebook level stores the quantization residuals of the previous level, quantization errors can be effectively reduced by adding them level by level, thereby obtaining more accurate basic spectral features.

[0073] The fundamental spectral features are the core data representation for reconstructing audio signals. They contain the main spectral components of the audio signal and are crucial inputs for subsequent high-frequency compensation and time-domain reconstruction. Since audio signals exhibit different distribution characteristics in the time and frequency domains, the fundamental spectral features need to preserve the temporal consistency and frequency distribution characteristics of the signal as much as possible. To ensure high-quality spectral recovery, the residual vector dequantization process can be combined with an adaptive codebook adjustment strategy. This involves selecting different codebook structures based on different audio content (such as speech, music, and ambient sound) to optimize the decoding effect.

[0074] Furthermore, to avoid accumulated errors during dequantization, mean adjustment or energy normalization strategies can be employed to ensure that the recovered fundamental spectral characteristics match the original signal in terms of dynamic range and amplitude distribution. This not only improves audio quality but also effectively reduces artifacts, resulting in a more natural and smooth audio signal.

[0075] By progressively accumulating quantization residuals, the unavoidable information loss during audio compression can be effectively reduced, making the decoded basic spectral characteristics closer to the original audio data. This provides higher reconstruction accuracy at the same bit rate, thereby improving audio quality. Furthermore, optimization strategies such as dynamic codebook selection and adaptive error compensation can further enhance the recovery effect of different types of audio, allowing low-bit-rate encoding to 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 in storage, transmission, and processing.

[0076] S50, the basic spectral features are input into the spectral extension network for high-frequency component compensation processing to generate complete spectral features;

[0077] In this embodiment, during the compression and reconstruction of the audio signal, the basic spectral features mainly contain the low-frequency and mid-frequency information of the audio signal. However, the high-frequency components, due to their weaker energy and greater susceptibility to compression, are often difficult to fully recover under low bit-rate conditions. Therefore, the core objective of high-frequency component compensation is to predict and generate the missing high-frequency components based on the existing basic spectral features, thereby recovering the complete audio spectrum and making the reconstructed audio perceptually closer to the original audio.

[0078] Spectrum expansion networks are deep learning-based models that generate missing high-frequency information by learning the mapping relationship between low and high frequencies. The network takes basic spectral features as input and outputs complete spectral information, including the predicted high-frequency components. It typically employs convolutional neural networks (CNNs) or transform networks based on self-attention mechanisms to extract low-frequency features and utilizes deconvolution or bandwise interpolation techniques to generate the high-frequency components.

[0079] Several key points exist in the high-frequency compensation process:

[0080] Low-frequency feature extraction: To more accurately predict the high-frequency components, feature extraction of the basic spectral features is first required to obtain their main time-frequency structure. This can typically be achieved through frequency domain convolution, attention mechanisms, or specific feature pooling methods. For example, one-dimensional or two-dimensional convolution operations can be used to extract features across time or frequency to ensure the accuracy of high-frequency predictions.

[0081] High-frequency prediction generation: This method utilizes spectral extension networks to infer high-frequency components from low-frequency features. Common approaches include frequency upsampling based on deconvolution layers or progressive prediction of high-frequency components based on autoregressive models. Furthermore, GAN (Generative Adversarial Network)-based strategies can be used to enhance the realism of high-frequency predictions through adversarial loss.

[0082] Spectral Energy Alignment: There may be an energy imbalance between the basic spectral features and the generated high-frequency features, such as low or high energy in the high-frequency components, resulting in an unnatural overall audio signal. Therefore, the average energy of the basic spectral features and the predicted high-frequency sub-band features in the overlapping frequency band can be calculated, and gain compensation techniques can be used to adjust the predicted high-frequency components to better match their energy levels with the original signal.

[0083] Spectral fusion: This involves merging the compensated high-frequency components with the basic spectral features to form a complete spectral representation. This can typically be achieved through a simple stitching operation or a frequency-domain weighted fusion method to ensure a smooth spectral transition at the stitching point and reduce stitching artifacts.

[0084] Furthermore, in audio signal processing, the definitions of low and high frequencies are typically based on the range of human hearing and the spectral distribution of the audio signal. The frequency range that the human ear can typically hear is roughly between 20 Hz and 20 kHz, while the spectrum of an audio signal can be classified according to energy distribution, timbre characteristics, and application scenario. The definitions of low and high frequencies may differ slightly in different applications such as speech processing, music analysis, or ambient sound processing, but they generally follow the following quantification methods:

[0085] Low frequency (LF): Generally refers to the frequency components between 0Hz and 1kHz or 0Hz and 4kHz. This part of the frequency mainly carries the basic tone (fundamental frequency) and main harmonic information of the audio signal. For example, in speech signals, the main vowel energy is concentrated between 300Hz and 3kHz, while in music signals, the low frequency part contains the fundamental tones of instruments such as bass drums and bass guitars.

[0086] Mid-frequency (MF): Typically defined in the range of 1kHz to 5kHz. This frequency range contains both low-frequency and high-frequency information, often significantly affecting the clarity and brightness of the timbre. Although the spectral extension of this technique primarily focuses on the low-to-high frequency mapping, the mid-frequency portion can also be used for high-frequency component prediction.

[0087] High Frequency (HF): Generally refers to frequency components above 5kHz. In music and speech signals, the high-frequency range typically contains important information such as overtones, airiness, and ambient reverberation. The lack of high-frequency information often leads to audio losing detail, becoming blurry, or sounding muffled and unclear. For example, in speech signals, the high-frequency range significantly affects the clarity of consonants (such as / s / , / t / , / f / , etc.), while in music signals, high-frequency information determines the overall brightness of the timbre.

[0088] In digital audio processing, the distinction between low and high frequencies is not only based on a fixed frequency range but also involves specific calculation methods. For example, quantification can be achieved through methods such as spectral energy distribution analysis, filter decomposition, and spectral statistical characteristics to more accurately define the energy distribution of audio signals in different frequency bands and their impact. The following are some common calculation methods, illustrated with practical application examples.

[0089] Based on energy distribution: In audio signal processing, Short-Time Fourier Transform (STFT) or Mel-Spectrogram is commonly used to analyze the spectral energy distribution of audio signals. By calculating the Power Spectral Density (PSD) at specific frequency bands, the energy distribution of audio signals 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 concentrated in the high-frequency range (above 4kHz). In music signal processing, the sounds of bass guitars and drums are mainly concentrated in the low-frequency range (20Hz to 250Hz), while the sounds of violins or soprano saxophones have more high-frequency components (above 3kHz). In low-bitrate audio compression, the energy in the high-frequency components is usually relatively low, making them susceptible to loss during compression, leading to audio distortion or decreased clarity. Therefore, during audio reconstruction, high-frequency components require additional compensation to recover audio details lost due to compression.

[0090] Filter decomposition: Filter decomposition is another common method for audio signal analysis. By using a set of bandpass filters (such as a Mel filter bank or wavelet transform filter bank), an audio signal can be decomposed into multiple different frequency bands, and the average energy of each band can be calculated. For example, in speech recognition systems, the Mel scale is widely used to divide the frequency range of audio signals because it conforms to the perceptual characteristics of the human ear. A Mel filter bank typically divides a speech signal from 0Hz to 8kHz into 20-40 equally perceptually spaced frequency bands, resulting in finer resolution in the low-frequency range and lower resolution in the high-frequency range. For example, in telephone voice transmission, due to bandwidth limitations, only the frequency range of 300Hz to 3.4kHz is typically transmitted, and 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 according to the energy level of each sub-band, thereby maintaining better sound quality at low bit rates.

[0091] Based on statistical feature extraction: In addition to energy distribution and filter decomposition, statistical feature extraction methods can be used to quantify low-frequency and high-frequency components. For example, features such as the spectral centroid, spectral spread, and spectral slope of an audio signal can be calculated to analyze the energy concentration of the audio signal in different frequency ranges. For instance, in environmental sound recognition applications, low-frequency environmental noise (such as wind noise or subway noise) typically has a low spectral centroid, while high-frequency noise (such as sirens or the sound of breaking glass) has a high spectral centroid. If the spectral centroid of an audio segment remains at a low frequency for a long period (e.g., below 1kHz), it can be inferred that the audio is mainly composed of low-frequency noise, such as car engine sounds or wind noise; if the spectral centroid is high (e.g., 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 music style. For example, jazz typically has a lower spectral tilt, while rock music has a higher spectral tilt because rock music usually contains more high-frequency components, such as the high notes of an electric guitar.

[0092] By modeling low-frequency information and compensating for high-frequency components, the details of audio signals can be effectively recovered under low bitrate compression conditions. Even with information loss, the loss of high-frequency components can be compensated for through learning. The compensation method can adaptively adjust for different audio content, thus providing a more natural audio reconstruction effect. Furthermore, through energy alignment technology, unnatural artifacts introduced during high-frequency compensation can be avoided, ensuring that the final reconstructed audio signal retains the main features of the original audio while avoiding the high-frequency loss problems caused by traditional compression algorithms.

[0093] S60, perform modified discrete cosine inverse transform processing on the complete spectral features to generate a reconstructed time-domain audio signal;

[0094] 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-to-time domain conversion method widely used in audio encoding and decoding technologies. This method is used to restore the complete spectral characteristics after time-frequency domain processing to a time-domain signal, enabling it to be correctly played by audio devices or further processed.

[0095] The core of the modified Inverse Discrete Cosine Transform (IMDCT) lies in converting the complete spectral characteristics back to the time domain. These complete spectral characteristics are obtained through a spectral extension network, containing the fundamental spectral features of the original audio signal as well as high-frequency information obtained through high-frequency component compensation. Therefore, when performing the IMDCT, it is necessary to consider how to ensure the time-domain continuity of the converted signal to avoid blocking artifacts or discontinuities.

[0096] IMDCT processing can convert the complete spectral characteristics back to the time domain signal, and the overlapping windowing technique eliminates blockage artifacts, improving the smoothness and listening quality of the audio signal. Because IMDCT preserves the high-frequency information compensated by the spectral spread network during the conversion process, it can better restore audio details and improve sound fidelity compared to direct IDCT transformation. Furthermore, by combining different window functions, the time-domain transition characteristics of the signal can be further optimized, reducing transient signal distortion, which can improve the overall listening quality, especially in music and speech signal processing.

[0097] S70, the reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction processing, and a time-domain residual compensation signal is generated.

[0098] In this embodiment, after compression, quantization, and spectral reconstruction, the time-domain signal often suffers distortion or loss of detail. Therefore, a Long Short-Term Memory (LSTM) network is needed to predict the time-domain error of the reconstructed time-domain audio signal, thereby generating a time-domain residual compensation signal for correction. LSM networks can capture short-term variations and long-term dependencies in time-series processing, making them suitable for modeling the error distribution of audio signals over time.

[0099] To facilitate the network's learning of temporal patterns, the reconstructed temporal audio signal is first segmented into multiple time segments using a temporal sliding window. The length and step size of the sliding window can be configured according to real-time or accuracy requirements to balance temporal continuity and computational efficiency. After the time segments are input into the Long Short-Term Memory (LSTM) network, the network extracts contextual features at different time scales through its internal gating structure and infers the error trend of each segment through recursive updates of the hidden states.

[0100] The predicted error distribution needs to undergo nonlinear activation and amplitude constraint to ensure the amplitude stability of the compensation signal and suppress outliers. The processed time-domain residual compensation signal can be superimposed on the reconstructed time-domain audio signal to reduce distortion caused by quantization and transformation, making the output signal closer to the original audio. Using a long short-term memory network for error prediction can adaptively learn error patterns, improve the naturalness and effectiveness of compensation, and avoid the shortcomings of traditional linear compensation methods.

[0101] By predicting temporal errors and generating compensation signals using long short-term memory networks, reconstruction distortion can be effectively reduced, making the audio closer to the real signal. Combining nonlinear activation and amplitude constraints can suppress overcompensation and improve the smoothness and naturalness of the audio.

[0102] S80, the time-domain residual compensation signal and the reconstructed time-domain audio signal are superimposed to generate the target audio signal.

[0103] In this embodiment, during the audio reconstruction process, the reconstructed time-domain audio signal often still exhibits details loss, temporal distortion, or slight artifacts. Therefore, it is necessary to introduce a time-domain residual compensation signal generated based on error prediction to further correct the reconstructed signal. The residual compensation signal is used to characterize the difference between the reconstructed signal and the original audio. Although its amplitude is small, it can significantly improve the sound quality, making the final output closer to the real audio.

[0104] Before superposition, the reconstructed signal and the residual compensation signal are time-stamp matched and phase-calibrated to ensure synchronization in time and phase, avoiding new distortions caused by alignment errors. The two aligned signals are then superimposed at point-by-point sampling locations to obtain a preliminary fused signal.

[0105] The initial fused signal may exhibit localized large amplitude deviations or short-term fluctuations. Therefore, further amplitude limiting is employed to maintain signal amplitude stability, and smoothing filtering is used to suppress transient noise or abrupt changes caused by superposition. Through this residual superposition and post-processing workflow, the lack of detail in the reconstructed audio can be effectively compensated, resulting in improved continuity, naturalness, and fidelity in the final audio.

[0106] This embodiment combines the temporal residual compensation signal with the reconstructed temporal audio signal to further correct distortions during the reconstruction process, making the audio closer to the original recording. The residual compensation signal is generated based on error prediction and can specifically compensate for the lack of detail in the reconstructed signal without introducing additional spectral distortion. After superposition, combined with amplitude limiting and smoothing filtering, abrupt changes caused by overcompensation can be avoided, effectively improving the continuity, naturalness, and listening quality of the output audio.

[0107] In one embodiment, step S20 above includes:

[0108] S201, The time-frequency domain features are processed by deep convolution through a lightweight convolutional neural network to generate a deep convolutional feature map;

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

[0110] S203, perform attention weight analysis on the pointwise convolutional feature map in the frequency domain dimension to generate a frequency domain attention mask;

[0111] S204, the frequency domain attention mask and the pointwise convolutional feature map are weighted and fused to generate the key spectral information.

[0112] In this embodiment, in audio signal processing, to extract key information from time-frequency domain features, a lightweight convolutional neural network can be used to extract features from the input time-frequency data. This process includes several key technical steps, each with a different data processing method, to improve the network's computational efficiency and recognition ability while reducing computational resource consumption.

[0113] Lightweight convolutional neural networks (CNNs) refer to neural network architectures with low computational complexity that still maintain high feature extraction capabilities. Common lightweight CNNs include MobileNet, EfficientNet, and ShuffleNet. These networks reduce the number of parameters and computational cost, making them suitable for computationally limited scenarios such as embedded devices, mobile applications, or real-time processing systems. In this task, a lightweight convolutional network is used to efficiently extract key spectral information from audio signals to ensure reconstruction quality under low bitrate audio compression conditions.

[0114] 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-wise and pointwise convolution, significantly reducing computation while preserving key information. In audio signal processing, deep convolutional layers can capture local temporal and frequency correlations, such as formants in speech signals or characteristic frequencies in music signals.

[0115] Pointwise convolution is an operation performed after depthwise convolution to fuse information across channels. Similar to channel mixing, pointwise convolution establishes connections between features in different frequency bands using a 1×1 convolution kernel. It further reduces computation while enhancing the interaction between different frequency components, thus helping to better extract global spectral features.

[0116] Frequency domain attention weighting analysis is primarily used to enhance the network's focus on key spectral information. On the frequency axis, certain frequency bands (such as the formant regions of speech signals or the main melody band of music signals) contain more information than other bands. Therefore, attention mechanisms 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.

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

[0118] In the implementation process, different types of lightweight convolutional neural networks can be used for feature extraction. For example, MobileNetV3 can be chosen as the backbone network, which utilizes hard sigmoid and h-swish activation functions to reduce computation while ensuring feature extraction capabilities; ShuffleNet can also be chosen to improve computational efficiency through channel shuffling. Furthermore, different attention mechanisms can be used, such as Squeeze-and-Excitation Attention (SE) for key frequency band enhancement in compressed environments, while Transformer frequency domain attention is suitable for more complex audio scenarios.

[0119] For calculating frequency domain attention, a power spectrum-based attention weight allocation method can be adopted. This involves performing spectral analysis on the input pointwise convolutional feature map and adaptively adjusting the attention weights according to the distribution of the power spectral density. For example, in speech signal processing, the weights of the 300Hz-3400Hz frequency band can be increased to enhance speech intelligibility, while in music signal processing, the 100Hz-12kHz frequency band can be weighted to improve the preservation of melodic details.

[0120] When computing resources are limited, grouped convolution can be used instead of standard convolution to further reduce computational cost, and quantization-aware training (QAT) can be combined to adapt the network to low bit rate deployment environments, such as mobile devices or embedded systems.

[0121] This embodiment utilizes a lightweight convolutional neural network to extract key spectral information, reducing computational complexity while ensuring feature integrity. The combination of depthwise convolution and pointwise convolution improves the resolution of time-frequency information while avoiding computational redundancy in traditional fully convolutional methods. Attention weight analysis enables the network to focus on key information, thereby enhancing the perceptual quality of low-bitrate audio. Weighted fusion operations further improve the spectral accuracy of the signal, providing high-quality input features for subsequent audio compression and reconstruction.

[0122] In one embodiment, step S30 above includes:

[0123] S301, the key spectrum information is divided into multiple sub-vectors;

[0124] S302, Perform first-level residual vector quantization processing on each sub-vector to generate a first-level quantization index and determine the first-level residual vector;

[0125] S303, Perform second-level residual vector quantization processing based on the first-level residual vector to generate a second-level quantization index and determine the second-level residual vector;

[0126] S304, determine the norm value of the second-level residual vector, and determine whether the norm value of the second-level residual vector is lower than a preset threshold.

[0127] S305, when the norm value of the second-level residual vector is lower than a preset threshold, the first-level quantization index and the second-level quantization index are used as the final quantization index of the current sub-vector;

[0128] S306, when the norm value of the second-level residual vector is not lower than the preset threshold, perform third-level residual vector quantization processing according to the second-level residual vector to generate a third-level quantization index, and use 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;

[0129] S307, perform entropy encoding on the final quantization index of all sub-vectors to generate the compressed feature code.

[0130] 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 multiple levels of quantization, thereby maintaining high audio quality under low bit rate conditions.

[0131] The key spectral information is first divided into multiple sub-vectors. This division can be done in two ways: a fixed-length division, where the entire spectral information is divided into several equally spaced segments, or an adaptive division, where the boundaries of the sub-vectors are dynamically adjusted based on changes in audio features. For example, in speech signal processing, the division can be based on the Mel scale to better match the characteristics of human hearing, or in music signal processing, it can be based on the harmonic structure.

[0132] After each subvector is partitioned, first-level residual vector quantization is performed. The purpose of first-level quantization is to perform preliminary encoding of the signal, generate a first-level quantization index, and calculate the quantization error, i.e., the first-level residual vector. The residual vector represents the error information between the original signal and the quantized signal, still containing unencoded details. Therefore, a second-level residual vector quantization is performed based on the first-level residual vector to further reduce the error. The second-level quantization generates a second-level quantization index and calculates a new residual vector.

[0133] Before performing deeper quantization, it's necessary to determine if the norm of the current residual vector is small enough. The norm can be calculated using either the L2 norm (Euclidean distance) or the L1 norm (sum of absolute values), which measures the energy of the residual vector. When the norm is below a preset threshold, it means the residual error is already small enough, and subsequent quantization offers limited accuracy improvement; therefore, the first and second level quantization indices can be directly used as the final quantization indices. If the norm is not below the threshold, a third level of residual vector quantization is required, ultimately generating a third-level quantization index, which is then combined with the first two levels of quantization indices as the final quantization index.

[0134] After all subvectors have been quantized, these quantization indices need to be entropy encoded to further improve compression efficiency. Entropy encoding is a lossless compression method, such as Huffman coding or arithmetic coding, which can optimize the amount of data stored and transmitted based on the statistical distribution characteristics of the quantization indices.

[0135] This embodiment effectively reduces quantization errors in audio signals and improves encoding accuracy through multi-level residual vector quantization, maintaining high reconstructed sound quality even at low bit rate compression. Simultaneously, the adaptive quantization method adjusts quantization precision based on different frequency components of the signal, better matching human auditory characteristics and improving perceived quality. Furthermore, the introduction of entropy coding further reduces data storage and transmission overhead, resulting in more compact compressed data, suitable for applications with limited storage or bandwidth.

[0136] In one embodiment, step S50 above includes:

[0137] S501, extract low-frequency sub-band features from the basic spectral features through frequency domain convolution processing;

[0138] S502, Based on the low-frequency sub-band features, high-frequency sub-band prediction features are generated through a deconvolution layer;

[0139] S503, determine the average energy of the overlapping frequency band between the basic spectral features and the high-frequency sub-band prediction features;

[0140] S504, Based on the ratio of the average energy of the basic spectral features in the overlapping frequency band to the average energy of the high-frequency sub-band prediction features in the overlapping frequency band, perform gain compensation processing on the high-frequency sub-band prediction features.

[0141] S505, The high-frequency sub-band prediction features after gain compensation processing are frequency domain spliced ​​with the basic spectral features to generate the complete spectral features.

[0142] In this embodiment, during audio signal processing, in order to retain high-frequency information even under low bit-rate compression, it is necessary to use spectrum spreading technology to compensate for high-frequency components of the basic spectrum features, so as to obtain more complete spectrum features during audio reconstruction and improve sound quality and perception quality.

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

[0144] Next, based on the extracted low-frequency sub-band features, high-frequency sub-band prediction features are generated through a deconvolution layer. Deconvolution is an upsampling operation that extends low-frequency information into the high-frequency region. Since the low-frequency part usually contains the main structural information of the audio signal, while the high-frequency part mainly contains detailed information, the features 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 low-bitrate audio processing, a larger stride can be used to generate smoother high-frequency prediction features, while in high-bitrate audio processing, a smaller stride can be used to obtain more spectral details.

[0145] To ensure energy consistency between the generated high-frequency subband prediction features and the original low-frequency information, it is necessary to calculate the average energy of the basic spectral features and the high-frequency subband prediction features in the overlapping frequency band. The overlapping frequency band refers to the frequency range shared by the basic spectral features and the high-frequency prediction features. For example, in Bandwidth Extension (BWE) technology, 6kHz-8kHz may be the highest boundary of the low-frequency portion, while 8kHz-12kHz is the lowest boundary of the high-frequency prediction portion, thus creating an overlapping spectral region around 8kHz. When calculating the average energy, power spectral density (PSD) or short-time energy (STE) methods can be used to more accurately measure the energy levels of different frequency bands.

[0146] After obtaining the average energy of the overlapping frequency bands, it is necessary to calculate the ratio of the average energy of the fundamental spectral features to the average energy of the high-frequency sub-band predicted features, and then perform gain compensation processing on the high-frequency sub-band predicted features accordingly. The purpose of this operation is to ensure that the energy distribution of the high-frequency predicted part and the low-frequency part is consistent within the overlapping region, avoiding sound quality distortion caused by prediction errors. For example, if the energy of the high-frequency predicted features is lower than the energy of the fundamental spectrum, it needs to be amplified to ensure that the reconstructed high-frequency information is not too weak. Gain compensation can employ adaptive gain adjustment, which calculates different gain factors for different frequency bands instead of using a global fixed gain value, to achieve smoother spectral matching.

[0147] Finally, the high-frequency sub-band predicted features after gain compensation are concatenated with the basic spectral features in the frequency domain to generate complete spectral features. Frequency domain concatenation can employ 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 points.

[0148] This embodiment effectively expands the bandwidth of the audio signal by compensating for high-frequency components of the basic spectral features, maintaining relatively complete spectral information even under low bit-rate compression, thereby improving the quality of audio reconstruction. Frequency domain convolution is used to extract low-frequency sub-band features, allowing low-frequency information to be better used to predict the high-frequency portion, improving the accuracy of high-frequency compensation. High-frequency sub-band prediction features are generated through deconvolution layers, enabling the high-frequency portion to learn more reasonable compensation information, thus reducing sound quality degradation caused by high-frequency loss. The introduction of gain compensation ensures energy consistency between the high-frequency prediction portion and the low-frequency portion in overlapping frequency bands, avoiding unnatural listening experiences caused by energy mismatch. Finally, high and low frequency information are fused through frequency domain stitching, ensuring a smooth transition across the entire spectrum and improving the subjective listening quality and objective evaluation metrics of the reconstructed audio.

[0149] In one embodiment, step S60 above includes:

[0150] S601, the complete spectral features are processed by a cosine window function that satisfies time-domain symmetry and overlap addition constraints to generate a windowed time-frequency block;

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

[0152] S603, each time-domain signal block is superimposed with the adjacent preceding time-domain signal block and the adjacent following time-domain signal block according to a preset overlap rate to generate an initial reconstructed time-domain signal;

[0153] S604, perform phase compensation and boundary alignment processing on the initial reconstructed time-domain signal to generate the reconstructed time-domain audio signal.

[0154] In this embodiment, the time-frequency conversion of the audio signal typically employs the Modified Discrete Cosine Transform (MDCT), an improved form of the Discrete Cosine Transform (DCT) specifically designed for audio signal processing. Unlike the standard DCT, MDCT enhances spectral resolution, reduces block artifacts, and improves the energy concentration of the transform by introducing time overlap and an improved window function. During the audio signal reconstruction process, the Inverse Modified Discrete Cosine Transform (IMDCT), the inverse operation of MDCT, needs to be performed to restore the spectral information to the time domain signal.

[0155] In IMDCT processing, the first step is to apply a window function that conforms to temporal symmetry and overlap-add (OLA) constraints to the complete spectral features. This ensures that adjacent audio blocks can be stitched together without distortion in the overlapping region during the inverse transform. The window function adjusts the signal weights within the transform window to maintain consistent energy between adjacent blocks during stitching, avoiding spectral leakage or breakage. Common window functions include the Vorbis window, the Kaiser-Bessel-Derived (KBD) window, and the sine window; the choice of each window function affects the final reconstruction quality.

[0156] After the windowing operation is completed, the Modified Inverse Discrete Cosine Transform (IMDCT) is performed to restore the spectral features to the time-domain signal block. IMDCT maps the frequency domain data back to the time domain through a calculation method based on the DCT-IV transform kernel. Since MDCT has time overlap characteristics, its inverse transform operation needs to consider joint processing with the preceding and following frames to ensure phase consistency in the overlapping areas.

[0157] To avoid discontinuities between generated time-domain signal blocks, each block needs to be superimposed on its preceding and following adjacent time-domain signal blocks according to a preset overlap rate. The overlap rate is typically set to 50% or 75% to ensure a smooth transition between adjacent blocks on the time axis. The superposition operation is based on OLA (Optical Linear Alignment) technology, which involves weighted summation of the signals from adjacent blocks within the overlapping region, ensuring that the energy of each signal block is evenly distributed throughout the entire signal sequence.

[0158] After the superposition is complete, phase compensation and boundary alignment are still required to correct phase shifts that may be introduced during the transformation. Phase compensation mainly corrects phase changes in the time-domain signal caused by window function and quantization errors during the transformation and inverse transformation processes. It is usually accomplished using minimum mean square error (MSE) optimization or methods based on coherence matching. Boundary alignment ensures smooth transitions between audio frames and avoids audio quality distortion caused by discontinuities between frames.

[0159] Finally, after IMDCT processing, time-domain signal superposition, phase compensation, and boundary alignment, the complete spectral features were successfully converted back into a reconstructed time-domain audio signal. This signal can preserve the original details of the audio to the greatest extent and is suitable for subsequent playback, storage, or further processing.

[0160] This embodiment employs modified inverse discrete cosine transform (DICT) for time-domain signal recovery, combined with window function processing that conforms to time-domain symmetry and overlap-addition constraints. This allows spectral information to be reconstructed into the time-domain signal with high accuracy while ensuring smooth inter-block stitching. The OLA-based time-domain signal superposition reduces block artifacts and improves the perceived audio quality. Simultaneously, phase compensation and boundary alignment techniques optimize the continuity of the time-domain signal, avoiding the impact of spectral misalignment and phase shift on sound quality.

[0161] In one embodiment, step S70 above includes:

[0162] S701, the reconstructed time-domain audio signal is divided into time segments by a time-series sliding window;

[0163] S702, input the time segment into the long short-term memory network, and extract multi-scale contextual features from the time segment through the long short-term memory network;

[0164] S703, Based on the multi-scale context features, predict the temporal error distribution through the hidden state transfer mechanism of the long short-term memory network;

[0165] S704, perform nonlinear activation and amplitude constraint processing on the time-domain error distribution to generate the time-domain residual compensation signal.

[0166] In this embodiment, Long Short-Term Memory (LSTM) networks are neural networks specifically designed for sequential data. They can effectively capture long-range temporal dependencies and have wide applications in fields such as speech processing and audio signal modeling. Their 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, avoiding gradient vanishing or exploding problems, thus enabling the network to learn long-term dependent time-series features.

[0167] In the audio reconstruction process, the reconstructed time-domain audio signal first needs to be divided into time segments suitable for LSTM processing. A common approach is the time-series sliding window method, which divides the signal into fixed-length windows (e.g., 256 samples) and sets a certain frame shift (e.g., 128 samples) to ensure some overlap between adjacent windows, enhancing temporal continuity. The sliding window maintains signal coherence along the time axis, allowing each time segment to carry information from preceding and following moments, thereby improving LSTM's ability to model temporal dependencies.

[0168] After inputting time segments into the Long Short-Term Memory (LSTM) network, the LSTM extracts multi-scale contextual features through its gating structure, thus modeling the temporal relationships of the signal at different time scales. The principle behind this multi-scale feature extraction lies in the fact that the hidden states within the LSTM can accumulate short-term and long-term information at different levels. For example, in speech signal processing, low-level features may correspond to short-term speech components, while high-level features may reflect phoneme or word-level information over a longer time span. For audio signals, this means that the LSTM can learn short-term amplitude changes, long-term amplitude trends, and energy distribution changes over a larger time window.

[0169] Based on the extracted multi-scale contextual features, LSTM further utilizes its hidden state propagation mechanism to predict the temporal error distribution of the current time segment. The goal of error prediction is to calculate the residual between the original time-domain signal and the reconstructed time-domain signal, i.e., the distortion introduced by quantization, transformation, and processing. In the LSTM computation process, the prediction of the error distribution is based on the recursive update of the hidden state, ensuring that the error estimate for each time segment fully considers past and future information, and that the predicted residual reflects the global trend, not just local differences.

[0170] After obtaining the error distribution, nonlinear activation and amplitude constraint processing 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 constraint is to limit the dynamic range of the compensation signal and avoid introducing additional distortion due to excessively large compensation values. For example, a preset compensation range [-1, 1] can be set to ensure that the residual compensation signal does not cause excessive audio amplification or clipping.

[0171] 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 errors, conversion distortion, etc., and improving the clarity and naturalness of the final audio output.

[0172] This embodiment uses LSTM for temporal error prediction, which can fully utilize the contextual information of the time series to accurately predict the residual portion in the reconstructed audio signal, reducing distortion introduced by processes such as conversion and compression. The sliding window segmentation method ensures the continuity of the temporal signal, allowing for a smooth transition 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.

[0173] In one embodiment, step S80 above includes:

[0174] S801, perform 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;

[0175] S802, determine the average energy of the reconstructed time-domain audio signal and the aligned residual compensation signal during the overlapping period between the reconstructed time-domain audio signal and the aligned residual compensation signal respectively;

[0176] S803, the gain of the residual compensation signal is adjusted according to the ratio of the average energy of the reconstructed time-domain audio signal during the overlapping period to the average energy of the aligned residual compensation signal during the overlapping period;

[0177] S804, the residual compensation signal after gain adjustment and the reconstructed time-domain audio signal are sampled and added at corresponding time points to generate a preliminary fused signal;

[0178] S805, the preliminary fused signal is subjected to amplitude limiting and smoothing filtering to generate the target audio signal.

[0179] In this embodiment, the time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to correct the audio signal in the time domain, making it closer to the original audio. Since the time-domain residual compensation signal is generated by the error prediction model, it is necessary to ensure that it is aligned with the reconstructed time-domain audio signal on the time axis and to perform phase adjustment before superposition to avoid phase shift or frequency distortion caused by signal asynchrony.

[0180] First, timestamp matching and phase calibration are performed to ensure that the residual compensation signal and the reconstructed signal are perfectly aligned on the time axis. In audio processing, different processing modules may introduce different delays, such as frame shift due to window functions and phase delay caused by filters. Therefore, timestamp matching of the residual compensation signal is necessary to ensure consistency with the timestamp of the reconstructed signal. Furthermore, since phase information has a significant impact on audio quality, especially in the high-frequency range, phase errors can lead to waveform distortion. Therefore, phase shift analysis using Short-Time Fourier Transform (STFT) and phase compensation are required to ensure that the residual compensation signal is in phase with the reconstructed signal within each time segment.

[0181] After time alignment, the average energy of the reconstructed time-domain audio signal and the aligned residual compensation signal needs to be calculated separately during the overlapping period between them. The overlapping period refers to the common part of the two signals on the time axis. This part needs to be energy analyzed before fusion to ensure that the compensated signal remains stable in amplitude. The average energy can be calculated using a short-time 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.

[0182] After obtaining the average energy, the ratio between 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 that of the reconstructed audio signal, avoiding over- or under-compensation. For example, if the average energy of the residual signal is higher than that of the reconstructed signal, it may cause an abrupt increase in the audio signal; conversely, if the average energy of the residual signal is lower, it may result in insufficient compensation. Therefore, a dynamic normalization method can be used to scale the residual signal according to the energy ratio, ensuring that its energy level during overlapping periods remains consistent with that of the reconstructed signal.

[0183] After gain adjustment, the residual compensation signal with the adjusted gain is added to the reconstructed time-domain audio signal at the corresponding time points to generate a preliminary fused signal. The addition of sampled values ​​is performed point-by-point, that is, the value of each sample point is linearly superimposed to ensure the continuity of the audio signal.

[0184] Finally, to improve the quality of the final signal, the initial fused signal needs to be subjected to amplitude limiting and smoothing filtering. Amplification limiting aims to prevent the audio signal amplitude from exceeding an acceptable range, avoiding clipping distortion. Amplification methods based on dynamic range control, such as soft thresholding, can be used, ensuring that the signal is not directly clipped when it exceeds a set maximum amplitude, but rather transitions smoothly. Smoothing filtering removes high-frequency noise that may be introduced during the fusion process. Low-pass filters or time-frequency transformation-based methods can be used for smoothing, making the final target audio signal closer to the natural characteristics of the original audio.

[0185] This embodiment uses timestamp matching and phase calibration to ensure that the residual compensation signal and the reconstructed audio signal are consistent in time and phase, avoiding distortion caused by signal asynchrony. Gain adjustment is performed by calculating the energy-to-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 by point-by-point addition to effectively correct residual errors in the audio signal. Amplification and smoothing filtering processes prevent clipping distortion caused by over-compensation and eliminate high-frequency noise, resulting in a more natural and smooth final target audio signal.

[0186] In one embodiment, an audio compression and reconstruction apparatus is provided, which corresponds one-to-one with the audio compression and reconstruction methods described in the above embodiments. Referring to Figure 3, which is a functional block diagram of a preferred embodiment of the audio compression and reconstruction apparatus of this application, the apparatus comprises a time-frequency conversion module 10, a feature extraction module 20, a quantization encoding module 30, a decoding and recovery module 40, a spectrum spreading module 50, a time-frequency reconstruction module 60, a time-domain error prediction module 70, and a time-domain fusion module 80. Detailed descriptions of each functional module are as follows:

[0187] Time-frequency transformation module 10 is used to perform corrected discrete cosine transform processing on the original audio signal to generate time-frequency domain features;

[0188] Feature extraction module 20 is used to extract key spectral information from the time-frequency domain features using a lightweight convolutional neural network;

[0189] Quantization encoding module 30 is used to perform residual vector quantization processing on the key spectral information to generate compressed feature codes;

[0190] Decoding and recovery module 40 is used to perform residual vector inverse quantization on the compressed feature code to generate basic spectral features;

[0191] The spectrum extension module 50 is used to input the basic spectrum features into the spectrum extension network for high-frequency component compensation processing to generate complete spectrum features;

[0192] The time-frequency reconstruction module 60 is used to perform a modified discrete cosine inverse transform on the complete spectral features to generate a reconstructed time-domain audio signal.

[0193] The time-domain error prediction module 70 is used 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.

[0194] The time-domain fusion module 80 is used to superimpose the time-domain residual compensation signal and the reconstructed time-domain audio signal to generate the target audio signal.

[0195] Specific limitations regarding the audio compression and reconstruction apparatus can be found in the aforementioned limitations regarding the audio compression and reconstruction methods, and will not be repeated here. Each module in the aforementioned audio compression and reconstruction apparatus can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the operations corresponding to each module. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional units and modules is only used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the apparatus can be divided into different functional units or modules to complete all or part of the functions described above.

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

[0197] In one embodiment, a computer device is provided, which can be a user terminal, and its internal structure diagram can be as shown in Figure 5. 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 provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs 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 implements the functions or steps of an audio compression and reconstruction method on the user terminal side.

[0198] 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, wherein the processor executes the computer program to perform the following steps:

[0199] The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features;

[0200] Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network;

[0201] The key spectral information is subjected to residual vector quantization to generate compressed feature codes;

[0202] The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features;

[0203] The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features.

[0204] The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal;

[0205] The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal.

[0206] The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

[0207] In one embodiment, a non-volatile computer-readable storage medium is provided, which may be non-volatile or volatile, and stores a computer program thereon. When the computer program is executed by a processor, it performs the following steps:

[0208] The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features;

[0209] Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network;

[0210] The key spectral information is subjected to residual vector quantization to generate compressed feature codes;

[0211] The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features;

[0212] The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features.

[0213] The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal;

[0214] The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal.

[0215] The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

[0216] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions on the server side and user side in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0217] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Furthermore, any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory.

[0218] If any software tools or components not belonging to this company appear in the embodiments of this application, they are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been authorized (with the knowledge and consent) by the relevant parties or has been fully authorized by all parties, and the executing entity may obtain it through various public, legal, and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with the relevant laws and regulations of the relevant countries and regions, and do not violate public order and good morals.

Claims

1. A method of audio compression and reconstruction, wherein, Includes the following steps: The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features; Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network; The key spectral information is subjected to residual vector quantization to generate compressed feature codes; The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features; The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features. The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal; The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal. The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

2. The audio compression and reconstruction method of claim 1, wherein, Extracting key spectral information from the time-frequency domain features using a lightweight convolutional neural network, including: The time-frequency domain features are processed by deep convolution using a lightweight convolutional neural network to generate a deep convolutional feature map. The depthwise convolutional feature map is subjected to pointwise convolution processing to generate a pointwise convolutional feature map; Attention weight analysis is performed on the pointwise convolutional feature map in the frequency domain to generate a frequency domain attention mask; The frequency domain attention mask is weighted and fused with the pointwise convolutional feature map to generate the key spectral information.

3. The audio compression and reconstruction method of claim 2, wherein, Attention weight analysis is performed on the pointwise convolutional feature map in the frequency domain to generate a frequency domain attention mask, including: A two-dimensional discrete cosine transform is performed on the pointwise convolutional feature map to extract the coefficients of multiple different frequency components of the pointwise convolutional feature map; Based on the key spectral characteristics of the audio signal, a set of target frequency components is selected from the coefficients of the plurality of different frequency components; Based on the coefficients of the target frequency components, determine the frequency domain attention weights; The frequency domain attention weights are processed by a mapping function and normalized to generate a frequency domain attention mask.

4. The audio compression and reconstruction method of claim 1, wherein, The key spectral information is subjected to residual vector quantization to generate compressed feature codes, including: The key spectral information is divided into multiple sub-vectors; Perform first-level residual vector quantization on each sub-vector to generate a first-level quantization index and determine the first-level residual vector; Perform second-level residual vector quantization processing based on the first-level residual vector to generate a second-level quantization index and determine the second-level residual vector. Determine the norm value of the second-level residual vector and determine whether the norm value of the second-level residual vector is lower than a preset threshold. When the norm of the second-level residual vector is lower than a preset threshold, the first-level quantization index and the second-level quantization index are used as the final quantization index of the current sub-vector. When the norm of the second-level residual vector is not lower than the preset threshold, the third-level residual vector quantization process is performed based on the second-level residual vector to generate the third-level quantization index, and the first-level quantization index, the second-level quantization index, and the third-level quantization index are used as the final quantization index of the current sub-vector. Entropy encoding is performed on the final quantization index of all sub-vectors to generate the compressed feature code.

5. The audio compression and reconstruction method of claim 1, wherein, The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features, including: Low-frequency sub-band features are extracted from the basic spectral features through frequency domain convolution processing; Based on the low-frequency subband features, high-frequency subband prediction features are generated through a deconvolution layer; Determine the average energy of the overlapping frequency bands between the basic spectral features and the high-frequency sub-band prediction features; Based on the ratio of the average energy of the basic spectral features in the overlapping frequency band to the average energy of the high-frequency sub-band prediction features in the overlapping frequency band, the high-frequency sub-band prediction features are subjected to gain compensation processing. The high-frequency subband prediction features after gain compensation are concatenated with the basic spectral features in the frequency domain to generate the complete spectral features.

6. The audio compression and reconstruction method of claim 5, wherein, Extracting low-frequency sub-band features from the basic spectral features through frequency domain convolution processing includes: The basic spectral features are divided into frames to obtain multiple spectral frames; Each of the spectrum frames is convolved using a preset frequency domain convolution kernel to extract the low-frequency components from the spectrum frames. The low-frequency components are superimposed and combined to generate low-frequency sub-band features.

7. The audio compression and reconstruction method of claim 5, wherein, Based on the low-frequency subband features, high-frequency subband prediction features are generated through a deconvolution layer, including: The low-frequency subband features are input into the deconvolution layer; The low-frequency subband features are upsampled using the deconvolution layer to generate preliminary high-frequency features. The preliminary high-frequency features are processed by a nonlinear activation function to generate high-frequency sub-band prediction features.

8. The audio compression and reconstruction method of claim 5, wherein, Determining the average energy of the basic spectral feature and the high-frequency sub-band prediction feature in the overlapping frequency band between the basic spectral feature and the high-frequency sub-band prediction feature, including: In the basic spectral features and the high-frequency sub-band prediction features, overlapping frequency bands with the same frequency range are located; The average power spectral density of the basic spectral feature at all frequency points within the overlapping frequency band is determined as the average energy of the basic spectral feature in the overlapping frequency band. The average power spectral density of the high-frequency subband prediction feature at all frequency points within the overlapping frequency band is determined as the average energy of the high-frequency subband prediction feature in the overlapping frequency band.

9. The audio compression and reconstruction method of claim 1, wherein, The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal, including: The complete spectral features are processed by a cosine window function that satisfies time-domain symmetry and overlap addition constraints to generate a windowed time-frequency block; Perform a modified inverse discrete cosine transform on the windowed time-frequency block to generate a time-domain signal block; Each time-domain signal block is superimposed with the adjacent preceding time-domain signal block and the adjacent following time-domain signal block according to a preset overlap rate to generate an initial reconstructed time-domain signal. Phase compensation and boundary alignment are performed on the initial reconstructed time-domain signal to generate the reconstructed time-domain audio signal.

10. The audio compression and reconstruction method of claim 1, wherein, The reconstructed time-domain audio signal is processed using a long short-term memory network to perform time-domain error prediction, generating a time-domain residual compensation signal, including: The reconstructed time-domain audio signal is divided into time segments using a time-series sliding window; The time segment is input into the Long Short-Term Memory (LSTM) network, and multi-scale contextual features are extracted from the time segment through the LSTM network. Based on the multi-scale contextual features, the temporal error distribution is predicted through the hidden state transfer mechanism of the long short-term memory network; The time-domain error distribution is subjected to nonlinear activation and amplitude constraint processing to generate the time-domain residual compensation signal.

11. The audio compression and reconstruction method of claim 10, wherein, The time segment is input into a Long Short-Term Memory (LSTM) network, and multi-scale contextual features are extracted from the time segment through the LSM network, including: The time segment is input into the Long Short-Term Memory network; The information flow of the time segment is controlled by the input gate, forget gate and output gate of the long short-term memory network, the temporal dependency of the time segment is modeled at multiple time scales, and the hidden state sequence with different temporal resolution is generated. Based on the hidden state sequence, multi-scale contextual features covering short-term amplitude changes and long-term energy distribution trends are extracted.

12. The audio compression and reconstruction method of claim 1, wherein, The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal, including: The time-domain residual compensation signal and the reconstructed time-domain audio signal are time-stamp matched and phase-calibrated to generate an aligned residual compensation signal; The average energy of the reconstructed time-domain audio signal and the aligned residual compensation signal during the overlapping period between the reconstructed time-domain audio signal and the aligned residual compensation signal are determined respectively. The gain of the residual compensation signal is adjusted based on the ratio of the average energy of the reconstructed time-domain audio signal during the overlapping period to the average energy of the aligned residual compensation signal during the overlapping period. The residual compensation signal after gain adjustment is added to the reconstructed time-domain audio signal at corresponding time points to generate a preliminary fused signal; The initial fused signal is subjected to amplitude limiting and smoothing filtering to generate the target audio signal.

13. An audio compression and reconstruction apparatus, wherein, The audio compression and reconstruction device includes: The time-frequency transformation module is used to perform corrected discrete cosine transform processing on the original audio signal to generate time-frequency domain features. The feature extraction module is used to extract key spectral information from the time-frequency domain features using a lightweight convolutional neural network; The quantization encoding module is used to perform residual vector quantization processing on the key spectral information to generate compressed feature codes; The decoding and recovery module is used to perform residual vector inverse quantization on the compressed feature encoding to generate basic spectral features; The spectrum extension module is used to input the basic spectrum features into the spectrum extension network for high-frequency component compensation processing to generate complete spectrum features; The time-frequency reconstruction module is used to perform a modified inverse discrete cosine transform on the complete spectral features to generate a reconstructed time-domain audio signal. The time-domain error prediction module is used 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 superimpose the time-domain residual compensation signal with the reconstructed time-domain audio signal to generate the target audio signal.

14. A computer device, wherein, The computer device includes a memory, a processor, and an audio compression and reconstruction program stored in the memory and executable on the processor. When executed by the processor, the audio compression and reconstruction program implements the following steps of an audio compression and reconstruction method: The original audio signal is processed by a modified discrete cosine transform to generate time-frequency domain features; Key spectral information is extracted from the time-frequency domain features using a lightweight convolutional neural network; The key spectral information is subjected to residual vector quantization to generate compressed feature codes; The compressed feature encoding is subjected to residual vector inverse quantization to generate basic spectral features; The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features. The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal; The reconstructed time-domain audio signal is processed by a long short-term memory network to perform time-domain error prediction, thereby generating a time-domain residual compensation signal. The time-domain residual compensation signal is superimposed with the reconstructed time-domain audio signal to generate the target audio signal.

15. The computer device of claim 14, wherein, Extracting key spectral information from the time-frequency domain features using a lightweight convolutional neural network, including: The time-frequency domain features are processed by deep convolution using a lightweight convolutional neural network to generate a deep convolutional feature map. The depthwise convolutional feature map is subjected to pointwise convolution processing to generate a pointwise convolutional feature map; Attention weight analysis is performed on the pointwise convolutional feature map in the frequency domain to generate a frequency domain attention mask; The frequency domain attention mask is weighted and fused with the pointwise convolutional feature map to generate the key spectral information.

16. The computer device of claim 14, wherein, The key spectral information is subjected to residual vector quantization to generate compressed feature codes, including: The key spectral information is divided into multiple sub-vectors; Perform first-level residual vector quantization on each sub-vector to generate a first-level quantization index and determine the first-level residual vector; Perform second-level residual vector quantization processing based on the first-level residual vector to generate a second-level quantization index and determine the second-level residual vector. Determine the norm value of the second-level residual vector and determine whether the norm value of the second-level residual vector is lower than a preset threshold. When the norm of the second-level residual vector is lower than a preset threshold, the first-level quantization index and the second-level quantization index are used as the final quantization index of the current sub-vector. When the norm of the second-level residual vector is not lower than the preset threshold, the third-level residual vector quantization process is performed based on the second-level residual vector to generate the third-level quantization index, and the first-level quantization index, the second-level quantization index, and the third-level quantization index are used as the final quantization index of the current sub-vector. Entropy encoding is performed on the final quantization index of all sub-vectors to generate the compressed feature code.

17. The computer device of claim 14, wherein, The basic spectral features are input into a spectral extension network for high-frequency component compensation processing to generate complete spectral features, including: Low-frequency sub-band features are extracted from the basic spectral features through frequency domain convolution processing; Based on the low-frequency subband features, high-frequency subband prediction features are generated through a deconvolution layer; Determine the average energy of the overlapping frequency bands between the basic spectral features and the high-frequency sub-band prediction features; Based on the ratio of the average energy of the basic spectral features in the overlapping frequency band to the average energy of the high-frequency sub-band prediction features in the overlapping frequency band, the high-frequency sub-band prediction features are subjected to gain compensation processing. The high-frequency subband prediction features after gain compensation are concatenated with the basic spectral features in the frequency domain to generate the complete spectral features.

18. The computer device of claim 14, wherein, The complete spectral features are subjected to a modified inverse discrete cosine transform to generate a reconstructed time-domain audio signal, including: The complete spectral features are processed by a cosine window function that satisfies time-domain symmetry and overlap addition constraints to generate a windowed time-frequency block; Perform a modified inverse discrete cosine transform on the windowed time-frequency block to generate a time-domain signal block; Each time-domain signal block is superimposed with the adjacent preceding time-domain signal block and the adjacent following time-domain signal block according to a preset overlap rate to generate an initial reconstructed time-domain signal. Phase compensation and boundary alignment are performed on the initial reconstructed time-domain signal to generate the reconstructed time-domain audio signal.

19. The computer device of claim 14, wherein, The reconstructed time-domain audio signal is processed using a long short-term memory network to perform time-domain error prediction, generating a time-domain residual compensation signal, including: The reconstructed time-domain audio signal is divided into time segments using a time-series sliding window; The time segment is input into the Long Short-Term Memory (LSTM) network, and multi-scale contextual features are extracted from the time segment through the LSTM network. Based on the multi-scale contextual features, the temporal error distribution is predicted through the hidden state transfer mechanism of the long short-term memory network; The time-domain error distribution is subjected to nonlinear activation and amplitude constraint processing to generate the time-domain residual compensation signal.

20. A non-transitory computer readable storage medium, wherein, 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 as described in any one of claims 1-12.