CN106303877B - Audio test method and system for Windows tablet computer - Google Patents
Audio test method and system for Windows tablet computer Download PDFInfo
- Publication number
- CN106303877B CN106303877B CN201510262795.8A CN201510262795A CN106303877B CN 106303877 B CN106303877 B CN 106303877B CN 201510262795 A CN201510262795 A CN 201510262795A CN 106303877 B CN106303877 B CN 106303877B
- Authority
- CN
- China
- Prior art keywords
- earphone
- module
- recording
- test
- sound
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The invention relates to the technical field of audio testing, and discloses an audio testing method and system for a Windows tablet computer. According to the method, when the earphone is not inserted, the onboard microphone of the tablet computer is started; recording the tablet personal computer, and converting the obtained recording into a WAV audio file for playing; judging whether the recording function of an onboard microphone of the tablet computer is normal or not; when the earphone is inserted, the tablet personal computer is automatically switched to the earphone input mode; judging whether the recording function of the headset is normal or not; playing a piece of music or video by the tablet computer; judging whether the sound effect of a loudspeaker of the tablet personal computer is normal or not; and outputting a test result. The method can automatically switch the onboard microphone and the earphone jack, realize the test of the recording functions of the onboard microphone and the earphone jack, and also realize the test of the loudspeaker, and is simple, reliable and easy to realize.
Description
Technical Field
The invention relates to the technical field of audio testing, in particular to an audio testing method and system of a Windows tablet computer.
Background
In the production process of the Windows tablet computer, audio is an important component of the tablet computer, and certain reliability tests must be carried out on the tablet computer, wherein the reliability tests comprise two tests of a recording function and a loudspeaker function. When the recording function is tested, both the on-board microphone and the earphone jack of the machine need to be tested, and if any one of the tests fails, the problem of the recording function is indicated. However, in the normal test process, it is impossible to know whether the microphone is on board or the earphone jack, which brings great inconvenience to the problem analysis.
Disclosure of Invention
The invention aims to provide an audio testing method and system of a Windows tablet personal computer, aiming at solving the technical problems in the prior art, which can automatically switch between an onboard microphone and an earphone jack, realize the testing of the recording functions of the onboard microphone and the earphone jack and also realize the testing of a loudspeaker.
In order to solve the problems proposed above, the technical scheme adopted by the invention is as follows:
an audio test method of a Windows tablet computer comprises the following specific steps:
the method comprises the following steps: when the earphone is not inserted, the onboard microphone of the tablet computer is turned on;
step two: recording the tablet personal computer through an onboard microphone, and converting the obtained recording into a WAV audio file for playing;
step three: judging whether the recording function of the onboard microphone of the tablet computer is normal or not, if so, judging that the test result passes, and executing the step four; if not, judging that the test result fails, and executing the step nine;
step four: when the earphone is inserted, the tablet personal computer is automatically switched to the earphone input mode;
step five: recording the tablet personal computer through the headset of the earphone, and converting the obtained recording into a WAV audio file for playing;
step six: judging whether the recording function of the headset is normal or not, if so, judging that the test result passes, and executing a seventh step; if not, judging that the test result fails, and executing the step nine;
step seven: playing a piece of music or video by the tablet computer;
step eight: judging whether the sound effect of the loudspeaker of the tablet personal computer is normal or not, and if so, judging that the test result passes; if not, judging that the test result fails;
step nine: and outputting the test result, and finishing.
And in the second step, sound signals of the left/right sound channels of the tablet computer are sampled, and sampled data are converted into visual graphs in real time to be displayed.
An audio test system of a Windows tablet computer comprises a recording module, a conversion playing module, a test module, an output module and a switching detection module;
the switching detection module is used for switching an onboard microphone and an earphone jack of the tablet computer during audio test;
the recording module records the sound of the tablet computer and outputs the obtained sound to the conversion playing module;
the conversion playing module converts the obtained recording into a WAV audio file and plays the WAV audio file;
the test module judges whether the recording function of an onboard microphone or an earphone jack is normal or not according to the played WAV audio file; the test module also judges whether the sound effect of the loudspeaker of the tablet personal computer is normal or not;
and the output module outputs the test result of the test module.
The audio test system also comprises a sound sampling module and a conversion display module;
the sound sampling module is used for sampling sound signals of left/right sound channels of the tablet computer and outputting sampling data to the conversion display module;
and the conversion display module converts the received sampling data into a visual graph in real time and displays the visual graph to enable the sampling data to be visual.
Compared with the prior art, the invention has the beneficial effects that:
the invention can automatically switch the onboard microphone and the earphone jack, and respectively test the recording functions of the onboard microphone and the earphone microphone, and the onboard microphone and the earphone microphone can be freely switched, thereby facilitating the test, and also testing the loudspeaker of the tablet personal computer, and the method is simple, reliable and easy to realize; in addition, in the recording process, sampling is carried out and the recording is converted into a visual graph, and a visual graphical interface greatly facilitates judgment of the recording result.
Drawings
FIG. 1 is a schematic diagram of an audio testing system of the Windows tablet computer according to the present invention.
FIG. 2 is a flowchart of an audio testing method of the Windows tablet computer according to the present invention.
Fig. 3 is a schematic diagram of an automatic detection circuit of the headphone jack according to the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1, the invention provides an audio test method for a Windows tablet computer, which comprises the following specific steps:
the method comprises the following steps: when the earphone is not inserted, the onboard microphone of the tablet computer is turned on.
Step two: and recording the tablet personal computer, and converting the obtained recording into a WAV audio file for playing. In this step, the tablet personal computer is recorded through the onboard microphone.
In the recording process, the sound signals of the left/right sound channels of the tablet personal computer are sampled, and the sampled data are converted into visual graphs in real time to be displayed, so that the sampled data are visual.
Step three: judging whether the recording function of the onboard microphone of the tablet computer is normal or not, if so, judging that the test result passes, and executing the step four; if not, the test result is judged to be failed, and the step nine is executed.
Step four: when the earphone is inserted, the tablet personal computer is automatically switched to the headset input mode.
Step five: and recording the tablet personal computer through the headset of the earphone, and converting the obtained recording into a WAV audio file for playing.
Step six: judging whether the recording function of the headset is normal or not, if so, judging that the test result passes, and executing a seventh step; if not, the test result is judged to be failed, and the step nine is executed.
In the above, whether the recording functions of the earphone microphone and the onboard microphone are normal or not is judged by playing the recording.
Step seven: the tablet computer plays a piece of music or video (such as MP3) for testing the sound effect of the speaker of the tablet computer.
Step eight: judging whether the sound effect of the loudspeaker of the tablet personal computer is normal or not, and if so, judging that the test result passes; if not, the test result is judged to fail.
In the foregoing, although the sound is played through the speaker after the recording in the step two, the sound quality and the effect of the first recording and the first music are completely different, in this step, the sound effect of the speaker is mainly determined, that is, whether the sound quality effect of the music played by the speaker is normal is determined.
Step nine: and outputting the test result, and finishing.
As shown in fig. 2, the audio test system of the Windows tablet computer further provided by the present invention includes a recording module, a conversion playing module, a test module, an output module, and a switching detection module.
The switching detection module is used for switching an onboard microphone and an earphone jack of the tablet computer during audio testing, and is convenient and reliable, so that the onboard microphone and the earphone jack can be switched freely. Taking a typical headphone jack circuit as an example (see fig. 3), a pull-up resistor is connected to the test pin, which generates a signal indicating whether a headphone or other accessory is plugged into the jack. If some accessory is inserted, the detection pin will be disconnected. When no accessory is inserted into the jack, the output signal is pulled high; when an accessory is inserted into the jack, the signal is pulled low. The detection signal is connected to a microcontroller port (in this embodiment a switching detection module) which is capable of automatically switching the audio signal between the speaker (without the headset) and the headset speaker (with the headset).
The recording module records the sound of the tablet computer and outputs the obtained sound to the conversion playing module.
And the conversion playing module converts the obtained recording into a WAV audio file and plays the WAV audio file.
The test module judges whether the recording function of an onboard microphone or an earphone jack is normal or not according to the played WAV audio file; the testing module also judges whether the sound effect of the loudspeaker is normal or not after playing a piece of music through the loudspeaker of the tablet personal computer.
And the output module outputs the test result of the test module.
In the foregoing, the audio testing system further includes a sound sampling module and a conversion display module.
The sound sampling module is used for sampling sound signals of left/right sound channels of the tablet computer and outputting sampling data to the conversion display module.
And the conversion display module converts the received sampling data into a visual graph in real time and displays the visual graph to enable the sampling data to be visual.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.
Claims (2)
1. An audio test method of a Windows tablet computer is characterized in that: the test method comprises the following specific steps:
the method comprises the following steps: when the earphone is not inserted, the onboard microphone of the tablet computer is turned on; the tablet personal computer detects whether the earphone is inserted or not as follows: when no earphone is inserted into the jack, the output signal is pulled high; when an earphone is plugged into the jack, the output signal is pulled down and is connected to a microcontroller port, and the microcontroller port can automatically switch audio signals when the earphone is not available and when the earphone is available;
step two: recording the tablet personal computer through an onboard microphone, converting the obtained recording into a WAV audio file for playing, sampling sound signals of left/right sound channels of the tablet personal computer, and converting the sampled data into a visual graph in real time for displaying;
step three: judging whether the recording function of the onboard microphone of the tablet computer is normal or not, if so, judging that the test result passes, and executing the step four; if not, judging that the test result fails, and executing the step nine;
step four: when the earphone is inserted, the tablet personal computer is automatically switched to the earphone input mode;
step five: recording the tablet personal computer through the headset of the earphone, and converting the obtained recording into a WAV audio file for playing;
step six: judging whether the recording function of the headset is normal or not, if so, judging that the test result passes, and executing a seventh step; if not, judging that the test result fails, and executing the step nine;
step seven: playing a piece of music or video by the tablet computer;
step eight: judging whether the sound effect of the loudspeaker of the tablet personal computer is normal or not, and if so, judging that the test result passes; if not, judging that the test result fails; judging whether the sound effect of the loudspeaker comprises a sound effect and a tone quality effect;
step nine: and outputting the test result, and finishing.
2. An audio test system of a Windows tablet computer is characterized in that: the audio test system comprises a recording module, a conversion playing module, a sound sampling module, a conversion display module, a test module, an output module and a switching detection module;
the switching detection module is used for switching an onboard microphone and an earphone jack of the tablet computer during audio test; the detection pin of the switching detection module is connected with a pull-up resistor for detecting whether the earphone is inserted: when no earphone is plugged into the jack, the output signal is pulled high; when an earphone is plugged into the jack, the output signal is pulled down and is connected to a microcontroller port, and the microcontroller port can automatically switch audio signals when the earphone is not available and when the earphone is available;
the recording module records the sound of the tablet computer and outputs the obtained sound to the conversion playing module;
the conversion playing module converts the obtained recording into a WAV audio file and plays the WAV audio file;
the sound sampling module is used for sampling sound signals of left/right sound channels of the tablet computer and outputting sampling data to the conversion display module;
the conversion display module converts the received sampling data into a visual graph in real time and displays the visual graph to enable the sampling data to be visual;
the test module judges whether the recording function of an onboard microphone or an earphone jack is normal or not according to the played WAV audio file; the test module also judges whether the sound effect of the loudspeaker of the tablet personal computer is normal or not; judging whether the sound effect of the loudspeaker comprises a sound effect and a tone quality effect;
and the output module outputs the test result of the test module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510262795.8A CN106303877B (en) | 2015-05-21 | 2015-05-21 | Audio test method and system for Windows tablet computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510262795.8A CN106303877B (en) | 2015-05-21 | 2015-05-21 | Audio test method and system for Windows tablet computer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106303877A CN106303877A (en) | 2017-01-04 |
CN106303877B true CN106303877B (en) | 2020-10-16 |
Family
ID=57634002
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510262795.8A Active CN106303877B (en) | 2015-05-21 | 2015-05-21 | Audio test method and system for Windows tablet computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106303877B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111836180A (en) * | 2019-04-23 | 2020-10-27 | Oppo(重庆)智能科技有限公司 | Electronic equipment earphone function test system and test method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026083A (en) * | 2009-09-16 | 2011-04-20 | 沈阳晨讯希姆通科技有限公司 | Earphone test device |
CN102638756A (en) * | 2012-04-26 | 2012-08-15 | 青岛海信移动通信技术股份有限公司 | Mobile terminal voice frequency test method, test device and mobile terminal |
CN103167391A (en) * | 2011-12-12 | 2013-06-19 | 英业达股份有限公司 | Audio test system and audio test method for to-be-tested device |
CN104038606A (en) * | 2014-06-05 | 2014-09-10 | 李骥琛 | Headphone and microphone combination testing method and system |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859813B (en) * | 2005-09-28 | 2010-10-27 | 华为技术有限公司 | Signal switching method for internal and external microphone |
CN101729969A (en) * | 2008-10-27 | 2010-06-09 | 纬创资通股份有限公司 | Method and system for testing microphone of electronic device |
CN102413402A (en) * | 2010-09-26 | 2012-04-11 | 康佳集团股份有限公司 | Audio frequency control method of audio frequency output device and audio frequency output device |
TWI469648B (en) * | 2011-12-05 | 2015-01-11 | Inventec Corp | Audio testing system and audio testing method for under-testing device |
CN103179495B (en) * | 2011-12-20 | 2016-12-21 | 比亚迪股份有限公司 | The ear microphone of mobile terminal and the audio testing method of receiver and system |
CN203027489U (en) * | 2013-01-16 | 2013-06-26 | 东莞市伟旺达电子有限公司 | Indication circuit for testing earphone |
CN103945310B (en) * | 2014-04-29 | 2017-01-11 | 华为终端有限公司 | Transmission method, mobile terminal, multi-channel earphones and audio playing system |
CN104105048B (en) * | 2014-07-17 | 2017-08-25 | 福建星网视易信息系统有限公司 | Detecting system, apparatus and method for electronic equipment audio-frequency test |
CN104485117B (en) * | 2014-12-16 | 2020-12-25 | 福建星网视易信息系统有限公司 | Recording equipment detection method and system |
-
2015
- 2015-05-21 CN CN201510262795.8A patent/CN106303877B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102026083A (en) * | 2009-09-16 | 2011-04-20 | 沈阳晨讯希姆通科技有限公司 | Earphone test device |
CN103167391A (en) * | 2011-12-12 | 2013-06-19 | 英业达股份有限公司 | Audio test system and audio test method for to-be-tested device |
CN102638756A (en) * | 2012-04-26 | 2012-08-15 | 青岛海信移动通信技术股份有限公司 | Mobile terminal voice frequency test method, test device and mobile terminal |
CN104038606A (en) * | 2014-06-05 | 2014-09-10 | 李骥琛 | Headphone and microphone combination testing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106303877A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8879744B2 (en) | Audio testing system and audio testing method for device under test | |
US8855319B2 (en) | Audio signal processing apparatus and audio signal processing method | |
CN106686511A (en) | Earphone function testing method and testing system | |
CN100437506C (en) | Method for detecting audio connection function of audio receiver and computer mainframe board | |
CN104661169B (en) | A kind of audio testing method and device | |
US20090299699A1 (en) | Audio testing system and method | |
US9973855B2 (en) | Method and electronic device for controlling output depending on type of external output device | |
CN104267924A (en) | Mobile terminal and audio processing method thereof | |
CN105744325A (en) | Audio/video play control method and audio/video play control device | |
CN104038606A (en) | Headphone and microphone combination testing method and system | |
US20130083935A1 (en) | Method for testing an audio jack of a portable electronic device | |
CN106303877B (en) | Audio test method and system for Windows tablet computer | |
US20160370983A1 (en) | Method for outputting target content and terminal therefor | |
CN104754463A (en) | Switching method of internal and external microphone signals | |
CN101470647A (en) | Computer mainboard fault diagnosis apparatus | |
CN108260065B (en) | Television loudspeaker playing function online detection method and device | |
CN111124353B (en) | Control method and electronic equipment | |
US20150098577A1 (en) | Systems and methods for identifying noises | |
US10482898B2 (en) | System for robot to eliminate own sound source | |
CN103037298B (en) | Test method of sound socket of portable electronic device | |
CN210609714U (en) | Automatic testing component for microphone recording port | |
CN110113701B (en) | Hardware debugging method for analog microphone | |
US20090276065A1 (en) | Vehicle audio system for connecting portable sound generating device and method for operating the same | |
CN113419910B (en) | Audio function testing system and method | |
US20140049649A1 (en) | Portable device and signal converting method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |