CN111163310B - Television audio test method, device, equipment and computer readable storage medium - Google Patents
Television audio test method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN111163310B CN111163310B CN201911424424.XA CN201911424424A CN111163310B CN 111163310 B CN111163310 B CN 111163310B CN 201911424424 A CN201911424424 A CN 201911424424A CN 111163310 B CN111163310 B CN 111163310B
- Authority
- CN
- China
- Prior art keywords
- test
- audio
- test audio
- television
- audio signal
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N2017/006—Diagnosis, testing or measuring for television systems or their details for television sound
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The invention discloses a television audio test method, a device, a television and a computer readable storage medium, wherein the television audio test method comprises the following steps: acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency; obtaining a test audio signal corresponding to the test audio file based on the test audio file; judging whether a first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency or not; and if so, determining that the test audio channel is qualified for detection. The invention improves the testing efficiency of the audio channel of the television.
Description
Technical Field
The present invention relates to the field of television technologies, and in particular, to a method, an apparatus, and a device for testing television audio, and a computer-readable storage medium.
Background
At present, Audio channels of a television include a loudspeaker, an earphone, an SPDIF (Sony/Philips Digital Interface), a coaxial channel, and the like, and channels such as DVI (Digital Visual Interface), AVI (Audio Video Interleaved), HDMI (High Definition Multimedia Interface), USB (Universal Serial Bus), VOD (Video on Demand system) and the like all need to be tested. Therefore, how to improve the testing efficiency of the audio channel of the television becomes a technical problem to be solved urgently at present.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a television audio testing method, a device, equipment and a computer readable storage medium, and aims to solve the technical problem that the testing efficiency of an audio channel of a television is low in the prior art.
In order to achieve the above object, the present invention provides a television audio testing method, which includes:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file;
judging whether a first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency or not;
and if so, determining that the test audio channel is qualified for detection.
Optionally, after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method includes:
acquiring a preset lowest amplitude and a preset highest amplitude corresponding to the set volume;
determining a test main frequency in the test audio signal, and acquiring a first amplitude corresponding to the test main frequency;
judging whether the first amplitude is larger than the preset lowest amplitude and smaller than the preset highest amplitude;
and if so, determining that the test audio channel is qualified for detection.
Optionally, after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method further includes:
acquiring other test frequencies except the test main frequency in the test audio signal, and determining second amplitude values of the other test frequencies;
judging whether the second amplitude value is smaller than a preset noise threshold value or not;
and if so, determining that the test audio channel is qualified for detection.
Optionally, after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method further includes:
detecting whether the set volume is the lowest volume;
if so, acquiring a test main frequency in the test audio signal, and acquiring a third amplitude corresponding to the test main frequency;
judging whether the third amplitude is smaller than a preset highest amplitude corresponding to the lowest volume;
and if so, determining that the test audio channel is qualified for detection.
Optionally, the step of obtaining a test audio signal corresponding to the test audio file based on the test audio file includes:
and performing fast Fourier transform on the test audio file according to an audio dominant frequency module in the detection terminal to obtain a spectrogram corresponding to the test audio file, and obtaining the test audio signal corresponding to the test audio file according to the spectrogram.
Optionally, the test audio channel comprises at least one of a headphone channel, a speaker channel, a coaxial channel, and an SPDIF channel.
Optionally, the step of obtaining a test audio file corresponding to a test audio channel in the television based on the standard audio signal and the set volume of the detection terminal includes:
acquiring the set volume of the detection terminal, and sending the set volume to the television; the television sends a first audio to a test audio channel in the television according to the standard audio signal output by the set volume and signal generator;
the first audio in the test audio channel is collected based on a preset collector, and the first audio is processed according to a recording audio module in the detection terminal, so that a test audio file corresponding to the test audio channel in the television is obtained.
In addition, in order to achieve the above object, the present invention further provides a television audio testing apparatus, including:
the first acquisition module is used for acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
the second obtaining module is used for obtaining a test audio signal corresponding to the test audio file based on the test audio file;
the judging module is used for judging whether a first testing frequency corresponding to the highest amplitude in the testing audio signal is the standard main frequency or not;
and the determining module is used for determining that the first test frequency is the standard main frequency, and the test audio channel is qualified in detection.
In addition, in order to achieve the above object, the present invention also provides a television audio testing device;
the television audio test device comprises: a memory, a processor, and a television audio test program stored on the memory and executable on the processor, wherein:
the television audio test program when executed by the processor implements the steps of the television audio test method as described above.
In addition, to achieve the above object, the present invention also provides a computer-readable storage medium;
the computer readable storage medium stores a television audio test program, and the television audio test program realizes the steps of the television audio test method when being executed by a processor.
The embodiment of the invention provides a television audio testing method and device, a television and a computer readable storage medium. The method comprises the steps of obtaining a test audio file according to a standard audio signal and set volume, determining a test audio signal in the test audio file, and determining that the test audio channel is qualified when a first test frequency corresponding to the highest amplitude in the test audio signal is determined to be the standard main frequency of the standard audio signal. Therefore, the phenomenon that in the prior art, a special laboratory is needed to be used and manual testing is carried out, the testing result is easily influenced by the subjectivity of testing personnel, and the testing result is inaccurate is avoided.
Drawings
FIG. 1 is a schematic diagram of a television architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a television audio testing method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus module of the television audio testing apparatus according to the present invention;
FIG. 4 is a plan view of a 2pin audio channel line of the television audio test method of the present invention;
FIG. 5 is a plan view of a 5pin audio channel line of the television audio test method of the present invention;
FIG. 6 is a flow chart of a television audio testing method according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The television comprises an audio channel, a display interface and the like.
As shown in fig. 1, the television may include: a processor 1001, e.g. a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the television may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so forth. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or the backlight when the terminal device is moved to the ear. Of course, the television may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein again.
Those skilled in the art will appreciate that the television architecture shown in fig. 1 is not intended to be limiting of the television, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a television audio test program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be configured to invoke the television audio test program stored in memory 1005 and perform the following operations:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file;
judging whether a first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency or not;
and if so, determining that the test audio channel is qualified for detection.
The invention provides a television audio test method, in one embodiment of the television audio test method, the television audio test method comprises the following steps:
step S10, acquiring a test audio file corresponding to a test audio channel in the television based on the standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
in this embodiment, the corresponding audio acquisition scheme, audio presence or absence, audio size, and audio comparison algorithm are designed according to different audio channels to perform automatic detection. And, in the present embodiment, only the 4 audio channels of the headphone channel, the speaker channel, the coaxial channel, and the SPDIF channel are exemplified, but not limited to the 4 audio channels. In this embodiment, a 3K audio is input from an HDMI (High Definition Multimedia Interface) source in a television, and whether a tone is normal from 0 to 100 in an earphone channel, a speaker channel, a coaxial channel, and an SPDIF channel, and whether a sound output is normal are determined respectively.
And in the embodiment, an audio single detection device is also provided, for example, in an earphone channel, a 3.5mm audio line is connected to a PC (detection terminal), and a PC sound card is used for collecting sound. A3.5 mm audio port device A is developed in a horn channel, a horn wire is connected to one end of the device A, a 3.5mm audio port is connected to the other end of the device A, and the device A is connected to a PC (personal computer) sound card to collect sound, wherein a 2pin horn port is connected to a 3.5mm audio port in a wiring mode, as shown in FIG. 4, two ends of the horn wire are CN1 and CN2 respectively, and the corresponding relation is that red P1 at CN1 is connected with red P1 at CN2, black P2 at CN1 is connected with black P2 at CN2, and a back view at CN1 and CN2 is free of salient points and convex strips (wide buckle). Similarly, as shown in fig. 5, the connection mode of the 5pin bell mouth to the 3.5mm audio mouth is that the line 1 at CN1 is connected with the line 1 at CN2, the line 2 at CN1 is connected with the line 2 at CN2, the line 3 at CN1 is connected with the line 3 at CN2, and the line 4 at CN1 is connected with the line 4 at CN 2. In the coaxial channel, a coaxial to 3.5mm audio line is connected to a PC and a PC sound card is used for collecting sound, and in the SPDIF channel, an SPDIF to 3.5mm audio line is connected to the PC and a PC sound card is used for collecting sound.
In this embodiment, a communication connection between the television and a detection terminal (the detection terminal is used for testing the audio of the television, and may be an audio single detection device as described above) is established, and a standard audio signal output by the signal generator is accessed, and a standard main frequency of the standard audio signal is determined, and then the audio signal is output to a test audio channel in the television according to a set volume (which may be any volume value) sent by the detection terminal. And the detection terminal can acquire a test audio file corresponding to the test audio channel in the television according to the standard audio signal and the set volume. Wherein the standard audio signal comprises a standard main frequency.
It should be noted that, because there are multiple audio channels in the television, multiple audio channels can be tested simultaneously, that is, there are multiple test audio channels, and the test can also be performed separately, and when multiple test audio channels are detected, each channel audio line can be accessed to a professional PC sound card (including 2 3.5mm interfaces, coaxial interfaces, and spdif interfaces), and multiple threads of script are used to collect 4 channels of audio signals, and analyze them one by one. Or each channel audio line can be accessed into the audio matrix device, the audio matrix device is controlled by the script to receive any channel audio, and the audio is analyzed after being collected, so that the test audio file corresponding to each test audio channel is obtained.
Since the sound volume in a current terminal such as a television is generally 0 to 100, the set sound volume may be any sound volume between 0 and 100, for example, 50, in the present embodiment. When the television is built with an audio test device (namely, a detection terminal), after receiving an audio signal, the infrared emission remote control code in the audio test device can be controlled, the volume is set to be set, audio under all test audio channels in the television, such as audio under an earphone channel, a loudspeaker channel, a coaxial channel, an SPDIF channel and the like, is respectively collected, and a recording file (namely, a test audio file) is recorded through a recording audio interface, wherein the recording audio interface can be used for reading, writing, playing and recording sound through a pyAudio library. And the original audio signal (namely the standard audio signal sent by the signal generator) is used as an analog signal, and three important parameters of the number of channels, the sampling frequency and the quantization bit number are set and stored as a digital signal.
Step S20, obtaining a test audio signal corresponding to the test audio file based on the test audio file;
after the test audio file is acquired, it is further required to determine whether the set volume is the lowest volume (that is, when the set volume is 0), and if not, an audio dominant frequency module in the detection terminal may be called to analyze the test audio file, so as to obtain a test audio signal in the test audio file. The test audio file is analyzed according to an audio main frequency module in the detection terminal, that is, a Fast Fourier Transform (FFT) module provided by Scipy (application program) performs FFT on the recorded voice signal, and further performs spectrum analysis on the audio file. And iteratively testing the test audio signal corresponding to the audio file based on the spectral analysis result. Among these, due to the symmetry of the fourier transform: after the FFT only half the interval of frequencies is taken. The formula is as follows:
where F (t) is a periodic function of t, F (t) is a pre-image of F (ω), ω is frequency, t is time, e is the base of the natural logarithm, i is the imaginary unit, and d is a Fourier coefficient.
In the spectrogram, the amplitude value corresponding to the test main frequency is greater than a preset threshold value, and the amplitude value (corresponding to the frequency except the test main frequency) is lower than the threshold value. Different channels of a two-channel audio file may be detected.
However, if the set volume is the lowest volume, the audio size module in the detection terminal needs to be called to analyze the test audio file, so as to obtain a test audio signal corresponding to the test audio file. Under different volumes, the dominant frequency amplitude of the same single-frequency sound is increased along with the increase of the volume, and the volume can be embodied by detecting the dominant frequency amplitude. I.e. the test audio file is parsed by the audio size interface.
Step S30, judging whether the first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency;
after the test audio signal is obtained, it is also necessary to determine whether the first test frequency corresponding to the highest amplitude in the test audio signal is the same as the standard main frequency in the standard audio signal. If the first test frequency is found to be the same as the standard main frequency in the standard audio signal through judgment, the test audio channel corresponding to the test audio file where the first test frequency is located can be determined to be qualified. If the first test frequency is different from the standard main frequency in the standard audio signal, the test audio channel corresponding to the test audio file where the first test frequency is located can be determined to be unqualified. It should be noted that the precondition for determining whether the first test frequency is the standard main frequency is to perform the operation when the set volume is not the lowest volume. The first test frequency is the frequency with the highest amplitude in the test audio signal.
And step S40, if yes, determining that the target audio channel is qualified for detection.
And when the first test frequency is found to be the same as the standard main frequency in the standard audio signal through judgment, the test audio channel corresponding to the test audio file where the first test frequency is located can be determined to be qualified.
In addition, when the test audio signal corresponding to the test audio file is acquired and the set volume is not the lowest volume, whether the test main frequency in the test audio signal is within a certain range or not, such as whether the amplitude of the test main frequency is within a certain range or not, can be detected. And testing other testing frequencies except the testing main frequency in the testing audio signal to determine whether the testing audio channel corresponding to the testing audio file has noise. And when the set volume is the lowest volume, only detecting whether the amplitude of the test main frequency in the test audio signal is smaller than the preset highest amplitude corresponding to the lowest volume. And determining whether the test audio channel is qualified according to the detection result.
In addition, to assist understanding of the audio channel detection flow scheme in the present embodiment, the following description is made by way of example.
For example, as shown in fig. 6, when a television starts to perform audio channel detection, an automatic audio test device, i.e., an earphone channel, is set up first, a 3.5mm audio cable is connected to a PC, and a PC sound card collects sound; a loudspeaker channel, a 3.5mm audio port device A is developed, a loudspeaker line is connected to one end of the device A, a 3.5mm audio line is connected to the other end of the device A, the device A is connected to a PC, and a PC sound card is used for collecting sound; the coaxial channel is coaxially connected to a PC through a 3.5mm audio cable, and the sound is collected by a PC sound card; and the SPDIF channel is connected with a PC through an SPDIF to 3.5mm audio line, and the sound is collected by the PC sound card. And then, a TV access signal generator outputs an HDMI audio signal (standard audio signal), wherein the standard audio signal comprises: standard main frequency (T). And automatically controlling the infrared emission remote control code, setting the volume to be 50, respectively collecting the audio frequencies of an earphone channel, a loudspeaker channel, a coaxial channel and an SPDIF channel, and performing reading, writing, playing and recording of the sound through recording an audio interface recording file, namely, through a pyAudio library. The standard audio signal is an analog signal, and is stored as a digital signal by setting three important parameters of the number of channels, the sampling frequency and the quantization bit number, namely, a test audio file corresponding to each test audio channel in the television is obtained. And then, calling a main frequency interface to analyze 4 recording files one by one to obtain a test audio signal corresponding to the test audio file, and obtaining amplitude values corresponding to all frequencies, namely, performing fast Fourier transform on the recorded voice signal through a fast Fourier transform module provided by a Scipy (application program), and further performing spectrum analysis on the audio file to obtain amplitude values corresponding to all frequencies in the test audio signal, and detecting whether the frequency (first test frequency) with the highest amplitude is T, if not, failing to verify the main frequency, and if so, passing the main frequency verification. And detecting other frequency amplitude values, determining whether the other frequency amplitude values are larger than a preset noise threshold value N (50), if so, determining that the detection of the tested audio channel is unqualified, the detection of the sound effect fails, and noise exists, otherwise, determining that the detection of the tested audio channel is qualified, namely no noise or noise is in an acceptable range. It should be noted that, when detecting the audio channel, it is further necessary to determine whether the first amplitude ZN (50) corresponding to the test main frequency is greater than the preset minimum amplitude ZL (50) and smaller than the preset maximum amplitude ZH (50), that is, ZL (50) < ZN (50) < ZH (50), if yes, the volume is determined to be correct, that is, the test audio channel is determined to be qualified, and if not, the volume is determined to be failed, that is, the test audio channel is determined to be unqualified.
And when the volume is 50, after each audio channel is detected, the volume can be set to be 0 by automatically controlling an infrared emission remote control code, 4 recording files are analyzed one by calling an audio interface, whether the third amplitude of the test main frequency in the test audio signal is smaller than a threshold ZH (0) when the volume is 0 or not is judged, if yes, the judgment is correct, and if not, the judgment is failed. And summarizing test results until each test is finished. Where ZN (50) is the actual measured first amplitude (the amplitude corresponding to the test main frequency in the test audio signal) at the current volume of 50. ZL (50) is a preset minimum amplitude set when the current volume is 50 (the preset minimum amplitude may be an amplitude set in advance by the user). ZH (50) is a preset maximum amplitude corresponding to a current volume of 50 (the preset minimum amplitude may be an amplitude set in advance by a user, and the preset maximum amplitude is greater than the preset minimum amplitude). N (50) is a preset noise threshold corresponding to a current volume of 50 (the preset noise threshold may be any value set by the user). ZH (0) is the corresponding preset maximum amplitude when the current volume is 0.
In the embodiment, a test audio file corresponding to a test audio channel in the television is acquired by detecting the set volume of a terminal based on a standard audio signal; wherein the standard audio signal comprises: standard main frequency; obtaining a test audio signal corresponding to the test audio file based on the test audio file; judging whether a first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency or not; and if so, determining that the test audio channel is qualified for detection. The test audio channel is determined to be qualified when the first test frequency corresponding to the highest amplitude in the test audio signals is determined to be the standard main frequency of the standard audio signals. Therefore, the problem that a special laboratory needs to be adopted in the prior art and manual testing is carried out, so that the testing result is easily influenced by the subjectivity of a tester, the phenomenon that the testing result is not necessarily accurate occurs, the accuracy of testing each audio channel of the television is improved, and because each audio channel of the television is more and the testing workload is large, the phenomenon that the prior art is summarized and manually tested, the testing efficiency is low is avoided, and the testing efficiency of the audio channel of the television is improved.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the television audio testing method according to the present invention is further provided, where this embodiment is step S20 of the first embodiment of the present invention, and after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method includes:
step a, acquiring a preset lowest amplitude and a preset highest amplitude corresponding to the set volume;
in this embodiment, after the test audio signal is acquired and it is detected that the set volume is not the lowest volume, if the user needs to detect the test main frequency in the test audio signal, a preset lowest amplitude corresponding to the set volume needs to be acquired, and a preset highest amplitude corresponding to the set volume needs to be acquired. The preset minimum amplitude and the preset maximum amplitude can be any values set by a user, but the preset maximum amplitude needs to be larger than the preset minimum amplitude. And different set volumes correspond to different preset minimum amplitudes and preset maximum amplitudes.
B, determining a test main frequency in the test audio signal, and acquiring a first amplitude corresponding to the test main frequency;
after the test audio signal is obtained, a spectrogram of the test audio signal can be obtained, amplitudes corresponding to various frequencies in the test audio signal are obtained according to the spectrogram, a test main frequency to be tested is determined in the test audio, and the amplitude of the test main frequency, namely a first amplitude, is obtained in the spectrogram.
Step c, judging whether the first amplitude is larger than the preset lowest amplitude and smaller than the preset highest amplitude;
after the first amplitude is obtained, it is necessary to determine whether the first amplitude is greater than a preset minimum amplitude and smaller than a preset maximum amplitude. If the first amplitude is smaller than the preset lowest amplitude, determining that the test audio channel is unqualified in detection; if the first amplitude is smaller than or equal to the preset highest amplitude, determining that the test audio channel is unqualified; and if the first amplitude is larger than the preset lowest amplitude and smaller than the preset highest amplitude, determining that the test audio channel is qualified for detection.
And d, if so, determining that the test audio channel is qualified for detection.
And when the first amplitude is found to be larger than the preset lowest amplitude and smaller than the preset highest amplitude through judgment, determining that the test audio channel is qualified for detection.
In this embodiment, when the first amplitude of the test main frequency is greater than the preset lowest amplitude and less than the preset highest amplitude, it is determined that the test audio channel is qualified for detection, so that the test efficiency of the audio channel of the television is improved.
Further, after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method further includes:
step e, acquiring other test frequencies except the test main frequency in the test audio signal, and determining second amplitude values of the other test frequencies;
in this embodiment, after the test audio signal is acquired and it is detected that the set volume is not the lowest volume, if the user needs to detect whether the test audio channel has noise, other test frequencies in the test audio channel except the test main frequency may be acquired, and amplitude values of other test frequencies, that is, the second amplitude value, are acquired in a spectrogram corresponding to the test audio signal. Wherein the other test frequency may be any test frequency in the test audio signal other than the test main frequency.
Step f, judging whether the second amplitude value is smaller than a preset noise threshold value;
after the second amplitude value is obtained, the preset noise threshold corresponding to other testing frequencies currently being tested is also required to be obtained, whether the second amplitude value is smaller than the preset noise threshold is judged, and then different operations are executed according to different judgment results. The preset noise threshold may be any value set by a user. And in the detection terminal, different preset noise thresholds corresponding to different set volumes can be set in advance. That is, when the set sound volume is different, the preset noise threshold is also different.
And g, if the detection result is less than the preset threshold, determining that the test audio channel is qualified.
When the second amplitude value is found to be smaller than the preset noise threshold value through judgment, the detection of the test audio channel can be determined to be qualified, but if the second amplitude value is larger than or equal to the preset noise threshold value, the detection of the test audio channel can be determined to be unqualified.
In this embodiment, when it is determined that the second amplitude values of the other test frequencies in the test audio signal are smaller than the preset noise threshold, it is determined that the test audio channel is qualified in detection, so that the test efficiency of the audio channel of the television is improved.
Further, after the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file, the method further includes:
h, detecting whether the set volume is the lowest volume;
after the test audio signal is acquired, it is also necessary to detect whether the set volume is the lowest volume, if not, the aforementioned detection step may be executed, but if the set volume is the lowest volume, it is necessary to detect the test main frequency in the test audio signal.
Step k, if yes, obtaining a test main frequency in the test audio signal, and obtaining a third amplitude corresponding to the test main frequency;
and when the set volume is found to be the lowest volume through judgment, acquiring the test main frequency in the test audio signal, and acquiring the amplitude of the test main frequency, namely the third amplitude, in a spectrogram corresponding to the test audio signal.
Step m, judging whether the third amplitude is smaller than a preset highest amplitude corresponding to the lowest volume;
and acquiring a preset highest amplitude corresponding to the lowest volume set by the user in advance, judging whether the third amplitude is smaller than the preset highest amplitude, and executing different operations according to different judgment results.
And n, if the detection result is smaller than the preset threshold, determining that the test audio channel is qualified.
And when the third amplitude is found to be smaller than the preset highest amplitude through judgment, determining that the test audio channel is qualified for detection. If the third amplitude is greater than or equal to the preset maximum amplitude, however, the test audio channel may be determined to be failed.
In this embodiment, when the volume is set to be the lowest volume and the third amplitude of the test main frequency in the test audio signal is smaller than the preset highest amplitude corresponding to the lowest volume, it is determined that the test audio channel is qualified for detection, so that the test efficiency of the audio channel of the television is improved.
Further, the step of obtaining a test audio signal corresponding to the test audio file based on the test audio file includes:
and p, performing fast Fourier transform on the test audio file according to an audio main frequency module in the detection terminal to obtain a spectrogram corresponding to the test audio file, and obtaining the test audio signal corresponding to the test audio file according to the spectrogram.
In this embodiment, a fast fourier transform is performed on a test audio file according to an audio main frequency module in a detection terminal to obtain a spectrogram corresponding to the test audio file, and amplitude values corresponding to all frequencies of the test audio file are obtained in the spectrogram, including amplitude values corresponding to other frequencies and amplitude values corresponding to a target frequency. And then, obtaining a test audio signal corresponding to the test audio file according to the spectrogram.
In the embodiment, the test audio file is subjected to Fourier transform to obtain the spectrogram, and the test audio signal is obtained according to the spectrogram, so that the accuracy of the obtained test audio signal is guaranteed.
Further, in the present embodiment, the test audio channel includes at least one of a headphone channel, a speaker channel, a coaxial channel, and an SPDIF channel, but is not limited to these audio channels.
Further, on the basis of any one of the first to second embodiments of the present invention, a third embodiment of the television audio testing method of the present invention is further provided, where this embodiment is step S10 of the first embodiment of the present invention, and a refinement of the step of obtaining the test audio file corresponding to the test audio channel in the television based on the standard audio signal and the set volume of the detection terminal includes:
step x, acquiring the set volume of the detection terminal, and sending the set volume to the television, wherein the television sends a first audio frequency to a test audio frequency channel in the television according to the set volume and the standard audio frequency signal output by the signal generator;
in this embodiment, the set volume in the detection terminal is obtained first, and the set volume is sent to the television. And the television will receive the standard audio signal output by the signal generator before receiving the set volume, and then the television will send an audio signal, i.e. a first audio, to the test audio channel in the television according to the set volume and the standard audio signal.
And step y, acquiring the first audio in the test audio channel based on a preset collector, and processing the first audio according to a recording audio module in the detection terminal to obtain a test audio file corresponding to the test audio channel in the television.
The detection terminal collects a first audio frequency of the test audio channel under the set volume based on a preset collector and processes the obtained first audio frequency according to a recording audio module of the detection terminal so as to obtain a test audio file corresponding to the test audio channel in the television. The collector comprises a script multithreading collector and an audio matrix device. That is, in this embodiment, each audio signal may be collected and analyzed through multiple threads of the script, or the script may control the audio matrix device to receive any channel audio, and the audio may be collected and analyzed.
In this embodiment, the first audio corresponding to the test audio channel is acquired according to the set volume and the collector, and the test audio file corresponding to the first audio channel is acquired according to the recorded audio module, so that the accuracy of the acquired test audio file is guaranteed.
In addition, referring to fig. 3, an embodiment of the present invention further provides a television audio testing apparatus, where the television audio testing apparatus includes:
the first obtaining module A10 is configured to obtain a test audio file corresponding to a test audio channel in the television based on a standard audio signal and a set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
a second obtaining module a20, configured to obtain, based on the test audio file, a test audio signal corresponding to the test audio file;
a judging module a30, configured to judge whether a first test frequency corresponding to a highest amplitude in the test audio signal is the standard main frequency;
a determining module a40, configured to determine that the first test frequency is a standard main frequency, and the test audio channel is qualified for detection.
Optionally, the second obtaining module a20 is configured to:
acquiring a preset lowest amplitude and a preset highest amplitude corresponding to the set volume;
determining a test main frequency in the test audio signal, and acquiring a first amplitude corresponding to the test main frequency;
judging whether the first amplitude is larger than the preset lowest amplitude and smaller than the preset highest amplitude;
and if so, determining that the test audio channel is qualified for detection.
Optionally, the second obtaining module a20 is configured to:
acquiring other test frequencies except the test main frequency in the test audio signal, and determining second amplitude values of the other test frequencies;
judging whether the second amplitude value is smaller than a preset noise threshold value or not;
if the test result is less than the preset threshold, the test audio channel is determined to be qualified.
Optionally, the second obtaining module a20 is configured to:
detecting whether the set volume is the lowest volume;
if so, acquiring a test main frequency in the test audio signal, and acquiring a third amplitude corresponding to the test main frequency;
judging whether the third amplitude is smaller than a preset highest amplitude corresponding to the lowest volume;
and if so, determining that the test audio channel is qualified for detection.
Optionally, the second obtaining module a20 is configured to:
and performing fast Fourier transform on the test audio file according to an audio dominant frequency module in the detection terminal to obtain a spectrogram corresponding to the test audio file, and obtaining the test audio signal corresponding to the test audio file according to the spectrogram.
Optionally, the first obtaining module a10 is configured to:
the test audio channel includes at least one of a headphone channel, a speaker channel, a coaxial channel, and an SPDIF channel.
Optionally, the first obtaining module a10 is configured to:
acquiring the set volume of the detection terminal, and sending the set volume to the television; the television sends a first audio to a test audio channel in the television according to the standard audio signal output by the set volume and signal generator;
the first audio in the test audio channel is collected based on a preset collector, and the first audio is processed according to a recording audio module in the detection terminal, so that a test audio file corresponding to the test audio channel in the television is obtained.
The steps implemented by each functional module of the television audio testing apparatus can refer to each embodiment of the television audio testing method of the present invention, and are not described herein again.
The invention also provides a television audio test device, which comprises: a memory, a processor, a communication bus, and a television audio test program stored on the memory:
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the television audio test program to realize the steps of the television audio test method.
The present invention also provides a computer readable storage medium storing one or more programs which are also executable by one or more processors for implementing the steps of the above-described embodiments of television audio testing.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the television audio testing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a television, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A television audio testing method is characterized by comprising the following steps:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file, wherein the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file comprises: if the set volume is the lowest volume, calling an audio size module in the detection terminal to analyze the test audio file to obtain a test audio signal in the test audio file;
judging whether a first test frequency corresponding to the highest amplitude in the test audio signal is the standard main frequency or not;
and if so, determining that the test audio channels are qualified for detection, wherein the number of the test audio channels is multiple.
2. The television audio test method of claim 1, wherein the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file further comprises:
and performing fast Fourier transform on the test audio file according to an audio dominant frequency module in the detection terminal to obtain a spectrogram corresponding to the test audio file, and obtaining the test audio signal corresponding to the test audio file according to the spectrogram.
3. The television audio testing method of claim 1, wherein the test audio channel comprises at least one of a headphone channel, a speaker channel, a coaxial channel, and an SPDIF channel.
4. The method for testing television audio according to claim 1, wherein the step of obtaining a test audio file corresponding to a test audio channel in the television based on the standard audio signal and the set volume of the detection terminal comprises:
acquiring the set volume of the detection terminal, and sending the set volume to the television; the television sends a first audio to a test audio channel in the television according to the standard audio signal output by the set volume and signal generator;
the first audio in the test audio channel is collected based on a preset collector, and the first audio is processed according to a recording audio module in the detection terminal, so that a test audio file corresponding to the test audio channel in the television is obtained.
5. A method for testing television audio, the method further comprising:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file, wherein the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file comprises: if the set volume is the lowest volume, calling an audio size module in the detection terminal to analyze the test audio file to obtain a test audio signal in the test audio file;
acquiring a preset lowest amplitude and a preset highest amplitude corresponding to the set volume;
determining a test main frequency in the test audio signal, and acquiring a first amplitude corresponding to the test main frequency;
judging whether the first amplitude is larger than the preset lowest amplitude and smaller than the preset highest amplitude;
and if so, determining that the test audio channel is qualified for detection.
6. A method for testing television audio, the method further comprising:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file, wherein the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file comprises: if the set volume is the lowest volume, calling an audio size module in the detection terminal to analyze the test audio file to obtain a test audio signal in the test audio file;
acquiring other test frequencies except the test main frequency in the test audio signal, and determining second amplitude values of the other test frequencies;
judging whether the second amplitude value is smaller than a preset noise threshold value or not;
and if so, determining that the test audio channel is qualified for detection.
7. A method for testing television audio, the method further comprising:
acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
obtaining a test audio signal corresponding to the test audio file based on the test audio file, wherein the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file comprises: if the set volume is the lowest volume, calling an audio size module in the detection terminal to analyze the test audio file to obtain a test audio signal in the test audio file;
detecting whether the set volume is the lowest volume;
if so, acquiring a test main frequency in the test audio signal, and acquiring a third amplitude corresponding to the test main frequency;
judging whether the third amplitude is smaller than a preset highest amplitude corresponding to the lowest volume;
and if so, determining that the test audio channel is qualified for detection.
8. A television audio testing apparatus, the television audio testing apparatus comprising:
the first acquisition module is used for acquiring a test audio file corresponding to a test audio channel in the television based on a standard audio signal and the set volume of the detection terminal; wherein the standard audio signal comprises: standard main frequency;
a second obtaining module, configured to obtain a test audio signal corresponding to the test audio file based on the test audio file, where the step of obtaining the test audio signal corresponding to the test audio file based on the test audio file includes: if the set volume is the lowest volume, calling an audio size module in the detection terminal to analyze the test audio file to obtain a test audio signal in the test audio file;
the judging module is used for judging whether a first testing frequency corresponding to the highest amplitude in the testing audio signal is the standard main frequency or not;
and the determining module is used for determining that the first test frequency is the standard main frequency, and the test audio channels are qualified in detection, wherein the number of the test audio channels is multiple.
9. A television audio testing apparatus, characterized in that the television audio testing apparatus comprises: memory, processor and a television audio test program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the television audio test method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a television audio test program which, when executed by a processor, implements the steps of the television audio test method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911424424.XA CN111163310B (en) | 2019-12-31 | 2019-12-31 | Television audio test method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911424424.XA CN111163310B (en) | 2019-12-31 | 2019-12-31 | Television audio test method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111163310A CN111163310A (en) | 2020-05-15 |
CN111163310B true CN111163310B (en) | 2022-07-08 |
Family
ID=70560698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911424424.XA Active CN111163310B (en) | 2019-12-31 | 2019-12-31 | Television audio test method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111163310B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI792607B (en) | 2021-10-12 | 2023-02-11 | 台灣立訊精密有限公司 | Noise detection device and method thereof |
CN113938806B (en) * | 2021-10-12 | 2024-08-27 | 台湾立讯精密有限公司 | Noise detection device and method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101089641A (en) * | 2007-07-12 | 2007-12-19 | 北京中星微电子有限公司 | Method system for implementing investigating audio-frequency equipment and audio-frequency equipment |
CN102014333A (en) * | 2009-09-04 | 2011-04-13 | 鸿富锦精密工业(深圳)有限公司 | Test method for sound system of computer |
CN104661169A (en) * | 2013-11-25 | 2015-05-27 | 深圳中电长城信息安全系统有限公司 | Audio testing method and device |
CN106791825A (en) * | 2016-12-23 | 2017-05-31 | 深圳创维数字技术有限公司 | A kind of audio automated testing method and terminal |
CN107968943A (en) * | 2017-12-18 | 2018-04-27 | 深圳市双翼科技股份有限公司 | Set-top box test method and terminal device |
-
2019
- 2019-12-31 CN CN201911424424.XA patent/CN111163310B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101089641A (en) * | 2007-07-12 | 2007-12-19 | 北京中星微电子有限公司 | Method system for implementing investigating audio-frequency equipment and audio-frequency equipment |
CN102014333A (en) * | 2009-09-04 | 2011-04-13 | 鸿富锦精密工业(深圳)有限公司 | Test method for sound system of computer |
CN104661169A (en) * | 2013-11-25 | 2015-05-27 | 深圳中电长城信息安全系统有限公司 | Audio testing method and device |
CN106791825A (en) * | 2016-12-23 | 2017-05-31 | 深圳创维数字技术有限公司 | A kind of audio automated testing method and terminal |
CN107968943A (en) * | 2017-12-18 | 2018-04-27 | 深圳市双翼科技股份有限公司 | Set-top box test method and terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN111163310A (en) | 2020-05-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110719461B (en) | Audio and video equipment testing method and device and computer readable storage medium | |
CN104185132B (en) | Channel configuration method, intelligent terminal and corresponding system | |
CN108401217B (en) | Signal output and TWS earphone testing method, terminal, device and storage medium | |
CN105306931A (en) | Smart TV anomaly detection method and device | |
CN111163310B (en) | Television audio test method, device, equipment and computer readable storage medium | |
US10334242B1 (en) | Test system and test method for audio-video device | |
CN112017693B (en) | Audio quality assessment method and device | |
CN110347875B (en) | Video scene classification method and device, mobile terminal and storage medium | |
CN111179907B (en) | Speech recognition test method, device, equipment and computer readable storage medium | |
US20080133036A1 (en) | Apparatus and method for playback test | |
CN115604621A (en) | Earphone testing method, device, equipment and computer readable storage medium | |
CN106771453B (en) | Testing method and device for oscilloscope | |
US9769582B1 (en) | Audio source and audio sensor testing | |
US20140060288A1 (en) | Testing device and storage medium with testing function, and testing method | |
US9300955B2 (en) | Information processing apparatus, information processing method, and program | |
JP6958803B2 (en) | Electromagnetic information leakage evaluation device, electromagnetic information leakage evaluation method, and electromagnetic information leakage evaluation program | |
CN106210335A (en) | The detection method of a kind of audio parts duty and mobile terminal | |
CN112423124B (en) | Dynamic playing method, device and system based on large-screen video player | |
CN113488068B (en) | Audio anomaly detection method, device and computer readable storage medium | |
US11543435B2 (en) | Measurement system and method for recording context information of a measurement | |
US11166118B1 (en) | Mobile aware intermodal assistant | |
CN114302278A (en) | Headset wearing calibration method, electronic device and computer-readable storage medium | |
CN109862352B (en) | Video quality testing method, set top box and storage medium | |
US20140049649A1 (en) | Portable device and signal converting method thereof | |
CN110913211A (en) | Method for detecting MIC of set top box, computer readable storage medium and set top box |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |