Alarm audio identification method and device, electronic equipment and storage medium
By introducing the microcontroller and radio module of the alarm monitoring device into the security equipment, analyzing the electrical signals of the alarm audio, the remote alarm function of the security equipment is realized, solving the problem of high equipment upgrade cost and reducing operating costs.
Patent Information
- Application Number
- CN202510275440.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2045-03-10
AI Technical Summary
When existing security devices need to implement remote alarm functions, they need to replace the devices, resulting in high upgrade and deployment costs.
By using the first and second radio modules in the microcontroller of the alarm monitoring device, the electrical signals of the alarm audio are obtained and analyzed to determine the audio type, and the remote alarm function is realized without changing the security device.
Without the need to replace the security equipment, the remote alarm function of the security equipment is realized, saving users' deployment costs, and reducing the operating costs of the equipment by switching work and sleeping states by themselves.
Smart Images

Figure CN119785548A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the general data processing field of the Internet field, and in particular to an alarm audio recognition method, device, electronic device and storage medium. Background Art
[0002] Security equipment, that is, security monitoring equipment, specifically refers to common smoke alarms, fire alarms, door and window alarms and other equipment in our daily lives. With the advancement of technologies such as 5G communications and the Internet of Things, a large number of devices with built-in communication modules and processors that can realize remote security alarms have also appeared in ordinary home security equipment. When the alarm is triggered, these devices will simultaneously send alarm information to the user terminal to realize remote alarms. However, for some devices that were installed earlier and have backward equipment models, if you want to achieve such a function, you need to replace the equipment and reinstall it, which brings a lot of security equipment upgrade and deployment costs. Summary of the invention
[0003] In response to the above problems, the example of the present application provides an alarm audio recognition method, device, electronic device and storage medium. The use of the solution of the present application is conducive to saving the upgrade and deployment costs brought about by upgrading the remote alarm function of security equipment.
[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 also includes a first radio module and a first power supply, the first radio module includes a first radio 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, the second factor is higher than the first factor, the first radio module is used to monitor a first area, 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 radio module so that the first radio device receives a first audio in a first time period and a second audio in a second time period, the second time period being later than the first time period; obtaining a first electrical signal, the first electrical signal being generated by the first operational amplifier circuit according to the first audio; if the maximum value of the first electrical signal is higher than the first preset threshold, obtaining a second electrical signal, the second electrical signal being generated by the second operational amplifier circuit according to the second audio; determining the audio type of the second audio according to the second electrical signal, the audio type including alarm audio or non-alarm audio.
[0005] It can be seen that the first electrical signal and the second electrical signal obtained by the first alarm monitoring device determine whether the security device in the first area is retransmitted, and then the alarm information 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 to upgrade the remote notification function of the security device. In addition, the alarm monitoring device can switch between working and sleeping states by itself, which also saves the operating cost of the alarm monitoring device.
[0006] In combination with the first aspect, in a possible embodiment, determining the audio type of the second audio according to the second electrical signal includes: obtaining signal characteristics of the second electrical signal, the signal characteristics including at least one of the number of pulses, pulse width or pulse signal period; calculating the similarity between the second electrical signal and a plurality of preset electrical signals according to the signal characteristics of the second electrical signal, the plurality of preset electrical signals respectively corresponding 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 the audio type to be 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 the audio type to be 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 determined, thereby realizing the remote notification function of the security equipment.
[0008] In combination with the first aspect, in a possible embodiment, the alarm monitoring device also includes a communication module and a second power supply. If the audio type of the second audio is alarm audio, the method also includes: controlling the second power supply to supply power to the communication module; controlling the communication module to send alarm information to the user terminal, and the alarm information is used to indicate that there is alarm audio in the first area within 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 communication module is powered by the second power supply, and the alarm information is sent to the user terminal. The remote alarm function of the security equipment is realized, and the second power supply only needs to be powered when the communication module is working, which further reduces the operating energy consumption of the alarm monitoring device.
[0010] In combination with the first aspect, in a possible embodiment, if the first electrical signal is not higher than a first preset threshold, the method further includes: resetting the sleep time of the alarm monitoring device to zero, and controlling the first power supply to stop supplying power to the first radio module.
[0011] It can be seen that in the embodiment of the present application, the first power supply is controlled by the microcontroller so that the first radio module works intermittently, and only when the first electrical signal is higher than the first preset threshold value, the subsequent steps of determining the audio type of the second audio are performed, thereby reducing the operating time of the alarm monitoring device and thus reducing the operating energy consumption of the alarm monitoring device.
[0012] In combination with the first aspect, in a possible embodiment, the alarm monitoring device also includes a second radio module, the second radio module includes a second radio device, a third operational amplifier circuit and a fourth operational amplifier circuit; wherein, the second radio device in the second radio 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 radio 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 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 method also includes: obtaining a third electrical signal, 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 obtaining a fourth electrical signal of the second radio module, 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.
[0013] 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 noise with lower volume in the first area on the second electrical signal can be removed, thereby improving the accuracy of determining the audio type of the subsequent second audio.
[0014] In combination 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; 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; and 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.
[0015] It can be seen that in the embodiment of the present application, the calculation weight of the second electrical signal and the calculation weight of the fourth electrical signal can be calculated based on 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 weight of the second electrical signal and the calculation weight of the fourth electrical signal. In this process, the influence of the audio volume in the first area and the second area is taken into account, thereby further improving the accuracy of the subsequent judgment of the audio type based on the second electrical signal.
[0016] In combination with the first aspect, in a possible embodiment, the method also includes: obtaining signal values of the fifth electrical signal and the sixth electrical signal at multiple target moments, the target moment being a moment in the second time period; if there are a preset number of adjacent target moments among the multiple target moments, and the signal value of the fifth electrical signal is smaller than the signal value of the corresponding sixth electrical signal, then the audio type of the second audio is determined as non-alarm audio.
[0017] It can be seen that in the embodiment of the present application, the fifth electrical signal and the sixth electrical signal of the second time period are used to determine whether the sound source of the second audio has moved within the second time period. On the premise that movement has occurred, the audio type corresponding to the second audio is directly determined to be alarm audio, and there is no need to perform analysis based on the signal characteristics of the second electrical signal corresponding to the second audio, thereby 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, 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, the amplification factor of the second operational amplifier circuit is a second factor, the second factor is higher than the first factor, the first sound receiving module is used to monitor the first area, and the alarm audio recognition 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 the 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, the second time period being 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; 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.
[0019] In a third aspect, an embodiment of the present application provides an electronic device comprising 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 one or more instructions are suitable for being loaded by the processor and executing part or all of the methods of the first aspect and / or the second aspect.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the method of the first aspect and / or the second aspect.
[0021] In a fifth aspect, the present application provides a computer program product. When a computer reads and executes the computer program product, the computer executes part or all of the method of the first aspect and / or the second aspect.
[0022] It can be understood that the beneficial effects of the embodiments described in the second to fifth aspects can refer to the beneficial effects of the method described in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic diagram of an application scenario of a method for recognizing alarm audio provided in an embodiment of the present application; Figure 2 A schematic diagram of the internal connection relationship of a first sound receiving module provided in an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of a method for identifying an alarm audio provided in an embodiment of the present application; Figure 4 A schematic diagram of the sleep cycle operation steps of an alarm monitoring device provided in an embodiment of the present application; Figure 5 A schematic flow chart of another method for identifying an alarm audio signal provided in an embodiment of the present application; Figure 6 A schematic diagram of image comparison between a second electrical signal and a preset electrical signal provided in an embodiment of the present application; Figure 7 A schematic diagram of a flow chart of another method for identifying an alarm audio according to an embodiment of the present application; Fig. 8AA schematic diagram of a non-mobile sound source provided in an embodiment of the present application; Figure 8B A schematic diagram of a mobile sound source provided in an embodiment of the present application; Fig. 9 A schematic diagram of calculating the duration of an audio signal provided in an embodiment of the present application; Fig.10 A schematic diagram of the structure of an alarm audio recognition device provided in an embodiment of the present application; Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0025] Description of Figure Numbers Application scenario 100; first alarm monitoring device 101; security device 102; user terminal 103; first sound receiving module 1011; first power supply 1012; microcontroller 1013; first sound receiving 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 DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. 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 optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0030] See also Figure 1 , Figure 1 This is a schematic diagram of an application scenario of an alarm audio recognition method provided in an embodiment of the present application. The application scenario 100 includes a first alarm monitoring device 101, a security device 102 and a user terminal 103.
[0031] The first alarm monitoring device 101 is installed in the first area and 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, it indicates to the user terminal 103 that the security device 102 is triggered. The first alarm monitoring device 101 also includes a first sound receiving module 1011, a first power supply 1012, and a microcontroller 1013. The first sound receiving module 1011 includes a first sound receiving 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 provide the first sound receiving module 1011, so that the microcontroller 1013 controls the first sound receiving device 1014, the first operational amplifier circuit 1015, and the second operational amplifier circuit 1016 to determine whether the security device 102 is triggered.
[0032] The security device 102 is installed in the first area, and is specifically a device for ensuring the safety of the first area, such as a smoke alarm, a fire alarm, a door and window alarm, etc. When the security device 102 determines that there is danger such as smoke, fire, or an unknown person breaking into the first area, it issues an alarm through an alarm audio or the like. In addition, in an actual scenario, multiple security devices 102 may be included, and only one security device 102 is used as an example here.
[0033] In an embodiment of the present application, when the sleep time of the alarm monitoring device is greater than or equal to a preset sleep time (for example, 30s, 15s, etc.), the microcontroller 1013 controls the first power supply 1012 to supply power to the first sound receiving module 1011, so that the first sound receiving 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.
[0034] The microcontroller 1013 obtains a first electrical signal generated by the first operational amplifier circuit 1015 according to the first audio, where the first electrical signal is obtained after the first operational amplifier circuit 1015 amplifies the first audio by a first factor. The microcontroller 1013 determines whether the security device 102 is likely to be triggered according to the maximum value of the first electrical signal.
[0035] For example, see Figure 2 , Figure 2 A schematic diagram of the internal connection relationship of a first sound receiving module provided in an embodiment of the present application, wherein the microcontroller 1013 in the first alarm monitoring device 101 controls the first power supply 1012 through port A to supply power to the first sound receiving module 1011. The first sound receiving device 1014 in the first sound receiving module 1011 generates a first audio, which is sent to the first operational amplifier circuit 1015. The first electrical signal generated after amplification by a first factor is obtained from the microcontroller 1013 through port C, and the second audio is sent to the second operational amplifier circuit 1016. The second electrical signal generated after amplification by a second factor is obtained from the microcontroller 1013 through port B.
[0036] 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 value (the first preset threshold value here corresponds to the minimum alarm audio volume of the security device 102), the microcontroller 1013 determines that the security device 102 is likely to 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.
[0037] In addition, if the maximum value of the first electrical signal generated by the first operational amplifier circuit 1015 according to the first audio is not higher than the first preset threshold, it is determined that the security device 102 is not likely to be triggered, and the first alarm monitoring device 101 will enter the sleep state again.
[0038] The microcontroller 1013 determines the audio type of the second audio according to the second electrical signal with a higher amplification factor, and specifically determines whether the second audio is an alarm audio according to the maximum value, duration, and other characteristics of the second electrical signal. When the second audio is determined to be an alarm audio, the first alarm monitoring device 101 also sends information to the user terminal 103, indicating that the security device 102 is triggered.
[0039] It can be seen that the first electrical signal and the second electrical signal obtained by the first alarm monitoring device determine whether the security device in the first area is retransmitted, and then the alarm information 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 to upgrade the remote notification function of the security device. In addition, the alarm monitoring device can switch between working and sleeping states by itself, which also saves the operating cost of the alarm monitoring device.
[0040] See also Figure 3 , Figure 3 A flowchart of a method for recognizing an alarm audio according to an embodiment of the present application can be based on Figure 1 The application scenario 100 shown is implemented as Figure 3 As shown, steps S301-S304 are included: S301: When the sleep time of the alarm monitoring device is greater than or equal to the preset sleep time, control the first power supply to supply power to the first radio module, so that the first radio device receives the first audio of the first time period and the second audio of the second time period, and the second time period is later than the first time period.
[0041] Specifically, during the operation of the alarm monitoring device, the alarm monitoring device is in a dormant state for most of the time, specifically, the first power supply does not supply power to the first radio module. When the dormant time of the alarm monitoring device (i.e., the time the alarm monitoring device is in a dormant state) is greater than or equal to the preset dormant time, the alarm monitoring device switches to a working state, and the microcontroller controls the first power supply to supply power to the first radio module, so that the first radio device, the first operational amplifier circuit, and the second operational amplifier circuit in the first radio module start to operate.
[0042] S302: Acquire a first electrical signal, where the first electrical signal is generated by a first operational amplifier circuit according to a first audio signal.
[0043] Specifically, the first electrical signal is generated by the first operational amplifier circuit according to the first audio received by the first sound receiving device. The first sound receiving 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 factor to obtain the first electrical signal. The first factor is within a range where the first electrical signal will not be fully deviated, so that the microcontroller can determine the volume of the first audio with the first electrical signal.
[0044] S303: If the maximum value of the first electrical signal is higher than the 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.
[0045] Specifically, if the maximum value of the first electrical signal is higher than the first preset threshold, the second electrical signal generated by the second operational amplifier circuit according to the second audio is obtained, and the amplification factor of the second operational amplifier circuit is higher than the first factor, so that the second electrical signal is fully biased. Based on the fully biased signal, the microcontroller can more accurately obtain the maximum value, duration and other characteristics of the second electrical signal, thereby improving the accuracy of the judgment result of whether the second audio is an alarm audio based on the second electrical signal.
[0046] In a possible embodiment, if the first electrical signal is not higher than the first preset threshold, 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.
[0047] 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, so 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, 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 radio module. Until the next time the sleep time of the alarm monitoring device is greater than or equal to the preset sleep time, the first power supply supplies power to the first radio module.
[0048] For example, see Figure 4 , Figure 4 A schematic diagram of a sleep cycle operation step of an alarm monitoring device provided in an embodiment of the present application includes steps S401-S404: S401: The first power source stops supplying power to the first radio module, and the sleep time is reset to zero.
[0049] When the alarm monitoring device is in a dormant state, that is, the first power supply does not supply power to the first radio module, the microcontroller starts timing.
[0050] S402: If the sleep time is greater than or equal to the preset sleep time, control the first power supply to supply power to the first sound receiving module and obtain a first electrical signal.
[0051] When the sleep time is greater than or equal to the preset sleep time, the microcontroller controls the first power supply to supply power to the first radio module, so that the first radio module starts to work. The microcontroller obtains the first electrical signal.
[0052] S403: Determine whether the first electrical signal is higher than a first preset threshold.
[0053] Specifically, if the first electrical signal is higher than the first preset threshold, the second electrical signal and subsequent steps are executed; if the first electrical signal is not higher than the first preset threshold, the first power supply is controlled to stop supplying power to the first radio module and the sleep time is reset to zero.
[0054] S404: Acquire a second electrical signal and subsequent steps.
[0055] It can be seen that in the embodiment of the present application, the first power supply is controlled by the microcontroller so that the first radio module works intermittently, and only when the first electrical signal is higher than the first preset threshold value, the subsequent steps of determining the audio type of the second audio are performed, thereby reducing the operating time of the alarm monitoring device and thus reducing the operating energy consumption of the alarm monitoring device.
[0056] S304: Determine the audio type of the second audio according to the second electrical signal, where the audio type includes alarm audio or non-alarm audio.
[0057] In a possible embodiment, the alarm monitoring device also includes a communication module and a second power supply. If the audio type of the second audio is alarm audio, after determining the audio type of the second audio based on the second electrical signal, the second power supply is controlled to supply power to the communication module; the communication module is controlled to send alarm information to the user terminal, and the alarm information is used to indicate that there is alarm audio in the first area within the second time period.
[0058] Specifically, in the embodiment of the present application, the alarm monitoring device also includes 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.
[0059] Furthermore, the communication module is specifically a wireless communication module operating in a frequency range below 1 GHz to reduce energy consumption.
[0060] If the audio type of the second audio is alarm audio, that is to say, there is a security device in the second area that is triggered and is broadcasting alarm audio. The microcontroller controls the second power supply to supply power to the communication module, so that the communication module is controlled to send an alarm message to the user terminal, indicating that there is an alarm audio in the first area during the second time period. After the alarm message is successfully sent, the second power supply is controlled to stop supplying power to the communication module.
[0061] 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 communication module is powered by the second power supply, and the alarm information is sent to the user terminal. The remote alarm function of the security equipment is realized, and the second power supply only needs to be powered when the communication module is working, which further reduces the operating energy consumption of the alarm monitoring device.
[0062] The above application embodiment describes a method for identifying an alarm audio signal, wherein the microcontroller determines the operating time of the alarm monitoring device based on the first electrical signal generated by the first sound receiving module. Based on the embodiment of the present application, a specific method for determining the type of the second audio signal based on the signal characteristics of the second electrical signal is also provided in detail, see Figure 5 , Figure 5 A flowchart of another method for identifying an alarm audio according to an embodiment of the present application can be based on Figure 1 The application scenario 100 shown is implemented, including steps S501-S507: S501: When the sleep time of the alarm monitoring device is greater than or equal to the preset sleep time, control the first power supply to supply power to the first radio module, so that the first radio device receives the first audio of the first time period and the second audio of the second time period, and the second time period is later than the first time period.
[0063] S502: Acquire a first electrical signal, where the first electrical signal is generated by a first operational amplifier circuit according to a first audio signal.
[0064] S503: If the maximum value of the first electrical signal is higher than the 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.
[0065] For a detailed description of steps S501-S503, please refer to the relevant description of steps S301-S303, which will not be repeated here.
[0066] S504: Acquire a signal characteristic of the second electrical signal, where the signal characteristic includes at least one of the number of pulses, pulse width, or pulse signal period.
[0067] Specifically, the signal characteristics here specifically include numerical values, effective signal duration, etc. In the embodiment of the present application, the signal characteristics of the second electrical signal mainly include at least one of the number of pulses, pulse width, or pulse signal period. The microcontroller obtains at least one signal characteristic 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 characteristics of the second electrical signal.
[0068] S505: Calculate similarities between the second electrical signal and a plurality of preset electrical signals according to the signal characteristics of the second electrical signal, wherein the plurality of preset electrical signals respectively correspond to an alarm audio.
[0069] Specifically, the microcontroller calculates the similarity between the second electrical signal and a plurality of preset electrical signals according to the signal feature of the second electrical signal, specifically according to the difference between the signal feature of the second electrical signal and the signal feature of each preset electrical signal.
[0070] In a possible embodiment, the first power supply is controlled to supply power to the first radio module so that the first radio device generates a preset audio according to the alarm audio of the security equipment installed in the first area; a preset electrical signal is obtained, and the preset electrical signal is generated by the second operational amplifier circuit according to the preset audio; and the preset electrical signal is saved.
[0071] Specifically, in the embodiment of the present application, when the alarm monitoring device is deployed in the first area, the security device in the first area is started to make the security device emit an alarm audio that will only be emitted when activated, and the first sound receiving module in the alarm monitoring device receives the alarm audio to generate a corresponding preset audio, and further obtains a preset electrical signal generated by the second operational amplifier circuit according to the preset audio. Therefore, in the subsequent signal feature comparison of the second electrical signal, it is compared with a more accurate preset electrical signal, thereby improving the accuracy of the comparison result of the second electrical signal.
[0072] S506: 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.
[0073] Specifically, if the similarity between the second electrical signal and the plurality of preset electrical signals is not greater than the second preset threshold, it is proved that the second audio corresponding to the second electrical signal is different from any alarm audio corresponding to the preset electrical signal. Therefore, it is determined that the audio type of the second audio is non-alarm audio, and the security device in the first area is not triggered.
[0074] Further, after determining that the audio type is non-alarm audio, 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.
[0075] S507: If the similarity between the second electrical signal and any preset electrical signal is greater than a second preset threshold, determine that the audio type is an alarm audio.
[0076] Specifically, the similarity with any one of the preset electrical signals is greater than the second preset threshold, that is, 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 an alarm audio, and there is a security device in the first area that is triggered and is alarming.
[0077] For example, see Figure 6 , Figure 6A schematic diagram of image comparison between a second electrical signal and a preset electrical signal provided in an embodiment of the present application, wherein the preset electrical signal is a preset electrical signal of an alarm audio of a smoke alarm, and it can be seen that the second electrical signal and the preset electrical signal have substantially the same image, and the similarity between the second electrical signal and the preset electrical signal is greater than a 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 smoke alarm in the first area that is triggered and is alarming.
[0078] 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, thereby realizing the remote notification function of the security equipment.
[0079] The above application embodiment describes a method for identifying alarm audio based on a single radio module. Based on the embodiment of the present application, a recognition method including multiple radio modules is also provided in detail, wherein the alarm monitoring device also includes a second radio module, and the second radio module includes a second radio device, a third operational amplifier circuit and a fourth operational amplifier circuit; wherein the second radio device in the second radio 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 radio 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 A flowchart of another method for identifying an alarm audio according to an embodiment of the present application can be based on Figure 1 The application scenario 100 shown is implemented, including steps S701-S707: S701: When the sleep time of the alarm monitoring device is greater than or equal to the preset sleep time, control the first power supply to supply power to the first radio module, so that the first radio device receives the first audio of the first time period and the second audio of the second time period, and the second time period is later than the first time period.
[0080] S702: Acquire a first electrical signal, where the first electrical signal is generated by a first operational amplifier circuit according to a first audio signal.
[0081] S703: If the maximum value of the first electrical signal is higher than the first preset threshold, a second electrical signal is obtained, where the second electrical signal is generated by the second operational amplifier circuit according to the second audio.
[0082] For 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 repeated here.
[0083] S704: Acquire a third electrical signal, where the third electrical signal is generated by a third operational amplifier circuit according to a third audio signal.
[0084] Specifically, in an embodiment of the present application, the alarm monitoring device also includes a second sound receiving module. The configuration of the second sound receiving module here is the same as that of the first sound receiving module. Both include a sound receiving device for receiving sound in the second area and generating corresponding third audio and fourth audio, and two operational amplifier circuits with different amplification factors. The difference is that the first sound receiving module is used to monitor the first area, and 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 the preset distance. Therefore, the second sound receiving module in the second area can receive the alarm audio played by the security equipment in the first area, but cannot receive other noises with lower volume in the first area.
[0085] In addition, the maximum value of the electrical signal (ie, the third electrical signal) generated by the third audio of the second sound receiving module in the second area according to the alarm audio (ie, the third audio) played by the security equipment in the first area will not be higher than the first preset threshold.
[0086] Furthermore, if there are multiple areas where sound receiving modules are deployed, and the distances between the multiple areas where sound receiving modules are deployed and the first area are all less than the preset distance, the second sound receiving module here specifically refers to the sound receiving module corresponding to any one of the multiple areas whose distances from the first area are less than the preset distance.
[0087] 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, obtain a fourth electrical signal of the second sound receiving module, where the fourth electrical signal is generated by a fourth operational amplifier circuit according to a fourth audio.
[0088] Specifically, when 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 is triggered, but there is no possibility that the security device in the second area is triggered.
[0089] Since the distance between the first area and the second area is less than the preset distance, the second electrical signal can be corrected by the electrical signal generated according to the audio of the second area, provided that the second area can receive the alarm audio played in the first area and there is no other noise in the second area.
[0090] S706: Correct the second electrical signal according to the fourth electrical signal.
[0091] Specifically, since the second area where the fourth electrical signal is located is at a certain distance from the first area, and the alarm audio that needs to be identified in the present method is a high-volume audio, the second audio receiving device in the second area can receive the alarm audio played by the security equipment in the first area, but cannot receive the smaller 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 smaller noise generated simultaneously in the first area on the second electrical signal.
[0092] 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 based on the fourth electrical signal after the short-time Fourier transform; and subtracting the average noise power spectrum from the second electrical signal after the short-time Fourier transform to obtain a corrected second electrical signal.
[0093] In a possible embodiment, correcting the second electrical signal according to the fourth electrical signal includes: correcting the second electrical signal according to the fourth electrical signal specifically includes: determining a signal in the second electrical signal that is higher than a third preset threshold as a first valid signal, and determining a signal in the fourth electrical signal that is higher than a fourth preset threshold as a second valid signal; obtaining the signal generation times of the first valid signal and the second valid signal; if the second valid signal does not exist at the signal generation time corresponding to the first valid signal, deleting the first valid signal from the second electrical signal.
[0094] 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; and 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. Specifically, the fifth electrical signal and the sixth electrical signal obtained are respectively generated by the first operational amplifier circuit and the third operational amplifier circuit with the first magnification in the first area and the second area of the second time period. In the embodiment of the present application, it is necessary to determine the calculation weight of the second electrical signal and the calculation weight of the fourth electrical signal according to the volume of the audio (including the alarm audio and the noise) in the first area and the second area, so the unbiased fifth electrical signal and the sixth electrical signal generated by the first operational amplifier circuit and the third operational amplifier circuit with lower magnification are required for volume comparison.
[0095] The calculation weights of the second electric signal and the fourth electric signal are determined according to the maximum value of the fifth electric signal and the maximum value of the sixth electric signal; wherein, the calculation weight of the second electric signal is positively correlated with the maximum value of the fifth electric signal, and the calculation weight of the fourth electric signal is positively correlated with the maximum value of the sixth electric signal, that is, the greater the maximum value of the fifth electric signal, the greater the calculation weight of the second electric signal, and the greater the maximum value of the sixth electric signal, the greater the calculation weight of the fourth electric signal.
[0096] After obtaining the calculation weight of the second electrical signal and the calculation weight of the fourth electrical signal, a weighted average calculation is performed on the values of the second electrical signal and the fourth electrical signal corresponding to each moment in the second time period according to the calculation weight of the second electrical signal and the calculation weight of the fourth electrical signal to obtain the value of the corrected second electrical signal at each moment.
[0097] It can be seen that in the embodiment of the present application, the calculation weight of the second electrical signal and the calculation weight of the fourth electrical signal can be calculated based on 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 weight of the second electrical signal and the calculation weight of the fourth electrical signal. In this process, the influence of the audio volume in the first area and the second area is taken into account, thereby further improving the accuracy of the subsequent judgment of the audio type based on the second electrical signal.
[0098] In a possible embodiment, signal values of the fifth electrical signal and the sixth electrical signal at multiple target moments are obtained, 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 in which the signal value of the fifth electrical signal is smaller than the signal value of the corresponding sixth electrical signal, the audio type of the second audio is determined as non-alarm audio.
[0099] Specifically, the fifth electrical signal and the sixth electrical signal obtained in the above application embodiment 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 a non-mobile sound source and a mobile sound source.
[0100] Since security equipment is configured in fixed areas (such as the first area, the second area, etc.), if the source type of the second audio is a mobile sound source during the second time period, it proves that the source of the second audio has moved. This may be because the source of the second audio is a similar alarm audio generated by a special vehicle (such as a fire truck, ambulance, etc.), and the special vehicle passed through the first area during the first time period, resulting in the maximum value of the first electrical signal in the first area during the first time period being higher than the preset threshold. Therefore, after determining that the 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 equipment in the first area, and therefore directly determines the audio type of the second audio as non-alarm audio.
[0101] In the embodiment of the present application, only the first electrical signal is greater than the first preset threshold value in the first time period, that is to say, in the first time period, only the first area has the suspected alarm audio source. If in the second time period after the first time period, it can be determined whether the suspected alarm audio source in the first area in the first time period has moved, it can also be determined whether the audio emitted by the suspected alarm audio source is the alarm audio.
[0102] Here, the audio source type of the second audio is determined based on the fifth electrical signal and the sixth electrical signal.
[0103] First, signal values of the fifth electrical signal and the sixth electrical signal at multiple target moments are acquired, where the target moment is a moment in the second time period.
[0104] If the value of the fifth electrical signal is always greater than the value of the sixth electrical signal at each target moment in the second time period, it can be determined that the source of the suspected alarm audio that appeared in the first area in the first time period is always located in the first area without displacement. In this case, the source type of the second audio is a non-moving source. Fig. 8A , Fig. 8A A schematic diagram of a non-mobile sound source provided in an embodiment of the present application, such as Fig. 8A The sound source of the second audio is a sound device of the security equipment located in the first area. Therefore, the sound source type of the second audio is a non-mobile sound source.
[0105] If the signal values of the fifth electrical signals at a preset number of adjacent target moments among the multiple target moments are smaller than the signal values of the corresponding sixth electrical signals, it can be determined that the source of the suspected alarm audio that appeared in the first time period and the first area has moved and moved to the second area. In this case, the source type of the second audio is a moving source. See Figure 8B , Figure 8B A schematic diagram of a mobile sound source provided in an embodiment of the present application, such as Figure 8B The 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 mobile sound source.
[0106] Further, if the sound source type of the second audio is a non-mobile sound source, the audio type of the second audio is determined according to the second electrical signal and subsequent steps are performed.
[0107] It can be seen that in the embodiment of the present application, the fifth electrical signal and the sixth electrical signal of the second time period are used to determine whether the sound source of the second audio has moved within the second time period. On the premise that movement has occurred, the audio type corresponding to the second audio is directly determined to be alarm audio, and there is no need to perform analysis based on the signal characteristics of the second electrical signal corresponding to the second audio, thereby improving the processing efficiency of the alarm monitoring device.
[0108] S707: Determine the audio type of the second audio according to the second electrical signal, where the audio type includes alarm audio or non-alarm audio.
[0109] 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 noise with lower volume in the first area on the second electrical signal can be removed, thereby improving the accuracy of determining the audio type of the subsequent second audio.
[0110] In a possible embodiment, if the maximum value of the third electrical signal is higher than the first preset threshold value, the method also 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 duration of the alarm audio of multiple preset electrical signals, and the multiple preset electrical signals respectively correspond to an alarm audio; if the duration of the second audio is greater than the duration of the alarm audio of any one of the multiple preset electrical signals, then the audio type of the second audio is determined as alarm audio, otherwise the audio type of the second audio is determined as non-alarm audio; if the duration of the fourth audio is greater than the duration of the alarm audio of any one of the multiple preset electrical signals, then the audio type of the fourth audio is determined as alarm audio, otherwise the audio type of the second audio is determined as non-alarm audio.
[0111] Specifically, in the embodiment of the present application, since the maximum value of the electrical signal generated by the first-multiplier operational amplifier circuit in at least two areas (the first area and the second area) is higher than the first preset threshold at the same time, it means that at this time, there is a possibility that the security equipment in both the first area and the second area is triggered and is playing the alarm audio. Therefore, in this case, it is necessary to determine the audio type of the second audio and the fourth audio.
[0112] The duration of the second audio is calculated according to the second electrical signal, and the duration of the fourth audio is calculated according to the fourth electrical signal. Specifically, the duration of the fourth audio 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 Fig. 9 , Fig. 9 A schematic diagram of calculating the duration of an audio signal provided in an embodiment of the present application shows that Fig. 9In the electrical signal shown, the generation time of the first valid signal is t1, and the generation time of the last valid signal is t2, so the duration of the audio of the electrical signal is t2-t1. If the duration of the alarm audio of any preset electrical signal among the multiple preset electrical signals is not greater than t2-t1, the audio type of the audio corresponding to the electrical signal is directly determined as the alarm audio.
[0113] 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 in the second time period is greater than the duration of any preset alarm audio, the audio type of the corresponding area is considered to be alarm audio.
[0114] It can be seen that in the embodiment of the present application, when there is a possibility that security equipment is triggered and playing alarm audio in multiple areas, the audio type of the corresponding area is determined by comparing the audio duration of each area with the preset alarm audio duration, and there is no need to perform complex steps such as feature extraction and comparison of the corresponding electrical signal, thereby improving the efficiency of audio type determination. In the case where there is a possibility that security equipment is triggered and playing alarm audio in multiple areas, the personal and property safety of users is guaranteed.
[0115] By implementing the method in the above application embodiment, it can be seen that the first alarm monitoring device replaces the security device for remote alarm, which saves the deployment cost of upgrading the remote notification function of the security device. The security device automatically switches between working and sleeping states, which 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. The second electrical signal is corrected by the electrical signal of other areas, which improves the accuracy of the judgment.
[0116] Based on the description of the above configuration method embodiment, the present application also provides an alarm audio recognition device 1000, which can be a device running on Figure 1 A computer program (including program code) in the microcontroller 1013 shown and used to execute Figure 3 , Figure 5 and Figure 7 See the method shown in Fig.10 , Fig.10 The present invention provides a schematic diagram of a structure of an alarm audio recognition device according to an embodiment of the present invention. The alarm audio recognition device 1000 includes: The control unit 1001 is used 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 the preset sleep time, 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; An acquisition unit 1002 is 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; The determining unit 1003 is configured 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.
[0117] In a possible embodiment, in terms of determining the audio type of the second audio based on the second electrical signal, the determination unit 1003 is also specifically used to: obtain signal characteristics of the second electrical signal, the signal characteristics including at least one of the number of pulses, pulse width or pulse signal period; calculate the similarity between the second electrical signal and multiple preset electrical signals based on the signal characteristics of the second electrical signal, and the multiple preset electrical signals respectively correspond to an alarm audio; if the similarity between the second electrical signal and the multiple preset electrical signals is not greater than a second preset threshold, determine 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, determine that the audio type is alarm audio.
[0118] In a possible embodiment, the alarm monitoring device also includes a communication module and a second power supply. If the audio type of the second audio is alarm audio, the control unit 1001 is also specifically used to: control the second power supply to supply power to the communication module; control the communication module to send alarm information to the user terminal, and the alarm information is used to indicate that there is alarm audio in the first area within the second time period.
[0119] In a possible embodiment, if the first electrical signal is not higher than the first preset threshold, the control unit 1001 is further specifically used to: reset the sleep time of the alarm monitoring device to zero, and control the first power supply to stop supplying power to the first radio module.
[0120] In a possible embodiment, the alarm monitoring device also includes a second radio module, the second radio module includes a second radio device, a third operational amplifier circuit and a fourth operational amplifier circuit; wherein, the second radio device in the second radio 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 radio 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 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 acquisition unit 1002 is also specifically used to: acquire the third electrical signal, 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 acquire the fourth electrical signal of the second radio module, 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.
[0121] In a possible embodiment, in terms of correcting the second electrical signal according to the fourth electrical signal, the acquisition unit 1002 is also specifically used to: obtain 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; 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; 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.
[0122] In a possible embodiment, the acquisition unit 1002 is also specifically used to: obtain 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 the signal value of the fifth electrical signal at a preset number of adjacent target moments among the multiple target moments is smaller than the signal value of the corresponding sixth electrical signal, the audio type of the second audio is determined as non-alarm audio.
[0123] Based on the description of the above method embodiment and device embodiment, please refer to Fig.11 , Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 The electronic device 1100 shown (the electronic device 1100 may be a computer device, Figure 1The microcontroller 1013 shown includes a memory 1101 , a processor 1102 , a communication interface 1103 and a bus 1104 . The memory 1101 , the processor 1102 , and the communication interface 1103 are connected to each other through the bus 1104 .
[0124] The memory 1101 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM).
[0125] The memory 1101 may 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 alarm audio recognition method of the embodiment of the present application.
[0126] The processor 1102 can adopt 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 to execute relevant programs to implement the functions that need to be performed by the units in the electronic device 1100 of the embodiment of the present application, or to execute the alarm audio recognition method of the method embodiment of the present application.
[0127] The processor 1102 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the alarm audio recognition method of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 1102. The above-mentioned processor 1102 may 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microcontroller or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The 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 performed by the units included in the electronic device 1100 of the embodiment of the present application, or executes the alarm audio recognition method of the method embodiment of the present application.
[0128] The communication interface 1103 uses a transceiver such as, but not limited to, a transceiver to implement communication between the electronic device 1100 and other devices or a communication network. For example, data can be acquired through the communication interface 1103 .
[0129] The bus 1104 may include a path for transmitting information between various components of the electronic device 1100 (eg, the memory 1101 , the processor 1102 , and the communication interface 1103 ).
[0130] It should be noted that although Fig.11 The electronic device 1100 shown only shows a memory 1101, a processor 1102, and a communication interface 1103. However, 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 include only the devices necessary for implementing the embodiments of the present application, and does not necessarily include Fig.11 All devices shown in .
[0131] An embodiment of the present application further 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 alarm audio recognition method.
[0132] Optionally, as an implementation manner, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the alarm audio recognition method.
[0133] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.
[0134] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.
[0135] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic 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 logic 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. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or includes any media that facilitates the transfer of computer programs from one place to another (e.g., based on a communication protocol). In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this application. A computer program product may include a computer-readable medium.
[0136] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, 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 can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a 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 media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are actually directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0137] Instructions may 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 logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.
[0138] The techniques of the present application may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present application to emphasize the functional aspects of the device for performing the disclosed techniques, but they do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in an encoded hardware unit in conjunction with appropriate software and / or firmware, or provided by interoperating hardware units (including one or more processors as described above).
[0139] Those skilled in the art can clearly understand that, for the convenience and brevity 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 aforementioned method embodiments, and will not be repeated here.
[0140] It should be understood that in the description of the present 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; wherein A and B can be singular or plural. Also, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be necessarily different. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0141] In the several embodiments provided in the present 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 may 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 mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0142] 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 may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0143] 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 process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.
[0144] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
[0145] The device embodiments described above are merely illustrative, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0146] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for identifying an alarm audio, characterized in that: A microcontroller applied to an alarm monitoring device, wherein the alarm monitoring device further comprises a first sound receiving module and a first power supply, wherein the first sound receiving module comprises 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, wherein the first sound receiving module is used to monitor a first area, and the method comprises: 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; 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 includes at least one of a pulse quantity, a pulse width, or a pulse signal period; Calculating similarities between the second electrical signal and a plurality of preset electrical signals according to signal characteristics 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 any one of claims 1 to 4, characterized in that: 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 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, the amplification factor of the fourth operational amplifier circuit is the second factor, and before determining the audio type of the second audio according to the second electrical signal, the method further includes: Acquire 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, obtaining a fourth electrical signal of the second sound receiving module, where the fourth electrical signal is generated by the fourth operational amplifier circuit according to the fourth audio; The second electrical signal is modified according to the fourth electrical signal.
6. The method according to claim 5, 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.
7. The method according to claim 6, 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.
8. 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 the first area, and 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; 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.
9. 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 7.
10. 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 7.
Citation Information
Patent Citations
Position identifying device for guiding people to scatter based on audio technology and control method thereof
CN104282099A
Intelligent access management system in dust-free environment
CN112669508A
Smoke alarm sound identification method and system
CN113593610A
Sound detection circuit, circuit board and medical breathing machine
CN220542255U
Sound gathering device and program
JP2015023508A