CN111314536B - Method and equipment for detecting listening module of terminal equipment - Google Patents

Method and equipment for detecting listening module of terminal equipment Download PDF

Info

Publication number
CN111314536B
CN111314536B CN202010072281.7A CN202010072281A CN111314536B CN 111314536 B CN111314536 B CN 111314536B CN 202010072281 A CN202010072281 A CN 202010072281A CN 111314536 B CN111314536 B CN 111314536B
Authority
CN
China
Prior art keywords
audio data
listening module
frequency
qualified
recorded
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.)
Active
Application number
CN202010072281.7A
Other languages
Chinese (zh)
Other versions
CN111314536A (en
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.)
Shanghai Wanwu Xinsheng Environmental Technology Group Co
Original Assignee
Shanghai Wanwu Xinsheng Environmental Technology Group Co
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 Shanghai Wanwu Xinsheng Environmental Technology Group Co filed Critical Shanghai Wanwu Xinsheng Environmental Technology Group Co
Priority to CN202010072281.7A priority Critical patent/CN111314536B/en
Publication of CN111314536A publication Critical patent/CN111314536A/en
Priority to PCT/CN2020/120883 priority patent/WO2021147381A1/en
Application granted granted Critical
Publication of CN111314536B publication Critical patent/CN111314536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/18Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Abstract

The method comprises the steps that a listening module of the terminal equipment is adjusted to a threshold state through a preset detection program; acquiring original audio data of the listening module in the threshold state; cutting the original audio data into a plurality of sections, and calculating the frequency of each section of audio data to obtain a calculation result; judging whether the listening module is qualified or not according to the calculation result and the original audio data; therefore, detection can be carried out without obtaining a complete waveform, external interference is greatly reduced, and detection accuracy is improved.

Description

Method and equipment for detecting listening module of terminal equipment
Technical Field
The present application relates to the field of device detection, and in particular, to a method and device for detecting a listening module of a terminal device.
Background
A listening module of the terminal device is used for sending and recording sound, such as a loudspeaker of a mobile phone, and the listening module converts an electric signal and an acoustic signal, so that the performance of the listening module has a great influence on the sound quality; the listening module needs to be performance tested when it is produced, where testing of the audio plays an important role. The existing audio detection needs to detect the complete waveform of the acquired sound data, and the acquired sound usually contains a lot of external interference during detection, so that the detection result is inaccurate.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for detecting a listening module of a terminal device, which solve the problems in the prior art that a complete waveform needs to be obtained during audio detection of the listening module, and a detection result is greatly interfered by the outside world and is inaccurate in detection.
According to an aspect of the present application, there is provided a method for detecting a listening module of a terminal device, the method comprising:
adjusting a listening module of the terminal equipment to a threshold state through a preset detection program;
acquiring original audio data of the listening module in the threshold state;
cutting the original audio data into a plurality of sections, and calculating the frequency of each section of audio data to obtain a calculation result;
and judging whether the listening module is qualified or not according to the calculation result and the original audio data.
Further, judging whether the listening module is qualified according to the calculation result and the original audio data comprises:
and comparing the calculation result with the original audio data to obtain a comparison result, and judging whether the listening module is qualified according to the comparison result and a preset ratio.
Further, the method for calculating the frequency of each section of audio data after cutting the original audio data into a plurality of sections to obtain a calculation result includes:
after the original audio data are cut into a plurality of sections, each section is subjected to discrete Fourier transform to obtain a plurality of discrete points;
selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values;
and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result.
Further, judging whether the listening module is qualified according to the calculation result and the original audio data comprises:
if the frequency corresponding to the sequenced discrete point corresponding to each section of audio data is consistent with the frequency of the original audio data, the section of audio data is a qualified audio section;
and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified.
Further, the method further comprises:
obtaining a frequency of the original audio data when the listening module is tuned to a threshold state.
Further, comparing the calculation result with the original audio data to obtain a comparison result, and determining whether the listening module is qualified according to the comparison result and a preset ratio, including:
comparing whether the frequency of each section of audio frequency is the same as the frequency of the original audio data, and positioning the positions of the frequencies with the same phase;
and judging whether the listening module is qualified or not according to a preset ratio and the positioned position.
Further, obtaining raw audio data of the listening module in the threshold state comprises:
playing the listening module in the threshold state, and recording the sound emitted by the listening module;
and analyzing the recorded sound, and judging whether the original audio data of the listening module is recorded or not according to the analysis result.
Further, the calculating the frequency of each piece of audio data after cutting the original audio data into a plurality of pieces includes:
determining an enrollment time for enrollment of the sound emitted by the listening module;
and cutting the original audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data.
According to another aspect of the present application, there is also provided an apparatus for detecting a listening module of a terminal device, the apparatus including:
the allocating device is used for allocating a listening module of the terminal equipment to a threshold value state through a preset detection program;
acquiring means for acquiring original audio data of the listening module in the threshold state;
the computing device is used for cutting the original audio data into a plurality of sections and then computing the frequency of each section of audio data to obtain a computing result;
and the judging device is used for judging whether the listening module is qualified or not according to the calculation result and the original audio data.
Further, the judging device is configured to:
and comparing the calculation result with the original audio data to obtain a comparison result, and judging whether the listening module is qualified according to the comparison result and a preset ratio.
Further, the computing device is to:
after the original audio data are cut into a plurality of sections, each section is subjected to discrete Fourier transform to obtain a plurality of discrete points;
selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values;
and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result.
Further, the judging device is configured to:
if the frequency corresponding to the sequenced discrete point corresponding to each section of audio data is consistent with the frequency of the original audio data, the section of audio data is a qualified audio section;
and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified.
Further, the apparatus further comprises:
second acquiring means for acquiring the frequency of the original audio data when the listening module is turned to a threshold state.
Further, the judging device is configured to:
comparing whether the frequency of each section of audio frequency is the same as the frequency of the original audio data, and positioning the positions of the frequencies with the same phase;
and judging whether the listening module is qualified or not according to a preset ratio and the positioned position.
Further, the obtaining means is configured to:
playing the listening module in the threshold state, and recording the sound emitted by the listening module;
and analyzing the recorded sound, and judging whether the original audio data of the listening module is recorded or not according to the analysis result.
Further, the computing device is to:
determining an enrollment time for enrollment of the sound emitted by the listening module;
and cutting the original audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data.
According to yet another aspect of the present application, there is also provided a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the method as described above.
Compared with the prior art, the method and the device have the advantages that the listening module of the terminal device is adjusted to the threshold state through the preset detection program; acquiring original audio data of the listening module in the threshold state; cutting the original audio data into a plurality of sections, and calculating the frequency of each section of audio data to obtain a calculation result; judging whether the listening module is qualified or not according to the calculation result and the original audio data; therefore, detection can be carried out without obtaining a complete waveform, external interference is greatly reduced, and detection accuracy is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 illustrates a flow diagram of a method for detecting a listening module of a terminal device provided in accordance with an aspect of the present application;
FIG. 2 is a schematic frequency domain diagram illustrating a fast algorithm transform of an audio file by a discrete Fourier transform according to an embodiment of the present application;
fig. 3 shows a schematic structural diagram of an apparatus for detecting a listening module of a terminal device according to another aspect of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include volatile Memory in a computer readable medium, Random Access Memory (RAM), and/or nonvolatile Memory such as Read Only Memory (ROM) or flash Memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change RAM (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassette tape, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Fig. 1 shows a flow diagram of a method for detecting a listening module of a terminal device according to an aspect of the present application, the method comprising: step S11 to step S14,
in step S11, the listening module of the terminal device is tuned to a threshold state by a preset detection program; here, when detecting the listening module of the terminal device, the listening module is automatically tuned to the threshold state through a preset detection program in the detection machine, wherein the listening module is used for acquiring external sounds and sounds of playing the terminal device, such as a microphone and a loudspeaker of a mobile phone, and the threshold state is a state of playing or receiving the sounds at the maximum, that is, the volume is tuned to the maximum.
Next, in step S12, raw audio data of the listening module in the threshold state is acquired; here, after the listening module is turned to the threshold state, the original audio data sent by the listening module at this time is acquired, for example, the sound sent by the listening module is the original audio data when the volume is turned to the maximum value, so that the detection inaccuracy caused by the external interference is reduced.
Subsequently, in step S13, the original audio data is cut into multiple segments, and then the frequency of each segment of audio data is calculated to obtain a calculation result; the recorded original audio data is segmented into a plurality of sections, and then the frequency of each section of audio data can be calculated by using a discrete Fourier algorithm, namely waveform data is converted into point data, so that the frequency condition of sound in each section is obtained; the audio data after the interference is subjected to discrete fourier transform (such as FFT) to obtain peaks of a plurality of points, the maximum peak of three points may be taken, and the peaks of the three points are converted into frequencies. Thus, in step S14, it is determined whether the listening module is qualified according to the calculation result and the original audio data. And comparing the calculated frequency of each section of audio data with the original audio data, performing audio analysis, judging whether the calculated audio data is the original audio data, and if so, indicating that the audio performance of the listening module is qualified. For example, the peak values of a plurality of points obtained after FFT conversion of a certain piece of audio data are converted into frequencies by taking the peak value of the largest three points, and if the frequency of a certain point is the same as the frequency of the source audio file, the piece of audio can be considered to be eligible. Therefore, the method avoids the problem that the audio analysis can be carried out even if the waveform of the sound is incomplete, and whether the audio meets the condition or not is judged.
In an embodiment of the present application, in step S14, the calculation result is compared with the original audio data to obtain a comparison result, and whether the listening module is qualified is determined according to the comparison result and a preset ratio. And if the comparison result exceeds a specified ratio, judging that the audio passes the detection and the audio detection of the listening module is qualified.
In an embodiment of the present application, the method further includes: obtaining a frequency of the original audio data when the listening module is tuned to a threshold state. Acquiring the frequency of the corresponding audio data output when the listening module is adjusted to the maximum volume value, so as to compare the frequency of the sound data recorded under the maximum volume value with the original frequency to be output when detecting the audio of the listening module; specifically, the method comprises the following steps: in step S14, comparing whether the frequency of each piece of audio is the same as the frequency of the original audio data, and locating the positions of the same frequencies; and judging whether the listening module is qualified or not according to a preset ratio and the positioned position. Searching the segment where the frequency of the audio frequency is consistent with the frequency of the original audio data in the frequencies of all the audio frequency segments, locating the segment, and judging whether the audio frequency analyzed at this time passes the detection or not according to the specified ratio and the situation of the located segment; for example, the frequency of the original audio data is sent at 1000HZ, and the recorded audio data is cut off and analyzed to obtain the frequency of 10 segments of audio data, where 200HZ and 300HZ occur in the frequency, if the preset percentage is 80%, the audio data of each segment is considered to be qualified when the frequency of 1000HZ occurring in each segment exceeds 80%, and the audio data of the segment is considered to be passed when the number of qualified segments occupies the total number of segments and exceeds the preset percentage.
In an embodiment of the present application, in step S13, after the original audio data is cut into multiple segments, each segment is subjected to discrete fourier transform to obtain multiple discrete points; selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values; and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result. Further in step S14, if there is a frequency consistent with the frequency of the original audio data in the frequency corresponding to the sorted discrete point corresponding to each piece of audio data, the piece of audio data is a qualified audio piece; and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified. As shown in fig. 2, which is a schematic frequency domain diagram of an audio file after FFT (fast algorithm for discrete fourier transform) conversion, it can be seen from the diagram that peaks appear at points 1,51, and 76, other points are close to 0, the peak data is sorted from large to small, 3 peak points are taken to calculate the frequency respectively, and by the formula: fn is the frequency of N points, Fs is the sampling frequency, N is the number of sampling points, the sampling frequency in fig. 2 is 256, and the number of sampling points is 256, so that the frequencies of the audio file can be found to be 0Hz, 50Hz, and 75 Hz. If the frequency of the source audio file is 100Hz, the three points are all non-compliant, and in the same way, it can be obtained whether other audio data are compliant, the total number of each audio data is 1, and finally, the ratio r (pt/t) 100 is calculated, where pt is the number of compliant audio segments, t is the total number of segments, and r is a qualified result, and if r is greater than 80, it is determined that the source audio data is problem-free, and the terminal device is problem-free, that is, the audio detection of the terminal device is problem-free.
In an embodiment of the present application, in step S12, the listening module is played in the threshold state, and the sound emitted by the listening module is recorded; and analyzing the recorded sound, and judging whether the original audio data of the listening module is recorded or not according to the analysis result. When the audio data to be detected is obtained, the sound is played under the maximum volume state, then the sound data at the moment is recorded, and the recorded sound is analyzed to judge whether the audio data to be detected is really recorded, namely the original audio data is recorded.
In an embodiment of the present application, in step S13, a recording time for recording the sound emitted by the listening module is determined; and cutting the original audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data. Here, for example, if the recording time of the sound emitted from the recording speaker is 10s and the preset segment processing data is M, the original audio data of 10s is segmented according to the data amount within 10s and the data M that can be processed by each segment, and then the frequency of each segment of audio data is calculated, and the audio data of each segment is analyzed.
Fig. 2 shows a schematic structural diagram of an apparatus for detecting a listening module of a terminal device according to another aspect of the present application, the apparatus comprising: a preparing device 11, an obtaining device 12, a calculating device 13 and a judging device 14,
the allocating device 11 is used for allocating a listening module of the terminal device to a threshold state through a preset detection program; here, when detecting the listening module of the terminal device, the listening module is automatically tuned to the threshold state through a preset detection program in the detection machine, wherein the listening module is used for acquiring external sounds and sounds of playing the terminal device, such as a microphone and a loudspeaker of a mobile phone, and the threshold state is a state of playing or receiving the sounds at the maximum, that is, the volume is tuned to the maximum.
Acquiring means 12 for acquiring the original audio data of the listening module in the threshold state; here, after the listening module is turned to the threshold state, the original audio data sent by the listening module at this time is acquired, for example, the sound sent by the listening module is the original audio data when the volume is turned to the maximum value, so that the detection inaccuracy caused by the external interference is reduced.
A calculating device 13, configured to calculate a frequency of each section of audio data after cutting the original audio data into multiple sections, so as to obtain a calculation result; the recorded original audio data is segmented into a plurality of sections, and then the frequency of each section of audio data can be calculated by using a discrete Fourier algorithm, namely waveform data is converted into point data, so that the frequency condition of sound in each section is obtained; the audio data after the interference is subjected to discrete fourier transform (such as FFT) to obtain peaks of a plurality of points, the maximum peak of three points may be taken, and the peaks of the three points are converted into frequencies. And a judging device 14, configured to judge whether the listening module is qualified according to the calculation result and the original audio data. And comparing the calculated frequency of each section of audio data with the original audio data, performing audio analysis, judging whether the calculated audio data is the original audio data, and if so, indicating that the audio performance of the listening module is qualified. Therefore, the method avoids the problem that the audio analysis can be carried out even if the waveform of the sound is incomplete, and whether the audio meets the condition or not is judged.
In an embodiment of the present application, the determining device 14 is configured to compare the calculation result with the original audio data to obtain a comparison result, and determine whether the listening module is qualified according to the comparison result and a preset ratio. And if the comparison result exceeds a specified ratio, judging that the audio passes the detection and the audio detection of the listening module is qualified. For example, the peak values of a plurality of points obtained after FFT conversion of a certain piece of audio data are converted into frequencies by taking the peak value of the largest three points, and if the frequency of a certain point is the same as the frequency of the source audio file, the piece of audio can be considered to be eligible. Therefore, the method avoids the problem that the audio analysis can be carried out even if the waveform of the sound is incomplete, and whether the audio meets the condition or not is judged.
In an embodiment of the present application, the apparatus further includes: second acquiring means for acquiring the frequency of the original audio data when the listening module is turned to a threshold state. Acquiring the frequency of the corresponding audio data output when the listening module is adjusted to the maximum volume value, so as to compare the frequency of the sound data recorded under the maximum volume value with the original frequency to be output when detecting the audio of the listening module; specifically, the method comprises the following steps: the judging device 14 is used for comparing whether the frequency of each audio segment is the same as the frequency of the original audio data, and locating the positions of the frequencies with the same phase; and judging whether the listening module is qualified or not according to a preset ratio and the positioned position. Searching the segment where the frequency of the audio frequency is consistent with the frequency of the original audio data in the frequencies of all the audio frequency segments, locating the segment, and judging whether the audio frequency analyzed at this time passes the detection or not according to the specified ratio and the situation of the located segment; for example, the frequency of the original audio data is sent at 1000HZ, and the recorded audio data is cut off and analyzed to obtain the frequency of 10 segments of audio data, where 200HZ and 300HZ occur in the frequency, if the preset percentage is 80%, the audio data of each segment is considered to be qualified when the frequency of 1000HZ occurring in each segment exceeds 80%, and the audio data of the segment is considered to be passed when the number of qualified segments occupies the total number of segments and exceeds the preset percentage.
In an embodiment of the present application, the computing device 13 is configured to: after the original audio data are cut into a plurality of sections, each section is subjected to discrete Fourier transform to obtain a plurality of discrete points; selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values; and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result. The determination device 14 is configured to: if the frequency corresponding to the sequenced discrete point corresponding to each section of audio data is consistent with the frequency of the original audio data, the section of audio data is a qualified audio section; and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified. As shown in fig. 2, which is a schematic frequency domain diagram of an audio file after FFT (fast algorithm for discrete fourier transform) conversion, it can be seen from the diagram that peaks appear at points 1,51, and 76, other points are close to 0, the peak data is sorted from large to small, 3 peak points are taken to calculate the frequency respectively, and by the formula: fn is the frequency of N points, Fs is the sampling frequency, N is the number of sampling points, the sampling frequency in fig. 2 is 256, and the number of sampling points is 256, so that the frequencies of the audio file can be found to be 0Hz, 50Hz, and 75 Hz. If the frequency of the source audio file is 100Hz, the three points are all non-compliant, and in the same way, it can be obtained whether other audio data are compliant, the total number of each audio data is 1, and finally, the ratio r (pt/t) 100 is calculated, where pt is the number of compliant audio segments, t is the total number of segments, and r is a qualified result, and if r is greater than 80, it is determined that the source audio data is problem-free, and the terminal device is problem-free, that is, the audio detection of the terminal device is problem-free.
In an embodiment of the present application, the obtaining device 12 is configured to play the listening module in the threshold state, and record the sound emitted by the listening module; and analyzing the recorded sound, and judging whether the original audio data of the listening module is recorded or not according to the analysis result. When the audio data to be detected is obtained, the sound is played under the maximum volume state, then the sound data at the moment is recorded, and the recorded sound is analyzed to judge whether the audio data to be detected is really recorded, namely the original audio data is recorded.
In an embodiment of the present application, the computing device 13 is configured to determine a recording time for recording the sound emitted by the listening module; and cutting the original audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data. Here, for example, if the recording time of the sound emitted from the recording speaker is 10s and the preset segment processing data is M, the original audio data of 10s is segmented according to the data amount within 10s and the data M that can be processed by each segment, and then the frequency of each segment of audio data is calculated, and the audio data of each segment is analyzed.
Furthermore, the embodiment of the present application also provides a computer readable medium, on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement the aforementioned method for detecting the listening module of the terminal device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (15)

1. A method for detecting a listening module of a terminal device, the listening module being configured to acquire external sounds and play the sounds of the terminal device, the method comprising:
adjusting a listening module of the terminal equipment to a threshold state through a preset detection program;
using a listening module in the threshold state to listen to the original audio data sent by the listening module to obtain first recorded audio data;
cutting the first recorded audio data into a plurality of sections, and calculating the frequency of each section of audio data to obtain a calculation result;
judging whether the listening module is qualified or not according to the calculation result and the original audio data;
wherein, judging whether the listening module is qualified according to the calculation result and the original audio data comprises:
and comparing the calculation result with the original audio data to obtain a comparison result, and judging whether the listening module is qualified according to the comparison result and a preset ratio.
2. The method of claim 1, wherein the calculating the frequency of each segment of audio data after the first recorded audio data is cut into a plurality of segments comprises:
after the first recorded audio data are cut into a plurality of sections, performing discrete Fourier transform on each section of audio data to obtain a plurality of discrete points;
selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values;
and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result.
3. The method of claim 2, wherein determining whether the listening module is eligible based on the calculation and the raw audio data comprises:
if the frequency corresponding to the sequenced discrete point corresponding to each section of audio data is consistent with the frequency of the original audio data, the section of audio data is a qualified audio section;
and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified.
4. The method of claim 1, further comprising:
and acquiring the frequency of the first recorded audio data recorded when the listening module is adjusted to the threshold state.
5. The method of claim 4, wherein comparing the calculated result with the original audio data to obtain a comparison result, and determining whether the listening module is qualified according to the comparison result and a preset ratio comprises:
comparing whether the frequency of each section of audio frequency is the same as the frequency of the original audio data, and positioning the positions of the frequencies with the same phase;
and judging whether the listening module is qualified or not according to a preset ratio and the positioned position.
6. The method of claim 1, wherein listening to raw audio data emitted by a listening module using the listening module in the threshold state to obtain first recorded audio data comprises:
playing the listening module in the threshold state, and recording original audio data sent by the listening module, wherein the original audio data is sound sent by the listening module;
and analyzing the recorded sound, and judging whether the first recorded audio data is recorded or not according to the analysis result.
7. The method of claim 6, wherein calculating the frequency of each segment of audio data after cutting the first recorded audio data into segments comprises:
determining an enrollment time for enrollment of the sound emitted by the listening module;
and cutting the first recorded audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data.
8. An apparatus for detecting a listening module of a terminal device, the listening module being configured to acquire an external sound and play a sound of the terminal device, the apparatus comprising:
the allocating device is used for allocating a listening module of the terminal equipment to a threshold value state through a preset detection program;
the acquisition device is used for listening to the original audio data sent by the listening module by using the listening module in the threshold state to obtain first recorded audio data;
the calculating device is used for cutting the first recorded audio data into a plurality of sections and then calculating the frequency of each section of audio data to obtain a calculation result;
the judging device is used for judging whether the listening module is qualified or not according to the calculation result and the original audio data;
wherein the judging means is configured to:
and comparing the calculation result with the original audio data to obtain a comparison result, and judging whether the listening module is qualified according to the comparison result and a preset ratio.
9. The apparatus of claim 8, wherein the computing device is configured to:
after the first recorded audio data are cut into a plurality of sections, performing discrete Fourier transform on each section of audio data to obtain a plurality of discrete points;
selecting discrete points which are peak points from the plurality of discrete points, and sorting the discrete points according to the peak values;
and calculating the frequency corresponding to the sorted discrete points to obtain a calculation result.
10. The apparatus according to claim 9, wherein the determining means is configured to:
if the frequency corresponding to the sequenced discrete point corresponding to each section of audio data is consistent with the frequency of the original audio data, the section of audio data is a qualified audio section;
and if the total number of the qualified audio segments is greater than the preset ratio, the detection result of the listening module is qualified.
11. The apparatus of claim 8, further comprising:
and the second acquisition device is used for acquiring the frequency of the first recorded audio data recorded when the listening module is adjusted to the threshold value state.
12. The apparatus according to claim 11, wherein the determining means is configured to:
comparing whether the frequency of each section of audio frequency is the same as the frequency of the original audio data, and positioning the positions of the frequencies with the same phase;
and judging whether the listening module is qualified or not according to a preset ratio and the positioned position.
13. The apparatus of claim 8, wherein the obtaining means is configured to:
playing the listening module in the threshold state, and recording original audio data sent by the listening module, wherein the original audio data is sound sent by the listening module;
and analyzing the recorded sound, and judging whether the first recorded audio data is recorded or not according to the analysis result.
14. The apparatus of claim 13, wherein the computing device is configured to:
determining an enrollment time for enrollment of the sound emitted by the listening module;
and cutting the first recorded audio data into a plurality of sections according to the recording time and a preset sectional processing data threshold value, and calculating the frequency of each section of audio data.
15. A computer readable storage medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 7.
CN202010072281.7A 2020-01-21 2020-01-21 Method and equipment for detecting listening module of terminal equipment Active CN111314536B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010072281.7A CN111314536B (en) 2020-01-21 2020-01-21 Method and equipment for detecting listening module of terminal equipment
PCT/CN2020/120883 WO2021147381A1 (en) 2020-01-21 2020-10-14 Method and device for testing listening module of terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072281.7A CN111314536B (en) 2020-01-21 2020-01-21 Method and equipment for detecting listening module of terminal equipment

Publications (2)

Publication Number Publication Date
CN111314536A CN111314536A (en) 2020-06-19
CN111314536B true CN111314536B (en) 2021-08-10

Family

ID=71148295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072281.7A Active CN111314536B (en) 2020-01-21 2020-01-21 Method and equipment for detecting listening module of terminal equipment

Country Status (2)

Country Link
CN (1) CN111314536B (en)
WO (1) WO2021147381A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104485117A (en) * 2014-12-16 2015-04-01 福建星网视易信息系统有限公司 Method and system for detecting sound recording equipment
CN106052852A (en) * 2016-06-01 2016-10-26 中国电子科技集团公司第三研究所 Pulse sound signal detection method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110013779A1 (en) * 2009-07-17 2011-01-20 Apple Inc. Apparatus for testing audio quality of an electronic device
CN101729635B (en) * 2009-12-30 2013-12-04 中兴通讯股份有限公司 Method and device for testing audio loop of communication terminal
JP2014057140A (en) * 2012-09-11 2014-03-27 Hitachi Building Systems Co Ltd Inspection apparatus for elevator external communication device
CN104661169B (en) * 2013-11-25 2018-11-06 深圳中电长城信息安全系统有限公司 A kind of audio testing method and device
CN104244161A (en) * 2014-09-17 2014-12-24 苏州酷果信息技术有限公司 Method and device for testing equipment with voice playing function and voice recording function
CN105810222A (en) * 2014-12-30 2016-07-27 研祥智能科技股份有限公司 Defect detection method, device and system for audio equipment
CN106161705B (en) * 2015-04-22 2020-01-07 小米科技有限责任公司 Audio equipment testing method and device
CN106791825A (en) * 2016-12-23 2017-05-31 深圳创维数字技术有限公司 A kind of audio automated testing method and terminal
CN108347686A (en) * 2018-02-07 2018-07-31 广州视源电子科技股份有限公司 Audio testing method, device, smart machine and storage medium
CN109040940A (en) * 2018-09-20 2018-12-18 歌尔股份有限公司 A kind of detection method and device of loudspeaker
CN110177166A (en) * 2019-06-10 2019-08-27 深圳市中诺通讯有限公司 A kind of mobile phone audio test method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104485117A (en) * 2014-12-16 2015-04-01 福建星网视易信息系统有限公司 Method and system for detecting sound recording equipment
CN106052852A (en) * 2016-06-01 2016-10-26 中国电子科技集团公司第三研究所 Pulse sound signal detection method and device

Also Published As

Publication number Publication date
CN111314536A (en) 2020-06-19
WO2021147381A1 (en) 2021-07-29

Similar Documents

Publication Publication Date Title
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
US8050422B2 (en) Audio test apparatus capable of decreasing noise influence in process of audio device testing and method thereof
US20210098008A1 (en) A method and system for triggering events
CN111182435B (en) Testing method and device of voice equipment
CN104937955B (en) Automatic loud speaker Check up polarity
CN111918196B (en) Method, device and equipment for diagnosing recording abnormity of audio collector and storage medium
CN109658951B (en) Mixed signal detection method and system
US9058384B2 (en) System and method for identification of highly-variable vocalizations
WO2008006952A2 (en) Method and device for diagnosing the operating state of a sound system
CA3123970A1 (en) High-precision temporal measurement of vibro-acoustic events in synchronisation with a sound signal on a touch-screen device
CN110650426A (en) Nonlinear harmonic distortion detection method and device of microphone array and storage medium
CN109903775B (en) Audio popping detection method and device
CN111782861A (en) Noise detection method and device and storage medium
CN108093356B (en) Howling detection method and device
CN111314536B (en) Method and equipment for detecting listening module of terminal equipment
CN115731943A (en) Plosive detection method, plosive detection system, storage medium and electronic equipment
KR101382356B1 (en) Apparatus for forgery detection of audio file
CN112995882B (en) Intelligent equipment audio open loop test method
CN113316075B (en) Howling detection method and device and electronic equipment
CN112750458B (en) Touch screen sound detection method and device
EP4152323A1 (en) Measurement device, measurement method, program, and phonograph record
CN114420165A (en) Audio circuit testing method, device, equipment and storage medium
CN108205550B (en) Audio fingerprint generation method and device
CN113473348B (en) Method for positioning frequency sweeping sound source, method, system and equipment for testing quality of audio equipment
CN115691556B (en) Method for detecting multichannel voice quality of equipment side

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
CB02 Change of applicant information

Address after: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant after: Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd.

Address before: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant before: SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant