CN116296511A - Method and device for testing buzzer, electronic equipment and storage medium - Google Patents

Method and device for testing buzzer, electronic equipment and storage medium Download PDF

Info

Publication number
CN116296511A
CN116296511A CN202310303609.5A CN202310303609A CN116296511A CN 116296511 A CN116296511 A CN 116296511A CN 202310303609 A CN202310303609 A CN 202310303609A CN 116296511 A CN116296511 A CN 116296511A
Authority
CN
China
Prior art keywords
audio
buzzer
sound source
source file
frequency domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310303609.5A
Other languages
Chinese (zh)
Inventor
谢高武
周志明
田学印
童燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202310303609.5A priority Critical patent/CN116296511A/en
Publication of CN116296511A publication Critical patent/CN116296511A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/008Subject matter not provided for in other groups of this subclass by doing functionality tests
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H17/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves, not provided for in the preceding groups
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The present disclosure provides a method, an apparatus, an electronic device, and a storage medium for testing a buzzer in an electronic product, the method comprising: collecting audio information generated by a buzzer playing sound source file to be tested; analyzing the audio information to obtain a frequency domain signal corresponding to the audio file; comparing the information corresponding to the frequency domain signal with the play source information corresponding to the sound source file to obtain an audio comparison result; and judging whether the function of the buzzer to be detected is normal or not based on the audio comparison result.

Description

Method and device for testing buzzer, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of acoustic wave measurement, and in particular relates to a method and device for testing a buzzer, electronic equipment and a storage medium.
Background
A Buzzer (Buzzer) is an electronic signaling device with an integrated structure, is powered by a direct-current power supply, and is widely applied to electronic products such as computers, vehicle-mounted electronic equipment and the like.
Therefore, improving efficiency and accuracy of buzzer test in electronic products, solving the problem of yield of buzzer in electronic products is a constantly pursuing goal.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, and a storage medium for testing a buzzer, so as to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a method of testing a buzzer, the method being for testing a buzzer in an electronic product, the method comprising: collecting audio information generated by a buzzer playing sound source file to be tested; analyzing the audio information to obtain a frequency domain signal corresponding to the audio file; comparing the information corresponding to the frequency domain signal with the play source information corresponding to the sound source file to obtain an audio comparison result; and judging whether the function of the buzzer to be detected is normal or not based on the audio comparison result.
In an embodiment, the method further comprises: obtaining playing source information corresponding to the sound source file, wherein the playing source information comprises: a sound source file and the amplitude, frequency and duration of said sound source file.
In an embodiment, the collecting the audio information generated by the audio source file played by the buzzer to be tested includes: the buzzer to be tested plays the sound source file to generate corresponding audio; collecting the audio by using recording equipment to generate the audio information; wherein the audio information includes: a source file and a source of noise; the audio source file is combined with a plurality of the noise sources to generate the audio information.
In an embodiment, the parsing the audio information to obtain a frequency domain signal corresponding to the audio file includes: converting a time domain signal in the audio information into a frequency domain signal by using Fourier transform; and filtering noise signals in the audio information based on the frequency of the sound source file to obtain frequency domain signals corresponding to the sound source file.
In an embodiment, the comparing the information corresponding to the frequency domain signal with the playing source information corresponding to the audio file to obtain an audio comparison result includes: the amplitude and the duration of the frequency domain signal corresponding to the sound source file are consistent with the amplitude, the frequency and the duration in the playing source information, and the audio comparison result is successful; and if the frequency domain signal corresponding to the sound source file is not analyzed or the amplitude and the duration of the frequency domain signal corresponding to the sound source file are inconsistent with the amplitude, the frequency and the duration in the playing source information, the audio comparison result is that the comparison fails.
In an embodiment, the determining whether the function of the buzzer to be tested is normal based on the audio comparison result includes: under the condition that the audio comparison result is that the comparison is successful, the buzzer to be tested is normal in function; and under the condition that the audio comparison result is that the comparison fails, the buzzer to be tested is abnormal in function.
According to a second aspect of the present disclosure, there is provided an apparatus for testing a buzzer, the apparatus for testing a buzzer in an electronic product, the apparatus comprising: the acquisition module is used for acquiring audio information generated by the sound source file played by the buzzer to be tested; the analysis module is used for analyzing the audio information to obtain a frequency domain signal corresponding to the audio file; the comparison module is used for comparing the information corresponding to the frequency domain signal with the play source information corresponding to the sound source file to obtain an audio comparison result; and the judging module is used for judging whether the function of the buzzer to be tested is normal or not based on the audio comparison result.
In an embodiment, the device further comprises: the acquisition module is used for acquiring play source information corresponding to the sound source file, wherein the play source information comprises: a sound source file and the amplitude, frequency and duration of said sound source file.
In an embodiment, the collecting module is specifically configured to play the sound source file by using the buzzer to be tested to generate corresponding audio; collecting the audio by using recording equipment to generate the audio information; wherein the audio information includes: a source file and a source of noise; the audio source file is combined with a plurality of the noise sources to generate the audio information.
In an embodiment, the parsing module is specifically configured to convert a time domain signal in the audio information into a frequency domain signal by using fourier transform; and filtering noise signals in the audio information based on the frequency of the sound source file to obtain frequency domain signals corresponding to the sound source file.
In an embodiment, the comparing module is specifically configured to determine that the audio comparison result is successful when the amplitude and the duration of the frequency domain signal corresponding to the audio file are consistent with the amplitude, the frequency and the duration of the play source information; and judging that the audio comparison result is failed in comparison if the frequency domain signal corresponding to the sound source file is not analyzed or the amplitude and the duration of the frequency domain signal corresponding to the sound source file are inconsistent with the amplitude, the frequency and the duration in the playing source information.
In an embodiment, the judging module is specifically configured to judge that the buzzer to be tested is normal in function when the audio comparison result is that the comparison is successful; and under the condition that the audio comparison result is that the comparison fails, judging that the buzzer to be tested is abnormal in function.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the present disclosure.
According to the method, the device, the electronic equipment and the storage medium for testing the buzzer, the audio information generated by playing the sound source file of the buzzer to be tested is collected, the frequency domain signal corresponding to the sound source file is extracted from the audio information, whether the function of the buzzer to be tested is normal or not is automatically judged based on the frequency domain signal corresponding to the sound source file, and the efficiency and the accuracy of testing the buzzer in the electronic product are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 shows a process flow diagram of a method of testing a buzzer in accordance with an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of audio information showing a method of testing a buzzer in accordance with an embodiment of the present disclosure;
FIG. 3 is a schematic diagram showing one method of analyzing audio information in a method of testing a buzzer according to an embodiment of the present disclosure;
FIG. 4 is a schematic overall flow diagram of a method of testing a buzzer in accordance with an embodiment of the present disclosure;
FIG. 5 shows a schematic diagram of a buzzer automated testing system in a method of testing a buzzer in accordance with an embodiment of the present disclosure;
fig. 6 is a schematic diagram showing the composition of a device for testing a buzzer according to an embodiment of the present disclosure;
fig. 7 shows a schematic diagram of a composition structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more comprehensible, the technical solutions in the embodiments of the present disclosure will be clearly described in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
The embodiment of the disclosure provides a method for automatically testing a buzzer, which is used for extracting a frequency domain signal corresponding to a sound source file from audio information by collecting the audio information generated by playing the sound source file by the buzzer to be tested, and testing the buzzer to be tested based on the frequency domain signal corresponding to the sound source file; meanwhile, human factors are prevented from being introduced in the testing process, and the accuracy of buzzer testing is improved.
Fig. 1 shows a schematic process flow diagram of a method of testing a buzzer in accordance with an embodiment of the present disclosure.
Referring to fig. 1, a process flow of a method for testing a buzzer according to an embodiment of the present disclosure may include at least the following steps:
step S101, collecting audio information generated by a buzzer playing audio file to be tested.
In some embodiments, a sound source file for testing the buzzer to be tested is selected, and playing source information corresponding to the sound source file is obtained. The playing source information at least may include: the amplitude, frequency and duration of the sound source file.
As an example, an audio frequency with an amplitude of 1V, a frequency of 1KHz, and a duration of 1S is selected as the sound source file a of the buzzer to be tested.
In some embodiments, the sound source file played by the buzzer to be tested generates corresponding audio, and the audio information corresponding to the sound source file is generated by collecting the audio generated by the sound source file played by the buzzer to be tested by using the recording device. When the sound source file played by the buzzer to be tested is collected by the recording equipment, external environmental noise is inevitably introduced. Thus, as shown in fig. 2, the audio information may include at least: a source file and a source of noise; audio information corresponding to the source audio file is generated from the source audio file in combination with a plurality of noise sources.
As an example, the buzzer to be tested plays the audio source file a, generates the corresponding audio a ', and utilizes the microphone to collect the audio a', and generates the audio information a corresponding to the audio source file a. Wherein, the audio information a may include at least: a source file a, a noise source 1, a noise source 2, a noise source 3 and a noise source 4.
Step S102, analyzing the audio information to obtain a frequency domain signal corresponding to the audio file.
In some embodiments, the collected audio information is converted from a time domain signal to a frequency domain signal through fourier transformation, noise signal components of other frequencies are filtered according to the frequency of a sound source file in the audio information, and the frequency domain signal components corresponding to the sound source file, and information such as amplitude, duration and the like of the frequency domain signal components are analyzed.
Therefore, the specific implementation process of analyzing the audio information to obtain the frequency domain signal corresponding to the audio file at least includes the following steps:
step S102a, converting the time domain signal in the audio information into a frequency domain signal by fourier transform.
Step S102b, filtering noise signals in the audio information based on the frequency of the sound source file to obtain frequency domain signals corresponding to the sound source file.
As an example, referring to fig. 3, the audio information a is converted from a time domain signal into a frequency domain signal by fourier transformation, noise signal components of other frequencies are filtered according to the frequency of the audio file a, i.e., 1KHz, and the frequency domain signal components corresponding to the audio file a, i.e., 1KHz signal components, and information such as the amplitude and duration of the 1KHz signal components, are resolved. Wherein, figure 3 is divided into a time domain diagram and a frequency domain diagram; the horizontal axis of the Time domain graph represents Time (Time), and the vertical axis represents amplitude (Intensity); the horizontal axis of the Frequency domain diagram represents Frequency (Frequency), and the vertical axis represents amplitude (concentration).
Step S103, comparing the information corresponding to the frequency domain signal with the playing source information corresponding to the audio file to obtain an audio comparison result.
In some embodiments, the audio comparison result is that the comparison is successful under the condition that the amplitude and the duration of the frequency domain signal are consistent with the amplitude, the frequency and the duration in the playing source information; and if the frequency domain signal corresponding to the audio file is not analyzed or the amplitude and the duration of the frequency domain signal are inconsistent with the amplitude, the frequency and the duration of the playing source information, the audio comparison result is failure comparison.
As an example, the amplitude of the 1KHz signal is 1V, the duration is 1S, and the audio comparison result is successful when the amplitude is 1V, the frequency is 1KHz, and the duration is 1S of the audio which is consistent with the playing source information; the audio frequency comparison result is failure when the amplitude of the 1KHz signal is not analyzed or the 1KHz signal is 1V, the duration is 0.8S, and the audio frequency is inconsistent with the playing source information (the amplitude is 1V, the frequency is 1KHz, and the duration is 1S).
Step S104, judging whether the function of the buzzer to be detected is normal or not based on the audio comparison result.
In some embodiments, when the audio comparison result is that the comparison is successful, the buzzer to be tested functions normally; and under the condition that the audio comparison result is that the comparison fails, the buzzer to be tested is abnormal in function.
In the related art, the testing and distinguishing of the buzzer function by the computer board card manufacturer mainly depends on whether the function of the buzzer is normal or not by a tester through human ears. The method for automatically testing the buzzer provided by the embodiment of the disclosure not only can improve the testing efficiency, but also can omit the problem of the yield of products caused by test items and erroneous judgment.
Fig. 4 shows an overall flow diagram of a method of testing a buzzer in accordance with an embodiment of the present disclosure.
Referring to fig. 4, taking an on-board buzzer on a board card as an example, a method for testing a buzzer according to an embodiment of the present disclosure is described as an example.
Building an automatic buzzer test system, and starting the automatic buzzer test; calling a microphone to start a recording function, and playing a sound source file to sound a buzzer; the buzzer is recorded to play the audio information generated by the sound source file, and the audio information is analyzed to obtain a frequency domain signal corresponding to the sound source file; comparing the information corresponding to the frequency domain signal with the playing source information corresponding to the sound source file, if the comparison is successful, the buzzer to be tested functions normally, and if the comparison is failed, the buzzer to be tested functions abnormally; and uploading the test result. Therefore, whether the buzzer on the electronic product board card of the computer, the vehicle-mounted electronic equipment and the like and the electronic components related to the buzzer circuit have faults or defects or not is checked, and the test of the buzzer functional module is realized.
As shown in fig. 5, the components of the buzzer automatic test system may include at least: the device comprises a board card (1) to be tested, an on-board buzzer (2), an external microphone (3) and an on-board Audio interface (Audio Jack) (4).
The board card refers to a printed circuit board (Printed Circuit Board, PCB) which is a core component of an electronic product and is used as a carrier of electronic components for controlling the operation of hardware.
It should be understood that the embodiments of the present disclosure are only used to illustrate an application scenario of a method for testing a buzzer by taking an on-board buzzer as an example, and the related specific implementation manner and corresponding technical effects have been described in detail in the above embodiments, which are not repeated here.
Fig. 6 is a schematic diagram showing the constitution of an apparatus for testing a buzzer according to an embodiment.
Referring to fig. 6, in an embodiment, an apparatus 60 for testing a buzzer in an electronic product, the apparatus 60 includes: the acquisition module 601 is used for acquiring audio information generated by a buzzer playing audio file to be tested; the parsing module 602 is configured to parse the audio information to obtain a frequency domain signal corresponding to the audio file; a comparison module 603, configured to compare information corresponding to the frequency domain signal with play source information corresponding to the audio file, to obtain an audio comparison result; the judging module 604 is configured to determine whether the buzzer to be tested is normal or not based on the audio comparison result.
In some embodiments, the apparatus 60 further comprises: the obtaining module 605 is configured to obtain play source information corresponding to a sound source file, where the play source information includes: the amplitude, frequency and duration of the sound source file.
In some embodiments, the collection module 601 is specifically configured to play a sound source file by the buzzer to be tested, and generate corresponding audio; collecting audio by using recording equipment to generate audio information; wherein the audio information includes: a source file and a source of noise; the audio source file is combined with a variety of noise sources to generate audio information.
In some embodiments, the parsing module 602 is specifically configured to convert a time domain signal in the audio information into a frequency domain signal by using fourier transform; noise signals in the audio information are filtered based on the frequency of the sound source file, and frequency domain signals corresponding to the sound source file are obtained.
In some embodiments, the comparison module 603 is specifically configured to determine that the audio comparison result is successful when the amplitude and the duration of the frequency domain signal corresponding to the audio file are consistent with the amplitude, the frequency and the duration in the play source information; and judging that the audio comparison result is failed in comparison if the amplitude and the duration of the frequency domain signal corresponding to the sound source file are not analyzed or are inconsistent with the amplitude, the frequency and the duration in the playing source information.
In some embodiments, the judging module 604 is specifically configured to judge that the buzzer to be tested is functioning normally when the audio comparison result is that the comparison is successful; and under the condition that the audio comparison result is that the comparison fails, judging that the buzzer to be tested is abnormal in function.
Fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable electronic devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the electronic device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 may also be stored. The computing unit 701, the ROM702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the electronic device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information/data with other electronic devices through a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 701 performs the respective methods and processes described above, for example, a method of testing a buzzer. For example, in some embodiments, a method of testing a buzzer may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 700 via the ROM702 and/or the communication unit 709. When a computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of one method of testing a buzzer described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform a method of testing a buzzer by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and it is intended to cover the scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of testing a buzzer, the method for testing a buzzer in an electronic product, the method comprising:
collecting audio information generated by a buzzer playing sound source file to be tested;
analyzing the audio information to obtain a frequency domain signal corresponding to the audio file;
comparing the information corresponding to the frequency domain signal with the play source information corresponding to the sound source file to obtain an audio comparison result;
and judging whether the function of the buzzer to be detected is normal or not based on the audio comparison result.
2. The method according to claim 1, wherein the method further comprises:
obtaining playing source information corresponding to the sound source file, wherein the playing source information comprises: a sound source file and the amplitude, frequency and duration of said sound source file.
3. The method according to claim 1, wherein the collecting the audio information generated by the buzzer playing audio file to be tested includes:
the buzzer to be tested plays the sound source file to generate corresponding audio;
collecting the audio by using recording equipment to generate the audio information;
wherein the audio information includes: a source file and a source of noise; the audio source file is combined with a plurality of the noise sources to generate the audio information.
4. The method of claim 1, wherein the parsing the audio information to obtain the frequency domain signal corresponding to the audio file comprises:
converting a time domain signal in the audio information into a frequency domain signal by using Fourier transform;
and filtering noise signals in the audio information based on the frequency of the sound source file to obtain frequency domain signals corresponding to the sound source file.
5. The method of claim 1, wherein comparing the information corresponding to the frequency domain signal with the play source information corresponding to the audio file to obtain an audio comparison result comprises:
the amplitude and the duration of the frequency domain signal corresponding to the sound source file are consistent with the amplitude, the frequency and the duration in the playing source information, and the audio comparison result is successful;
and if the frequency domain signal corresponding to the sound source file is not analyzed or the amplitude and the duration of the frequency domain signal corresponding to the sound source file are inconsistent with the amplitude, the frequency and the duration in the playing source information, the audio comparison result is that the comparison fails.
6. The method according to claim 5, wherein the determining whether the buzzer to be tested is normal or not based on the audio comparison result includes:
under the condition that the audio comparison result is that the comparison is successful, the buzzer to be tested is normal in function;
and under the condition that the audio comparison result is that the comparison fails, the buzzer to be tested is abnormal in function.
7. An apparatus for testing a buzzer, the apparatus being for testing a buzzer in an electronic product, the apparatus comprising:
the acquisition module is used for acquiring audio information generated by the sound source file played by the buzzer to be tested;
the analysis module is used for analyzing the audio information to obtain a frequency domain signal corresponding to the audio file;
the comparison module is used for comparing the information corresponding to the frequency domain signal with the play source information corresponding to the sound source file to obtain an audio comparison result;
and the judging module is used for judging whether the function of the buzzer to be tested is normal or not based on the audio comparison result.
8. The apparatus according to claim 7, wherein the parsing module is configured to convert the time domain signal in the audio information into a frequency domain signal using a fourier transform; and filtering noise signals in the audio information based on the frequency of the sound source file to obtain frequency domain signals corresponding to the sound source file.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of testing a buzzer of any one of claims 1-6.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of testing a buzzer according to any one of claims 1-6.
CN202310303609.5A 2023-03-24 2023-03-24 Method and device for testing buzzer, electronic equipment and storage medium Pending CN116296511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310303609.5A CN116296511A (en) 2023-03-24 2023-03-24 Method and device for testing buzzer, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310303609.5A CN116296511A (en) 2023-03-24 2023-03-24 Method and device for testing buzzer, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116296511A true CN116296511A (en) 2023-06-23

Family

ID=86781364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310303609.5A Pending CN116296511A (en) 2023-03-24 2023-03-24 Method and device for testing buzzer, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116296511A (en)

Similar Documents

Publication Publication Date Title
CN107516510B (en) Automatic voice testing method and device for intelligent equipment
CN110719461B (en) Audio and video equipment testing method and device and computer readable storage medium
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
CN110337055A (en) Detection method, device, electronic equipment and the storage medium of speaker
US20140157036A1 (en) Advanced and automatic analysis of recurrent test failures
CN110716843B (en) System fault analysis processing method and device, storage medium and electronic equipment
CN106771453B (en) Testing method and device for oscilloscope
CN117473266B (en) EMI power supply filter safety performance monitoring method, device, medium and equipment
CN114360581A (en) Method and device for identifying equipment fault and electronic equipment
CN113709650A (en) Microphone testing method, device and storage medium
CN115687406B (en) Sampling method, device, equipment and storage medium for call chain data
CN116296511A (en) Method and device for testing buzzer, electronic equipment and storage medium
CN117093941A (en) Vibration wave filtering method, system, equipment and medium for eliminating environmental noise
US20210018906A1 (en) Feature Value Extraction Apparatus, Predicted-Failure-Evidence Diagnosis Apparatus, Design Assistance Apparatus, and Predicted-Failure-Evidence Diagnosis Operation Method
CN113590498B (en) Method and system for testing application starting time of desktop operating system
CN111128775A (en) Method and device for positioning integrated circuit process abnormity
CN114093392A (en) Audio labeling method, device, equipment and storage medium
CN114546799A (en) Point burying log checking method and device, electronic equipment, storage medium and product
CN112182581B (en) Application testing method, device, application testing equipment and storage medium
CN115062571A (en) Dynamic selection method, system, equipment and computer readable storage medium for data area of integrated circuit device
CN113744756A (en) Equipment quality inspection and audio data expansion method and related device, equipment and medium
CN110401781B (en) False call detection system, method and medium
CN110032624B (en) Sample screening method and device
CN114322917B (en) Transformer winding detection method and device, electronic equipment and storage medium
CN109391892B (en) Performance detection method, device and system and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination