A method, device, storage medium and electronic device for testing voice equipment

By obtaining the environmental information and response timestamp of the voice device, calculating the synchronization score, and combining the volume attenuation rate and noise attributes to generate a realistic test sound source, the problem of inaccurate synchronization testing of voice devices in the existing technology is solved, and the accuracy of the test is improved. Accuracy and ability to reflect actual circumstances.

CN117877524BActive Publication Date: 2024-09-20GUANGZHOU ANJU INTERNET OF THINGS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410103753.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-24
Publication Date
2024-09-20
Estimated Expiration
2044-01-24

AI Technical Summary

Technical Problem

The existing voice device synchronization test method uses standard sound sources and fails to fully consider the differences in the actual use environment of different voice devices, resulting in inaccurate testing.

Method used

By obtaining the environmental information of the voice device, a test sound source that is more suitable for the actual situation is determined, and the synchronization score is calculated by calculating the difference between the response timestamps to evaluate the synchronization of the voice device. Optionally, consider the volume attenuation rate and noise properties to generate a more realistic test sound source to simulate speech input in the actual environment.

Benefits of technology

It improves the accuracy of voice device synchronization testing, can more accurately reflect the synchronization performance of the device in the actual use environment, and helps optimize the synchronization recognition effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117877524B
    Figure CN117877524B
Patent Text Reader

Abstract

The present application provides a voice equipment testing method, device, storage medium and electronic device, which relate to the field of voice testing technology. The method includes: obtaining environmental information of the places where multiple voice equipment are to be put into use, and determining the test sound source corresponding to each environmental information respectively; using the test sound source to test each voice equipment at the same time, and obtaining the response time of each voice equipment under each test sound source; according to the difference between the response time of each voice equipment under each test sound source, calculating the synchronization score between each voice equipment, and the synchronization score is used to evaluate the synchronization of each voice equipment. The present application determines a test sound source that is more in line with the actual situation based on the environmental information, and evaluates the synchronization of the voice equipment by calculating the synchronization score between each voice equipment. On the basis of determining a test sound source that is more in line with the actual situation, the synchronization of the voice equipment is quantitatively evaluated by the synchronization score, which can improve the accuracy of the voice equipment synchronization test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of voice testing technology, and in particular to a voice equipment testing method, device, storage medium and electronic equipment. Background Art

[0002] In recent years, voice control technology has been widely used in fields such as smart homes, and distributed control systems consisting of multiple voice devices have emerged. In such systems, the same sound source can control different devices through different voice devices, realizing distributed control of multiple devices. Multiple voice devices usually have synchronization requirements to start multiple devices at the same time (such as bedroom air conditioners, living room TVs, etc.).

[0003] In order to ensure the synchronous control effect of multiple voice devices, it is necessary to perform synchronous testing on the devices. The existing synchronous testing method is to use the same sound source to test multiple voice devices in the distributed control system at the same time under offline conditions to determine their synchronous recognition effect. However, this test method mostly uses standard sound sources for testing. The standard sound source has high clarity and recognition, and does not take into account the differences between different voice devices in actual use environments, resulting in inaccurate synchronous testing of voice devices. Summary of the invention

[0004] The present application provides a voice device testing method, device, storage medium and electronic device, which can improve the accuracy of voice device synchronization testing.

[0005] In a first aspect, the present application provides a method for testing a voice device, the method comprising:

[0006] Obtaining environmental information of locations where multiple voice devices are to be deployed, and determining test sound sources corresponding to each piece of environmental information;

[0007] Use the test sound source to test each voice device at the same time, and obtain the response time of each voice device under each test sound source;

[0008] The synchronization scores between the voice devices are calculated based on the differences between the response timestamps of the voice devices under each test sound source. The synchronization scores are used to evaluate the synchronization of the voice devices.

[0009] By adopting the above technical solution, a test sound source that is more in line with the actual situation is determined based on environmental information, and the synchronization of voice devices is evaluated by calculating the synchronization score between each voice device. On the basis of determining a test sound source that is more in line with the actual situation, the synchronization of voice devices is quantitatively evaluated through the synchronization score, which can improve the accuracy of voice device synchronization testing.

[0010] Optionally, the synchronization scores among the multiple voice devices are calculated according to the difference between the response times of the voice devices under the test sound sources, including:

[0011] Determine the difference between the response times of the various voice devices under the various test sound sources;

[0012] The volume difference between the test sound source and the standard test sound source is used as the weight, and the difference corresponding to each test sound source is weightedly calculated to obtain the synchronization score between multiple voice devices.

[0013] By adopting the above technical solution, by calculating the difference in the impact of the test sound source on the voice device, and then using the volume difference between the test sound source and the standard sound source as a weight to adjust the difference, weighted calculation of the test results can be achieved. In this way, when the test sound source has a greater impact on the device, its difference will have a greater weight when calculating the synchronization score, so that the evaluation results can more accurately reflect the true synchronization performance of the voice device.

[0014] Optionally, determining the difference corresponding to each test sound source according to the difference between the response times of each voice device under each test sound source includes:

[0015] Calculate the standard deviation of the response time of each voice device under each test sound source according to the difference between the response times of each voice device under each test sound source;

[0016] The standard deviation of the response time of each voice device under each test sound source is normalized to obtain the difference corresponding to each test sound source.

[0017] By adopting the above technical solution, the technical solution can quantify the difference in the impact of the test sound source on each device by calculating the standard deviation of the response time of the voice device under the test sound source. The larger the standard deviation, the greater the difference in the impact of the test sound source on each device. Therefore, when calculating the synchronization score of the voice device in the subsequent calculation, the difference can be used as an important reference to adjust the test results, thereby improving the accuracy of the voice device synchronization evaluation obtained based on the parameterized test sound source.

[0018] Optionally, the environmental information includes a loudness decay rate and a noise attribute, and the test sound source corresponding to each environmental information is determined respectively, including:

[0019] Acquire a first scene sound source corresponding to a scene type where multiple voice devices are to be deployed and used;

[0020] The volume attribute of the first scene sound source is adjusted using the volume attenuation rate of each voice device to obtain the second scene sound source corresponding to each voice device;

[0021] The noise attribute is added to the second scene sound source to obtain the test sound source corresponding to each environmental information.

[0022] By adopting the above technical solution, the actual usage environment differences of voice devices are taken into account, such as scene type, volume attenuation, background noise and other key factors, so that the generated test sound source can simulate the voice input effect in the actual environment. Based on this parametrically designed realistic test sound source, the test of voice device synchronization can more accurately reflect the actual usage, thereby improving the accuracy of the test and helping to optimize the synchronization between voice devices.

[0023] Optionally, before adding the noise attribute to the second scene sound source to obtain the test sound source corresponding to each piece of environmental information, the method further includes:

[0024] Obtain scene types where multiple voice devices are to be deployed and used, and determine typical noise samples corresponding to the scene types;

[0025] Extract noise properties from typical noise samples.

[0026] By adopting the above technical solution, by obtaining the usage scenario type of the voice device, the corresponding typical environmental noise samples are determined, and then the parameter properties of the noise are extracted from these noise samples. In this way, the characteristics of the background noise that different voice devices actually encounter in a real environment can be obtained. When generating realistic test sound sources later, these noise properties are applied to the test samples to simulate the effect of the voice device processing different environmental noise inputs.

[0027] Optionally, use a test sound source to test each voice device simultaneously to obtain the response time of each voice device under each test sound source, including:

[0028] Control the audio output device to output each test sound source respectively;

[0029] Obtaining a first timestamp when each voice device receives a test sound source, and a second timestamp when each voice device generates a control signal according to the test sound source;

[0030] The difference between the first timestamp and the second timestamp is calculated to obtain the response time of each voice device under each test sound source.

[0031] By adopting the above technical solution and obtaining the actual response time data of the voice device to the parameterized test sound source, it is possible to analyze whether the processing speed of different voice devices to various realistic test sound sources is consistent and evaluate the degree of response synchronization between the devices. Based on this quantitative calculation synchronization test solution, the accuracy of the voice device synchronization performance test can be improved.

[0032] Optionally, after obtaining a first timestamp when each voice device receives a test sound source and a second timestamp when each voice device generates a control signal according to the test sound source, the method further includes:

[0033] determining the expected signal generated by each speech device based on the test sound source;

[0034] Remove the response time corresponding to the voice device whose control signal is different from the expected signal.

[0035] By adopting the above technical solution and excluding invalid response time, the accuracy of the test result can be improved, so that the evaluated voice device synchronization score can more accurately reflect the actual synchronization performance of the voice device.

[0036] In a second aspect, the present application provides a voice device testing device, the device comprising:

[0037] A test sound source determination module is used to obtain environmental information of locations where multiple voice devices are to be deployed and use, and to determine the test sound source corresponding to each piece of environmental information;

[0038] A response time acquisition module is used to test each voice device simultaneously using a test sound source to obtain the response time of each voice device under each test sound source;

[0039] The synchronization evaluation module is used to calculate the synchronization scores between multiple voice devices according to the difference between the response timestamps of each voice device under each test sound source. The synchronization scores are used to evaluate the synchronization of each voice device.

[0040] In a third aspect, the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the above methods.

[0041] In a fourth aspect, the present application provides an electronic device, including a processor, a memory and a transceiver, the memory being used to store instructions, the transceiver being used to communicate with other devices, and the processor being used to execute instructions stored in the memory so that the electronic device performs any one of the methods described above.

[0042] In summary, the beneficial effects brought about by the technical solution of this application include:

[0043] Based on the environmental information, a test sound source that is more in line with the actual situation is determined, and the synchronization of the voice devices is evaluated by calculating the synchronization score between the voice devices. On the basis of determining a test sound source that is more in line with the actual situation, the synchronization of the voice devices is quantitatively evaluated by the synchronization score, which can improve the accuracy of the voice device synchronization test. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of a voice device testing method according to an embodiment of the present application;

[0045] Figure 2 is a schematic diagram of recording response time provided in an embodiment of the present application;

[0046] Figure 3 It is a structural schematic diagram of a voice equipment testing device according to an embodiment of the present application;

[0047] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0048] Description of reference numerals: 400, electronic device; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0050] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a specific way.

[0051] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0052] See also Figure 1 , is a flow chart of a voice device testing method provided in an embodiment of the present application. The method can be implemented by a computer program, can be implemented by a single-chip microcomputer, or can be run on a voice device testing device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The specific steps of the voice device testing method are described in detail below.

[0053] S101: Obtain environmental information of locations where multiple voice devices are to be deployed, and determine test sound sources corresponding to each piece of environmental information.

[0054] Voice devices refer to smart devices that can receive and recognize voice commands and perform corresponding control operations. In the embodiments of the present application, voice devices can be understood as products such as smart speakers or household robots used for home intelligent control. Such voice devices can receive user voice commands, convert them into control commands after voice recognition, and thus control connected smart home appliances.

[0055] Voice devices usually include microphones, voice recognition processing chips or modules, output control interfaces, etc. They can be activated by voice wake-up, recognize and understand voice commands, and send control instructions through the output control interface to intelligently control air conditioners, lights, TVs, etc. The use of voice interaction realizes convenient control of the home environment.

[0056] Environmental information refers to various environmental parameters that affect the speech recognition effect of the speech device. In the embodiment of the present application, environmental information can be understood as a series of characteristic parameters that describe the use scenario of the speech device, which is used to design a test sound source that simulates the actual environment. Environmental information may include the size of the use space, the layout within the use space, the wall material, the expected type and size of background noise, etc. These parameters will have different degrees of impact on the recognition of the speech device. For example, a large space will produce echoes, reducing the recognition effect; background noise in a noisy environment will also interfere with recognition.

[0057] The purpose of obtaining environmental information is to design corresponding parameterized tests based on the actual usage scenarios of voice devices. Environmental information can include the size of the space, wall material, expected ambient noise type and volume, etc. These parameters are directly related to the effect of voice recognition.

[0058] Specifically, you can obtain the space size and wall material parameters by surveying the location where the voice equipment is used on site. You can interview users to understand the characteristics of environmental noise, such as common household noise, work environment noise, etc. You can also refer to industry standards to survey the size range of different environmental noises. After obtaining comprehensive environmental information parameters, it is helpful to design parameterized test sound sources.

[0059] According to a series of environmental parameters corresponding to each voice device, determine the test sound source that simulates the actual environment. For example, for voice devices installed in a large space, the test sound source can add a strong echo effect; for devices placed in a working environment, noise such as keyboard tapping can be added to the test sound source. The production of parametric test sound sources must fully consider the factors affecting environmental differences.

[0060] In this way, when the customized test sound source is used to perform synchronization test on the voice device in the future, since the test conditions are close to the actual operating environment of the device, the results can truly reflect the performance of the device, accurately identify synchronization problems, and improve the synchronization recognition effect of the device in a targeted manner.

[0061] The test sound source corresponding to each environmental information refers to a test audio sample designed to simulate the actual environment according to the use environment parameters of each voice device. In the embodiment of the present application, it can be understood as a parameterized audio source for testing the synchronization of voice devices. The production of the test sound source will comprehensively consider various parameters in the environmental information, such as space size, noise level and type, to simulate the actual working environment of the voice device. The higher the degree of match between the test sound source and the actual use scenario of the device, the more the voice device will reflect the actual recognition performance of the device when using the test sound source for synchronization testing.

[0062] In an optional implementation, a first scene sound source corresponding to a scene type where multiple voice devices are to be deployed is obtained;

[0063] The volume attribute of the first scene sound source is adjusted using the volume attenuation rate of each voice device to obtain the second scene sound source corresponding to each voice device;

[0064] The noise attribute is added to the second scene sound source to obtain the test sound source corresponding to each environmental information.

[0065] The scene type refers to a type identifier that describes the typical usage environment of a voice device. In an embodiment of the present application, the scene type can be understood as a parameterized label used to distinguish the application scenarios of the voice device, and is used to obtain the first scene sound source of the corresponding type. Scene types can include home scenes, office scenes, shopping mall scenes, car scenes, etc. Different scene types contain different environmental characteristics. For example, home scenes have lower ambient noise, while commercial scenes have more human voice noise. The scene type is set to match the actual application environment of the voice device and obtain a representative first scene sound source.

[0066] The purpose of acquiring the first scene sound source in this embodiment is to obtain the original background audio resources corresponding to the actual use scenario of the voice device. The audio content selected by the first scene sound source should simulate the typical voice interaction process when the voice device is turned on, as well as the corresponding environmental noise. Its volume should match the scene noise level of the target use of the voice device. The first scene sound source audio obtained in this way can be used as the basic source data for the subsequent production of the test sound source. It is highly consistent with the actual application environment of the voice device, which will improve the fidelity of the test sound source, thereby making the synchronization test of the voice device based on the test sound source more accurate and reliable.

[0067] The volume attenuation rate refers to the degree of attenuation of the volume value of sound during the propagation process. In the embodiment of the present application, the volume attenuation rate can be understood as an environmental volume attenuation parameter used to adjust the sound source of the first scene to simulate the sound effect actually received by the voice device. The volume attenuation rate is related to the environment, and its value is different under different spatial conditions. It takes into account the attenuation of sound propagating in the air with distance. By testing and obtaining the volume attenuation rate of the environment where the voice device is located, the first scene sound source can be quantitatively adjusted to make its sound attenuation effect close to the actual one. The volume attenuation rate parameter is introduced to simulate the impact of space on sound and generate a more realistic second scene sound source.

[0068] The second scene sound source refers to the scene audio generated after the first scene sound source is processed by volume attenuation. In an embodiment of the present application, the second scene sound source can be understood as a scene audio resource used to simulate the actual sound effect received by the voice device, and is an intermediate product for generating a test sound source. The second scene sound source is generated based on the first scene sound source after volume attenuation processing, which simulates the effect of decreasing volume of sound during propagation. Compared with the original first scene sound source, the second scene sound source can more accurately reflect the actual sound received by the voice device in the usage scenario.

[0069] Noise attributes refer to the various characteristic parameters that constitute the ambient noise. In the embodiment of the present application, noise attributes can be understood as a series of audio features used to describe the characteristics of ambient noise, which are used to adjust the second scene sound source to generate a test sound source. Noise attributes may include information such as frequency range, time domain characteristics, and intensity. Different types of noise have different attribute combinations. For example, traffic noise has a wide frequency, and office noise contains obvious human voice components.

[0070] Get the usage scenario of the voice device and select the corresponding initial audio as the first scene sound source. According to the actual installation position of the device, simulate the attenuation effect of sound propagation in space, and adjust the first scene sound source to generate the second scene sound source. Add the noise data extracted from the typical environment to the second scene sound source to form a parameterized test sound source. In this way, the test sound source can comprehensively consider the impact of environmental factors such as device usage scenarios, space size, background noise, etc. on the sound, and make adjustments and designs. When using customized test sound sources to perform synchronization evaluation on voice devices in the later stage, the test results will be more accurate and reliable because the test conditions can simulate the actual effects.

[0071] In order to simulate the effect of sound propagation when the voice device is actually used, it is necessary to consider the volume attenuation effect caused by space. Based on this, this embodiment provides a technical solution for using the volume attenuation rate to adjust the first scene sound source to generate the second scene sound source. The purpose of this solution is to simulate the effect of sound decreasing with distance, so that the obtained test sound source is more in line with the actual situation. The specific method is to first test and obtain the average volume attenuation rate parameter of the environment where each voice device is located. Then, according to the attenuation rate corresponding to each device, the first scene sound source is processed, its volume value is attenuated, and the adjusted second scene sound source is generated. The second scene sound source processed with volume attenuation can more realistically simulate the sound effect actually received by the voice device. When the second scene sound source is used to generate the test sound source in the future, the voice device synchronization test performed will be more in line with the actual use environment, and the test results will be more accurate and reliable.

[0072] Based on the second scene sound source, the environmental noise characteristics are integrated to enable the test sound source to simulate the comprehensive audio effects in the actual use scenario of the voice device. The specific method is to first analyze and extract the noise attribute parameters of the voice device environment, and then add the obtained noise characteristics to the second scene sound source to generate a test sound source that can simulate different environments.

[0073] In an optional implementation, scene types of locations where multiple voice devices are to be deployed are obtained, and typical noise samples corresponding to the scene types are determined;

[0074] Extract noise properties from typical noise samples.

[0075] The typical noise sample corresponding to the scene type refers to an audio resource that can represent the noise existing in a certain scene environment. In the embodiment of the present application, the typical noise sample corresponding to the scene type can be understood as a reference noise audio used to extract the noise characteristics in the scene to generate a test sound source corresponding to the use environment of the voice device.

[0076] Different scene types have different typical environmental noises. For example, a typical noise sample for a home scene may be the noise of home appliances running, and a typical noise sample for a public scene may be the noise of people talking. Obtaining typical noise samples for the corresponding scene can make the extracted noise properties more consistent with the working environment of the voice device, thereby improving the fidelity of the test sound source.

[0077] Obtain noise resources that can represent the use scenarios of voice devices, and extract noise features that can be added to the test sound source. The specific approach is to first determine the typical noise that matches the use scenario type of the voice device from the noise sample library, such as traffic noise, office noise, etc. Then analyze the selected noise and extract its key attribute parameters such as spectrum and time domain.

[0078] The attribute data obtained in this way that can quantitatively describe the noise characteristics can be added in a targeted manner when adjusting the second scene sound source, thereby generating a test sound source with high fidelity to the actual usage environment of the voice device.

[0079] S102: Use a test sound source to test each voice device simultaneously, and obtain the response time of each voice device under each test sound source.

[0080] Response time refers to the time interval from when a voice device receives a voice command to when it generates a corresponding response output. In the embodiment of the present application, response time can be understood as an important parameter for evaluating the synchronization performance of voice devices. By testing and obtaining the response time data of each device, the difference in response efficiency between devices can be detected.

[0081] The response time reflects the overall efficiency of the voice device from voice input parsing to command execution. The shorter the response time, the more efficient the voice device is in processing voice commands. In the same environment, multiple voice devices with large differences in response time have weaker synchronous collaboration capabilities.

[0082] Get the actual response performance parameters of the voice device in a realistic sound environment. The specific method is to use the test sound source produced by the above process, and perform voice command playback tests on multiple voice devices to be deployed at the same time. During the test, accurately record the time interval from receiving the voice command to generating a response for each device, and obtain the corresponding response time data of the device. This test can detect the synchronization performance differences in voice devices, such as some devices in the same environment responding slowly.

[0083] In an optional implementation, controlling the audio output device to output each test sound source respectively;

[0084] Obtaining a first timestamp when each voice device receives a test sound source, and a second timestamp when each voice device generates a control signal according to the test sound source;

[0085] The difference between the first timestamp and the second timestamp is calculated to obtain the response time of each voice device under each test sound source.

[0086] See also Figure 2 , is a schematic diagram of recording response time provided by an embodiment of the present application. It shows a specifically implementable voice serial port test tool, the left side is the display of serial port sending and receiving messages, and the right side is the corresponding relationship between receiving and controlling.

[0087] In order to accurately obtain the response time of the voice device, this solution proposes to calculate the response time by controlling the audio output device to play the test sound source and obtaining the timestamp of the voice device processing the voice command. The reason for doing this is to avoid the error caused by manual timing and improve the accuracy of the response time data.

[0088] The specific operation is to control the audio output device to play the prepared test sound source audio files for different environments. In this process, the starting time point when the voice device receives each test sound source is accurately recorded, that is, the first timestamp. This can be obtained through the audio module of the device. At the same time, the end time point when the voice device recognizes and analyzes the voice command in the test sound source and generates the corresponding control execution signal is also recorded as the second timestamp. Finally, the time difference between the first timestamp and the second timestamp is calculated to obtain the response time of the voice device to the test sound source.

[0089] In an optional implementation, determining an expected signal generated by each speech device based on the test sound source;

[0090] Remove the response time corresponding to the voice device whose control signal is different from the expected signal.

[0091] The expected signal refers to the control execution signal that the voice device should generate after receiving the test sound source, based on the content of the test sound source and its own function. In the embodiment of the present application, the expected signal can be understood as an expected signal used to compare with the control signal actually generated by the voice device to determine whether the response is normal. The expected signal is derived based on the voice command content in the test sound source and the functional model of the voice device. It represents the control instruction that the voice device should generate after receiving the test sound source under ideal circumstances.

[0092] After obtaining the actual control signal of each voice device for the test sound source, we try to determine what the control signal generated should be based on the analysis of the content of the test sound source and the functional model of the voice device. For example, for a test sound source containing a voice command to turn on the light, the expected control signal of the voice control device should be the corresponding command to turn on the light. After that, by comparing the consistency of the actual control signal of each voice device with the determined signal one by one, it is possible to detect whether there is an abnormal response. If the two are inconsistent, it means that the device has generated incorrect control and there is an error in its response time data. After filtering out this part of the data with abnormal responses, we only have samples of voice devices with correct control signals left. In this way, the response time results of this book are accurate and reliable, and errors caused by abnormal responses can be avoided.

[0093] S103: Calculate synchronization scores among the multiple voice devices according to the differences between the response timestamps of the voice devices under the test sound sources, where the synchronization scores are used to evaluate the synchronization of the voice devices.

[0094] The synchronization score refers to the scoring result of evaluating the synchronization performance of multiple voice devices. In the embodiment of the present application, the synchronization score can be understood as a comprehensive score used to intuitively reflect the response time efficiency of the voice device combination to each test sound source, and the score is used to judge the collaborative synchronization ability between voice devices. The calculation of the synchronization score is based on the response time data of each voice device to different test sound sources obtained by the test. The smaller the difference in response time data, the better the synchronization between voice devices and the higher the synchronization score. A voice device combination with a high synchronization score means that these devices can maintain a small response time deviation in a complex environment, thereby achieving accurate synchronous recognition and control of voice commands. The synchronization score provides a quantitative evaluation result for the synchronization test of voice devices. The scoring method can clearly reflect the synchronization performance of the device combination, and can guide the optimization of the coordination between devices in a targeted manner to improve the performance of a distributed voice control system based on multiple voice devices.

[0095] First, based on the response time data of each voice device to different test sound sources obtained in the previous step, calculate the difference in response timestamps between different voice devices under the same test sound source. The smaller the difference in response timestamps, the closer the response times between devices and the better the synchronization. Then, a corresponding scoring mechanism for the response time difference range and the synchronization score can be set, and the synchronization score under the test sound source can be obtained based on the response time difference results between each device. Repeat this calculation process for all test sound sources, and finally synthesize the synchronization scores of all test sound sources to obtain a comprehensive synchronization score between multiple voice devices.

[0096] In an optional implementation, the difference degree corresponding to each test sound source is determined according to the difference between the response times of each voice device under each test sound source;

[0097] The volume difference between the test sound source and the standard test sound source is used as the weight, and the difference corresponding to each test sound source is weightedly calculated to obtain the synchronization score between multiple voice devices.

[0098] The degree of difference refers to the degree of influence of the test sound source on the voice device. In the embodiment of the present application, the degree of difference can be understood as a parameter used to indicate the degree of difference in the response time efficiency of each voice device under the same test sound source. The degree of difference is calculated by comparing the response time of different voice devices under the same test sound source. The greater the difference in response time, the greater the deviation in the impact of the test sound source on different voice devices, and the higher the degree of difference. The degree of difference can intuitively reflect the consistency of the impact of the test sound source on the voice device group. The higher the degree of difference, the more uneven the impact of the same test sound source on different voice devices, and the need to give a higher evaluation weight. The degree of difference is an important parameter for considering the difference in test sound sources when evaluating the synchronization of voice devices. It can be combined with the volume parameter of the test sound source to achieve weighted processing of the test sound source, so that the test results more accurately reflect the true synchronization performance of the voice device.

[0099] First, according to the difference in response timestamps between voice devices under the same test sound source, the difference in response time efficiency corresponding to the test sound source is calculated. The larger the difference in response time, the greater the impact of the test sound source on the voice device and the higher the difference. Then, the volume of each test sound source is compared with the preset standard test sound source, and the volume difference between them is calculated as the weight coefficient of the test sound source. The larger the volume difference, the greater the impact of the test sound source on the voice device, and the higher the weight coefficient should be. Finally, when calculating the synchronization score, it is necessary to adjust the weight of the difference of each test sound source, that is, multiply the difference by the corresponding weight coefficient, and then summarize it as a whole. In this way, the synchronization score that comprehensively considers the differences of each test sound source can be calculated. The weighted calculation achieved by the difference and volume difference of the test sound source can make those test sound sources that have a greater impact on the voice device play a more important role in evaluating synchronization, thereby calculating a synchronization score that more accurately reflects the true synchronization performance of the voice device.

[0100] In an optional implementation, the standard deviation of the response time of each voice device under each test sound source is calculated according to the difference between the response times of each voice device under each test sound source;

[0101] The standard deviation of the response time of each voice device under each test sound source is normalized to obtain the difference corresponding to each test sound source. First, the standard deviation is calculated based on the response time data of the voice device under each test sound source. The larger the standard deviation, the more dispersed the response time and the greater the difference. Then the standard deviation of each test sound source is normalized to map it to a fixed numerical range to eliminate the dimension effect. The result obtained after normalization is the difference of the test sound source. In this way, through the standard deviation and normalization processing, the difference result that eliminates the dimension and absolute value effects can be obtained. It can more accurately reflect the consistency of the impact of the test sound source on different voice devices, that is, the relative difference in response time efficiency.

[0102] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0103] See also Figure 3 , which shows a schematic diagram of the structure of a voice equipment testing device provided by an exemplary embodiment of the present application. The device can be implemented as all or part of the device through software, hardware or a combination of both.

[0104] A test sound source determination module is used to obtain environmental information of locations where multiple voice devices are to be deployed and use, and to determine the test sound source corresponding to each piece of environmental information;

[0105] A response time acquisition module is used to test each voice device simultaneously using a test sound source to obtain the response time of each voice device under each test sound source;

[0106] The synchronization evaluation module is used to calculate the synchronization scores between multiple voice devices according to the difference between the response timestamps of each voice device under each test sound source. The synchronization scores are used to evaluate the synchronization of each voice device.

[0107] Optionally, the test sound source determination module also includes a test sound source processing unit and a noise attribute extraction unit.

[0108] The test sound source processing unit is used to obtain a first scene sound source corresponding to the scene type where multiple voice devices are to be deployed; adjust the volume attribute of the first scene sound source using the volume attenuation rate of each voice device to obtain a second scene sound source corresponding to each voice device; add the noise attribute to the second scene sound source to obtain a test sound source corresponding to each environmental information.

[0109] The noise attribute extraction unit is used to obtain the scene types of the places where multiple voice devices are to be deployed and used, determine the typical noise samples corresponding to the scene types; and extract noise attributes from the typical noise samples.

[0110] Optionally, the response time acquisition module also includes a timestamp calculation unit and a response confirmation unit.

[0111] A timestamp calculation unit is used to control the audio output device to output each test sound source respectively; obtain a first timestamp when each voice device receives the test sound source, and a second timestamp when each voice device generates a control signal according to the test sound source; calculate the difference between the first timestamp and the second timestamp to obtain the response time of each voice device under each test sound source.

[0112] The response confirmation unit is used to determine the expected signal generated by each voice device according to the test sound source; and remove the response time corresponding to the voice device whose control signal is different from the expected signal.

[0113] Optionally, the synchronization evaluation module further includes a weighted calculation unit and a difference calculation unit.

[0114] The weighted calculation unit is used to determine the degree of difference corresponding to each test sound source according to the difference between the response times of each voice device under each test sound source; the volume difference between the test sound source and the standard test sound source is used as the weight to perform weighted calculation on the degree of difference corresponding to each test sound source to obtain the synchronization score between multiple voice devices.

[0115] A difference calculation unit, used to calculate the standard deviation of the response time of each voice device under each test sound source according to the difference between the response times of each voice device under each test sound source;

[0116] The standard deviation of the response time of each voice device under each test sound source is normalized to obtain the difference corresponding to each test sound source.

[0117] The present application also provides a computer storage medium that can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 2 The voice device testing method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1-Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0118] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0119] The communication bus 402 is used to realize the connection and communication between these components.

[0120] The user interface 403 may include a standard wired interface or a wireless interface.

[0121] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0122] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0123] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be optionally at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a voice device testing method.

[0124] exist Figure 4 In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 401 can be used to call an application program storing a voice device testing method in the memory 405, which, when executed by one or more processors, enables the electronic device to execute one or more methods in the above-mentioned embodiments.

[0125] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more methods in the above embodiments.

[0126] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0127] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which 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 through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0131] 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 memory. Based on this understanding, the technical solution of the present application, 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, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0132] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.

Claims

1. A voice device testing method, characterized in that: The method comprises: Obtaining environmental information of locations where multiple voice devices are to be deployed, and determining test sound sources corresponding to each of the environmental information; Using the test sound source to test each of the voice devices simultaneously, and obtaining the response time of each of the voice devices under each of the test sound sources; According to the difference between the response times of the voice devices under the test sound sources, a synchronization score between the voice devices is calculated, and the synchronization score is used to evaluate the synchronization of the voice devices.

2. The method according to claim 1, characterized in that The step of calculating the synchronization scores between the plurality of voice devices according to the difference between the response times of the voice devices under the test sound sources comprises: Determining the difference corresponding to each of the test sound sources according to the difference between the response times of each of the voice devices under each of the test sound sources; The volume difference between the test sound source and the standard test sound source is used as a weight, and the difference corresponding to each test sound source is weightedly calculated to obtain the synchronization score between the multiple voice devices.

3. The method according to claim 2, characterized in that Determining the difference corresponding to each of the test sound sources according to the difference between the response times of each of the voice devices under each of the test sound sources includes: Calculating the standard deviation of the response time of each of the voice devices under each of the test sound sources according to the difference between the response times of each of the voice devices under each of the test sound sources; The standard deviation of the response time of each of the voice devices under each of the test sound sources is normalized to obtain the degree of difference corresponding to each of the test sound sources.

4. The method according to claim 1, characterized in that The environmental information includes a loudness decay rate and a noise attribute, and the step of respectively determining a test sound source corresponding to each piece of environmental information includes: Acquire a first scene sound source corresponding to a scene type of a location where the plurality of voice devices are to be deployed and used; The volume attribute of the first scene sound source is adjusted using the volume attenuation rate of each of the voice devices to obtain the second scene sound source corresponding to each of the voice devices; The noise attribute is added to the second scene sound source to obtain a test sound source corresponding to each piece of environmental information.

5. The method according to claim 4, characterized in that Before adding the noise attribute to the second scene sound source to obtain the test sound source corresponding to each piece of environmental information, the method further includes: Acquire scene types of the locations where the multiple voice devices are to be deployed and use, and determine typical noise samples corresponding to the scene types; Noise properties are extracted from the typical noise samples.

6. The method according to claim 1, characterized in that The method of using the test sound source to simultaneously test each of the voice devices to obtain the response time of each of the voice devices under each of the test sound sources includes: Controlling the audio output device to output each of the test sound sources respectively; Acquire a first timestamp when each of the voice devices receives the test sound source, and a second timestamp when each of the voice devices generates a control signal according to the test sound source; The difference between the first timestamp and the second timestamp is calculated to obtain the response time of each of the voice devices under each of the test sound sources.

7. The method according to claim 6, characterized in that After obtaining the first timestamp when each of the voice devices receives the test sound source and the second timestamp when each of the voice devices generates a control signal according to the test sound source, the method further includes: Determining an expected signal generated by each of the speech devices based on the test sound source; The response time corresponding to the voice device whose control signal is different from the expected signal is removed.

8. A voice equipment testing device, characterized in that: The device comprises: A test sound source determination module is used to obtain environmental information of locations where multiple voice devices are to be deployed and use, and to determine the test sound source corresponding to each of the environmental information; A response time acquisition module, used to use the test sound source to simultaneously test each of the voice devices, and obtain the response time of each of the voice devices under each of the test sound sources; The synchronization evaluation module is used to calculate the synchronization score between the multiple voice devices according to the difference between the response timestamps of each voice device under each test sound source, and the synchronization score is used to evaluate the synchronization of each voice device.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: It includes a processor, a memory and a transceiver, the memory is used to store instructions, the transceiver is used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.