Patent Description:
In order to test the performance of a speech interaction system, various modules on a speech interaction link may be independently tested. For example, the awakening rate, the awakening time, the power consumption, etc. are tested through an awakening/signal processing module. The sentence error rate and the character error rate are tested through a speech recognition module. The accuracy rate, the recall rate, and the parsing accuracy rate are tested through a semantic understanding module. A speech synthesis module is scored based on multiple subjective evaluations. Most of existing speech interaction systems use half-duplex interaction, an absolutely ordered dependency relationship exists among various modules, and the entire system can complete interaction by calling various module in series. In this case, independent testing module by module can meet the requirements.

In the process of realizing the present invention, the inventors found that at least the following problems exist in the related art.

Since modules are tested independently and the test indicators are different, there are not testing methods and evaluation indicators for testing the speech interaction system as a whole. In complex systems where a plurality of modules make decisions by fusion, such as full-duplex systems, the indicators of each module can no longer meet the needs of evaluation. For example, for a half-duplex dialogue, a half-duplex speech interaction system responds every time a user speaks a sentence, while a full-duplex speech interaction system only responds to valid requests.

<CIT> discloses a voice recognition test method, which comprises acquiring a target voice set, and determining target noises according to the target voice set; sequentially playing target voices in the target voice set, and acquiring a recognition result of each target voice; and generating and outputting the identification data.

An objective of the present invention is to at least solve the problem of lack of testing methods and evaluation indicators for a speech interaction system as a whole in the prior art such that proper and effective testing cannot be realized for a full-duplex speech interaction system.

In a first aspect, an embodiment of the present invention provides a method for testing a full-duplex speech interaction system. The method includes:.

In a second aspect, an embodiment of the present invention provides an apparatus for testing a full-duplex speech interaction system. The apparatus includes:.

In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored therein, which, when being executed by a processor, performs the steps of the method for testing a full-duplex speech interaction system according to any embodiment of the present invention.

According to the embodiments of the present invention, end-to-end testing of a full-duplex speech interaction system is realized, and indicators for the unique characteristics of full duplex are accurately obtained. During testing, the characteristics of the full-duplex interaction system were fully covered, improving online interaction effects. Necessary data reproduction and indicator support are also provided, while automated testing reduces labor costs and improves testing efficiency. Moreover, the optimization period of the speech interaction system is improved, and the trial and error cost is reduced. Before such a testing of the system interaction success rate is proposed, interaction effects such as the interaction success rate and other indicators could be obtained by collecting user feedback through product sales. Now, estimated values in various scenarios can be obtained through testing before product sales.

In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, a brief description of the accompanying drawings used in the description of the embodiments will be given as follows. Obviously, the accompanying drawings are some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, these embodiments are only some but not all of the embodiments of the present invention. All other embodiments that can be obtained by those skilled in the art without creative efforts based on the disclosed embodiments fall within the protection scope of the present invention.

An embodiment of the present invention provides a method for testing a full-duplex speech interaction system, which is applied to a test device. The test device may be an electronic device such as a computer, which is not limited in the present invention.

<FIG> shows a flowchart of a method for testing a full-duplex speech interaction system according to an embodiment of the present invention. In S11, a scene mixed corpus set is determined by mixing a valid corpus set related to a test scene with an invalid corpus set which is unrelated to the test scene.

In S12, each corpus audio in the scene mixed corpus set is played to a speech interaction device under test equipped with the full-duplex speech interaction system.

In S13, a work log of the speech interaction device under test is acquired, the work log including at least a first log and a second log, wherein,.

In S14, a rejection rate is determined based on number of invalid corpus audios in the first log and number of discarding results in the second log.

In S15, number of false responses is obtained according to a counted number of log entries in the second log which have unexpected response decision result, and a false response rate is determined based on the number of false responses and a total number of the played corpus audios.

In this embodiment, test preparation is required, which includes:.

"Corpus" is a text containing one or more sentences and a recording audio corresponding to each sentence. "System decision result" is a decision result such as an operation instruction output by the system according to the input audio/information and other data. "System interaction result" is a result output by the system according to the input audio/information and other data in response to the current state, including a recognition result (text) of the response, text to be broadcast, action description on the device side, etc..

In the full-duplex speech interaction system, a serial relationship no longer exists among modules, but parallel computations are performed on data from a plurality of modules, as particularly shown in <FIG>. Therefore, the success rate of the entire system cannot be obtained after a simple multiplication of the "success rate" of each module.

In step S11, a certain amount of valid corpora prepared in the above steps covering a designated scene are acquired, such as "I want to listen to Andy Lau's song" in a smart home scene, and a certain amount of invalid corpora which is unrelated to the designated scene are acquired, such as "This is Speech Dialogue Workshop providing speech recognition capabilities" then the valid corpus set and the invalid corpus set are merged and randomly sorted to determine a scene mixed corpus set.

In step S12, each corpus audio in the scene mixed corpus set is played one by one to the speech interaction device under test equipped with the full-duplex speech interaction system through a playback device, such as a stereo.

As an embodiment, the method further includes:.

Each corpus audio in the scene mixed corpus set is played to the speech interaction device under test equipped with the full-duplex speech interaction system through a first playback device. The preset background noise is played to the speech interaction device under test equipped with the full-duplex speech interaction system through a second playback device.

In this embodiment, since two playback devices are prepared in advance and the stereo equipment for playing the corpus audio and the stereo equipment for playing the background noise are played at the same time, the character accuracy rate and the sentence accuracy rate can be further tested by adding noise to the played speech.

Whether the state of the device under test is as expected is determined as follows.

In step S13, since the device under test is connected to a computer which can read a log of the device in real time, corresponding log information can be obtained by acquiring a work log of the device under test.

In the test, real-time recognition results can be received during playback, such as logs <NUM>, <NUM>, <NUM>, <NUM>, <NUM>, and <NUM> (i.e., the sequence numbers <NUM>, <NUM>, <NUM>, <NUM>, <NUM>, and <NUM> in the log examples above). However, for special detection, when testing a certain test item, only part of the information in the log is required. Further, the numbers of the logs can be classified, which is convenient for operation. For example: log <NUM>. <NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM> Start playing invalid corpus <NUM>. The corpus text is "This is Speech Dialogue Workshop providing speech recognition capabilities", and log <NUM>. <NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM> Start playing invalid corpus <NUM>. The corpus text is "This is Speech Dialogue Workshop providing speech recognition capabilities", they are classified into a first log that records the valid/invalid attributes recognized for each corpus audio and the corresponding corpus text. Decision results can also be received, such as "decision results" in log <NUM> and log <NUM>, which are classified into a second log. Decision results include responding, interrupting, and discarding. In step S14, taking the log of the invalid corpus as an example, the finally obtained interaction decision is [discard], that is, no interaction response is made to the input of this sentence. That is to say, because invalid corpora should be discarded, but in practice, a speech that should not be responded may be responded by mistake. As such, a rejection rate is proposed. Rejection rate = the number of all [discarded] log entries/the number of played corpora having invalid attribute.

For step S15, however, not all decision results are as expected. For example, log <NUM> in the invalid corpus should not have a decision result of [interrupt]. Similarly, for log <NUM> in the invalid corpus, if it is not [discard] but an interaction result, it is not as expected either.

Since the corresponding corpus text, such as "I want to listen to Andy Lau's song" and "This is Speech Dialogue Workshop providing speech recognition capabilities" have been recorded in the first log, based on which expected decision results can be determined.

Number of false responses is obtained by counting number of log entries in the second log which have unexpected response decision result. False response rate = the number of false responses/the number of corpora played.

"False response rate" and "rejection rate" do not exist in half duplex. Taking the false response rate as an example, all requests will be responded in case of half duplex, but only valid requests will be responded in case of full duplex, and as such, a false response rate exists. Similarly, there is no interruption in case of half duplex, in which when the synthesized sound output by the device is being played, the pickup means of the device is not turned on and therefore cannot be interrupted.

It can be seen from this embodiment that end-to-end testing of a full-duplex speech interaction system is realized, and accurate indicators for the unique characteristics of full duplex are obtained. During testing, the characteristics of the full-duplex interaction system were fully covered, thereby improving online interaction effects. Necessary data reproduction and indicator support are also provided, while automated testing reduces labor costs and improves testing efficiency. Moreover, the optimization period of the speech interaction system is improved, and the trial and error cost is reduced. Before appearance of the system interaction success rate test, interaction effects such as the interaction success rate and other indicators should be obtained by collecting user feedback through product sales. Now, estimated values in various scenarios can be obtained through testing before product sales.

As an embodiment, the work log includes at least a third log.

The third log records an interaction result for each corpus audio, the interaction result including text of the corpus audio to be broadcasted and a device action instruction of the corpus audio. Corresponding expected text to be broadcasted and an expected device action instruction are determined based on the corpus text of each corpus audio in the first log.

It is determined that the interaction result is as expected when the text to be broadcast in the interaction result of each corpus audio matches the corresponding expected text to be broadcast and the device action instruction matches the corresponding expected device action instruction.

Number of successful interactions is then obtained according to a counted number of log entries of the interaction result as expected in the third log, and a success rate of interaction is determined based on the number of successful interactions and the total number of corpus audios played.

In this embodiment, log <NUM> of "received interaction result" is determined as the third log, which is used to record the interaction result for each corpus audio, including {recognition result, text to be broadcast, action instruction}.

Likewise, since the first log contains the corpus text of each corpus audio, the corresponding expected text to be broadcasts and the expected device action instruction can be determined. For example, the expected text to be broadcast of "I want to listen to Andy Lau's song" is: "Play "Forgetting Love Water" for you)", and the action instruction is to call the music skill to play "Forgetting Love Water".

The interaction success rate does not depend on the recognition result, because even if the recognition result is incorrect, a correct interaction can be obtained. For example, if "ou-xiang-ting-liu-de-hua-de-ge (Chinese speech, means "Idol listens to Andy Lau's song, wherein ou-xiang may correspond to Chinese for "I want" or "Idol")" is misrecognized, it is very likely that the actual text to be broadcast is still "Play "Forgetting Love Water" for you", and the actual action instruction is to call the music skill to play "Forgetting Love Water".

If being as expected is set as <NUM> and being not as expected is set as <NUM>, then, when {recognition result, text to be broadcast, action instruction} is <NUM> or <NUM> upon comparison with the expectations, the interaction result is as expected.

Finally, the interaction success rate of the full-duplex speech interaction system is obtained as "interaction success rate" = the number of all corpora as expected/the number of all corpora as played.

It can be seen from this embodiment that since serial execution is performed in case of half-duplex, each module is tested separately to finally obtain the result of the interaction success rate. However, since parallel execution is performed in case of full duplex, the result of the interaction success rate can only be obtained through the end-to-end test of this method.

As an embodiment, the third log records an interaction result for each corpus audio, the interaction result further including a recognition result of the corpus audio.

A recognized character accuracy rate and a recognized sentence accuracy rate are determined based on the corpus text of each corpus audio in the first log and the recognition result of the corpus audio.

By comparing the recognition results (text) of the responses in the first log and the third log (log <NUM>), the "recognized sentence accuracy rate" and "recognized character accuracy rate" can be obtained, which are in the same way as the calculation method in case of half duplex, except that log <NUM> is compared with log <NUM> in case of half duplex, but compared with log <NUM> in case of full duplex. For example, the recognition result of the whole sentence is "How to write yun (cloud) of yun-do(cloud))", while the response content in case of full duplex may be "yun(cloud) of yun-do(piece of cloud))".

The difference between full duplex and half duplex lies in interaction instead of playback. The interaction in case of half duplex is one-to-one, in which one request is accompanied with one response. In the case of full duplex, the interaction is many-to-many, in which one request may have a plurality of responses, and a plurality of requests may also have only one response. Thus, the recognized character accuracy rate and the recognized sentence accuracy rate are affected. As an embodiment, the work log includes at least a fourth log, a fifth log, and a sixth log.

the fourth log records a first time stamp at which each corpus audio ends playing;.

the fifth log records a second time stamp for determining a recognition result after each corpus audio ends playing; and.

the sixth log records a third time stamp for determining an interaction result moment of each corpus audio.

A recognition response time of the speech interaction device under test is determined based on a time difference between the second time stamp and the first time stamp.

An interaction response time of the speech interaction device under test is determined based on a time difference between the third time stamp and the second time stamp.

The timestamp "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" in log <NUM> is determined as the fourth log. The timestamp "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" in log <NUM> is determined as the fifth log. The timestamp "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" with the interaction result in log <NUM> is determined as the sixth log.

As "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" - "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" = <NUM> second, it can be obtained that the response time of the system responding to recognition is <NUM> second.

As "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" - "<NUM>-<NUM>-<NUM><NUM>:<NUM>:<NUM>" = <NUM> second, it can be obtained that the response time of the system responding to interaction is <NUM> second.

<FIG> is a schematic structural diagram of an apparatus for testing a full-duplex speech interaction system according to an embodiment of the present invention. The device can perform the method for testing a full-duplex speech interaction system according to any of the above-mentioned embodiments and configured in a test device.

The apparatus for testing a full-duplex speech interaction system according to this embodiment includes a corpus set determination program module <NUM>, a test program module <NUM>, a log acquisition program module <NUM>, a rejection rate determination program module <NUM>, and a false response rate determination program module <NUM>.

The corpus set determination program module <NUM> is configured to determine a scene mixed corpus set by mixing a valid corpus set related to a test scene with an invalid corpus set which is unrelated to the test scene. The test program module <NUM> is configured to play each corpus audio in the scene mixed corpus set to a speech interaction device under test equipped with the full-duplex speech interaction system. The log acquisition program module <NUM> is configured to acquire a work log of the speech interaction device under test, the work log including at least a first log and a second log, wherein the first log records valid/invalid attributes recognized for each corpus audio and corresponding corpus text, and the second log records a decision result for each corpus audio, the decision including responding and discarding. The rejection rate determination program module <NUM> is configured to determine a rejection rate based on number of corpus audios having invalid attribute in the first log and number of discarding results in the second log. The false response rate determination program module <NUM> is configured to obtain number of false response results according to a counted number of log entries which have false response result in the second log, and to determine a false response rate based on the number of false responses and a total number of the played corpus audios in the scene mixed corpus set. The false response result refers to the response result that is expected not to be output but is actually output from the speech interaction device under test.

An embodiment of the present invention further provides a non-volatile computer storage medium storing computer-executable instructions. The computer-executable instructions can perform the method for testing a full-duplex speech interaction system in any of the above method embodiments.

In an embodiment, the non-volatile computer storage medium storing computer-executable instructions configured to:.

As a non-volatile computer-readable storage medium, non-volatile software programs, non-volatile computer-executable programs and modules can be stored therein, such as the program instruction/module corresponding to the method for determining a skill field of a dialogue text in the embodiments of the present invention. One or more program instructions can be stored in the non-volatile computer-readable storage medium, and perform the method for testing a full-duplex speech interaction system, applied to a test device according to any of the above method embodiments when being executed by the processors.

The non-volatile computer storage medium may include a storage program area and a storage data area. The storage program area may store an operating system and application programs required by at least one function. The storage data area may store data generated according to the use of a full-duplex voice dialogue systems and the like. In addition, the non-volatile computer storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the non-volatile computer storage medium may optionally include memories remotely disposed with respect to the processor, and these remote memories may be connected to a full-duplex voice dialogue through a network. Examples of the above network include but are not limited to the Internet, intranet, local area network, mobile communication network, and combinations thereof.

An embodiment of the present invention further provides an electronic device, including: at least one processor, and a memory communicatively coupled to the at least one processor. The memory stores instructions executable by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method containing the following steps:.

In some embodiments, the work log comprises at least a third log;.

In some embodiments, the work log comprises at least a fourth log and a fifth log.

The fourth log records a first time stamp at which each corpus audio ends playing.

The fifth log records a second time stamp for determining a recognition result after each corpus audio ends playing.

In some embodiments, the work log comprises at least a sixth log.

The sixth log records a third time stamp for determining an interaction result moment of each corpus audio.

In some embodiments, the processor is further configured to play a preset background noise to the speech interaction device under test equipped with the full-duplex speech interaction system while playing each corpus audio in the scene mixed corpus set to the speech interaction device under test equipped with the full-duplex speech interaction system; and test the speech interaction device under test based on the corpus audio containing the background noise.

In some embodiments, when playing the preset background noise to the speech interaction device under test equipped with the full-duplex speech interaction system while playing each corpus audio in the scene mixed corpus set to the speech interaction device under test equipped with the full-duplex speech interaction system, the following steps are included:.

<FIG> is a schematic diagram of a hardware structure of an electronic device for carrying out a method for testing a full-duplex speech interaction system according to another embodiment of the present invention. As shown in <FIG>, the device includes:
one or more processors <NUM> and a memory <NUM>, in which one processor <NUM> is taken as an example in <FIG>.

The device for carrying out the method for testing a full-duplex speech interaction system may further include an input means <NUM> and an output means <NUM>.

The processor <NUM>, the memory <NUM>, the input means <NUM>, and the output means <NUM> may be connected through a bus or in other ways, in which the connection through a bus is taken as an example in <FIG>.

As a non-volatile computer-readable storage medium, the memory <NUM> may store non-volatile software programs, non-volatile computer-executable programs and modules, such as the program instruction/module corresponding to the method for testing a full-duplex speech interaction system in the embodiments of the present invention. The processor <NUM> executes various functional applications and data processing of a server by running the non-volatile software programs, instructions and modules stored in the memory <NUM>, that is, to realize the method for testing a full-duplex speech interaction system in the above embodiments.

The memory <NUM> may include a stored program area and a stored data area. The stored program area may store an operating system, an application program required for at least one function. The stored data area may store data created according to the use of the apparatus for testing a full-duplex speech interaction system, and the like. Additionally, the memory <NUM> may include high speed random access memory and nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some embodiments, the memory <NUM> may include a memory located remotely relative to the processor <NUM> and connected to the apparatus for testing a full-duplex speech interaction system through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

The input means <NUM> may receive input numerical or character information, and generate signals related to user settings and function control of the apparatus for testing a full-duplex speech interaction system. The output means <NUM> may include a display device such as a display screen.

The memory <NUM> stores one or more modules, which, when being executed by the one or more processors <NUM>, perform the method for testing a full-duplex speech interaction system in any of the above method embodiments.

The above product can execute the method provided by the embodiments of the present application and has functional modules and beneficial effects corresponding to the execution of the method. For technical details not described specifically in the embodiments, reference may be made to the methods provided in the embodiments of the present application.

The electronic devices in the embodiments of the present application may be in various forms, including but not limited to:.

The embodiments of devices described above are only exemplary. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the object of the solution of this embodiment.

Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a common hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions can essentially be embodied in the form of software products that contribute to related technologies, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic disks, CD-ROM, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform the method described in each embodiment or some parts of the embodiment.

Claim 1:
A method for testing a full-duplex speech interaction system, applied to a test device, the method comprising:
determining (S11) a scene mixed corpus set by mixing a valid corpus set related to a test scene with an invalid corpus set which is unrelated to the test scene;
playing (S12) each corpus audio in the scene mixed corpus set to a speech interaction device under test equipped with the full-duplex speech interaction system;
acquiring (S13) a work log of the speech interaction device under test, the work log comprising at least a first log and a second log, wherein,
the first log records valid/invalid attributes recognized for each corpus audio and corresponding corpus text, and
the second log records a decision result for each corpus audio, the decision results comprising response result and discarding result;
determining (S14) a rejection rate based on a counted number of corpus audios having invalid attribute in the first log and a counted number of discarding results in the second log; and
obtaining (S15) number of false responses results according to a counted number of log entries in the second log which have unexpected response decision result, and determining a false response rate based on the number of false responses and a total number of the played corpus audios.