CN104661169A - Audio testing method and device - Google Patents
Audio testing method and device Download PDFInfo
- Publication number
- CN104661169A CN104661169A CN201310603874.1A CN201310603874A CN104661169A CN 104661169 A CN104661169 A CN 104661169A CN 201310603874 A CN201310603874 A CN 201310603874A CN 104661169 A CN104661169 A CN 104661169A
- Authority
- CN
- China
- Prior art keywords
- frequency
- channel
- threshold
- difference
- voice data
- 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.)
- Granted
Links
Abstract
The invention is applied to the technical field of information, and provides an audio testing method and device. The method comprises the following steps: connecting the output of audio equipment with the input of the audio equipment; playing the audio data of a fixed-frequency sinusoidal signal, and recording the audio data; performing unilateral Fourier transform on the recorded audio data to generate a frequency spectrum of the audio data, wherein frequency at a frequency spectrum component peak in the frequency spectrum is impact frequency, and the other frequency is noise frequency; if at least one of the two conditions that an absolute value of a difference between the impact frequency and fixed frequency is greater than a first threshold value and that a difference between the frequency spectrum component peak and a frequency spectrum component of the noise frequency is smaller than a second threshold value is met, determining that the output of the audio equipment or the input of the audio equipment is tested to be abnormal. According to the method and the device, the input and output of the audio equipment are synchronously tested, and the method and the device are stable, reliable and low in cost and implementation difficulty and complexity.
Description
Technical field
The invention belongs to areas of information technology, particularly relate to a kind of audio testing method and device.
Background technology
Computer equipment in process of production, needs the input and output of the audio frequency to computer motherboard to test.Conventional audio test mode utilizes and manually tests, and judges the quality of audio-frequency function by people's ear hearing.Traditional audio-frequency test mode not only understands the manpower and materials of at substantial when producing in batches, inefficiency, has a strong impact on the test process in production process, and the reliability and stability of test are low.If develop special testing equipment, then can bring high R&D costs, and development and testing equipment is more complicated technically, realizes difficulty high, the research and development time is longer.
In sum, existing audio-frequency test mode implementation procedure is loaded down with trivial details.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of audio testing method, is intended to solve the loaded down with trivial details problem of existing audio testing method implementation procedure.
The embodiment of the present invention is achieved in that a kind of audio testing method, comprising:
Connect the output of audio frequency apparatus and the input of described audio frequency apparatus, with the voice data making described audio frequency apparatus input its output;
Play the voice data of fixed frequency sinusoidal signal, and record described voice data;
The described voice data recorded is done monolateral Fourier transform, and generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency;
If the absolute value of the difference of described impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
Another object of the embodiment of the present invention is to provide a kind of audio test device, comprising:
Input and output link block, for the input of the output and described audio frequency apparatus that connect audio frequency apparatus, the voice data inputting it to make described audio frequency apparatus and export;
Voice data records module, for playing the voice data of fixed frequency sinusoidal signal, and records described voice data;
Fourier transform module, for the described voice data recorded is done monolateral Fourier transform, generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency;
Audio-frequency test judge module, if be not more than first threshold for the absolute value of the difference of described impulsing frequency and described fixed frequency, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
The embodiment of the present invention is passed through the output of audio frequency apparatus as input, play the voice data of fixed frequency sinusoidal signal and record, the voice data of recording is done Fourier transform, again the voice data of the voice data of broadcasting and recording is carried out Frequency spectrum ratio pair, thus test while realizing audio frequency input and output, reliable and stable, cost is low, realizes difficulty and complexity is low.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the audio testing method that the embodiment of the present invention provides;
Fig. 2 is the output of the audio testing method step S101 sound intermediate frequency equipment that the embodiment of the present invention provides, the input of audio frequency apparatus and the exemplary plot of audio connecting cord;
Fig. 3 is the specific implementation flow chart of the audio testing method step S102 that the embodiment of the present invention provides;
Fig. 4 is the structured flowchart of the audio test device that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The embodiment of the present invention is passed through the output of audio frequency apparatus as input, play the voice data of fixed frequency sinusoidal signal and record, the voice data of recording is done Fourier transform, again the voice data of the voice data of broadcasting and recording is carried out Frequency spectrum ratio pair, thus test while realizing audio frequency input and output, reliable and stable, cost is low, realizes difficulty and complexity is low.
In embodiments of the present invention, the terminal equipment performing audio-frequency test can be desktop computer, notebook computer or panel computer etc., also can be smart mobile phone or palmtop PC etc., in this no limit.The operating system performing audio-frequency test can be Linux, Windows, IOS or Android etc., in this no limit.
Fig. 1 shows the realization flow figure of the audio testing method that the embodiment of the present invention provides, and details are as follows:
In step S101, connect the output of audio frequency apparatus and the input of described audio frequency apparatus, with the voice data making described audio frequency apparatus input its output.
In embodiments of the present invention, the output of audio frequency apparatus can be connected by audio connecting cord with the input of audio frequency apparatus.
Fig. 2 shows the output of the audio testing method step S101 sound intermediate frequency equipment that the embodiment of the present invention provides, the input of audio frequency apparatus and the exemplary plot of audio connecting cord.
With reference to Fig. 2, for desktop computer, the audio frequency of desktop computer mainboard comprises audio output interface 21, Mic(Microphone, microphone) input interface 22, circuit input interface 23.
As one embodiment of the present of invention, audio output interface 21 and Mic input interface 22 is connected by 3.5mm audio connecting cord 24, realize being connected of the output of audio frequency apparatus and the input of audio frequency apparatus, with the voice data making Mic input interface 22 input audio output interface 21 output, thus the audio frequency input/output function of test Mic input interface 22 and audio output interface 21.
As an alternative embodiment of the invention, audio output interface 21 and circuit input interface 23 is connected by 3.5mm audio connecting cord 24, realize being connected of the output of audio frequency apparatus and the input of audio frequency apparatus, with the voice data making circuit input interface 23 input audio output interface 21 output, thus the audio frequency input/output function of measurement circuit input interface 23 and audio output interface 21.
It should be noted that, the peripheral support equipment of the embodiment of the present invention only needs the audio connecting cord of the output of a connection audio frequency apparatus and the input of audio frequency apparatus, and easily, cost is low in audio connecting cord buying.
In step s 102, play the voice data of fixed frequency sinusoidal signal, and record described voice data.
Fig. 3 shows the specific implementation flow chart of the audio testing method step S102 that the embodiment of the present invention provides.
Preferably, described step S102 plays the voice data of fixed frequency sinusoidal signal, and records described voice data and be specially:
In step S301, play the voice data of fixed frequency sinusoidal signal.
In step s 302, the first Preset Time is waited for.
In step S303, record described voice data, the time span of the described voice data of described recording is the second Preset Time.
In embodiments of the present invention, the first Preset Time can be 1 second, and the second Preset Time can be 4 seconds.Here, wait for there are enough response times with the playout software of the voice data making broadcasting fixed frequency sinusoidal signal in 1 second.Recording audio data, after 4 seconds, stop recording audio data, then stop the voice data playing fixed frequency sinusoidal signal.
As one embodiment of the present of invention, make a fixed frequency f
0=200Hz, amplitude is-6dB, the sinusoidal signal audio data file of dual track, by the audio data file called after 200hz.wav of this fixed frequency sinusoidal signal.
As one embodiment of the present of invention, the sample rate f of recording audio data
s=4096Hz.With 8bit received pronunciation coding, the data obtained of sampling are quantized, that is, have 2
8=256 quantized levels.Recording time is 4 seconds.By the audio data file called after record.wav recorded.The voice data of wav form is without compression original audio data, here, is preserved by the audio data file recorded when recording audio data with wav form, extracts operation to facilitate follow-up voice data.
As one embodiment of the present of invention, in (SuSE) Linux OS, using ALSA(AdvancedLinux Sound Architecture, Linux sound framework) instrument amixer arranges audio frequency parameters such as the volumes of audio frequency.It should be noted that, need rationally to arrange the audio frequency parameter of audio frequency, undistorted to ensure the voice data recorded.
Further, described method also comprises:
The output volume and the input that configure described audio frequency apparatus are amplified, to make the described voice data of recording undistorted.
In embodiments of the present invention, arrange the parameter of audio frequency apparatus, when guarantee can not cause recording audio data, overload causes the distortion phenomenons such as sinusoidal signal saturation distortion, cutoff distortion.
In step s 103, the described voice data recorded is done monolateral Fourier transform, and generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency.
Preferably, the voice data of described fixed frequency sinusoidal signal comprises L channel and R channel, described frequency component peak value comprises L channel frequency component peak value and R channel frequency component peak value, described impulsing frequency comprises L channel impulsing frequency and R channel impulsing frequency, and described noise frequency comprises L channel noise frequency and R channel noise frequency.
It should be noted that, the voice data of fixed frequency sinusoidal signal, except comprising dual track, also can comprise monophony, can also comprise multichannel, as surround channel etc., in this no limit.
As one embodiment of the present of invention, for the voice data of fixed frequency sinusoidal signal for dual track, from the audio data file record.wav recorded, extract left audio data and right audio channel data respectively.Respectively monolateral Fourier transform is carried out to left audio data and right audio channel data, obtain the frequency spectrum of left audio data and the frequency spectrum of right audio channel data respectively.
Here, corresponding with dual track, frequency component peak value comprises L channel frequency component peak value and R channel frequency component peak value, and impulsing frequency comprises L channel impulsing frequency and R channel impulsing frequency, and left noise frequency comprises L channel noise frequency and R channel noise frequency.Note L channel impulsing frequency is f
1, R channel impulsing frequency is f
2; Note L channel frequency component peak value is X
f1, R channel frequency component peak value is X
f2; The spectrum component of note L channel noise frequency is X
n1, the spectrum component of R channel noise frequency is X
n2.
It should be noted that, because audio frequency apparatus introduces ambient noise in the process exported and input, therefore, the voice data of recording is a dynamic amount in time domain, if directly compared to the time-domain value of the voice data of broadcasting and the voice data of recording, the correct difficulty judged is very large.Fourier transform pairs ambient noise has good antijamming capability, the use of Fourier transform, realizes the conversion of voice data from time domain to frequency domain, solves the problem of frequency Obtaining Accurate, is simplified by the audio-frequency test of complexity.
As one embodiment of the present of invention, monolateral Fourier transform is fast Fourier transform.Such as, respectively left audio data and right audio channel data are carried out to the fast Fourier transform of sampled point N=8192.
In step S104, if the absolute value of the difference of described impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
Further, if the absolute value of the difference of the described impulsing frequency of step S104 and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge that the output of described audio frequency apparatus or the input test of described audio frequency apparatus are specially extremely:
If the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus L channel and the input of described audio frequency apparatus L channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus L channel or the input test exception of described audio frequency apparatus L channel;
If the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus R channel and the input of described audio frequency apparatus R channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus R channel or the input test exception of described audio frequency apparatus R channel.
As one embodiment of the present of invention, first threshold is 5Hz, and Second Threshold is 0.1 times of spectrum component peak value.(1)195Hz≤f
1≤205Hz,(2)195Hz≤f
2≤205Hz,(3)0.1X
f1≥X
n1,(4)0.1X
f2≥X
n2。If (1) and (3) all satisfied, then the output of audio frequency apparatus L channel and the input of audio frequency apparatus L channel are all tested normally; If (1) and in (3) have any one not meet, then the output of audio frequency apparatus L channel or the input exception of audio frequency apparatus L channel.If (2) and (4) all satisfied, then the output of audio frequency apparatus R channel and the input of audio frequency apparatus R channel are all tested normally; If (2) and in (4) have any one not meet, then the output of audio frequency apparatus R channel or the input exception of audio frequency apparatus R channel.Here, the output of audio frequency and the input of audio frequency are tested simultaneously, the exception of the input and output of audio frequency can be tested out fast.
It should be noted that, in the ideal situation, the voice data of fixed frequency sinusoidal signal after monolateral Fourier transform, only at fixed frequency f
0there is a larger range value at=200Hz place, and other Frequency points are without value.
If audio-frequency function is normal, in actual applications, ambient noise can be introduced in the output of audio frequency apparatus and the input process of audio frequency apparatus, the frequency of random ambient noise is also random, therefore, ambient noise is very little at the range value of each Frequency point after Fourier transform, and that is, ambient noise is at the range value of each Frequency point and fixed frequency f
0the range value at=200Hz place is compared quite faint.
If audio-frequency function is abnormal, then the voice data recorded after Fourier transform, fixed frequency f
0the range value at=200Hz place may weaken, or only has noise.If fixed frequency f
0the range value at=200Hz place weakens, and so the range value at noise frequency point place no longer can be left in the basket, and even Frequency and Amplitude maximum point place is noise frequency.
The embodiment of the present invention is passed through the output of audio frequency apparatus as input, play the voice data of fixed frequency sinusoidal signal and record, the voice data of recording is done Fourier transform, again the voice data of the voice data of broadcasting and recording is carried out Frequency spectrum ratio pair, thus test while realizing audio frequency input and output, reliable and stable, cost is low, realizes difficulty and complexity is low.
Fig. 4 is the structured flowchart of the audio test device that the embodiment of the present invention provides, and this device can run in desktop computer, notebook computer, panel computer, smart mobile phone or palmtop PC.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 4, this device comprises:
Input and output link block 41, connects the output of audio frequency apparatus and the input of described audio frequency apparatus, with the voice data making described audio frequency apparatus input its output.
Voice data records module 42, plays the voice data of fixed frequency sinusoidal signal, and records described voice data.
Fourier transform module 43, the described voice data recorded is done monolateral Fourier transform, and generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency.
Audio-frequency test judge module 44, if the absolute value of the difference of described impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
Further, described device also comprises:
Audio configuration module, amplifies for the output volume and input configuring described audio frequency apparatus, to make the described voice data of recording undistorted.
Preferably, the voice data of described fixed frequency sinusoidal signal comprises L channel and R channel, described frequency component peak value comprises L channel frequency component peak value and R channel frequency component peak value, described impulsing frequency comprises L channel impulsing frequency and R channel impulsing frequency, and described noise frequency comprises L channel noise frequency and R channel noise frequency.
Further, described audio-frequency test judge module 44 specifically for:
If the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus L channel and the input of described audio frequency apparatus L channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus L channel or the input test exception of described audio frequency apparatus L channel;
If the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus R channel and the input of described audio frequency apparatus R channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus R channel or the input test exception of described audio frequency apparatus R channel.
Preferably, described voice data record module 42 specifically for:
Play the voice data of fixed frequency sinusoidal signal;
Wait for the first Preset Time;
Record described voice data, the time span of the described voice data of described recording is the second Preset Time.
The embodiment of the present invention is passed through the output of audio frequency apparatus as input, play the voice data of fixed frequency sinusoidal signal and record, the voice data of recording is done Fourier transform, again the voice data of the voice data of broadcasting and recording is carried out Frequency spectrum ratio pair, thus test while realizing audio frequency input and output, reliable and stable, cost is low, realizes difficulty and complexity is low.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. an audio testing method, is characterized in that, comprising:
Connect the output of audio frequency apparatus and the input of described audio frequency apparatus, with the voice data making described audio frequency apparatus input its output;
Play the voice data of fixed frequency sinusoidal signal, and record described voice data;
The described voice data recorded is done monolateral Fourier transform, and generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency;
If the absolute value of the difference of described impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
2. the method for claim 1, is characterized in that, described method also comprises:
The output volume and the input that configure described audio frequency apparatus are amplified, to make the described voice data of recording undistorted.
3. the method for claim 1, it is characterized in that, the voice data of described fixed frequency sinusoidal signal comprises L channel and R channel, described frequency component peak value comprises L channel frequency component peak value and R channel frequency component peak value, described impulsing frequency comprises L channel impulsing frequency and R channel impulsing frequency, and described noise frequency comprises L channel noise frequency and R channel noise frequency.
4. method as claimed in claim 3, if the absolute value of the difference of described impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge that the output of described audio frequency apparatus or the input test of described audio frequency apparatus are specially extremely:
If the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus L channel and the input of described audio frequency apparatus L channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus L channel or the input test exception of described audio frequency apparatus L channel;
If the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus R channel and the input of described audio frequency apparatus R channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus R channel or the input test exception of described audio frequency apparatus R channel.
5. the method for claim 1, is characterized in that, the voice data of described broadcasting fixed frequency sinusoidal signal, and records described voice data and be specially:
Play the voice data of fixed frequency sinusoidal signal;
Wait for the first Preset Time;
Record described voice data, the time span of the described voice data of described recording is the second Preset Time.
6. an audio test device, is characterized in that, comprising:
Input and output link block, for the input of the output and described audio frequency apparatus that connect audio frequency apparatus, the voice data inputting it to make described audio frequency apparatus and export;
Voice data records module, for playing the voice data of fixed frequency sinusoidal signal, and records described voice data;
Fourier transform module, for the described voice data recorded is done monolateral Fourier transform, generate the frequency spectrum of described voice data, the frequency at the spectrum component peak value place in described frequency spectrum is impulsing frequency, and other frequencies are noise frequency;
Audio-frequency test judge module, if be not more than first threshold for the absolute value of the difference of described impulsing frequency and described fixed frequency, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus and the input of described audio frequency apparatus are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described spectrum component peak value and described noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus or the input test exception of described audio frequency apparatus.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Audio configuration module, amplifies for the output volume and input configuring described audio frequency apparatus, to make the described voice data of recording undistorted.
8. device as claimed in claim 6, it is characterized in that, the voice data of described fixed frequency sinusoidal signal comprises L channel and R channel, described frequency component peak value comprises L channel frequency component peak value and R channel frequency component peak value, described impulsing frequency comprises L channel impulsing frequency and R channel impulsing frequency, and described noise frequency comprises L channel noise frequency and R channel noise frequency.
9. device as claimed in claim 8, is characterized in that, described audio-frequency test judge module specifically for:
If the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus L channel and the input of described audio frequency apparatus L channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described L channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described L channel spectrum component peak value and described L channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus L channel or the input test exception of described audio frequency apparatus L channel;
If the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is not more than first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is not less than Second Threshold, then judge that the output of described audio frequency apparatus R channel and the input of described audio frequency apparatus R channel are all tested normally; If meet at least one condition in following two conditions: the absolute value of the difference of described R channel impulsing frequency and described fixed frequency is greater than described first threshold, and the difference of the spectrum component of described R channel spectrum component peak value and described R channel noise frequency is less than described Second Threshold, then judge the output of described audio frequency apparatus R channel or the input test exception of described audio frequency apparatus R channel.
10. device as claimed in claim 6, is characterized in that, described voice data record module specifically for:
Play the voice data of fixed frequency sinusoidal signal;
Wait for the first Preset Time;
Record described voice data, the time span of the described voice data of described recording is the second Preset Time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310603874.1A CN104661169B (en) | 2013-11-25 | 2013-11-25 | A kind of audio testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310603874.1A CN104661169B (en) | 2013-11-25 | 2013-11-25 | A kind of audio testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104661169A true CN104661169A (en) | 2015-05-27 |
CN104661169B CN104661169B (en) | 2018-11-06 |
Family
ID=53251766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310603874.1A Active CN104661169B (en) | 2013-11-25 | 2013-11-25 | A kind of audio testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104661169B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791825A (en) * | 2016-12-23 | 2017-05-31 | 深圳创维数字技术有限公司 | A kind of audio automated testing method and terminal |
CN107423168A (en) * | 2016-05-23 | 2017-12-01 | 华为技术有限公司 | Method of testing and test device |
CN109510636A (en) * | 2018-10-31 | 2019-03-22 | 华勤通讯技术有限公司 | Receive test method, device, medium and the equipment of FM signal function |
CN111163310A (en) * | 2019-12-31 | 2020-05-15 | 深圳Tcl新技术有限公司 | Television audio test method, device, equipment and computer readable storage medium |
CN111726740A (en) * | 2019-03-22 | 2020-09-29 | 北京京东尚科信息技术有限公司 | Electronic equipment testing method and device |
CN112291696A (en) * | 2019-07-23 | 2021-01-29 | 深圳市韶音科技有限公司 | Audio chip testing method, storage device and computer equipment |
WO2021147381A1 (en) * | 2020-01-21 | 2021-07-29 | 上海万物新生环保科技集团有限公司 | Method and device for testing listening module of terminal device |
CN113938806A (en) * | 2021-10-12 | 2022-01-14 | 台湾立讯精密有限公司 | Noise detection device and method thereof |
CN114268893A (en) * | 2021-12-20 | 2022-04-01 | 歌尔科技有限公司 | Method and device for detecting abnormal playing of Bluetooth audio device and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001033853A1 (en) * | 1999-10-18 | 2001-05-10 | Kim Jong Hae | Addressable television broadcasting system |
CN1758226A (en) * | 2004-10-09 | 2006-04-12 | 鸿富锦精密工业(深圳)有限公司 | The method of the automatic detection computations machine of loop-type audio frequency apparatus playing function |
CN101426167A (en) * | 2007-10-30 | 2009-05-06 | 中兴通讯股份有限公司 | Audio test system and method |
CN102164057A (en) * | 2011-03-18 | 2011-08-24 | 深圳市广和通实业发展有限公司 | Device and method for automatically testing communication module |
CN103179495A (en) * | 2011-12-20 | 2013-06-26 | 比亚迪股份有限公司 | Audio test method and system for earphone microphone and receiver of mobile terminal |
CN103179240A (en) * | 2011-12-20 | 2013-06-26 | 比亚迪股份有限公司 | Audio test method and system for mobile terminal |
US20130272527A1 (en) * | 2011-01-05 | 2013-10-17 | Koninklijke Philips Electronics N.V. | Audio system and method of operation therefor |
-
2013
- 2013-11-25 CN CN201310603874.1A patent/CN104661169B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001033853A1 (en) * | 1999-10-18 | 2001-05-10 | Kim Jong Hae | Addressable television broadcasting system |
CN1758226A (en) * | 2004-10-09 | 2006-04-12 | 鸿富锦精密工业(深圳)有限公司 | The method of the automatic detection computations machine of loop-type audio frequency apparatus playing function |
CN101426167A (en) * | 2007-10-30 | 2009-05-06 | 中兴通讯股份有限公司 | Audio test system and method |
US20130272527A1 (en) * | 2011-01-05 | 2013-10-17 | Koninklijke Philips Electronics N.V. | Audio system and method of operation therefor |
CN102164057A (en) * | 2011-03-18 | 2011-08-24 | 深圳市广和通实业发展有限公司 | Device and method for automatically testing communication module |
CN103179495A (en) * | 2011-12-20 | 2013-06-26 | 比亚迪股份有限公司 | Audio test method and system for earphone microphone and receiver of mobile terminal |
CN103179240A (en) * | 2011-12-20 | 2013-06-26 | 比亚迪股份有限公司 | Audio test method and system for mobile terminal |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423168A (en) * | 2016-05-23 | 2017-12-01 | 华为技术有限公司 | Method of testing and test device |
CN106791825A (en) * | 2016-12-23 | 2017-05-31 | 深圳创维数字技术有限公司 | A kind of audio automated testing method and terminal |
CN109510636A (en) * | 2018-10-31 | 2019-03-22 | 华勤通讯技术有限公司 | Receive test method, device, medium and the equipment of FM signal function |
CN111726740A (en) * | 2019-03-22 | 2020-09-29 | 北京京东尚科信息技术有限公司 | Electronic equipment testing method and device |
CN112291696A (en) * | 2019-07-23 | 2021-01-29 | 深圳市韶音科技有限公司 | Audio chip testing method, storage device and computer equipment |
CN111163310A (en) * | 2019-12-31 | 2020-05-15 | 深圳Tcl新技术有限公司 | Television audio test method, device, equipment and computer readable storage medium |
CN111163310B (en) * | 2019-12-31 | 2022-07-08 | 深圳Tcl新技术有限公司 | Television audio test method, device, equipment and computer readable storage medium |
WO2021147381A1 (en) * | 2020-01-21 | 2021-07-29 | 上海万物新生环保科技集团有限公司 | Method and device for testing listening module of terminal device |
CN113938806A (en) * | 2021-10-12 | 2022-01-14 | 台湾立讯精密有限公司 | Noise detection device and method thereof |
CN114268893A (en) * | 2021-12-20 | 2022-04-01 | 歌尔科技有限公司 | Method and device for detecting abnormal playing of Bluetooth audio device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104661169B (en) | 2018-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104661169A (en) | Audio testing method and device | |
US9596553B2 (en) | Apparatus and method for performing an audio measurement sweep | |
CN101448180B (en) | Test system of mobile telephone speaker | |
CN101202087B (en) | Device and method for testing audio sound-recording | |
CN104244161A (en) | Method and device for testing equipment with voice playing function and voice recording function | |
CN110337055A (en) | Detection method, device, electronic equipment and the storage medium of speaker | |
CN105530565A (en) | Automatic sound equalization device | |
CN111065035B (en) | Bone conduction earphone testing method and testing system | |
CN112017687B (en) | Voice processing method, device and medium of bone conduction equipment | |
US8050422B2 (en) | Audio test apparatus capable of decreasing noise influence in process of audio device testing and method thereof | |
CN103179496A (en) | Audio test method and system for earphone microphone and receiver of mobile terminal | |
US20210306116A1 (en) | Measuring and Evaluating a Test Signal Generated by a Device Under Test (DUT) | |
US9633667B2 (en) | Adaptive audio signal filtering | |
CN101192182B (en) | Audio- playback test device and method | |
CN107371115A (en) | A kind of detection method, storage medium and the terminal of complete machine loudspeaker performance | |
WO2021102020A1 (en) | In-sync digital waveform comparison to determine pass/fail results of a device under test (dut) | |
Hromadová et al. | Frequency response of smartphones at the upper limit of the audible range | |
CN101600132A (en) | Method and device at portable handheld device adjusted audio file play effect | |
CN112995882B (en) | Intelligent equipment audio open loop test method | |
CN213186560U (en) | Audio test system | |
US9136814B2 (en) | Method and system of equalization pre-preocessing for sound receivng system | |
CN103634730A (en) | Audio parameter automatic adjustment system and method used for mobile terminal assembling line | |
CN104078049B (en) | Signal processing apparatus and signal processing method | |
Irrgang et al. | Fast and Sensitive End-of-Line Testing | |
CN103391343B (en) | Bluetooth phone function test system and method of Bluetooth multimedia |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |