A traceability method for intelligent speech recognition performance testing based on audio time domain
Through audio time domain synchronization technology, accurate traceability of intelligent speech recognition performance testing is achieved, which solves the problems of limited test scale and difficulty in abnormal traceability in the existing technology, provides efficient and reliable testing methods, and supports system optimization and performance verification. .
Patent Information
- Application Number
- CN202210292999.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-03-24
AI Technical Summary
Existing intelligent speech recognition performance testing methods have problems such as high manual testing costs, limited test scale, and difficulty in tracing abnormal test conditions through automatic testing, resulting in the inability to achieve effective performance verification and system optimization.
Adopting an automated testing method based on the audio time domain, by synchronously setting up simulated background noise playback equipment, test corpus playback equipment and data collection equipment, using time stamped test result data to accurately trace the time nodes of abnormal data, and repeatedly test and verify the audio Enter the criteria.
It achieves high-precision traceability of test results, reduces manual intervention errors, ensures the stability and reliability of test results, supports system performance verification and fault analysis, and expands test data and sample size.
Smart Images

Figure CN114842832B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a speech tracing method, and in particular to an intelligent speech recognition performance testing tracing method based on audio time domain. Background Art
[0002] The successful implementation of intelligent speech recognition technology has brought unlimited opportunities to the application side, but the high error rate in certain speech recognition fields is still one of the main obstacles to the widespread application of speech technology. When considering the performance of intelligent speech recognition systems from the perspective of normal use, the first thing that comes to mind is the recognition accuracy, that is, whether the intelligent speech recognition system achieves the recognition purpose expected by the user; but compared with the situation of conscious and active triggering of speech recognition, the negative impact of uncontrolled misrecognition passively accepted by users on user experience is more prominent. To deal with the above technical problems, it is necessary to start with the cause of the triggering failure.
[0003] Simulating background noise and test corpus is the main recognition object in the process of intelligent speech recognition task; it is a necessary and critical test condition in the process of intelligent speech recognition performance test. The effective traceability of this test condition can intuitively and accurately capture the time node of abnormal test results, assist in finding and analyzing the input signal that generates or triggers system abnormalities, help determine the direction of system optimization, and is an effective means to deal with the above technical obstacles.
[0004] Currently, the main testing methods are manual testing and automatic testing.
[0005] Manual testing: To achieve the test conditions, most of the time, speakers are used to play simulated background noise, test corpus is manually spoken, and test results are recorded manually. This method has the characteristics of low equipment cost and high labor cost; accordingly, the test scale is limited due to labor cost considerations, and it is difficult to achieve long-term and large-scale sample testing; at the same time, this test method inevitably has the randomness of artificial pronunciation, and has the disadvantage of being greatly affected by human factors. The test conditions cannot be reproduced and effective performance verification cannot be achieved.
[0006] Automatic testing: Automatic testing methods make up for the shortcomings of manual testing to a large extent. With the improvement of automation, the test samples and test scale have been greatly improved. However, due to the random and disorderly routine operating characteristics of simulated background noise and test corpus playback, for large-scale test samples, when the test results are abnormal, the test conditions are difficult to trace. Summary of the invention
[0007] The purpose of the present invention is to provide an intelligent speech recognition performance test tracing method based on audio time domain. The method is based on an automated testing method and utilizes the synchronization of audio in the time domain to achieve the testing purpose of accurate tracing.
[0008] This object of the present invention is achieved by the following technical solution: a method for tracing the performance of intelligent speech recognition based on audio time domain, characterized in that the method comprises the following steps:
[0009] Step S1: Setting test conditions, including setting a simulated background noise playback device and setting a test corpus playback device, wherein:
[0010] The step of setting the simulated background noise playback device is to import a preset background noise audio file into the simulated background noise playback device;
[0011] The setting of the test corpus playback device is to import the preset audio file of the test corpus into the test corpus playback device;
[0012] And set the audio file of the background noise and the audio file of the test corpus to have the same playing time;
[0013] Step S2: Setting up data acquisition equipment, the data acquisition equipment includes the acquisition and storage of test result data, wherein:
[0014] The test result data is collected by collecting the result data with time stamp output from the data serial port of the device under test to identify the performance test;
[0015] The storage of the test result data is to store the collected result data in a designated accessible device;
[0016] Step S3: The device under test, the simulated background noise playback device described in step S1, the test corpus playback device, and the data acquisition device described in step S2 are started and stopped at the same time. The four devices are started synchronously and the start time T0 is recorded, and they are stopped synchronously and the end time T1 is recorded;
[0017] Step S4: Screening out abnormal data from the result data with timestamps acquired and stored by the data acquisition device in step S2;
[0018] The abnormal data refers to the situation where the text data in the result data is inconsistent with the text corresponding to the preset test corpus, and the situation where the device under test mistakenly generates unexpected result data without playing the test corpus;
[0019] After filtering the abnormal data, extract the time node T corresponding to the abnormal data x ;
[0020] Step S5: According to the time node T in step S4 x and the opening time T0, by calculating T x-T0 time difference to calculate the time node T x The corresponding background noise and the audio playback time of the test corpus L x ;
[0021] Play back the audio files of the background noise and the test corpus described in step S1 respectively, and drag to the audio playback time L x The length of the audio data can be accurately traced back to the audio input conditions corresponding to the abnormal data, thereby realizing the traceability of the speech recognition performance test.
[0022] The present invention utilizes the synchronization in the time domain among the four devices, namely, the device under test, the simulated background noise playback device, the test corpus playback device and the data acquisition device, so as to trace the corresponding audio input conditions at the time node when the abnormal data is generated, and repeat the test and verification according to the audio input conditions.
[0023] In step S2, the data acquisition device is connected to the physical data serial port of the device under test to obtain the real-time data output by the device under test, and adds a corresponding timestamp to each piece of data in real time to generate real-time result data with a timestamp.
[0024] In step S3, the four devices, namely, the device under test, the simulated background noise playback device, the test corpus playback device and the data acquisition device, are started and stopped at the same time to achieve synchronization of the four devices in the time domain. The conditions for achieving synchronization include: the four devices are started at the same time to obtain a start time T0, and the four devices are stopped at the same time to obtain an end time T1.
[0025] In the step S5, according to the time node of the abnormal data collected by the data acquisition device, the time node Tx corresponding to the abnormal data is found in the time domain; the time node Tx is synchronized with the four-part device to start time T0, and the background noise and the audio playback duration Lx of the test corpus corresponding to the time node Tx are calculated; according to the synchronization of the four parts of the device under test, the simulated background noise playback device, the test corpus playback device and the data acquisition device in the time domain, the time axis duration of the background noise audio and the test corpus audio are dragged to Lx respectively, so that the audio input condition corresponding to the time node Tx of the abnormal data can be traced back.
[0026] During the test process of the present invention, the device under test is placed in a specific acoustic environment, a preset noise audio file is played by a simulated background noise playback device, and a test corpus playback device plays a preset corpus audio file in a noise environment simulating a real scene and a voice command issued by a speaker; a data acquisition device collects and recognizes output data from a data serial port of the device under test, and stores a recognition text with a timestamp, and the recognition text is compared with a preset corpus script to obtain a test result.
[0027] Before starting the test, ensure that the simulated background noise playback device is ready, that is, import the preset audio file and record the audio playback time; ensure that the test corpus playback device is ready, that is, import the preset audio file and record the audio playback time; ensure that the data acquisition device is ready, that is, it can read and store data normally from the data serial port of the device under test, and set sufficient storage length according to the playback time of the background noise audio and the test corpus audio; ensure that the device under test is ready, that is, the device is running normally and the communication interface is communicating normally.
[0028] When the test starts, the simulated background noise playback device, test corpus playback device, data acquisition device, and device under test should be started synchronously, and the start time should be recorded; the four devices should be ended synchronously, and the end time should be recorded. After the test is completed, the recognition results of the device under test are obtained and stored from the data acquisition device. According to different test purposes, the time node of the abnormal data can be used to trace the audio content at the time node in the simulated background noise playback device and the test corpus playback device.
[0029] The present invention is based on an automatic testing method for intelligent speech recognition performance, starts with the setting of test conditions, and utilizes the characteristics of audio synchronization in the time domain to achieve accurate tracing of test results, thereby ensuring that the test results have validity and traceability application value.
[0030] Compared with the prior art, the present invention has the following significant effects:
[0031] 1. The present invention can accurately set the playback audio of the simulated background noise playback device and the test corpus playback device to be synchronized in the time domain; when the test starts, the device under test and the simulated background noise playback device, the test corpus playback device and the data acquisition device start synchronously, and are consistent with the computer clock correction. The test results obtained by the data acquisition device have a real-time timestamp, small error and high accuracy.
[0032] 2. The present invention can set reproducible test conditions for the input audio conditions of abnormal result data, repeat the test, and repeatedly verify the test results. The application of this method can quickly find and analyze the cause of the failure of the intelligent speech recognition system, which helps to determine the direction of system optimization.
[0033] 3. The present invention obtains traceable test results through controllable test conditions, ensures that the test results are stable and reliable, and provides an effective traceability method for system performance verification and standard verification.
[0034] 4. The present invention is based on an automated testing method, and the four parts of the equipment operate independently and automatically, effectively reducing errors caused by human intervention, thereby reducing labor costs, and providing an effective and accurate traceability method while expanding the test data and sample size. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0036] Figure 1 It is the time domain spectrum obtained by the intelligent speech recognition performance test traceability method based on audio time domain of the present invention, in which the time node T corresponding to the abnormal data x The corresponding background noise and the audio playback time of the test corpus L x It is 6 hours, 15 minutes and 00 seconds. DETAILED DESCRIPTION
[0037] The present invention provides an intelligent speech recognition performance test tracing method based on audio time domain. The device under test is an intelligent speech recognition speaker (DUT for short). The test purpose is to test the recognition performance of the DUT for the wake-up word in a specific environmental background noise.
[0038] Test steps:
[0039] Step 1: Set up the test conditions, which include setting up the simulated background noise playback device and setting up the test corpus playback device, where:
[0040] Setting the simulated background noise playback device is to import the preset background noise audio file into the simulated background noise playback device;
[0041] Setting the test corpus playback device is to import the preset test corpus audio file into the test corpus playback device;
[0042] The audio file of the background noise and the audio file of the test corpus are set to the same playback duration, and the total duration is set to 12 hours, 30 minutes and 00 seconds.
[0043] Step 2: Set up data acquisition equipment, which includes the collection and storage of test result data, including:
[0044] The test result data is collected from the data serial port of the device under test and the result data with time stamp output from the recognition performance test;
[0045] The storage of test result data is to store the collected result data in a designated accessible device;
[0046] The data acquisition device is connected to the physical data serial port of the device under test, obtains the real-time data output by the device under test, and adds a corresponding time stamp to each data in real time to generate real-time result data with a time stamp.
[0047] Step 3: The device under test, the simulated background noise playback device, the test corpus playback device, and the data acquisition device are turned on and off at the same time. The four devices are turned on synchronously and the start time T0 is recorded. The start time T0 is UTC+8:00:00.
[0048] After the test is over, the device under test, the simulated background noise playback device, the test corpus playback device, and the data acquisition device are shut down synchronously, and the end time T1 is recorded. The end time T1 is UTC+20:30:00.
[0049] Step 4: Filter out abnormal data from the result data with time stamps obtained and stored by the data acquisition device;
[0050] Abnormal data refers to the situation where the text data in the result data is inconsistent with the text corresponding to the preset test corpus, and the situation where the device under test mistakenly generates unexpected result data without playing the test corpus;
[0051] After filtering the abnormal data, extract the time node T corresponding to the abnormal data x , the time node T x It is UTC+14:15:00.
[0052] Step 5: According to the above time node T x and the opening time T0, by calculating T x -T0 time difference to calculate the time node T x The corresponding background noise and the audio playback time of the test corpus L x ;
[0053] like Figure 1 As shown in the figure, the start time T0 of the four devices is UTC+8:00:00, and the time node T x UTC+14:15:00, i.e. the playing time L x 6 hours, 15 minutes, 00 seconds,
[0054] Play back the audio files of the background noise and test corpus in the first step respectively, and drag to the audio playback time L x The length of the data can be accurately traced back to the audio input condition corresponding to the time node 06:15:00 when the abnormal data occurred, and the audio content corresponding to the abnormal data node can be traced back.
[0055] The above embodiments of the present invention are not intended to limit the protection scope of the present invention, and the implementation modes of the present invention are not limited thereto. All other modifications, replacements or changes made to the above structures of the present invention based on the above contents of the present invention, in accordance with common technical knowledge and customary means in the art, without departing from the above basic technical ideas of the present invention, should fall within the protection scope of the present invention.
Claims
1. A method for tracing the performance of intelligent speech recognition based on audio time domain, characterized in that: The method comprises the following steps: Step S1: Setting test conditions, including setting a simulated background noise playback device and setting a test corpus playback device, wherein: The step of setting the simulated background noise playback device is to import a preset background noise audio file into the simulated background noise playback device; The setting of the test corpus playback device is to import the preset audio file of the test corpus into the test corpus playback device; And set the audio file of the background noise and the audio file of the test corpus to have the same playing time; Step S2: Setting up data acquisition equipment, the data acquisition equipment includes the acquisition and storage of test result data, wherein: The test result data is collected by collecting the result data with time stamp output from the data serial port of the device under test to identify the performance test; The storage of the test result data is to store the collected result data in a designated accessible device; Step S3: The device under test, the simulated background noise playback device described in step S1, the test corpus playback device, and the data acquisition device described in step S2 are started and stopped at the same time. The four devices are started synchronously and the start time T0 is recorded, and they are stopped synchronously and the end time T1 is recorded; Step S4: Screening out abnormal data from the result data with timestamps acquired and stored by the data acquisition device in step S2; The abnormal data refers to the situation where the text data in the result data is inconsistent with the text corresponding to the preset test corpus, and the situation where the device under test mistakenly generates unexpected result data without playing the test corpus; After filtering the abnormal data, extract the time node T corresponding to the abnormal data x ; Step S5: According to the time node T in step S4 x and the opening time T0, by calculating T x -T0 time difference to calculate the time node T x The corresponding background noise and the audio playback time of the test corpus L x ; Play back the audio files of the background noise and the test corpus described in step S1 respectively, and drag to the audio playback time L x The length of the audio data can be accurately traced back to the audio input conditions corresponding to the abnormal data, thereby realizing the traceability of the speech recognition performance test.
2. The intelligent speech recognition performance test tracing method based on audio time domain according to claim 1 is characterized in that: In step S2, the data acquisition device is connected to the physical data serial port of the device under test to obtain the real-time data output by the device under test, and adds a corresponding timestamp to each data in real time to generate real-time result data with a timestamp.
