Sound testing and automatic tuning method and system
By using audio reception and analysis modules in the closed test chamber and combining pre-trained models, the problem of inconsistent sound experience of the audio system in different environments is solved, automated tuning is achieved, and the testing accuracy and efficiency of the audio system are improved.
Patent Information
- Application Number
- CN202411049280.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-15
AI Technical Summary
Existing audio systems are difficult to provide a consistent sound experience in different environments, and are affected by factors such as room size, reflection and noise levels.
Using a closed test chamber and an automated control platform, multi-dimensional feature fusion analysis is performed through the audio receiving module and the audio analysis module, and the pre-trained audio tuning model is used to dynamically adjust the audio parameters according to the environmental data and noise level to realize automatic tuning of the audio system. excellent.
Improves the test accuracy and optimization efficiency of the audio system, ensures consistent audio performance in multiple environments, reduces the time and human resources of the debugging and optimization process, and reduces development and production costs.
Smart Images

Figure CN118972771A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic testing technology, and in particular to a method and system for acoustic testing and automatic tuning. Background Art
[0002] The performance of the audio system may vary in different environments, including room size, reflection, absorption characteristics, etc. Audio equipment often needs to be used in different environmental conditions, such as conference rooms, outdoor activities or vehicle interiors. Each environment will have an impact on the performance of the audio equipment, such as changes in reflection, reverberation and noise levels. Therefore, an audio testing and automatic tuning method is urgently needed to ensure that the audio equipment provides a consistent sound experience in various environments. Summary of the invention
[0003] The present application provides a method and system for audio testing and automatic tuning, which at least solves the technical problem that existing audio systems are difficult to provide users with a consistent sound experience in different environments.
[0004] In order to solve the above technical problems, the embodiment of the present application provides: a sound testing and automatic tuning method, the method is used for testing and automatic tuning system; the testing and automatic tuning system comprises:
[0005] A closed test chamber, wherein a target sound is arranged in the closed test chamber;
[0006] A control platform, wherein the control platform sends the target audio parameters to the target sound through a communication connection, so that the target sound plays based on the target audio parameters;
[0007] An audio tuning device is provided with an audio receiving module and an audio analyzing module; the audio receiving module is used to receive the audio data played by the target sound based on the target audio parameters; the audio analyzing module is used to perform fusion analysis on the audio data received by the audio receiving module, and output tuning parameters based on the analysis results;
[0008] The acoustic testing and automatic tuning method comprises the following steps:
[0009] Acquiring audio data; performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data;
[0010] After multi-dimensional feature fusion of the multiple acoustic feature data, the data are input into the trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model;
[0011] Based on the tuning parameters, the target audio parameters are optimized.
[0012] As some optional implementations of the present application, the step of performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data includes:
[0013] After performing denoising on the audio data using a filtering algorithm, first audio data is obtained;
[0014] The first audio data is segmented to obtain a second audio data set; the length of each audio data in the second audio data set meets a preset length;
[0015] Normalizing the amplitude of the audio data in the second audio data set to obtain a third audio data set; wherein the amplitudes of the audio data in the third audio data set are the same;
[0016] Extracting acoustic feature data of each audio data in the third audio data set; the acoustic feature data includes basic frequency features, energy features, spectrum features, Mel-frequency cepstrum coefficients, zero crossing rate and signal-to-noise ratio features.
[0017] As some optional implementations of the present application, the step of performing multi-dimensional feature fusion on the multiple acoustic feature data and inputting the data together with the target playback environment data and the target environment noise level into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model includes:
[0018] Integrating the plurality of acoustic feature data into a structured data format to obtain a feature matrix, wherein the rows of the feature matrix represent time frames, and the columns represent acoustic feature data extracted from each time frame;
[0019] Acquire context information of audio playback; obtain environment label coding and noise level quantization value based on the context information of audio playback;
[0020] The feature matrix, the environment label code and the noise level quantization value are input into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model.
[0021] As some optional implementations of the present application, the step of obtaining the environment label encoding and the noise level quantization value based on the context information of the audio playback includes:
[0022] Inputting the context information of the audio playback into the trained environment recognition model to obtain the environment label encoding and noise level quantization value output by the environment recognition model;
[0023] Among them, when the playback environment is an indoor environment, the environment label is encoded as [1, 0, 0], and the noise level quantization value is the first level; when the playback environment is an outdoor environment, the environment label is encoded as [0, 1, 0], and the noise level quantization value is the second level; when the playback environment is an in-car environment, the environment label is encoded as [0, 0, 1], and the noise level quantization value is the third level.
[0024] As some optional implementation modes of the present application, when the noise level quantization value is the first level, the corresponding noise is 30dB~50dB; when the noise level quantization value is the second level, the corresponding noise is 50dB~80dB; when the noise level quantization value is the third level, the corresponding noise is 60dB~80dB.
[0025] As some optional implementations of the present application, the step of obtaining the first audio data after denoising the audio data using a filtering algorithm includes:
[0026] Based on the audio data, obtaining a Mel frequency spectrum of the audio data;
[0027] Subtracting the noise spectrum from the Mel spectrum of the audio data to obtain a denoised Mel spectrum;
[0028] The denoised Mel spectrum is inversely transformed to obtain first audio data.
[0029] As some optional implementations of the present application, the step of segmenting the first audio data to obtain a second audio data set includes:
[0030] Performing silence detection on the first audio data to obtain a silence area; shortening a time frame of the silence area by a preset value and then segmenting the time frame to obtain a non-silent area;
[0031] The non-silent area is segmented according to a preset time frame length value to obtain a second audio data set.
[0032] As some optional implementations of the present application, the step of performing amplitude normalization processing on the audio data in the second audio data set to obtain the third audio data set includes:
[0033] Calculating an RMS value of each audio data in the second audio data set;
[0034] Based on the preset target RMS value and the scaling factor, the RMS value of each of the audio data is adjusted to obtain a third audio data set.
[0035] On the other hand, the embodiment of the present application provides a sound testing and automatic tuning system, including:
[0036] A closed test chamber, wherein a target sound is arranged in the closed test chamber;
[0037] A control platform, wherein the control platform sends the target audio parameters to the target sound through a communication connection, so that the target sound plays based on the target audio parameters;
[0038] The audio tuning device is provided with an audio receiving module and an audio analyzing module; the audio receiving module is used to receive the audio data played by the target sound based on the target audio parameters; the audio analyzing module is used to perform fusion analysis on the audio data received by the audio receiving module, and output tuning parameters based on the analysis results.
[0039] As some optional implementations of the present application, the audio tuning device includes:
[0040] Audio receiving module, obtaining audio data;
[0041] The audio analysis module performs data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data; after multi-dimensional feature fusion of the various acoustic feature data, the data is input into the trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model;
[0042] The tuning module optimizes the target audio parameters based on the tuning parameters.
[0043] The acoustic testing and automatic tuning method provided by this application has several significant advantages over the prior art:
[0044] In the prior art, the debugging and optimization of the sound system often rely on time-consuming manual experiments and manual adjustments. The method described in the present application can achieve accurate quantitative testing and automated tuning processes through a closed test chamber and an automated control platform. This can greatly improve the accuracy of the test and the efficiency of optimization, and avoid errors caused by human factors. In addition, the method described in the present application uses an audio receiving module and an audio analysis module to perform multi-dimensional feature fusion analysis on the audio data received from the target sound. Compared with the traditional single acoustic feature analysis, this multi-dimensional analysis can more comprehensively evaluate the performance and response characteristics of the sound system, thereby more accurately optimizing the audio parameters. And the method described in the present application uses a pre-trained audio tuning model, which can provide consistent optimization effects in a variety of environments and scenarios. This model can not only quickly generate tuning parameters, but also dynamically adjust the optimization strategy according to actual environmental conditions (such as target playback environment data and environmental noise level) to ensure that the sound system always exhibits the best sound quality. It can be seen that after the method described in the present application integrates the test and automatic tuning system, it can significantly reduce the time and human resources required for the debugging and optimization process. For sound engineers and manufacturers, this means a more efficient workflow and faster time to market, thereby reducing development and production costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the specific implementation of the present application or the technical solution in the prior art, the following is a brief introduction to the drawings required for the specific implementation or the prior art description. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale.
[0046] Figure 1 A schematic diagram of the computer device structure of the hardware operating environment involved in this application;
[0047] Figure 2 This is a schematic diagram of the structure of the test and automatic tuning system involved in this application;
[0048] Figure 3 A schematic diagram of the testing and automatic tuning method involved in this application;
[0049] Figure 4 This is a schematic diagram of the Python code for step S10 involved in this application.
[0050] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] like Figure 1 As shown, the computer device may include: a processor 1001, such as a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The above processor is the control center of the above terminal device, and various interfaces and lines are used to connect the various parts of the entire user terminal. Communication bus 1002, user interface 1003, network interface 1004, memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0053] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0054] like Figure 1As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an electronic program.
[0055] exist Figure 1 In the computer device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the computer device of the present application can be set in the computer device, and the computer device calls the audio test and automatic tuning system stored in the memory 1005 through the processor 1001, and executes the audio test and automatic tuning method provided in the embodiment of the present application.
[0056] The embodiment of the present application provides a method for testing and automatically tuning an audio system; the method is used for testing and automatically tuning a system; the testing and automatically tuning system is as follows: Figure 2 As shown, including:
[0057] A closed test chamber, wherein a target sound is arranged in the closed test chamber;
[0058] A control platform, wherein the control platform sends the target audio parameters to the target sound through a communication connection, so that the target sound plays based on the target audio parameters;
[0059] The audio tuning device is provided with an audio receiving module and an audio analyzing module; the audio receiving module is used to receive the audio data played by the target sound based on the target audio parameters; the audio analyzing module is used to perform fusion analysis on the audio data received by the audio receiving module, and output tuning parameters based on the analysis results.
[0060] Wherein, the audio tuning device comprises:
[0061] Audio receiving module, obtaining audio data;
[0062] The audio analysis module performs data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data; after multi-dimensional feature fusion of the various acoustic feature data, the data is input into the trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model;
[0063] The tuning module optimizes the target audio parameters based on the tuning parameters.
[0064] Based on the above test and automatic tuning system, the present application embodiment also provides a sound test and automatic tuning method, such as Figure 3 As shown, the following steps are included:
[0065] Step S10, obtaining audio data; performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data.
[0066] In audio testing and automatic tuning systems, acquiring audio data is a key step, which provides the basis for subsequent data processing and optimization. Audio data acquisition can be achieved in a variety of ways, depending on the design of the test system and the characteristics of the target audio device. For example, in a laboratory environment, the audio signal generated by the target audio device can be captured by directly connecting an audio interface or a digital interface. This method is often used to test professional audio equipment or high-fidelity audio systems. Or for portable audio equipment or when testing on site, audio data can be acquired through wireless transmission technology. For example, use Bluetooth or Wi-Fi connection to transfer audio data to the test system for subsequent processing. Or when testing on site or needing to measure the sound effects in the environment, use professional microphones to collect the sound generated by the target audio device. This method can capture real environmental sound effects and is very useful for evaluating the performance of the audio system in a specific environment. Or for traditional audio equipment, such as old amplifiers or sound systems, it may be necessary to use analog signal acquisition equipment to acquire audio data. These devices can convert analog audio signals into digital formats for subsequent data processing and analysis.
[0067] After obtaining the audio data through the above steps, the audio data is preprocessed and feature extracted based on the following steps:
[0068] The step of performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data in step S10 includes:
[0069] After performing denoising on the audio data using a filtering algorithm, first audio data is obtained;
[0070] The first audio data is segmented to obtain a second audio data set; the length of each audio data in the second audio data set meets a preset length;
[0071] Normalizing the amplitude of the audio data in the second audio data set to obtain a third audio data set; wherein the amplitudes of the audio data in the third audio data set are the same;
[0072] Extracting acoustic feature data of each audio data in the third audio data set; the acoustic feature data includes basic frequency features, energy features, spectrum features, Mel-frequency cepstrum coefficients, zero crossing rate and signal-to-noise ratio features.
[0073] Specifically, the step of obtaining the first audio data after denoising the audio data using a filtering algorithm includes: obtaining a Mel spectrum of the audio data based on the audio data; subtracting a noise spectrum from the Mel spectrum of the audio data to obtain a denoised Mel spectrum; and inverse transforming the denoised Mel spectrum to obtain the first audio data.
[0074] Specifically, the step of segmenting the first audio data to obtain a second audio data set includes: performing silence detection on the first audio data to obtain a silent area; shortening the time frame of the silent area by a preset value and then segmenting it to obtain a non-silent area; segmenting the non-silent area according to a preset time frame length value to obtain a second audio data set.
[0075] Specifically, the step of performing amplitude normalization processing on the audio data in the second audio data set to obtain the third audio data set includes: calculating the RMS value of each audio data in the second audio data set; and adjusting the RMS value of each audio data based on a preset target RMS value and a scaling factor to obtain the third audio data set.
[0076] It should be noted that the Python code for the above steps is as follows Figure 4 As shown; the Mel spectrum is a method of performing spectrum analysis on audio signals, which is more consistent with the human auditory system. It divides the audio signal into time periods on the horizontal axis and represents the energy distribution of different frequencies on the vertical axis. The denoised Mel spectrum refers to a clear audio signal Mel spectrum obtained by subtracting the spectrum distribution of background noise. The purpose of this step is to eliminate noise or other interference in the environment, so that subsequent analysis is more accurate. The inverse transform refers to converting the denoised Mel spectrum back to the original audio data format for subsequent processing and analysis. The inverse transform ensures that the processed data can be further processed or displayed. The RMS value (Root Mean Square) is a method of measuring the strength of an audio signal, which is usually used to evaluate the energy distribution of audio. It can help determine the overall strength and dynamic range of an audio signal. The scaling factor refers to a parameter used to adjust the audio intensity in audio processing. By adjusting the RMS value, the overall loudness of the audio signal can be controlled so that the output audio reaches the expected volume level.
[0077] As you can see, the above steps describe a relatively complex audio processing flow, including audio spectrum acquisition, denoising, silence detection and processing, and dynamic range compression. This series of steps is used to optimize audio files, especially for scenarios where clear speech or music needs to be extracted from a noisy environment. Below I will further refine these steps and explain them with a specific practical case:
[0078] Assuming that in the first embodiment, an interview audio recorded in a noisy environment needs to be processed in order to clean up the audio for clear playback, the following steps are included:
[0079] Get Mel spectrum: Convert the original audio signal to the frequency domain and use the Mel filter bank to extract the Mel spectrum. Mel spectrum is a spectrum that nonlinearly transforms the frequency according to human ear perception and is often used in speech recognition and music analysis.
[0080] Denoising: Get the Mel spectrum of the noise sample pre-recorded in the recording environment as the noise spectrum. Subtract the Mel spectrum of the audio from the noise spectrum to eliminate the influence of background noise.
[0081] Inverse transform: The denoised Mel spectrum is converted back into a time domain signal through inverse transform to obtain the cleaned audio.
[0082] Silence detection and processing: Silence detection is performed on the cleaned audio to identify silent areas. The duration of silent areas is shortened, usually by deleting some silent frames, to reduce unnecessary silence and make the dialogue more compact.
[0083] Audio segmentation: further segment the non-silent areas in the processed audio and cut them into preset time frame lengths (such as 10 seconds per segment) for subsequent processing.
[0084] Calculate RMS value: Calculate the RMS value for each piece of audio data to measure the average power level of the audio.
[0085] Volume adjustment: Based on the preset target RMS value and the calculated RMS value, the volume of each audio segment is adjusted by calculating the scaling factor to ensure that the volume of all segments is consistent.
[0086] In the second embodiment, suppose that an audio file containing multiple conversations needs to be processed. These conversations are recorded in a noisy cafe. The processing goal is to produce a clear podcast segment with uniform volume. The following steps are included: First, we apply FFT and Mel filter bank to the original audio to extract the Mel spectrum. Secondly, use the background noise sample of the cafe to subtract this part of the noise from the Mel spectrum of the conversation. Then, the denoised Mel spectrum is inversely transformed to restore the audio signal in the time domain. Next, the long silence period is removed or shortened through silence detection, and then the non-silent area is divided into segments of preset length. Finally, in order to ensure that the volume of all segments is consistent when playing, the RMS value of each segment is calculated and its volume is adjusted according to the target RMS value. Through this series of steps, we can produce a podcast with clear sound quality and balanced volume, which is suitable for clear listening in various playback environments. This processing is particularly suitable for voice broadcasting and professional audio production.
[0087] Step S20: After multi-dimensional feature fusion of the various acoustic feature data, the data are input into the trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model.
[0088] Specifically, the step of performing multi-dimensional feature fusion on the multiple acoustic feature data in step S20, and inputting the data together with the target playback environment data and the target environment noise level into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model, includes:
[0089] Step S21: Integrate the multiple acoustic feature data into a structured data format to obtain a feature matrix; the rows of the feature matrix represent time frames, and the columns represent the acoustic feature data extracted from each time frame. In one embodiment, the feature matrix is shown in Table 1:
[0090]
[0091] In Table 1, the fundamental frequency feature (F0) represents the quantization of pitch, usually expressed in Hertz (Hz); the energy feature represents the intensity or energy of the sound in a specific time window; the spectrum feature represents the frequency distribution of the sound signal; the Mel-frequency cepstral coefficients (MFCCs) represent the compact representation of the spectral characteristics of the sound and are widely used in speech recognition; the zero crossing rate (ZCR) represents the frequency of zero crossing of the signal, reflecting the frequency characteristics of the signal; the sound quality indicators may include harmonic distortion or signal-to-noise ratio.
[0092] As can be seen, the rows of Table 1 represent time frames, each row is a multidimensional feature description of a sample point, and the columns represent the features extracted from each frame. For example, the first row represents all feature values of the first time window, where F0 is 120 Hz, energy is 0.8, etc.
[0093] Step S22: Obtain context information of the audio playback; based on the context information of the audio playback, obtain an environment label code and a noise level quantization value.
[0094] In one embodiment, the step of obtaining an environmental label code and a noise level quantization value based on the context information of the audio playback includes: inputting the context information of the audio playback into a trained environment recognition model to obtain the environmental label code and the noise level quantization value output by the environment recognition model; wherein, when the playback environment is an indoor environment, the environmental label code is [1, 0, 0], and the noise level quantization value is the first level; when the playback environment is an outdoor environment, the environmental label code is [0, 1, 0], and the noise level quantization value is the second level; when the playback environment is an in-car environment, the environmental label code is [0, 0, 1], and the noise level quantization value is the third level.
[0095] It should be noted that when the noise level quantization value is the first level, the corresponding noise is 30dB~50dB; when the noise level quantization value is the second level, the corresponding noise is 50dB~80dB; when the noise level quantization value is the third level, the corresponding noise is 60dB~80dB.
[0096] Step S23: input the feature matrix, the environment label code and the noise level quantization value into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model.
[0097] In some instances, the contextual information of the audio playback includes, but is not limited to: environmental noise level: for example, whether it is in a noisy public place, a quiet home environment, or outdoors; environment type: for example, indoors, outdoors, inside a vehicle, etc.; device type: whether a mobile phone, tablet, laptop, or professional audio system is used; user preferences: for example, a user may prefer heavy bass or bright treble; time: for example, daytime or nighttime may affect the optimization settings for audio playback. The environmental label encoding is a predefined classification used to describe the type of environment for audio playback. For example, "indoor" can be encoded as 1, "outdoor" as 2, and "in the car" as 3. The noise level quantization value: This is a numerical value used to quantify the environmental noise level. For example, it can be calibrated from 0 (no noise) to 10 (extremely noisy).
[0098] In one embodiment, an audio player is used in a coffee shop. The device first collects ambient sound and analyzes it to obtain a noise level quantization value of 7 (relatively noisy). At the same time, the device determines that the environment is an "indoor public place" through the built-in environmental sensor, and the environmental label code is 4.
[0099] The audio tuning model is performed through the following steps:
[0100] Model input: feature matrix, environment label encoding, and noise level quantization value.
[0101] Model processing: The model analyzes these inputs, using previous training data to predict the audio processing parameters that are best suited for the current environment and device.
[0102] Output tuning parameters: For example, you might increase low-frequency gain to compensate for low-frequency loss in a noisy environment, adjust dynamic compression settings to account for ambient noise, or modify equalizer settings to improve speech intelligibility.
[0103] In this way, the system can automatically optimize audio output to ensure that users can enjoy the best listening experience in different playback environments. This intelligent adjustment significantly improves the practicality and user satisfaction of portable and home audio devices.
[0104] Step S30: Optimize the target audio parameters based on the tuning parameters.
[0105] It can be seen that the audio testing and automatic tuning system described in this application has many significant advantages, which not only improve the efficiency and effect of audio processing, but also greatly enhance the user experience. Specifically:
[0106] Highly automated audio processing flow: The solution acquires and processes audio data through automated steps, from preprocessing, acoustic feature extraction to final audio tuning, achieving efficient and standardized audio optimization. This automation reduces the need for manual intervention and ensures consistency and repeatability of the processing process, especially for large or continuous audio data processing scenarios.
[0107] Environmental adaptability and context awareness: By analyzing the contextual information of the playback environment, such as ambient noise, environment type, etc., and integrating this information into the audio tuning model, the system can intelligently adjust audio parameters according to different playback conditions. This environmental adaptability allows the audio output to maintain optimal quality under various conditions, whether in a quiet indoor environment or a noisy outdoor environment.
[0108] Accurate acoustic feature processing: The system accurately captures the detailed characteristics of audio data through advanced acoustic feature extraction techniques (such as Mel-frequency cepstral coefficients, zero-crossing rate, etc.). Detailed analysis of these features provides rich input for the audio tuning model, making the tuning more accurate, especially in scenarios where specific sound attributes (such as clarity, pitch, dynamic range, etc.) need to be improved.
[0109] Intelligent control of dynamic range and volume: By calculating the RMS value of the audio signal and adjusting it according to the target RMS value, the system can intelligently control the dynamic range and overall volume of the audio to ensure the consistency and comfort of the output audio. This is especially important for producing music works, podcasts or other professional audio products, because it ensures that the volume between different clips matches and improves the overall listening quality.
[0110] Denoising and clarity enhancement: This solution uses an efficient denoising algorithm (based on Mel spectrum denoising) to effectively separate clear audio signals from noisy environments, significantly improving the intelligibility and quality of audio. This is critical for recording or real-time communication in noisy environments.
[0111] Flexible applicability: Since the system can handle a variety of audio inputs from simple analog signals to complex digital audio interfaces, it is highly adaptable. Whether it is old analog audio equipment or the latest digital audio system, this solution can provide high-quality audio tuning services.
[0112] Improved user experience and satisfaction: Through the precise audio optimization of the automatic tuning system, users can enjoy a clearer and more pleasant audio experience, whether it is music, movies or calls, they can achieve the best hearing effect, thereby significantly improving user satisfaction and loyalty.
[0113] Based on the same inventive concept, an embodiment of the present application further provides: a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the method described above.
[0114] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0115] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0116] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0117] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0118] It should be noted that, in this article, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0119] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0121] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for acoustic testing and automatic tuning, characterized in that: The method is used for testing and automatically tuning a system; the testing and automatically tuning system comprises: A closed test chamber, wherein a target sound is arranged in the closed test chamber; A control platform, wherein the control platform sends the target audio parameters to the target sound through a communication connection, so that the target sound plays based on the target audio parameters; An audio tuning device is provided with an audio receiving module and an audio analyzing module; the audio receiving module is used to receive the audio data played by the target sound based on the target audio parameters; the audio analyzing module is used to perform fusion analysis on the audio data received by the audio receiving module, and output tuning parameters based on the analysis results; The acoustic testing and automatic tuning method comprises the following steps: Acquiring audio data; performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data; After multi-dimensional feature fusion of the multiple acoustic feature data, the data are input into the trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model; Based on the tuning parameters, the target audio parameters are optimized.
2. The sound testing and automatic tuning method according to claim 1, characterized in that: The step of performing data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data includes: After performing denoising on the audio data using a filtering algorithm, first audio data is obtained; The first audio data is segmented to obtain a second audio data set; the length of each audio data in the second audio data set meets a preset length; Normalizing the amplitude of the audio data in the second audio data set to obtain a third audio data set; wherein the amplitudes of the audio data in the third audio data set are the same; Extracting acoustic feature data of each audio data in the third audio data set; the acoustic feature data includes basic frequency features, energy features, spectrum features, Mel-frequency cepstrum coefficients, zero crossing rate and signal-to-noise ratio features.
3. The sound testing and automatic tuning method according to claim 1, characterized in that: The step of performing multi-dimensional feature fusion on the multiple acoustic feature data and inputting the data together with the target playback environment data and the target environment noise level into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model includes: Integrating the plurality of acoustic feature data into a structured data format to obtain a feature matrix, wherein the rows of the feature matrix represent time frames, and the columns represent acoustic feature data extracted from each time frame; Acquire context information of audio playback; obtain environment label coding and noise level quantization value based on the context information of audio playback; The feature matrix, the environment label code and the noise level quantization value are input into the trained audio tuning model to obtain the tuning parameters output by the audio tuning model.
4. The sound testing and automatic tuning method according to claim 3, characterized in that: The step of obtaining the environment label encoding and the noise level quantization value based on the context information of the audio playback includes: Inputting the context information of the audio playback into the trained environment recognition model to obtain the environment label encoding and noise level quantization value output by the environment recognition model; Among them, when the playback environment is an indoor environment, the environment label is encoded as [1, 0, 0], and the noise level quantization value is the first level; when the playback environment is an outdoor environment, the environment label is encoded as [0, 1, 0], and the noise level quantization value is the second level; when the playback environment is an in-car environment, the environment label is encoded as [0, 0, 1], and the noise level quantization value is the third level.
5. The sound testing and automatic tuning method according to claim 4, characterized in that: When the noise level quantization value is the first level, the noise corresponds to 30dB~50dB; when the noise level quantization value is the second level, the noise corresponds to 50dB~80dB; when the noise level quantization value is the third level, the noise corresponds to 60dB~80dB.
6. The sound testing and automatic tuning method according to claim 2, characterized in that: The step of obtaining the first audio data after denoising the audio data using a filtering algorithm comprises: Based on the audio data, obtaining a Mel frequency spectrum of the audio data; Subtracting the noise spectrum from the Mel spectrum of the audio data to obtain a denoised Mel spectrum; The denoised Mel spectrum is inversely transformed to obtain first audio data.
7. The sound testing and automatic tuning method according to claim 2, characterized in that: The step of segmenting the first audio data to obtain a second audio data set includes: Performing silence detection on the first audio data to obtain a silence area; shortening a time frame of the silence area by a preset value and then segmenting the time frame to obtain a non-silent area; The non-silent area is segmented according to a preset time frame length value to obtain a second audio data set.
8. The method for acoustic testing and automatic tuning according to claim 2, characterized in that: The step of performing amplitude normalization processing on the audio data in the second audio data set to obtain a third audio data set includes: Calculating an RMS value of each audio data in the second audio data set; Based on the preset target RMS value and the scaling factor, the RMS value of each of the audio data is adjusted to obtain a third audio data set.
9. A sound testing and automatic tuning system, characterized in that: include: A closed test chamber, wherein a target sound is arranged in the closed test chamber; A control platform, wherein the control platform sends the target audio parameters to the target sound through a communication connection, so that the target sound plays based on the target audio parameters; An audio tuning device is provided with an audio receiving module and an audio analyzing module; the audio receiving module is used to receive the audio data played by the target sound based on the target audio parameters; the audio analyzing module is used to perform fusion analysis on the audio data received by the audio receiving module, and output tuning parameters based on the analysis results; The tuning module is used to optimize the target audio parameters based on the tuning parameters.
10. The sound testing and automatic tuning system according to claim 1, characterized in that: The audio tuning device comprises: Audio receiving module, obtaining audio data; The audio analysis module performs data preprocessing and acoustic feature extraction on the audio data to obtain a variety of acoustic feature data; after multi-dimensional feature fusion of the various acoustic feature data, the data is input into a trained audio tuning model together with the target playback environment data and the target environment noise level to obtain the tuning parameters output by the audio tuning model; based on the tuning parameters, the target audio parameters are optimized.
Citation Information
Cited By
Adjusting and optimizing method based on input and output characteristic parameters and device applying method
CN119758937A
Processing method for automatically optimizing audio effect of intelligent equipment
CN120356480A
Method for automatically optimizing audio effects of a smart device
CN120356480B
