CN108401217B - Signal output and TWS earphone testing method, terminal, device and storage medium - Google Patents

Signal output and TWS earphone testing method, terminal, device and storage medium Download PDF

Info

Publication number
CN108401217B
CN108401217B CN201810146643.5A CN201810146643A CN108401217B CN 108401217 B CN108401217 B CN 108401217B CN 201810146643 A CN201810146643 A CN 201810146643A CN 108401217 B CN108401217 B CN 108401217B
Authority
CN
China
Prior art keywords
audio signal
audio
signal
playing
playing terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810146643.5A
Other languages
Chinese (zh)
Other versions
CN108401217A (en
Inventor
朱向军
陈泽伟
刘火根
李飞行
钟宇文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201810146643.5A priority Critical patent/CN108401217B/en
Publication of CN108401217A publication Critical patent/CN108401217A/en
Application granted granted Critical
Publication of CN108401217B publication Critical patent/CN108401217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Abstract

The embodiment of the invention discloses a signal output and TWS earphone testing method, a terminal, equipment and a storage medium. The TWS earphone testing method comprises the following steps: the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal to be tested; and the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested. The technical scheme of the embodiment of the invention can test the synchronization performance of the TWS earphone, simplifies the complexity of test equipment, reduces the test cost, provides a basis for developing and debugging the TWS earphone and improves the production practicability.

Description

Signal output and TWS earphone testing method, terminal, device and storage medium
Technical Field
The embodiment of the invention relates to the field of earphone testing, in particular to a signal output and TWS earphone testing method, a terminal, equipment and a storage medium.
Background
With the development of wireless communication technology, users usually select a wireless headset when listening to audio and video or receiving a call, and particularly, a True Wireless Stereo (TWS) headset with a wirelessly separated left channel and right channel. The TWS earphone can be connected with the playing terminal and the master earphone in a Bluetooth wireless mode, the master earphone is connected with the slave earphone in a Bluetooth wireless mode, real wireless separation of left and right sound channels of the earphone is achieved, and a traditional earphone and even a connecting line between two ears of the Bluetooth earphone are eliminated.
In order to evaluate whether the synchronization performance of the audio system in the TWS headset meets the requirement in the development and production processes of the TWS headset, it is required to test whether audio data of a left channel and audio data of a right channel in the TWS headset are played synchronously.
In the prior art, no better test equipment can be used for measuring whether the synchronous performance of the TWS earphone between the left channel and the right channel is delayed, the difference between the left earphone and the right earphone of the earphone can be simply evaluated only by a tester through a method of listening to sound, or the test is carried out in a laboratory by means of expensive professional instrument equipment, so that the production and the practicability are not facilitated.
Disclosure of Invention
The embodiment of the invention provides a signal output and TWS earphone testing method, a terminal, equipment and a storage medium, which can accurately test the performance of a TWS earphone, simplify the complexity of testing equipment, reduce the testing cost and improve the testing efficiency of the TWS earphone.
In a first aspect, an embodiment of the present invention provides a signal output method, where the method includes:
the playing terminal receives a playing instruction;
the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or;
the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal;
the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal;
and the playing terminal inputs the first audio signal or the second audio signal into a left channel and a right channel of a real wireless stereo TWS earphone respectively.
In a second aspect, an embodiment of the present invention provides a TWS headset testing method, where the method includes:
the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be detected is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel;
the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal to be tested;
and the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
In a third aspect, an embodiment of the present invention provides a TWS headset testing method, where the method includes:
the playing terminal receives a playing instruction;
the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or;
the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal;
the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal;
the playing terminal inputs the first audio signal or the second audio signal to a left channel and a right channel of a real wireless stereo TWS earphone respectively;
the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be detected is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel;
the test equipment determines a time delay value of the electric signal and the audio signal according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal, wherein the audio signal is the left channel audio signal or the right channel audio signal;
the testing device determines whether the TWS headset and the player terminal are synchronous based on time delay values of the electrical signal and the audio signal.
In a fourth aspect, an embodiment of the present invention provides a playback terminal, where the playback terminal includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the signal output method as described in the above first aspect.
In a fifth aspect, an embodiment of the present invention provides a test apparatus, where the test apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the TWS headset testing method according to the second aspect.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the signal output method according to the first aspect.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the TWS headset testing method according to the second aspect.
The signal output and TWS earphone test method, the terminal, the equipment and the storage medium provided by the embodiment of the invention realize the synchronous output of the optical signal and the audio signal by controlling the synchronous change of the screen brightness of the playing terminal and the amplitude of the audio signal or the synchronous change of the screen display image brightness or color and the amplitude of the audio signal, provide the test signal for the earphone test, and determine whether the TWS earphone and the playing terminal are synchronous or not by the amplitude jump time of the electric signal output by the photosensitive device and the audio signal output by the TWS earphone, thereby simplifying the complexity of the test equipment, reducing the test cost, providing a basis for the development and debugging of the TWS earphone and improving the test efficiency of the TWS earphone.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1A is a flowchart of a signal output method according to an embodiment of the present invention;
fig. 1B is a flowchart of a signal output method according to an embodiment of the present invention;
fig. 2 is a flowchart of a TWS headset testing method according to a second embodiment of the present invention;
FIG. 3 is a schematic block diagram of a testing apparatus in the method according to the second embodiment of the present invention;
fig. 4 is a flowchart of a TWS headset testing method according to a third embodiment of the present invention;
fig. 5A is a flowchart of a TWS headset testing method according to a fourth embodiment of the present invention;
fig. 5B is a flowchart of an interaction process in the method according to the fourth embodiment of the present invention;
fig. 6A is a flowchart of a TWS headset testing method according to a fourth embodiment of the present invention;
fig. 6B is a flowchart of another interaction process in the method according to the fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a signal output apparatus according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a TWS headset testing apparatus according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a TWS headset testing apparatus according to a seventh embodiment of the present invention;
fig. 10 is a schematic structural diagram of a broadcast terminal according to an eighth embodiment of the present invention;
fig. 11 is a schematic structural diagram of a testing apparatus according to a ninth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a signal output method according to an embodiment of the present invention, where the signal output method according to the embodiment is suitable for a situation where any kind of playback terminal needs to synchronously output multiple signals. The method can be executed by the signal output device provided by the embodiment of the present invention, the device can be implemented by software and/or hardware, and is integrated in a playing terminal for executing the method, and the playing terminal for executing the method in this embodiment may be any intelligent terminal such as a tablet computer, a notebook, a desktop, and an MP 4. Referring to fig. 1, the method specifically includes the following steps:
s110, the playing terminal receives the playing instruction.
Specifically, in order to evaluate whether the synchronization performance of the audio system in the TWS headset meets the requirement in the development and production processes of the TWS headset, it is required to test whether the audio data of the TWS headset and the playing terminal are played synchronously, and whether the audio data of the left channel and the audio data of the right channel in the TWS headset are played synchronously. The TWS headset is connected to the play terminal, and during testing, the play terminal first needs to receive a play instruction, and the play instruction controls the play terminal to start playing audio data or video data. Furthermore, when testing the synchronization performance of the TWS headset, the TWS headset is first connected to the playing terminal and the testing device, and after the connection is successful, preferably, the testing device sends a test instruction to the TWS headset to be tested, after receiving the test instruction, the TWS headset sends a playing instruction to the playing terminal, the playing terminal receives the playing instruction and starts playing the audio data or the video data, and the testing device receives a signal output by the playing terminal and starts testing the synchronization performance of the TWS headset.
S120, the playing terminal plays the first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of the screen to change along with the change of the amplitude of the first audio signal.
Specifically, after receiving the play instruction, the play terminal starts to play first audio data that is pre-stored in the play terminal and is used for testing the performance of the TWS headset, where the first audio data is digitized sound data, that is, digitized audio data obtained by performing analog-to-digital conversion on a continuous analog audio signal at a certain sampling frequency. When the playing terminal plays the first audio data, it is necessary to perform digital-to-analog conversion on the first audio data to convert the first audio data into a corresponding analog audio signal, which is the corresponding first audio signal. Further, in order to test whether there is a delay between the TWS headset and the cast terminal, the delay may be determined according to the screen brightness change time and the amplitude change time of the audio signal by synchronously changing the screen brightness of the cast terminal when the amplitude of the audio signal changes. Preferably, an application software is installed on the playing terminal, and the application software is specially used for playing corresponding audio data or video data as required when the synchronization performance of the TWS headset is tested, and controlling the brightness to synchronously change along with the amplitude of the audio signal.
Further, after receiving the play instruction, the play terminal indicates that the TWS headset has been successfully connected to the play terminal and the test device, and the test device starts to test the synchronization performance of the TWS headset, and at this time, the play terminal needs to play audio data and output the audio data through the TWS headset. Optionally, the playing terminal plays the first audio data stored in advance through the installed application software according to the playing instruction, obtains the first audio signal converted correspondingly when the first audio data is played, and controls the screen brightness to change along with the change of the amplitude of the first audio signal by changing the brightness of the backlight board of the screen of the playing terminal, so that the testing device tests the synchronization performance of the TWS headset.
S130, the playing terminal receives the optical signal corresponding to the brightness of the screen through the photosensitive device installed on the screen and outputs the electric signal corresponding to the optical signal.
Specifically, after the first audio data is played by the play terminal, in order to test the synchronization performance between the play terminal and the TWS headset, an optical signal corresponding to the brightness of the screen needs to be received, and a corresponding electrical signal needs to be output, so as to detect the time when the brightness of the screen changes correspondingly with the amplitude of the first audio signal. Further, a light sensing device is installed on the screen of the playing terminal to receive the light signal corresponding to the brightness of the screen and output the electric signal corresponding to the light signal. The photosensitive device is an electronic device sensitive to a light source, can realize a photoelectric conversion function, and can include a photoresistor, a photodiode, a color sensor and the like.
S140, the playing terminal inputs the first audio signal to the left channel and the right channel of the real wireless stereo TWS earphone.
Specifically, after playing the first audio data or the video data and the second audio data corresponding to the video data, the playing terminal needs to output the first audio signal or the second audio signal that is obtained correspondingly. In order to test the synchronization performance of the left channel and the right channel in the TWS earphone, the playing terminal respectively inputs the acquired first audio signal or second audio signal into the left channel and the right channel of the TWS earphone which is in wireless connection with the playing terminal in a wireless transmission mode.
Further, fig. 1B is a flowchart of another signal output method according to an embodiment of the present invention, and the another signal output method provided in this embodiment is also applicable to any situation where a plurality of signals need to be synchronously output by a playback terminal, and forms two different technical solutions with the signal output method. Referring to fig. 1B, the method specifically includes the following steps:
s101, the playing terminal receives a playing instruction.
S102, the playing terminal plays the video data and the second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal.
Specifically, after receiving the play instruction, the play terminal may also play video data pre-stored in the play terminal and second audio data corresponding to the video data, and output an image corresponding to the video data and a second audio signal converted corresponding to the second audio data by obtaining the image corresponding to the video data, where the image corresponding to the video data may be a picture, a video picture, or the like. Further, in order to obtain video data and audio data which change synchronously, when the amplitude of the audio signal changes, the brightness or color of the image corresponding to the video data of the playing terminal changes synchronously, for example, the brightness of the image can be realized by changing the image pictures with different brightness, for example, when the brightness of the image is controlled to be changed from brightness to darkness, the image brightness can be realized by changing the video pictures at night to the video pictures at day; the color of the image corresponding to the video data may also be synchronously changed when the amplitude of the audio signal changes, for example, by replacing a white picture corresponding to the video data with a black picture, or by directly modifying the RGB values in the RGB color standard of the display of the picture corresponding to the video data to correspondingly modify the color of the picture, and determining whether to delay the change according to the brightness or color change time of the image corresponding to the video data and the amplitude change time of the corresponding second audio signal. Preferably, an application software is installed on the playing terminal, the application software is specially used for testing the synchronization performance of the TWS headset, playing the corresponding video data and the corresponding second audio data according to the requirement during the test, and controlling the image brightness or color corresponding to the video data to synchronously change with the amplitude of the second audio signal corresponding to the second audio data.
Further, when the testing device tests the synchronization performance of the TWS headset, the playing terminal plays the pre-stored video data and the second audio data corresponding to the video data through the installed application software according to the playing instruction, acquires the second audio signal converted corresponding to the second audio data and the image corresponding to the video data, and controls the playing terminal to play the picture or video picture corresponding to the video data with different picture brightness or color according to the amplitude change of the second audio signal, so that the picture brightness or color changes along with the change of the amplitude of the second audio signal, and the synchronization performance of the TWS headset is tested.
S103, the playing terminal receives an optical signal corresponding to the brightness or color of the image through a photosensitive device installed on the screen and outputs an electric signal corresponding to the optical signal.
Specifically, after the video data and the second audio data corresponding to the video data are played by the play terminal, in order to test the synchronization performance between the play terminal and the TWS headset, it is necessary to receive an optical signal corresponding to the brightness or color of the image and output a corresponding electrical signal, so as to detect the time when the brightness or color of the image changes correspondingly with the amplitude of the second audio signal. Further, a light sensing device is installed on the screen of the play terminal to receive an optical signal corresponding to the brightness or color of an image and output an electrical signal corresponding to the optical signal. The photosensitive device is an electronic device sensitive to a light source, can realize a photoelectric conversion function, and can include a photoresistor, a photodiode, a color sensor and the like.
And S104, the playing terminal inputs the second audio signal into a left channel and a right channel of the real wireless stereo TWS earphone.
Specifically, after playing the video data and the second audio data corresponding to the video data, the playing terminal needs to output the second audio signal that is obtained correspondingly. In order to test the synchronization performance of the left channel and the right channel in the TWS earphone, the playing terminal respectively inputs the acquired second audio signal into the left channel and the right channel of the TWS earphone which is in wireless connection with the playing terminal in a wireless transmission mode.
According to the technical scheme of the embodiment, the synchronous output of the electric signal corresponding to the optical signal and the audio signal is realized by controlling the synchronous change of the brightness of the screen of the playing terminal or the brightness or the color of the image corresponding to the video and the amplitude of the audio signal, so that the test signal is provided for testing the earphone, and the complexity of obtaining the test signal is simplified.
On the basis of the above technical solution, further, the playing terminal plays the first audio data according to the playing instruction, and acquires a first audio signal corresponding to the first audio data, including:
the playing terminal acquires at least two groups of first audio data with the same amplitude data and different frequency data, and plays the at least two groups of first audio data according to the playing instruction.
Specifically, in order to test the playing quality of the left and right channels of the TWS headphone and the difference in playing performance between the left and right channels, the frequency response characteristics of the left and right channels need to be measured. Before the playing terminal plays the first audio signal, in order to measure the frequency response characteristics of the left and right channels, at least two sets of first audio data with the same amplitude data and different frequency data need to be acquired, and the acquired at least two sets of first audio data are played according to the playing instruction. The frequency response of the TWS headphone refers to a phenomenon that when an audio signal output at a constant voltage is connected to the TWS headphone, sound pressure generated by the headphone is increased or attenuated according to a change in frequency, and a phase of the sound pressure is changed according to the frequency, that is, a frequency range within which the TWS headphone can reproduce audio data played by a playing terminal within an amplitude allowable range, and a change amount of the signal within the frequency range. And playing the audio data with the same amplitude and different frequencies, and judging the playing performance of the TWS earphone through the amplitude change of the correspondingly output signal.
The playing terminal acquires at least two first audio signals corresponding to at least two groups of first audio data.
Specifically, when the playing terminal plays the at least two sets of first audio data according to the playing instruction, at least two first audio signals corresponding to the at least two sets of first audio data need to be acquired, and then the at least two sets of first audio signals are played.
Correspondingly, the playing terminal plays the video data and the second audio data corresponding to the video data according to the playing instruction, and acquires the second audio signal corresponding to the second audio data and the image corresponding to the video data, including:
the playing terminal acquires the video data and at least two groups of second audio data which are respectively corresponding to the video data, have the same amplitude data and different frequency data, and plays the video data and at least two groups of second audio data respectively corresponding to the video data according to the playing instruction.
Specifically, when video data and second audio data corresponding to the video data are acquired, in order to test the playing quality of the left and right channels of the TWS headphone and the difference in playing performance between the left and right channels, the frequency response characteristics of the left and right channels are measured. Before the playing terminal plays the second audio signal, in order to measure the frequency response characteristics of the left and right channels, it is necessary to acquire the video data and at least two sets of second audio data having the same amplitude data and different frequency data respectively corresponding to the video data, and play the acquired video data and at least two sets of second audio data respectively corresponding to the video data according to the playing instruction. And playing a plurality of groups of audio data with the same amplitude and different frequencies, and judging the playing performance of the TWS earphone through the corresponding output frequency response characteristics.
The playing terminal acquires at least two second audio signals respectively corresponding to the at least two groups of second audio data and acquires images corresponding to the video data.
Specifically, when the playing terminal plays the video data and at least two sets of second audio data corresponding to the video data respectively according to the playing instruction, at least two second audio signals corresponding to the at least two sets of second audio data need to be acquired, and an image corresponding to the video data is acquired and then played.
Example two
Fig. 2 is a flowchart of a TWS headset testing method according to a second embodiment of the present invention, where the TWS headset testing method according to the second embodiment is suitable for testing synchronization performance of any TWS headset. The method may be performed by a TWS headset testing apparatus provided by an embodiment of the present invention, which may be implemented by means of software and/or hardware and integrated in a testing device performing the method. Referring to fig. 2, the method specifically includes the following steps:
s210, the test equipment acquires the electric signal output by the photosensitive device on the playing terminal and the audio signal to be tested output by the TWS earphone.
Specifically, when the user tests the performance of the TWS headset through the testing device, the testing principle is as shown in fig. 3, and the testing device may include an indicator, a bluetooth antenna, a processor, a headset testing point, and the like, the photosensitive device and the headset testing point are disposed on the playing terminal, and the indicator, the bluetooth antenna, and the processor are disposed in the testing device. The indicator can comprise a display screen for reading parameters and indexes, and/or an indicator light for indicating whether the test is passed or not; the Bluetooth antenna adopts a Bluetooth Low Energy (BLE) technology and is used for reporting test data; the test module can adopt a Bluetooth low-energy consumption chip nRF52832 to test data output by the TWS earphone; the two earphone test points are respectively used for connecting a left channel and a right channel of a TWS earphone to be tested, can be directly connected with audio output systems of the left channel and the right channel of the TWS earphone to directly acquire output analog audio signals, and can also be connected with a microphone through a clamp, the microphone is aligned to a left channel earphone and a right channel earphone of the TWS earphone, and the analog audio signals output by the left channel and the right channel of the TWS earphone are acquired through pickup. Further, in order to test whether the TWS headset and the playback terminal are synchronized, the testing device needs to acquire a signal output from the playback terminal. Because the brightness of the screen is controlled to change along with the change of the amplitude of the first audio signal when the playing terminal plays the first audio data, or the brightness or the color of the image corresponding to the video data is controlled to change along with the change of the amplitude of the second audio signal when the playing terminal plays the video data and the second audio signal corresponding to the video data, and the playing terminal inputs the first audio signal or the second audio signal to the left channel and the right channel of the TWS earphone respectively in a wireless transmission mode, the photosensitive device installed on the screen of the playing terminal receives the brightness of the screen changed corresponding to the first audio signal or the optical signal corresponding to the brightness or the color of the image changed corresponding to the second audio signal, the photosensitive device correspondingly converts the optical signal into an electrical signal to be output, and the TWS earphone correspondingly converts the optical signal into the electrical signal to be output according to the received first audio signal or the received second audio signal, and correspondingly outputting a left channel audio signal at the left channel, and correspondingly outputting a right channel audio signal at the right channel. In order to test whether the TWS earphone and the playing terminal are synchronous or not, the testing device needs to acquire an electric signal output by the photosensitive device and a to-be-tested audio signal output by the TWS earphone, and judge the electric signal and the to-be-tested audio signal, wherein the to-be-tested audio signal is any one of a left channel audio signal output by a left channel of the TWS earphone and a right channel audio signal output by a right channel of the TWS earphone.
Further, in order to test whether the TWS earphone and the playback terminal are synchronized, the test device further needs to obtain an electrical signal output by a light sensing device on the playback terminal and a to-be-tested audio signal output by the TWS earphone, where the electrical signal corresponds to a light signal received by the light sensing device, the light signal corresponds to brightness of a screen of the playback terminal, or the light signal corresponds to brightness or color of an image displayed in the playback terminal, and the to-be-tested audio signal is a left channel audio signal output by a left channel of the TWS earphone or a right channel audio signal output by a right channel.
S220, the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the amplitude jump time of the detected electric signal and the amplitude jump time of the audio signal to be tested.
Specifically, after the test equipment acquires the electrical signal output by the light sensing device on the play terminal, in order to test the synchronization performance of the TWS headset, the play terminal may play the first audio data or the second audio data, acquire the corresponding first audio signal or the second audio signal, and output the changed brightness of the screen synchronously by changing the amplitude of the first audio signal, or output the changed optical signal corresponding to the brightness or color of the image synchronously by changing the amplitude of the second audio signal, and output the changed audio signal to be tested. Furthermore, the amplitude of the electrical signal corresponding to the optical signal is changed by detecting the amplitude jump time of the electrical signal and the amplitude jump time of the audio signal to be tested output by the TWS headset, that is, the time of the change of the brightness or color state of the screen or the image and the time of the change of the state of the audio signal to be tested, the test equipment determines the time delay value of the electrical signal and the audio signal to be tested, so as to judge the synchronization performance between the TWS headset and the playing terminal.
And S230, the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
Specifically, the test device determines a time delay value of the electrical signal and the audio signal to be tested, and then determines whether the time delay value is within a preset time range, and if the time delay value is within the preset time range, the test device determines that the TWS headset and the play terminal are played synchronously.
According to the technical scheme of the embodiment, the amplitude jump time of the electric signal output by the photosensitive device and the audio signal to be tested output by the TWS earphone is calculated, so that the synchronization performance of the TWS earphone and the playing terminal can be tested, the complexity of testing equipment is simplified, the testing cost is reduced, a basis is provided for developing and debugging the TWS earphone, and the testing efficiency of the TWS earphone is improved.
EXAMPLE III
Fig. 4 is a flowchart of a TWS headset testing method according to a third embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Referring to fig. 4, the method of this embodiment specifically includes:
s310, the testing equipment acquires a left channel audio signal and a right channel audio signal which are respectively output by a left channel and a right channel of the TWS earphone.
Specifically, the test device can only determine whether the TWS headset and the play terminal are synchronized according to the amplitude transition time of the acquired electrical signal and the amplitude transition time of the audio signal to be tested, and also needs to test whether the left channel and the right channel of the TWS headset are synchronized. After a first audio signal or a second audio signal is input into a left channel and a right channel of a TWS earphone to be tested through a playing terminal by a wireless transmission technology, the first audio signal or the second audio signal is correspondingly output through the left channel and the right channel of the TWS earphone, a testing device can be directly connected with audio output systems of the left channel and the right channel of the TWS earphone or can be connected with a microphone through a clamp, the microphone aims at a left channel earphone and a right channel earphone of the TWS earphone, and the left channel audio signal and the right channel audio signal which are correspondingly output by the left channel and the right channel of the TWS earphone are obtained.
S320, the test equipment determines the time delay value of the left channel audio signal and the right channel audio signal according to the detected amplitude jump time of the left channel audio signal and the right channel audio signal, and/or; the test equipment acquires the phase difference of the left channel audio signal and the right channel audio signal.
Specifically, after the testing device obtains the left channel audio signal and the right channel audio signal respectively output by the left channel and the right channel of the TWS headset, in order to test the synchronous playing performance of the left channel and the right channel of the TWS headset, it is necessary to detect the states of the first audio signal or the second audio signal input into the TWS headset, which correspond to the left channel audio signal and the right channel audio signal respectively output by the left channel and the right channel. Furthermore, the playing terminal plays the first audio data or the second audio data, and acquires the corresponding first audio signal or the second audio signal, and can correspondingly output the changed left channel audio signal and the right channel audio signal by changing the amplitude of the audio signal, the testing device can detect the corresponding amplitude jump time of the left channel audio signal and the right channel audio signal, that is, the time of the state change of the audio signal, and determine the time delay value of the left channel audio signal and the right channel audio signal according to the amplitude jump time of the left channel audio signal and the right channel audio signal, thereby judging whether the playing of the left channel and the right channel of the TWS headset is synchronous. Since the amplitude change of the audio signal has a certain rule, if the frequency of the audio signal is very small, the amplitude change of the audio signal within a certain delay time is not obvious, so that the phase difference between the left channel audio signal and the right channel audio signal can be obtained to judge whether the playing of the left channel and the right channel of the TWS earphone is synchronous or not. The phase represents the position relation of a signal waveform cyclic change, the phase difference represents the difference value of the output audio signal position change of the left channel and the right channel caused by time delay, and the audio signal has a certain period. The phase difference can be directly calculated by a Fast algorithm of discrete Fourier transform, that is, Fast Fourier Transform (FFT). Preferably, the synchronization performance of the left channel and the right channel of the TWS headphone can be determined simultaneously by combining the amplitude jump time and the phase difference of the left channel audio signal and the right channel audio signal.
Further, in order to determine whether the playing of the left channel and the right channel of the TWS headset is synchronous, the testing device may detect corresponding amplitude jump times of the acquired left channel audio signal and right channel audio signal, and determine a time delay value of the left channel audio signal and the right channel audio signal according to the detected amplitude jump times of the left channel audio signal and the right channel audio signal; in addition, the testing device can also directly calculate and acquire the phase difference between the left channel audio signal and the right channel audio signal through an FFT algorithm, determine whether the playing between the left channel and the right channel has time delay or not, or judge whether the time delay exists between the left channel and the right channel through the combination of the left channel and the right channel.
S330, the testing equipment determines whether the TWS headset left channel and the TWS headset right channel are synchronous or not based on the time delay value and/or the phase difference.
Specifically, after calculating a time delay value and/or a phase difference of the acquired left channel audio signal and right channel audio signal, the testing device determines whether the left channel and right channel of the TWS headset are synchronous or not based on the time delay value and/or phase difference. When only one of amplitude jump time and phase difference of the left channel audio signal and the right channel audio signal is detected, if the time delay value meets a preset time range, determining that the left channel and the right channel are synchronously played; and when the phase difference meets a preset difference range, determining that the left channel and the right channel are played synchronously. When the amplitude jump time and the phase difference of the left channel audio signal and the right channel audio signal are detected simultaneously, if the time delay value meets a preset time range and the phase difference also meets a preset difference value range, the left channel and the right channel are determined to be played synchronously.
According to the technical scheme of the embodiment, the synchronization performance of the left channel and the right channel of the TWS earphone can be tested by calculating the amplitude jump time and the phase difference of the audio signals of the left channel and the right channel of the TWS earphone, the complexity of testing equipment is simplified, the testing cost is reduced, a basis is provided for development and debugging of the TWS earphone, and the testing efficiency of the TWS earphone is improved.
On the basis of the above technical solution, further, the method for obtaining the left channel audio signal and the right channel audio signal respectively output by the left channel and the right channel of the TWS headset by the testing device includes:
the testing equipment acquires at least two groups of audio signals output by the TWS earphone, wherein each group of audio signals comprises a left channel audio signal and a right channel audio signal which are respectively output by a left channel and a right channel of the TWS earphone.
Specifically, when the playing terminal inputs at least two first audio signals or at least two second audio signals with the same amplitude data and different frequency data into a left channel and a right channel of the TWS headset through a wireless transmission technology, the TWS headset outputs at least two sets of audio signals with the same amplitude data and different frequency data, and the test equipment acquires the at least two sets of audio signals. Wherein each set of audio signals comprises a left channel audio signal and a right channel audio signal output by the TWS headset left channel and right channel, respectively.
Correspondingly, the TWS headset testing method may further include:
the testing device determines frequency responses of a left channel and a right channel of the TWS headset and a difference between the frequency responses of the left channel and the right channel, respectively, from at least two sets of audio signals.
Specifically, after the test device acquires at least two sets of audio signals, at least two left channel audio signals and at least two corresponding right channel audio signals may be acquired correspondingly. Determining the frequency response characteristic of a left channel according to at least two left channel audio signals with the same amplitude and different frequencies; determining the frequency response characteristics of the right channel according to at least two corresponding right channel audio signals with the same amplitude and different frequencies, so as to respectively test the playing quality of the left channel and the right channel of the TWS earphone, comparing the frequency response characteristics of the left channel with the frequency response characteristics of the right channel, determining the difference of the frequency responses of the left channel and the right channel, and thus testing the playing performance difference between the left channel and the right channel of the TWS earphone. For example, the amplitude difference corresponding to the same frequency data in the frequency response of the left channel and the right channel represents the level difference of the left channel and the right channel, and the difference greatly affects the volume imbalance of the left earphone and the right earphone; the phase difference of the same frequency data represents the position change of the sound in the left channel and the right channel, and the sound field is damaged and the image of the sound is changed when the difference is too large, so that the TWS earphone is further developed and debugged, and the difference of the playing performance between the left channel and the right channel is reduced.
Example four
Fig. 5A is a flowchart of a TWS headset testing method according to a fourth embodiment of the present invention. The present embodiment is an interactive process for testing the performance of the TWS headset between the playback terminal and the testing device based on the above embodiment, and the interactive process is specifically shown in fig. 5B. Referring to fig. 5A, the method of this embodiment specifically includes:
s410, the playing terminal receives the playing instruction.
S420, the playing terminal plays the first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of the screen to change along with the change of the amplitude of the first audio signal.
S430, the play terminal receives the optical signal corresponding to the brightness of the screen through the light sensing device mounted on the screen, and outputs an electrical signal corresponding to the optical signal.
S440, the cast terminal inputs the first audio signal to the left channel and the right channel of the real wireless stereo TWS headset.
S450, the testing equipment acquires the electric signal output by the photosensitive device on the playing terminal and the audio signal to be tested output by the TWS earphone.
And S460, the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the amplitude jump time of the detected electric signal and the amplitude jump time of the audio signal to be tested.
S470, the testing device determines whether the TWS earphone and the playing terminal are synchronous based on the time delay values of the electric signal and the audio signal to be tested.
Specifically, the interaction process of the TWS headset performance test between the cast terminal and the testing device is specifically shown in fig. 5B.
And S510, the TWS earphone sends a playing instruction to the playing terminal.
S520, the playing terminal plays the first audio data according to the received playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of the screen to change along with the change of the amplitude of the first audio signal.
S530, the play terminal receives an optical signal corresponding to the brightness of the screen through the light sensing device installed on the screen.
And S540, the playing terminal outputs an electric signal corresponding to the optical signal to the testing equipment through the photosensitive device.
S550, the cast terminal inputs the first audio signal to the left channel and the right channel of the TWS headphone.
And S560, the TWS earphone outputs the audio signal to be tested to the test equipment. And S570, the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the amplitude jump time of the detected electric signal and the amplitude jump time of the audio signal to be tested.
And S580, the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
Fig. 6A is a flowchart of a TWS headset testing method according to a fourth embodiment of the present invention. The present embodiment is a further interactive process for testing the TWS headset performance between the cast terminal and the testing device based on the above embodiment, and the interactive process is specifically shown in fig. 6B. Referring to fig. 6B, the method of this embodiment specifically includes:
s401, the playing terminal receives a playing instruction.
S402, the playing terminal plays the video data and the second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal.
And S403, the playing terminal receives an optical signal corresponding to the brightness or color of the image through a photosensitive device installed on the screen and outputs an electric signal corresponding to the optical signal.
S404, the playing terminal inputs the second audio signal to the left channel and the right channel of the real wireless stereo TWS earphone.
S405, the test equipment obtains the electric signal output by the photosensitive device on the playing terminal and the audio signal to be tested output by the TWS earphone.
S406, the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the amplitude jump time of the detected electric signal and the amplitude jump time of the audio signal to be tested.
S407, the testing device determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
Specifically, another interactive process for testing the TWS headset performance between the cast terminal and the testing device is specifically shown in fig. 6B.
S501, the TWS earphone sends a playing instruction to the playing terminal.
S502, the playing terminal plays the video data and the second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal.
S503, the cast terminal receives an optical signal corresponding to the brightness or color of the image through the photosensitive device mounted on the screen.
S504, the playing terminal outputs an electric signal corresponding to the optical signal to the testing equipment through the photosensitive device.
S505, the cast terminal inputs the second audio signal to the left channel and the right channel of the TWS headphone.
S506, the TWS earphone outputs the audio signal to be tested to the test equipment.
And S507, the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the amplitude jump time of the detected electric signal and the amplitude jump time of the audio signal to be tested.
And S508, the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
According to the technical scheme of the embodiment, synchronous output of the optical signal and the audio signal is realized by controlling synchronous change of screen brightness of the playing terminal and amplitude of the audio signal or synchronous change of brightness or color of the image corresponding to the video and the amplitude of the audio signal, so that a test signal is provided for testing the earphone, synchronous performance of the TWS earphone and the playing terminal can be tested by calculating amplitude jump time of the electric signal output by the photosensitive device and the audio signal to be tested output by the TWS earphone, complexity of testing equipment is simplified, testing cost is reduced, a basis is provided for development and debugging of the TWS earphone, and testing efficiency of the TWS earphone is improved.
EXAMPLE five
Fig. 7 is a schematic structural diagram of a signal output apparatus according to a fifth embodiment of the present invention, which can execute the signal output method according to any of the foregoing embodiments, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus includes:
the instruction receiving module 510 is configured to receive a playing instruction by the playing terminal.
The first data playing module 520 is configured to play the first audio data according to the playing instruction, acquire a first audio signal corresponding to the first audio data, and control the brightness of the screen to change along with the change of the amplitude of the first audio signal.
Or, the second data playing module 530 is configured to play the video data and the second audio data corresponding to the video data according to the playing instruction, acquire a second audio signal corresponding to the second audio data and an image corresponding to the video data, and control the brightness or color of the image to change along with the change of the amplitude of the second audio signal.
The electrical signal output module 540 is configured to receive, by the playback terminal, an optical signal corresponding to the brightness of the screen or the brightness or color of the image through the photosensitive device mounted on the screen, and output an electrical signal corresponding to the optical signal.
And an audio signal output module 550, configured to input the first audio signal or the second audio signal to a left channel and a right channel of the TWS headset of the real wireless stereo respectively by the play terminal.
According to the technical scheme of the embodiment, the synchronous output of the electric signal and the audio signal corresponding to the optical signal is realized by controlling the synchronous change of the screen brightness or the video image brightness or the color of the playing terminal and the amplitude of the audio signal, so that the test signal is provided for testing the earphone, and the complexity of obtaining the test signal is simplified.
Further, the first data playing module 520 may be specifically configured to: the playing terminal acquires at least two groups of first audio data with the same amplitude data and different frequency data, and plays the at least two groups of first audio data according to a playing instruction; the playing terminal acquires at least two first audio signals corresponding to at least two groups of first audio data.
Correspondingly, the second data playing module 530 may be specifically configured to: the playing terminal acquires video data and at least two groups of second audio data which are the same as the amplitude data and different from the frequency data respectively corresponding to the video data, and plays the video data and the at least two groups of second audio data respectively corresponding to the video data according to a playing instruction; the playing terminal acquires at least two second audio signals respectively corresponding to the at least two groups of second audio data and acquires images corresponding to the video data.
EXAMPLE six
Fig. 8 is a schematic structural diagram of a TWS headset testing apparatus according to a sixth embodiment of the present invention, which is capable of executing the TWS headset testing method according to any of the above embodiments, and has corresponding functional modules and beneficial effects of the executing method. As shown in fig. 8, the apparatus includes:
the signal acquisition module 610 is used for the test equipment to acquire the electric signal output by the photosensitive device on the playing terminal and the audio signal to be tested output by the TWS headset; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be tested is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel.
The first difference determining module 620 is configured to determine, by the testing device, a time delay value between the electrical signal and the audio signal to be tested according to the amplitude transition time of the detected electrical signal and the amplitude transition time of the audio signal to be tested.
The first synchronization determining module 630 is configured to determine, by the testing device, whether the TWS headset and the playback terminal are synchronized based on the time delay values of the electrical signal and the audio signal to be tested.
According to the technical scheme of the embodiment, the amplitude jump time of the electric signal output by the photosensitive device and the audio signal to be tested output by the TWS earphone is calculated, so that the synchronization performance of the TWS earphone and the playing terminal can be tested, the complexity of testing equipment is simplified, the testing cost is reduced, a basis is provided for developing and debugging the TWS earphone, and the testing efficiency of the TWS earphone is improved.
Further, the above apparatus may further include: the audio signal obtaining module 640 is configured to obtain, by the testing device, a left channel audio signal and a right channel audio signal that are output by a left channel and a right channel of the TWS headset, respectively.
Further, the above apparatus may further include: a second difference determining module 650, configured to determine, by the testing device, a time delay value of the left channel audio signal and the right channel audio signal according to the detected amplitude jump time of the left channel audio signal and the right channel audio signal, and/or; the test equipment acquires the phase difference of the left channel audio signal and the right channel audio signal.
Further, the above apparatus may further include: a second synchronization determining module 660 for the test device to determine whether the TWS headset left and right channels are synchronized based on the time delay value and/or the phase difference.
Further, the audio signal obtaining module 640 may be specifically configured to: the testing equipment acquires at least two groups of audio signals output by the TWS earphone, wherein each group of audio signals comprises a left channel audio signal and a right channel audio signal which are respectively output by a left channel and a right channel of the TWS earphone.
Further, the above apparatus may further include: and a frequency response determining module 670, configured to determine, by the testing device, frequency responses of the left channel and the right channel of the TWS headset and a difference between the frequency responses of the left channel and the right channel according to the at least two groups of audio signals.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of a TWS headset testing apparatus according to a seventh embodiment of the present invention, which is capable of executing the TWS headset testing method according to any of the above embodiments, and has corresponding functional modules and beneficial effects of the executing method. As shown in fig. 9, the apparatus includes:
the instruction receiving module 710 is configured to receive a playing instruction by the playing terminal.
The first data playing module 720 is configured to play the first audio data according to the playing instruction, acquire a first audio signal corresponding to the first audio data, and control the brightness of the screen to change along with the change of the amplitude of the first audio signal.
Or, the second data playing module 730 is configured to play the video data and the second audio data corresponding to the video data according to the playing instruction, acquire a second audio signal corresponding to the second audio data and an image corresponding to the video data, and control the brightness or color of the image to change along with the change of the amplitude of the second audio signal.
The electrical signal output module 740 is configured to receive, by the playback terminal, an optical signal corresponding to the brightness of the screen or the brightness or color of the image through the light sensing device mounted on the screen, and output an electrical signal corresponding to the optical signal.
And an audio signal output module 750, configured to input the first audio signal or the second audio signal to a left channel and a right channel of the TWS headset of the real wireless stereo respectively by the play terminal.
The signal acquisition module 760 is used for the test equipment to acquire the electric signal output by the photosensitive device on the playing terminal and the audio signal to be tested output by the TWS headset; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be tested is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel.
The first difference determining module 770 is configured to determine a time delay value between the electrical signal and the audio signal to be tested according to the amplitude transition time of the detected electrical signal and the amplitude transition time of the audio signal to be tested.
The first synchronization determining module 780 is configured to determine, by the testing device, whether the TWS headset and the playback terminal are synchronized based on the time delay values of the electrical signal and the audio signal to be tested.
According to the technical scheme of the embodiment, the synchronous output of the optical signal and the audio signal is realized by controlling the screen brightness of the playing terminal or the brightness or the color of the image corresponding to the video and the amplitude synchronous change of the audio signal, so that the test signal is provided for the earphone test, and the synchronous performance of the TWS earphone and the playing terminal can be tested by calculating the amplitude jump time of the electric signal output by the photosensitive device and the audio signal to be tested output by the TWS earphone, so that the complexity of the test equipment is simplified, the test cost is reduced, a basis is provided for the development and debugging of the TWS earphone, and the test efficiency of the TWS earphone is improved.
Example eight
Fig. 10 is a schematic structural diagram of a broadcast terminal according to an eighth embodiment of the present invention. Fig. 10 illustrates a block diagram of an exemplary cast terminal 12 suitable for use in implementing embodiments of the present invention. The cast terminal 12 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 10, the cast terminal 12 is in the form of a general purpose computing device. The components of the cast terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Cast terminal 12 typically includes a variety of computer system readable media. Such media may be any available media that can access the cast terminal 12, including both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The cast terminal 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Cast terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with cast terminal 12, and/or with any devices (e.g., network card, modem, etc.) that enable cast terminal 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the cast terminal 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 20. As shown in fig. 10, the network adapter 20 communicates with other modules of the cast terminal 12 via the bus 18. It should be understood that although not shown in fig. 10, other hardware and/or software modules may be used in conjunction with cast terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a signal output method provided by an embodiment of the present invention.
That is, the processing unit implements, when executing the program: the playing terminal receives a playing instruction; the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or; the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal; the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal; and the playing terminal inputs the first audio signal or the second audio signal into a left channel and a right channel of a real wireless stereo TWS earphone respectively.
Example nine
Fig. 11 is a schematic structural diagram of a testing apparatus according to a ninth embodiment of the present invention. As shown in fig. 11, the test apparatus includes a processor 90, a storage device 91, and a communication device 92; the number of the processors 90 in the test equipment may be one or more, and one processor 90 is taken as an example in fig. 11; the processor 90, the storage device 91 and the communication device 92 of the test equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 11.
The storage device 91 is a computer-readable storage medium, and may be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the TWS headset testing method in the embodiment of the present invention (for example, the electric signal acquiring module 610, the first difference determining module 620, and the first synchronization determining module 630, which are used in the TWS headset testing device). The processor 90 executes various functional applications and data processing of the testing device by running software programs, instructions and modules stored in the storage device 91, namely, implements the TWS headset testing method described above.
The storage device 91 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 91 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 91 may further include memory located remotely from the processor 90, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication device 92 may be used to implement a network connection or a mobile data connection.
The testing device provided by the embodiment can be used for executing the TWS earphone testing method provided by any embodiment, and has corresponding functions and beneficial effects.
Example ten
An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the signal output method in any of the embodiments described above. The method specifically comprises the following steps:
the playing terminal receives a playing instruction;
the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or;
the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal;
the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal;
and the playing terminal inputs the first audio signal or the second audio signal into a left channel and a right channel of a real wireless stereo TWS earphone respectively.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the signal output method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
EXAMPLE eleven
An eleventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the TWS headset testing method in any of the above embodiments. The method specifically comprises the following steps:
the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be detected is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel;
the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal to be tested;
and the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the TWS headset testing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A signal output method, comprising:
the playing terminal receives a playing instruction;
the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or;
the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal;
the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal;
the playing terminal inputs the first audio signal or the second audio signal to a left channel and a right channel of a real wireless stereo TWS earphone respectively;
the playing terminal plays first audio data according to the playing instruction and acquires a first audio signal corresponding to the first audio data, and the method comprises the following steps:
the playing terminal acquires at least two groups of first audio data with the same amplitude data and different frequency data, and plays the at least two groups of first audio data according to the playing instruction;
the playing terminal acquires at least two first audio signals corresponding to the at least two groups of first audio data;
correspondingly, the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, and acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, including:
the playing terminal acquires video data and at least two groups of second audio data which are respectively corresponding to the video data, have the same amplitude data and different frequency data, and plays the video data and the at least two groups of second audio data respectively corresponding to the video data according to the playing instruction;
the playing terminal acquires at least two second audio signals respectively corresponding to the at least two groups of second audio data and acquires images corresponding to the video data.
2. A TWS headset testing method, comprising:
the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be detected is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel;
the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal to be tested;
the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested, wherein the electric signal comprises a first audio signal, the audio signal to be tested comprises the first audio signal, and the first audio signal corresponds to first audio data.
3. The method of claim 2, further comprising:
the testing equipment acquires a left channel audio signal and a right channel audio signal which are respectively output by a left channel and a right channel of the TWS earphone;
the test equipment determines the time delay value of the left channel audio signal and the right channel audio signal and/or the time delay value of the left channel audio signal and the right channel audio signal according to the detected amplitude jump time of the left channel audio signal and the right channel audio signal;
the testing equipment acquires the phase difference between the left channel audio signal and the right channel audio signal;
the test device determines whether the TWS headset left and right channels are synchronized based on the time delay value and/or the phase difference.
4. The method of claim 3, wherein the testing device obtains a left channel audio signal and a right channel audio signal respectively output by a left channel and a right channel of a TWS headset, comprising:
the testing equipment acquires at least two groups of audio signals output by the TWS earphone, wherein each group of audio signals comprises a left channel audio signal and a right channel audio signal which are respectively output by a left channel and a right channel of the TWS earphone;
correspondingly, the method further comprises the following steps:
and the testing equipment respectively determines the frequency responses of the left channel and the right channel of the TWS earphone and the difference of the frequency responses of the left channel and the right channel according to the at least two groups of audio signals.
5. A TWS headset testing method, comprising:
the playing terminal receives a playing instruction;
the playing terminal plays first audio data according to the playing instruction, acquires a first audio signal corresponding to the first audio data, and controls the brightness of a screen to change along with the change of the amplitude of the first audio signal, or;
the playing terminal plays video data and second audio data corresponding to the video data according to the playing instruction, acquires a second audio signal corresponding to the second audio data and an image corresponding to the video data, and controls the brightness or color of the image to change along with the change of the amplitude of the second audio signal;
the playing terminal receives an optical signal corresponding to the brightness of the screen or the brightness or color of the image through a photosensitive device arranged on the screen and outputs an electrical signal corresponding to the optical signal;
the playing terminal inputs the first audio signal or the second audio signal to a left channel and a right channel of a real wireless stereo TWS earphone respectively;
the testing equipment acquires an electric signal output by a photosensitive device on a playing terminal and an audio signal to be tested output by a TWS earphone; the electrical signal corresponds to an optical signal received by the photosensitive device, the optical signal corresponds to the brightness of a screen of the playing terminal, or the optical signal corresponds to the brightness or color of an image displayed in the playing terminal, and the audio signal to be detected is a left channel audio signal output by a left channel of the TWS headset or a right channel audio signal output by a right channel;
the test equipment determines the time delay value of the electric signal and the audio signal to be tested according to the detected amplitude jump time of the electric signal and the amplitude jump time of the audio signal to be tested;
and the testing equipment determines whether the TWS earphone and the playing terminal are synchronous or not based on the time delay values of the electric signal and the audio signal to be tested.
6. A playback terminal, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the signal output method as recited in claim 1.
7. A test apparatus, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the TWS headset testing method of any of claims 2-4.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the signal output method as claimed in claim 1.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the TWS headset testing method according to any one of claims 2-4.
CN201810146643.5A 2018-02-12 2018-02-12 Signal output and TWS earphone testing method, terminal, device and storage medium Active CN108401217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810146643.5A CN108401217B (en) 2018-02-12 2018-02-12 Signal output and TWS earphone testing method, terminal, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810146643.5A CN108401217B (en) 2018-02-12 2018-02-12 Signal output and TWS earphone testing method, terminal, device and storage medium

Publications (2)

Publication Number Publication Date
CN108401217A CN108401217A (en) 2018-08-14
CN108401217B true CN108401217B (en) 2020-06-05

Family

ID=63095510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810146643.5A Active CN108401217B (en) 2018-02-12 2018-02-12 Signal output and TWS earphone testing method, terminal, device and storage medium

Country Status (1)

Country Link
CN (1) CN108401217B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109362099A (en) * 2018-12-05 2019-02-19 南昌黑鲨科技有限公司 Wirelessly communicate delay testing method, device, computer equipment and storage medium
CN112399319A (en) * 2019-08-13 2021-02-23 奇酷互联网络科技(深圳)有限公司 Earphone calibration method and device, storage medium and intelligent terminal
CN110505563B (en) * 2019-09-11 2020-12-01 歌尔科技有限公司 Synchronous detection method and device of wireless earphone, wireless earphone and storage medium
CN111436016B (en) * 2019-10-29 2021-07-30 珠海市杰理科技股份有限公司 Earphone ear-to-ear debugging method, device and system and wireless earphone
CN111065035B (en) * 2019-12-25 2021-08-31 厦门盈趣科技股份有限公司 Bone conduction earphone testing method and testing system
CN112020136B (en) * 2020-10-13 2021-02-09 恒玄科技(上海)股份有限公司 Audio system and wireless earphone pair
CN112423074B (en) * 2020-11-11 2022-09-16 广州华多网络科技有限公司 Audio and video synchronization processing method and device, electronic equipment and storage medium
CN113613125A (en) * 2021-04-26 2021-11-05 珠海市杰理科技股份有限公司 Audio synchronization control method and device, audio equipment and system
CN114915892A (en) * 2022-05-10 2022-08-16 深圳市华冠智联科技有限公司 Audio delay testing method and device for audio equipment and terminal equipment
CN115243183A (en) * 2022-06-29 2022-10-25 上海勤宽科技有限公司 Audio detection method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007329633A (en) * 2006-06-07 2007-12-20 Sony Corp Control apparatus, synchronism correction method, and synchronism correction program
CN101576786A (en) * 2008-05-09 2009-11-11 群康科技(深圳)有限公司 Mobile phone
CN104679228A (en) * 2013-11-30 2015-06-03 鸿富锦精密工业(深圳)有限公司 Electronic device and control method thereof
CN104811538A (en) * 2015-03-26 2015-07-29 努比亚技术有限公司 Audio-based breathing lamp control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007329633A (en) * 2006-06-07 2007-12-20 Sony Corp Control apparatus, synchronism correction method, and synchronism correction program
CN101576786A (en) * 2008-05-09 2009-11-11 群康科技(深圳)有限公司 Mobile phone
CN104679228A (en) * 2013-11-30 2015-06-03 鸿富锦精密工业(深圳)有限公司 Electronic device and control method thereof
CN104811538A (en) * 2015-03-26 2015-07-29 努比亚技术有限公司 Audio-based breathing lamp control method and device

Also Published As

Publication number Publication date
CN108401217A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN108401217B (en) Signal output and TWS earphone testing method, terminal, device and storage medium
CN101616331B (en) Method for testing video frequency frame rate and audio-video synchronous performance
US7813514B2 (en) Apparatus and method for checking loudspeaker
US11206393B2 (en) Display latency measurement system using available hardware
CN103313089A (en) Lip synchronization detection device and method
US8896705B2 (en) Measuring device and associated method for measuring response speed of display panel
CN109302525B (en) Method for playing sound and multi-screen terminal
RU2007139703A (en) IMAGE PLAYBACK AND MANAGEMENT METHOD
US11489750B2 (en) Automatic test system and device thereof
CN110335590B (en) Voice recognition test method, device and system
CN105100794A (en) Audio and video synchronization test method and apparatus
CN111551348B (en) Gamma debugging method and device
CN201467383U (en) Video frequency frame rate tester
CN112040333A (en) Video distribution method, device, terminal and storage medium
CN112104969B (en) Detection method and device for Bluetooth headset
CN112783707A (en) Method and system for measuring click response time of touch screen
CN108419199A (en) Fault detection method, device and the equipment of acoustic signals, readable medium
CN111163310B (en) Television audio test method, device, equipment and computer readable storage medium
US11528473B2 (en) Automatic test method
CN103489464A (en) Effect control device, effect control method, and program
CN110570832B (en) Internet-of-things air electronic organ
CN112423124A (en) Dynamic playing method, device and system based on large-screen video player
CN110033723A (en) Show input delay detection system and method
EP4024878A1 (en) A method and a system for testing audio-video synchronization of an audio-video player
CN203151680U (en) Single-board test system for digital-video-broadcasting (DVB) main board

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