Fault detection method and device, medium and electronic equipment
By setting preset audio signals in the voice broadcast system and performing feature comparison, the problem of lack of fault detection mechanism in the voice broadcast system in the rail transit system is solved, and the system is timely fault detection and fault repair is realized, and the system's reliability and safety are improved.
Patent Information
- Application Number
- CN202510144282.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-05-13
AI Technical Summary
In the rail transit system, the voice broadcasting system lacks a fault detection mechanism, which causes the system to fail to detect faults in time, affecting the broadcast of alarm information, thereby reducing the reliability and safety of the system.
By setting periodic detection guide audio or service audio to be broadcast as preset audio signals, the voice broadcast system is controlled to broadcast the preset audio signals, collect the actual audio signals, and perform feature comparisons to determine the fault diagnosis results of the voice broadcast system.
It realizes timely fault detection of the voice broadcast system, ensures that the system can be discovered and repaired in a timely manner when there is a fault, and improves the reliability of the voice broadcast system and the safety of the rail transit system.
Smart Images

Figure CN119993203A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of rail transit safety technology, and specifically to a fault detection method, device, medium and electronic equipment. Background Art
[0002] A voice broadcast system is set up in the rail transit system, which is used to broadcast alarm information. Alarm information is safety-related information used to warn relevant technicians so that relevant technicians can respond in time.
[0003] Ensure the availability and reliability of the voice broadcast system. When alarm information is generated in the rail transit system, the voice broadcast system can broadcast the alarm information in a timely and accurate manner, which is of great significance to improving the safety and reliability of the rail transit system. Summary of the invention
[0004] The present application provides a fault detection method, device, medium and electronic equipment, which can timely discover faults in a voice broadcast system, thereby improving the reliability of the voice broadcast system.
[0005] According to a first aspect of the present application, a fault detection method is provided, the method comprising:
[0006] In response to controlling the voice broadcast system to be detected to broadcast a preset audio signal, controlling the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guide audio or service audio to be broadcast;
[0007] Performing feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result;
[0008] Based on the feature comparison result, the fault diagnosis result of the voice broadcast system is determined.
[0009] According to a second aspect of the present application, a fault detection device is provided, the device comprising:
[0010] An audio collection module, used for controlling the voice broadcast system to be detected to broadcast a preset audio signal, and controlling the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guidance audio or service audio to be broadcast;
[0011] A feature comparison module, used to perform feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result;
[0012] The fault diagnosis module is used to determine the fault diagnosis result of the voice broadcast system based on the feature comparison result.
[0013] According to a third aspect of the present invention, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the fault detection method as described in the embodiment of the present application.
[0014] According to the fourth aspect of the present invention, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the fault detection method as described in the embodiment of the present application when executing the computer program.
[0015] According to a fifth aspect of the present application, an embodiment of the present application provides a computer program product, including a computer program, which implements the fault detection method as described in the embodiment of the present application when executed by a processor.
[0016] The technical solution of the present application sets the periodic detection guide audio or the audio of the business to be broadcast as a preset audio signal. In response to controlling the voice broadcast system to be detected to broadcast the preset audio signal, the sound collection device is controlled to collect the actual audio signal emitted by the voice broadcast system; the actual audio signal and the preset audio signal are feature-compared to obtain the feature comparison result. Based on the feature comparison result, the fault diagnosis result of the voice broadcast system is determined. The voice broadcast system can also be fault-detected in the absence of the audio of the business to be broadcast, and the situation of the voice broadcast system failure can be discovered in time, ensuring that once the audio of the business to be broadcast appears, the voice broadcast system can broadcast it in time and accurately, which is beneficial to improve the reliability of the voice broadcast system. Applying the technical solution provided by the present application to the rail transit system is beneficial to improving the safety and reliability of the rail transit system.
[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 any creative work.
[0019] Figure 1A is a schematic diagram of a fault detection system provided according to Embodiment 1;
[0020] Figure 1B is a flow chart of a fault detection method provided according to the first embodiment;
[0021] Figure 2 is a flow chart of a fault detection method provided according to Embodiment 2;
[0022] Figure 3 is a structural schematic diagram of a fault detection device provided in Embodiment 3 of the present application;
[0023] Figure 4 It is a structural schematic diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0024] 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 should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", "target" and "candidate" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. 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 comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] Embodiment 1
[0027] At present, most of the voice broadcast systems in rail transit systems are built based on sound playback circuits, which include system audio output, power amplifier module and speakers. The system audio output is used to output analog data, and the power amplifier module amplifies the received analog data and then drives the speaker to make a sound. In these voice broadcast systems, there is no fault detection and processing link, and there is no fault tolerance mechanism. Any module failure may cause the voice broadcast system to fail to work properly, affecting the broadcast alarm information.
[0028] The fault detection method proposed in this application is executed by a fault detection system. Figure 1A is a schematic diagram of a fault detection system provided according to the first embodiment. This embodiment can be applied to the case of performing fault detection on a voice broadcast system in a rail transit system. Figure 1A The fault detection system includes a sound collection device and a fault detection module. The fault detection module is respectively connected to the sound collection device and the voice broadcast system.
[0029] The sound collection device is used to collect the audio emitted by the voice broadcast system and send the collected audio to the fault detection module. The fault detection module is configured with a fault detection device, and the fault detection device is deployed with the fault detection logic provided by the embodiment of the present application. The fault detection module performs fault detection on the voice broadcast system based on the fault detection method provided by the embodiment of the present application. The fault detection device is implemented in the form of hardware and / or software, and can be integrated into the electronic device running the fault detection system.
[0030] Figure 1B It is a flow chart of the fault detection method provided according to the first embodiment. This embodiment can be applied to the case of performing fault detection on the voice broadcast system in the rail transit system.
[0031] like Figure 1B As shown, the method includes:
[0032] S110. In response to controlling the voice broadcast system to be detected to broadcast a preset audio signal, control the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guide audio or service audio to be broadcast.
[0033] S120: Perform feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result.
[0034] S130: Determine a fault diagnosis result of the voice broadcast system based on the feature comparison result.
[0035] The preset audio signal refers to an audio signal pre-stored or set in the fault detection system before fault detection is performed.
[0036] The preset audio signal includes a periodic detection guide audio or a to-be-broadcast service audio. The voice broadcast system will only broadcast one of the periodic detection guide audio and the to-be-broadcast service audio in a period of time. Optionally, the to-be-broadcast service audio has a higher broadcast priority than the periodic detection guide audio, that is, if there is a to-be-broadcast service audio in the transportation rail system, the to-be-broadcast service audio will be broadcast first.
[0037] The detection guide audio is used to guide the fault detection system to perform fault detection on the voice broadcast system. The fault guide audio is periodic, and the period of the fault guide audio is determined according to actual business needs and is not limited here. The frequency range of the detection guide audio includes a first frequency and a second frequency; the first frequency and the second frequency are outside the frequency range recognizable by the human ear. Optionally, the first frequency is lower than the frequency recognizable by the human ear, and the second frequency is higher than the frequency recognizable by the human ear. The first frequency belongs to the low frequency range, and the second frequency belongs to the high frequency range.
[0038] This allows the voice broadcast system to be fault-checked over a wide frequency band, which helps to discover and locate possible problems in the voice broadcast system in each frequency band, thereby improving the reliability and stability of the voice broadcast system. Setting the detection guide audio to a frequency outside the frequency range recognizable by the human ear can avoid interference to the user during the fault detection process, which helps to improve the user experience.
[0039] The business audio to be broadcast is the business audio that needs to be broadcast through the voice broadcast system. Optionally, the business audio to be broadcast is an alarm message. In an optional embodiment, the voice broadcast system is used to broadcast the alarm message in the rail transit system. Among them, the alarm message is used to give a sound warning to the relevant technical personnel of the rail transit system so that the relevant technical personnel can respond in time. Many operations of the rail transit system are safety-related. If an erroneous operation occurs, whether it is a human erroneous operation or an erroneous operation caused by an erroneous prompt or an untimely prompt, it may cause safety problems. Fault detection of the voice broadcast system in the rail transit system can effectively improve the safety of the rail transit system.
[0040] The preset audio signal usually has specific frequency, amplitude, waveform and other characteristics, and is used as a reference standard for comparison with the actual audio signal. In the fault detection of the voice broadcast system, the preset audio signal is usually the audio performance that should be produced when the voice broadcast system broadcasts correctly. The actual audio signal refers to the audio signal emitted by the voice broadcast system during the actual broadcast process. The actual audio signal may be affected by various factors such as system performance, environmental factors, equipment failure, etc., which may differ from the preset audio signal.
[0041] The fault detection system receives the actual audio signal collected by the voice collection device, extracts features of the actual audio signal and the preset audio signal according to the type of the preset audio signal, performs feature comparison on the actual audio signal and the preset audio signal, and obtains a feature comparison result.
[0042] The feature comparison result is used to quantify the feature difference between the preset audio signal and the actual audio signal. Based on the feature comparison result, it is possible to detect whether the voice broadcast system has a fault.
[0043] The technical solution of the present application sets the periodic detection guide audio or the audio of the business to be broadcast as a preset audio signal. In response to controlling the voice broadcast system to be detected to broadcast the preset audio signal, the sound collection device is controlled to collect the actual audio signal emitted by the voice broadcast system; the actual audio signal and the preset audio signal are feature-compared to obtain the feature comparison result. Based on the feature comparison result, the fault diagnosis result of the voice broadcast system is determined. The voice broadcast system can also be fault-detected in the absence of the audio of the business to be broadcast, and the situation of the voice broadcast system failure can be discovered in time, ensuring that once the audio of the business to be broadcast appears, the voice broadcast system can broadcast it in time and accurately, and can detect the situation that the voice broadcast system cannot sound. It is conducive to improving the reliability of the voice broadcast system. Applying the technical solution provided by the present application to the rail transit system is conducive to improving the safety and reliability of the rail transit system.
[0044] In an optional embodiment, the method also includes: if the audio of the business to be broadcast exists, using the audio of the business to be broadcast as the preset audio signal to control the voice broadcast system to broadcast; if the audio of the business to be broadcast does not exist, using the detection guide audio as the preset audio signal to control the voice broadcast system to broadcast periodically.
[0045] The audio of the business to be played has a higher priority than the detection guidance audio. The detection guidance audio is equivalent to the supplement of the audio of the business to be played. If there is audio of the business to be played, the audio of the business to be played is used as the preset audio signal to control the voice broadcast system to play. If there is no audio of the business to be played, the detection guidance audio is used as the preset audio signal to control the voice broadcast system to play periodically.
[0046] The above scheme expands the fault detection scenario to the situation where there is no business audio to be played, ensuring that the voice broadcast system can perform effective fault detection under any circumstances. The above technical scheme not only ensures the normal broadcast of business audio, but also realizes effective monitoring of the voice broadcast system, thereby improving the reliability and stability of the system.
[0047] In an optional embodiment, the method also includes: if the preset audio signal is the business audio to be broadcast, selecting a target background noise from at least two candidate background noises according to the frequency range of the business audio to be broadcast; superimposing the target background noise on the business audio to be broadcast to obtain an audio superposition result; using the audio superposition result to update the preset audio signal, and controlling the voice broadcast system to be detected to broadcast the updated preset audio signal.
[0048] There are at least two candidate background noises, both of which have unique audio features, so that they can be accurately detected during readback and accurately distinguished in subsequent detections. The service audio to be broadcast has a specific frequency range, and the candidate background noise outside the frequency range of the service audio to be broadcast is selected as the target background noise. The target background noise will not interfere with or affect the original audio content of the service audio to be broadcast.
[0049] The target background noise is superimposed on the audio of the service to be broadcasted to obtain an audio superposition result. Optionally, the audio superposition result is used as a new preset audio signal, and the new preset audio signal is sent to the voice broadcast system, and the voice broadcast system is controlled to broadcast the new preset audio signal.
[0050] Optionally, when the preset audio signal is the audio of a service to be broadcast, different background noises are superimposed on the preset audio signal each time.
[0051] Optionally, after the sound collection device collects the actual audio signal corresponding to the new preset audio signal, when performing feature comparison between the actual audio signal and the new preset audio signal, the feature consistency of the background noise in the actual signal and the target background noise is detected to prevent erroneous collection.
[0052] The above technical solution, when the preset audio signal is the audio of the service to be broadcast, adds an additional audio feature, namely the background noise, and provides an additional verification means for the sound recovery, thereby enhancing the robustness of the fault detection system.
[0053] Embodiment 2
[0054] Figure 2 It is a flow chart of the fault detection method provided according to the second embodiment. This embodiment is further optimized on the basis of the above embodiment.
[0055] like Figure 2 As shown, the method includes:
[0056] S210. In response to controlling the voice broadcast system to be detected to broadcast a preset audio signal, control the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guide audio or service audio to be broadcast.
[0057] S220: extract frequency features of the actual audio signal and the preset audio signal respectively, and compare an actual frequency corresponding to the actual audio signal with a preset frequency corresponding to the preset audio signal to obtain a frequency comparison result.
[0058] It is understandable that no matter the preset audio signal is the to-be-broadcast service audio or the periodic detection guidance audio, it has a certain frequency feature. When comparing the features with the actual audio signal, the frequency features of the actual audio signal and the preset audio signal need to be extracted.
[0059] The actual frequency is the frequency characteristic of the actual audio signal, and the preset frequency is the frequency characteristic of the preset audio signal. The actual frequency is compared with the preset frequency to obtain a frequency comparison result. The frequency comparison result is used to quantify the frequency difference between the actual frequency and the preset frequency.
[0060] S230: If the preset audio signal is the detection guide audio, determine the obtained frequency comparison result as the feature comparison result corresponding to the detection guide audio.
[0061] Since the preset audio signal has no actual business meaning, there is no need to consider the text content corresponding to the preset audio signal, and only the frequency feature can be considered. In the case where the preset audio signal is a detection guide audio, the obtained frequency comparison result is determined as the feature comparison result corresponding to the detection guide audio.
[0062] S240: If the preset audio signal is the to-be-broadcast service audio, convert the actual audio signal and the preset audio signal into text respectively.
[0063] The service audio to be played has actual service meaning and corresponds to certain text content. In the case where the preset audio signal is the service audio to be played, the actual audio signal and the preset audio signal are converted into text.
[0064] S250: Compare the first text corresponding to the actual audio signal with the second text corresponding to the preset audio signal to obtain a content comparison result.
[0065] The first text is obtained by converting the actual audio signal into text, and the second text is obtained by converting the preset audio signal into text.
[0066] Optionally, the first text and the second text are compared for consistency from a content dimension to obtain a content comparison result. The content comparison result is used to quantify the content difference between the first text and the second text.
[0067] S260: Determine the feature comparison result corresponding to the to-be-played service audio based on the content comparison result and the frequency comparison result.
[0068] The content comparison results and the frequency comparison results quantify the differences between the actual audio signal and the preset audio signal from the content dimension and the frequency dimension respectively. The feature comparison results can be obtained by combining the content comparison results and the frequency comparison results. Optionally, both the content comparison results and the frequency comparison results include consistent comparisons and inconsistent comparisons. If any one of the content comparison results and the frequency comparison results is inconsistent, the feature comparison result corresponding to the audio of the to-be-broadcast service is determined to be inconsistent. Only when the content comparison results and the frequency comparison results are both consistent, is the feature comparison result determined to be consistent. Content comparison inconsistency may be due to the voice broadcast system broadcasting incorrect text content.
[0069] S270: Determine a fault diagnosis result of the voice broadcast system based on the feature comparison result.
[0070] Optionally, if the feature comparison result is inconsistent, the fault diagnosis result of the voice broadcast system can be determined as a fault; if the feature comparison result is consistent, the fault diagnosis result of the semantic broadcast system can be determined as normal function.
[0071] The technical solution of the present application determines the feature comparison dimension of the preset audio signal according to the type to which the preset audio signal belongs. For the business audio to be broadcast with actual business meaning, the preset audio signal and the actual audio signal are feature compared from the content dimension and the frequency dimension. The content consistency and frequency consistency of the preset audio signal and the actual audio signal are comprehensively considered to perform fault diagnosis on the voice broadcast system, thereby ensuring the accuracy of fault diagnosis. For the detection guide audio without actual business meaning, the preset audio signal and the actual audio signal are feature compared only from the frequency dimension, thereby improving the resource utilization rate in the fault detection process. The present application proposes practical feature comparison schemes for the situations where the preset audio signal is the business audio to be broadcast and the detection guide audio, respectively, thereby ensuring the accuracy of fault detection, improving the resource utilization rate in the fault detection process, and being conducive to improving the reliability of the voice broadcast system.
[0072] In an optional embodiment, the frequency characteristics of the actual audio signal and the preset audio signal are extracted respectively, and the actual frequency corresponding to the actual audio signal is compared with the preset frequency corresponding to the preset audio signal to obtain a frequency comparison result, including: extracting background noise from the actual audio signal to obtain actual background noise, and determining the target background noise to be added to the preset audio signal; extracting the frequency characteristics of the actual background noise and the target background noise respectively, and comparing the noise frequency corresponding to the actual background noise with the noise frequency corresponding to the target background noise; and determining the frequency comparison result based on the obtained noise comparison result.
[0073] Optionally, when the preset audio signal is the audio of the service to be played, background noise is added to the audio of the service to be played, wherein the actual background noise is the background noise extracted from the actual audio signal, and the target background noise is the background noise added to the preset audio signal.
[0074] The frequency features of the actual background noise and the target background noise are extracted respectively to obtain the noise frequency corresponding to the actual background noise and the noise frequency corresponding to the target background noise. The noise frequencies corresponding to the actual background noise and the target background noise are feature-compared to obtain a noise comparison result. The noise comparison result includes a consistent comparison and an inconsistent comparison.
[0075] The noise comparison result can verify whether the actual audio signal read back is accurate. If the noise comparison result is consistent, it means that the actual audio signal read back is accurate; otherwise, it means that the actual audio signal read back may be inaccurate.
[0076] Optionally, when the preset audio signal is the audio of the business to be broadcast, a feature comparison is first performed on the background noise extracted from the actual audio signal and the background noise added to the preset audio to verify whether the actual audio signal read back is accurate. When it is determined that the actual audio signal read back is accurate, a feature comparison is then performed on the actual audio signal and the preset audio signal from the content dimension and the frequency dimension.
[0077] The above technical scheme verifies whether the actual audio signal read back is accurate by performing feature comparison between the background noise extracted from the actual audio signal and the background noise added to the preset audio signal, thereby ensuring the reliability of the readback and providing technical support for the subsequent use of the actual audio signal read back for fault diagnosis of the voice broadcast system.
[0078] Embodiment 3
[0079] Figure 3 It is a structural diagram of the fault detection device provided in Example 3 of the present application. This embodiment can be applied to the situation of fault detection of the voice broadcast system in the rail transit system. The device can be implemented by software and / or hardware and can be integrated into electronic devices such as smart terminals.
[0080] like Figure 3 As shown, the fault detection device 300 may include:
[0081] The audio collection module 310 is used to control the sound collection device to collect the actual audio signal emitted by the voice broadcast system in response to controlling the voice broadcast system to be detected to broadcast the preset audio signal; wherein the preset audio signal includes periodic detection guidance audio or service audio to be broadcast;
[0082] A feature comparison module 320 is used to perform feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result;
[0083] The fault diagnosis module 330 is used to determine the fault diagnosis result of the voice broadcast system based on the feature comparison result.
[0084] The technical solution of the present application sets the periodic detection guide audio or the audio of the business to be broadcast as a preset audio signal. In response to controlling the voice broadcast system to be detected to broadcast the preset audio signal, the sound collection device is controlled to collect the actual audio signal emitted by the voice broadcast system; the actual audio signal and the preset audio signal are feature-compared to obtain the feature comparison result. Based on the feature comparison result, the fault diagnosis result of the voice broadcast system is determined. The voice broadcast system can also be fault-detected in the absence of the audio of the business to be broadcast, and the situation of the voice broadcast system failure can be discovered in time, ensuring that once the audio of the business to be broadcast appears, the voice broadcast system can broadcast it in time and accurately, which is beneficial to improve the reliability of the voice broadcast system. Applying the technical solution provided by the present application to the rail transit system is beneficial to improving the safety and reliability of the rail transit system.
[0085] Optionally, the device also includes: a first broadcast module, which is used to use the audio of the business to be broadcast as the preset audio signal to control the voice broadcast system to broadcast if the audio of the business to be broadcast exists; and a second broadcast module, which is used to use the detection guide audio as the preset audio signal to control the voice broadcast system to broadcast periodically if the audio of the business to be broadcast does not exist.
[0086] Optionally, the device also includes: a noise selection module, which is used to select a target background noise from at least two candidate background noises according to the frequency range of the business audio to be broadcast if the preset audio signal is the business audio to be broadcast; a noise superposition module, which is used to superimpose the target background noise on the business audio to be broadcast to obtain an audio superposition result; and an audio update module, which is used to update the preset audio signal using the audio superposition result, and control the voice broadcast system to be detected to broadcast the updated preset audio signal.
[0087] Optionally, the feature comparison module 320 includes: a frequency comparison submodule, which is used to extract the frequency characteristics of the actual audio signal and the preset audio signal respectively, and compare the actual frequency corresponding to the actual audio signal with the preset frequency corresponding to the preset audio signal to obtain a frequency comparison result; a first result determination submodule, which is used to determine the obtained frequency comparison result as the feature comparison result corresponding to the detection guide audio if the preset audio signal is the detection guide audio; a text conversion submodule, which is used to perform text conversion on the actual audio signal and the preset audio signal respectively if the preset audio signal is the to-be-broadcast business audio; a content comparison submodule, which is used to compare the first text corresponding to the actual audio signal with the second text corresponding to the preset audio signal to obtain a content comparison result; and a second result determination submodule, which is used to determine the feature comparison result corresponding to the to-be-broadcast business audio based on the content comparison result and the frequency comparison result.
[0088] Optionally, the frequency comparison submodule includes: a noise determination unit, used to extract background noise from the actual audio signal to obtain actual background noise, and determine the target background noise to be added to the preset audio signal; a frequency comparison unit, used to extract frequency characteristics of the actual background noise and the target background noise, respectively, and compare the noise frequency corresponding to the actual background noise with the noise frequency corresponding to the target background noise; and a result determination unit, used to determine the frequency comparison result based on the obtained noise comparison result.
[0089] Optionally, the frequency range of the detection guidance audio includes a first frequency and a second frequency; the first frequency and the second frequency are outside the frequency range recognizable by the human ear; and the voice broadcast system is used to broadcast alarm information in the rail transit system.
[0090] The fault detection device provided in the embodiment of the invention can execute the fault detection method provided in any embodiment of the present application, and has the corresponding performance modules and beneficial effects for executing the fault detection method.
[0091] Embodiment 4
[0092] According to an embodiment of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.
[0093] Figure 4The schematic diagram of the structure of the electronic device 410 of the embodiment that can be used to implement is shown. The electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.
[0094] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0095] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 411 performs the various methods and processes described above, such as a fault detection method.
[0096] In some embodiments, the fault detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the fault detection method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the fault detection method in any other appropriate manner (e.g., by means of firmware).
[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable fault detection device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0099] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a fault detection server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0103] The present application also discloses a computer program product, which includes a computer program, and when the computer program is executed by a processor, implements the fault detection method provided in any embodiment of the present application. The program product and the fault detection method disclosed in each embodiment of the present application belong to the same inventive concept, so they are not described here.
[0104] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0105] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A fault detection method, characterized in that: The method comprises: In response to controlling the voice broadcast system to be detected to broadcast a preset audio signal, controlling the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guide audio or service audio to be broadcast; Performing feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result; Based on the feature comparison result, a fault diagnosis result of the voice broadcast system is determined.
2. The method according to claim 1, characterized in that The method further comprises: If the to-be-broadcast service audio exists, the to-be-broadcast service audio is used as the preset audio signal to control the voice broadcast system to broadcast; If there is no service audio to be broadcast, the detection guide audio is used as the preset audio signal to control the voice broadcast system to perform periodic broadcasting.
3. The method according to claim 1, characterized in that The method further comprises: If the preset audio signal is the service audio to be broadcast, selecting a target background noise from at least two candidate background noises according to a frequency range of the service audio to be broadcast; Superimposing the target background noise onto the to-be-played service audio to obtain an audio superposition result; The preset audio signal is updated by using the audio superposition result, and the voice broadcast system to be detected is controlled to broadcast the updated preset audio signal.
4. The method according to claim 1 or 3, characterized in that: Performing feature comparison on the actual audio signal and the preset audio signal to obtain a feature comparison result includes: Extracting frequency features of the actual audio signal and the preset audio signal respectively, and comparing an actual frequency corresponding to the actual audio signal with a preset frequency corresponding to the preset audio signal to obtain a frequency comparison result; If the preset audio signal is the detection guide audio, determining the obtained frequency comparison result as the feature comparison result corresponding to the detection guide audio; If the preset audio signal is the to-be-broadcast service audio, converting the actual audio signal and the preset audio signal into text respectively; Comparing the first text corresponding to the actual audio signal with the second text corresponding to the preset audio signal to obtain a content comparison result; Based on the content comparison result and the frequency comparison result, the feature comparison result corresponding to the to-be-played service audio is determined.
5. The method according to claim 4, characterized in that Extracting frequency features of the actual audio signal and the preset audio signal respectively, and comparing an actual frequency corresponding to the actual audio signal with a preset frequency corresponding to the preset audio signal to obtain a frequency comparison result, including: Extracting background noise from the actual audio signal to obtain actual background noise, and determining target background noise to be added to the preset audio signal; Extracting frequency characteristics of the actual background noise and the target background noise respectively, and comparing the noise frequency corresponding to the actual background noise with the noise frequency corresponding to the target background noise; Based on the obtained noise comparison result, the frequency comparison result is determined.
6. The method according to claim 1, characterized in that The frequency range of the detection guidance audio includes a first frequency and a second frequency; the first frequency and the second frequency are outside the frequency range recognizable by the human ear; and the voice broadcast system is used to broadcast alarm information in a rail transit system.
7. A fault detection device, characterized in that: The device comprises: An audio collection module, used for controlling the voice broadcast system to be detected to broadcast a preset audio signal, and controlling the sound collection device to collect the actual audio signal emitted by the voice broadcast system; wherein the preset audio signal includes periodic detection guidance audio or service audio to be broadcast; A feature comparison module, used to perform feature comparison between the actual audio signal and the preset audio signal to obtain a feature comparison result; The fault diagnosis module is used to determine the fault diagnosis result of the voice broadcast system based on the feature comparison result.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the fault detection method according to any one of claims 1 to 6 is implemented.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the fault detection method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the fault detection method according to any one of claims 1 to 6.