Test method and test system for speakers and microphones of set-top boxes

By automatically testing the speaker and microphone of the smart set-top box, analyzing and comparing the evaluation index values ​​of recorded audio files with standard values, the problem of low testing efficiency in the existing technology is solved, and an efficient and low-cost testing process is achieved.

CN115134733BActive Publication Date: 2025-03-14SHENZHEN SKYWORTH DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210751640.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2025-03-14
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

The method of testing the speaker and microphone of the smart set-top box in the prior art is inefficient, and it depends on professional auditory identification or requires separate testing, resulting in low testing efficiency and high cost.

Method used

By controlling the speaker at the set-top box to play the preset test audio, and control the microphone recording, analyze the evaluation index value of the recorded audio file, compare it with the standard evaluation index value, judge whether the index value difference is within the preset error range, and automatically confirm that the test is qualified or failed.

Benefits of technology

Automated standardized testing is realized, reducing dependence on professionals, simplifying the testing process, improving testing efficiency and reducing testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134733B_ABST
    Figure CN115134733B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of intelligent testing technology, and provides a method for testing the speakers and microphones of a set-top box, which solves the technical problem of low efficiency in the prior art in testing the speakers and microphones of intelligent set-top boxes. The testing method of the present application mainly includes: controlling the speakers on the set-top box end to play the test audio recorded in a preset test audio file; controlling the microphone on the set-top box end to record the test audio to obtain a recorded audio file; analyzing and converting the recorded audio file to obtain an evaluation index value of the recorded audio file; comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference; judging whether the index value difference is within a preset error range; if the index value difference is within the error range, confirming that the test is qualified; if the index value difference is not within the error range, confirming that the test is unqualified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of intelligent testing technology, and in particular, relates to a testing method and a testing system for a speaker and a microphone of a set-top box. Background Art

[0002] Smart far-field voice is a technology that integrates artificial intelligence (AI) voice search technology to improve user experience. Smart set-top boxes (STBs) with far-field voice function will become intelligent interactive transfer devices between TV devices, network devices and other home devices, providing families with entertainment, home appliance control, security and other services.

[0003] Intelligent far-field speech recognition requires the combination of the front-end and the back-end. The front-end usually uses a microphone array to pick up the speech. The commonly used configurations of microphone arrays are generally dual-microphone, quad-microphone, and hexa-microphone. The placement and configuration of the microphone array need to consider factors such as the product structure and usage scenarios of the smart set-top box. It usually takes simulation and actual testing and error correction to finalize. The back-end recognizes speech, speaker sound, and artificial intelligence algorithms through the device's main chip to achieve human-computer interaction.

[0004] Therefore, in order to ensure the quality of microphones and speakers for intelligent far-field voice, factories that produce smart set-top boxes with far-field voice functions need to test the microphones and speakers before the smart set-top boxes leave the factory. In the prior art, the process of testing the microphones and speakers of smart set-top boxes is mainly carried out in the following ways:

[0005] Method 1: Start recording the microphone while the speaker of the smart set-top box plays the test audio. After the recording is finished, let the speaker of the smart set-top box play the audio just recorded by the microphone. Rely on the hearing of professionals to distinguish the quality of the audio recorded by the microphone played by the speaker of the smart set-top box to determine whether the speaker and microphone of the smart set-top box are qualified. It can be seen that in the prior art, the method 1 that relies on professionals to test the audio recorded by the microphone played by the speaker of the smart set-top box, it is difficult for different professionals to unify the hearing and sound evaluation standards, which makes the test method of relying on professionals to test the smart set-top box have great uncertainty, and personnel cannot work for a long time, resulting in low test efficiency and high cost.

[0006] Method 2: Use a professional audio analysis instrument to analyze the speaker and microphone of the smart set-top box separately; when the speaker of the smart set-top box plays the test audio, use the audio analysis instrument to record the test audio played by the speaker of the smart set-top box and analyze the frequency response curve and harmonic distortion rate of the recorded audio to test the speaker of the smart set-top box; in addition, place the smart set-top box in a soundproof box, and the speaker in the soundproof box plays the test audio. The frequency response curve of the recorded audio recorded by the microphone of the smart set-top box is analyzed by the audio analysis instrument matched with the soundproof box to test the microphone of the smart set-top box. It can be seen that the test method of method 2 in the prior art requires the speaker and microphone of the same smart set-top box to be tested separately, and the test process is complicated, resulting in low test efficiency and high cost. Summary of the invention

[0007] The present application provides a method and system for testing a speaker and a microphone of a set-top box, aiming to solve the technical problem of low efficiency in the prior art in testing the speaker and the microphone of a smart set-top box.

[0008] In a first aspect, the present application provides a method for testing a speaker and a microphone, comprising:

[0009] Controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file;

[0010] Controlling a microphone on a set-top box to record the test audio to obtain a recorded audio file;

[0011] Analyze and convert the recorded audio file to obtain an evaluation index value of the recorded audio file;

[0012] Comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0013] Determine whether the indicator value difference is within a preset error range;

[0014] If the index value difference is within the error range, the test is confirmed to be qualified;

[0015] If the index value difference is not within the error range, the test is confirmed to be unqualified.

[0016] Optionally, before controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file, the method further includes:

[0017] Receive a start test instruction;

[0018] The speaker of the set-top box is adjusted to a target volume according to the start test instruction.

[0019] Optionally, the test audio includes: X segments of test audio in different frequency ranges, where X is a positive integer greater than 5, and the X segments of test audio in different frequency ranges cover all frequency bands of male and female voice ranges.

[0020] Optionally, the evaluation index value includes a recorded audio amplitude; and the analyzing and converting the recorded audio file to obtain the evaluation index value of the recorded audio file includes:

[0021] Using a fast Fourier transform algorithm to analyze and convert the recorded audio file, and output full-frequency spectrum data;

[0022] The amplitude of each frequency segment corresponding to the X different frequency ranges is extracted from the full-frequency spectrum data to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

[0023] Optionally, the set-top box end includes: Y qualified set-top box ends that have been tested and verified, where Y is a positive integer greater than 1; before comparing the evaluation index value with a standard evaluation index value corresponding to the test audio, the method further includes:

[0024] Controlling the speakers of each qualified set-top box end to play the test audio recorded in the test audio file one by one, wherein the Y qualified set-top boxes end are located in a preset target shielding box, and the target shielding box is connected to the production line of the set-top boxes end;

[0025] Controlling the microphone of each qualified set-top box end to record the test audio one by one, and obtaining Y qualified set-top box end recorded audio files;

[0026] Analyze and convert the Y qualified set-top box-end recorded audio files respectively to obtain the qualified set-top box-end recorded audio amplitudes corresponding to the Y qualified set-top box-end recorded audio files;

[0027] Calculate the maximum qualified set-top box-end recorded audio amplitude, the minimum qualified set-top box-end recorded audio amplitude, and the maximum amplitude difference between the maximum qualified set-top box-end recorded audio amplitude and the minimum qualified set-top box-end recorded audio amplitude among the Y qualified set-top box-end recorded audio amplitudes;

[0028] The standard test audio amplitude is equal to the minimum qualified set-top box end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box end recorded audio amplitude minus half of the maximum amplitude difference;

[0029] The standard test audio amplitude is used as the standard evaluation index value.

[0030] Optionally, the analyzing and converting the recorded audio file to obtain an evaluation index value of the recorded audio file includes:

[0031] Controlling the set-top box to analyze and convert the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0032] The step of comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference includes:

[0033] The set-top box sends the evaluation index value to the test device;

[0034] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference;

[0035] The step of judging whether the index value difference is within a preset error range includes:

[0036] The testing device determines whether the index value difference is within a preset error range.

[0037] Optionally, the analyzing and converting the recorded audio file to obtain an evaluation index value of the recorded audio file includes:

[0038] Controlling the set-top box to send the recorded audio file to the test device;

[0039] The test device analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0040] The step of comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference includes:

[0041] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0042] The step of judging whether the index value difference is within a preset error range includes:

[0043] The test device determines whether the indicator value difference is within a preset error range.

[0044] In a second aspect, the present application provides a speaker and microphone testing system, comprising:

[0045] A playing unit, used for controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file;

[0046] A recording unit, used for controlling the microphone of the set-top box to record the test audio to obtain a recorded audio file;

[0047] A conversion unit, used to analyze and convert the recorded audio file to obtain an evaluation index value of the recorded audio file;

[0048] A comparing unit, used to compare the evaluation index value with a standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0049] A judging unit, used to judge whether the index value difference is within a preset error range;

[0050] A confirmation unit, used to confirm that the test is qualified if the difference of the indicator value is within the error range;

[0051] The confirmation unit is further used to confirm that the test is unqualified if the difference in the indicator value is not within the error range.

[0052] Optionally, the system further includes:

[0053] A receiving unit, used for receiving a test start instruction;

[0054] The adjusting unit is used to adjust the speaker of the set-top box to a target volume according to the start test instruction.

[0055] Optionally, the test audio includes: X segments of test audio in different frequency ranges, where X is a positive integer greater than 5, and the X segments of test audio in different frequency ranges cover all frequency bands of male and female voice ranges.

[0056] Optionally, the evaluation index value includes the recorded audio amplitude;

[0057] When the conversion unit analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, it is specifically used to:

[0058] Using a fast Fourier transform algorithm to analyze and convert the recorded audio file, and output full-frequency spectrum data;

[0059] The amplitude of each frequency segment corresponding to the X different frequency ranges is extracted from the full-frequency spectrum data to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

[0060] Optionally, the set-top box terminal includes: Y qualified set-top box terminals that have been tested and verified, where Y is a positive integer greater than 1; and the system further includes:

[0061] The playing unit is further used to control the speakers of each qualified set-top box to play the test audio recorded in the test audio file one by one, and the Y qualified set-top boxes are located in a preset target shielding box, and the target shielding box is connected to the production line of the set-top boxes;

[0062] The recording unit is further used to control the microphone of each qualified set-top box end to record the test audio one by one, so as to obtain Y qualified set-top box end recorded audio files;

[0063] The conversion unit is further used to analyze and convert the Y qualified set-top box-end recorded audio files respectively to obtain the qualified set-top box-end recorded audio amplitudes corresponding to the Y qualified set-top box-end recorded audio files;

[0064] The calculation unit is further used to calculate the maximum qualified set-top box-end recorded audio amplitude, the minimum qualified set-top box-end recorded audio amplitude, and the maximum amplitude difference between the maximum qualified set-top box-end recorded audio amplitude and the minimum qualified set-top box-end recorded audio amplitude among the Y qualified set-top box-end recorded audio amplitudes;

[0065] The standard test audio amplitude is equal to the minimum qualified set-top box end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box end recorded audio amplitude minus half of the maximum amplitude difference;

[0066] As a unit, it is used to use the standard test audio amplitude as the standard evaluation index value.

[0067] Optionally, the converting unit analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, specifically including:

[0068] Controlling the set-top box to analyze and convert the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0069] When the comparison unit compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference, the method specifically includes:

[0070] The set-top box sends the evaluation index value to the test device;

[0071] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference;

[0072] When the judging unit judges whether the indicator value difference is within a preset error range, it specifically includes:

[0073] The testing device determines whether the index value difference is within a preset error range.

[0074] Optionally, the converting unit analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, specifically including:

[0075] Controlling the set-top box to send the recorded audio file to the test device;

[0076] The test device analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0077] When the comparison unit compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference, the method specifically includes:

[0078] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0079] When the judging unit judges whether the indicator value difference is within a preset error range, it specifically includes:

[0080] The test device determines whether the indicator value difference is within a preset error range.

[0081] In a third aspect, the present application provides a computer device, including:

[0082] Processor, memory, bus, input and output interface, network interface;

[0083] The processor is connected to the memory, the input / output interface, and the network interface via a bus;

[0084] The memory stores a program;

[0085] When the processor executes the program stored in the memory, the method for testing the speaker and the microphone as described in any one of the first aspects above is implemented.

[0086] In a fourth aspect, the present application provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the speaker and microphone testing method as described in any one of the first aspects above.

[0087] In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the speaker and microphone testing method as described in any one of the first aspects above.

[0088] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0089] The test method of the speaker and microphone of the present application starts from controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file, and controlling the microphone of the set-top box to record the test audio to obtain a recorded audio file; then the recorded audio file is analyzed and converted to obtain the evaluation index value of the recorded audio file; then the evaluation index value is compared with the corresponding standard evaluation index value of the above test audio to obtain the index value difference; finally, it is only necessary to judge whether the index value difference is within the preset error range. If the index value difference is within the error range, it indicates that the speaker and microphone of the set-top box have passed the test; if the index value difference is not within the error range, it indicates that the speaker and microphone of the set-top box have failed the test. It can be seen that the test method of the speaker and microphone is conducive to realizing automated standardization, and there is no need to rely on professionals to make on-site judgments on the speakers and microphones of the set-top box, which can help reduce labor costs and unify evaluation standards. At the same time, the test method does not need to test the speakers and microphones of the same smart set-top box separately, which simplifies the test process, improves test efficiency, and reduces test costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 A flowchart of an embodiment of a method for testing a speaker and a microphone of the present application;

[0091] Figure 2 A flowchart of another embodiment of the method for testing a speaker and a microphone of the present application;

[0092] Figure 3 A schematic diagram of the structure of an embodiment of a test system for a speaker and a microphone of the present application;

[0093] Figure 4 This is a schematic diagram of another embodiment of the structure of the speaker and microphone testing system of the present application;

[0094] Figure 5 This is a schematic diagram of the structure of an embodiment of a computer device of the present application. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0096] It should be noted that the set-top box (also referred to as the set-top box end or smart set-top box in this application) is a device for realizing the intelligent far-field voice function. The set-top box will become an intelligent interactive transfer device between television equipment, network equipment and other home appliances, providing entertainment, home appliance control, security and other services for the family. The set-top box needs to strictly test its speakers and microphones when it leaves the factory to ensure that the speakers and microphones of the set-top box are in normal working condition. The test method of the set-top box speaker and microphone of this application relies on its own audio analysis capability and the speakers and microphones of the set-top box can be controlled separately, so that it can get rid of the dependence on professionals and audio analysis instruments, save test resources, and the test method of this application supports parallel testing (that is, the set-top boxes in different shielding boxes can be tested at the same time), which greatly improves the test efficiency of the set-top box speakers and microphones, and is particularly suitable for factories producing set-top boxes to implement on production lines.

[0097] Please refer to Figure 1 , an embodiment of the testing method of the speaker and microphone of the present application includes:

[0098] 101. Control the speaker of the set-top box to play the test audio recorded in the preset test audio file.

[0099] After the set-top box is assembled on the production line of the factory, it will be transferred to a special shielding box, and the set-top box in the shielding box will communicate with the test equipment through wired communication or wireless communication. Then this step can control the speaker at the set-top box end to play the test audio recorded in the preset test audio file. The test audio here can include part of the frequency bands or all the frequency bands of all male and female voices, so as to achieve the playback of audio in a specific frequency band or all the frequency bands. The frequency bands included in the test audio are not limited here.

[0100] 102. Control the microphone of the set-top box to record the test audio to obtain a recorded audio file.

[0101] While the speaker at the set-top box is controlled to play the test audio recorded in the preset test audio file in step 101, this step controls the microphone at the set-top box to record the test audio played in step 101, thereby obtaining a recorded audio file.

[0102] 103. Analyze and convert the recorded audio file to obtain an evaluation index value of the recorded audio file.

[0103] It is understandable that in order to evaluate the recorded audio file recorded by the microphone on the set-top box end in step 102, this step needs to perform analysis and conversion of the recorded audio file according to specific standards to obtain the evaluation index value of the recorded audio file. The specific standard for analyzing and converting the recorded audio file here is mainly determined based on the compared standard evaluation index value. For example, if the evaluation index value is the amplitude of the frequency, then the fast Fourier transform algorithm needs to be used here to convert the recorded audio file into the amplitude of the corresponding frequency. This step does not limit the specific standard for audio conversion. Since the set-top box end already has its own audio analysis capability in the production test process of this step, this step appropriately utilizes its audio analysis capability in the test process to reduce the calculation pressure on the test equipment end.

[0104] 104. Compare the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference.

[0105] It is worth noting that the test audio of step 101 above needs to be converted into a standard evaluation index value in advance according to a specific standard, and the standard evaluation index value is stored in the test device. For example, if the standard evaluation index value is the amplitude of the frequency, then the fast Fourier transform algorithm needs to be used here to convert the test audio file into the amplitude of the corresponding frequency. This step does not limit the specific standard of audio conversion. This step compares the evaluation index value of step 103 with the standard evaluation index value to obtain the index value difference.

[0106] 105. Determine whether the index value difference is within a preset error range. If the index value difference is within the preset error range, execute step 106; if the index value difference is not within the preset error range, execute step 107.

[0107] It is understandable that, due to the differences in test environments and the hardware differences of each set-top box, there is usually a certain error between the evaluation index value and the standard evaluation index value. Therefore, it is considered that the index value difference between the evaluation index value and the standard evaluation index value is within a certain error range and can be considered acceptable. This step further determines whether the index value difference of step 104 is within a preset error range. If the index value difference is within the preset error range, it indicates that the index value difference is acceptable; if the index value difference is not within the preset error range, it indicates that the index value difference is unacceptable.

[0108] 106. Confirm that the test is qualified.

[0109] If it is determined in step 105 that the index value difference is within the preset error range, it indicates that the index value difference is acceptable, and it is determined that the set-top box has passed the test.

[0110] 107. Confirmation test failed.

[0111] If it is determined in step 105 that the index value difference is not within the preset error range, it indicates that the index value difference is unacceptable, and it is determined that the set-top box is unqualified after the test.

[0112] The test method of the speaker and microphone of the present application starts from controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file, and controlling the microphone of the set-top box to record the test audio to obtain a recorded audio file; then the recorded audio file is analyzed and converted to obtain the evaluation index value of the recorded audio file; then the evaluation index value is compared with the corresponding standard evaluation index value of the above test audio to obtain the index value difference; finally, it is only necessary to judge whether the index value difference is within the preset error range. If the index value difference is within the error range, it indicates that the speaker and microphone of the set-top box have passed the test; if the index value difference is not within the error range, it indicates that the speaker and microphone of the set-top box have failed the test. It can be seen that the test method of the speaker and microphone is conducive to realizing automated standardization, and there is no need to rely on professionals to make on-site judgments on the speakers and microphones of the set-top box, which can help reduce labor costs and unify evaluation standards. At the same time, the test method does not need to test the speakers and microphones of the same smart set-top box separately, which simplifies the test process, improves test efficiency, and reduces test costs.

[0113] Please refer to Figure 2 Another embodiment of the speaker and microphone testing method of the present application includes:

[0114] 201. Receive a start test instruction.

[0115] After the set-top box is assembled on the production line of the factory, it will be transmitted to a special target shielding box, and the set-top box in the target shielding box will communicate and connect with the test equipment through wired communication or wireless communication. Then the test equipment in this step can send a start test instruction to the set-top box that needs to be tested, so as to instruct a certain set-top box in the target shielding box to execute the test method scheme of the present application. Specifically, the test equipment end can configure an automated test tool in advance, and after receiving the start test instruction issued by the user to the test equipment end (for example, click the start button to start), the test tool of the test equipment end will send a start test instruction to the set-top box end to be tested in the target shielding box through the http protocol, and the set-top box end will start the test after receiving the start test instruction.

[0116] 202. According to the start test instruction, adjust the speaker of the set-top box to a target volume.

[0117] It is understandable that in order to test the speaker of the set-top box more accurately and to facilitate the microphone of the set-top box to record the speaker in the shielding box in the subsequent step, this step requires the set-top box to adjust the volume of the set-top box speaker to the target volume in time after receiving the start test instruction in step 302. The target volume here can be determined according to the actual test environment, that is, the environment in the target shielding box. For example, the target volume can be the maximum volume of the system of the set-top box. Specifically, if the system of the set-top box adopts the Android system, the maximum volume of the system can be set through the Android standard interface AudioManager.

[0118] 203. Control the speaker of the set-top box to play the test audio recorded in the preset test audio file.

[0119] This step is performed in the same way as above. Figure 1 Step 101 in the embodiment is similar, and the repeated parts are not repeated here.

[0120] For example, if the system of the set-top box adopts the Android system, the test audio recorded in the test audio file in the specified WAV format can be played through the Android standard interface MediaPlayer. Usually, the test audio needs to include X test audios with different frequency ranges, where X is usually a positive integer greater than 5, and the test audios with X different frequency ranges should cover all frequency bands of male and female voices. For example: the test audio recorded in the test audio file includes 5 frequency ranges, namely: 2 Hz, 164 Hz, 394 Hz, 698 Hz, and 1174 Hz. The range of male and female voices: (fundamental frequency) bass 80-320 Hz, baritone 100-400 Hz, tenor 130-480 Hz, mezzo-soprano 160-600 Hz, soprano 250-1200 Hz. Because the set-top box needs to realize the far-field voice function, and the far-field voice function equipment requires human-computer interaction, the played audio should cover all frequency bands of male and female voices to ensure the reliable use effect of the product.

[0121] 204. Control the microphone of the set-top box to record the test audio to obtain a recorded audio file.

[0122] This step is performed in the same way as above. Figure 1 Step 102 in the embodiment is similar, and the repeated parts are not repeated here.

[0123] For example, if the system of the set-top box adopts Android system, the recording can be performed through the tinycap tool that comes with the Android system, and the recorded audio file is PCM data. The Tinycap recording command is "tinycaptestmic.wav-D 0-d 7-c 2-r 16000-b 16-p 256-T 10". In the above recording command, testmic.wav is the recorded audio file; -D indicates the sound card, parameter 0 is the sound card device number; -d indicates the device, parameter 7 is the microphone; -c 2 indicates two channels; -r16000 indicates the sampling rate of 16000; -b 16 indicates 16 bits; -p 256 indicates that the size of a single sampling segment in the sampling period is 256 bytes; T indicates the sampling time, and 10 indicates that 10 seconds are required to be recorded. It should be noted that the recording parameters of the tinycap tool for recording need to be consistent with the driver configuration parameters, such as sampling rate, bit, sampling period, etc. If they are inconsistent, the amplitude of the recorded audio will be shifted upward. After recording the test audio to obtain the recorded audio file in this step, it is necessary to turn off the speaker and microphone of the set-top box in time to avoid affecting the next set-top box. When there are other untested set-top boxes in the same target shielding box, the test audio is played and recorded for the next set-top box in the target shielding box according to the preset rules.

[0124] 205. Use the fast Fourier transform algorithm to analyze and convert the recorded audio files and output the spectrum data of the full frequency domain.

[0125] In one of the embodiments, after the set-top box obtains the recorded audio file in step 204, it can directly send the recorded audio file to the test equipment, and the subsequent test analysis process is uniformly completed by the high-performance test equipment (for example, the test equipment uses a fast Fourier transform algorithm to analyze and convert the recorded audio file and outputs full-frequency spectrum data), which is conducive to speeding up the efficiency of factory assembly line testing.

[0126] In another embodiment, after the set-top box obtains the recorded audio file in step 204, it can use the audio analysis capability of the set-top box to analyze and convert the recorded audio file. For example, the set-top box uses a fast Fourier transform algorithm to analyze and convert the recorded audio file and outputs spectrum data of the full frequency domain.

[0127] 206. Extract the amplitude of each frequency segment corresponding to the X different frequency ranges from the spectrum data of the full frequency domain to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

[0128] It should be noted that when the index value is the amplitude of the frequency, if this step is performed by the test device, the test device uses the fast Fourier transform (FFT) algorithm implemented by the improved ffmpeg tool to analyze and convert the input audio file (PCM data), output the spectrum data of the full frequency domain, and extract the amplitude of each frequency corresponding to the 5 frequency segments in the test audio (recorded audio amplitude). The ffmpeg tool supports the output of data of any frequency point and can be customized as needed. The ffmpeg parsing command is as follows:

[0129] fmpeg-i xxxx.wav-lavfishowspectrumpic=s=1024x1024:s_pos="+400+":mode=separate:

[0130] scale=log / data / spr.png-loglevel error 2>&1|awk'{print$4$5$6}'"

[0131] The above analysis command means: analyze the recording file xxxx.wav, take the 400th frame data as the sampling point, and output the frequency points of the left and right channels and their corresponding amplitudes at that time point.

[0132] It is worth noting that when the price index value is the amplitude of the frequency and this step is executed by the set-top box, the above process can also be referred to, and the details will not be repeated here.

[0133] 207. Compare the recorded audio amplitude with the standard recorded audio amplitude corresponding to the test audio to obtain an index value difference.

[0134] It should be noted that when step 206 is executed by the set-top box, this step requires the set-top box to send the obtained evaluation index value (recorded audio amplitude) to the test device, and then the test device will compare the evaluation index value with the corresponding standard evaluation index value of the test audio to obtain the index value difference.

[0135] This step is performed in the same way as above. Figure 1 Step 104 in the embodiment is similar, and the repeated parts are not repeated here.

[0136] It is worth noting that the standard evaluation index value used in this step is the standard recorded audio amplitude corresponding to the test audio. The standard evaluation index value may include various indicators that characterize the performance of speakers and microphones, such as: frequency response, distortion rate, sensitivity and other standard values ​​of one or more evaluation indicators. By setting the standard evaluation index value, it is convenient for subsequent steps to quickly detect and compare the corresponding evaluation index values ​​on the set-top box side to obtain test results. The standard evaluation index value of this step can be directly input as an empirical value in advance, or it can be obtained through experimental testing. The method obtained through experimental testing is more suitable for different factory production environments, as follows:

[0137] Place Y (assuming there are 50, Y is a positive integer greater than 1) qualified set-top boxes that have passed the test on the production test line of the factory, and place the Y qualified set-top boxes in a preset target shielding box (for example, divide the 50 qualified set-top boxes into a group of 4, get 13 groups, each group is placed in a target shielding box, and the last target shielding box is placed with 2 qualified set-top boxes), the target shielding box is connected to the set-top box production line, simulate the test process of set-top box production, and then control the speaker of each qualified set-top box one by one to play the test audio recorded in the preset test audio file, and control the microphone of each qualified set-top box one by one to record the test audio, and obtain the qualified set-top box corresponding to each qualified set-top box. The audio file is recorded on the box end, and then Y qualified set-top box-end recorded audio files are obtained. It should be noted that each target shielding box can only test one qualified set-top box in the same time period. After only broadcasting and recording are completed for a qualified set-top box in the same target shielding box, only broadcasting and recording are performed on another qualified set-top box in the same target shielding box. The execution is repeated until all qualified set-top boxes in the same target shielding box are tested to avoid the sound crosstalk caused by simultaneous testing of multiple qualified set-top boxes in the same target shielding box; then the Y qualified set-top box-end recorded audio files are analyzed and converted respectively. The analysis and conversion standard here can be determined according to actual needs and is not limited here. Assuming that the standard evaluation index value adopts the audio amplitude, then the relevant standards for audio amplitude conversion are adopted here to obtain the qualified set-top box-end recorded audio amplitudes corresponding to Y qualified set-top box-end recorded audio files, and then calculate the maximum qualified set-top box-end recorded audio amplitude, the minimum qualified set-top box-end recorded audio amplitude, and the maximum amplitude difference between the maximum qualified set-top box-end recorded audio amplitude and the minimum qualified set-top box-end recorded audio amplitude among the Y qualified set-top box-end recorded audio amplitudes, where the standard test audio amplitude is equal to the minimum qualified set-top box-end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box-end recorded audio amplitude minus half of the maximum amplitude difference; the standard test audio amplitude is sent to the test device end as the standard evaluation index value. After comparing the data, it was found that under normal circumstances, different standard evaluation index values ​​need to be set for set-top box devices with different structural characteristics. The standard evaluation index values ​​of set-top boxes with the same structural characteristics tested in the target shielding box are within a smaller error range. For example, the difference in audio amplitudes corresponding to each frequency between the left and right microphones on the set-top box end does not exceed 5db, and the difference between the recorded audio amplitudes formed by each microphone on the set-top box end and the standard test audio amplitude will not be too far apart. Therefore, the data from a large number of qualified set-top boxes tested in a production environment can be processed and used as standard evaluation index values.

[0138] It should be noted that in the process of formulating standard evaluation index values ​​and error ranges, the recording and analysis scheme of this application can be used, and the set-top box can also be placed in different environments such as a shielding box, a soundproof box, and a work station for testing and comparative analysis. After comparative analysis, the applicant found that when testing at the factory work station, due to the noisy environment, it is easy to record noise, and the test effect is not good; the test effect is better in the soundproof box, and the frequency spectrum curve of the recorded audio is similar to the original audio, and the effect is better; when testing in the shielding box, due to the hard inner wall of the shielding box and the influence of echo, the test data is poor. Comparing the soundproof box and the shielding box environment, sound insulation cotton is added to the shielding box to reduce the echo, and the improved shielding box is tested again. The test effect is basically the same as the soundproof box test effect. In addition, the shielding box is usually an existing equipment for product testing on the factory assembly line. The test environment of the speaker and microphone is selected as the improved shielding box, which is integrated with the factory test process, saving costs and improving the utilization rate of items.

[0139] 208. Determine whether the index value difference is within a preset error range. If the index value difference is within the preset error range, execute step 209; if the index value difference is not within the preset error range, execute step 210.

[0140] This step is performed in the same way as above. Figure 1 Step 105 in the embodiment is similar, and the repeated parts are not repeated here.

[0141] 209. Confirm that the test is qualified.

[0142] If the difference in the index value is determined to be within the preset error range in step 208, it indicates that the difference in the index value is acceptable, and it is determined that the set-top box has passed the test. For example, by analyzing the difference between the amplitude of each frequency and the standard value, and the difference between the amplitude of each frequency of the left and right microphones and the standard value, it is determined whether the microphone and / or speaker of the set-top box has a cold soldering problem and a sensitivity problem of receiving in each frequency range. If it is within the error range, it is considered that the set-top box has passed the test and the set-top box product is qualified.

[0143] 210. Confirmation test failed.

[0144] If it is determined in step 208 that the index value difference is not within the preset error range, it indicates that the index value difference is unacceptable, and the set-top box is determined to be unqualified after the test. For example, by analyzing the difference between the amplitude of each frequency and the standard value, and the difference between the amplitude of each frequency of the left and right microphones and the standard value, it is determined whether the microphone and / or speaker of the set-top box has a cold soldering problem and a sensitivity problem of receiving in each frequency range. If it is not within the error range, it is considered that the set-top box has not passed the test and needs to be reworked and repaired.

[0145] It can be seen that compared with the prior art, the speaker and microphone testing method of the present application does not need to be analyzed by means of a professional audio analysis instrument (Audio Precision, AP), which eliminates the need for maintenance of the audio analysis instrument, and does not need to rely on the hearing of professionals and the evaluation of the playback sound of the set-top box, thereby reducing the test errors caused by human factors. Furthermore, the speaker and microphone testing method of the present application places the set-top box in a shielding box for testing one by one. Such a setting can achieve that the set-top boxes in different shielding boxes can broadcast and record at the same time, and realize parallel testing. It only needs to control the set-top box in each shielding box through the test equipment end, and an automated test process can be realized, so that the speaker and microphone test of the set-top box is fully integrated into the production process of the factory line, simplifying the test process, saving test time, and improving production test efficiency.

[0146] The above embodiments describe the testing method of the speaker and microphone of the present application. The following describes the testing system of the speaker and microphone of the present application. Figure 3 , an embodiment of the speaker and microphone test system of the present application comprises:

[0147] The playing unit 301 is used to control the speaker of the set-top box to play the test audio recorded in the preset test audio file;

[0148] The recording unit 302 is used to control the microphone of the set-top box to record the test audio to obtain a recorded audio file;

[0149] The conversion unit 303 analyzes and converts the recorded audio file to obtain an evaluation index value of the recorded audio file;

[0150] A comparing unit 304 is used to compare the evaluation index value with a standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0151] The judging unit 305 is used to judge whether the index value difference is within a preset error range;

[0152] A confirmation unit 306, configured to confirm that the test is qualified if the difference in the indicator value is within the error range;

[0153] The confirmation unit 306 is further configured to confirm that the test is unqualified if the indicator value difference is not within the error range.

[0154] The operation performed by the speaker and microphone test system of the present application embodiment is similar to the above Figure 1 The operations performed in are similar and will not be described in detail here.

[0155] See also Figure 4Another embodiment of the speaker and microphone testing system of the present application includes:

[0156] The playing unit 401 is used to control the speaker of the set-top box to play the test audio recorded in the preset test audio file;

[0157] The recording unit 402 is used to control the microphone of the set-top box to record the test audio to obtain a recorded audio file;

[0158] The conversion unit 403 is used to analyze and convert the recorded audio file to obtain an evaluation index value of the recorded audio file;

[0159] A comparing unit 404 is used to compare the evaluation index value with a standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0160] The judging unit 405 is used to judge whether the index value difference is within a preset error range;

[0161] A confirmation unit 406, configured to confirm that the test is qualified if the difference in the indicator value is within the error range;

[0162] The confirmation unit 406 is further configured to confirm that the test is unqualified if the indicator value difference is not within the error range.

[0163] Optionally, the system further includes:

[0164] A receiving unit 407, configured to receive a start test instruction;

[0165] The adjusting unit 408 is configured to adjust the speaker of the set-top box to a target volume according to the start test instruction.

[0166] Optionally, the test audio includes: X segments of test audio in different frequency ranges, where X is a positive integer greater than 5, and the X segments of test audio in different frequency ranges cover all frequency bands of male and female voice ranges.

[0167] Optionally, the evaluation index value includes the recorded audio amplitude;

[0168] When the conversion unit 403 analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, it is specifically used to:

[0169] Using a fast Fourier transform algorithm to analyze and convert the recorded audio file, and output full-frequency spectrum data;

[0170] The amplitude of each frequency segment corresponding to the X different frequency ranges is extracted from the full-frequency spectrum data to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

[0171] Optionally, the set-top box terminal includes: Y qualified set-top box terminals that have been tested and verified, where Y is a positive integer greater than 1; and the system further includes:

[0172] The playing unit 401 is further used to control the speakers of each qualified set-top box to play the test audio recorded in the test audio file one by one, and the Y qualified set-top boxes are located in a preset target shielding box, and the target shielding box is connected to the production line of the set-top boxes;

[0173] The recording unit 402 is further used to control the microphone of each qualified set-top box end to record the test audio one by one, and obtain Y qualified set-top box end recorded audio files;

[0174] The conversion unit 403 is further used to analyze and convert the Y qualified set-top box-end recorded audio files respectively to obtain the qualified set-top box-end recorded audio amplitudes corresponding to the Y qualified set-top box-end recorded audio files;

[0175] The calculation unit 409 is further configured to calculate the maximum qualified set-top box end recorded audio amplitude, the minimum qualified set-top box end recorded audio amplitude, and the maximum amplitude difference between the maximum qualified set-top box end recorded audio amplitude and the minimum qualified set-top box end recorded audio amplitude among the Y qualified set-top box end recorded audio amplitudes;

[0176] The standard test audio amplitude is equal to the minimum qualified set-top box end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box end recorded audio amplitude minus half of the maximum amplitude difference;

[0177] As unit 410, it is used to use the standard test audio amplitude as the standard evaluation index value.

[0178] Optionally, the conversion unit 403 analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, specifically including:

[0179] Controlling the set-top box to analyze and convert the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0180] The comparing unit 404 compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference, specifically including:

[0181] The set-top box sends the evaluation index value to the test device;

[0182] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference;

[0183] When the judging unit 405 judges whether the indicator value difference is within a preset error range, it specifically includes:

[0184] The testing device determines whether the index value difference is within a preset error range.

[0185] Optionally, the conversion unit 403 analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, specifically including:

[0186] Controlling the set-top box to send the recorded audio file to the test device;

[0187] The test device analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file;

[0188] The comparing unit 404 compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference, specifically including:

[0189] The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference;

[0190] When the judging unit 405 judges whether the indicator value difference is within a preset error range, it specifically includes:

[0191] The test device determines whether the indicator value difference is within a preset error range.

[0192] The operation performed by the speaker and microphone test system of the present application embodiment is similar to the above Figure 2 Some operations performed in are similar and will not be described here.

[0193] The computer device in the embodiment of the present application is described below. Figure 5 , an embodiment of the computer device in the embodiment of the present application includes:

[0194] The computer device 500 may include one or more processors (central processing units, CPU) 501 and a memory 502, in which one or more application programs or data are stored. The memory 502 is a volatile storage or a persistent storage. The program stored in the memory 502 may include one or more modules, and each module may include a series of instruction operations in the computer device. Furthermore, the processor 501 may be configured to communicate with the memory 502 to execute a series of instruction operations in the memory 502 on the computer device 500. The computer device 500 may also include one or more network interfaces 503, one or more input and output interfaces 504, and / or one or more operating systems, such as Windows Server, Mac OS, Unix, Linux, FreeBSD, etc. The processor 501 may execute the aforementioned Figure 1 or Figure 2 The operations performed in the illustrated embodiment will not be described in detail here.

[0195] In several embodiments provided in the embodiments of the present application, those skilled in the art should understand that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0196] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

[0197] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions or improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for testing a speaker and a microphone, characterized in that: include: Control the speaker of the set-top box to play the test audio recorded in the preset test audio file; Controlling the microphone of the set-top box to record the test audio to obtain a recorded audio file; Analyze and convert the recorded audio file to obtain an evaluation index value of the recorded audio file; Comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference; Determine whether the indicator value difference is within a preset error range; If the index value difference is within the error range, the test is confirmed to be qualified; If the index value difference is not within the error range, the test is confirmed to be unqualified; The test audio includes: X segments of test audio with different frequency ranges, where X is a positive integer greater than 5, and the X segments of test audio with different frequency ranges cover all frequency bands of male and female voice ranges; The set-top box end includes: Y qualified set-top box ends that have been tested and verified, where Y is a positive integer greater than 1; before comparing the evaluation index value with the standard evaluation index value corresponding to the test audio, the method further includes: Controlling the speakers of each qualified set-top box end to play the test audio recorded in the test audio file one by one, wherein the Y qualified set-top boxes end are located in a preset target shielding box, and the target shielding box is connected to the production line of the set-top boxes end; Controlling the microphone of each qualified set-top box end to record the test audio one by one, and obtaining Y qualified set-top box end recorded audio files; Analyze and convert the Y qualified set-top box-end recorded audio files respectively to obtain the qualified set-top box-end recorded audio amplitudes corresponding to the Y qualified set-top box-end recorded audio files; Calculate the maximum qualified set-top box-end recorded audio amplitude, the minimum qualified set-top box-end recorded audio amplitude, and the maximum amplitude difference between the maximum qualified set-top box-end recorded audio amplitude and the minimum qualified set-top box-end recorded audio amplitude among the Y qualified set-top box-end recorded audio amplitudes; The standard test audio amplitude is equal to the minimum qualified set-top box end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box end recorded audio amplitude minus half of the maximum amplitude difference; The standard test audio amplitude is used as the standard evaluation index value.

2. The method for testing a speaker and a microphone according to claim 1, characterized in that: Before controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file, the method further includes: Receive a start test instruction; The speaker of the set-top box is adjusted to a target volume according to the start test instruction.

3. The method for testing a speaker and a microphone according to claim 1, characterized in that: The evaluation index value includes the amplitude of the recorded audio; the analysis and conversion of the recorded audio file to obtain the evaluation index value of the recorded audio file includes: Using a fast Fourier transform algorithm to analyze and convert the recorded audio file, and output full-frequency spectrum data; The amplitude of each frequency segment corresponding to the X different frequency ranges is extracted from the full-frequency spectrum data to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

4. The method for testing a speaker and a microphone according to claim 1, characterized in that: The analyzing and converting the recorded audio file to obtain the evaluation index value of the recorded audio file comprises: Controlling the set-top box to analyze and convert the recorded audio file to obtain the evaluation index value of the recorded audio file; The step of comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference includes: The set-top box sends the evaluation index value to the test device; The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference; The step of judging whether the index value difference is within a preset error range includes: The testing device determines whether the index value difference is within a preset error range.

5. The method for testing a speaker and a microphone according to claim 1, characterized in that: The analyzing and converting the recorded audio file to obtain the evaluation index value of the recorded audio file comprises: Controlling the set-top box to send the recorded audio file to the test device; The test device analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file; The step of comparing the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain the index value difference includes: The test device compares the evaluation index value with the standard evaluation index value corresponding to the test audio to obtain an index value difference; The step of judging whether the index value difference is within a preset error range includes: The test device determines whether the indicator value difference is within a preset error range.

6. A speaker and microphone testing system, characterized in that: include: A playing unit, used for controlling the speaker of the set-top box to play the test audio recorded in the preset test audio file; A recording unit, used for controlling the microphone of the set-top box to record the test audio to obtain a recorded audio file; A conversion unit, which analyzes and converts the recorded audio file to obtain an evaluation index value of the recorded audio file; A comparing unit, used to compare the evaluation index value with a standard evaluation index value corresponding to the test audio to obtain an index value difference; A judging unit, used to judge whether the index value difference is within a preset error range; A confirmation unit, used to confirm that the test is qualified if the difference of the indicator value is within the error range; The confirmation unit is further used to confirm that the test is unqualified if the difference in the index value is not within the error range; The test audio includes: X segments of test audio with different frequency ranges, where X is a positive integer greater than 5, and the X segments of test audio with different frequency ranges cover all frequency bands of male and female voice ranges; The set-top box terminals include: Y qualified set-top box terminals that have been tested and verified, where Y is a positive integer greater than 1; The playback unit is further used to control the speakers of each qualified set-top box to play the test audio recorded in the test audio file one by one, and the Y qualified set-top boxes are located in a preset target shielding box, and the target shielding box is connected to the production line of the set-top boxes; The recording unit is further used to control the microphone of each qualified set-top box end to record the test audio one by one, so as to obtain Y qualified set-top box end recorded audio files; The conversion unit is further used to analyze and convert the Y qualified set-top box-end recorded audio files respectively to obtain the qualified set-top box-end recorded audio amplitudes corresponding to the Y qualified set-top box-end recorded audio files; a calculation unit, configured to calculate a maximum qualified set-top box-end recorded audio amplitude, a minimum qualified set-top box-end recorded audio amplitude, and a maximum amplitude difference between the maximum qualified set-top box-end recorded audio amplitude and the minimum qualified set-top box-end recorded audio amplitude among the Y qualified set-top box-end recorded audio amplitudes; The standard test audio amplitude is equal to the minimum qualified set-top box end recorded audio amplitude plus half of the maximum amplitude difference; or, the standard test audio amplitude is equal to the maximum qualified set-top box end recorded audio amplitude minus half of the maximum amplitude difference; As a unit, it is used to use the standard test audio amplitude as the standard evaluation index value.

7. The speaker and microphone testing system according to claim 6, characterized in that: The system further comprises: A receiving unit, used for receiving a test start instruction; The adjusting unit is used to adjust the speaker of the set-top box to a target volume according to the start test instruction.

8. The speaker and microphone testing system according to claim 7, characterized in that: The evaluation index value includes the recorded audio amplitude; When the conversion unit analyzes and converts the recorded audio file to obtain the evaluation index value of the recorded audio file, it is specifically used to: Using a fast Fourier transform algorithm to analyze and convert the recorded audio file, and output full-frequency spectrum data; The amplitude of each frequency segment corresponding to the X different frequency ranges is extracted from the full-frequency spectrum data to obtain the amplitude of the recorded audio corresponding to the X frequency segments.

Citation Information

Patent Citations

  • Testing method for loudspeaker and microphone, intelligent terminal and storage medium

    CN109168120A

  • Method and system for self-testing by using to-be-tested audio equipment

    CN110221944A