Audio signal processing method and device

By identifying the encoding method and sampling rate of the audio signal, calculating the attenuation value of the transmission medium for frequency correction and delay compensation, the problem of frequency distortion and delay during the transmission process of the audio signal is solved, and the quality and mixing effect of the audio signal are improved.

CN118471239BActive Publication Date: 2024-08-30SHIYOU (BEIJING) TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410937145.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-08-30
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In the existing technology, audio signals have frequency distortion and delay problems during transmission and processing. Fine frequency correction and dynamic delay compensation cannot be performed based on the specific encoding method and actual sampling rate, which affects the sound quality and mixing effect.

Method used

By obtaining the encoding method and actual sampling rate of multi-channel audio signals, calculate the attenuation value of each frequency component of the transmission medium, determine the frequency correction compensation amount, and perform frequency correction processing; at the same time, perform signal delay compensation based on the sampling rate difference, and perform Clock recovery and mix processing.

Benefits of technology

It significantly reduces the distortion of audio signals, improves the overall quality and accuracy of audio signals, and ensures synchronous processing and high-quality mixing effects of multiple audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118471239B
    Figure CN118471239B
Patent Text Reader

Abstract

The present application provides a method and device for processing an audio signal, wherein the method comprises: obtaining multiple audio signals, and identifying the encoding mode and actual sampling rate of each audio signal in the multiple audio signals; performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and performing signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; performing clock recovery on each audio signal after the signal delay compensation, and performing mixing processing on each audio signal after the clock recovery to obtain the audio signal after the mixing processing. The present application solves the technical problem of signal distortion in the audio signal in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing technology, and in particular to a method and device for processing an audio signal. Background Art

[0002] During the transmission and processing of audio signals, audio signals with different encoding methods and actual sampling rates will produce frequency distortion problems. In the prior art, frequency correction processing usually uses simple filtering and equalization technology, which cannot perform fine frequency correction according to the specific encoding method and actual sampling rate, resulting in distortion of audio signals during transmission and processing, affecting the sound quality.

[0003] In addition, since audio signals are affected by media and devices during transmission, delays will occur between different audio signals. The delay compensation methods in the prior art mainly rely on the adjustment of static delay parameters, which cannot dynamically adapt to different transmission environments and signal characteristics, resulting in time misalignment of multi-channel audio signals during synchronous processing, affecting the final mixing effect.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for processing an audio signal, so as to at least solve the technical problem of signal distortion in the audio signal in the prior art.

[0006] According to one aspect of an embodiment of the present application, a method for processing an audio signal is provided, comprising: acquiring multiple audio signals, and identifying an encoding mode and an actual sampling rate of each audio signal in the multiple audio signals; performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and performing signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; performing clock recovery on each audio signal after the signal delay compensation, and performing mixing processing on each audio signal after the clock recovery to obtain an audio signal after the mixing processing; wherein, performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate comprises: calculating an attenuation value of each frequency component of each audio signal by a transmission medium used to transmit each audio signal based on the encoding mode and the actual sampling rate, and determining a frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component; and performing the frequency correction processing on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component.

[0007] According to another aspect of an embodiment of the present application, there is also provided an audio signal processing device, comprising: an acquisition module, configured to acquire multiple audio signals, and identify the encoding mode and actual sampling rate of each audio signal in the multiple audio signals; a compensation module, configured to perform frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and perform signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; a mixing module, configured to perform clock recovery on each audio signal after the signal delay compensation, perform mixing processing on each audio signal after the clock recovery, and obtain the audio signal after the mixing processing; wherein the compensation module is further configured to: calculate the attenuation value of each frequency component of each audio signal by the transmission medium used to transmit each audio signal based on the encoding mode and the actual sampling rate, and determine the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component; and perform the frequency correction processing on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component.

[0008] In an embodiment of the present application, multiple audio signals are obtained, and the encoding method and actual sampling rate of each audio signal in the multiple audio signals are identified; frequency correction processing is performed on each frequency component of each audio signal based on the encoding method and the actual sampling rate, and signal delay compensation is performed on each audio signal after frequency correction processing based on the encoding method and the actual sampling rate; clock recovery is performed on each audio signal after signal delay compensation, and mixing processing is performed on each audio signal after clock recovery to obtain an audio signal after mixing processing. Through the above method, the technical problem of signal distortion in the audio signal in the prior art is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0010] Figure 1 is a flowchart of a method for processing an audio signal according to an embodiment of the present application;

[0011] Figure 2 is a flow chart of a method for performing frequency correction processing and signal delay compensation according to an embodiment of the present application;

[0012] Figure 3 is a flowchart of another method for processing an audio signal according to an embodiment of the present application;

[0013] Figure 4is a flow chart of frequency correction processing according to an embodiment of the present application;

[0014] Figure 5 is a flowchart of performing signal delay compensation according to an embodiment of the present application;

[0015] Figure 6 is a structural schematic diagram of an audio signal processing device according to an embodiment of the present application;

[0016] Figure 7 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0017] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0018] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0019] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0020] Example 1

[0021] The present application embodiment provides a method for processing an audio signal, such as Figure 1 As shown, the method comprises the following steps:

[0022] Step S102: acquiring multiple audio signals, and identifying the encoding mode and actual sampling rate of each audio signal in the multiple audio signals.

[0023] By analyzing the bit rate of each audio signal, the actual sampling rate of each audio signal can be determined. By reading and parsing the bit rate information in the audio signal, the actual sampling rate of the audio signal can be inferred. For example, some audio file formats will clearly indicate the bit rate information in the file header or frame header, and with this information, the sampling frequency of the signal can be accurately calculated.

[0024] At the same time, by analyzing the bit rate, frame structure and identifier of each audio signal, the encoding method of the audio signal can be identified. The bit rate not only affects the sampling rate, but is also closely related to the encoding method. Different encoding methods use different bit rate ranges and processing methods. The frame structure provides more encoding details, including the length of the frame, the number of samples, and other parameters. These structural features vary in different encoding methods. The identifier is a unique mark of the encoding method, which is used to indicate the specific encoding method used by the signal, such as MP3, AAC, WAV, etc. By combining the analysis of the bit rate, frame structure and identifier, the encoding method of the audio signal can be fully identified, ensuring that the appropriate decoding and processing algorithms are applied during the processing process, so as to accurately restore and process the audio data.

[0025] Step S104: performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and performing signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate.

[0026] In some embodiments, the method of performing frequency correction processing and signal delay compensation is as follows: Figure 2 As shown, the following steps may be included:

[0027] Step S1042: performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate.

[0028] 1) Calculate the attenuation value.

[0029] Based on the encoding method and the actual sampling rate, the attenuation value of each frequency component of each audio signal by the transmission medium used to transmit the audio signal is calculated. For example, the attenuation coefficient and the phase delay coefficient of the transmission medium are determined based on the frequency components of each audio signal, and the transmission loss value of each frequency component is calculated based on the attenuation coefficient and the phase delay coefficient; based on the encoding method and the actual sampling rate, the weighting factor of each frequency component is calculated, and the attenuation value of each frequency component is calculated based on the transmission loss value and the weighting factor.

[0030] This embodiment can effectively perform frequency correction processing by accurately calculating the attenuation value of each frequency component of each audio signal of the transmission medium based on the encoding method and the actual sampling rate, including the attenuation coefficient and phase delay coefficient of the transmission medium, and the weighting factor of each frequency component, thereby significantly reducing the distortion of the audio signal during transmission and improving the overall quality and accuracy of the audio signal.

[0031] 2) Calculate the frequency correction compensation amount and perform frequency correction processing.

[0032] First, the frequency correction compensation amount of each frequency component is determined based on the attenuation value of each frequency component; for example, based on the attenuation value of each frequency component, the frequency correction compensation amount of each frequency component is determined by using an inverse filter having a frequency response opposite to the attenuation characteristic of the transmission medium. Subsequently, the frequency correction processing is performed on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component.

[0033] This embodiment uses an inverse filter to determine the frequency correction compensation amount based on the attenuation value of each frequency component, and then performs frequency correction processing based on these compensation amounts. It can effectively offset the influence of the transmission medium on the audio signal, significantly reduce signal distortion, and ensure the high fidelity of the audio signal during transmission, thereby improving the overall quality and accuracy of audio processing.

[0034] Step S1044: performing signal delay compensation on each channel of the audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate.

[0035] For example, the sampling rate difference of each audio signal is calculated according to the actual sampling rate and the reference sampling rate; and signal delay compensation is performed on each audio signal after the frequency correction processing based on the sampling rate difference and the encoding method, as well as the length and type of the transmission medium. This embodiment calculates the sampling rate difference of each audio signal and performs signal delay compensation based on the difference, the encoding method, and the length and type of the transmission medium. It is possible to accurately adjust the time synchronization of the audio signal and reduce the signal delay problem caused by inconsistent sampling rates and differences in transmission medium characteristics, thereby ensuring synchronous processing of multiple audio signals and high-quality mixing effects.

[0036] Step S106, performing clock recovery on each of the audio signals after signal delay compensation, and performing mixing processing on each of the audio signals after clock recovery to obtain a mixed audio signal;

[0037] 1) Perform clock recovery.

[0038] An error signal between each audio signal and the local clock signal is generated by comparing the phase difference between each audio signal after signal delay compensation and the local clock signal; the error signal is processed to filter out interference in the error signal with an interference amplitude greater than a preset threshold (for example, any value in the range of 1 microvolt to 10 microvolts) to obtain a processed error signal; the processed error signal is used to adjust the output frequency of the phase-locked loop, and the clock signal of the phase-locked loop is used to recover the clock of each audio signal after signal delay compensation.

[0039] This embodiment generates an error signal by comparing the phase difference between each audio signal after signal delay compensation and the local clock signal, and processes the error signal to filter out interference, so as to accurately adjust the output frequency of the phase-locked loop, thereby recovering the clock of the audio signal. This not only improves the synchronization and stability of the audio signal, but also effectively reduces the distortion and delay caused by the phase difference, ensuring the high quality and consistency of the audio signal.

[0040] 2) Mix the sound.

[0041] Each audio signal is normalized so that the amplitude of each audio signal is consistent; each audio signal is mixed according to the same sampling rate and time reference to obtain a mixed audio signal. This embodiment can effectively eliminate the amplitude difference and time inconsistency problems between the audio signals by normalizing each audio signal to make the amplitude consistent and mixing according to the same sampling rate and time reference, thereby obtaining a balanced and harmonious mixing effect and improving the overall quality of the audio signal and the auditory experience.

[0042] Example 2

[0043] The present application embodiment provides another method for processing an audio signal. Figure 3 As shown, the method comprises the following steps:

[0044] Step S302: Obtain the encoding method and actual sampling rate of the audio signal.

[0045] The solution is similar to step S102 and will not be repeated here.

[0046] Step S304: Perform frequency correction processing based on the encoding method and the actual sampling rate.

[0047] like Figure 4 As shown, the frequency correction process includes the following steps:

[0048] Step S3042: Calculate, based on the encoding mode and the actual sampling rate, the attenuation value of each frequency component of each audio signal caused by the transmission medium used to transmit each audio signal.

[0049] 1) Calculate the transmission loss value of each frequency component.

[0050] First, frequency domain analysis is performed on each audio signal. The time domain audio signal is converted into a frequency domain signal by using Fourier transform, so that each frequency component can be identified.

[0051] Next, determine the characteristics of the transmission medium. The effects of the transmission medium on the signal include energy loss and phase change, which can be described by the attenuation coefficient and the phase delay coefficient. The attenuation coefficient indicates the rate at which the signal loses energy during transmission, usually expressed in decibels per unit length; the phase delay coefficient indicates the rate at which the signal changes phase during transmission, usually expressed in radians per unit length.

[0052] Then, based on each frequency component, the energy loss value and phase delay value of the transmission medium are calculated. The energy loss value can be obtained by multiplying the length of the transmission medium by the attenuation coefficient of the frequency component. In terms of phase delay, the phase delay value can be obtained by multiplying the length of the transmission medium by the phase delay coefficient of the frequency component.

[0053] Finally, the transmission loss value is calculated based on the energy loss value and the phase delay value. The transmission loss value combines the energy loss and phase change of the signal and can be expressed as a complex value, which represents the overall loss of the signal during the transmission process. The real part of this complex value reflects the energy loss of the signal, and the imaginary part reflects the phase delay of the signal.

[0054] Through the above steps, the attenuation coefficient and phase delay coefficient of each frequency component of each audio signal in the transmission medium can be accurately determined, and the transmission loss value of each frequency component can be calculated based on these coefficients. In this way, in the subsequent frequency correction process, the use of an inverse filter with an opposite frequency response can effectively compensate for the influence of the transmission medium on the audio signal, significantly reduce the distortion in the transmission process, and improve the overall quality and accuracy of the audio signal.

[0055] 2) Calculating the attenuation value of each frequency component.

[0056] First, the weighting factor of each frequency component is calculated. The weighting factor is used to adjust the importance of each frequency component in the processing process. Specifically, the importance of different frequency components can be determined by analyzing the characteristics of the encoding method, such as whether there is pre-emphasis or equalization processing. At the same time, the actual sampling rate will also affect the distribution and weight of the frequency components. By comprehensively considering these factors, the weighting factor of each frequency component is calculated, so that the signal can be adjusted more accurately in subsequent processing.

[0057] Then, based on the previously calculated transmission loss value and weighting factor, the attenuation value of each frequency component is calculated. The transmission loss value reflects the energy loss and phase delay of the audio signal in the transmission medium, while the weighting factor adjusts the importance of each frequency component. When calculating the attenuation value, the transmission loss value can be combined with the weighting factor to reflect the actual attenuation of each frequency component after passing through the transmission medium. Specifically, the attenuation value of each frequency component can be obtained by multiplying the corresponding weighting factor according to the size of the transmission loss value.

[0058] Through the above steps, the attenuation value of each frequency component can be accurately calculated. These attenuation values ​​can be used in the subsequent frequency correction process to design an inverse filter to compensate for the impact of the transmission medium on the audio signal. This can significantly reduce the signal distortion caused by the transmission process and improve the overall quality and accuracy of the audio signal.

[0059] Step S3044: determining the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component, and performing the frequency correction processing based on the frequency correction compensation amount.

[0060] First, an inverse filter is designed based on the attenuation characteristics of the transmission medium. The inverse filter is used to generate a frequency response that is opposite to the attenuation characteristics of the transmission medium, so that the attenuation and phase delay caused by the transmission medium can be compensated during the processing. Specifically, the frequency response of the inverse filter is inversely proportional to the attenuation characteristics of the transmission medium at each frequency component. If a certain frequency component is attenuated a lot in the transmission medium, the inverse filter will have a higher gain at this frequency to compensate for the energy loss of this frequency component.

[0061] Then, the audio signal is processed using an inverse filter. The inverse filter makes corresponding gain adjustments to each frequency component so that the filtered signal can compensate for the attenuation and phase delay when passing through the transmission medium in the frequency domain. During the specific operation, each frequency component of the audio signal will be gain adjusted by the inverse filter to restore it to its original unattenuated state.

[0062] Through the above steps, the frequency correction compensation amount of each frequency component can be determined. These compensation amounts are actually the gain values ​​of the inverse filter at each frequency, which can effectively offset the influence of the transmission medium on the audio signal, significantly reduce signal distortion and phase error, and thus improve the overall quality and accuracy of the audio signal.

[0063] Step S306: Perform signal delay compensation based on the encoding method and the actual sampling rate.

[0064] like Figure 5 As shown, signal delay compensation includes the following steps:

[0065] Step S3062: Calculate the sampling rate difference of each audio signal.

[0066] First, the actual sampling rate of each audio signal is obtained and a reference sampling rate is determined. The reference sampling rate is usually a standard value used for comparison with the actual sampling rate.

[0067] Next, by comparing the actual sampling rate with the reference sampling rate, the sampling rate difference is calculated. The sampling rate difference reflects the deviation between the sampling rate and the reference sampling rate, which will cause errors in the time of the audio signal and affect the synchronization and consistency of the signal.

[0068] Step S3064: Based on the sampling rate difference, the encoding method, and the length and type of the transmission medium, signal delay compensation is performed on each audio signal after the frequency correction processing.

[0069] First, calculate the difference between the actual sampling rate and the reference sampling rate of each audio signal. Assume that the actual sampling rate is f actual , the reference sampling rate is f reference , then the sampling rate difference can be expressed as: Δf = f actual -f reference The sampling rate difference reflects the time deviation that may occur in the transmission process of the audio signal. This difference will cause the time base of the audio signal to shift, thereby affecting the synchronization of multiple audio signals.

[0070] Next, determine the effect of the encoding method on signal delay. Different encoding methods will have different effects on the processing and transmission time of the signal, so the specific characteristics of the encoding method need to be considered when performing delay compensation. For example, some encoding methods may introduce additional processing delays that need to be corrected during the compensation process.

[0071] In addition, the effect of the length and type of the transmission medium on signal delay also needs to be considered. The length of the transmission medium directly affects the propagation time of the signal in the medium, and longer transmission media generally result in greater delays. At the same time, the type of transmission medium (such as cable, optical fiber, or wireless) will also have different effects on signal delay, because the propagation speed and delay characteristics of different media are different. For example, the propagation speed of light in optical fiber is generally about 2 / 3 of the speed of light, the propagation speed of signals in coaxial cables is generally about 0.66 times the speed of light, and the propagation speed of sound waves in air is about 343 meters per second.

[0072] Taking into account the above factors, when performing signal delay compensation, the delay compensation amount can be calculated by the following formula: Δt=(Δf×T+C)+L / v , where Δt is the delay compensation amount, T is the total duration of the signal, L is the length of the transmission medium, v is the propagation speed in the transmission medium, and C is the coding adjustment coefficient. The coding adjustment coefficient can be used to estimate the processing delay of different coding methods through theoretical calculation and simulation. For example, for the MP3 coding method, the processing time introduced by each step of the MP3 algorithm (such as Huffman coding, quantization, inverse discrete cosine transform (IDCT)), etc.) is calculated and the total delay is accumulated to obtain the coding adjustment coefficient C.

[0073] This embodiment combines the time deviation caused by the sampling rate difference, the processing delay caused by the encoding method and the propagation delay caused by the transmission medium. By combining these factors, the total delay compensation amount can be accurately calculated, thereby ensuring the synchronization and high-quality transmission of the audio signal.

[0074] Step S308: Perform clock recovery and audio mixing processing.

[0075] 1) Clock Recovery

[0076] In the process of generating an error signal by comparing the phase difference between each audio signal after signal delay compensation and the local clock signal, it is first necessary to measure the phase difference between each audio signal and the local clock signal. This phase difference reflects the time deviation of the audio signal during transmission. By comparing these phase differences, an error signal can be generated, which represents the offset between the actual time reference of the audio signal and the ideal time reference.

[0077] Next, the generated error signal is processed to filter out interference signals whose interference amplitude is greater than a preset threshold. In this way, unnecessary noise and interference signals can be removed to ensure the accuracy and reliability of the error signal. By using filters or other signal processing techniques, interference can be effectively removed to obtain a clean error signal.

[0078] The processed error signal is then used to adjust the output frequency of a phase-locked loop (PLL). A phase-locked loop is a feedback control system that adjusts its output frequency to keep the phase of its output signal consistent with the phase of its input signal. By inputting the processed error signal into the phase-locked loop, the phase-locked loop adjusts its output frequency based on the size and direction of the error signal so that the phase of the audio signal gradually converges with the phase of the local clock signal.

[0079] Finally, the clock signal of the phase-locked loop is used to restore the clock of each audio signal after signal delay compensation. In this way, the time synchronization of each audio signal and the local clock signal can be ensured, thereby improving the stability and consistency of the audio signal.

[0080] 2) Mixing Process

[0081] First, each audio signal is normalized, which can be achieved by determining the maximum amplitude value of each audio signal and adjusting it to a uniform standard amplitude range.

[0082] Next, each normalized audio signal is mixed according to the same sampling rate and time base. The sampling rate is unified to ensure that all audio signals are sampled at the same time interval, thereby avoiding the time deviation problem caused by different sampling rates. The time base is unified to ensure that all audio signals can be synchronized during mixing. In this way, the starting time points and time sequences of all audio signals need to be adjusted to be consistent, so that when mixing, no signal will be ahead or behind other signals.

[0083] Finally, each audio signal after normalization, sampling rate adjustment and time base unification is mixed. The mixing process is to synthesize multiple audio signals according to preset proportions and rules to generate a comprehensive audio output signal. This processing needs to consider the volume ratio, phase relationship and frequency components of each signal to ensure that the mixed audio signal is balanced, harmonious and high-quality in hearing. In this way, the final mixed audio signal will have consistent amplitude, unified sampling rate and synchronized time base, ensuring its high-quality performance in various audio application scenarios.

[0084] Example 3

[0085] The present application embodiment provides a device for processing an audio signal, such as Figure 6 As shown, the processing device includes: an acquisition module 62 configured to acquire multiple audio signals, and identify the encoding mode and actual sampling rate of each audio signal in the multiple audio signals; a compensation module 64 configured to perform frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and perform signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; a mixing module 66 configured to perform clock recovery on each audio signal after the signal delay compensation, and perform mixing processing on each audio signal after the clock recovery to obtain an audio signal after the mixing processing;

[0086] Among them, the compensation module 66 is also configured to: calculate the attenuation value of each frequency component of each audio signal caused by the transmission medium used to transmit each audio signal based on the encoding method and the actual sampling rate, and determine the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component; and perform the frequency correction processing on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component.

[0087] It should be noted that the processing device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the processing device provided in the above embodiment belongs to the same concept as the processing method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0088] Example 4

[0089] Figure 7 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0090] like Figure 7 As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0091] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0092] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the electronic device may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0093] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a transmission medium, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0095] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0096] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.

[0097] The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement each step of the method embodiment.

[0098] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing an audio signal, characterized in that: include: Acquire multiple audio signals, and identify the encoding mode and actual sampling rate of each audio signal in the multiple audio signals; Performing frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and performing signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; Performing clock recovery on each audio signal after signal delay compensation, and performing mixing processing on each audio signal after clock recovery to obtain a mixed audio signal; The method of performing frequency correction processing on each frequency component of each audio signal based on the encoding method and the actual sampling rate includes: calculating the attenuation value of each frequency component of each audio signal caused by a transmission medium used to transmit each audio signal based on the encoding method and the actual sampling rate, and determining the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component; performing the frequency correction processing on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component; The method of performing signal delay compensation on each channel of audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate comprises: calculating the sampling rate difference of each channel of audio signal according to the actual sampling rate and the reference sampling rate; performing signal delay compensation on each channel of audio signal after the frequency correction processing based on the sampling rate difference and the encoding mode, and the length and type of the transmission medium; Among them, performing clock recovery on each audio signal after signal delay compensation includes: generating an error signal between each audio signal and the local clock signal by comparing the phase difference between each audio signal after signal delay compensation and the local clock signal; processing the error signal, filtering out interference in the error signal with an interference amplitude greater than a preset threshold, and obtaining a processed error signal; using the processed error signal to adjust the output frequency of the phase-locked loop, and using the clock signal of the phase-locked loop to recover the clock of each audio signal after signal delay compensation.

2. The method according to claim 1, characterized in that Calculating, based on the encoding mode and the actual sampling rate, the attenuation value of each frequency component of each audio signal by a transmission medium used to transmit each audio signal, including: Determine the attenuation coefficient and the phase delay coefficient of the transmission medium based on each frequency component of each audio signal, and calculate the transmission loss value of each frequency component based on the attenuation coefficient and the phase delay coefficient; Based on the encoding mode and the actual sampling rate, a weighting factor of each frequency component is calculated, and based on the transmission loss value and the weighting factor, the attenuation value of each frequency component is calculated.

3. The method according to claim 2, characterized in that Determining the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component includes: determining the frequency correction compensation amount of each frequency component by using an inverse filter having a frequency response opposite to the attenuation characteristics of the transmission medium based on the attenuation value of each frequency component.

4. The method according to claim 1, characterized in that: Identifying the encoding mode and actual sampling rate of each audio signal in the multiple audio signals, including: Determine the actual sampling rate of each audio signal by analyzing the bit rate of each audio signal; The encoding method is identified by analyzing the bit rate, frame structure and identifier of each audio signal.

5. The method according to claim 1, characterized in that The method further comprises: performing a mixing process on each of the audio signals after the clock recovery to obtain a mixed audio signal. Normalizing each channel of audio signals after clock recovery so that the amplitudes of each channel of audio signals are consistent; The normalized audio signals of each channel are mixed according to the same sampling rate and time reference to obtain the mixed audio signals.

6. An audio signal processing device, characterized in that: include: An acquisition module is configured to acquire multiple audio signals and identify the encoding mode and actual sampling rate of each audio signal in the multiple audio signals; a compensation module, configured to perform frequency correction processing on each frequency component of each audio signal based on the encoding mode and the actual sampling rate, and perform signal delay compensation on each audio signal after the frequency correction processing based on the encoding mode and the actual sampling rate; A mixing module is configured to perform clock recovery on each audio signal after signal delay compensation, and perform mixing processing on each audio signal after clock recovery to obtain an audio signal after mixing processing; Wherein, the compensation module is further configured to: calculate the attenuation value of each frequency component of each audio signal caused by the transmission medium used to transmit each audio signal based on the encoding mode and the actual sampling rate, and determine the frequency correction compensation amount of each frequency component based on the attenuation value of each frequency component; perform the frequency correction processing on each frequency component of each audio signal based on the frequency correction compensation amount of each frequency component; The compensation module is further configured to: calculate the sampling rate difference of each audio signal according to the actual sampling rate and the reference sampling rate; perform signal delay compensation on each audio signal after the frequency correction processing based on the sampling rate difference and the encoding method, and the length and type of the transmission medium; Among them, the mixing module is also configured to: generate an error signal between each audio signal and the local clock signal by comparing the phase difference between each audio signal after signal delay compensation and the local clock signal; process the error signal, filter out the interference in the error signal with an interference amplitude greater than a preset threshold, and obtain a processed error signal; use the processed error signal to adjust the output frequency of the phase-locked loop, and use the clock signal of the phase-locked loop to recover the clock of each audio signal after signal delay compensation.

7. An electronic device, characterized in that: include: a memory configured to store a computer program; The processor is configured to make the computer execute the method according to any one of claims 1 to 5 when the program is executed.

8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed, the computer is enabled to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Audio encoder, encoding methods, decoder, decoding method, and encoded audio signal

    CN101743586A

  • Error blind correction method for time interleaved sampling ADC (Analog-to-Digital Converter)

    CN106341132A

  • Mixed multi-description sine encoder method for improving voice frame loss compensation property

    CN109616129A

  • Loudness adjustment for down-mixed audio content

    CN110675883A

  • Encoding / Decoding method of audio signal and recording medium recorded with program thereof

    JP2000068856A