Anti-interference sound system self-checking method and device, breathing machine and storage medium
By periodically playing test sounds and ambient sounds, and calculating the noise reduction amplitude value, the problem of deviation in the sound system self-test results under noisy environments is solved, and accurate self-test results are achieved.
Patent Information
- Application Number
- CN202011642463.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The existing sound system has poor noise immunity in noisy environments, which leads to inaccurate self-test results and fails to accurately reflect the actual situation.
By periodically playing test sounds and ambient sounds, the amplitude values of the test sound segments and ambient sound segments are identified and calculated. The noise reduction amplitude value is calculated, and the number of noise reduction amplitude values that meet the preset conditions is counted to determine whether the sound system passes the test.
In noisy environments, it can accurately judge the self-test results of the sound system, improve the noise immunity of the self-test, and ensure that the self-test results are close to the actual situation.
Smart Images

Figure CN114694679B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sound self-testing technology, and in particular to a method, apparatus, ventilator, and storage medium for self-testing an interference-resistant sound system. Background Technology
[0002] The sound system self-test is performed by outputting a specific sound waveform, such as a sine wave or a square wave, through the speaker, and then using a microphone to collect the sound waveform. The consistency between the collected waveform and the set waveform is then compared to determine whether the sound system is functioning properly.
[0003] In existing technologies, sound system self-tests need to be performed in a relatively quiet environment, such as indoors. If the self-test is performed in a noisy environment, such as outdoors, the sound system's self-test has poor noise immunity, which can lead to deviations in the self-test results or even discrepancies with the actual situation.
[0004] Therefore, there is an urgent need for an interference-resistant sound system self-testing method, device, ventilator, and storage medium that can output self-testing results that are basically consistent with the actual situation even under high noise conditions. Summary of the Invention
[0005] This invention provides a method, apparatus, ventilator, and storage medium for self-testing an interference-resistant sound system, which can improve the noise immunity of the sound system self-test, thereby enabling the sound system self-test to output self-test results that are basically consistent with the actual situation even under conditions of high noise.
[0006] This invention provides a self-test method for an anti-interference sound system, the method comprising:
[0007] Receive test requests from the user;
[0008] Test tones are played periodically according to the test request, wherein test tones are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test tones in any two cycles are different, the preset attributes including frequency and / or amplitude;
[0009] The synchronously acquired sounds form a sound sequence;
[0010] Based on the preset attributes, test sound segments and ambient sound segments within each period are identified from the sound sequence;
[0011] All amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle of the sound sequence are obtained respectively;
[0012] The noise reduction amplitude value in each cycle is calculated based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle;
[0013] Count the number of noise reduction amplitude values that meet the preset conditions;
[0014] Whether the test is passed is determined by the number of noise reduction amplitude values that meet the preset conditions.
[0015] The present invention also provides an anti-interference sound system self-testing device, comprising a processor, a playback module, and a sound acquisition module, wherein:
[0016] The processor is used to receive test requests input by the user;
[0017] The playback module is used to periodically play test sounds according to the test request, wherein the test sounds are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test sounds in any two cycles are different, the preset attributes including frequency and / or amplitude;
[0018] The sound acquisition module is used to synchronously acquire sound to form a sound sequence;
[0019] The processor is also configured to identify test sound segments and ambient sound segments within each period of the sound sequence based on the preset attributes;
[0020] The processor is also configured to obtain, respectively, all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle of the sound sequence;
[0021] The processor is also used to calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle;
[0022] The processor is also used to count the number of noise reduction amplitude values that meet preset conditions;
[0023] The processor is also used to determine whether the test is passed based on the number of noise reduction amplitude values that meet preset conditions.
[0024] The present invention also provides a ventilator, the ventilator comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the above-described anti-interference sound system self-test method.
[0025] The present invention also provides a storage medium storing a computer program, which is executed to implement the above-described anti-interference sound system self-test method.
[0026] The aforementioned self-testing method for an anti-interference sound system calculates the noise reduction amplitude value in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle; counts the number of noise reduction amplitude values that meet preset conditions; and determines whether the test passes based on the number of noise reduction amplitude values that meet the preset conditions. This ensures that the noise reduction amplitude value in each cycle is as close as possible to the actual amplitude value, improving the noise immunity of the sound system's self-testing. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without any creative effort.
[0028] Figure 1 A flowchart of an anti-interference sound system self-testing method provided in an embodiment of the invention.
[0029] Figure 2 A scene diagram illustrating an anti-interference sound system self-testing method provided in one embodiment of the invention.
[0030] Figure 3 A structural block diagram of an anti-interference sound system self-testing device provided for another embodiment of the invention.
[0031] Figure 4 This is a schematic diagram of the internal structure of a ventilator according to another embodiment of the present invention.
[0032] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining this application and are not intended to limit this application.
[0034] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0035] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0036] Please see Figure 1-2 , Figure 1 The first embodiment provides a self-testing method for an anti-interference sound system; Figure 2 This is the application scenario of the first embodiment. In the various embodiments of this application, a ventilator is used as an example to describe the operation of the anti-interference sound system self-test method and device of the present invention. It is understood that the anti-interference sound system self-test method and device of the present invention can also be applied to any other instruments and equipment that include a sound system.
[0037] In the first embodiment, the ventilator can be used in a noisy environment, such as outdoors; the anti-interference sound system self-test method includes the following steps.
[0038] Step S10: Receive the test request input by the user.
[0039] In this embodiment, when the ventilator receives a start command generated by the user operating the ventilator, the sound system self-test program begins; in some feasible embodiments, the start command can be generated by the user touching the virtual button to start the sound system self-test of the ventilator.
[0040] Step S20: Play test tones periodically according to the test request, wherein test tones are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test tones in any two cycles are different, the preset attributes including frequency and / or amplitude.
[0041] In this embodiment, the ventilator periodically plays test tones according to the test request, for example, before a period T. The playback module played test sounds during the specified time period, and then... Pause the test sound during the specified time period; this allows for the acquisition of more ambient sound over a longer period, thereby improving the accuracy of the collected ambient sound.
[0042] In some feasible embodiments, the test tone is pre-stored in a storage medium, and the preset attributes of the test tone in any two cycles are different, including frequency and / or amplitude; for example, a test tone with a frequency of 100Hz is played in the first cycle, and a test tone with a frequency of 200Hz is played in the next cycle.
[0043] Step S30: The synchronously acquired sounds form a sound sequence.
[0044] In this embodiment, the ventilator receives the sound collected by the sound acquisition module and arranges the collected sounds in chronological order to form a sound sequence; the collected sounds include test sounds and ambient sounds, the test sounds are the sounds played by the playback module; the ambient sounds are sounds emitted by the external environment, such as wind sounds, vehicle wind-breaking sounds, vehicle horn sounds, and insect and bird sounds; in some feasible embodiments, the sound sequence contains N cycles.
[0045] Step S40: Identify the test sound segment and ambient sound segment in each period from the sound sequence according to the preset attributes.
[0046] In this embodiment, the ventilator identifies test sound segments and ambient sound segments within each cycle from the sound sequence based on the preset attributes. For example, the ventilator selects different filtering methods according to different preset attributes so that only test sound segments and ambient sound segments within one cycle are obtained after each filtering. In some feasible embodiments, a test sound with a frequency of 100Hz is played in the first cycle, a test sound with a frequency of 200Hz is played in the second cycle, and a test sound with a frequency of 300Hz is played in the third cycle; for example, the ventilator can use a bandpass filtering algorithm with a center frequency of 100Hz for filtering, which can filter out the frequencies of the second and third cycles, obtaining only the test sound segments and ambient sound segments within the first cycle, achieving refined filtering and improving the accuracy of filtering.
[0047] Step S50: Obtain all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle from the sound sequence.
[0048] In some feasible embodiments, the ventilator obtains all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle from the sound sequence.
[0049] Step S60: Calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle.
[0050] In this embodiment, the ventilator calculates the noise reduction amplitude value for each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle. Specifically, this may include steps S61-S62.
[0051] Step S61: Calculate the average amplitude value of the test sound segment and the average amplitude value of the ambient sound segment in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle. In some feasible embodiments, the average amplitude value of the test sound segment in each cycle is obtained by dividing the amplitude values of all test sound segments by the number of amplitudes, where the number of amplitudes can be obtained from the sampling frequency; similarly, the average amplitude value of the ambient sound segment in each cycle can be obtained.
[0052] Step S62: Subtract the average amplitude value of the test sound segment from the average amplitude value of the ambient sound segment in each cycle to obtain the noise reduction amplitude value in each cycle.
[0053] In this embodiment, the ventilator subtracts the average amplitude value of the test sound segment from the average amplitude value of the ambient sound segment within each cycle to obtain the noise reduction amplitude value for each cycle. This prevents the test sound received by the sound acquisition module from exceeding the preset amplitude value due to the "help" of external ambient sound, ensuring the authenticity of the test sound amplitude value and preventing false self-test results from the ventilator's sound system.
[0054] Step S70: Count the number of noise reduction amplitude values that meet the preset conditions.
[0055] In this embodiment, the ventilator counts the number of noise reduction amplitude values that meet preset conditions. In some feasible embodiments, the preset condition can be set as the number of noise reduction amplitude values greater than a preset amplitude value. In some feasible embodiments, the attributes of the noise reduction amplitude values in each cycle are also different, so the preset amplitude value will also change. The ventilator determines whether the noise reduction amplitude value in each cycle is greater than the corresponding preset amplitude value and accumulates the number of noise reduction amplitude values greater than the corresponding preset amplitude value as the basis for verifying whether the self-test is qualified.
[0056] Step S80: Determine whether the sound system of the ventilator passes the test based on the number of noise reduction amplitude values that meet the preset conditions.
[0057] In this embodiment, the ventilator determines whether its sound system passes the test based on the number of noise reduction amplitude values that meet preset conditions: when the number of noise reduction amplitude values meeting preset conditions is greater than a preset number, the ventilator's sound system test is considered passed; when the number of noise reduction amplitude values meeting preset conditions is less than or equal to the preset number, the ventilator's sound system test is considered failed. In some feasible embodiments, the preset condition can also be set to whether the ratio between the number of qualified verifications and the total number of cycles meets a preset value; for example, if the number of qualified verifications in all cycles is x, and the preset value is 2 / 3 of the total number of cycles N, when... When the output test passes, The output test failed.
[0058] In the above embodiments, the noise reduction amplitude value in each cycle is calculated based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle; the number of noise reduction amplitude values that meet preset conditions is counted; and the test is passed based on the number of noise reduction amplitude values that meet the preset conditions. This ensures that the noise reduction amplitude value in each cycle is as close as possible to the actual amplitude value, improving the noise immunity of the sound system's self-test.
[0059] Please refer to Figure 3 , Figure 3 A structural block diagram of an anti-interference sound system self-testing device provided in another embodiment of the invention is shown. The device 200 includes a processor 10, a sound acquisition module 20, and a playback module 30, wherein:
[0060] The processor 10 is used to receive test requests input by the user.
[0061] The playback module 30 is used to periodically play test sounds according to the test request, wherein the test sounds are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test sounds in any two cycles are different, the preset attributes including frequency and / or amplitude.
[0062] The sound acquisition module 20 is used to synchronously acquire sound to form a sound sequence.
[0063] The processor 10 is also used to identify test sound segments and ambient sound segments in each period from the sound sequence according to the preset attributes.
[0064] The processor 10 is also used to obtain, respectively, all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle from the sound sequence.
[0065] The processor 10 is also used to calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle.
[0066] The processor 10 is also used to count the number of noise reduction amplitude values that meet preset conditions.
[0067] The processor 10 is also used to determine whether the sound system passes the test based on the number of noise reduction amplitude values that meet preset conditions.
[0068] The processor 10 is also configured to calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test audio segment and all amplitude values of the ambient audio segment in each cycle, specifically including:
[0069] The processor 10 is further configured to calculate the average amplitude value of the test sound segment and the average amplitude value of the ambient sound segment in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle.
[0070] The processor 10 is further configured to subtract the average amplitude value of the test sound segment from the average amplitude value of the ambient sound segment in each cycle to obtain the noise reduction amplitude value in each cycle.
[0071] The processor 10 is also configured to set the preset condition to a noise reduction amplitude value greater than a preset amplitude value.
[0072] The processor 10 is also used to determine that the sound system test is successful when the number of noise reduction amplitude values that meet the preset conditions is greater than the preset number.
[0073] The processor 10 is also used to determine that the sound system test has failed when the number of noise reduction amplitude values that meet the preset conditions is less than or equal to the preset number.
[0074] In some feasible embodiments, the preset condition can also be set to whether the ratio between the number of qualified verifications and the total number of cycles meets a preset value; for example, if the number of qualified verifications in all cycles is x, and the preset value is 2 / 3 of the total number of cycles N, then... When the output test passes, The output test failed.
[0075] In the above embodiments, the noise reduction amplitude value in each cycle is calculated based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle; the number of noise reduction amplitude values that meet preset conditions is counted; and the sound system is judged to pass the test based on the number of noise reduction amplitude values that meet the preset conditions. This ensures that the noise reduction amplitude value in each cycle is as close as possible to the actual amplitude value, improving the noise immunity of the sound system's self-test.
[0076] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the internal structure of a ventilator 100 according to another embodiment of the present invention. The ventilator 100 includes: a memory 102 for storing a computer program, which in this embodiment is used to store an anti-interference sound system self-test program 103; and a processor 10 for executing the computer program to implement the above-mentioned anti-interference sound system self-test method.
[0077] Another embodiment of the present invention provides a storage medium storing a computer program. In this embodiment, the storage medium stores an anti-interference sound system self-test program, and the computer program is executed to implement the above-described anti-interference sound system self-test method.
[0078] The above are merely preferred embodiments of this application and do not limit the scope of protection of this application. Any equivalent structural or procedural transformations made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the scope of protection of this application.
Claims
1. A self-testing method for an anti-interference sound system, characterized in that, The method includes: Receive test requests from the user; Test tones are played periodically according to the test request, wherein test tones are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test tones in any two cycles are different, the preset attributes including frequency and / or amplitude; The synchronously acquired sounds form a sound sequence, which is formed by arranging the acquired sounds in the order of their acquisition time. Based on the preset attributes, test sound segments and ambient sound segments within each period are identified from the sound sequence; All amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle of the sound sequence are obtained respectively; The noise reduction amplitude value in each cycle is calculated based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle; Count the number of noise reduction amplitude values that meet the preset conditions; Whether the test is passed is determined by the number of noise reduction amplitude values that meet the preset conditions.
2. The self-testing method for an anti-interference sound system as described in claim 1, characterized in that, The noise reduction amplitude value in each cycle is calculated based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle. Specifically, it includes: Calculate the average amplitude value of the test sound segment and the average amplitude value of the ambient sound segment in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle; and The noise reduction amplitude value for each cycle is obtained by subtracting the average amplitude value of the test sound segment from the average amplitude value of the ambient sound segment.
3. The self-testing method for an anti-interference sound system as described in claim 1, characterized in that, The preset condition is that the noise reduction amplitude value is greater than a preset amplitude value.
4. The self-testing method for an anti-interference sound system as described in claim 1, characterized in that, The test is determined based on the number of noise reduction amplitude values that meet the preset conditions. Specifically, this involves: When the number of noise reduction amplitude values that meet the preset conditions is greater than the preset number, the sound system test is considered successful. When the number of noise reduction amplitude values that meet the preset conditions is less than or equal to the preset number, the sound system test is judged to have failed. or: When the ratio of the number of noise reduction amplitude values that meet the preset conditions to the total number of cycles is greater than the preset value, the sound system test is considered successful. When the ratio of the number of noise reduction amplitude values that meet the preset conditions to the total number of cycles is less than or equal to the preset value, the sound system test is judged to have failed.
5. A self-testing device for an anti-interference sound system, characterized in that, The device includes a processor, a playback module, and a sound acquisition module, wherein: The processor is used to receive test requests input by the user; The playback module is used to periodically play test sounds according to the test request, wherein the test sounds are played in half of each cycle and not played in the other half of the cycle, and the preset attributes of the test sounds in any two cycles are different, the preset attributes including frequency and / or amplitude; The sound acquisition module is used to synchronously acquire sound to form a sound sequence, and the sound sequence is formed by arranging the acquired sounds in the order of acquisition time. The processor is also configured to identify test sound segments and ambient sound segments within each period of the sound sequence based on the preset attributes; The processor is also configured to obtain, respectively, all amplitude values of the test sound segment and all amplitude values of the ambient sound segment within each cycle of the sound sequence; The processor is also used to calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle; The processor is also used to count the number of noise reduction amplitude values that meet preset conditions; The processor is also used to determine whether the test is passed based on the number of noise reduction amplitude values that meet preset conditions.
6. The anti-interference sound system self-testing device as described in claim 5, characterized in that, The processor is also used to calculate the noise reduction amplitude value in each cycle based on all amplitude values of the test audio segment and all amplitude values of the ambient audio segment in each cycle, specifically including: The processor is also configured to calculate the average amplitude value of the test sound segment and the average amplitude value of the ambient sound segment in each cycle based on all amplitude values of the test sound segment and all amplitude values of the ambient sound segment in each cycle; The processor is further configured to subtract the average amplitude value of the test sound segment from the average amplitude value of the ambient sound segment in each cycle to obtain the noise reduction amplitude value in each cycle.
7. The anti-interference sound system self-testing device as described in claim 5, characterized in that, The processor is also configured to set the preset condition to a noise reduction amplitude value greater than a preset amplitude value.
8. The anti-interference sound system self-testing device as described in claim 5, characterized in that, The processor is also used for: When the number of noise reduction amplitude values that meet the preset conditions is greater than the preset number, the sound system test is considered successful. When the number of noise reduction amplitude values that meet the preset conditions is less than or equal to the preset number, the sound system test is judged to have failed. or: When the ratio of the number of noise reduction amplitude values that meet the preset conditions to the total number of cycles is greater than the preset value, the sound system test is considered successful. When the ratio of the number of noise reduction amplitude values that meet the preset conditions to the total number of cycles is less than or equal to the preset value, the sound system test is judged to have failed.
9. A ventilator, characterized in that, The ventilator includes: a memory for storing a computer program; and a processor for executing the computer program to implement the anti-interference sound system self-test method as described in any one of claims 1 to 4.
10. A storage medium, characterized in that, The storage medium stores a computer program that is executed to implement the anti-interference sound system self-testing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Sound wave communication processing method and apparatus, and electronic device
CN108736982A
Audio output adjustment method and system thereof
WO2014094496A1