A smart speaker detection method and system

Through multi-level signal group generation and nonlinear compensation algorithm, combined with interpolation prediction and real-time impedance monitoring, the deficiencies in accuracy and efficiency of traditional detection methods are solved, high-resolution resonant frequency detection and adaptability are achieved, and meet the needs of high-end audio strict requirements of the application.

CN118574068BActive Publication Date: 2024-10-01音品电子(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047719.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-01
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Traditional speaker detection methods have deficiencies in accuracy and processing of nonlinear effects, and cannot meet the stringent sound quality requirements of high-end audio applications. In particular, it is difficult to accurately capture resonant frequencies in areas where frequency and amplitude change rapidly, and the detection efficiency is low.

Method used

A multi-level signal group generation strategy is adopted, including evenly distributing fundamental frequency points within a preset frequency band, using large-value steps to initially locate the resonant frequency, and then refining the scan and dynamically adjusting the frequency and amplitude distribution of the signal group, combined with nonlinear compensation Algorithm and interpolation prediction, real-time monitoring of impedance changes to improve detection accuracy and efficiency.

Benefits of technology

It significantly improves the accuracy and efficiency of resonant frequency detection, can adapt to different working states and environmental conditions, ensures the reliability and consistency of detection results, solves the error problem of nonlinear effects, and improves the automation and intelligence level of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574068B_ABST
    Figure CN118574068B_ABST
Patent Text Reader

Abstract

The present invention specifically relates to a smart speaker detection method and system, the method comprising: when designing a signal group, firstly evenly distributing fundamental frequency points within a preset frequency band, with the interval between fundamental frequency points being a large step; for each fundamental frequency point, creating a signal group, comprising a group of audio input signals with increasing amplitudes, with a large initial amplitude step; when it is detected that an audio input signal within a certain signal group triggers an overcurrent signal, refining the signal group of the frequency point and reducing the amplitude step; dynamically adjusting the frequency and amplitude distribution of subsequent signal groups based on the results of preliminary detection; predicting the position of the resonant frequency using an interpolation method, and adjusting the signal group based on the prediction; introducing a nonlinear compensation algorithm, and correcting the correlation between the amplitude and the overcurrent signal according to the impedance change characteristics of the speaker at the resonant frequency; fusing and analyzing critical audio input signals obtained from different signal groups, and verifying the stability of the resonant frequency using a statistical method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of speaker detection, and in particular relates to an intelligent speaker detection method and system. Background Art

[0002] The current audio equipment market and technology are developing rapidly. As a key component of smart home, car audio systems and professional audio applications, the performance of smart speakers directly affects the quality of sound reproduction and user experience. In the design and manufacturing process of speakers, accurately detecting their resonant frequency is a crucial step, because the resonant frequency directly affects the frequency response characteristics, distortion and maximum output capacity of the speaker. Although traditional detection methods can provide certain resonant frequency information, they are often unable to meet the strict requirements of high-end audio applications for sound quality due to the limitations of the accuracy of the detection method and the neglect of nonlinear effects.

[0003] In recent years, with the progress of digital signal processing technology, artificial intelligence algorithms and material science, speaker design and detection technology has also been constantly innovating. Modern speaker system design pays more and more attention to low distortion, wide-band response and high-efficiency output, which requires that the detection of resonant frequency must not only be accurate, but also be able to adapt to the nonlinear characteristics of the speaker under various working conditions. The limitations of traditional methods are mainly reflected in the following aspects:

[0004] Fixed frequency and amplitude steps: Traditional detection methods often use fixed-step frequency sweeps and amplitude tests. This strategy may be effective in areas where the frequency and amplitude changes are relatively gentle. However, near the resonant frequency, due to the steep change in the impedance curve, the fixed step may not be able to accurately capture the resonant point, resulting in deviations in the detection results.

[0005] Ignoring nonlinear effects: When a loudspeaker is driven by a large signal, its impedance characteristics will undergo nonlinear changes. This nonlinearity not only affects the direct measurement of the resonant frequency, but also causes overcurrent, distortion and other phenomena. Traditional methods often lack an effective nonlinear compensation mechanism.

[0006] Low detection efficiency: Due to the lack of intelligent signal generation and optimization strategies, the traditional detection process may require a large number of test signals and a long time to complete, which is not conducive to production efficiency and cost control. Summary of the invention

[0007] The purpose of the present invention is to provide a smart speaker detection method and system to solve the problems raised in the above background technology.

[0008] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0009] Smart speaker detection methods, including

[0010] Multi-level signal group generation:

[0011] When designing a signal group, first, the fundamental frequency points are evenly distributed within the preset frequency band, and the interval between the fundamental frequency points is a large step;

[0012] For each fundamental frequency point, a signal group is created, which includes a set of audio input signals with increasing amplitudes, and the initial amplitude step is large;

[0013] In the initial detection stage, the fundamental frequency point and large amplitude steps are used to quickly locate the initial range of the resonant frequency;

[0014] When an audio input signal in a certain signal group is detected to trigger an overcurrent signal, the signal group at the frequency point is refined, the amplitude step is reduced, and the frequency step density is increased, and a detailed scan is performed near the resonant frequency;

[0015] Based on the results of the preliminary detection, the frequency and amplitude distribution of the subsequent signal groups are dynamically adjusted to focus around the resonant frequency initially detected;

[0016] predicting the location of the resonant frequency using an interpolation method, and adjusting the signal set based on the prediction;

[0017] A nonlinear compensation algorithm is introduced to correct the correlation between the amplitude and the overcurrent signal according to the impedance change characteristics of the speaker at the resonant frequency;

[0018] During the detection process, the impedance change of the speaker is monitored in real time, and the amplitude of the signal group is adjusted using the known speaker impedance curve model to more accurately capture the critical point;

[0019] The critical audio input signals obtained from different signal groups are fused and analyzed, and the stability of the resonant frequency is verified using statistical methods;

[0020] Carry out secondary testing to verify the initially determined resonant frequency and ensure the reliability of the test results.

[0021] Further, the design signal group is specifically as follows:

[0022] First, determine the preset frequency band according to the application range of the speaker;

[0023] Base frequency selection criteria: Within the preset frequency band, base frequency points are evenly selected at large step intervals of 100 Hz;

[0024] After preliminary detection, for the fundamental frequency points near the suspected resonant frequency, not only is the amplitude step reduced to 0.1dB to improve the resolution, but an adaptive algorithm is also used to dynamically adjust the frequency step density.

[0025] Furthermore, for each base frequency point, creating a signal group specifically includes:

[0026] When designing the amplitude increment sequence, an intelligent incremental strategy is adopted. A large amplitude step can be used at the beginning, and when the resonant frequency area is expected, it can switch to a more refined increment mode, and gradually reduce the step in an exponential decay manner; the amplitude upper limit of each signal group is set. Once this upper limit is reached, the amplitude will no longer be increased even in the increment sequence, and the frequency will be refined instead; the audio input signal in the signal group not only increases in amplitude, but also sets the signal duration to ensure that the signal is sufficient to excite the resonance phenomenon of the speaker;

[0027] During the test at each fundamental frequency point, the current and voltage responses of the speaker as well as any abnormal signals are recorded synchronously and compared with the theoretical model predictions.

[0028] Furthermore, when it is detected that an audio input signal in a certain signal group triggers an overcurrent signal, the signal group of the frequency point is refined, and the specific operation is as follows:

[0029] First, for the frequency point that triggers the overcurrent signal, the amplitude step size is reduced to 0.1dB, and at the same time, the frequency step density is increased;

[0030] Implement an adaptive scanning algorithm that dynamically adjusts the scanning strategy based on the data collected in the previous step; if the data indicates that the resonant frequency may lie within a narrower range, the frequency step size will be reduced, or non-uniform frequency steps will be used;

[0031] During the entire refinement scanning process, the amplitude and frequency of the signal are dynamically adjusted using the real-time monitored current and voltage response data and the impedance changes of the speaker;

[0032] Set intelligent stop criteria to automatically terminate the refined scanning of the frequency point when the marginal effect of the amplitude change on the current or voltage response is detected to be less than the threshold, or when the predefined accuracy threshold is reached.

[0033] Furthermore, based on the results of the preliminary detection, the frequency and amplitude distribution of the subsequent signal groups are dynamically adjusted as follows:

[0034] First, the frequency layout of the signal group is replanned based on the resonant frequency range determined by the preliminary test; a high-density frequency stepping scheme is adopted to reduce the frequency step to the smallest unit;

[0035] For each refined frequency point, the amplitude starting point and step strategy are intelligently set based on the amplitude response curve near the frequency point in the previous detection;

[0036] Dynamically adjust the next exploration direction based on real-time test data feedback;

[0037] Assign a weight to each audio input signal in the signal group.

[0038] Furthermore, the position of the resonant frequency is predicted using an interpolation method as follows:

[0039] First, the data points collected during the preliminary detection and refinement scan phases are filtered and denoised. These data points include the speaker response amplitude, current, and voltage key indicators at different frequencies, which together form the basic data set for predicting the resonant frequency;

[0040] Choose radial basis function (RBF) interpolation or Kriging interpolation to build a continuous prediction model in the frequency domain based on the preprocessed data set to estimate the resonant frequency response between the measured frequency points;

[0041] According to the resonant frequency distribution predicted by the interpolation model, the frequency layout of the subsequent signal groups is intelligently adjusted; the signal groups near the predicted peak are generated first, and the test of the area outside the predicted peak is reduced; at the same time, the frequency step and amplitude strategy of the signal group are dynamically adjusted according to the confidence interval provided by the prediction model;

[0042] The interpolation prediction results are compared with the actual detection data, and the interpolation model is optimized through continuous feedback through error analysis.

[0043] Furthermore, the nonlinear compensation algorithm is introduced including:

[0044] First, extract the characteristics of the current, voltage response and impedance change of the speaker at different frequencies and amplitudes from the data collected during the preliminary detection and detailed scanning process; nonlinear model establishment: based on the characteristic data, build a nonlinear model to describe the relationship between the speaker impedance and the current and voltage; use a neural network to train the model, and when training the model, fully consider the nonlinear distortion, saturation effect and memory effect of the impedance curve.

[0045] A compensation algorithm is formed based on the established neural network model, and the compensation algorithm predicts the deviation between the actual current or voltage and the ideal linear response due to nonlinear effects under target frequency and amplitude conditions.

[0046] Furthermore, the amplitude of the signal group is adjusted using a known loudspeaker impedance curve model, specifically including:

[0047] While monitoring the speaker impedance change in real time, the measured impedance value is immediately matched with the preset impedance curve model; the state point closest to the current impedance in the model is found through interpolation or nearest neighbor search method, so as to obtain the expected impedance-amplitude response relationship of the closest state point;

[0048] Based on the impedance model matching results, the optimal adjustment amount of the signal amplitude is dynamically calculated; if the measured impedance characteristics are the impedance characteristics predicted by the resonance point, the amplitude of the current signal group is adjusted based on the amplitude response predicted by the model to ensure that the signal amplitude matches the real-time impedance state of the speaker;

[0049] Under the guidance of the impedance curve model, the size of the amplitude step is dynamically adjusted; when the estimated resonant frequency is reached, the amplitude step is automatically reduced.

[0050] Beneficial effects:

[0051] Improved accuracy: Through the multi-level signal group generation strategy, combined with dynamic step adjustment and adaptive algorithm, high-resolution scanning can be achieved near the resonant frequency, significantly improving the accuracy of resonant frequency detection. The application of nonlinear compensation algorithm effectively corrects the impedance nonlinear characteristics of the speaker under large signal drive, further ensuring the accuracy of the test results.

[0052] Optimization of detection efficiency: The intelligent signal group design, combined with the initial rapid positioning and subsequent refined scanning, avoids unnecessary test signal generation and significantly improves detection efficiency. The introduction of the interpolation prediction method further reduces detection time and resource consumption by analyzing the previous detection data and intelligently adjusting the subsequent test strategy.

[0053] Enhanced adaptability: Real-time monitoring of speaker impedance changes and dynamic adjustment of signal amplitude based on the impedance curve model ensure that the detection method can adapt to speakers under different working states and environmental conditions, improving the versatility and adaptability of the system.

[0054] Stability assurance: Through signal group fusion analysis and statistical method verification, the detection results of multiple signal groups are comprehensively evaluated, which not only enhances the stability of resonant frequency estimation, but also ensures the reliability and consistency of the detection results by calculating confidence intervals and implementing robustness analysis.

[0055] Nonlinear effect management: Innovatively introduces a nonlinear compensation algorithm, using a neural network model to predict and compensate for detection errors caused by nonlinear impedance changes, solving the problem of traditional methods ignoring nonlinear effects, and enabling highly accurate detection in complex nonlinear areas.

[0056] Intelligent decision-making: The entire detection process is integrated with intelligent decision-making mechanisms, including intelligent stop criteria for automatically terminating refined scans, test strategies that are dynamically adjusted based on real-time data, and optimization of signal group frequency and amplitude based on predictive models, which greatly improves the automation and intelligence level of detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1This is a flow chart of the application method. DETAILED DESCRIPTION

[0058] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] The present invention provides a smart speaker detection method and system, such as Figure 1 As shown, the present application discloses a smart speaker detection method, including

[0060] Multi-level signal group generation:

[0061] When designing a signal group, firstly, the fundamental frequency points are evenly distributed within a preset frequency band, and the interval between the fundamental frequency points is a large step (for example, 100 Hz) to cover the entire possible resonant frequency range.

[0062] The specific steps of designing a signal group can be further refined as follows:

[0063] Definition of preset frequency band: First, determine a suitable preset frequency band according to the application range of the speaker. Usually, this frequency band covers the lowest frequency to the highest frequency of the speaker response, such as from 20Hz to 20kHz, to fully explore the resonance characteristics of the speaker.

[0064] Base frequency selection criteria: In the preset frequency band, base frequency points are evenly selected at large step intervals of 100Hz. In order to cover the entire frequency band more efficiently, the selection method can be adopted, especially in the high-frequency part, the number of points can be appropriately reduced to maintain the balance of the test, avoiding excessive density in the high-frequency area and possible omissions in the low-frequency area.

[0065] Optimal design of signal group: For each selected fundamental frequency point, the generated signal group should not only have increasing amplitude, but also consider phase characteristics. Signals with different phase offsets can be designed to evaluate the impact of phase on resonant frequency detection. This can more fully simulate the diversity of audio signals in the real world.

[0066] Dynamic step adjustment mechanism: After preliminary detection, for the fundamental frequency points near the suspected resonant frequency, not only is the amplitude step reduced to 0.1dB to improve the resolution, but an adaptive algorithm is also used to dynamically adjust the frequency step density. For example, a smaller step (such as 5Hz or less) is used at the frequency points near the resonant frequency to more accurately lock the resonant point.

[0067] For each fundamental frequency point, create a signal group containing a set of audio input signals with increasing amplitudes, with a large initial amplitude step (e.g. 1 dB).

[0068] When designing the amplitude increment sequence, use an intelligent incremental strategy instead of a simple differential increase. For example, you can start with a larger amplitude step (such as 1dB), and when the resonant frequency area is expected, switch to a finer increment mode, such as gradually reducing the step in an exponential decay manner (such as 0.5dB, then 0.2dB), which can quickly traverse the amplitude space and ensure higher resolution in key areas.

[0069] Set an upper limit for the amplitude of each signal group, which is based on the maximum power rating or safe operating range of the speaker to ensure that no damage is caused to the speaker during the test. Once this limit is reached, the amplitude will no longer increase even in the incremental sequence, and focus on frequency refinement instead.

[0070] In each signal group, in addition to the amplitude increase, the effect of amplitude on frequency response is also considered, that is, the response of the same frequency may be different under different amplitudes. For this reason, a cross-validation experiment can be designed to compare the response differences of the same frequency point under different amplitudes to correct the nonlinear effect.

[0071] The audio input signal in the signal group should not only have increasing amplitude, but also consider the waveform of the signal (such as sine wave, square wave, pulse wave) and its duration, because different waveforms and durations may affect the manifestation of resonance characteristics. Select the most suitable waveform according to the characteristics of the speaker and set a reasonable signal duration to ensure that the signal is sufficient to stimulate the resonance of the speaker but not in an overload state for a long time.

[0072] During the test of each fundamental frequency point, the current and voltage response of the speaker and any abnormal signals (such as distortion and noise) are recorded synchronously and compared with the theoretical model predictions.

[0073] The intelligent speaker detection method also includes using a fundamental frequency point and a large amplitude step to quickly locate a preliminary range of the resonant frequency during a preliminary detection stage.

[0074] When an audio input signal in a signal group is detected to trigger an overcurrent signal, the signal group at that frequency point is refined, the amplitude step is reduced (for example, to 0.1dB), and the frequency step density is increased (for example, to 10Hz), and a detailed scan is performed near the resonant frequency. When an audio input signal in a signal group is identified to cause an overcurrent event, it indicates that the signal may be close to or at the resonant frequency point of the speaker, and the refinement detection process is immediately started. The specific operations are as follows:

[0075] First, for the frequency point that triggers the overcurrent signal, the amplitude step amplitude is significantly reduced to 0.1dB. This fine-tuning strategy can more accurately explore the amplitude response characteristics around this frequency point without causing overload. At the same time, the frequency step density is increased to a higher resolution, such as narrowed to 10Hz or smaller intervals, so as to conduct an exhaustive search in a narrow frequency band very close to the resonant frequency, thereby accurately locating the position of the resonant peak.

[0076] Implement an adaptive sweep algorithm to dynamically adjust the sweep strategy based on the data collected in the previous step. If the data indicates that the resonant frequency may be in a narrower range, the frequency step size will be reduced, or even non-uniform frequency steps (such as denser on both sides of the suspected resonant frequency and sparser in the middle) will be used to accelerate convergence and reduce unnecessary test times.

[0077] During the entire refinement scanning process, the signal amplitude and frequency are dynamically adjusted using real-time monitored current and voltage response data and the impedance changes of the speaker to ensure that the test signal is always close to the actual response characteristics of the speaker without exceeding the safety limit.

[0078] Set intelligent stop criteria to automatically terminate the refined scan of the frequency point when it is detected that the marginal effect of the amplitude change on the current or voltage response is extremely small, or the predefined accuracy threshold is reached, avoiding excessive testing and saving time and resources.

[0079] Through the above-mentioned detailed processing steps, the technical solution of the present application ensures that when possible signs of resonant frequency are detected, the resonant frequency can be locked quickly and accurately, while minimizing errors and uncertainties in the testing process and improving the reliability and efficiency of the overall detection.

[0080] The smart speaker detection method also includes dynamically adjusting the frequency and amplitude distribution of subsequent signal groups based on the results of the preliminary detection to focus around the resonant frequency detected initially. Based on the results of the preliminary detection, the frequency and amplitude distribution of subsequent signal groups are dynamically adjusted as follows:

[0081] First, the frequency layout of the signal group is replanned based on the resonant frequency range determined by the preliminary test. A high-density frequency stepping scheme is used, especially within the positive and negative deviation range of the resonant frequency identified by the preliminary test (such as ±5Hz), and the frequency step is reduced to the smallest unit (such as 1Hz or less) to achieve dense sampling of the area, thereby accurately depicting the peak of the frequency response curve.

[0082] For each refined frequency point, the amplitude starting point and step strategy are set intelligently based on the amplitude response curve near the frequency point in the previous detection. If it is known that there is a nonlinear response in this area, the initial amplitude can be set at a lower level to avoid premature triggering of overcurrent protection, and then gradually increase the critical point while keeping the amplitude step fine enough (such as 0.05dB) to ensure that the slight impact of amplitude changes on frequency response can also be accurately captured.

[0083] According to the real-time test data feedback, the next exploration direction is dynamically adjusted. If the slope of the amplitude response curve at a certain frequency point suddenly increases, indicating that it may be close to another resonance peak or nonlinear area, the algorithm will prioritize allocating more test resources in this direction, and vice versa, to optimize the detection efficiency.

[0084] Assign weights to each audio input signal in the signal group based on how much they contribute to the resonant frequency estimate in the initial test. Signal weights can be calculated based on the strength of the response they cause and the frequency proximity factor, so that key signals receive more attention in subsequent tests, further enhancing the confirmation of the resonant frequency.

[0085] The implementation of the above-mentioned specific details ensures that detection resources are concentrated and effectively applied to the most critical areas, which not only improves the accuracy of resonant frequency detection, but also optimizes the efficiency and adaptability of the entire detection process, and realizes accurate detection under different speakers and environmental conditions.

[0086] The smart speaker detection method also includes using an interpolation method to predict the location of the resonant frequency, adjusting the signal group based on the prediction, reducing unnecessary signal group generation, and improving detection efficiency. The interpolation method is used to predict the location of the resonant frequency, and the specific implementation details are as follows:

[0087] The large number of data points collected during the preliminary inspection and detailed scanning phases are first filtered and denoised to ensure data quality. These data points include the speaker's response amplitude, current, and voltage key indicators at different frequencies, which together form the basic data set for predicting the resonant frequency.

[0088] Select radial basis function (RBF) interpolation or Kriging interpolation, and build a continuous prediction model in the frequency domain based on the preprocessed data set to estimate the resonant frequency response between the measured frequency points. In particular, the model will form a denser prediction point cloud near the detected amplitude peak to improve the resolution and accuracy of the prediction.

[0089] According to the resonant frequency distribution predicted by the interpolation model, the frequency layout of subsequent signal groups is intelligently adjusted. Signal groups near the predicted peak are generated first, reducing the test of the area outside the predicted peak, avoiding invalid tests on non-critical frequencies, and thus greatly improving the detection efficiency. At the same time, according to the confidence interval provided by the prediction model, the frequency step and amplitude strategy of the signal group are dynamically adjusted to ensure that the test signal is more accurately concentrated near the predicted resonant frequency.

[0090] The interpolation prediction results are compared with the actual detection data, and the interpolation model is optimized through continuous feedback through error analysis.

[0091] Through the implementation of the above specific details, the interpolation method not only accurately predicts the location of the resonant frequency, but also significantly reduces unnecessary signal generation by intelligently adjusting the signal group configuration, thereby greatly improving the overall efficiency of detection without sacrificing detection accuracy.

[0092] The intelligent speaker detection method also includes introducing a nonlinear compensation algorithm to correct the correlation between the amplitude and the overcurrent signal according to the impedance change characteristics of the speaker at the resonant frequency.

[0093] Introducing nonlinear compensation algorithm:

[0094] First, from the large amount of data collected during the preliminary inspection and refinement scan process, the characteristics of the speaker's current, voltage response and impedance change at different frequencies and amplitudes are extracted. In particular, close attention should be paid to the relationship between amplitude and current change near the resonant frequency, which usually shows obvious nonlinear characteristics.

[0095] Nonlinear model establishment: Based on the characteristic data, a nonlinear model is constructed to describe the relationship between the speaker impedance and the current and voltage. A neural network is used for model training. When training the model, the nonlinear distortion, saturation effect and memory effect of the impedance curve should be fully considered.

[0096] The compensation algorithm is formed based on the established neural network model. The compensation algorithm predicts the deviation between the actual current or voltage and the ideal linear response due to nonlinear effects under the target frequency and amplitude conditions. The compensation algorithm dynamically adjusts the amplitude of the test signal to offset this nonlinear effect, ensuring that the detection signal can more accurately reflect the actual resonant condition.

[0097] During the test, the current and voltage responses of the speaker are monitored in real time and these data are input into the nonlinear compensation algorithm. The compensation algorithm calculates the required amplitude correction value according to the current test conditions and adjusts the amplitude of the test signal in real time, so that the resonant frequency can be accurately measured even in areas with significant nonlinear effects.

[0098] Implementation steps:

[0099] Preprocessing and feature extraction: Filter and standardize the real-time monitoring data, and extract characteristic variables related to nonlinear effects.

[0100] Model training and validation: Use historical data or preliminary test data to train the nonlinear compensation model, and ensure the effectiveness of the model through cross-validation.

[0101] Online compensation: Before and after each test signal is sent, the model is used to predict and calculate the compensation amount, and the test signal amplitude is corrected in real time.

[0102] Effect evaluation and feedback: By comparing the detection results before and after compensation, the compensation effect of the algorithm is evaluated, and the model is fine-tuned and optimized based on the evaluation results.

[0103] Through the above detailed design, the nonlinear compensation algorithm can effectively eliminate or reduce the detection error introduced by the nonlinear impedance characteristics of the loudspeaker, further improve the accuracy of resonant frequency detection, and ensure the reliability of the detection results.

[0104] The smart speaker detection method also includes real-time monitoring of the speaker impedance changes during the detection process, and using the known speaker impedance curve model to adjust the amplitude of the signal group to more accurately capture the critical point. Before the formal test, collect a wide range of speaker impedance data, which can be obtained by a dedicated impedance analyzer under different temperature, humidity and power supply conditions. The data should cover the full-band response of the speaker, especially focusing on the resonant area. Using these data, an impedance curve model is established through curve fitting techniques (such as least squares method and maximum likelihood estimation).

[0105] While monitoring the speaker impedance change in real time, the measured impedance value is immediately matched with the preset impedance curve model. Through interpolation or nearest neighbor search method, the state point in the model closest to the current impedance is found, thereby obtaining the expected impedance-amplitude response relationship of the closest state point.

[0106] Based on the impedance model matching results, the optimal adjustment amount of the signal amplitude is dynamically calculated. If the measured impedance characteristics are the impedance characteristics predicted by the resonance point, the amplitude of the current signal group is fine-tuned based on the amplitude response predicted by the model to ensure that the signal amplitude matches the real-time impedance state of the speaker, thereby more accurately stimulating the resonance phenomenon.

[0107] Under the guidance of the impedance curve model, the amplitude step size is dynamically adjusted. When the estimated resonant frequency is reached, the amplitude step is automatically reduced to the minimum recognizable change (such as 0.01dB) to fine-tune the signal amplitude to avoid the aggravation of nonlinear effects caused by excessive amplitude, while ensuring a high test speed in the non-resonant area.

[0108] The smart speaker detection method also includes fusing and analyzing critical audio input signals obtained from different signal groups, and using statistical methods (such as mean value and median) to verify the stability of the resonant frequency.

[0109] Use statistical methods (such as mean value, median) to verify the stability of the resonant frequency. The specific implementation details are as follows:

[0110] First, the critical point data identified during the detection of all signal groups are summarized, including frequency and corresponding amplitude information. These data are pre-processed, such as removing outliers (such as erroneous readings caused by test noise or hardware transient failures) to ensure the accuracy and consistency of the analyzed data.

[0111] Based on the aggregated critical point data, a variety of statistical methods are used to analyze and verify the stability of the resonant frequency. In addition to the basic mean and median calculations, standard deviation, analysis of variance (ANOVA), and regression analysis methods can also be used to evaluate the consistency of the test results of different signal groups. The mean is used to provide an estimate of the central trend, while the median can better represent the core position of the data when there are extreme values ​​in the data distribution. The standard deviation and variance reflect the degree of dispersion of the data and help understand the fluctuations of each test result.

[0112] Weighted fusion strategy: To improve the reliability of the final resonant frequency estimation, different weights can be assigned to each signal group according to its detection quality (such as signal-to-noise ratio and environmental stability during detection). The more stable the detection result of a signal group and the lower the noise, the greater its weight. By calculating the weighted average or weighted median, the detection results of all signal groups are fused to obtain a more accurate resonant frequency estimate.

[0113] Confidence interval calculation: Based on the results of the fusion analysis, the confidence interval of the resonant frequency is calculated, which helps to evaluate the uncertainty of the detection results. The confidence interval reflects the probability that the true resonant frequency falls within a certain range under a given confidence level and is an important indicator for measuring detection accuracy.

[0114] Perform robustness analysis, that is, check the stability of the final resonant frequency estimation by changing the statistical method parameters, excluding some extreme values, or using different fusion strategies. If the results obtained under different methods and parameters are consistent, it means that the detection results have good robustness.

[0115] Through the above detailed steps, this technical solution not only improves the accuracy of resonant frequency detection, but also enhances the stability and reliability of the detection results by integrating information from different signal groups, ensuring that the detection method can still work accurately under a variety of speaker types and working environments.

[0116] Carry out secondary testing to verify the initially determined resonant frequency and ensure the reliability of the test results.

[0117] Initialize the reference signal and adjust the threshold according to the speaker type and working environment to adapt to different scenarios.

[0118] The present application also discloses a smart speaker detection system, comprising:

[0119] Signal generation and processing unit: This unit is responsible for generating a multi-level signal group according to the preset detection algorithm, including audio input signals at different base frequency points, which have a carefully designed amplitude increment sequence and phase characteristics, as well as variable waveforms and durations. The unit can dynamically adjust the frequency step and amplitude step of the signal, and can implement nonlinear compensation based on real-time monitoring data to generate the most optimized test signal.

[0120] Data acquisition and analysis module: This module integrates high-precision current and voltage sensors to monitor the speaker's response to different test signals in real time, including current, voltage and impedance changes. The collected data is processed by advanced filtering and denoising algorithms for real-time analysis and subsequent interpolation prediction. This module is also responsible for executing complex signal processing algorithms, such as online calculation of nonlinear compensation algorithms, and real-time adjustment of test strategies.

[0121] Intelligent algorithm processing center: This central module integrates adaptive algorithms, interpolation prediction algorithms, and nonlinear model training and application functions. It dynamically adjusts the parameters of subsequent signal groups based on preliminary detection results, uses interpolation methods to predict resonant frequencies and optimize test paths, and at the same time, a nonlinear compensation algorithm based on neural networks runs in this module to correct the test signal amplitude in real time to ensure the accuracy of detection.

[0122] Impedance model and real-time matching system: The system pre-stores or learns the impedance curve model of the speaker online, matches it with the impedance data monitored in real time, and dynamically adjusts the amplitude of the test signal to better adapt to the real-time status of the speaker, ensuring the pertinence and accuracy of the detection.

[0123] Result fusion and stability evaluation unit: This unit aggregates the detection data from different signal groups and uses statistical methods to perform in-depth analysis, including signal weight assignment, mean and median calculation, confidence interval evaluation, etc., to enhance the stability and reliability of resonant frequency estimation. In addition, this unit also performs robustness analysis to ensure the consistency and robustness of the detection results.

[0124] User interface and control system: Provide users with an intuitive operation interface to display the detection progress, real-time test data, result analysis and reports. At the same time, it allows users to adjust the detection parameters according to the speaker type and application scenario to achieve a customized detection process.

[0125] The above technical solution can solve the problem of inaccurate resonant frequency detection caused by improper setting of the signal group frequency and amplitude step, and at the same time, take into account the influence of the nonlinear impedance change of the speaker, and improve the accuracy and efficiency of the detection. The intelligent speaker detection technology proposed in this application, through a series of innovative technical means, significantly improves the accuracy, efficiency and reliability of resonant frequency detection, overcomes the limitations of traditional detection methods, and the specific technical effects are as follows:

[0126] Improved accuracy: Through the multi-level signal group generation strategy, combined with dynamic step adjustment and adaptive algorithm, high-resolution scanning can be achieved near the resonant frequency, significantly improving the accuracy of resonant frequency detection. The application of nonlinear compensation algorithm effectively corrects the impedance nonlinear characteristics of the speaker under large signal drive, further ensuring the accuracy of the test results.

[0127] Optimization of detection efficiency: The intelligent signal group design, combined with the initial rapid positioning and subsequent refined scanning, avoids unnecessary test signal generation and significantly improves detection efficiency. The introduction of the interpolation prediction method further reduces detection time and resource consumption by analyzing the previous detection data and intelligently adjusting the subsequent test strategy.

[0128] Enhanced adaptability: Real-time monitoring of speaker impedance changes and dynamic adjustment of signal amplitude based on the impedance curve model ensure that the detection method can adapt to speakers under different working states and environmental conditions, improving the versatility and adaptability of the system.

[0129] Stability assurance: Through signal group fusion analysis and statistical method verification, the detection results of multiple signal groups are comprehensively evaluated, which not only enhances the stability of resonant frequency estimation, but also ensures the reliability and consistency of the detection results by calculating confidence intervals and implementing robustness analysis.

[0130] Nonlinear effect management: Innovatively introduces a nonlinear compensation algorithm, using a neural network model to predict and compensate for detection errors caused by nonlinear impedance changes, solving the problem of traditional methods ignoring nonlinear effects, and enabling highly accurate detection in complex nonlinear areas.

[0131] Intelligent decision-making: The entire detection process is integrated with intelligent decision-making mechanisms, including intelligent stop criteria for automatically terminating refined scans, test strategies that are dynamically adjusted based on real-time data, and optimization of signal group frequency and amplitude based on predictive models, which greatly improves the automation and intelligence level of detection.

[0132] To sum up, the technical solution of the present application excels in improving the accuracy, efficiency, adaptability and stability of resonant frequency detection, provides advanced technical means for performance evaluation and optimization design of smart speakers and other audio devices, meets the strict requirements of high-quality sound quality for high-end audio applications, and has significant technological progress and practical value.

Claims

1. A smart speaker detection method, characterized in that: include Multi-level signal group generation: When designing a signal group, first, the fundamental frequency points are evenly distributed within the preset frequency band, and the interval between the fundamental frequency points is a large step; For each fundamental frequency point, a signal group is created, which includes a set of audio input signals with increasing amplitudes, and the initial amplitude step is large; In the initial detection stage, the fundamental frequency point and large amplitude steps are used to quickly locate the initial range of the resonant frequency; When an audio input signal in a certain signal group is detected to trigger an overcurrent signal, the signal group at the frequency point is refined, the amplitude step is reduced, and the frequency step density is increased, and a detailed scan is performed near the resonant frequency; Based on the results of the preliminary detection, the frequency and amplitude distribution of the subsequent signal groups are dynamically adjusted to focus around the resonant frequency initially detected; predicting the location of the resonant frequency using an interpolation method, and adjusting the signal set based on the prediction; A nonlinear compensation algorithm is introduced to correct the correlation between the amplitude and the overcurrent signal according to the impedance change characteristics of the speaker at the resonant frequency; During the detection process, the impedance change of the speaker is monitored in real time, and the amplitude of the signal group is adjusted using the known speaker impedance curve model to more accurately capture the critical point; The critical audio input signals obtained from different signal groups are fused and analyzed, and the stability of the resonant frequency is verified using statistical methods; Carry out secondary testing to verify the initially determined resonant frequency and ensure the reliability of the test results.

2. The smart speaker detection method according to claim 1, characterized in that: The design signal group is specifically: First, determine the preset frequency band according to the application range of the speaker; Base frequency selection criteria: Within the preset frequency band, base frequency points are evenly selected at large step intervals of 100 Hz; After preliminary detection, for the fundamental frequency points near the suspected resonant frequency, not only is the amplitude step reduced to 0.1dB to improve the resolution, but an adaptive algorithm is also used to dynamically adjust the frequency step density.

3. The smart speaker detection method according to claim 1, characterized in that: For each base frequency point, creating a signal group specifically includes: When designing the amplitude increment sequence, an intelligent incremental strategy is adopted. A large amplitude step is used at the beginning, and when it reaches the expected resonant frequency area, it switches to a more refined increment mode, gradually reducing the step in an exponential decay manner; the amplitude upper limit of each signal group is set. Once this upper limit is reached, the amplitude will no longer be increased even in the increment sequence, and the frequency will be refined instead; the audio input signal in the signal group not only increases in amplitude, but also sets the signal duration to ensure that the signal is sufficient to excite the resonance phenomenon of the speaker; During the test at each fundamental frequency point, the current and voltage responses of the speaker as well as any abnormal signals are recorded synchronously and compared with the theoretical model predictions.

4. The smart speaker detection method according to claim 1, characterized in that: When it is detected that an audio input signal in a certain signal group triggers an overcurrent signal, the signal group of the frequency point is refined. The specific operations are as follows: First, for the frequency point that triggers the overcurrent signal, the amplitude step size is reduced to 0.1dB, and at the same time, the frequency step density is increased; Implement an adaptive scanning algorithm that dynamically adjusts the scanning strategy based on the data collected in the previous step; if the data indicates that the resonant frequency lies within a narrower range, the frequency step will be narrowed, or non-uniform frequency steps will be used; During the entire refinement scanning process, the amplitude and frequency of the signal are dynamically adjusted using the real-time monitored current and voltage response data and the impedance changes of the speaker; Set intelligent stop criteria to automatically terminate the refined scanning of the frequency point when the marginal effect of the amplitude change on the current or voltage response is detected to be less than the threshold, or when the predefined accuracy threshold is reached.

5. The smart speaker detection method according to claim 1, characterized in that: Based on the results of the preliminary detection, the frequency and amplitude distribution of the subsequent signal groups are dynamically adjusted as follows: First, the frequency layout of the signal group is replanned based on the resonant frequency range determined by the preliminary test; a high-density frequency stepping scheme is adopted to reduce the frequency step to the smallest unit; For each refined frequency point, the amplitude starting point and step strategy are intelligently set based on the amplitude response curve near the frequency point in the previous detection; Dynamically adjust the next exploration direction based on real-time test data feedback; Assign a weight to each audio input signal in the signal group.

6. The smart speaker detection method according to claim 1, characterized in that: The location of the resonant frequency is predicted using an interpolation method as follows: First, the data points collected during the preliminary detection and refinement scan phases are filtered and denoised. These data points include the speaker response amplitude, current, and voltage key indicators at different frequencies, which together form the basic data set for predicting the resonant frequency; Choose radial basis function (RBF) interpolation or Kriging interpolation to build a continuous prediction model in the frequency domain based on the preprocessed data set to estimate the resonant frequency response between the measured frequency points; According to the resonant frequency distribution predicted by the interpolation model, the frequency layout of the subsequent signal groups is intelligently adjusted; the signal groups near the predicted peak are generated first, and the test of the area outside the predicted peak is reduced; at the same time, the frequency step and amplitude strategy of the signal group are dynamically adjusted according to the confidence interval provided by the prediction model; The interpolation prediction results are compared with the actual detection data, and the interpolation model is optimized through continuous feedback through error analysis.

7. The smart speaker detection method according to claim 1, characterized in that: The introduction of nonlinear compensation algorithms includes: First, extract the characteristics of the current, voltage response and impedance change of the speaker at different frequencies and amplitudes from the data collected during the preliminary detection and detailed scanning process; nonlinear model establishment: based on the characteristic data, build a nonlinear model to describe the relationship between the speaker impedance and the current and voltage; use a neural network to train the model, and when training the model, fully consider the nonlinear distortion, saturation effect and memory effect of the impedance curve. A compensation algorithm is formed based on the established neural network model, and the compensation algorithm predicts the deviation between the actual current or voltage and the ideal linear response due to nonlinear effects under target frequency and amplitude conditions.

8. The smart speaker detection method according to claim 1, characterized in that: Using the known speaker impedance curve model, the amplitude of the signal group is adjusted, specifically including: While monitoring the speaker impedance change in real time, the measured impedance value is immediately matched with the preset impedance curve model; the state point closest to the current impedance in the model is found through interpolation or nearest neighbor search method, so as to obtain the expected impedance-amplitude response relationship of the closest state point; Based on the impedance model matching results, the optimal adjustment amount of the signal amplitude is dynamically calculated; if the measured impedance characteristics are the impedance characteristics predicted by the resonance point, the amplitude of the current signal group is adjusted based on the amplitude response predicted by the model to ensure that the signal amplitude matches the real-time impedance state of the speaker; Under the guidance of the impedance curve model, the size of the amplitude step is dynamically adjusted; when the estimated resonant frequency is reached, the amplitude step is automatically reduced.