A method for processing analog compressor based on optoelectronic technology

Through the analog compressor processing method based on photoelectric technology, combined with the characteristic data of the audio signal and signal quality assessment, the intelligent compression and release control of the analog compressor is realized, solving the problem of difficulty in balancing control accuracy and warmth in the existing technology. , providing efficient and personalized audio processing effects.

CN119068889BActive Publication Date: 2025-01-21SHENZHEN XINGAIFA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411561691.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-01-21
Estimated Expiration
2044-11-05

AI Technical Summary

Technical Problem

Existing analog compressors have limitations in precise control and dynamic response speeds, while digital compressors may lose the unique warmth of analog devices, making it difficult to achieve audio compression effects that take into account both efficiency and audio-visual experience.

Method used

Adopting an analog compressor processing method based on photoelectric technology, by obtaining the audio characteristic data of the audio signal, comprehensively analyzing the signal quality, evaluating the signal quality level of the input device, and adjusting the compensation scheme according to the level, intelligent compression and release control of the analog compressor is achieved .

Benefits of technology

It realizes intelligent compression and release control of analog compressors, improving the accuracy and response speed of audio processing, while maintaining the warmth of analog equipment, providing better and personalized audio processing effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068889B_ABST
    Figure CN119068889B_ABST
Patent Text Reader

Abstract

The invention discloses an analog compressor processing method based on photoelectric technology, relates to the field of compressors, solves the problem that it is difficult for analog compressors to achieve audio compression effects that balance efficiency and audio-visual experience, and the method steps include: when the analog compressor receives an audio signal input, obtaining audio feature data of the audio signal; comprehensively analyzing the signal quality of the audio signal, analyzing to obtain the input quality level of the audio signal in each period, comprehensively evaluating the signal quality of the audio input device, and evaluating to obtain the signal quality level of the audio input device; adjusting the compensation scheme of the analog compressor, after selecting the compensation scheme, the analog compressor compresses the input signal, and then obtains the audio effect data of the output audio; comprehensively evaluating the compensation effect of the analog compressor, and regulating the compensation strength of the analog compressor, the invention realizes intelligent compression and intelligent release control of the analog compressor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of compressors, and relates to analog compressor processing technology, in particular to an analog compressor processing method based on photoelectric technology. Background Art

[0002] An analog compressor is an audio processing device that uses optoelectronic technology to adjust the dynamic range of audio signals to better adapt to different playback environments and audio sources. The application of optoelectronic technology in analog compressor processing provides higher precision and control performance for audio processing, allowing the compressor to better adapt to the dynamic range and sound quality requirements of different audio signals, thereby providing higher quality and more personalized audio processing effects.

[0003] Under the current technical background, although traditional analog compressors can provide warm and natural sound characteristics, they are often limited in precise control and dynamic response speed. Although digital compressors have advantages in flexibility and precision, they may lose the unique warmth of analog devices. In order to achieve audio compression effects that take into account both efficiency and audio-visual experience, how to achieve intelligent compression and release control of analog compressors is the current problem;

[0004] To this end, the present invention proposes an analog compressor processing method based on optoelectronic technology. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention aims to provide an analog compressor processing method based on optoelectronic technology.

[0006] The technical problems to be solved by the present invention are:

[0007] How to implement Smart Compression and Smart Release controls for analog compressors.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A method for processing an analog compressor based on optoelectronic technology, the method steps comprising:

[0010] Step S101, when the analog compressor receives an audio signal input, audio feature data of the audio signal is obtained;

[0011] Step S102, comprehensively analyzing the signal quality of the audio signal to obtain the input quality level of the audio signal in each period, and comprehensively evaluating the signal quality of the audio input device in combination with the input quality level to obtain the signal quality level of the audio input device;

[0012] Step S103, adjusting the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then obtains audio effect data of the output audio;

[0013] Step S104, comprehensively evaluating the compensation effect of the analog compressor in combination with the audio effect data, and adjusting the compensation strength of the analog compressor according to the compensation effect.

[0014] Further, the audio feature data includes a signal wavelength, a signal amplitude, and a signal-to-noise ratio of the audio signal;

[0015] The audio effect data includes an audio loss rate, an audio distortion rate, a low frequency distribution rate, a middle frequency distribution rate, and a high frequency distribution rate of the output audio.

[0016] Furthermore, the analysis process of the input quality level in step S102 is specifically as follows:

[0017] Obtain the signal wavelength, signal amplitude and signal-to-noise ratio of the audio signal, and calculate the input quality value of the audio signal in each period;

[0018] Compare the input quality value of the audio signal in each period with the input quality threshold one by one;

[0019] If the input quality value is less than or equal to the first input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the first input quality level;

[0020] If the input quality value is greater than the first input quality threshold and less than or equal to the second input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the second input quality level;

[0021] If the input quality value is greater than the second input quality threshold, it is determined that the input quality level of the audio signal in the corresponding period is a third input quality level.

[0022] Furthermore, the values ​​of the first input quality threshold and the second input quality threshold are both greater than zero, the first input quality threshold is less than the second input quality threshold, the signal quality of the first input quality is lower than the signal quality of the second input quality, and the signal quality of the second input quality is lower than the signal quality of the third input quality.

[0023] Furthermore, the signal quality level evaluation process in step S102 specifically includes:

[0024] Obtaining the input quality level of the audio signal in each period, and obtaining the number of first quality periods, the number of second quality periods, and the number of third quality periods by counting;

[0025] Among them, the first quality cycle number corresponds to the cycle number of the input quality level being the first input quality level, the second quality cycle number corresponds to the cycle number of the input quality level being the second input quality level, and the third quality cycle number corresponds to the cycle number of the input quality level being the third input quality level.

[0026] Furthermore, the signal quality level evaluation process in step S102 further includes:

[0027] Comparing and obtaining the maximum value among the first mass period number, the second mass period number and the third mass period number;

[0028] When the maximum value is a unique value, the input quality level corresponding to the value is marked as the signal quality level of the audio input device;

[0029] When the maximum value has multiple values, calculating an input disorder coefficient of the audio signal, and comparing the input disorder coefficient of the audio signal with the input disorder interval;

[0030] If the input disorder coefficient of the audio signal belongs to the first input disorder interval, the one with the higher input quality level is preferably marked as the signal quality level of the audio input device;

[0031] If the input disorder coefficient of the audio signal belongs to the second input disorder interval, the side with the lower input quality level is preferably marked as the signal quality level of the audio input device;

[0032] The values ​​of the input disorder interval are pre-stored in the database, the values ​​of the first input disorder interval and the second input disorder interval are both greater than zero, and the values ​​of the first input disorder interval are both less than the values ​​of the second input disorder interval.

[0033] Furthermore, the relationship between the compensation scheme and the signal quality level in step S103 is:

[0034] If the signal quality level of the audio input device is the first signal quality level, the corresponding compensation scheme is the third compensation ratio and the first response time;

[0035] If the signal quality level of the audio input device is the second signal quality level, the corresponding compensation scheme is the second compensation ratio and the second response time;

[0036] If the signal quality level of the audio input device is the third signal quality level, the corresponding compensation scheme is the first compensation ratio and the third response time.

[0037] Furthermore, the value of the first compensation ratio is smaller than the value of the second compensation ratio, the value of the second compensation ratio is smaller than the value of the third compensation ratio, the first response time is smaller than the second response time, the second response time is smaller than the third response time, the signal quality of the first signal quality level is lower than the signal quality of the second signal quality level, and the signal quality of the second signal quality level is lower than the signal quality of the third signal quality level.

[0038] Furthermore, the comprehensive process of step S104 is specifically as follows:

[0039] Obtain the audio loss rate, audio distortion rate, low frequency distribution rate, medium frequency distribution rate and high frequency distribution rate of the output audio, and calculate the sound effect evaluation value of the output audio;

[0040] Comparing the sound effect evaluation value of the output audio with the sound effect evaluation threshold;

[0041] If the sound effect evaluation value of the output audio is less than or equal to the sound effect evaluation threshold, it is determined that the compensation effect of the analog compressor is qualified;

[0042] If the sound effect evaluation value of the output audio is greater than the sound effect evaluation threshold, the compensation effect of the analog compressor is determined to be unqualified.

[0043] Furthermore, the control process of step S104 is specifically as follows:

[0044] If the compensation effect of the analog compressor is qualified, the compensation strength is gradually reduced based on the preset release time until the compensation stops;

[0045] If the compensation effect of the analog compressor is unsatisfactory, the compensation will be stopped immediately and the compensation plan will be replanned.

[0046] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0047] The present invention first obtains audio feature data of an audio signal and sends it to a feature analysis module, then uses a comprehensive analysis of the signal quality of the audio signal to obtain the input quality level of the audio signal in each period, and then comprehensively evaluates the signal quality of the audio input device in combination with the input quality level to obtain the signal quality level of the audio input device, and adjusts the compensation scheme of the analog compressor according to the signal quality level. After the adjustment is completed, after the analog compressor compresses the input signal, the audio effect data of the output audio is obtained and sent to the compensation evaluation module, and finally the compensation effect of the analog compressor is comprehensively evaluated, and the compensation strength of the analog compressor is adjusted according to the compensation effect. The present invention realizes intelligent compression and release control of the analog compressor. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0049] Figure 1 is a flow chart of the method of the present invention;

[0050] Figure 2 is the overall system block diagram of the present invention;

[0051] Figure 3 It is a schematic diagram of the principle of the feature capture module in the present invention;

[0052] Figure 4 It is a schematic diagram of the structure of the electronic device in the present invention. DETAILED DESCRIPTION

[0053] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] Example 1: Please refer to Figure 1-Figure 3 As shown, the technical solution provided by the present invention is: a method for processing an analog compressor based on optoelectronic technology, the embodiment of the present invention involves a processor, the processor is connected with a feature capture module, a feature analysis module, a performance evaluation module, a compensation terminal, an output monitoring module, a compensation evaluation module and a release terminal;

[0055] In this embodiment, the analog compressor is applied to various input pre-stages. The full name of the input pre-stage is preamplifier, which plays the role of signal input and preliminary amplification in the audio system. The main functions of the input pre-stage include screening the audio source signal, amplifying the audio source signal and controlling the sound quality. The input pre-stage is usually composed of one or more amplifiers, such as operational amplifiers or transistor amplifiers;

[0056] The analog compressor is connected to an analog audio line or a pickup device. The analog compressor processes the signal through an analog circuit, amplifies or compresses the input signal, and converts it into an analog signal. In the actual working process, a PCB board with an integrated analog circuit is preferably used as the analog compressor;

[0057] When an analog compressor receives an audio signal input, refer to Figure 3 The feature capture module is used to obtain audio feature data of the audio signal and send it to the processor. The processor sends the audio feature data of the audio signal to the feature analysis module. The audio feature data includes the signal wavelength, signal amplitude and signal-to-noise ratio of the audio signal. In this embodiment, the audio feature data of the audio signal is obtained at fixed periodic intervals. Please refer to Figure 3 As shown, the signal wavelength reflects the distance between adjacent peaks of the audio signal. The longer the wavelength of the audio signal, the more wavelength signals it contains, and the better the quality of the audio signal. The signal amplitude reflects the dynamic range of the audio signal. The larger the signal amplitude of the audio signal, the larger the relative variation range of the signal strength, and the better the quality of the audio signal. The signal-to-noise ratio (SNR) is the ratio between the useful signal and the noise signal. The larger the value of the signal-to-noise ratio, the better the audio signal effect.

[0058] In this embodiment, the analog compressor processing method includes the following steps:

[0059] Step S101, when the analog compressor receives an audio signal input, the feature capture module obtains audio feature data of the audio signal and sends it to the feature analysis module;

[0060] Step S102: the feature analysis module performs a comprehensive analysis on the signal quality of the audio signal, obtains the input quality level of the audio signal in each period through the analysis, and sends it to the performance evaluation module; the performance evaluation module is used to perform a comprehensive evaluation on the signal quality of the audio input device, and obtains the signal quality level of the audio input device through the evaluation and sends it to the compensation terminal;

[0061] In step S102, the analysis process of the feature analysis module is as follows:

[0062] The signal wavelength BCi, signal amplitude ZFi and signal-to-noise ratio XZi of the audio signal are obtained, and the input quality value ZLi of the audio signal in each cycle is calculated according to the formula, where i is the cycle number, the upper limit of i is n, and n is a positive integer. The specific formula is as follows:

[0063] ZLi=BCi×s1+ZFi×s2+XZi×s3;

[0064] Among them, s1, s2 and s3 are weight coefficients with fixed values, the values ​​of s1, s2 and s3 are all greater than zero and s1+s2+s3=1, s1 is the wavelength weight, s2 is the amplitude weight, and s3 is the signal-to-noise ratio weight;

[0065] Compare the input quality value of the audio signal in each period with the input quality threshold one by one;

[0066] If the input quality value is less than or equal to the first input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the first input quality level;

[0067] If the input quality value is greater than the first input quality threshold and less than or equal to the second input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the second input quality level;

[0068] If the input quality value is greater than the second input quality threshold, determining that the input quality level of the audio signal in the corresponding period is a third input quality level;

[0069] The values ​​of the first input quality threshold and the second input quality threshold are both greater than zero, the first input quality threshold is less than the second input quality threshold, the signal quality of the first input quality is lower than the signal quality of the second input quality, and the signal quality of the second input quality is lower than the signal quality of the third input quality;

[0070] In practice, the feature analysis module may send the input quality level of the audio signal in each period to the processor, and then the processor sends the input quality level of the audio signal in each period to the performance evaluation module.

[0071] In step S102, the evaluation process of the performance evaluation module is as follows:

[0072] Obtaining the input quality level of the audio signal in each period, and obtaining the first quality period number, the second quality period number, and the third quality period number by counting, wherein the first quality period number corresponds to the period number of the first input quality level, the second quality period number corresponds to the period number of the second input quality level, and the third quality period number corresponds to the period number of the third input quality level;

[0073] Comparing and obtaining the maximum value among the first mass period number, the second mass period number and the third mass period number;

[0074] When the maximum value is a unique value, the input quality level corresponding to the value is marked as the signal quality level of the audio input device. For example, if the value of the second quality cycle number is greater than the first quality cycle number and greater than the third quality cycle number, the signal quality level of the audio input device is the second signal quality level;

[0075] When there are multiple maximum values, the input disorder coefficient WD of the audio signal is calculated according to the formula, which is as follows:

[0076] ;

[0077] ;

[0078] Wherein, ZLP is the average value of the input quality value of the audio signal, and the input stability coefficient of the audio signal is calculated according to the variance formula. It can be understood that the larger the value of the input disorder coefficient is, the more unstable the signal quality of the audio signal is;

[0079] Compare the input disorder coefficient of the audio signal with the input disorder interval;

[0080] If the input disorder coefficient of the audio signal belongs to the first input disorder interval, the one with the higher input quality level is preferably marked as the signal quality level of the audio input device;

[0081] If the input disorder coefficient of the audio signal belongs to the second input disorder interval, the side with the lower input quality level is preferably marked as the signal quality level of the audio input device;

[0082] The value of the input disorder interval is pre-stored in the database, the values ​​of the first input disorder interval and the second input disorder interval are both greater than zero, and the values ​​of the first input disorder interval are both less than the values ​​of the second input disorder interval. It can be understood that the input disorder coefficient reflects the stability of the quality of the audio signal. For example, when the second quality cycle number of the audio signal is equal to the third quality cycle number, and the second quality cycle number and the third quality cycle number are both greater than the first quality cycle number, and the input disorder coefficient of the audio signal belongs to the first input disorder interval, it is determined that the signal quality level of the audio input device is the third signal quality level;

[0083] In practice, the performance evaluation module sends the signal quality level of the audio input device to the processor, and then the processor sends the signal quality level of the audio input device to the compensation terminal.

[0084] Step S103, the compensation terminal adjusts the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then the output monitoring module obtains the audio effect data of the output audio and sends it to the compensation evaluation module;

[0085] In step S103, the relationship between the compensation scheme and the signal quality level specifically includes:

[0086] If the signal quality level of the audio input device is the first signal quality level, the corresponding compensation scheme is the third compensation ratio and the first response time;

[0087] If the signal quality level of the audio input device is the second signal quality level, the corresponding compensation scheme is the second compensation ratio and the second response time;

[0088] If the signal quality level of the audio input device is the third signal quality level, the corresponding compensation scheme is the first compensation ratio and the third response time;

[0089] The value of the first compensation ratio is smaller than the value of the second compensation ratio, the value of the second compensation ratio is smaller than the value of the third compensation ratio, the first response time is smaller than the second response time, the second response time is smaller than the third response time, the signal quality of the first signal quality level is lower than the signal quality of the second signal quality level, and the signal quality of the second signal quality level is lower than the signal quality of the third signal quality level;

[0090] It can be understood that the compensation ratio is the compression ratio or amplification ratio of the analog compressor to the input signal. If the value of the compensation ratio is P, when the input signal is amplified, the input signal: output signal = 1: P, and when the input signal is compressed, the input signal: output signal = P: 1. The response time reflects how long it takes for the signal compensation to start after the peak level of the input signal exceeds the set threshold. The smaller the value of the response time, the faster the response speed of the signal compensation.

[0091] In the actual working process, the performance evaluation module also adjusts the parameters of the analog compressor through the I2C protocol. The parameters of the analog compressor include the configuration of key parameters such as attack time, release time, and compression ratio. Among them, the control parameter description is: COMPX-BYPASS is a pass-through switch, COMPX-RATIO is a compression ratio switch, Attack is the start delay, Release is the release delay, Hold is the start level, the output frequency of the tester is 1kHz, the output resistance of the tester is 40 ohms, and the output level of the tester is +16dBu;

[0092] Specifically, the operation cases of hardware test data are as follows:

[0093] 1. MIC Gain: 0dB

[0094] RATIO: 10:1 (actual 15:1);

[0095] Attack Time: MIN;

[0096] Release Time: 200ms;

[0097] Threshold :-3dBFS;

[0098] The test results are: -2.8dBFS test level;

[0099] 2. MIC Gain: 0dB;

[0100] RATIO: 10:1 (actual 4:1);

[0101] Attack Time: MIN;

[0102] Release Time: 200ms;

[0103] Threshold :-10dBFS;

[0104] After debugging the 5k resistor (VR1, VR3), the test results show that the test level is -7.5dBFS.

[0105] 3. MIC Gain: 0dB;

[0106] RATIO: 3:1 (actual 2:1);

[0107] Attack Time: MIN;

[0108] Release Time: 200ms;

[0109] Threshold: -10dBFS;

[0110] After debugging the 50k resistor (VR2, VR4), the test results show that the test level is -5dBFS.

[0111] As a further solution of the present invention, signal compression is preferably used as a compensation solution. After the analog compressor compresses the input signal, the audio effect data of the output audio can be obtained through the output monitoring module. The audio effect data includes the audio loss rate, audio distortion rate, low frequency distribution rate, intermediate frequency distribution rate and high frequency distribution rate of the output audio.

[0112] It should be specifically explained that the audio loss rate is the proportion of audio segments outside the frequency range perceptible to the human ear (20Hz-20kHz) in the output audio, the audio distortion rate is the proportion of audio segments with hum, noise, distortion or attenuation in the output audio, the low-frequency distribution rate is the proportion of low-frequency audio (20Hz-250Hz) in the output audio, the medium-frequency distribution rate is the proportion of medium-frequency audio (250Hz-4kHz) in the output audio, and the high-frequency distribution rate is the proportion of high-frequency audio (4kHz-20kHz) in the output audio, and k represents the unit of thousand.

[0113] Step S104, the compensation evaluation module comprehensively evaluates the compensation effect of the analog compressor and sends it to the release terminal, and the release terminal adjusts the compensation strength of the analog compressor according to the compensation effect;

[0114] In step S104, the evaluation process of the compensation evaluation module is as follows:

[0115] The audio loss rate DS, audio distortion rate SZ, low frequency distribution rate DP, medium frequency distribution rate ZP and high frequency distribution rate GP of the output audio are obtained, and the sound effect evaluation value PG of the output audio is calculated according to the formula. The specific formula is as follows:

[0116] PG=(e / SY)×t1+(e / YT)×t2;

[0117] SY=DS×a1+SZ×a2;

[0118] ;

[0119] P = (DP + ZP + GP) / 3;

[0120] Wherein, e is a natural constant, SY is the audio defect value of the output audio, YT is the audio prominence value of the output audio, P is the average value of the low frequency distribution rate DP, the middle frequency distribution rate ZP and the high frequency distribution rate, t1 and t2 are weight coefficients of fixed values, the audio defect value reflects the degree of defect of the output audio, and the audio prominence value reflects the prominence of a certain frequency band in the output audio;

[0121] Comparing the sound effect evaluation value of the output audio with the sound effect evaluation threshold;

[0122] If the sound effect evaluation value of the output audio is less than or equal to the sound effect evaluation threshold, the compensation effect of the analog compressor is determined to be qualified; if the sound effect evaluation value of the output audio is greater than the sound effect evaluation threshold, the compensation effect of the analog compressor is determined to be unqualified;

[0123] In practice, the compensation evaluation module may send the compensation effect of the simulated compensator to the processor, and the processor then sends the compensation effect of the simulated compensator to the release terminal;

[0124] In step S104, the regulation process of releasing the terminal is as follows:

[0125] If the compensation effect of the analog compressor is qualified, the compensation strength is gradually reduced based on the preset release time until the compensation stops;

[0126] If the compensation effect of the analog compressor is unsatisfactory, the compensation will be stopped immediately and the compensation plan will be re-planned;

[0127] It should be specifically noted that within the preset release time, the compressor will gradually reduce the compression strength of the input signal until it no longer compresses the signal;

[0128] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.

[0129] Embodiment 2: Figure 4As shown, this embodiment discloses a structural schematic diagram of an electronic device, which may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute a method for processing an analog compressor based on optoelectronic technology, the method comprising: when the analog compressor receives an audio signal input, the feature capture module obtains the audio feature data of the audio signal and sends it to the feature analysis module; the feature analysis module performs a comprehensive analysis on the signal quality of the audio signal, and the input quality level of the audio signal in each cycle is obtained by analysis and sent to the performance evaluation module, the performance evaluation module is used to perform a comprehensive evaluation on the signal quality of the audio input device, and the signal quality level of the audio input device obtained by evaluation is sent to the compensation terminal; the compensation terminal adjusts the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then the output monitoring module obtains the audio effect data of the output audio and sends it to the compensation evaluation module; the compensation evaluation module performs a comprehensive evaluation on the compensation effect of the analog compressor and sends it to the release terminal, and the release terminal adjusts the compensation strength of the analog compressor according to the compensation effect.

[0130] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0131] Embodiment 3: The present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute an analog compressor processing method based on optoelectronic technology provided by the above methods, the method comprising: when the analog compressor receives an audio signal input, the feature capture module obtains the audio feature data of the audio signal and sends it to the feature analysis module; the feature analysis module performs a comprehensive analysis on the signal quality of the audio signal, and the input quality level of the audio signal in each cycle is obtained by analysis and sent to the performance evaluation module, the performance evaluation module is used to perform a comprehensive evaluation on the signal quality of the audio input device, and the signal quality level of the audio input device obtained by evaluation is sent to the compensation terminal; the compensation terminal adjusts the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then the output monitoring module obtains the audio effect data of the output audio and sends it to the compensation evaluation module; the compensation evaluation module performs a comprehensive evaluation on the compensation effect of the analog compressor and sends it to the release terminal, and the release terminal adjusts the compensation strength of the analog compressor according to the compensation effect.

[0132] Embodiment 4: The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned analog compressor processing method based on optoelectronic technology, the method comprising: when the analog compressor receives an audio signal input, the feature capture module obtains the audio feature data of the audio signal and sends it to the feature analysis module; the feature analysis module performs a comprehensive analysis on the signal quality of the audio signal, and the input quality level of the audio signal in each period obtained by analysis is sent to the performance evaluation module, the performance evaluation module is used to perform a comprehensive evaluation on the signal quality of the audio input device, and the signal quality level of the audio input device obtained by evaluation is sent to the compensation terminal; the compensation terminal adjusts the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then the output monitoring module obtains the audio effect data of the output audio and sends it to the compensation evaluation module; the compensation evaluation module performs a comprehensive evaluation on the compensation effect of the analog compressor and sends it to the release terminal, and the release terminal adjusts the compensation strength of the analog compressor according to the compensation effect.

[0133] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing an analog compressor based on optoelectronic technology, characterized in that: The method steps include: Step S101, when the analog compressor receives an audio signal input, audio feature data of the audio signal is obtained; the audio feature data includes a signal wavelength, a signal amplitude and a signal-to-noise ratio of the audio signal; Step S102, comprehensively analyzing the signal quality of the audio signal to obtain the input quality level of the audio signal in each period, and comprehensively evaluating the signal quality of the audio input device in combination with the input quality level to obtain the signal quality level of the audio input device; The analysis process of the input quality level in step S102 is specifically as follows: Obtain the signal wavelength BCi, signal amplitude ZFi and signal-to-noise ratio XZi of the audio signal, and calculate the input quality value ZLi of the audio signal in each period according to the formula ZLi=BCi×s1+ZFi×s2+XZi×s3; i is the period number, the upper limit of i is n, n is a positive integer, s1, s2 and s3 are weight coefficients with fixed values, the values ​​of s1, s2 and s3 are all greater than zero and s1+s2+s3=1, s1 is the wavelength weight, s2 is the amplitude weight, and s3 is the signal-to-noise ratio weight; Compare the input quality value of the audio signal in each period with the input quality threshold one by one; If the input quality value is less than or equal to the first input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the first input quality level; If the input quality value is greater than the first input quality threshold and less than or equal to the second input quality threshold, determining that the input quality level of the audio signal in the corresponding period is the second input quality level; If the input quality value is greater than the second input quality threshold, determining that the input quality level of the audio signal in the corresponding period is a third input quality level; The signal quality level evaluation process in step S102 specifically includes: Obtain the input quality level of the audio signal in each period, and obtain the first quality period number, the second quality period number, and the third quality period number by counting; wherein the first quality period number corresponds to the period number of the input quality level of the first input quality level, the second quality period number corresponds to the period number of the input quality level of the second input quality level, and the third quality period number corresponds to the period number of the input quality level of the third input quality level; Comparing and obtaining the maximum value among the first mass period number, the second mass period number and the third mass period number; When the maximum value is a unique value, the input quality level corresponding to the value is marked as the signal quality level of the audio input device; When there are multiple values ​​of the maximum value, the input disorder coefficient WD of the audio signal is calculated according to the formula, and the specific formula is as follows: ; , ZLP is the average value of the input quality value of the audio signal; Compare the input disorder coefficient of the audio signal with the input disorder interval; If the input disorder coefficient of the audio signal belongs to the first input disorder interval, the one with a higher input quality level is selected and marked as the signal quality level of the audio input device; If the input disorder coefficient of the audio signal belongs to the second input disorder interval, the side with a lower input quality level is selected and marked as the signal quality level of the audio input device; wherein the value of the input disorder interval is pre-stored in the database, the values ​​of the first input disorder interval and the second input disorder interval are both greater than zero, and the values ​​of the first input disorder interval are both less than the values ​​of the second input disorder interval; Step S103, adjusting the compensation scheme of the analog compressor according to the signal quality level, and after the compensation scheme is selected, the analog compressor compresses the input signal, and then obtains audio effect data of the output audio; Step S104, comprehensively evaluating the compensation effect of the analog compressor in combination with the audio effect data, and adjusting the compensation strength of the analog compressor according to the compensation effect.

2. The method for processing an analog compressor based on optoelectronic technology according to claim 1, characterized in that: The audio effect data includes an audio loss rate, an audio distortion rate, a low frequency distribution rate, a middle frequency distribution rate, and a high frequency distribution rate of the output audio.

3. The method for processing an analog compressor based on optoelectronic technology according to claim 1, characterized in that: The values ​​of the first input quality threshold and the second input quality threshold are both greater than zero, the first input quality threshold is less than the second input quality threshold, the signal quality of the first input quality is lower than the signal quality of the second input quality, and the signal quality of the second input quality is lower than the signal quality of the third input quality.

4. The method for processing an analog compressor based on optoelectronic technology according to claim 1, characterized in that: The relationship between the compensation scheme and the signal quality level in step S103 is: If the signal quality level of the audio input device is the first signal quality level, the corresponding compensation scheme is the third compensation ratio and the first response time; If the signal quality level of the audio input device is the second signal quality level, the corresponding compensation scheme is the second compensation ratio and the second response time; If the signal quality level of the audio input device is the third signal quality level, the corresponding compensation scheme is the first compensation ratio and the third response time.

5. The method for processing an analog compressor based on optoelectronic technology according to claim 4, characterized in that: The value of the first compensation ratio is smaller than the value of the second compensation ratio, the value of the second compensation ratio is smaller than the value of the third compensation ratio, the first response time is smaller than the second response time, the second response time is smaller than the third response time, the signal quality of the first signal quality level is lower than the signal quality of the second signal quality level, and the signal quality of the second signal quality level is lower than the signal quality of the third signal quality level.

6. The method for processing an analog compressor based on optoelectronic technology according to claim 2, characterized in that: The comprehensive process of step S104 is specifically as follows: Obtain the audio loss rate, audio distortion rate, low frequency distribution rate, medium frequency distribution rate and high frequency distribution rate of the output audio, and calculate the sound effect evaluation value of the output audio; Comparing the sound effect evaluation value of the output audio with the sound effect evaluation threshold; If the sound effect evaluation value of the output audio is less than or equal to the sound effect evaluation threshold, it is determined that the compensation effect of the analog compressor is qualified; If the sound effect evaluation value of the output audio is greater than the sound effect evaluation threshold, the compensation effect of the analog compressor is determined to be unqualified.

7. The method for processing an analog compressor based on optoelectronic technology according to claim 6, characterized in that: The control process of step S104 is specifically as follows: If the compensation effect of the analog compressor is qualified, the compensation strength is gradually reduced based on the preset release time until the compensation stops; If the compensation effect of the analog compressor is unsatisfactory, the compensation will be stopped immediately and the compensation plan will be replanned.

Citation Information

Patent Citations

  • Sound energy detection method and device and medium

    CN115019813A

  • Audio signal processing method and device

    CN117496991A

  • Center console compression sounding method, system and device and storage medium

    CN117912475A