Bluetooth audio test method and system, test equipment and storage medium

By playing the target audio in Bluetooth audio test and collecting microphone audio, extracting and comparing feature parameters, the problem of low test accuracy in the existing technology is solved, and more accurate Bluetooth audio testing is achieved and real usage scenarios is simulated, which improves the testing Efficiency and reliability of results.

CN119299938APending Publication Date: 2025-01-10ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310841644.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing Bluetooth audio testing methods adopt the method of testing instructions and data flow, and cannot test and simulate the real usage scenarios of Bluetooth voice, resulting in low test accuracy.

Method used

After playing the target audio on the playback end, it receives the audio collected by the microphone, extracts its characteristic parameters, compares the actual characteristic parameters and standard characteristic parameters, generates test results, and simulates the real Bluetooth audio usage scenario to improve the test accuracy.

Benefits of technology

It improves the accuracy of Bluetooth audio test results, can more effectively test and simulate real Bluetooth audio usage scenarios, reduces development costs, and has high versatility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299938A_ABST
    Figure CN119299938A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a Bluetooth audio testing method and system, testing equipment and a storage medium, the method is applied to a testing end, the method comprises the steps that after a playing end plays a target audio, the target audio collected by a microphone is received, and the target audio is the audio transmitted to the playing end by a tested end through Bluetooth; extracting feature parameters of the target audio collected by the microphone to obtain actual feature parameters; determining standard characteristic parameters of the target audio in the test case; and generating a test result based on the actual characteristic parameters and the standard characteristic parameters. Therefore, the test result of the Bluetooth audio is generated by testing and simulating the use scene of the real Bluetooth audio, and the accuracy of the test result of the Bluetooth audio can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing technology, and in particular to a Bluetooth audio testing method, system, testing equipment and storage medium. Background Art

[0002] An existing Bluetooth audio testing method can be implemented based on a BLE (Bluetooth Low Energy) FPGA (Field Programmable Gate Array) development board.

[0003] However, since the above-mentioned Bluetooth audio testing method adopts the test instruction and data stream mode for testing, it cannot test and simulate the actual usage scenario of Bluetooth voice, thus resulting in low test accuracy. Summary of the invention

[0004] In view of this, in order to solve some or all of the above technical problems, the embodiments of the present application provide a Bluetooth audio testing method, system, testing equipment and storage medium.

[0005] In a first aspect, an embodiment of the present application provides a method for testing Bluetooth audio, the method being applied to a test terminal, the method comprising:

[0006] After the target audio is played at the playback end, the target audio collected by the microphone is received, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth;

[0007] Extracting characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters;

[0008] Determine standard characteristic parameters of the target audio described in the test case;

[0009] A test result is generated based on the actual characteristic parameter and the standard characteristic parameter.

[0010] In a possible implementation manner, the test end is used to test audio transmitted by multiple tested ends via Bluetooth; the tested ends, the microphones, the playback ends and the shielding box correspond one to one; and

[0011] After the target audio is played at the playback end, receiving the target audio collected by a microphone includes:

[0012] In the case where the microphone, the playback end and the tested end having a corresponding relationship are arranged in a corresponding shielding box, after the playback end plays the target audio, the target audio collected by the microphone is received.

[0013] In a possible implementation manner, before the playback end plays the target audio, the method further includes:

[0014] Establishing a connection with the tested end;

[0015] Determine the unique identifier of the playback terminal to obtain a target identifier;

[0016] The target identifier is sent to the tested end, so that the tested end establishes a Bluetooth connection with the playback end through the target identifier.

[0017] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0018] Cutting off the silent part of the target audio collected by the microphone to obtain non-silent audio;

[0019] Extract characteristic parameters from the non-silent audio to obtain actual characteristic parameters.

[0020] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0021] Performing frequency domain transformation on the target audio collected by the microphone to obtain a frequency domain signal;

[0022] Extract characteristic parameters from the frequency domain signal to obtain actual characteristic parameters.

[0023] In a possible implementation manner, extracting characteristic parameters from the frequency domain signal to obtain actual characteristic parameters includes:

[0024] Extracting frequency characteristic parameters and amplitude characteristic parameters from the frequency domain signal;

[0025] The frequency characteristic parameter and the amplitude characteristic parameter are determined as actual characteristic parameters.

[0026] In a possible implementation manner, before generating a test result based on the actual characteristic parameter and the standard characteristic parameter, the method further includes:

[0027] Determining the Bluetooth signal strength between the playback terminal and the tested terminal; and

[0028] The generating of the test result based on the actual characteristic parameter and the standard characteristic parameter comprises:

[0029] A test result is generated based on the Bluetooth signal strength, the actual characteristic parameter and the standard characteristic parameter.

[0030] In a second aspect, an embodiment of the present application provides a Bluetooth audio testing system, the system comprising a testing end, a tested end, a playback end and a microphone, the testing end being communicatively connected to the tested end, and the playback end and the tested end being connected via Bluetooth; wherein: the testing end is used to implement the method of any embodiment of the Bluetooth audio testing method of the first aspect of the present application.

[0031] In a third aspect, an embodiment of the present application provides a Bluetooth audio test device, the device is arranged at a test end, and the device includes:

[0032] A receiving unit, configured to receive the target audio collected by a microphone after the target audio is played at the playback end, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth;

[0033] An extraction unit, used to extract characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters;

[0034] A first determining unit, used to determine standard characteristic parameters of the target audio in the test case;

[0035] A generating unit is used to generate a test result based on the actual characteristic parameter and the standard characteristic parameter.

[0036] In a possible implementation manner, the test end is used to test audio transmitted by multiple tested ends via Bluetooth; the tested ends, the microphones, the playback ends and the shielding box correspond one to one; and

[0037] After the target audio is played at the playback end, receiving the target audio collected by a microphone includes:

[0038] In the case where the microphone, the playback end and the tested end having a corresponding relationship are arranged in a corresponding shielding box, after the playback end plays the target audio, the target audio collected by the microphone is received.

[0039] In a possible implementation manner, before the playback end plays the target audio, the device further includes:

[0040] A connection unit, used to establish a connection with the tested end;

[0041] A second determining unit, used to determine the unique identifier of the playback terminal to obtain a target identifier;

[0042] The sending unit is used to send the target identifier to the tested end, so that the tested end establishes a Bluetooth connection with the playback end through the target identifier.

[0043] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0044] Cutting off the silent part of the target audio collected by the microphone to obtain non-silent audio;

[0045] Extract characteristic parameters from the non-silent audio to obtain actual characteristic parameters.

[0046] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0047] Performing frequency domain transformation on the target audio collected by the microphone to obtain a frequency domain signal;

[0048] Extract characteristic parameters from the frequency domain signal to obtain actual characteristic parameters.

[0049] In a possible implementation manner, extracting characteristic parameters from the frequency domain signal to obtain actual characteristic parameters includes:

[0050] Extracting frequency characteristic parameters and amplitude characteristic parameters from the frequency domain signal;

[0051] The frequency characteristic parameter and the amplitude characteristic parameter are determined as actual characteristic parameters.

[0052] In a possible implementation manner, before generating a test result based on the actual characteristic parameter and the standard characteristic parameter, the device further includes:

[0053] A third determining unit, configured to determine the Bluetooth signal strength between the playback terminal and the tested terminal; and

[0054] The generating of the test result based on the actual characteristic parameter and the standard characteristic parameter comprises:

[0055] A test result is generated based on the Bluetooth signal strength, the actual characteristic parameter and the standard characteristic parameter.

[0056] In a fourth aspect, an embodiment of the present application provides an electronic device, including:

[0057] Memory for storing computer programs;

[0058] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the Bluetooth audio testing method of the first aspect of the present application is implemented.

[0059] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the Bluetooth audio testing method of the first aspect described above is implemented.

[0060] In a sixth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device implements a method as in any embodiment of the Bluetooth audio testing method of the first aspect described above.

[0061] The Bluetooth audio test method provided in the embodiment of the present application is applied to the test end, which can receive the target audio collected by the microphone after the target audio is played on the playback end, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth, and then extract the characteristic parameters of the target audio collected by the microphone to obtain the actual characteristic parameters, and determine the standard characteristic parameters of the target audio in the test case, and finally, generate the test results based on the actual characteristic parameters and the standard characteristic parameters. Thus, by testing and simulating the actual Bluetooth audio usage scenario to generate the Bluetooth audio test results, the accuracy of the Bluetooth audio test results can be improved.

[0062] The Bluetooth audio test system provided in the embodiment of the present application includes a test end, a tested end, a playback end and a microphone, wherein the test end is communicatively connected to the tested end, and the playback end and the tested end are connected via Bluetooth; wherein: the test end is used to receive the target audio collected by the microphone after the target audio is played at the playback end, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth, and then the characteristic parameters of the target audio collected by the microphone are extracted to obtain the actual characteristic parameters, and the standard characteristic parameters of the target audio in the test case are determined, and finally, the test results are generated based on the actual characteristic parameters and the standard characteristic parameters. Thus, by testing and simulating the actual usage scenarios of Bluetooth audio to generate the test results of Bluetooth audio, the accuracy of the test results of Bluetooth audio can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0065] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0066] Figure 1 A flowchart of a Bluetooth audio testing method provided in an embodiment of the present application;

[0067] Figure 2 A flowchart of another Bluetooth audio testing method provided in an embodiment of the present application;

[0068] Figure 3 A flowchart of another Bluetooth audio testing method provided in an embodiment of the present application;

[0069] Figure 4A A schematic diagram of the structure of a Bluetooth audio test system provided in an embodiment of the present application;

[0070] Figure 4B A schematic diagram of the structure of another Bluetooth audio test system provided in an embodiment of the present application;

[0071] Figure 4C A schematic diagram of the structure of another Bluetooth audio test system provided in an embodiment of the present application;

[0072] Figure 5 A schematic diagram of the structure of a Bluetooth audio test device provided in an embodiment of the present application;

[0073] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values ​​described in these embodiments do not limit the scope of the present application.

[0075] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.

[0076] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.

[0077] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0078] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0079] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0080] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.

[0081] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.

[0082] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0083] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0084] In order to solve the technical problem of low accuracy of Bluetooth audio test results in the prior art, the present application provides a Bluetooth audio test method, which can improve the accuracy of Bluetooth audio test results.

[0085] Figure 1A flow chart of a method for testing Bluetooth audio provided in an embodiment of the present application. This method can be applied to a test terminal. The test terminal may include one or more electronic devices such as a smart phone, a laptop computer, a desktop computer, a portable computer, a server, etc. In addition, the execution subject of this method may be hardware or software. When the execution subject is hardware, the execution subject may be one or more of the electronic devices. For example, a single electronic device may execute this method, or a plurality of electronic devices may cooperate with each other to execute this method. When the execution subject is software, this method may be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is given here.

[0086] like Figure 1 As shown, the method specifically includes:

[0087] Step 101, after playing the target audio at the playback end, receiving the target audio collected by the microphone, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth.

[0088] In this embodiment, the playback end can be used to play the audio transmitted by the tested end via Bluetooth. As an example, the playback end can be a Bluetooth speaker.

[0089] The target audio may include any one or more audio segments of the tested end. As an example, the target audio may include voice audio.

[0090] The microphone can be used to collect the above target audio played by the playback end.

[0091] The tested end can be any device with a Bluetooth audio transmission function. As an example, the tested end can be a mobile phone with a Bluetooth audio transmission function, a computer with a Bluetooth audio transmission function, etc.

[0092] Step 102: extracting characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters.

[0093] In this embodiment, the actual feature parameter may be a feature parameter of the target audio collected by the extracted microphone. As an example, the actual feature parameter may include at least one of the following: amplitude, frequency, Mel-scale Frequency Cepstral Coefficients (MFCC), fundamental tone, etc.

[0094] Step 103: determine standard feature parameters of the target audio in the test case.

[0095] In this embodiment, the standard characteristic parameter may be the characteristic parameter of the target audio included in the test case.

[0096] The standard feature parameter corresponds to the actual feature parameter. The standard feature parameter may include at least one of the following: amplitude, frequency, Mel-frequency cepstral coefficient, fundamental frequency, etc. Specifically, when the actual feature parameter includes amplitude, the standard feature parameter may also include amplitude.

[0097] It should be noted that the execution order of step 103 and step 101 and step 102 is not limited. For example, step 101 and step 102 may be executed first, and then step 103, or step 103 may be executed first, and then step 101 and step 102.

[0098] Step 104: Generate a test result based on the actual characteristic parameters and the standard characteristic parameters.

[0099] In this embodiment, the test result can be generated by comparing the similarity, error, inclusion relationship, etc. between the actual feature parameters and the standard feature parameters.

[0100] The test result may indicate whether the test on the target audio passes.

[0101] As an example, if the similarity between the actual feature parameters and the standard feature parameters is greater than or equal to a preset similarity threshold, then a test result indicating that the test passed can be generated; if the similarity between the actual feature parameters and the standard feature parameters is less than the above-mentioned preset similarity threshold, then a test result indicating that the test failed can be generated.

[0102] As another example, if the error between the actual feature parameters and the standard feature parameters is greater than or equal to a preset error threshold, then a test result indicating that the test failed can be generated; if the error between the actual feature parameters and the standard feature parameters is less than the above-mentioned preset error threshold, then a test result indicating that the test passed can be generated.

[0103] As another example, if the actual feature parameter is within the range represented by the standard feature parameter, then a test result indicating that the test passed can be generated; if the actual feature parameter is outside the range represented by the standard feature parameter, then a test result indicating that the test failed can be generated.

[0104] In some optional implementations of this embodiment, before the playback end plays the target audio, the following steps may also be performed:

[0105] The first step is to establish a connection with the tested end.

[0106] The second step is to determine the unique identifier of the playback terminal and obtain the target identifier.

[0107] The target identifier may be a unique identifier of the playback terminal, for example, the target identifier may be a MAC (Media Access Control Address, local area network address) address of the playback terminal.

[0108] The third step is to send the target identifier to the tested end, so that the tested end establishes a Bluetooth connection with the playback end through the target identifier.

[0109] Specifically, the tested end, the playback end and the microphone can be started, and the target identifier of the tested end can be determined to start the test. After starting the test, it can be determined whether the communication link between the test end and the tested end is successful. Afterwards, the test end turns on the Bluetooth function of the tested end through a communication interface such as a network port and a serial port, and searches for the target identifier of the playback end. Then, it can be determined whether the tested end searches for and obtains a specified target identifier. The tested end is paired and connected with the playback end according to the specified target identifier.

[0110] It can be understood that in the above optional implementation method, by determining the unique identifier of the playback end, the tested end can be more accurately controlled to establish a Bluetooth connection with the playback end, so that the specified playback end establishes a Bluetooth connection with the tested end, and this is recorded, which can facilitate subsequent restoration of the test scenario in order to analyze the test results.

[0111] In some optional implementations of this embodiment, the following method may be used to extract the characteristic parameters of the target audio collected by the microphone, thereby obtaining the actual characteristic parameters:

[0112] First, the silent part of the target audio collected by the microphone is cut off to obtain the non-silent audio.

[0113] Afterwards, feature parameters are extracted from the non-silent audio to obtain actual feature parameters.

[0114] The actual feature parameter may be a feature parameter extracted from non-silent audio.

[0115] It can be understood that in the above optional implementation method, the collected target audio is first preprocessed, that is, the silence at the beginning and end is removed to extract the characteristic parameters in the non-silent audio. This can reduce interference to subsequent steps and thus improve the accuracy of test result generation.

[0116] In some optional implementations of this embodiment, the following method may be used to extract the characteristic parameters of the target audio collected by the microphone, thereby obtaining the actual characteristic parameters:

[0117] First, the target audio collected by the microphone is transformed into a frequency domain to obtain a frequency domain signal.

[0118] The frequency domain signal may be a signal obtained by performing frequency domain transformation on the target audio collected by a microphone.

[0119] Afterwards, characteristic parameters are extracted from the frequency domain signal to obtain actual characteristic parameters.

[0120] The actual characteristic parameter may be a characteristic parameter extracted from the frequency domain signal.

[0121] It can be understood that in the above optional implementation, the accuracy of the test result can be further improved by extracting characteristic parameters in the frequency domain signal.

[0122] In some application scenarios of the above optional implementations, the following method may be used to extract characteristic parameters from the frequency domain signal, thereby obtaining actual characteristic parameters:

[0123] Firstly, frequency characteristic parameters and amplitude characteristic parameters are extracted from the frequency domain signal.

[0124] Afterwards, the frequency characteristic parameter and the amplitude characteristic parameter are determined as actual characteristic parameters.

[0125] It can be understood that in the above application scenarios, the Bluetooth audio test can be performed by comparing the frequency characteristic parameters and amplitude characteristic parameters of the target audio collected by the microphone with the frequency characteristic parameters and amplitude characteristic parameters in the test case. In this way, the accuracy of the Bluetooth voice test result generation can be further improved.

[0126] In some optional implementations of this embodiment, before generating the test result based on the actual characteristic parameter and the standard characteristic parameter, the Bluetooth signal strength between the playback end and the tested end may also be determined.

[0127] On this basis, the following method can be used to generate test results based on the actual characteristic parameters and the standard characteristic parameters:

[0128] A test result is generated based on the Bluetooth signal strength, the actual characteristic parameter and the standard characteristic parameter.

[0129] Here, the target audio test is meaningful only when the signal strength falls within a certain range, that is, the signal is neither too strong nor too weak. In this case, there will be no saturation due to too strong a signal, nor will there be any decoding error due to too weak a signal.

[0130] It can be understood that in the above optional implementation, by comparing the actual characteristic parameters with the standard characteristic parameters with reference to the Bluetooth signal strength and then generating the test result, the accuracy of the test result generation can be further improved.

[0131] The Bluetooth audio test method provided in the embodiment of the present application is applied to the test end, which can receive the target audio collected by the microphone after the target audio is played on the playback end, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth, and then extract the characteristic parameters of the target audio collected by the microphone to obtain the actual characteristic parameters, and determine the standard characteristic parameters of the target audio in the test case, and finally, generate the test results based on the actual characteristic parameters and the standard characteristic parameters. Thus, by testing and simulating the actual Bluetooth audio usage scenario to generate the Bluetooth audio test results, the accuracy of the Bluetooth audio test results can be improved.

[0132] Figure 2 A flowchart of another method for testing Bluetooth audio provided in an embodiment of the present application. The method is applied to a test terminal. The test terminal is used to test the audio transmitted by multiple test terminals via Bluetooth. The test terminals, the microphones, the playback terminals and the shielding box correspond one to one.

[0133] like Figure 2 As shown, the method specifically includes:

[0134] Step 201, when a microphone, a playback end and the tested end having a corresponding relationship are arranged in a corresponding shielding box, after the target audio is played at the playback end, the target audio collected by the microphone is received, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth.

[0135] In this embodiment, a microphone, a playback terminal and a tested terminal may be placed in each shielding box. The microphone, the playback terminal and the tested terminal placed in the shielding box correspond to the shielding box.

[0136] Shielding box can be used to prevent interference from external electromagnetic waves and sound sources.

[0137] In addition, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.

[0138] Step 202: extract characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters.

[0139] In this embodiment, step 202 and Figure 1 Step 102 in the corresponding embodiment is basically the same and will not be described again here.

[0140] Step 203: determine the standard feature parameters of the target audio in the test case.

[0141] In this embodiment, step 203 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.

[0142] Step 204: Generate a test result based on the actual characteristic parameters and the standard characteristic parameters.

[0143] In this embodiment, step 204 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.

[0144] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For technical effects of the Bluetooth audio test method shown, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.

[0145] In the Bluetooth audio testing method provided in the embodiment of the present application, each test end can be used to test the Bluetooth audio of multiple tested ends, and each tested module (including a microphone, a tested end, a playback end and a shielding box with a corresponding relationship) is independent of each other and does not affect each other. Therefore, the method can test the Bluetooth audio of multiple tested ends at the same time, thereby improving the testing efficiency of the Bluetooth audio.

[0146] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.

[0147] Among the existing Bluetooth audio test solutions, there is an adaptive Bluetooth test system, which includes an intelligent Bluetooth test unit and a monitoring storage unit. The system can realize the automated testing of characteristic indicators such as Bluetooth transmission power, clock frequency, and sensitivity. However, this test method requires the use of dedicated test equipment, and the test efficiency is low, which is not suitable for mass production testing.

[0148] In addition, there is a Bluetooth test system and method, which can realize the simultaneous testing of multiple Bluetooth devices based on the BLE (Bluetooth Low Energy) FPGA (Field Programmable Gate Array) development board, greatly improving the test efficiency. However, the test system needs to develop a dedicated test tool, and the Bluetooth communication adopts the test instructions and data stream mode, which cannot test and simulate the real use scenario of Bluetooth voice.

[0149] In order to test the real scene of simulating Bluetooth voice, there is also a Bluetooth test device and a Bluetooth test system using the device. The device includes a radio frequency circuit and a baseband circuit, and the audio output interface of the baseband circuit is connected to an external speaker. Due to the addition of an external speaker, the tester does not have to wear a Bluetooth headset for testing. However, this test method requires the tester to try to pair and connect according to the Bluetooth device to be tested, and after the pairing is successful, initiate the test of the data communication function. The pairing process is complicated. In addition, the manual test method has problems such as human misjudgment and inconsistent test standards, and its voice quality cannot be guaranteed.

[0150] In summary, the existing Bluetooth tests have the following deficiencies:

[0151] (1) The development cost of developing dedicated Bluetooth test equipment is high. A complete set of test tools and test systems need to be developed for specific Bluetooth devices, and the universality of the test tools and test systems is poor.

[0152] (2) Most Bluetooth tests use test commands and data streams as a communication method, which cannot test and simulate actual customer usage scenarios.

[0153] (3) The Bluetooth voice test method has a low degree of automation, the manual test method is subject to human error, and the test standards cannot be unified, etc., which are quality risks.

[0154] In view of this, the present method provides a method and system for automated testing based on Bluetooth voice, which can be used for production testing and functional inspection of Bluetooth devices. A microphone can be used to collect the simulated sound signal (i.e., the target audio) emitted by a Bluetooth speaker (i.e., the playback end) connected to the Bluetooth device to be tested (i.e., the tested end) to generate a corresponding audio file, and then the test platform (i.e., the test end) calls the voice algorithm to process the audio file, quantify the test standard by extracting the characteristic parameters of the sound, and finally automatically judge and draw the test conclusion. The present method can improve the efficiency of Bluetooth automated testing and the reliability of test results, quantify test standards, reduce development costs, test and simulate real customer usage scenarios, and has high versatility and strong scalability.

[0155] The method may include the following steps:

[0156] 1) Start the Bluetooth device, Bluetooth speaker and microphone to be tested. Scan the serial number of the Bluetooth device to be tested to start the test.

[0157] 2) Determine whether the communication link between the PC (i.e. the above-mentioned test terminal) and the Bluetooth device to be tested is successful.

[0158] 3) The PC test platform (that is, the test end mentioned above) turns on the Bluetooth function of the Bluetooth device to be tested through communication interfaces such as the network port and the serial port, and searches for the Bluetooth MAC address of the Bluetooth speaker.

[0159] 4) Determine whether the Bluetooth device to be tested has searched and obtained a specified Bluetooth MAC address.

[0160] 5) The Bluetooth device to be tested pairs and connects with the Bluetooth speaker according to the specified Bluetooth MAC address. The Bluetooth device to be tested calculates the Bluetooth signal strength and feeds it back to the PC test platform.

[0161] 6) The Bluetooth device under test controls the Bluetooth speaker through the Bluetooth interface to play a standardized audio file (that is, the target audio mentioned above), which is collected by the microphone and transmitted to the PC to generate an audio file such as WAV.

[0162] 7) Turn off the Bluetooth adapter of the device under test. The PC test platform calls the voice algorithm to process the collected audio files, compares the processed sound characteristic parameters (that is, the actual characteristic parameters mentioned above) with the test standards (that is, the standard characteristic parameters mentioned above), and returns the test results, which are uploaded and saved to the test database.

[0163] Specifically, if Figure 3 As shown, Figure 3 A flowchart of another method for testing Bluetooth audio provided in an embodiment of the present application. The method comprises the following steps:

[0164] Step 301: Start the Bluetooth device, Bluetooth speaker and microphone to be tested. Ensure that the Bluetooth device to be tested is connected to the PC through a communication interface such as an Ethernet port or a serial port, and ensure that the Bluetooth speaker is in a search state. Scan the serial number of the Bluetooth device to be tested, and the test platform starts testing.

[0165] In a specific application, the test platform refers to the MAT (MTE Auto Test) production test platform, and the scanner automatically scans the serial number of the Bluetooth device to be tested to obtain the required test cases.

[0166] Step 302: Determine whether the communication link between the PC and the Bluetooth device to be tested is successful.

[0167] In a specific application, the PC can send a link establishment request to the Bluetooth device to be tested, and the Bluetooth device to be tested will return a response message after receiving the link establishment request, that is, the link establishment is successful. If the communication link between the PC and the Bluetooth device to be tested is successful within the preset time, the next Bluetooth test will begin; if not, the PC will repeatedly send the link establishment request to the Bluetooth device to be tested within the preset time, until the link establishment time exceeds the preset time, the PC does not receive the response message, the test is terminated, and the test is returned to step 301 to restart.

[0168] Step 303: The PC test platform turns on the Bluetooth function of the Bluetooth device to be tested through a communication interface such as an Ethernet port or a serial port, and searches for and obtains the Bluetooth MAC address of the Bluetooth speaker.

[0169] In a specific application, after the PC establishes a link with the Bluetooth device to be tested, it sends a request to the Bluetooth device to turn on the Bluetooth function. The Bluetooth device to be tested turns on the Bluetooth function and searches for all Bluetooth devices around it, and parses the MAC addresses of all Bluetooth devices within the search range.

[0170] Step 304: Determine whether the Bluetooth device to be tested has searched and obtained the target Bluetooth MAC address.

[0171] In a specific application, the PC can transmit a specified target Bluetooth MAC address to the Bluetooth device under test. The Bluetooth device under test automatically pairs and connects to the target Bluetooth speaker based on the target Bluetooth MAC address. Within a preset time, if the Bluetooth device under test searches for a Bluetooth MAC address that contains the target Bluetooth MAC address, the device under test is paired and connected to the Bluetooth speaker; otherwise, the Bluetooth device under test repeatedly feeds back to the PC within a preset time that the search for the target Bluetooth MAC address has failed until the number of feedbacks exceeds the preset number, and the PC test platform pops up a box prompting "Bluetooth connection failed, please reopen the Bluetooth speaker and make sure the Bluetooth speaker is in search status". If the search still fails, the test terminates and returns to step 301 to restart the test.

[0172] Step 305: The Bluetooth device to be tested can be paired and connected with the Bluetooth speaker according to the specified Bluetooth MAC address. The Bluetooth device to be tested calculates the Bluetooth signal strength and feeds it back to the PC test platform.

[0173] Step 306: The Bluetooth device under test controls the volume of the Bluetooth speaker through the Bluetooth interface and plays a standardized audio file, which is collected by the microphone and transmitted to the PC to generate an audio file in WAV format. In order to distinguish the audio files of each device under test, the serial number of the Bluetooth device under test can be used to name the audio file.

[0174] Step 307: turn off the Bluetooth adapter of the device under test; the PC test platform calls the voice algorithm to process the collected audio file, compares the processing result with the test standard, and returns the test result, which is uploaded and saved to the test database.

[0175] In specific applications, the collected audio files are first preprocessed, and the silence at the beginning and end needs to be removed to reduce interference with subsequent steps. After the sound signal preprocessing is completed, the characteristic parameters of the sound are extracted after frequency domain transformation. For example, the range and amplitude of the main frequency of the sound signal, the range and amplitude of other secondary frequencies, etc. can be analyzed, and characteristic indicators such as the range of the main frequency and the amplitude ratio of the main frequency to other secondary frequencies are calculated, and the Bluetooth signal strength index obtained in step 305 is compared with the test standard. All the acquired test data are automatically judged as passed within the test standard, otherwise, the test fails. The test results and test data are uploaded and saved to the test database. The test database implements platform management and control, so that the test data can be queried and the test process can be controlled.

[0176] The example of the present invention realizes the automatic test based on Bluetooth voice by playing, collecting and processing audio files by algorithm, which improves the efficiency of Bluetooth automatic test and the stability of test results. The test system can test and simulate the real usage scenarios of customers and has high versatility and strong scalability.

[0177] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the Bluetooth audio testing method shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.

[0178] The test method of Bluetooth audio provided in the embodiment of the present application plays a standard audio through the Bluetooth function, and uses a voice algorithm to process the collected audio file, thereby realizing an automated test based on Bluetooth voice. In addition, in this method, a section of audio can also be played through the Bluetooth function, and other devices recognize the audio and perform corresponding operations. By this method, the efficiency of Bluetooth automated testing and the reliability of test results can be improved, and parallel testing of multiple Bluetooth devices to be tested can be realized without interfering with each other. The test process does not require manual intervention, which can effectively avoid the behavior of manual misjudgment. In addition, the actual use scenario of customers can be tested and simulated. The real scenario of playing audio when the customer uses the Bluetooth device is simulated, and the collected sound signal is processed by the voice algorithm, and the test standard is quantified by the characteristic parameters of the sound. The cost of developing test equipment is effectively reduced. There is no need to develop dedicated Bluetooth test equipment. Using the Bluetooth speakers, microphones, shielding boxes that are easily purchased on the market, and the computer program products in the embodiments of the present invention, a set of automated test systems based on Bluetooth voice can be built.

[0179] Reference Figure 4A , Figure 4A A schematic diagram of the structure of a Bluetooth audio test system provided in an embodiment of the present application.

[0180] like Figure 4A As shown, the system 1000 includes a test terminal 10, a tested terminal 20, a playback terminal 30 and a microphone 40. The test terminal 10 is connected to the tested terminal 20 for communication, and the playback terminal 30 is connected to the tested terminal 20 via Bluetooth. The test terminal 20 is used to implement any of the above-mentioned Bluetooth audio test methods of the present application.

[0181] Specifically, the Bluetooth audio test system may include:

[0182] 1) PC test platform (also known as the test end) is used to send test control instructions to the Bluetooth device to be tested (also known as the test end) and receive test logs, as well as perform voice algorithm processing on the collected audio files (also known as the target audio), and return automated test results, which are uploaded and saved to the test database.

[0183] 2) Bluetooth speaker (also known as the playback end): connected to the Bluetooth device to be tested via a Bluetooth interface, receives a standard sound signal from the Bluetooth device to be tested, and plays a standard audio (also known as the target audio).

[0184] 3) Microphone: used to collect analog sound signals from the Bluetooth speaker and transmit them to the PC to generate corresponding audio files. The interface between the microphone and the PC can be selected from audio interfaces such as USB, LINE_IN, MIC_IN, etc.

[0185] 4) Shielding box: used to prevent interference from external electromagnetic waves and sound sources.

[0186] 5) USB extender, used to expand the USB2.0 interface of the PC, making it convenient to connect multiple microphones and receive multiple captured audio files at the same time.

[0187] 6) Serial port / Ethernet port switch: used to expand the Ethernet port or serial port of the PC, convenient for connecting multiple Bluetooth devices to be tested, and conducting parallel tests on multiple Bluetooth devices to be tested.

[0188] 7) Test database: used to store and record test results and platform management. Test data can be queried, the test process can be controlled, and defective products can be prevented from flowing to customers.

[0189] As a first example, see Figure 4B , Figure 4B A schematic diagram of the structure of another Bluetooth audio test system provided in an embodiment of the present application. The Bluetooth audio test system includes:

[0190] PC test platform 111: used to send test control instructions to the Bluetooth device to be tested and receive test logs, as well as perform voice algorithm processing on the collected audio files and return automated test results, and upload and save the test results to the test database.

[0191] Preferably, the PC test platform is a test platform developed based on Windows 7 and above operating systems, and the PC supports desktop computers or laptops with dual network cards.

[0192] The Bluetooth device to be tested 112: terminal devices such as mobile phones, tablet computers, laptop computers, and Bluetooth test terminals.

[0193] Bluetooth speaker 113: connected to the Bluetooth device to be tested via a Bluetooth interface, receives a standard sound signal from the Bluetooth device to be tested, and plays a standard audio.

[0194] Preferably, the Bluetooth speakers are those that are easily available in the market. The Bluetooth devices to be tested are one-to-one with the Bluetooth speakers, and the user can determine the number of Bluetooth speakers according to the number of Bluetooth devices to be tested simultaneously.

[0195] Microphone 114: used to collect analog sound signals from the Bluetooth speaker and transmit them to the PC to generate corresponding audio files. The interface between the microphone and the PC can be selected from audio interfaces such as USB, LINE_IN, MIC_IN, etc.

[0196] Preferably, the Bluetooth speaker uses a microphone with a USB interface that is easily available in the market. The Bluetooth device to be tested and the microphone are one-to-one, and the user can determine the number of microphones according to the number of Bluetooth devices to be tested simultaneously.

[0197] Shielding box 115: used to prevent interference from external electromagnetic waves and sound sources.

[0198] Preferably, the shielding box is equipped with sound-absorbing cotton around the periphery to prevent the sound from echoing inside the shielding box and seriously affecting the test results. Standard sine wave, artificial voice

[0199] As a second example, see Figure 4C , Figure 4C A schematic diagram of the structure of another Bluetooth audio test system provided in an embodiment of the present application. The Bluetooth audio test system includes:

[0200] Test database 211: used to store and record test results and platform management. Test data can be queried, the test process can be controlled, and defective products can be prevented from flowing to customers.

[0201] Optionally, the database is a dedicated server. Users can choose whether to install the database according to their needs.

[0202] PC test platform 212: used to send test control instructions to the Bluetooth device to be tested and receive test logs, as well as perform voice algorithm processing on the collected audio files and return automated test results, and upload and save the test results to the test database.

[0203] Preferably, the PC test platform is a test platform developed based on Windows 7 and above operating systems, and the PC supports desktop computers or laptops with dual network cards.

[0204] USB extender 213: used to expand the USB2.0 interface of the PC, so as to facilitate the connection of multiple microphones and receive multiple collected audio files at the same time.

[0205] Optionally, the USB extender is a 4-port USB extender, but it is certainly not limited to this configuration, and the user can use different models of USB extenders as needed.

[0206] Serial port / network port switch 214: used for expanding the network port or serial port of the PC, so as to facilitate connecting multiple Bluetooth devices to be tested and perform parallel testing on the multiple Bluetooth devices to be tested.

[0207] Optionally, the serial port switch can be replaced by a serial port expansion card, and the network port switch can be replaced by a network port expansion card or a router.

[0208] Bluetooth device to be tested 215: terminal devices such as mobile phones, tablet computers, laptop computers, and Bluetooth test terminals.

[0209] Bluetooth speaker 216: connected to the Bluetooth device to be tested via a Bluetooth interface, receives a standard sound signal from the Bluetooth device to be tested, and plays a standard audio.

[0210] Preferably, the Bluetooth speakers are those that are easily available in the market. The Bluetooth devices to be tested are one-to-one with the Bluetooth speakers, and the user can determine the number of Bluetooth speakers according to the number of Bluetooth devices to be tested simultaneously.

[0211] Microphone 217: used to collect analog sound signals from the Bluetooth speaker and transmit them to the PC to generate corresponding audio files. The interface between the microphone and the PC can be selected from audio interfaces such as USB, LINE_IN, MIC_IN, etc.

[0212] Preferably, the Bluetooth speaker uses a microphone with a USB interface that is easily available in the market. The Bluetooth device to be tested and the microphone are one-to-one, and the user can determine the number of microphones according to the number of Bluetooth devices to be tested simultaneously.

[0213] Shielding box 218: used to prevent interference from external electromagnetic waves and sound sources.

[0214] Preferably, sound-absorbing cotton is installed around the shielding box to prevent the sound from echoing inside the shielding box and seriously affecting the test results.

[0215] Figure 5 A schematic diagram of the structure of a Bluetooth audio test device provided in an embodiment of the present application. The device is arranged at a test end, and the device comprises:

[0216] The receiving unit 401 is used to receive the target audio collected by the microphone after the target audio is played at the playback end, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth;

[0217] An extraction unit 402 is used to extract characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters;

[0218] A first determining unit 403 is used to determine the standard characteristic parameters of the target audio in the test case;

[0219] The generating unit 404 is used to generate a test result based on the actual characteristic parameter and the standard characteristic parameter.

[0220] In a possible implementation manner, the test end is used to test audio transmitted by multiple tested ends via Bluetooth; the tested ends, the microphones, the playback ends and the shielding box correspond one to one; and

[0221] After the target audio is played at the playback end, receiving the target audio collected by a microphone includes:

[0222] In the case where the microphone, the playback end and the tested end having a corresponding relationship are arranged in a corresponding shielding box, after the playback end plays the target audio, the target audio collected by the microphone is received.

[0223] In a possible implementation manner, before the playback end plays the target audio, the device further includes:

[0224] A connection unit (not shown in the figure), used to establish a connection with the measured end;

[0225] A second determining unit (not shown in the figure) is used to determine the unique identifier of the playback end to obtain a target identifier;

[0226] The sending unit (not shown in the figure) is used to send the target identifier to the tested end, so that the tested end establishes a Bluetooth connection with the playback end through the target identifier.

[0227] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0228] Cutting off the silent part of the target audio collected by the microphone to obtain non-silent audio;

[0229] Extract characteristic parameters from the non-silent audio to obtain actual characteristic parameters.

[0230] In a possible implementation manner, extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes:

[0231] Performing frequency domain transformation on the target audio collected by the microphone to obtain a frequency domain signal;

[0232] Extract characteristic parameters from the frequency domain signal to obtain actual characteristic parameters.

[0233] In a possible implementation manner, extracting characteristic parameters from the frequency domain signal to obtain actual characteristic parameters includes:

[0234] Extracting frequency characteristic parameters and amplitude characteristic parameters from the frequency domain signal;

[0235] The frequency characteristic parameter and the amplitude characteristic parameter are determined as actual characteristic parameters.

[0236] In a possible implementation manner, before generating a test result based on the actual characteristic parameter and the standard characteristic parameter, the device further includes:

[0237] A third determining unit (not shown in the figure), configured to determine the Bluetooth signal strength between the playback terminal and the tested terminal; and

[0238] The generating of the test result based on the actual characteristic parameter and the standard characteristic parameter comprises:

[0239] A test result is generated based on the Bluetooth signal strength, the actual characteristic parameter and the standard characteristic parameter.

[0240] The Bluetooth audio test device provided in this embodiment can be as follows: Figure 5 The Bluetooth audio test device shown in can execute all steps of the Bluetooth audio test methods described above, thereby achieving the technical effects of the Bluetooth audio test methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.

[0241] Figure 6 A schematic diagram of the structure of a test device provided in an embodiment of the present application, Figure 6The test device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the test device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 6 Various buses are labeled as bus system 505 .

[0242] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0243] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0244] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .

[0245] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.

[0246] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:

[0247] After the target audio is played at the playback end, the target audio collected by the microphone is received, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth;

[0248] Extracting characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters;

[0249] Determine standard characteristic parameters of the target audio described in the test case;

[0250] A test result is generated based on the actual characteristic parameter and the standard characteristic parameter.

[0251] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.

[0252] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.

[0253] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0254] The test equipment provided in this embodiment can be Figure 6 The test equipment shown in can execute all the steps of the above-mentioned Bluetooth audio test methods, thereby achieving the technical effects of the above-mentioned Bluetooth audio test methods. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.

[0255] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0256] When one or more programs in the storage medium can be executed by one or more processors, the Bluetooth audio test method executed on the test device side can be implemented.

[0257] The processor is used to execute the Bluetooth audio test program stored in the memory to implement the following steps of the Bluetooth audio test method performed on the test device side:

[0258] After the target audio is played at the playback end, the target audio collected by the microphone is received, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth;

[0259] Extracting characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters;

[0260] Determine standard characteristic parameters of the target audio described in the test case;

[0261] A test result is generated based on the actual characteristic parameter and the standard characteristic parameter.

[0262] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0263] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0264] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0265] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for testing Bluetooth audio, characterized in that: The method is applied to a test end, and the method includes: After the target audio is played at the playback end, the target audio collected by the microphone is received, wherein the target audio is the audio transmitted from the tested end to the playback end via Bluetooth; Extracting characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters; Determine standard characteristic parameters of the target audio described in the test case; A test result is generated based on the actual characteristic parameter and the standard characteristic parameter.

2. The method according to claim 1, characterized in that The test end is used to test the audio transmitted by the multiple tested ends via Bluetooth; the tested ends, the microphones, the playback end and the shielding box correspond one to one; as well as After the target audio is played at the playback end, receiving the target audio collected by a microphone includes: In the case where the microphone, the playback end and the tested end having a corresponding relationship are arranged in a corresponding shielding box, after the playback end plays the target audio, the target audio collected by the microphone is received.

3. The method according to claim 1, characterized in that Before the target audio is played at the playback end, the method further includes: Establishing a connection with the tested end; Determine the unique identifier of the playback terminal to obtain a target identifier; The target identifier is sent to the tested end, so that the tested end establishes a Bluetooth connection with the playback end through the target identifier.

4. The method according to claim 1, characterized in that: The step of extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes: Cutting off the silent part of the target audio collected by the microphone to obtain non-silent audio; Extract characteristic parameters from the non-silent audio to obtain actual characteristic parameters.

5. The method according to claim 1, characterized in that The step of extracting the characteristic parameters of the target audio collected by the microphone to obtain actual characteristic parameters includes: Performing frequency domain transformation on the target audio collected by the microphone to obtain a frequency domain signal; Extract characteristic parameters from the frequency domain signal to obtain actual characteristic parameters.

6. The method according to claim 5, characterized in that The step of extracting characteristic parameters from the frequency domain signal to obtain actual characteristic parameters includes: Extracting frequency characteristic parameters and amplitude characteristic parameters from the frequency domain signal; The frequency characteristic parameter and the amplitude characteristic parameter are determined as actual characteristic parameters.

7. The method according to any one of claims 1 to 6, characterized in that: Before generating the test result based on the actual characteristic parameter and the standard characteristic parameter, the method further includes: Determining the Bluetooth signal strength between the playback terminal and the tested terminal; and The generating of the test result based on the actual characteristic parameter and the standard characteristic parameter comprises: A test result is generated based on the Bluetooth signal strength, the actual characteristic parameter and the standard characteristic parameter.

8. A Bluetooth audio testing system, characterized in that: The system comprises a test end, a tested end, a playback end and a microphone, wherein the test end is in communication connection with the tested end, and the playback end is in Bluetooth connection with the tested end; wherein: The test end is used to implement the method described in any one of claims 1 to 7 above.

9. A testing device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.