Portable fault sound simulation device
By designing a portable fault sound simulation device and using digital processing units to fit and optimize fault sound samples, the accuracy and reliability problems of equipment fault sound detection in the prior art are solved, and efficient and accurate fault detection and training effects are achieved.
Patent Information
- Application Number
- CN202411680400.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-04
AI Technical Summary
The prior art has problems with accuracy and reliability in the detection of equipment fault sounds, and it is difficult to simulate the occurrence of multiple faults at the same time, resulting in low detection efficiency and high cost.
A portable fault sound simulation device is designed, which includes a housing, a control unit, a data processing unit, a sound playback unit, a display unit, a key unit, a storage unit, an audio output interface and a power supply unit. The device fits and optimizes the fault sound samples through a digital processing unit to generate real fault sounds for testing the working state of the sound fault detection device.
It realizes the convenient simulation of various equipment fault sounds, improves the efficiency and accuracy of fault detection, reduces the testing cost, and strengthens the training effect of fault detection personnel.
Smart Images

Figure CN119559969A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fault detection, and in particular to a portable fault sound simulation device for simulating equipment fault sound. Background Art
[0002] In modern industrial production, the normal operation of equipment is crucial to ensuring production efficiency, product quality and safe production. Sound, as an important representation of the operating status of equipment, contains rich fault information. By monitoring and analyzing the sound of equipment operation, potential fault hazards can be effectively discovered and corresponding maintenance measures can be taken.
[0003] Traditional equipment fault sound detection methods mainly rely on manual auscultation and empirical judgment. However, this method has many limitations. On the one hand, the accuracy and reliability of manual auscultation largely depend on the experience and skill level of the detection personnel, which is prone to misjudgment and missed judgment; on the other hand, manual auscultation cannot quantitatively analyze and monitor the sound for a long time, making it difficult to detect some potential and progressive faults. In addition, in order to improve the skill level and response ability of fault detection personnel, they need to be specially trained. However, in actual work, due to the uncertainty and randomness of the occurrence of faults, it is difficult to provide trainees with enough real fault sound samples for learning and training.
[0004] With the development of technology, some equipment fault detection systems based on sound analysis have emerged. These systems usually use acoustic sensors and signal processing technology to collect, analyze and diagnose the sound of equipment operation. In order to ensure that the sound fault detection equipment can accurately identify faults at any time, its working status needs to be tested regularly. Traditional testing methods usually rely on actual faults or simulate fault conditions in the laboratory. These methods have disadvantages such as high cost, low efficiency, and high risk, and it is difficult to simulate the situation where multiple faults occur at the same time. Therefore, the development of a portable fault sound simulation device that can easily simulate the fault sounds of various equipment has important practical significance and application value for improving the efficiency and accuracy of equipment fault detection and strengthening the training effect of fault detection personnel. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a portable fault sound simulation device, which can simulate the fault sounds of various equipment and is used to test the working status of the sound fault detection equipment.
[0006] The present invention discloses a portable fault sound simulation device, comprising a housing, a control unit, a data processing unit, a sound playing unit, a display unit, a key unit, a storage unit, an audio output interface, and a power supply unit; The control unit is located in the shell and is connected to the data processing unit, the key unit and the display unit respectively; the data processing unit is located in the shell and is connected to the storage unit, the control unit, the sound playing unit and the audio output interface; the sound playing unit is located in the shell; the display unit is arranged on the shell and is connected to the control unit for displaying information and parameters; the key unit is arranged on the shell; the storage unit is located in the shell and is used to store various fault sound samples; the audio output interface is arranged on the shell and can be used to connect to an external device to be tested; the power supply unit is arranged in the shell and is connected to the control unit, the data processing unit, the sound playing unit, the display unit and the key unit respectively to provide the required electricity; the control unit operates and controls the data processing unit according to the key information and parameter selection of the key unit; The data processing unit selects appropriate fault sound samples from the storage unit as sound samples to be fitted according to the operation control of the control unit, performs fitting and optimization, obtains optimized audio signals, and outputs them to the sound playing unit or the audio output interface.
[0007] A further improvement of the present invention is that the key unit includes a scanning circuit and a key matrix, the key matrix is located on the surface of the shell, and the scanning circuit is located inside the shell and connected to the control unit for real-time scanning of the key matrix state, determining the pressed key and generating corresponding key information to send to the control unit.
[0008] A further improvement of the present invention is that the parameters include total playback time, output volume, and number of loops; The digital processing unit performs the following process on the sound sample to be fitted and optimized: Step S1: Determine the simulated fault type according to the operation control of the control unit; Step S2: based on the simulated fault type, determining the sound samples to be fitted, and performing preliminary analysis and preprocessing on the sound samples to be fitted; Step S3: synthesizing the sound sample to be fitted after preliminary analysis and preprocessing to obtain an audio signal; Step S4: Optimize the audio signal to obtain an optimized audio signal, and send it to the sound playing unit or the audio output interface.
[0009] A further improvement of the present invention is that the preliminary analysis and preprocessing in step S2 refers to: performing spectrum analysis, amplitude analysis and noise estimation on the sound sample to be fitted; Spectrum analysis refers to: performing fast Fourier transform on the sound sample to be fitted, converting it from the time domain to the frequency domain, and then determining the frequency component, harmonic structure and bandwidth characteristics of the sound sample to be fitted by analyzing the spectrum; amplitude analysis refers to: calculating the amplitude distribution of the sound sample to be fitted to provide a basis for volume adjustment; noise estimation refers to estimating the background noise of the sound sample to be fitted by analyzing the spectrum and time domain characteristics of the sound sample to be fitted or using a noise estimation algorithm, thereby determining the noise components and characteristics in the sound sample to be fitted.
[0010] A further improvement of the present invention is that step S3 comprises the following steps: Step S31: determining the synthesis order of the sound samples to be fitted; Step S32: adjusting the playing time of the sound sample to be fitted based on the total playing time; Step S33: adjusting the volume of the sound sample to be fitted based on the output volume; Step S34: determining a mixing method of the sound sample to be fitted; Step S35: determine whether the sound sample to be fitted needs time synchronization; if necessary, perform time synchronization processing on the sound sample to be fitted, and then proceed to step S36; if not, directly proceed to step S36; Step S36: synthesizing the sound samples to be fitted based on the synthesis order of the sound samples to be fitted, the playing time of the sound samples to be fitted, and the mixing method to obtain an audio signal.
[0011] A further improvement of the present invention is that the process of optimizing the audio signal in step S4 is as follows: Step S41: determining a filter and corresponding filter parameters based on the noise components and characteristics determined by the noise estimation in step S2, and performing noise suppression on the audio signal using an adaptive noise suppression technique; Step S42: Based on the fault characteristics or frequency components of the simulated fault type, determine the enhancement target in the audio signal and select a corresponding signal enhancement algorithm to perform signal enhancement to obtain an optimized audio signal.
[0012] A further improvement of the present invention is that, if the enhancement target in the audio signal is frequency selective enhancement, the selected frequency is enhanced by a bandpass filter or frequency weighting; if the enhancement target in the audio signal is time domain enhancement, the audio signal is enhanced in the time domain by signal amplification or peak enhancement; if the enhancement target in the audio signal is adaptive enhancement, an adaptive enhancement algorithm is used to adaptively adjust the changes of the audio signal.
[0013] A further improvement of the present invention is that there is a fault type simulation adjustment step between step S33 and step S34; Fault type simulation adjustment step: performing specific processing on the sound sample to be fitted based on the simulated fault type; if the simulated fault type is a motor fault, adding a noise component of a specific frequency to the sound sample to be fitted, the noise component being white noise or pink noise.
[0014] A further improvement of the present invention is that the key matrix is integrated with a plurality of touch switches, and the touch switches include a power button, an up button, a down button, a left button, a right button, a confirmation button, a cancel button, and a play button.
[0015] A further improvement of the present invention is that the audio output interface includes a headphone interface, an RCA line interface and a Bluetooth wireless interface.
[0016] Beneficial effects of the present invention: 1. The present invention integrates various units into a housing, making the device relatively light and easy to carry to any industrial site for testing.
[0017] 2. Easy to operate: The display unit and key unit provided in the present invention have the characteristics of intuitive interface and easy to learn and operate.
[0018] 3. Sound authenticity: The digital processing unit of the present invention adopts high-quality digital signal processing technology to generate realistic sound signals that effectively simulate real fault sounds.
[0019] 4. Flexibility of parameter adjustment: Users can flexibly adjust various parameters of the sound through the key unit according to test requirements.
[0020] 5. Compatibility: We provide a variety of audio output interfaces to adapt to different sound fault detection equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a connection block diagram of the present invention.
[0022] Description of Reference Numerals 1. Shell, 2. Display unit, 3. Control unit, 4. Data processing unit, 5. Storage unit, 6. Sound playing unit, 7. Audio output interface, 701. Bluetooth wireless interface, 702. RCA line interface, 703. Headphone interface, 8. Key unit, 801. Key matrix, 802. Scanning circuit. DETAILED DESCRIPTION
[0023] The technical scheme in the embodiment of the present invention is described clearly and completely below in conjunction with the accompanying drawings in the embodiment of the present invention. In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention can also be implemented in other ways different from those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.
[0024] The invention provides a portable fault sound simulation device, which can simulate the fault sounds of various equipment and is used for testing the working state of a sound fault detection device.
[0025] The present invention discloses a portable fault sound simulation device, comprising a housing 1, a control unit 3, a data processing unit 4, a sound playing unit 6, a display unit 2, a key unit 8, a storage unit 5, an audio output interface 7 and a power supply unit. Figure 1 shown.
[0026] The control unit 3 is located in the housing 1, and is respectively connected to the data processing unit 4, the button unit 8, and the display unit; the control unit 3 includes a microcontroller and necessary peripheral circuits, which are used to accurately control the data processing unit 4 according to the parameters set by the user, such as the total playback time, the number of cycles, the output volume, the simulated fault type, the output mode (including wired output, Bluetooth output, speaker output), etc.
[0027] The microcontroller can be the 32-bit microcontroller STM32F103 produced by STMicroelectronics, which has powerful performance, rich data, and is convenient for rapid development. The peripheral circuit includes a crystal oscillator circuit, a reset circuit, and a watchdog circuit.
[0028] The data processing unit 4 is located in the housing 1 and is connected to the storage unit 5, the control unit 3, the sound playing unit 6 and the audio output interface 7. Under the control of the control unit 3, the data processing unit 4 fits and optimizes the audio signal and outputs it to the device under test connected to the sound playing unit 6 or the audio output interface 7. The data processing unit 4 can use a DSP (Digital Signal Processing) chip to process audio data. DSP is designed for high-speed mathematical operations and can quickly process complex audio signals. Its high-precision digital signal processing capability can minimize audio signal distortion and noise. The DSP chip is also highly programmable and can customize algorithms according to different application requirements.
[0029] The sound playing unit 6 is located in the housing 1 and is used to play the audio signal fitted by the data processing unit 6 .
[0030] The display unit 2 is arranged in the housing 1, and is specifically embedded in the housing 1. The display unit 2 is connected to the control unit 3, and is used to display key information and parameters set by the user. The display unit 2 can select OLED, LCD, TFT color LCD screen, serial port screen, etc. In a specific embodiment of the present application, the display unit 2 chooses to use a 2.8-inch serial port touch screen. This type of serial port screen can configure the parameter content to be displayed in advance through the host computer, and the development is relatively easy, and the parameter selection can be performed through the touch screen, which is convenient for user operation.
[0031] The key unit 8 is arranged on the housing 1; specifically, the key unit 8 includes a scanning circuit 802 and a key matrix 801, the key matrix 801 is located on the surface of the housing 1, the scanning circuit 802 is located inside the housing 1, and is connected to the control unit 3, and is used to scan the state of the key matrix 801 in real time, determine the pressed key, and generate corresponding key information and send it to the control unit 3. The key matrix 801 integrates a plurality of touch switches, and the touch switches include a power button, an up button, a down button, a left button, a right button, a confirmation button, a cancel button, and a play button.
[0032] The storage unit 5 is located inside the housing 1 and is used to store various fault sound samples. Various fault sound samples are stored inside the storage unit 5 and provided to the data processing unit 4 for calling. The storage unit 5 includes non-volatile storage devices such as flash memory, EEPROM, SD card, etc. In a specific embodiment of the present application, the storage unit 5 selects a 32G capacity SD card for use with a microSD card slot. The SD card can be used to back up, maintain, and upgrade sound samples very conveniently using a computer. The fault sound samples are stored in a specific audio format, such as WAV, MP3.
[0033] The audio output interface 7 is provided on the housing 1 and can be used to connect to an external device under test; the audio output interface 7 includes an earphone interface 703, an RCA line interface 702 and a Bluetooth wireless interface 701, which can adapt to different devices under test. The earphone interface 703 is a 3.5mm earphone interface, the earphone interface 703 and the RCA line interface 702 are located outside the housing 1, and the Bluetooth wireless interface 701 is located inside the housing 1.
[0034] The power supply unit is disposed in the housing 1 and is respectively connected to the control unit 3, the data processing unit 4, the sound playing unit 6, the display unit 2, the key unit 8, and the storage unit 5 to provide the required electricity. Figure 1 The module (not shown) can be powered by a battery, which converts the voltage to the voltage level required by other modules through a DC-DC step-down circuit. The battery can be two 3.7V lithium batteries connected in series, and a charging interface and a charging circuit are provided to charge the lithium battery. The charging interface can be a universal USB port or a DC power interface.
[0035] The data processing unit 4 selects appropriate fault sound samples as the sound samples to be fitted from the storage unit 5 according to the operation control of the control unit 3, performs fitting and optimization, obtains the optimized audio signal, and outputs it to the sound playing unit 6 or the audio output interface 7.
[0036] The digital processing unit 4 performs the following process on the sound sample to be fitted and optimized: Step S1: Determine the simulated fault type according to the operation control of the control unit 3; Step S2: based on the simulated fault type, determining the sound samples to be fitted, and performing preliminary analysis and preprocessing on the sound samples to be fitted; Preliminary analysis and preprocessing refer to: performing spectrum analysis, amplitude analysis and noise estimation on the sound samples to be fitted.
[0037] Spectral analysis refers to: performing fast Fourier transform on the sound sample to be fitted, converting it from the time domain to the frequency domain, and then determining the frequency components, harmonic structure and bandwidth characteristics of the sound sample to be fitted by analyzing the spectrum, which is helpful for subsequent processing and adjustment.
[0038] Amplitude analysis refers to calculating the amplitude distribution of the sound sample to be fitted, including peak amplitude, average amplitude, etc., which can provide a reference for volume adjustment.
[0039] Noise estimation refers to estimating the background noise in the sound sample to be fitted, which is achieved by analyzing the spectrum and time domain characteristics of the sound sample to be fitted or using a noise estimation algorithm. The purpose of noise estimation is to determine the noise components and their characteristics in the sound sample to be fitted in order to perform effective noise suppression. Noise estimation is very important for subsequent noise suppression and signal enhancement.
[0040] Step S3: synthesize the sound sample to be fitted after preliminary analysis and preprocessing to obtain an audio signal. Specifically, the following steps are adopted: Step S31: determining the synthesis order of the sound samples to be fitted; The synthesis order of the sound samples to be fitted is determined according to the development order, severity or actual application scenario of the simulated fault type; for example, a device usually first has a minor fault and then gradually develops into a serious fault, so it can be synthesized according to the order in which the fault develops.
[0041] Step S32: Adjust the playback time of the sound sample to be fitted; adjust the playback time of each sound sample to be fitted based on the total playback time. If it is necessary to extend the playback time of a sound sample to be fitted, you can use the method of repeatedly playing some segments or interpolation. For example, you can select a segment in the sound sample to be fitted, and then repeat it for multiple times to increase the playback time. The interpolation method can insert new data on the basis of the original sound sample to be fitted, so that the playback time becomes longer. If you need to shorten the playback time of a sound sample to be fitted, you can perform a trimming operation to remove some segments. Pay attention to maintaining continuity and integrity when trimming.
[0042] Step S33: Adjust the volume of the sound sample to be fitted; adjust the amplitude of the sound sample to be fitted according to the volume parameter (output volume) set by the control unit 3. The volume can be increased or decreased by multiplying the amplitude by a coefficient using a multiplication operation. For example, if the volume is to be doubled, the amplitude can be multiplied by 2. The volume can also be fine-tuned by adding or subtracting a fixed value from the amplitude using an addition operation. However, care should be taken to avoid the amplitude exceeding the processing range of the digital processing unit 4, which may cause distortion.
[0043] Step S34: determining a mixing method of the sound sample to be fitted; Common hybrid methods include linear superposition, weighted summation, frequency modulation, etc. Linear superposition is the simplest method, which is to directly add the sound samples to be fitted. Weighted summation is to add the weights of each sound sample to be fitted, and the weights can be determined according to the importance of the fault or other factors. Frequency modulation can achieve synthesis by changing the frequency characteristics of the sound, which is suitable for simulating specific types of faults.
[0044] Step S35: determining whether the sound sample to be fitted requires time synchronization; If necessary, the sound samples to be fitted are time synchronized and then the process proceeds to step S36; if not necessary, the process proceeds directly to step S36. For example, if two sound samples to be fitted should appear at the same time, their start times can be adjusted to the same value.
[0045] Step S36: synthesizing the sound samples to be fitted based on the synthesis order, play duration, and mixing method of the sound samples to be fitted to obtain an audio signal.
[0046] The final audio signal is generated by the synthesis of the adjusted sound sample to be fitted or multiple sound samples to be fitted. During the integration process, it is necessary to ensure that the transition between the various sound components is natural and avoid abrupt changes. Smooth transition of sound can be achieved by using techniques such as fade in and fade out and cross fade.
[0047] Step S4: Optimize the audio signal and send it to the sound playing unit 6 for playing or the audio output interface 7. Optimizing the audio signal can improve its quality and authenticity. Specifically, the process of optimizing the audio signal in this step is as follows: Step S41: determining a filter and corresponding filter parameters based on the noise components and characteristics determined by the noise estimation in step S2, and performing noise suppression on the audio signal using an adaptive noise suppression technique; Noise suppression: Use digital filters or other noise suppression algorithms to remove background noise from audio signals. You can choose the appropriate filter type and parameters based on the frequency characteristics and intensity of the noise.
[0048] Filter selection: Select a suitable filter for noise suppression based on the characteristics of the noise. Common filters include low-pass filters, high-pass filters, band-pass filters, and notch filters. Low-pass filters can remove high-frequency noise, high-pass filters can remove low-frequency noise, band-pass filters can select signals within a specific frequency range, and notch filters can remove noise at a specific frequency. When selecting a filter, you need to consider the frequency range, intensity, and impact of the noise on the signal.
[0049] Filter parameter adjustment: According to the characteristics of the noise and the requirements of the signal, adjust the filter parameters. This includes the filter's cutoff frequency, bandwidth, gain and other parameters. When adjusting the parameters, repeated trials are required to find the best filtering effect. At the same time, care should be taken to avoid excessive filtering that may cause signal distortion or loss of important information.
[0050] Adaptive noise suppression: For complex noise environments, you can use adaptive noise suppression algorithms. Adaptive noise suppression algorithms can automatically adjust the filter parameters according to signal changes to adapt to different noise conditions. This method can improve the effect of noise suppression while reducing the workload of manual parameter adjustment.
[0051] Step S42: Based on the fault characteristics or frequency components of the simulated fault type, determine the enhancement target in the audio signal and select the corresponding signal enhancement algorithm to enhance the signal to obtain an optimized audio signal. For specific frequency components or fault characteristics, a signal enhancement algorithm can be used to highlight these parts. First, it is necessary to determine the signal components to be enhanced. This can be determined according to the needs of fault diagnosis, such as enhancing the fault characteristics of a specific frequency, improving the signal-to-noise ratio of the signal, etc. After determining the enhancement target, the corresponding signal enhancement method can be selected.
[0052] If the enhancement target in the audio signal is frequency selective enhancement, the selected frequency is enhanced through a bandpass filter or frequency weighting; the bandpass filter can select signals within a specific frequency range for enhancement, and frequency weighting can weight signals of different frequencies according to the importance of the frequency.
[0053] If the enhancement target in the audio signal is time domain enhancement, the audio signal is enhanced in the time domain by signal amplification or peak enhancement; signal amplification can increase the signal strength by increasing the signal amplitude, and peak enhancement can highlight the peak part of the signal and enhance the visibility of the fault characteristics.
[0054] If the enhancement target in the audio signal is adaptive enhancement, the adaptive enhancement algorithm is used to adaptively adjust the changes in the audio signal. The adaptive enhancement algorithm is suitable for some complex signal environments and can automatically adjust the enhanced parameters according to the changes in the signal to adapt to different signal conditions. This method can improve the effect of signal enhancement while reducing the workload of manual parameter adjustment.
[0055] Another embodiment of the present invention is that between step S33 and step S34, there is also a fault type simulation adjustment step: the fault type simulation adjustment step performs specific processing on the sound sample to be fitted based on the simulated fault type. If a motor failure is simulated, a noise component of a specific frequency, such as white noise, pink noise, etc., can be added to the sound sample to be fitted. This is achieved by generating a random noise signal and superimposing it with the original sound sample to be fitted. For the simulation of frequency changes, frequency modulation (FM) technology can be used. By changing the frequency characteristics of the sound sample to be fitted, the abnormal frequency characteristics of the motor failure can be simulated. For example, the sound sample to be fitted can be subjected to frequency offset or frequency jitter processing. The simulation of amplitude fluctuations can be achieved by adding random changes to the amplitude of the sound sample to be fitted, which can simulate the unstable output when the motor fails.
[0056] When the present invention is needed to perform a status test on the device under test, the operation is as follows: various fault sound samples are stored in the storage unit 5 in advance; long press the power button in the key matrix 801 for 3 seconds to trigger the power supply unit to power other circuits and turn on the device; use the direction keys, confirmation key and cancel key of the key matrix 801 to set the device parameters according to the information displayed by the display unit 2, such as the total playback time, number of cycles, volume, simulated fault type, output mode (including wired output, Bluetooth output, speaker output), etc.; if the wired output mode is selected, use the corresponding audio cable to connect the device and the device under test; if Bluetooth output is selected, pair Bluetooth with the device under test; press the play button in the key matrix 801, the device outputs an audio signal to test the device under test, and observe whether the device under test can trigger an alarm. The device can also be used to train and assess fault detection personnel.
[0057] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
Claims
1. A portable fault sound simulation device, characterized in that: It includes a housing, a control unit, a data processing unit, a sound playing unit, a display unit, a button unit, a storage unit, an audio output interface, and a power supply unit; The control unit is located in the housing and is connected to the data processing unit, the key unit, and the display unit respectively; the data processing unit is located in the housing and is connected to the storage unit, the control unit, the sound playing unit, and the audio output interface; A sound playing unit is located in the housing; a display unit is arranged on the housing, connected to the control unit, and used to display key information and parameters; a key unit is arranged on the housing; a storage unit is located in the housing, and used to store various fault sound samples; The audio output interface is arranged on the housing and can be used to connect an external device to be tested; the power supply unit is arranged in the housing and is respectively connected to the control unit, the data processing unit, the sound playing unit, the display unit and the key unit to provide the required power; the control unit operates and controls the data processing unit according to the key information and parameter selection of the key unit; The data processing unit selects appropriate fault sound samples from the storage unit as sound samples to be fitted according to the operation control of the control unit, performs fitting and optimization, obtains optimized audio signals, and outputs them to the sound playing unit or the audio output interface.
2. A portable fault sound simulation device according to claim 1, characterized in that: The key unit includes a scanning circuit and a key matrix. The key matrix is located on the surface of the shell, and the scanning circuit is located inside the shell and connected to the control unit for real-time scanning of the key matrix state, determining the pressed key and generating corresponding key information to send to the control unit.
3. A portable fault sound simulation device according to claim 1, characterized in that: The parameters include total playback time, output volume, and number of loops; The digital processing unit performs the following process on the sound sample to be fitted and optimized: Step S1: Determine the simulated fault type according to the operation control of the control unit; Step S2: based on the simulated fault type, determine the sound samples to be fitted, and perform preliminary analysis and preprocessing on the sound samples to be fitted; Step S3: synthesizing the sound sample to be fitted after preliminary analysis and preprocessing to obtain an audio signal; Step S4: Optimize the audio signal to obtain an optimized audio signal, and send it to the sound playing unit or the audio output interface.
4. A portable fault sound simulation device according to claim 3, characterized in that: The preliminary analysis and preprocessing in step S2 refers to: performing spectrum analysis, amplitude analysis and noise estimation on the sound sample to be fitted; Spectrum analysis refers to: performing fast Fourier transform on the sound sample to be fitted, converting it from the time domain to the frequency domain, and then determining the frequency component, harmonic structure and bandwidth characteristics of the sound sample to be fitted by analyzing the spectrum; amplitude analysis refers to: calculating the amplitude distribution of the sound sample to be fitted to provide a basis for volume adjustment; noise estimation refers to estimating the background noise of the sound sample to be fitted by analyzing the spectrum and time domain characteristics of the sound sample to be fitted or using a noise estimation algorithm, thereby determining the noise components and characteristics in the sound sample to be fitted.
5. A portable fault sound simulation device according to claim 3, characterized in that: Step S3 includes the following steps: Step S31: determining the synthesis order of the sound samples to be fitted; Step S32: adjusting the playing time of the sound sample to be fitted based on the total playing time; Step S33: adjusting the volume of the sound sample to be fitted based on the output volume; Step S34: determining a mixing method of the sound sample to be fitted; Step S35: determine whether the sound sample to be fitted needs time synchronization; if necessary, perform time synchronization processing on the sound sample to be fitted, and then proceed to step S36; if not, directly proceed to step S36; Step S36: synthesizing the sound samples to be fitted based on the synthesis order of the sound samples to be fitted, the playing time of the sound samples to be fitted, and the mixing method to obtain an audio signal.
6. A portable fault sound simulation device according to claim 5, characterized in that: The process of optimizing the audio signal in step S4 is as follows: Step S41: determining a filter and corresponding filter parameters based on the noise components and characteristics determined by the noise estimation in step S2, and performing noise suppression on the audio signal using an adaptive noise suppression technique; Step S42: Based on the fault characteristics or frequency components of the simulated fault type, determine the enhancement target in the audio signal and select a corresponding signal enhancement algorithm to perform signal enhancement to obtain an optimized audio signal.
7. A portable fault sound simulation device according to claim 6, characterized in that: If the enhancement target in the audio signal is frequency selective enhancement, the selected frequency is enhanced by bandpass filtering or frequency weighting; if the enhancement target in the audio signal is time domain enhancement, the audio signal is enhanced in the time domain by signal amplification or peak enhancement; If the enhancement target in the audio signal is adaptive enhancement, an adaptive enhancement algorithm is used to adaptively adjust the changes of the audio signal.
8. A portable fault sound simulation device according to claim 5, characterized in that: Between step S33 and step S34, there is also a fault type simulation adjustment step; Fault type simulation adjustment step: performing specific processing on the sound sample to be fitted based on the simulated fault type; if the simulated fault type is a motor fault, adding a noise component of a specific frequency to the sound sample to be fitted, the noise component being white noise or pink noise.
9. A portable fault sound simulation device according to claim 2, characterized in that: The key matrix integrates a plurality of touch switches, and the touch switches include a power button, an up button, a down button, a left button, a right button, a confirmation button, a cancel button, and a play button.
10. A portable fault sound simulation device according to claim 2, characterized in that: The audio output interface includes a headphone interface, an RCA line interface and a Bluetooth wireless interface.