Method, apparatus, electronic device and storage medium for identifying alarm audio

By identifying alarm audio in the microcontroller of the alarm monitoring device, the problem of high cost when upgrading security equipment to achieve remote alarm function is solved, and the effect of saving deployment costs and reducing operation costs is achieved.

CN119785548BActive Publication Date: 2025-06-24X-SENSE INNOVATIONS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510275440.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-06-24
Estimated Expiration
2045-03-10

AI Technical Summary

Technical Problem

When existing security devices need to implement remote alarm functions, they need to replace the devices, resulting in high upgrade and deployment costs.

Method used

By realizing the method of identifying the alarm audio in the microcontroller of the alarm monitoring device, the first radio module and the op amp circuit generate an electrical signal and determine the audio type, so as to realize the remote alarm function without replacing the security device.

Benefits of technology

It realizes that without replacing the security equipment, it saves the deployment cost of users to upgrade the remote notification function for security equipment, and reduces the operating cost of alarm monitoring equipment by switching work and sleep states by itself.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119785548B_ABST
    Figure CN119785548B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for identifying alarm audio. The method includes: when the sleep duration of the alarm monitoring device is greater than or equal to a preset sleep duration, controlling a first power supply to supply power to a first sound collection module, so that a first sound collection device receives a first audio in a first time period and a second audio in a second time period, and the second time period is later than the first time period; obtaining a first electrical signal, where the first electrical signal is generated by a first operational amplifier circuit according to the first audio; if the maximum value of the first electrical signal is higher than a first preset threshold, obtaining a second electrical signal, where the second electrical signal is generated by a second operational amplifier circuit according to the second audio; determining the audio type of the second audio according to the second electrical signal, and the audio type includes an alarm audio or a non-alarm audio. By implementing the method in the present invention, the remote alarm function can be realized without replacing the security equipment, saving the upgrade and deployment cost of the security equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the general data processing field in the Internet field, and in particular, to a method, device, electronic device and storage medium for identifying alarm audio. Background Art

[0002] Security devices, namely security monitoring devices, specifically refer to devices such as smoke alarms, fire alarms, and door and window alarms commonly seen in our daily lives. With the progress of technologies such as 5G communication and the Internet of Things, a large number of devices with built-in communication modules and processors that can achieve remote security alarms have also emerged in ordinary household security devices. These devices will synchronously send alarm information to user terminals when the alarms are triggered to achieve remote alarms. However, for some devices with an earlier installation time and relatively outdated device models, if they want to achieve such a function, they need to replace the devices and reinstall them, which brings a large problem of the upgrade and deployment costs of security devices. Summary of the Invention

[0003] In view of the above problems, the embodiments of the present application provide a method, device, electronic device and storage medium for identifying alarm audio. The solution of the present application is beneficial to saving the upgrade and deployment costs brought by upgrading the remote alarm function for security devices.

[0004] In a first aspect, an embodiment of the present application provides a method for identifying alarm audio, which is applied to a microcontroller of an alarm monitoring device. The alarm monitoring device further includes a first sound collection module and a first power supply. The first sound collection module includes a first sound collection device, a first operational amplifier circuit, and a second operational amplifier circuit; wherein, the amplification factor of the first operational amplifier circuit is a first factor, and the amplification factor of the second operational amplifier circuit is a second factor, and the second factor is higher than the first factor. The first sound collection module is used to monitor a first area. The method includes: when the sleep duration of the alarm monitoring device is greater than or equal to a preset sleep duration, controlling the first power supply to supply power to the first sound collection module, so that the first sound collection device receives a first audio in a first time period and a second audio in a second time period, and the second time period is later than the first time period; obtaining a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio; if the maximum value of the first electrical signal is higher than a first preset threshold, obtaining a second electrical signal, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio; and determining the audio type of the second audio according to the second electrical signal, where the audio type includes an alarm audio or a non-alarm audio.

[0005] It can be seen that by judging the first electrical signal and the second electrical signal obtained by the first alarm monitoring device, whether the security device in the first area is retransmitted can be determined, and then an alarm message can be sent to the user terminal. Without the need to replace and upgrade the security device, the remote alarm function of the security device is realized, saving the deployment cost of the user for upgrading the remote notification function of the security device. In addition, the alarm monitoring device can automatically switch between the working and sleeping states, which also saves the operating cost of the alarm monitoring device.

[0006] Combined with the first aspect, in a possible embodiment, determining the audio type of the second audio according to the second electrical signal includes: obtaining the signal characteristics of the second electrical signal, where the signal characteristics include at least one of the number of pulses, pulse width, or pulse signal period; calculating the similarity between the second electrical signal and multiple preset electrical signals according to the signal characteristics of the second electrical signal, and each of the multiple preset electrical signals corresponds to an alarm audio; if the similarity between the second electrical signal and the multiple preset electrical signals is not greater than the second preset threshold, determining that the audio type is non-alarm audio; if the similarity between the second electrical signal and any one of the preset electrical signals is greater than the second preset threshold, determining that the audio type is alarm audio.

[0007] It can be seen that in the embodiment of the present application, by comparing the signal characteristics of the second electrical signal with the signal characteristics of multiple preset electrical signals, the audio type of the second audio corresponding to the second electrical signal can be judged, and then the remote notification function of the security device is realized.

[0008] Combined with the first aspect, in a possible embodiment, the alarm monitoring device further includes a communication module and a second power supply. If the audio type of the second audio is alarm audio, the method further includes: controlling the second power supply to supply power to the communication module; controlling the communication module to send an alarm message to the user terminal, and the alarm message is used to indicate that there is an alarm audio in the first area during the second time period.

[0009] It can be seen that in the embodiment of the present application, after determining that there is an alarm audio in the first area, the second power supply supplies power to the communication module to send an alarm message to the user terminal. The remote alarm function of the security device is realized, and at the same time, the second power supply only needs to supply power when the communication module is working, further reducing the operating energy consumption of the alarm monitoring device.

[0010] Combined with the first aspect, in a possible embodiment, if the first electrical signal is not higher than the first preset threshold, the method further includes: resetting the sleep duration of the alarm monitoring device to zero, and controlling the first power supply to stop supplying power to the first sound collection module.

[0011] It can be seen that in the embodiment of the present application, the first power supply is controlled by the microcontroller to make the first sound collection module work intermittently. Only when the first electrical signal is higher than the first preset threshold, the subsequent steps related to judging the audio type of the second audio are executed, reducing the operation duration of the alarm monitoring device, and thus reducing the operation energy consumption of the alarm monitoring device.

[0012] Combined with the first aspect, in a possible embodiment, the alarm monitoring device further includes a second sound collection module. The second sound collection module includes a second sound collection device, a third operational amplifier circuit, and a fourth operational amplifier circuit. Among them, the second sound collection device in the second sound collection module is used to monitor the second area. The distance between the first area and the second area is less than the preset distance. The second sound collection device is used to receive the third audio in the first time period and the fourth audio in the fourth time period. The amplification factor of the third operational amplifier circuit is the first factor, and the amplification factor of the fourth operational amplifier circuit is the second factor. Before determining the audio type of the second audio according to the second electrical signal, the method further includes: obtaining a third electrical signal, where the third electrical signal is generated by the third operational amplifier circuit according to the third audio; if the maximum value of the first electrical signal is higher than the first preset threshold and the maximum value of the third electrical signal is not higher than the first preset threshold, then obtain the fourth electrical signal of the second sound collection module, where the fourth electrical signal is generated by the fourth operational amplifier circuit according to the fourth audio; correct the second electrical signal according to the fourth electrical signal.

[0013] It can be seen that in the embodiment of the present application, correcting the second electrical signal according to the fourth electrical signal can remove the influence of the lower-volume noise in the first area on the second electrical signal, and thus improve the accuracy of judging the audio type of the subsequent second audio.

[0014] Combined with the first aspect, in a possible embodiment, correcting the second electrical signal according to the fourth electrical signal includes: obtaining a fifth electrical signal and a sixth electrical signal; among them, the fifth electrical signal is generated by the first operational amplifier circuit according to the second audio, and the sixth electrical signal is generated by the third operational amplifier circuit according to the fourth audio; determining the calculation weights of the second electrical signal and the fourth electrical signal according to the maximum value of the fifth electrical signal and the maximum value of the sixth electrical signal; among them, the calculation weight of the second electrical signal is positively correlated with the maximum value of the fifth electrical signal, and the calculation weight of the fourth electrical signal is positively correlated with the maximum value of the sixth electrical signal; calculate the corrected second electrical signal according to the second electrical signal, the calculation weight of the second electrical signal, the fourth electrical signal, and the calculation weight of the fourth electrical signal.

[0015] It can be seen that in the embodiment of the present application, the calculation weights of the second electrical signal and the fourth electrical signal can be calculated based on the fifth electrical signal and the sixth electrical signal. Furthermore, based on the calculation weights of the second electrical signal and the fourth electrical signal, the second electrical signal is corrected according to the fourth electrical signal. In this process, the influence of the audio volume in the first region and the second region is considered, further improving the accuracy of the determination of the audio type determined according to the second electrical signal subsequently.

[0016] Combined with the first aspect, in a possible embodiment, the method further includes: obtaining the signal values of the fifth electrical signal and the sixth electrical signal at multiple target moments, where the target moment is a moment in the second time period; if there are a preset number of adjacent target moments among the multiple target moments where the signal value of the fifth electrical signal is less than the corresponding signal value of the sixth electrical signal, then determining the audio type of the second audio as a non-alarm audio.

[0017] It can be seen that in the embodiment of the present application, whether the sound source of the second audio has moved within the second time period is judged by the fifth electrical signal and the sixth electrical signal in the second time period. On the premise of movement, the audio type corresponding to the second audio is directly determined as an alarm audio, and there is no need to analyze based on the signal characteristics of the second electrical signal corresponding to the second audio, improving the processing efficiency of the alarm monitoring device.

[0018] In a second aspect, an embodiment of the present application provides an alarm audio recognition device. The alarm audio recognition device belongs to an alarm monitoring device, and the alarm monitoring device further includes a first sound collection module and a first power supply. The first sound collection module includes a first sound collection device, a first operational amplifier circuit, and a second operational amplifier circuit; wherein, the amplification factor of the first operational amplifier circuit is a first factor, the amplification factor of the second operational amplifier circuit is a second factor, and the second factor is higher than the first factor. The first sound collection module is used to monitor the first region. The alarm audio recognition device includes:

[0019] A control unit, configured to control the first power supply to supply power to the first sound collection module when the sleep duration of the alarm monitoring device is greater than or equal to a preset sleep duration, so that the first sound collection device receives the first audio in the first time period and the second audio in the second time period, and the second time period is later than the first time period;

[0020] An acquisition unit, configured to acquire a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio;

[0021] If the maximum value of the first electrical signal is higher than a first preset threshold, then acquire a second electrical signal, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio;

[0022] A determination unit, configured to determine an audio type of the second audio according to the second electrical signal, where the audio type includes an alarm audio or a non-alarm audio.

[0023] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. One or more instructions are adapted to be loaded and executed by the processor to perform part or all of the methods in the first aspect and / or the second aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for electronic data exchange. The computer program causes a computer to execute part or all of the methods in the first aspect and / or the second aspect.

[0025] In a fifth aspect, the present application provides a computer program product. When a computer reads and executes the computer program product, the computer is caused to execute part or all of the methods in the first aspect and / or the second aspect.

[0026] It can be understood that the beneficial effects of the embodiments described in the second aspect to the fifth aspect can refer to the beneficial effects in the method described in the first aspect, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0028] Figure 1 A schematic diagram of an application scenario of an alarm audio recognition method provided by an embodiment of the present application;

[0029] Figure 2 A schematic diagram of the internal connection relationship of a first sound collection module provided by an embodiment of the present application;

[0030] Figure 3 A flowchart of an alarm audio recognition method provided by an embodiment of the present application;

[0031] Figure 4 A schematic diagram of the sleep cycle operation steps of an alarm monitoring device provided by an embodiment of the present application;

[0032] Figure 5 A flowchart of another alarm audio recognition method provided by an embodiment of the present application;

[0033] Figure 6 A schematic diagram of the image comparison between a second electrical signal and a preset electrical signal provided by an embodiment of the present application;

[0034] Figure 7 A schematic flowchart of another method for identifying an alarm audio provided by an embodiment of the present application;

[0035] Figure 8A A schematic diagram of a non-mobile sound source provided by an embodiment of the present application;

[0036] Figure 8B A schematic diagram of a mobile sound source provided by an embodiment of the present application;

[0037] Figure 9 A schematic diagram for calculating the duration of an audio provided by an embodiment of the present application;

[0038] Figure 10 A schematic structural diagram of an alarm audio recognition device provided by an embodiment of the present application;

[0039] Figure 11 A schematic structural diagram of an electronic device provided by an embodiment of the present application.

[0040] Explanation of the reference numerals in the drawings

[0041] Application scenario 100; First alarm monitoring device 101; Security device 102; User terminal 103; First sound collection module 1011; First power supply 1012; Microcontroller 1013; First sound collection device 1014; First operational amplifier circuit 1015; Second operational amplifier circuit 1016; Alarm audio recognition device 1000; Control unit 1001; Acquisition unit 1002; Determination unit 1003; Electronic device 1100; Memory 1101; Processor 1102; Communication interface 1103; Bus 1104. Detailed implementation manners

[0042] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0043] The terms "first", "second", etc. in the description, claims, and the above-mentioned drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.

[0044] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.

[0045] Embodiments of this application will be described below with reference to the drawings.

[0046] Please refer to Figure 1 , Figure 1 FIG. 100 is a schematic diagram of an application scenario of a method for identifying an alarm audio provided for an embodiment of this application. The application scenario 100 includes a first alarm monitoring device 101, a security device 102, and a user terminal 103.

[0047] The first alarm monitoring device 101 is installed in a first area and is connected to the user terminal 103, and is used to determine whether the security device 102 in the first area is triggered, and after determining that the security device 102 is triggered, indicate to the user terminal 103 that the security device 102 is triggered. The first alarm monitoring device 101 further includes a first sound collection module 1011, a first power supply 1012, and a microcontroller 1013. The first sound collection module 1011 includes a first sound collection device 1014, a first operational amplifier circuit 1015, and a second operational amplifier circuit 1016; wherein, the amplification factor of the first operational amplifier circuit 1015 is a first factor, and the amplification factor of the second operational amplifier circuit 1016 is a second factor, and the first factor is greater than the second factor. The first power supply 1012 is used to supply power to the first sound collection module 1011, so that the microcontroller 1013 controls the first sound collection device 1014, the first operational amplifier circuit 1015, and the second operational amplifier circuit 1016 to determine whether the security device 102 is triggered.

[0048] The security device 102 is installed in the first area, specifically a device such as a smoke alarm, a fire alarm, a door and window alarm, etc. to ensure the safety of the first area. When the security device 102 determines that there are dangers such as smoke, fire, or unauthorized entry in the first area, it will alarm through an alarm audio or other means. In addition, in an actual scenario, there may be multiple security devices 102, and only one security device 102 is taken as an example here.

[0049] In the embodiment of the present application, when the sleep duration of the alarm monitoring device is greater than or equal to a preset sleep duration (such as 30s, 15s, etc.), the microcontroller 1013 controls the first power supply 1012 to supply power to the first sound collection module 1011, so that the first sound collection device 1014 receives the sound in the first area and converts the received sound signal into an electrical signal. The electrical signal corresponding to the audio received in the first time period is the first audio, and the electrical signal corresponding to the audio received in the second time period is the second audio; the first time period is before the second time period.

[0050] The microcontroller 1013 obtains the first electrical signal generated by the first operational amplifier circuit 1015 according to the first audio. Here, the first electrical signal is obtained after the first operational amplifier circuit 1015 amplifies the first audio by the first magnification factor. The microcontroller 1013 determines whether the security device 102 may be triggered according to the magnitude of the maximum value of the first electrical signal.

[0051] Exemplarily, please refer to Figure 2 , Figure 2 is a schematic diagram of the internal connection relationship of a first sound collection module provided by the embodiment of the present application. Among them, the microcontroller 1013 in the first alarm monitoring device 101 controls the first power supply 1012 to supply power to the first sound collection module 1011 through port A. The first sound collection device 1014 in the first sound collection module 1011 generates the first audio. The first audio is sent to the first operational amplifier circuit 1015, and the first electrical signal generated after being amplified by the first magnification factor is obtained by the microcontroller 1013 from port C. The second audio is sent to the second operational amplifier circuit 1016 to be amplified by the second magnification factor, and the second electrical signal generated is obtained by the microcontroller 1013 from port B.

[0052] If the maximum value of the first electrical signal generated by the first operational amplifier circuit 1015 according to the first audio is higher than the first preset threshold (here, the first preset threshold corresponds to the minimum alarm audio volume of the security device 102), the microcontroller 1013 determines that the security device 102 may be triggered. Therefore, the microcontroller 1013 obtains the second electrical signal generated by the second operational amplifier circuit 1016 according to the second audio, and further determines whether the security device 102 is triggered according to the second electrical signal.

[0053] In addition, if the maximum value of the first electrical signal generated by the first operational amplifier circuit 1015 according to the first audio does not exceed the first preset threshold, it is determined that there is no possibility that the security device 102 is triggered. At this time, the first alarm monitoring device 101 will enter the sleep state again.

[0054] The microcontroller 1013 determines the audio type of the second audio according to the second electrical signal with a higher magnification factor. Specifically, it can be determined whether the second audio is an alarm audio according to the characteristics such as the maximum value and duration of the second electrical signal. When it is determined that the second audio is an alarm audio, the first alarm monitoring device 101 also sends a message to the user terminal 103 to indicate that the security device 102 is triggered.

[0055] It can be seen that by judging the first electrical signal and the second electrical signal obtained by the first alarm monitoring device, it is determined whether the security device in the first area is re-triggered, and then an alarm message can be sent to the user terminal. Without the need to replace and upgrade the security device, the remote alarm function of the security device is realized, saving the deployment cost for the user to upgrade the remote notification function of the security device. In addition, the alarm monitoring device can automatically switch between the working and sleep states, which also saves the operating cost of the alarm monitoring device.

[0056] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a method for identifying an alarm audio provided by an embodiment of the present application, and can be implemented based on Figure 1 the application scenario 100 shown, as Figure 3 shown, including steps S301 - S304:

[0057] S301: When the sleep duration of the alarm monitoring device is greater than or equal to the preset sleep duration, control the first power supply to supply power to the first sound collection module, so that the first sound collection device receives the first audio in the first time period and the second audio in the second time period, and the second time period is later than the first time period.

[0058] Specifically, during the operation of the alarm monitoring device, the alarm monitoring device is in the sleep state for most of the time, which specifically means that the first power supply does not supply power to the first sound collection module. When the sleep duration of the alarm monitoring device (that is, the duration of the alarm monitoring device in the sleep state) is greater than or equal to the preset sleep duration, the alarm monitoring device switches to the working state, and the microcontroller controls the first power supply to supply power to the first sound collection module. So that the first sound collection device, the first operational amplifier circuit and the second operational amplifier circuit in the first sound collection module start to operate.

[0059] S302: Obtain a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio.

[0060] Specifically, the first electrical signal is generated by the first operational amplifier circuit based on the first audio received by the first sound collection device. The first sound collection device specifically listens to the sound in the first area through a microphone and converts the sound into the corresponding first audio. Then, the first operational amplifier circuit amplifies the first audio by a first magnification factor to obtain the first electrical signal. The first magnification factor is in a range where the first electrical signal will not be saturated, so that the microcontroller can judge the volume of the first audio based on the first electrical signal.

[0061] S303: If the maximum value of the first electrical signal is higher than the first preset threshold, obtain a second electrical signal, where the second electrical signal is generated by the second operational amplifier circuit based on a second audio.

[0062] Specifically, if the maximum value of the first electrical signal is higher than the first preset threshold, obtain the second electrical signal generated by the second operational amplifier circuit based on the second audio. The amplification factor of the second operational amplifier circuit is higher than the first magnification factor, so that the second electrical signal is saturated. Based on the saturated signal, the microcontroller can more accurately obtain features such as the maximum value and duration of the second electrical signal, and further improve the accuracy of the judgment result of whether the second audio is an alarm audio based on the second electrical signal.

[0063] In a possible embodiment, if the first electrical signal is not higher than the first preset threshold, set the sleep duration of the alarm monitoring device to zero, and control the first power supply to stop supplying power to the first sound collection module.

[0064] Specifically, the first preset threshold here corresponds to the minimum alarm audio volume of the security device. If the first electrical signal is not higher than the first preset threshold, it proves that the volume of the first audio is lower than the minimum alarm audio volume of the security device. Therefore, it is concluded that there is no possibility of the security device being triggered in the first area. Therefore, in the embodiment of the present application, if the first electrical signal is not higher than the first preset threshold, set the sleep duration of the alarm monitoring device to zero, and control the first power supply to stop supplying power to the first sound collection module. Until the sleep duration of the alarm monitoring device is greater than or equal to the preset sleep duration next time, the first power supply supplies power to the first sound collection module.

[0065] Exemplarily, please refer to Figure 4 , Figure 4 which is a schematic diagram of the sleep cycle operation steps of an alarm monitoring device provided by an embodiment of the present application, including steps S401 - S404:

[0066] S401: The first power supply stops supplying power to the first sound collection module, and the sleep duration is set to zero.

[0067] Among them, when the alarm monitoring device is in the sleep state, that is, when the first power supply does not supply power to the first sound collection module, the microcontroller starts timing.

[0068] S402: If the sleep duration is greater than or equal to the preset sleep duration, control the first power supply to supply power to the first sound collection module, and obtain a first electrical signal.

[0069] Among them, when the sleep duration is greater than or equal to the preset sleep duration, the microcontroller controls the first power supply to supply power to the first sound collection module, so that the first sound collection module starts to work. The microcontroller obtains the first electrical signal.

[0070] S403: Determine whether the first electrical signal is higher than a first preset threshold.

[0071] Specifically, if the first electrical signal is higher than the first preset threshold, then execute the steps of obtaining the second electrical signal and subsequent steps. If the first electrical signal is not higher than the first preset threshold, control the first power supply to stop supplying power to the first sound collection module, and set the sleep duration to zero.

[0072] S404: Obtain the second electrical signal and subsequent steps.

[0073] It can be seen that in the embodiment of the present application, according to the microcontroller controlling the first power supply, the first sound collection module works intermittently. Only when the first electrical signal is higher than the first preset threshold, the subsequent steps of determining the audio type of the second audio are executed, reducing the operation duration of the alarm monitoring device, and thus reducing the operation energy consumption of the alarm monitoring device.

[0074] S304: Determine the audio type of the second audio according to the second electrical signal, and the audio type includes an alarm audio or a non-alarm audio.

[0075] In a possible embodiment, the alarm monitoring device further includes a communication module and a second power supply. If the audio type of the second audio is an alarm audio, after determining the audio type of the second audio according to the second electrical signal, control the second power supply to supply power to the communication module; control the communication module to send an alarm message to the user terminal, and the alarm message is used to indicate that there is an alarm audio in the first area during the second time period.

[0076] Specifically, in the alarm monitoring device in the embodiment of the present application, there are also a communication module and a second power supply. The second power supply is used to supply power to the communication module, and the communication module is used to communicate with the user terminal.

[0077] Further, the communication module is specifically a wireless communication module operating in a frequency range below 1 GHz. To reduce energy consumption.

[0078] If the audio type of the second audio is an alarm audio, that is to say, there is a security device in the second area that has been triggered and is broadcasting the alarm audio. The microcontroller then controls the second power supply to supply power to the communication module, so that the control communication module sends an alarm message to the user terminal, indicating that there is an alarm audio in the first area during the second time period. And after successfully sending the alarm message, the second power supply is controlled to stop supplying power to the communication module.

[0079] It can be seen that in the embodiment of the present application, after determining that there is an alarm audio in the first area, the second power supply is used to supply power to the communication module to send an alarm message to the user terminal. The remote alarm function of the security device is realized, and at the same time, the second power supply only needs to supply power when the communication module is working, further reducing the operating energy consumption of the alarm monitoring device.

[0080] The above application embodiment describes a method for identifying an alarm audio. The microcontroller determines the operating duration of the alarm monitoring device based on the first electrical signal generated by the first sound collection module. Based on this, in the embodiment of the present application, a specific method for judging the type of the second audio signal based on the signal characteristics of the second electrical signal is also provided in detail. Please refer to Figure 5 , Figure 5 which is a schematic flowchart of another method for identifying an alarm audio provided by the embodiment of the present application, and can be implemented based on Figure 1 the application scenario 100 shown, including steps S501 - S507:

[0081] S501: When the sleep duration of the alarm monitoring device is greater than or equal to the preset sleep duration, control the first power supply to supply power to the first sound collection module, so that the first sound collection device receives the first audio in the first time period and the second audio in the second time period, and the second time period is later than the first time period.

[0082] S502: Obtain the first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio.

[0083] S503: If the maximum value of the first electrical signal is higher than the first preset threshold, obtain the second electrical signal, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio.

[0084] For the detailed description of steps S501 - S503, please refer to the relevant description of steps S301 - S303, which will not be repeated here.

[0085] S504: Obtain the signal characteristics of the second electrical signal, where the signal characteristics include at least one of the number of pulses, pulse width, or pulse signal period.

[0086] Specifically, the signal features here specifically include values, effective signal duration, etc. In the embodiments of the present application, the signal features of the second electrical signal mainly include at least one of the number of pulses, pulse width, or pulse signal period. The microcontroller acquires at least one signal feature of the number of pulses, pulse width, or pulse signal period of the second electrical signal, and is used to determine the signal type corresponding to the second electrical signal according to the signal features of the second electrical signal.

[0087] S505: Calculate the similarity between the second electrical signal and multiple preset electrical signals according to the signal features of the second electrical signal. Each of the multiple preset electrical signals corresponds to an alarm audio.

[0088] Specifically, the microcontroller calculates the similarity between the second electrical signal and multiple preset electrical signals according to the signal features of the second electrical signal, specifically according to the difference between the signal features of the second electrical signal and the signal features of each preset electrical signal.

[0089] In a possible embodiment, control the first power supply to supply power to the first sound collection module so that the first sound collection device generates a preset audio according to the alarm audio of the security device installed in the first area; acquire the preset electrical signal, where the preset electrical signal is generated by the second operational amplifier circuit according to the preset audio; save the preset electrical signal.

[0090] Specifically, in the embodiments of the present application, when the alarm monitoring device is deployed in the first area, start the security device in the first area to make the security device emit the alarm audio that will only be emitted when it is activated, and make the first sound collection module in the alarm monitoring device receive the alarm audio to generate the corresponding preset audio, and further acquire the preset electrical signal generated by the second operational amplifier circuit according to the preset audio. Thus, in the subsequent comparison of the signal features of the second electrical signal, it is compared with a more accurate preset electrical signal, improving the accuracy rate of the comparison result of the second electrical signal.

[0091] S506: If the similarity between the second electrical signal and multiple preset electrical signals is not greater than the second preset threshold, determine that the audio type is non-alarm audio.

[0092] Specifically, if the similarity between the second electrical signal and multiple preset electrical signals is not greater than the second preset threshold, it proves that the second audio corresponding to the second electrical signal is different from any alarm audio corresponding to the preset electrical signal. Therefore, determine that the audio type of the second audio is non-alarm audio, and the security device in the first area has not been triggered.

[0093] Further, after determining that the audio type is non-alarm audio, reset the sleep duration of the alarm monitoring device to zero, and control the first power supply to stop supplying power to the first sound collection module.

[0094] S507: If the similarity between the second electrical signal and any one of the preset electrical signals is greater than the second preset threshold, determine that the audio type is alarm audio.

[0095] Specifically, the similarity to any one of the preset electrical signals is greater than the second preset threshold, that is to say, the second audio corresponding to the second electrical signal is at least the same as the alarm audio corresponding to one of the preset electrical signals. Therefore, it is determined that the audio type of the second audio is the alarm audio, and there is a triggered and alarm - sounding security device in the first area.

[0096] Exemplarily, please refer to Figure 6 , Figure 6 FIG. is an image comparison schematic diagram of a second electrical signal and a preset electrical signal provided by an embodiment of the present application. The preset electrical signal is a preset electrical signal of the alarm audio of a smoke alarm. It can be seen that the image of the second electrical signal is basically the same as that of the preset electrical signal, and the similarity between the second electrical signal and the preset electrical signal is greater than the second preset threshold. Therefore, the microcontroller determines that the second audio corresponding to the second electrical signal here is the same as the alarm audio of the smoke alarm corresponding to the preset electrical signal, and there is a triggered and alarm - sounding smoke alarm in the first area.

[0097] It can be seen that in the embodiment of the present application, by comparing the signal characteristics of the second electrical signal with the signal characteristics of multiple preset electrical signals, the audio type of the second audio corresponding to the second electrical signal can be determined, and thus the remote notification function of the security device is realized.

[0098] The above - mentioned application embodiment describes a method for identifying alarm audio based on a single sound - receiving module. Based on this, in the embodiment of the present application, a method for identifying including multiple sound - receiving modules is also provided in detail. Among them, the alarm monitoring device further includes a second sound - receiving module. The second sound - receiving module includes a second sound - receiving device, a third operational amplifier circuit, and a fourth operational amplifier circuit. Among them, the second sound - receiving device in the second sound - receiving module is used to monitor the second area. The distance between the first area and the second area is less than a preset distance. The second sound - receiving device is used to receive the third audio in the first time period and the fourth audio in the fourth time period. The amplification factor of the third operational amplifier circuit is the first factor, and the amplification factor of the fourth operational amplifier circuit is the second factor. Please refer to Figure 7 , Figure 7 FIG. is a flow schematic diagram of another method for identifying alarm audio provided by an embodiment of the present application, which can be implemented based on Figure 1 the application scenario 100 shown, and includes steps S701 - S707:

[0099] S701: When the sleep duration of the alarm monitoring device is greater than or equal to the preset sleep duration, control the first power supply to supply power to the first sound - receiving module, so that the first sound - receiving device receives the first audio in the first time period and the second audio in the second time period, and the second time period is later than the first time period.

[0100] S702: Obtain a first electrical signal, where the first electrical signal is generated by a first operational amplifier circuit based on a first audio signal.

[0101] S703: If the maximum value of the first electrical signal is higher than a first preset threshold, then obtain a second electrical signal, where the second electrical signal is generated by a second operational amplifier circuit based on a second audio signal.

[0102] For the detailed descriptions of steps S701 - S703 and step S707, please refer to the relevant descriptions of steps S301 - S304 and steps S501 - S507, which will not be elaborated here.

[0103] S704: Obtain a third electrical signal, where the third electrical signal is generated by a third operational amplifier circuit based on a third audio signal.

[0104] Specifically, in the embodiment of the present application, the alarm monitoring device further includes a second sound collection module. The configuration in this second sound collection module is the same as that of the first sound collection module, both including a sound collection device for receiving the sound in a second area and generating corresponding third and fourth audio signals, and two operational amplifier circuits with different magnification factors. The difference is that the first sound collection module is used to monitor a first area, and the second sound collection module is used to monitor the second area, and the distance between the first area and the second area is less than a preset distance. Therefore, the second sound collection module in the second area can receive the alarm audio signal played by the security device in the first area and cannot receive other relatively low - volume noises in the first area.

[0105] In addition, the maximum value of the electrical signal (i.e., the third electrical signal) generated based on the alarm audio signal (i.e., the third audio signal) played by the security device in the first area in the third audio signal of the second sound collection module in the second area will not be higher than the first preset threshold.

[0106] Further, if there are multiple areas where sound collection modules are deployed and the distances between these multiple areas where sound collection modules are deployed and the first area are all less than the preset distance, the second sound collection module specifically refers to the sound collection module corresponding to any one of the multiple areas whose distance from the first area is less than the preset distance.

[0107] S705: If the maximum value of the first electrical signal is higher than the first preset threshold and the maximum value of the third electrical signal is not higher than the first preset threshold, then obtain the fourth electrical signal of the second sound collection module, where the fourth electrical signal is generated by a fourth operational amplifier circuit based on a fourth audio signal.

[0108] Specifically, in the case where the maximum value of the first electrical signal is higher than the first preset threshold and the maximum value of the third electrical signal is not higher than the first preset threshold, it indicates that there is a possibility that the security device in the first area has been triggered, while there is no possibility that the security device in the second area has been triggered.

[0109] Since the distance between the first area and the second area is less than a preset distance, on the premise that the alarm audio played in the first area can be received in the second area and there is no other noise in the second area, the second electrical signal can be corrected by the electrical signal generated according to the audio in the second area.

[0110] S706: Correct the second electrical signal according to the fourth electrical signal.

[0111] Specifically, since there is a certain distance between the second area where the fourth electrical signal is located and the first area, and at the same time the alarm audio to be recognized in this method belongs to the audio with high volume, the second sound receiving device in the second area can receive the alarm audio played by the security device in the first area and cannot receive the relatively low-volume noise generated simultaneously in the first area. Therefore, correcting the second electrical signal according to the fourth electrical signal can eliminate the influence of the relatively low-volume noise generated simultaneously in the first area on the second electrical signal.

[0112] In a possible embodiment, correcting the second electrical signal according to the fourth electrical signal includes: performing short-time Fourier transform on the fourth electrical signal and the second electrical signal; calculating the average noise power spectrum according to the fourth electrical signal after short-time Fourier transform; subtracting the average noise power spectrum from the second electrical signal after short-time Fourier transform to obtain the corrected second electrical signal.

[0113] In a possible embodiment, correcting the second electrical signal according to the fourth electrical signal includes: specifically, determining the signal higher than the third preset threshold in the second electrical signal as the first valid signal, and determining the signal higher than the fourth preset threshold in the fourth electrical signal as the second valid signal; obtaining the signal generation time of the first valid signal and the second valid signal; if there is no second valid signal corresponding to the signal generation time of the first valid signal, deleting the first valid signal from the second electrical signal.

[0114] In a possible embodiment, correcting the second electrical signal according to the fourth electrical signal includes: obtaining a fifth electrical signal and a sixth electrical signal; wherein, the fifth electrical signal is generated by the first operational amplifier circuit according to the second audio, and the sixth electrical signal is generated by the third operational amplifier circuit according to the fourth audio; determining the calculation weights of the second electrical signal and the fourth electrical signal according to the maximum value of the fifth electrical signal and the maximum value of the sixth electrical signal; wherein, the calculation weight of the second electrical signal is positively correlated with the maximum value of the fifth electrical signal, and the calculation weight of the fourth electrical signal is positively correlated with the maximum value of the sixth electrical signal; calculating the corrected second electrical signal according to the second electrical signal, the calculation weight of the second electrical signal, the fourth electrical signal and the calculation weight of the fourth electrical signal.

[0115] Specifically, the obtained fifth electrical signal and sixth electrical signal are respectively generated by the first operational amplifier circuit and the third operational amplifier circuit with a first magnification factor in the first area and the second area during the second time period. In the embodiments of the present application, it is necessary to determine the calculation weights of the second electrical signal and the fourth electrical signal according to the volume levels of the audio (including alarm audio and noise) in the first area and the second area. Therefore, the non-saturated fifth electrical signal and sixth electrical signal generated by the first operational amplifier circuit and the third operational amplifier circuit with a lower magnification factor are required for volume comparison.

[0116] Determine the calculation weights of the second electrical signal and the fourth electrical signal according to the maximum value of the fifth electrical signal and the maximum value of the sixth electrical signal; wherein, the calculation weight of the second electrical signal is positively correlated with the maximum value of the fifth electrical signal, and the calculation weight of the fourth electrical signal is positively correlated with the maximum value of the sixth electrical signal. That is to say, the larger the maximum value of the fifth electrical signal, the larger the calculation weight of the second electrical signal, and the larger the maximum value of the sixth electrical signal, the larger the calculation weight of the fourth electrical signal.

[0117] After obtaining the calculation weights of the second electrical signal and the fourth electrical signal, perform a weighted average calculation on the values of the second electrical signal and the fourth electrical signal corresponding to each moment during the second time period according to the calculation weights of the second electrical signal and the fourth electrical signal to obtain the value of the corrected second electrical signal at each moment.

[0118] It can be seen that in the embodiments of the present application, the calculation weights of the second electrical signal and the fourth electrical signal can be calculated according to the fifth electrical signal and the sixth electrical signal, and then the second electrical signal can be corrected according to the fourth electrical signal based on the calculation weights of the second electrical signal and the fourth electrical signal. In this process, the influence of the audio volume in the first area and the second area is considered, which further improves the accuracy of the subsequent determination of the audio type based on the second electrical signal.

[0119] In a possible embodiment, obtain the signal values of the fifth electrical signal and the sixth electrical signal at multiple target moments, where the target moment is a moment during the second time period; if there are a preset number of adjacent target moments among the multiple target moments where the signal value of the fifth electrical signal is less than the corresponding signal value of the sixth electrical signal, then determine the audio type of the second audio as non-alarm audio.

[0120] Specifically, the fifth electrical signal and the sixth electrical signal obtained in the above application embodiments can be used not only to calculate the weights of the second electrical signal and the fourth electrical signal but also to calculate the sound source type of the second audio, and the sound source type includes non-mobile sound sources and mobile sound sources.

[0121] Since security devices are all configured in fixed areas (such as the first area, the second area, etc.), if the sound source type of the second audio is a mobile sound source during the second time period, it proves that the sound source of the second audio has moved. This may be because the sound source of the second audio is a special vehicle (such as a fire truck, an ambulance, etc.) that produces a similar alarm audio, and the special vehicle passed by the first area during the first time period. Therefore, the maximum value of the first electrical signal in the first area during the first time period is higher than the preset threshold. Therefore, after determining that the sound source type of the second audio is a mobile sound source, the microcontroller can determine that the second audio is not generated by the security device in the first area, so it directly determines the audio type of the second audio as non-alarm audio.

[0122] Since in the embodiment of the present application, only the first electrical signal is greater than the first preset threshold during the first time period, that is to say, during the first time period, only the first area has a sound source of a suspected alarm audio. If it can be determined whether the sound source of the suspected alarm audio that appeared in the first area during the first time period has moved during the second time period after the first time period, it is possible to determine whether the audio emitted by the sound source of the suspected alarm audio is an alarm audio.

[0123] Here, the sound source type of the second audio is determined according to the fifth electrical signal and the sixth electrical signal.

[0124] First, obtain the signal values of the fifth electrical signal and the sixth electrical signal at multiple target times, where the target time is a time in the second time period.

[0125] If the value of the fifth electrical signal is always greater than the value of the sixth electrical signal at each target time in the second time period, it can be determined that the sound source of the suspected alarm audio that appeared in the first area during the first time period has always been located in the first area and has not moved. In this case, the sound source type of the second audio is a non-mobile sound source. Please refer to Figure 8A , Figure 8A which is a schematic diagram of a non-mobile sound source provided by the embodiment of the present application. As Figure 8A shown, the sound source of the second audio is the sound-emitting device of the security device located in the first area. Therefore, the sound source type of the second audio is a non-mobile sound source.

[0126] If there are a preset number of adjacent target times among the multiple target times where the signal value of the fifth electrical signal is less than the corresponding signal value of the sixth electrical signal, it can be determined that the sound source of the suspected alarm audio that appeared in the first area during the first time period has moved and moved to the second area. In this case, the sound source type of the second audio is a mobile sound source. Please refer to Figure 8B , Figure 8B which is a schematic diagram of a mobile sound source provided by the embodiment of the present application. As Figure 8BThe sound source of the second audio shown is a vehicle, which moves in the direction shown in the figure. At a moment in the first time period, the sound source is at a first position close to the first area, and at a moment in the second time period, the sound source is at a second position close to the second area. Therefore, the sound source type of the second audio is a moving sound source.

[0127] Furthermore, if the sound source type of the second audio is a non-moving sound source, then perform the steps of determining the audio type of the second audio according to the second electrical signal and subsequent steps.

[0128] It can be seen that in the embodiment of the present application, by using the fifth electrical signal and the sixth electrical signal in the second time period to determine whether the sound source of the second audio has moved in the second time period, and directly determining that the audio type corresponding to the second audio is an alarm audio on the premise of movement, there is no need to further analyze the signal characteristics of the second electrical signal corresponding to the second audio, which improves the processing efficiency of the alarm monitoring device.

[0129] S707: Determine the audio type of the second audio according to the second electrical signal, and the audio type includes an alarm audio or a non-alarm audio.

[0130] It can be seen that in the embodiment of the present application, by correcting the second electrical signal according to the fourth electrical signal, the influence of the low-volume noise in the first area on the second electrical signal can be removed, and thus the accuracy of the subsequent determination of the audio type of the second audio is improved.

[0131] In a possible embodiment, if the maximum value of the third electrical signal is higher than the first preset threshold, the method further includes: calculating the duration of the second audio according to the second electrical signal, and calculating the duration of the fourth audio according to the fourth electrical signal; respectively obtaining the alarm audio durations of multiple preset electrical signals, and each of the multiple preset electrical signals corresponds to an alarm audio; if the duration of the second audio is greater than the alarm audio duration of any one of the multiple preset electrical signals, then determine the audio type of the second audio as an alarm audio, otherwise determine the audio type of the second audio as a non-alarm audio; if the duration of the fourth audio is greater than the alarm audio duration of any one of the multiple preset electrical signals, then determine the audio type of the fourth audio as an alarm audio, otherwise determine the audio type of the second audio as a non-alarm audio.

[0132] Specifically, in the embodiment of the present application, since the maximum values of the electrical signals generated by the operational amplifier circuits with the first magnification in at least two areas (the first area and the second area) are higher than the first preset threshold at the same time, it means that there is a possibility that the security devices in the first area and the second area are triggered and playing alarm audio at this time. Therefore, in this case, it is necessary to determine the audio types of the second audio and the fourth audio.

[0133] Calculate the duration of the second audio according to the second electrical signal, and calculate the duration of the fourth audio according to the fourth electrical signal. Specifically, it is determined by the generation time of the first valid signal and the generation time of the last valid signal in the second electrical signal. Please refer to Figure 9 , Figure 9 FIG. Figure 9 is a schematic diagram for calculating the duration of an audio provided by an embodiment of the present application. It can be seen that in the electrical signal shown in Figure 9 , the generation time of the first valid signal is t1, and the generation time of the last valid signal is t2. Therefore, the audio duration of this electrical signal is t2 - t1. If the duration of the alarm audio of any one of the multiple preset electrical signals is not greater than t2 - t1, directly determine the audio type of the audio corresponding to this electrical signal as the alarm audio.

[0134] That is to say, in the embodiment of the present application, if the duration of the suspected alarm audio in the first area and the second area within the second time period is greater than the duration of any one of the preset alarm audios, it is considered that the audio type of the corresponding area is the alarm audio.

[0135] It can be seen that in the embodiment of the present application, when there is a possibility that the security device in multiple areas is triggered and playing the alarm audio, by comparing the audio duration of each area with the preset alarm audio duration to determine the audio type of the corresponding area, there is no need to perform complex steps such as feature extraction and comparison of the corresponding electrical signal, which improves the judgment efficiency of the audio type. When there is a possibility that the security device in multiple areas is triggered and playing the alarm audio, the personal and property safety of the user is ensured.

[0136] By implementing the method in the above-mentioned embodiment of the application, it can be seen that by using the first alarm monitoring device to replace the security device for remote alarm, the deployment cost for the user to upgrade the remote notification function of the security device is saved. The security device automatically switching between the working and sleeping states also saves the operating cost of the alarm monitoring device. By controlling the first power supply and the second power supply to supply power to the radio module and the communication module in a timely manner, the operating energy consumption of the alarm monitoring device is further reduced. By correcting the second electrical signal with the electrical signals of other areas, the judgment accuracy is improved.

[0137] Based on the description of the above configuration method embodiment, the present application also provides an alarm audio recognition device 1000. The alarm audio recognition device 1000 can be a computer program (including program code) running in the Figure 1 shown microcontroller 1013 and is used to execute the methods shown in Figure 3 , Figure 5 and Figure 7 . Please refer to Figure 10 , Figure 10Schematic structural diagram of an alarm audio recognition device provided by an embodiment of the present application. The alarm audio recognition device 1000 includes:

[0138] A control unit 1001, configured to control a first power supply to supply power to a first sound collection module when the sleep duration of an alarm monitoring device is greater than or equal to a preset sleep duration, so that a first sound collection device receives a first audio in a first time period and a second audio in a second time period, and the second time period is later than the first time period;

[0139] An acquisition unit 1002, configured to acquire a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio;

[0140] If the maximum value of the first electrical signal is higher than a first preset threshold, acquire a second electrical signal, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio;

[0141] A determination unit 1003, configured to determine the audio type of the second audio according to the second electrical signal, where the audio type includes an alarm audio or a non-alarm audio.

[0142] In a possible embodiment, in terms of determining the audio type of the second audio according to the second electrical signal, the determination unit 1003 is further specifically configured to: acquire signal characteristics of the second electrical signal, where the signal characteristics include at least one of the number of pulses, pulse width, or pulse signal period; calculate the similarity between the second electrical signal and a plurality of preset electrical signals according to the signal characteristics of the second electrical signal, and the plurality of preset electrical signals respectively correspond to an alarm audio; if the similarity between the second electrical signal and the plurality of preset electrical signals is not greater than a second preset threshold, determine that the audio type is a non-alarm audio; if the similarity between the second electrical signal and any one of the preset electrical signals is greater than the second preset threshold, determine that the audio type is an alarm audio.

[0143] In a possible embodiment, the alarm monitoring device further includes a communication module and a second power supply. If the audio type of the second audio is an alarm audio, the control unit 1001 is further specifically configured to: control the second power supply to supply power to the communication module; control the communication module to send an alarm message to a user terminal, and the alarm message is used to indicate that there is an alarm audio in a first area during the second time period.

[0144] In a possible embodiment, if the first electrical signal is not higher than the first preset threshold, the control unit 1001 is further specifically configured to: reset the sleep duration of the alarm monitoring device to zero, and control the first power supply to stop supplying power to the first sound collection module.

[0145] In a possible embodiment, the alarm monitoring device further includes a second sound collection module, and the second sound collection module includes a second sound collection device, a third operational amplifier circuit, and a fourth operational amplifier circuit; wherein, the second sound collection device in the second sound collection module is used to monitor a second area, the distance between a first area and the second area is less than a preset distance, the second sound collection device is used to receive a third audio in a first time period and a fourth audio in a fourth time period, the amplification factor of the third operational amplifier circuit is a first factor, and the amplification factor of the fourth operational amplifier circuit is a second factor. Before determining the audio type of the second audio according to the second electrical signal, the obtaining unit 1002 is further specifically configured to: obtain a third electrical signal, where the third electrical signal is generated by the third operational amplifier circuit according to the third audio; if the maximum value of the first electrical signal is higher than a first preset threshold and the maximum value of the third electrical signal is not higher than the first preset threshold, then obtain a fourth electrical signal of the second sound collection module, where the fourth electrical signal is generated by the fourth operational amplifier circuit according to the fourth audio; and correct the second electrical signal according to the fourth electrical signal.

[0146] In a possible embodiment, in terms of correcting the second electrical signal according to the fourth electrical signal, the obtaining unit 1002 is further specifically configured to: obtain a fifth electrical signal and a sixth electrical signal; wherein, the fifth electrical signal is generated by a first operational amplifier circuit according to the second audio, and the sixth electrical signal is generated by the third operational amplifier circuit according to the fourth audio; determine calculation weights of the second electrical signal and the fourth electrical signal according to the maximum value of the fifth electrical signal and the maximum value of the sixth electrical signal; wherein, the calculation weight of the second electrical signal is positively correlated with the maximum value of the fifth electrical signal, and the calculation weight of the fourth electrical signal is positively correlated with the maximum value of the sixth electrical signal; and calculate the corrected second electrical signal according to the second electrical signal, the calculation weight of the second electrical signal, the fourth electrical signal, and the calculation weight of the fourth electrical signal.

[0147] In a possible embodiment, the obtaining unit 1002 is further specifically configured to: obtain signal values of the fifth electrical signal and the sixth electrical signal at a plurality of target moments, where the target moment is a moment in a second time period; if there are a preset number of adjacent target moments among the plurality of target moments where the signal value of the fifth electrical signal is less than the signal value of the corresponding sixth electrical signal, then determine the audio type of the second audio as a non-alarm audio.

[0148] Based on the description of the above method embodiments and apparatus embodiments, please refer to Figure 11 , Figure 11 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Figure 11 The electronic device 1100 shown (the electronic device 1100 may specifically be a computer device, Figure 1The microcontroller 1013 shown includes a memory 1101, a processor 1102, a communication interface 1103, and a bus 1104. Among them, the memory 1101, the processor 1102, and the communication interface 1103 are communicatively connected to each other through the bus 1104.

[0149] The memory 1101 can be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).

[0150] The memory 1101 can store a program. When the program stored in the memory 1101 is executed by the processor 1102, the processor 1102 and the communication interface 1103 are used to execute the various steps of the method for identifying alarm audio in the embodiments of the present application.

[0151] The processor 1102 can be a general-purpose central processing unit (CPU), a microcontroller, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits, and is used to execute relevant programs to implement the functions required to be executed by the units in the electronic device 1100 in the embodiments of the present application, or to execute the method for identifying alarm audio in the method embodiments of the present application.

[0152] The processor 1102 can also be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the method for identifying alert audio in this application can be completed by the integrated logic circuit of the hardware in the processor 1102 or instructions in the form of software. The above-mentioned processor 1102 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microcontroller or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of this application can be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. This storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101 and combines its hardware to complete the functions required to be executed by the units included in the electronic device 1100 in the embodiments of this application, or executes the method for identifying alert audio in the method embodiments of this application.

[0153] The communication interface 1103 uses a transceiver device such as, but not limited to, a transceiver to achieve communication between the electronic device 1100 and other devices or communication networks. For example, data can be obtained through the communication interface 1103.

[0154] The bus 1104 can include a path for transmitting information between various components of the electronic device 1100 (for example, the memory 1101, the processor 1102, the communication interface 1103).

[0155] It should be noted that although Figure 11 the shown electronic device 1100 only shows the memory 1101, the processor 1102, and the communication interface 1103, in the specific implementation process, those skilled in the art should understand that the electronic device 1100 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 1100 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 1100 may also only include the devices necessary for implementing the embodiments of this application, and do not necessarily include Figure 11 all the devices shown in

[0156] An embodiment of the present application also provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to implement the method for identifying alarm audio described above.

[0157] Optionally, as an implementation manner, the chip may further include a memory, in which instructions are stored, and the processor is configured to execute the instructions stored in the memory. When the instructions are executed, the processor is configured to execute the method for identifying alarm audio described above.

[0158] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When it runs on a computer or a processor, it causes the computer or the processor to execute one or more steps in any of the above methods.

[0159] An embodiment of the present application also provides a computer program product containing instructions. When the computer program product runs on a computer or a processor, it causes the computer or the processor to execute one or more steps in any of the above methods.

[0160] Those skilled in the art can understand that the functions described in connection with the various illustrative logical blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logical blocks, modules, and steps can be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. The computer-readable medium can include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates the transfer of a computer program from one place to another (e.g., based on a communication protocol). In this way, the computer-readable medium generally corresponds to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or a carrier wave. The data storage medium can be any available medium accessible by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the technologies described in the present application. The computer program product can include a computer-readable medium.

[0161] By way of example and not limitation, such computer-readable storage media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that is accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but rather are directed to non-transitory tangible storage media. As used herein, disk and optical disks include compact disk (CD), laser disk, optical disk, digital versatile disk (DVD), and Blu-ray disk, where disks typically reproduce data magnetically, while optical disks utilize lasers to optically reproduce data. Combinations of the above should also be included within the scope of computer-readable media.

[0162] The instructions can be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microcontrollers, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, as used herein, the term "processor" can refer to any one of the foregoing structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described for the various illustrative logical blocks, modules, and steps can be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques can be fully implemented in one or more circuits or logic elements.

[0163] The techniques of the present application can be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or a group of ICs (e.g., a chipset). The various components, modules, or units described in this application are described to emphasize functional aspects of the devices for performing the disclosed techniques, but need not be implemented by different hardware units. In fact, as described above, the various units can be combined in an encoding hardware unit with suitable software and / or firmware, or provided by interoperating hardware units, including one or more processors as described above.

[0164] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the specific descriptions of the corresponding steps in the foregoing method embodiments, and will not be elaborated herein.

[0165] It should be understood that in the description of this application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; where A and B can be singular or plural. Also, in the description of this application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or its similar expressions refer to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple. Additionally, for the convenience of clearly describing the technical solutions of the embodiments of this application, in the embodiments of this application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. Those skilled in the art can understand that the terms "first", "second", etc. do not limit the quantity and execution order, and the terms "first", "second", etc. do not necessarily mean different. At the same time, in the embodiments of this application, words such as "exemplary" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific manner for easy understanding.

[0166] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The couplings shown or discussed, or direct couplings, or communication connections can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.

[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0168] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0169] As described above, it is only the specific implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

[0170] The device embodiments described above are merely illustrative. The units and modules described as separate components may or may not be physically separated. Additionally, some or all of the units and modules can be selected according to actual needs to achieve the objectives of the solutions of this embodiment. A person of ordinary skill in the art can understand and implement it without creative efforts.

[0171] The above description is only the specific implementation manner of the present application. It should be noted that for those of ordinary skill in the technical field, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A method for identifying an alarm audio, characterized in that: A microcontroller applied to an alarm monitoring device, the alarm monitoring device further includes a first sound receiving module and a first power supply, the first sound receiving module includes a first sound receiving device, a first operational amplifier circuit, and a second operational amplifier circuit; wherein the amplification factor of the first operational amplifier circuit is a first factor, the amplification factor of the second operational amplifier circuit is a second factor, and the second factor is higher than the first factor, the first sound receiving module is used to monitor a first area, the alarm monitoring device further includes a second sound receiving module, the second sound receiving module includes a second sound receiving device, a third operational amplifier circuit, and a fourth operational amplifier circuit; wherein the second sound receiving device in the second sound receiving module is used to monitor a second area, the distance between the first area and the second area is less than a preset distance, the second sound receiving device is used to receive a third audio in a first time period and a fourth audio in a fourth time period, the amplification factor of the third operational amplifier circuit is a first factor, and the amplification factor of the fourth operational amplifier circuit is a second factor, and the method includes: When the sleep time of the alarm monitoring device is greater than or equal to the preset sleep time, controlling the first power supply to supply power to the first sound receiving module, so that the first sound receiving device receives a first audio in a first time period and a second audio in a second time period, wherein the second time period is later than the first time period; Acquire a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio; If the maximum value of the first electrical signal is higher than a first preset threshold, a second electrical signal is acquired, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio; obtaining a third electrical signal, wherein the third electrical signal is generated by the third operational amplifier circuit according to the third audio; if the maximum value of the first electrical signal is higher than a first preset threshold value and the maximum value of the third electrical signal is not higher than the first preset threshold value, obtaining a fourth electrical signal of the second sound receiving module, wherein the fourth electrical signal is generated by the fourth operational amplifier circuit according to the fourth audio; and correcting the second electrical signal according to the fourth electrical signal; An audio type of the second audio is determined according to the second electrical signal, the audio type comprising an alarm audio or a non-alarm audio.

2. The method according to claim 1, characterized in that The step of determining the audio type of the second audio according to the second electrical signal includes: Acquiring a signal characteristic of the second electrical signal, wherein the signal characteristic comprises at least one of a pulse quantity, a pulse width, or a pulse signal period; calculating the similarity between the second electrical signal and a plurality of preset electrical signals according to the signal feature of the second electrical signal, wherein the plurality of preset electrical signals respectively correspond to an alarm audio; If the similarity between the second electrical signal and the plurality of preset electrical signals is not greater than a second preset threshold, determining that the audio type is non-alarm audio; If the similarity between the second electrical signal and any preset electrical signal is greater than a second preset threshold, the audio type is determined to be an alarm audio.

3. The method according to claim 1, characterized in that: The alarm monitoring device further includes a communication module and a second power supply. If the audio type of the second audio is an alarm audio, the method further includes: Controlling the second power supply to supply power to the communication module; The communication module is controlled to send alarm information to a user terminal, where the alarm information is used to indicate that an alarm audio exists in the first area within the second time period.

4. The method according to claim 1, characterized in that: If the first electrical signal is not higher than the first preset threshold, the method further includes: The sleep time of the alarm monitoring device is reset to zero, and the first power supply is controlled to stop supplying power to the first sound receiving module.

5. The method according to claim 1, characterized in that The step of correcting the second electrical signal according to the fourth electrical signal comprises: Acquire a fifth electrical signal and a sixth electrical signal; wherein the fifth electrical signal is generated by the first operational amplifier circuit according to the second audio, and the sixth electrical signal is generated by the third operational amplifier circuit according to the fourth audio; Determining the calculation weights of the second electrical signal and the fourth electrical signal according to the maximum value of the fifth electrical signal and the maximum value of the sixth electrical signal; wherein the calculation weight of the second electrical signal is positively correlated with the maximum value of the fifth electrical signal, and the calculation weight of the fourth electrical signal is positively correlated with the maximum value of the sixth electrical signal; A modified second electrical signal is obtained by calculation according to the second electrical signal, the calculated weight of the second electrical signal, the fourth electrical signal, and the calculated weight of the fourth electrical signal.

6. The method according to claim 5, characterized in that The method further comprises: Acquire signal values ​​of the fifth electrical signal and the sixth electrical signal at a plurality of target moments, where the target moment is a moment in the second time period; If there are a preset number of adjacent target moments among the multiple target moments where the signal values ​​of the fifth electrical signal are smaller than the signal value of the corresponding sixth electrical signal, the audio type of the second audio is determined as non-alarm audio.

7. A device for recognizing alarm audio, characterized in that: The alarm audio recognition device belongs to an alarm monitoring device, and the alarm monitoring device also includes a first sound receiving module and a first power supply. The first sound receiving module includes a first sound receiving device, a first operational amplifier circuit, and a second operational amplifier circuit; wherein the amplification factor of the first operational amplifier circuit is a first factor, and the amplification factor of the second operational amplifier circuit is a second factor, and the second factor is higher than the first factor. The first sound receiving module is used to monitor a first area. The alarm monitoring device also includes a second sound receiving module, and the second sound receiving module includes a second sound receiving device, a third operational amplifier circuit, and a fourth operational amplifier circuit; wherein the second sound receiving device in the second sound receiving module is used to monitor a second area, and the distance between the first area and the second area is less than a preset distance. The second sound receiving device is used to receive a third audio in a first time period and a fourth audio in a fourth time period. The amplification factor of the third operational amplifier circuit is a first factor, and the amplification factor of the fourth operational amplifier circuit is a second factor. The device includes: a control unit, configured to control the first power supply to supply power to the first sound receiving module when the sleep time of the alarm monitoring device is greater than or equal to a preset sleep time, so that the first sound receiving device receives a first audio in a first time period and a second audio in a second time period, wherein the second time period is later than the first time period; an acquisition unit, configured to acquire a first electrical signal, where the first electrical signal is generated by the first operational amplifier circuit according to the first audio; If the maximum value of the first electrical signal is higher than a first preset threshold, a second electrical signal is acquired, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio; an acquisition unit, configured to acquire a third electrical signal, wherein the third electrical signal is generated by the third operational amplifier circuit according to the third audio; if the maximum value of the first electrical signal is higher than a first preset threshold value and the maximum value of the third electrical signal is not higher than the first preset threshold value, then acquire a fourth electrical signal of the second sound receiving module, wherein the fourth electrical signal is generated by the fourth operational amplifier circuit according to the fourth audio; and correct the second electrical signal according to the fourth electrical signal; A determining unit is used to determine an audio type of the second audio according to the second electrical signal, where the audio type includes alarm audio or non-alarm audio.

8. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Smoke alarm sound identification method and system

    CN113593610A

  • Sound detection circuit, circuit board and medical breathing machine

    CN220542255U