Sound dynamic gain equalization method and system
By testing and analyzing the audio dynamic gain equalization system, evaluating its performance consistency between different sound sources and optimizing it, the problem of inconsistent performance of the system when dealing with different sound sources is solved, and the audio output quality and system stability are significantly improved.
Patent Information
- Application Number
- CN202411721012.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-28
AI Technical Summary
Existing audio dynamic gain equalization systems perform inconsistently when dealing with different sound sources, resulting in a degradation of audio quality that sounds confusing, distorted, or unclear.
By collecting audio sample data from different types of sound sources, setting up a test environment, testing and analyzing the dynamic gain equalization system, evaluating the consistency of the system performance between different sound sources, and optimizing it based on the evaluation results to improve the consistency performance of the system.
Significantly improve the audio output quality, improve the reliability and stability of the system, and bring users a consistent and high-quality auditory experience.
Smart Images

Figure CN119545247A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sound processing, and in particular to a sound dynamic gain equalization method and system. Background Art
[0002] Audio dynamic gain equalization is an audio processing technology that aims to automatically adjust the gain (volume) of the audio signal to maintain a stable output level. This technology can dynamically increase or decrease the gain of different frequency bands according to the real-time changes of the input audio, thereby ensuring the balance and consistency of the audio output. In this way, even if the volume of the sound source changes greatly, the final output volume can be maintained in a relatively stable and comfortable range, avoiding the problem of too loud or too soft sound.
[0003] Dynamic gain equalization detects the instantaneous amplitude and frequency content of the audio signal and performs real-time analysis and processing. When it is detected that the volume of certain frequency bands is too high, the gain of these frequencies will be automatically reduced; conversely, when the volume of certain frequency bands is low, the corresponding gain will be increased. This technology not only improves the clarity and audibility of the audio, but also provides a better listening experience in various environments, especially in noisy environments or when the quality of the sound source is uneven.
[0004] The prior art has the following deficiencies: In the prior art, when the audio output quality is improved through dynamic gain equalization of the sound system, the dynamic gain equalization system may perform inconsistently between different sound sources, resulting in unstable effects when processing different types of audio. For example, when processing music and voice, the system may require different parameter settings, but the dynamic gain equalization system may not be able to adapt well to such changes. And if the dynamic gain equalization system cannot maintain consistent performance between different sound sources, it may cause a decrease in audio quality when processing different types of audio. The audio may sound confusing, distorted, or unclear, thus affecting the user's listening experience. Summary of the invention
[0005] The purpose of the present invention is to provide a method and system for acoustic dynamic gain equalization to solve the deficiencies in the background technology.
[0006] In order to achieve the above object, the present invention provides the following technical solution: a method for dynamic gain equalization of sound, comprising the following steps: S1: Collect audio sample data of different types of sound sources and set up a test environment, use the collected audio sample data to test the dynamic gain equalization system in the test environment, and record the test results; S2: Analyze the test results, and judge the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; S3: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; S4: Comprehensively analyze the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluate the consistency of the dynamic gain equalization system between different sound sources; S5: According to the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; S6: Further analyze the consistency of the processed dynamic gain equalization system between different sound sources, and optimize the dynamic gain equalization system based on the analysis results to improve the consistency performance of the system.
[0007] In a preferred embodiment, in S2, the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is determined, and the dynamic adjustment of each frequency band by the system is evaluated, specifically: According to the retention degree of the system after gain adjustment while maintaining the original dynamic range, the gain adjustment of the system to each frequency band at different time points is analyzed, the transient response analysis of the audio signal before and after processing is performed, the transient response anomaly index of the system's response to the audio signal is obtained, and the dynamics of the system's adjustment to each frequency band is evaluated. The method for obtaining the transient response anomaly index is: The rapidly changing audio signal is analyzed, and the audio signal before processing is marked as x(t), and the audio signal after processing is marked as y(t); the audio signal before processing is short-time Fourier transformed, and the specific calculation expression is: In the formula, x(t,f) is the short-time Fourier transform value of the audio signal before processing, (t) is the time point, f is the frequency, and n is the number of time windows. is the conversion function, and the specific calculation expression is: in, , N is a positive integer greater than 1; the processed audio signal is short-time Fourier transformed, and the specific calculation expression is: Where y(t,f) is the short-time Fourier transform value of the processed audio signal; Get the amplitude spectrum before and after processing at each time point and frequency point, and mark the amplitude spectrum before processing as , and mark the processed amplitude spectrum as , calculate the gain change value at each time point and frequency point before and after the processing. The specific calculation expression is: Where G(t,f) is the gain change value at each time point and frequency point before and after processing; According to the gain change value at each time point and frequency point before and after processing, the transient characteristic index T(t) of the fast-changing signal at each time point is calculated, and the transient index before processing is marked as , the processed transient indicators are marked as , calculate the transient anomaly index of the fast-changing signal at each time point. The specific calculation expression is: In the formula, is the transient anomaly index; The transient response anomaly index at all time points is counted and the mean value of the transient anomaly index is calculated. The specific calculation expression is: In the formula, is the mean value of transient anomaly index, T is the number of transient anomaly indexes at all time points, and the transient response anomaly index is calculated according to the calculated mean value of transient anomaly index. The specific calculation expression is: In the formula, is the transient response abnormality index.
[0008] In a preferred embodiment, the acquired transient response abnormality index is compared with the transient response abnormality index reference threshold. If the transient response abnormality index is greater than or equal to the transient response abnormality index reference threshold, a gain dynamic adjustment abnormality signal is generated; if the transient response abnormality index is less than the transient response abnormality index reference threshold, a gain dynamic adjustment normal signal is generated.
[0009] In a preferred embodiment, in S3, the degree of deviation of the sound quality effect after processing is determined, and the accuracy of the audio quality fusion is evaluated, specifically: The sound quality differences of different types of audio before and after the dynamic gain equalization system is analyzed, the degree of deviation between the processed audio and the original audio characteristics is determined, the audio quality deviation index is obtained, and the accuracy of the audio quality fusion is evaluated. The method for obtaining the audio quality deviation index is as follows: The audio quality data before and after the dynamic gain equalization system is obtained in real time, the original audio data is marked as M and the processed audio data is marked as N, the original audio data M and the processed audio data N are analyzed in time and frequency, and the corresponding data set is established, where M= ,N= ; , is a positive integer greater than 0; According to the data set of the original audio data M and the processed audio data N, the corresponding covariance is calculated. The specific calculation expression is: In the formula, is the covariance of the original audio data M and the processed audio data N, is the mean of the original audio data set M, is the mean of the processed audio data set N, is the number of elements in the collection; According to the calculated covariance of the original audio data M and the processed audio data N, the sound quality similarity index is calculated. The specific calculation expression is: In the formula, is the sound quality similarity index, is the standard deviation of the original audio data set M, is the standard deviation of the processed audio data set N, c1 and c2 are constants; the audio quality deviation index is calculated according to the calculated sound quality similarity index, and the specific calculation expression is: In the formula, is the audio quality deviation index.
[0010] In a preferred embodiment, the calculated audio quality deviation index is compared with the audio quality deviation index reference threshold. If the audio quality deviation index is greater than or equal to the audio quality deviation index reference threshold, an abnormal sound quality signal is generated; if the audio quality deviation index is less than the audio quality deviation index reference threshold, a normal sound quality signal is generated.
[0011] In a preferred embodiment, in S4, the system performs a comprehensive analysis on the dynamics of adjusting each frequency band and the accuracy of audio quality fusion, specifically: The transient response anomaly index and the audio quality deviation index are normalized, and the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is calculated based on the normalized transient response anomaly index and the audio quality deviation index.
[0012] In a preferred embodiment, in S5, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance; The obtained consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is compared with the consistency reference threshold. If the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is greater than or equal to the consistency reference threshold, it is classified as consistent performance; if the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is less than the consistency reference threshold, it is classified as inconsistent performance.
[0013] In a preferred embodiment, in S6, the consistency of the processed dynamic gain equalization system between different sound sources is further analyzed, specifically: If the dynamic gain equalization system performs inconsistently between different sound sources, that is, the consistency evaluation coefficient generated in a fixed time period is less than the consistency reference threshold, a number of consistency evaluation coefficients generated in a subsequent fixed time period are collected to establish a corresponding data set, and the consistency evaluation coefficients in the data set are compared and analyzed with the consistency reference threshold to calculate the abnormal index of the dynamic gain equalization system; Among them, the specific calculation expression of the abnormal index of the dynamic gain equalization system is: In the formula, is the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x is the number of the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x=1, 2, 3, 4, ..., A, A is a positive integer greater than 0, is the consistency reference threshold, It is the abnormal index of dynamic gain equalization system.
[0014] In a preferred embodiment, the acquired dynamic gain equalization system abnormality index is compared with the dynamic gain equalization system abnormality index reference threshold. If the dynamic gain equalization system abnormality index is greater than or equal to the dynamic gain equalization system abnormality index reference threshold, a dynamic gain equalization system abnormality signal is generated and the troubleshooting process is immediately started; if the dynamic gain equalization system abnormality index is less than the dynamic gain equalization system abnormality index reference threshold, a dynamic gain equalization system normal signal is generated and real-time monitoring of the dynamic gain equalization system is maintained to ensure its continued normal operation.
[0015] The present invention also provides an acoustic dynamic gain equalization system, comprising a test module, a dynamic evaluation module, an audio quality analysis module, a comprehensive analysis module, a consistency division module and an optimization processing module; Test module: collects audio sample data of different types of sound sources and sets up a test environment. In the test environment, the collected audio sample data is used to test the dynamic gain equalization system and the test results are recorded. Dynamic evaluation module: Analyze the test results, determine the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; Audio quality analysis module: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; Comprehensive analysis module: comprehensively analyzes the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluates the consistency of the dynamic gain equalization system between different sound sources; Consistency division module: Based on the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; Optimization processing module: further analyzes the consistency of the processed dynamic gain equalization system between different sound sources, and optimizes the dynamic gain equalization system based on the analysis results to improve the consistency of the system.
[0016] In the above technical solution, the technical effects and advantages provided by the present invention are: 1. The present invention evaluates the performance of the dynamic gain equalization system when processing different sound sources through comprehensive analysis of multiple steps, comprehensively analyzes the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluates the consistency of the dynamic gain equalization system between different sound sources. Secondly, through real-time data collection and test environment setting, inconsistency problems in the system can be discovered in a timely manner, and corresponding measures can be taken quickly based on the comparison of the abnormal index and the threshold to ensure the stability of the system. It can not only significantly improve the audio output quality, but also improve the reliability and stability of the system, bringing users a consistent and high-quality listening experience.
[0017] 2. Through further analysis of the consistency of the processed dynamic gain equalization system between different sound sources and comparison of the abnormal index with its corresponding reference threshold, the system can timely discover and solve consistency problems and improve the quality and stability of the overall audio output. This systematic approach can not only significantly improve the accuracy and consistency of audio output, but also effectively ensure the reliability of the system, ensuring that users always get a consistent and high-quality listening experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0019] Figure 1 The figure is a flow chart of the method of the present invention.
[0020] Figure 2 It is a system module diagram of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0022] Example 1
[0023] See also Figure 1 As shown, the sound dynamic gain equalization method described in this embodiment includes the following steps: S1: Collect audio sample data of different types of sound sources and set up a test environment, use the collected audio sample data to test the dynamic gain equalization system in the test environment, and record the test results; S2: Analyze the test results, and judge the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; S3: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; S4: Comprehensively analyze the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluate the consistency of the dynamic gain equalization system between different sound sources; S5: According to the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; S6: Further analyze the consistency of the processed dynamic gain equalization system between different sound sources, and optimize the dynamic gain equalization system based on the analysis results to improve the consistency performance of the system.
[0024] In S1, audio sample data of different types of sound sources are collected and a test environment is set up. The dynamic gain equalization system is tested using the collected audio sample data in the test environment, and the test results are recorded, specifically: Identify the different types of sound sources that need to be tested, such as: music (pop, classical, rock, jazz, etc.); speech (single speech, dialogue, broadcast news, etc.); environmental sound (natural sound effects, city noise, mechanical sound, etc.); Collect high-quality audio samples from the audio library. Use high-quality recording equipment to record live audio and ensure the diversity and representativeness of the audio samples. Classify the collected audio samples and label the source type. Use audio editing software to process the audio samples to remove noise and unnecessary parts to ensure the purity of the samples. Prepare high-quality audio playback equipment and audio measurement equipment, such as professional speakers, microphones, audio interfaces, audio analyzers, etc. Ensure that the equipment is calibrated to provide accurate audio playback and measurement results.
[0025] Choose a room with good acoustic conditions to test and avoid external noise interference. Arrange sound absorbing or diffusing materials in the room to ensure that sound reflection is minimized and accurate test results are obtained. Ensure that the settings of the audio playback equipment meet the standards, such as sampling rate, bit rate, etc. Use the audio playback software to load the audio samples into the playlist and prepare for the test.
[0026] Connect the dynamic gain equalization system to the audio playback device and measurement equipment to ensure that all connections are correct. Perform preliminary configuration and calibration according to the system manual to ensure that the system can work properly. Play different types of audio samples in a predetermined sequence and process them through the dynamic gain equalization system. Use the audio measurement equipment to record the processed audio output and save it as a high-quality audio file.
[0027] During the test, monitor the frequency response, dynamic range, distortion level and other parameters of the audio output in real time. Use professional software or tools to record the test results, ensuring that the processing effect of each audio sample is recorded in detail. Organize all recorded test data and classify and save the test results of different types of audio sources. Use spreadsheet or database software to store test data for subsequent analysis.
[0028] S2: Analyze the test results and determine the degree of retention of the audio dynamic range before and after the dynamic gain equalization system is processed based on the changes in the gain values of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band.
[0029] Use spectrum analysis software to perform spectrum analysis on the audio signal before and after processing. Obtain the gain value for each frequency band (e.g., 20Hz to 20kHz). Plot the frequency response curves before and after processing on the same graph. Compare the two curves to observe the gain changes in each frequency band.
[0030] According to the retention degree of the system after gain adjustment while maintaining the original dynamic range, the gain adjustment of the system to each frequency band at different time points is analyzed, the transient response analysis of the audio signal before and after processing is performed, the transient response anomaly index of the system's response to the audio signal is obtained, and the dynamics of the system's adjustment to each frequency band is evaluated. The method for obtaining the transient response anomaly index is: The rapidly changing audio signal is analyzed, and the audio signal before processing is marked as x(t), and the audio signal after processing is marked as y(t); the audio signal before processing is short-time Fourier transformed, and the specific calculation expression is: In the formula, x(t,f) is the short-time Fourier transform value of the audio signal before processing, (t) is the time point, f is the frequency, and n is the number of time windows. is the conversion function, and the specific calculation expression is: in, , N is a positive integer greater than 1; the processed audio signal is short-time Fourier transformed, and the specific calculation expression is: Where y(t,f) is the short-time Fourier transform value of the processed audio signal; Get the amplitude spectrum before and after processing at each time point and frequency point, and mark the amplitude spectrum before processing as , and mark the processed amplitude spectrum as , calculate the gain change value at each time point and frequency point before and after the processing. The specific calculation expression is: Where G(t,f) is the gain change value at each time point and frequency point before and after processing; According to the gain change value at each time point and frequency point before and after processing, the transient characteristic index T(t) of the fast-changing signal at each time point is calculated, and the transient index before processing is marked as , the processed transient indicators are marked as , calculate the transient anomaly index of the fast-changing signal at each time point. The specific calculation expression is: In the formula, is the transient anomaly index; The transient response anomaly index at all time points is counted and the mean value of the transient anomaly index is calculated. The specific calculation expression is: In the formula, is the mean value of transient anomaly index, T is the number of transient anomaly indexes at all time points, and the transient response anomaly index is calculated according to the calculated mean value of transient anomaly index. The specific calculation expression is: In the formula, is the transient response abnormality index.
[0031] The obtained transient response abnormality index is compared with the transient response abnormality index reference threshold. If the transient response abnormality index is greater than or equal to the transient response abnormality index reference threshold, it means that the system's dynamic adjustment of each frequency band is weak, and a gain dynamic adjustment abnormal signal is generated at this time; if the transient response abnormality index is less than the transient response abnormality index reference threshold, it means that the system's dynamic adjustment of each frequency band is strong, and a gain dynamic adjustment normal signal is generated at this time.
[0032] A large transient response anomaly index indicates that the system cannot maintain a consistent dynamic response when processing audio signals. This may cause the system to have significant differences in gain adjustment at different time points and frequency bands, thus affecting the balance and consistency of the audio signal.
[0033] When the transient response anomaly index is large, the system may show inconsistent characteristics in gain adjustment of different frequency bands. Some frequency bands may be overcompensated or compressed, while other frequency bands may not be properly adjusted, resulting in an unbalanced frequency response of the audio signal.
[0034] A larger transient response anomaly index indicates that the system's response to transient signals is unreliable and cannot effectively maintain the original dynamic range. This may cause distortion, mutation or unnatural changes in the audio signal during processing, reducing the sound quality and listening experience.
[0035] S3: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation in the sound quality effect after processing, and evaluate the accuracy of audio quality fusion.
[0036] Compare the sound quality characteristics of different types of audio before and after processing, such as timbre, clarity, dynamic range, etc. Observe whether the sound characteristics of the processed audio are consistent with the original audio, and whether there are any abnormal changes, such as distortion, noise, color shift, etc. Analyze the sound quality fusion of the audio before and after processing, that is, whether the system can maintain the original characteristics and style of the audio while adjusting the gain.
[0037] The sound quality differences of different types of audio before and after the dynamic gain equalization system is analyzed, the degree of deviation between the processed audio and the original audio characteristics is determined, the audio quality deviation index is obtained, and the accuracy of the audio quality fusion is evaluated. The method for obtaining the audio quality deviation index is as follows: The audio quality data before and after the dynamic gain equalization system is obtained in real time. The audio quality data includes spectrum and time domain characteristics, distortion, signal-to-noise ratio, etc. The original audio data is marked as M and the processed audio data is marked as N. The original audio data M and the processed audio data N are analyzed in time and frequency, and the corresponding data set is established, where M= ,N= ; , is a positive integer greater than 0; According to the data set of the original audio data M and the processed audio data N, the corresponding covariance is calculated. The specific calculation expression is: In the formula, is the covariance of the original audio data M and the processed audio data N, is the mean of the original audio data set M, is the mean of the processed audio data set N, is the number of elements in the collection; According to the calculated covariance of the original audio data M and the processed audio data N, the sound quality similarity index is calculated. The specific calculation expression is: In the formula, is the sound quality similarity index, is the standard deviation of the original audio data set M, is the standard deviation of the processed audio data set N, c1 and c2 are constants; the audio quality deviation index is calculated according to the calculated sound quality similarity index, and the specific calculation expression is: In the formula, is the audio quality deviation index.
[0038] The calculated audio quality deviation index is compared with the audio quality deviation index reference threshold. If the audio quality deviation index is greater than or equal to the audio quality deviation index reference threshold, it means that the accuracy of the audio quality fusion after processing by the dynamic gain equalization system is low, and an abnormal sound quality signal is generated at this time; if the audio quality deviation index is less than the audio quality deviation index reference threshold, it means that the accuracy of the audio quality fusion after processing by the dynamic gain equalization system is high, and a normal sound quality signal is generated at this time.
[0039] A larger audio quality deviation index indicates that there is a large difference between the processed audio and the original audio. The difference can be reflected in multiple aspects such as the audio's spectral characteristics, time domain characteristics, and dynamic range. When the system's processing effects on different audio types are inconsistent, uneven gain adjustments may occur in various frequency bands of the audio, resulting in significant changes in sound quality.
[0040] A larger deviation index is usually accompanied by a higher distortion. This means that additional noise or distortion components may be introduced into the processed audio signal, making the sound quality unnatural and unclear. Increased distortion can cause originally clear speech or music details to be obscured, thus affecting the user's listening experience.
[0041] S4: Comprehensively analyze the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluate the consistency of the dynamic gain equalization system between different sound sources.
[0042] The transient response anomaly index and the audio quality deviation index are normalized, and the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is calculated based on the normalized transient response anomaly index and the audio quality deviation index.
[0043] For example, the present invention may use the following formula to calculate the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources, and the calculation expression is: In the formula, is the consistency assessment coefficient, is the transient response abnormality index, is the audio quality deviation index, is the proportionality coefficient of the transient response anomaly index and the audio quality deviation index, and .
[0044] S5: According to the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively.
[0045] The obtained consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is compared with the consistency reference threshold. If the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is greater than or equal to the consistency reference threshold, it is classified as consistent performance; the performance of the system between different sound sources is consistent, indicating that the dynamic gain equalization system can effectively process different types of audio without introducing significant differences; if the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is less than the consistency reference threshold, it is classified as inconsistent performance, which requires further analysis.
[0046] In this embodiment, by collecting audio sample data of different types of sound sources and setting up a test environment, the dynamic gain equalization system is tested in the test environment using the collected audio sample data, and the test results are analyzed. According to the changes in the gain values of each frequency band, the degree of retention of the dynamic range of the audio before and after processing by the dynamic gain equalization system is judged, and the dynamic adjustment of the system to each frequency band is evaluated; the sound quality differences of different types of audio before and after processing by the dynamic gain equalization system are analyzed, the degree of deviation of the sound quality effect after processing is judged, and the accuracy of audio quality fusion is evaluated; the dynamic adjustment of the system to each frequency band and the accuracy of audio quality fusion are comprehensively analyzed, and the consistency of the performance of the dynamic gain equalization system between different sound sources is evaluated; according to the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; the performance and stability of the dynamic gain equalization system can be significantly improved, ensuring its consistent performance between different sound sources and optimizing the audio output quality.
[0047] Example 2
[0048] S6: Further analyze the consistency of the processed dynamic gain equalization system between different sound sources, and optimize the dynamic gain equalization system based on the analysis results to improve the consistency performance of the system.
[0049] Further analysis is conducted on the consistency of the performance of the processed dynamic gain equalization system between different sound sources, and the dynamic gain equalization system is optimized based on the analysis results to improve the consistency of the system performance. This means that based on the preliminary evaluation and testing of the system performance consistency, a more in-depth and detailed analysis is conducted to identify the problems and causes of inconsistencies in the system's processing of different sound sources, and then targeted optimization measures are taken to ensure that the system can maintain consistent performance when processing various types of sound sources, thereby improving the overall audio output quality.
[0050] If the dynamic gain equalization system performs inconsistently between different sound sources, that is, the consistency evaluation coefficient generated within a fixed time period is less than the consistency reference threshold, several consistency evaluation coefficients generated in subsequent fixed time periods are collected to establish a corresponding data set, and the consistency evaluation coefficients in the data set are compared and analyzed with the consistency reference threshold to calculate the dynamic gain equalization system abnormality index.
[0051] Among them, the specific calculation expression of the abnormal index of the dynamic gain equalization system is: In the formula, is the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x is the number of the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x=1, 2, 3, 4, ..., A, A is a positive integer greater than 0, is the consistency reference threshold, It is the abnormal index of dynamic gain equalization system.
[0052] The acquired abnormal index of the dynamic gain equalization system is compared with the abnormal index reference threshold of the dynamic gain equalization system. If the abnormal index of the dynamic gain equalization system is greater than or equal to the abnormal index reference threshold of the dynamic gain equalization system, a dynamic gain equalization system abnormal signal is generated at this time; the troubleshooting process is immediately started, the system log and audio data are analyzed, the specific cause of the abnormality is found, and the system parameters are adjusted according to the abnormality analysis results to correct the current processing method; If the dynamic gain equalization system abnormality index is less than the dynamic gain equalization system abnormality index reference threshold, a dynamic gain equalization system normal signal is generated to maintain real-time monitoring of the dynamic gain equalization system to ensure its continued normal operation.
[0053] It should be noted that the consistency reference threshold and the dynamic gain equalization system abnormality index reference threshold are set by those skilled in the art according to the specific performance of the dynamic gain equalization system, and are not described in detail here.
[0054] In this embodiment, by further analyzing the consistency of the processed dynamic gain equalization system between different sound sources, the abnormality index of the dynamic gain equalization system is calculated by collecting the consistency evaluation coefficient generated by the system in a subsequent fixed time period and comparing it with the preset consistency reference threshold. Then, according to the comparison result of the abnormality index and its reference threshold, corresponding processing measures are taken, including starting the troubleshooting process, analyzing the system log and audio data, adjusting the system parameters, etc., to ensure that the system can maintain consistency when processing different sound sources. If the system is running normally, continue to monitor the status of the system. The implementation of this process can effectively discover and solve the consistency problems that occur when the system processes different sound sources, thereby improving the overall audio output quality.
[0055] Example 3
[0056] See also Figure 2 As shown, the sound dynamic gain equalization system described in this embodiment includes a test module, a dynamic evaluation module, an audio quality analysis module, a comprehensive analysis module, a consistency division module and an optimization processing module; Test module: collects audio sample data of different types of sound sources and sets up a test environment. In the test environment, the collected audio sample data is used to test the dynamic gain equalization system and the test results are recorded. Dynamic evaluation module: Analyze the test results, determine the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; Audio quality analysis module: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; Comprehensive analysis module: comprehensively analyzes the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluates the consistency of the dynamic gain equalization system between different sound sources; Consistency division module: Based on the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; Optimization processing module: further analyzes the consistency of the processed dynamic gain equalization system between different sound sources, and optimizes the dynamic gain equalization system based on the analysis results to improve the consistency of the system.
[0057] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0058] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0059] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0060] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0061] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0062] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A sound dynamic gain equalization method, characterized in that: The steps include: S1: Collect audio sample data of different types of sound sources and set up a test environment, use the collected audio sample data to test the dynamic gain equalization system in the test environment, and record the test results; S2: Analyze the test results, and judge the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; S3: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; S4: Comprehensively analyze the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluate the consistency of the dynamic gain equalization system between different sound sources; S5: According to the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; S6: Further analyze the consistency of the processed dynamic gain equalization system between different sound sources, and optimize the dynamic gain equalization system based on the analysis results to improve the consistency performance of the system.
2. The method for dynamic gain equalization of sound according to claim 1, characterized in that: In S2, the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is determined, and the dynamic adjustment of the system to each frequency band is evaluated, specifically: According to the retention degree of the system after gain adjustment while maintaining the original dynamic range, the gain adjustment of the system to each frequency band at different time points is analyzed, the transient response analysis of the audio signal before and after processing is performed, the transient response anomaly index of the system's response to the audio signal is obtained, and the dynamics of the system's adjustment to each frequency band is evaluated. The method for obtaining the transient response anomaly index is: The rapidly changing audio signal is analyzed, and the audio signal before processing is marked as x(t), and the audio signal after processing is marked as y(t); the audio signal before processing is short-time Fourier transformed, and the specific calculation expression is: In the formula, x(t,f) is the short-time Fourier transform value of the audio signal before processing, (t) is the time point, f is the frequency, and n is the number of time windows. is the conversion function, and the specific calculation expression is: in, , N is a positive integer greater than 1; the processed audio signal is short-time Fourier transformed, and the specific calculation expression is: Where y(t,f) is the short-time Fourier transform value of the processed audio signal; Get the amplitude spectrum before and after processing at each time point and frequency point, and mark the amplitude spectrum before processing as , and mark the processed amplitude spectrum as , calculate the gain change value at each time point and frequency point before and after the processing. The specific calculation expression is: Where G(t,f) is the gain change value at each time point and frequency point before and after processing; According to the gain change value at each time point and frequency point before and after processing, the transient characteristic index T(t) of the fast-changing signal at each time point is calculated, and the transient index before processing is marked as , the processed transient indicators are marked as , calculate the transient anomaly index of the fast-changing signal at each time point. The specific calculation expression is: In the formula, is the transient anomaly index; The transient response anomaly index at all time points is counted and the mean value of the transient anomaly index is calculated. The specific calculation expression is: In the formula, is the mean value of transient anomaly index, T is the number of transient anomaly indexes at all time points, and the transient response anomaly index is calculated according to the calculated mean value of transient anomaly index. The specific calculation expression is: In the formula, is the transient response abnormality index.
3. The method for dynamic gain equalization of sound according to claim 2, characterized in that: The obtained transient response abnormality index is compared with the transient response abnormality index reference threshold. If the transient response abnormality index is greater than or equal to the transient response abnormality index reference threshold, a gain dynamic adjustment abnormality signal is generated; if the transient response abnormality index is less than the transient response abnormality index reference threshold, a gain dynamic adjustment normal signal is generated.
4. The method for dynamic gain equalization of sound according to claim 1, characterized in that: In S3, the degree of deviation of the sound quality effect after processing is determined, and the accuracy of the audio quality fusion is evaluated, specifically: The sound quality differences of different types of audio before and after the dynamic gain equalization system is analyzed, the degree of deviation between the processed audio and the original audio characteristics is determined, the audio quality deviation index is obtained, and the accuracy of the audio quality fusion is evaluated. The method for obtaining the audio quality deviation index is as follows: The audio quality data before and after the dynamic gain equalization system is obtained in real time, the original audio data is marked as M and the processed audio data is marked as N, the original audio data M and the processed audio data N are analyzed in time and frequency, and the corresponding data set is established, where M= ,N= ; , is a positive integer greater than 0; According to the data set of the original audio data M and the processed audio data N, the corresponding covariance is calculated. The specific calculation expression is: In the formula, is the covariance of the original audio data M and the processed audio data N, is the mean of the original audio data set M, is the mean of the processed audio data set N, is the number of elements in the collection; According to the calculated covariance of the original audio data M and the processed audio data N, the sound quality similarity index is calculated. The specific calculation expression is: In the formula, is the sound quality similarity index, is the standard deviation of the original audio data set M, is the standard deviation of the processed audio data set N, c1 and c2 are constants; the audio quality deviation index is calculated according to the calculated sound quality similarity index, and the specific calculation expression is: In the formula, is the audio quality deviation index.
5. The method for dynamic gain equalization of sound according to claim 4, characterized in that: The calculated audio quality deviation index is compared with the audio quality deviation index reference threshold. If the audio quality deviation index is greater than or equal to the audio quality deviation index reference threshold, an abnormal sound quality signal is generated; if the audio quality deviation index is less than the audio quality deviation index reference threshold, a normal sound quality signal is generated.
6. The method for acoustic dynamic gain equalization according to claim 1, characterized in that: In S4, the dynamics of the system's adjustment of each frequency band and the accuracy of the audio quality fusion are comprehensively analyzed, specifically: The transient response anomaly index and the audio quality deviation index are normalized, and the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is calculated based on the normalized transient response anomaly index and the audio quality deviation index.
7. The method for dynamic gain equalization of sound according to claim 6, characterized in that: In S5, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance; The obtained consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is compared with the consistency reference threshold. If the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is greater than or equal to the consistency reference threshold, it is classified as consistent performance; if the consistency evaluation coefficient of the dynamic gain equalization system between different sound sources is less than the consistency reference threshold, it is classified as inconsistent performance.
8. The method for dynamic gain equalization of sound according to claim 1, characterized in that: In S6, the consistency of the processed dynamic gain equalization system between different sound sources is further analyzed, specifically: If the dynamic gain equalization system performs inconsistently between different sound sources, that is, the consistency evaluation coefficient generated in a fixed time period is less than the consistency reference threshold, a number of consistency evaluation coefficients generated in a subsequent fixed time period are collected to establish a corresponding data set, and the consistency evaluation coefficients in the data set are compared and analyzed with the consistency reference threshold to calculate the abnormal index of the dynamic gain equalization system; Among them, the specific calculation expression of the abnormal index of the dynamic gain equalization system is: In the formula, is the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x is the number of the consistency evaluation coefficient greater than the consistency reference threshold in the data set, x=1, 2, 3, 4, ..., A, A is a positive integer greater than 0, is the consistency reference threshold, It is the abnormal index of dynamic gain equalization system.
9. The method for dynamic gain equalization of sound according to claim 8, characterized in that: The obtained dynamic gain equalization system abnormality index is compared with the dynamic gain equalization system abnormality index reference threshold. If the dynamic gain equalization system abnormality index is greater than or equal to the dynamic gain equalization system abnormality index reference threshold, a dynamic gain equalization system abnormality signal is generated and the troubleshooting process is immediately started; if the dynamic gain equalization system abnormality index is less than the dynamic gain equalization system abnormality index reference threshold, a dynamic gain equalization system normal signal is generated and real-time monitoring of the dynamic gain equalization system is maintained to ensure its continued normal operation.
10. An acoustic dynamic gain equalization system, used to implement an acoustic dynamic gain equalization method according to any one of claims 1 to 9, characterized in that: It includes test module, dynamic evaluation module, audio quality analysis module, comprehensive analysis module, consistency division module and optimization processing module; Test module: collects audio sample data of different types of sound sources and sets up a test environment. In the test environment, the collected audio sample data is used to test the dynamic gain equalization system and the test results are recorded. Dynamic evaluation module: Analyze the test results, determine the degree of retention of the dynamic range of the audio before and after the dynamic gain equalization system is processed according to the change of the gain value of each frequency band, and evaluate the dynamic adjustment of the system to each frequency band; Audio quality analysis module: Analyze the difference in sound quality of different types of audio before and after processing by the dynamic gain equalization system, determine the degree of deviation of the sound quality effect after processing, and evaluate the accuracy of audio quality fusion; Comprehensive analysis module: comprehensively analyzes the system's dynamic adjustment of each frequency band and the accuracy of audio quality fusion, and evaluates the consistency of the dynamic gain equalization system between different sound sources; Consistency division module: Based on the evaluation results, the performance of the dynamic gain equalization system between different sound sources is divided into consistent performance and inconsistent performance, and corresponding processing is performed respectively; Optimization processing module: further analyzes the consistency of the processed dynamic gain equalization system between different sound sources, and optimizes the dynamic gain equalization system based on the analysis results to improve the consistency of the system.
Citation Information
Patent Citations
Loudness adjusting method and loudness adjusting device for audio signal
CN110446102A
Audio gain control method and system for Bluetooth sound box
CN117939360A
Microphone gain method and system
CN118102155A
Progressive filter parameter adjustment Chirp signal equalization optimization method
CN118509772A
Electricity protection control method and device for acousto-optic equipment, equipment, storage medium and product
CN118523320A