Clothes airing machine voice recognition test method and system
By obtaining the function list of the clothes dryer and comparing it with the voice test command, a collection of voice test commands with high compatibility is built, which solves the incompatibility of voice test caused by the differences in the functions of different clothes dryers of different models, and realizes accurate voice recognition testing Effect.
Patent Information
- Application Number
- CN202411671067.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-21
AI Technical Summary
In the voice recognition test of clothes dryer, due to the differences in the functions of different models of clothes dryer, the voice testing scripts are incompatible, and the voice recognition effect of the clothes dryer cannot be effectively verified, and testing errors may be caused.
By obtaining the function list of the clothes dryer, comparing the voice test instructions with the function instructions, building a collection of voice test instructions, ensuring that the test script contains the functional instructions provided by the clothes dryer, thereby improving the compatibility of the test script.
It effectively improves the compatibility of voice test scripts with different models of clothes drying machines, ensures the accuracy of test results, and avoids test errors and misleading.
Smart Images

Figure CN119479616A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech recognition, and in particular to a method and system for testing speech recognition of a clothes drying machine. Background Art
[0002] With the continuous development of smart home systems, people have higher and higher requirements for the intelligence of home appliances. Among them, clothes drying machines are commonly used textile care equipment in the home, and their intelligence directly affects the user experience. Speech recognition technology is a technology that converts human voice signals into text. It is an important part of artificial intelligence technology. Applying speech recognition technology to clothes drying equipment is a trend that reflects intelligence.
[0003] During the testing process of the voice recognition technology of the clothes drying machine, since different models of clothes drying machines have different functions, some voice test scripts may contain functional instructions that the clothes drying machine does not have. When the voice test script is used for testing, not only can the voice recognition effect of the functions actually possessed by the clothes drying machine not be verified, but it may also cause test errors and mislead the tester's judgment on the voice test effect of the clothes drying machine. Summary of the invention
[0004] In order to solve the problems in the prior art, the present application provides a clothes drying machine voice recognition test method by obtaining a function list of the clothes drying machine and screening the voice test script, which can improve the compatibility of the voice test script with the clothes drying machine test.
[0005] A method for testing voice recognition of a clothes drying machine comprises the following steps:
[0006] Obtaining a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions;
[0007] Accessing an interface of the clothes drying machine to be tested and obtaining a function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines;
[0008] Compare the voice test instruction with the function instruction, and construct a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions;
[0009] Play the voice test instruction in the voice test instruction set, and obtain the response test instruction output by the clothes drying machine to be tested after receiving the voice test script;
[0010] The response test instruction is compared with the voice response instruction to generate a clothes drying machine voice test result.
[0011] The present application also provides a clothes drying machine voice recognition test system, comprising:
[0012] A voice test script acquisition module: used to acquire a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions;
[0013] Function list acquisition module: used to access the interface of the clothes drying machine to be tested and obtain the function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines;
[0014] A voice test instruction set building module: used for comparing the voice test instruction with the function instruction, and building a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions;
[0015] Voice test module: used for playing the voice test instructions in the voice test instruction set, and obtaining the response test instructions output by the clothes drying machine to be tested after receiving the voice test script;
[0016] Voice test result output module: used to compare the response test instruction with the voice response instruction to generate a clothes drying machine voice test result.
[0017] Compared with the prior art, the present solution receives a voice recognition test instruction for a clothes drying machine, obtains a corresponding voice test script, and before conducting a voice recognition test on the clothes drying machine to be tested according to the voice test script, obtains the functional instructions of the clothes drying machine to be tested, and compares the instructions with the voice test script, thereby screening out the voice test script containing the functional instructions possessed by the clothes drying machine to be tested, which can effectively improve the compatibility of the voice test script with the clothes drying machine test.
[0018] In order to provide a clearer understanding of the present application, the specific implementation of the present application will be described below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flowchart of a method for testing voice recognition of a clothes drying machine is provided for this application;
[0020] Figure 2 A flowchart of a method for distinguishing between general function voice test instructions and special function voice test instructions in a voice recognition test method for a clothes drying machine in the present application;
[0021] Figure 3 A flow chart of a method for constructing a voice test instruction set in a voice recognition test method for a clothes drying machine in the present application;
[0022] Figure 4 This is a flow chart of a method for generating special function voice test instructions in a voice recognition test method for a clothes drying machine in the present application;
[0023] Figure 5 A flow chart of a method for generating a clothes drying machine voice test result in a clothes drying machine voice recognition test method of the present application;
[0024] Figure 6 This is a schematic diagram of a voice recognition test system for a clothes drying machine according to the present application. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0026] It should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the application. It should be understood that the operations of the flowcharts may be implemented out of order, and steps without logical contextual relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowcharts, or may remove one or more operations from the flowcharts, under the guidance of the content of this application.
[0027] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0028] Example 1
[0029] See also Figure 1 , Figure 1 This is a flow chart of a method for testing voice recognition of a clothes drying machine in this application. This application provides a method for testing voice recognition of a clothes drying machine, which specifically includes the following steps:
[0030] S1: Obtain a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions;
[0031] S2: Accessing the interface of the clothes drying machine to be tested and obtaining a function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines;
[0032] S3: Compare the voice test instruction with the function instruction, and construct a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions;
[0033] S4: Play the voice test instruction in the voice test instruction set to obtain a response test instruction output by the clothes drying machine to be tested after receiving the voice test script;
[0034] S5: Compare the response test instruction with the voice response instruction to generate a clothes drying machine voice test result.
[0035] In this embodiment, the clothes drying machine voice recognition test method is preferentially applied to the clothes drying machine voice test system, and the clothes drying machine voice test system can be applied on a server or a terminal. In order to ensure the accuracy of the test, the server is an application server with strong computing power; the terminal can be a user equipment (UE) with strong computing power, a handheld device with wireless communication function, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a mobile station (MS), etc., among which a computer terminal is preferred.
[0036] The clothes drying machine voice test system comprises a clothes drying machine voice test database server, a clothes drying machine data acquisition server and a clothes drying machine voice test server. The clothes drying machine voice test database server is used to construct a clothes drying machine voice test database, and the clothes drying machine voice test database is used to store the voice test script and the voice response script corresponding to the voice test script.
[0037] The clothes drying machine data acquisition server extracts the voice test script corresponding to the instruction information and the voice response script corresponding to the voice test script from the clothes drying machine voice test database, and sends them to the clothes drying machine voice test server.
[0038] After the clothes drying machine voice test server converts the voice test script into an audio file, it controls the audio device connected to the computer terminal to play the audio file, thereby simulating the user giving voice commands to the clothes drying machine to be tested. The voice module of the clothes drying machine to be tested receives the voice test script played by the audio device and generates corresponding response test commands. The computer terminal obtains the response test command output by the clothes drying machine to be tested after receiving the voice test script by accessing the serial port of the voice module of the clothes drying machine to be tested. The clothes drying machine voice test server compares the response test command with the voice response command to generate the clothes drying machine voice test result.
[0039] Compared with the prior art, the present solution receives a voice recognition test instruction for a clothes drying machine, obtains a corresponding voice test script, and before conducting a voice recognition test on the clothes drying machine to be tested according to the voice test script, obtains the functional instructions of the clothes drying machine to be tested, and compares the instructions with the voice test script, thereby screening out the voice test script containing the functional instructions possessed by the clothes drying machine to be tested, which can solve the problem of incompatibility of voice test scripts caused by functional differences of different models of clothes drying machines.
[0040] For step S1, in this embodiment, the voice test script includes a series of voice test instructions saved in a string format for allowing the clothes drying machine to execute specific functional instructions. The voice test instructions include an instruction prefix and a functional instruction text for ensuring that the clothes drying machine recognizes the starting position of the voice test instructions. The instruction prefix is usually a fixed phrase or word, which is used to inform the clothes drying machine to be tested that the next voice input is an instruction that needs to be recognized and executed. The functional instruction text is the functional instruction that the clothes drying machine to be tested will execute. For example, "Xiaohao Xiaohao, please turn on the drying function of the clothes drying machine", where "Xiaohao Xiaohao, please turn on the drying function of the clothes drying machine" is the instruction prefix, and "drying function" is the functional instruction text.
[0041] The voice response script includes a series of voice response instructions for the clothes dryer to generate corresponding voice response instructions after receiving the voice test instructions, and is saved in a string format. The same voice test script may correspond to multiple voice response instructions. The voice response instruction includes a functional instruction feedback text, which is usually a fixed phrase or vocabulary used to inform the user of the execution result. For example, for the above-mentioned voice test script "Xiaohao Xiaohao, please turn on the drying function of the clothes dryer", if the drying function of the clothes dryer to be tested is turned on, the voice response script generated by the clothes dryer to be tested is "The drying function of the clothes dryer is already in the turned-on state"; if the drying function of the clothes dryer to be tested is not turned on, the voice response script generated by the clothes dryer to be tested is "The drying function of the clothes dryer is being turned on for you".
[0042] For step S2, the interface of the clothes drying machine to be tested may be a wired communication interface for communicating with an external device such as a computer terminal, or an application programming interface for interacting with an external application. In this embodiment, the clothes drying machine voice test system applied to the computer terminal also includes a data interaction server, which calls a specific request, obtains a function list of the clothes drying machine to be tested through the application programming interface of the clothes drying machine to be tested, and sends the function list to the clothes drying machine voice test server.
[0043] It should be noted that the data interaction server obtains the function list of the clothes drying machine to be tested by calling the application programming interface of the clothes drying machine to be tested in a common way, which should be understood by ordinary technicians in this field and will not be described in detail here.
[0044] The function list includes several basic operations of the clothes drying machine, i.e., the function instructions, such as raising and lowering the clothes drying rod, turning on and off the lighting system, timing start and stop, adjusting the wind speed or drying intensity, etc. During the manufacturing and delivery process of the clothes drying machine, any of the function instructions is stored in the control system or storage medium of the clothes drying machine in the form of a character string.
[0045] For step S3, in one embodiment, the voice test script includes general function voice test instructions and special function voice test instructions. The general function voice test instructions are voice test scripts used to verify whether the basic and general operations of the clothes drying machine can be correctly executed through voice instructions, including functions such as the rise and fall of the clothes drying rod. Since different models of clothes drying machines have different function instructions, the special function voice test instructions are voice test scripts used to verify whether the special function instructions of the clothes drying machine can be correctly executed through voice instructions, including drying function, disinfection function and sterilization function.
[0046] See also Figure 2 , Figure 2 This is a flow chart of a method for distinguishing general function voice test instructions from special function voice test instructions in a voice recognition test method for a clothes drying machine in the present application. The voice test instruction is compared with the function instruction, and a voice test instruction set is constructed according to the comparison result, wherein the voice test instruction set includes several of the voice test instructions, and further includes the following steps:
[0047] S3a: traverse all the voice test scripts and perform word segmentation processing on the voice test instructions of the voice test scripts to obtain a word segmentation result;
[0048] S3b: screening the word segmentation results according to a preset instruction prefix list, identifying and removing the word segmentation results that are the instruction prefixes;
[0049] S3c: Sequentially match the tokenization results after screening with the instructions in the preset general function voice instruction set. If the match is successful, classify the voice test instruction as a general function voice test instruction.
[0050] S3d: Sequentially match the tokenization results after screening with the instructions in the preset special function voice instruction set. If the match is successful, classify the voice test instruction as a special function voice test instruction.
[0051] For step S3a, in this embodiment, the tokenization rule based on the dictionary is preferably adopted to segment the voice test script into several individual words as the tokenization results. The dictionary can be constructed according to the relevant vocabulary of the drying machine, including functional vocabulary such as drying, rising, and disinfecting, operation vocabulary such as starting, stopping, and canceling, and component vocabulary such as drying rods and disinfecting lamps. Of course, it is also possible to perform tokenization by machine learning algorithms such as convolutional neural networks by learning the characteristics of a large number of drying machine-related vocabulary.
[0052] After performing the tokenization process on the voice test script to obtain the tokenization results, the tokenization results are sequentially preprocessed to obtain the tokenization results after preprocessing. The preprocessing includes: duplicate removal and stop word removal, etc. The stop word removal includes words such as "de", "le", and "zai", which is beneficial to improving the efficiency of subsequent comparison.
[0053] For step S3b, the instruction prefix can be extracted by traversing the existing voice test scripts or actual voice instruction data, or the instruction prefix can be defined by referring to the industry standards and specifications of the drying machine, so as to construct the instruction prefix list. The instruction prefix list is stored in the drying machine voice test database.
[0054] For steps S3c and S3d, the general function voice instruction set is a series of instructions for basic and general operations of the drying machine and is stored in string format, such as starting, closing, rising, and falling, etc. Traverse the instructions in the general function voice instruction set, and match the tokenization results with the instructions in the general function voice instruction set through a matching algorithm. The fuzzy matching of the string matching algorithm is preferably used. If the match is successful, the voice test script is considered a general function voice test instruction. For example, when the tokenization result is "lift" and any instruction in the general function voice instruction set is "rise", through the fuzzy matching of the string matching algorithm, it can also be considered a successful match.
[0055] The special function voice instruction set is a series of instructions for special operations of the clothes drying machine, and is saved in a string format, such as disinfection, sterilization, and drying. The instructions in the special function voice instruction set are traversed, and the word segmentation result is matched with the instructions in the special function voice instruction set through a matching algorithm, and the fuzzy matching of the string matching algorithm is used first. If the match is successful, the voice test script is considered to be a special function voice test instruction. For example, when the word segmentation result is "sterilization" and any instruction in the general function voice instruction set is "sterilization", the match can also be considered successful by using the fuzzy matching of the string matching algorithm.
[0056] It should be noted that in order to ensure the accuracy and reliability of the matching results, the fuzzy matching parameters should be appropriately adjusted. A person skilled in the art should be aware of the means of adjusting the fuzzy matching parameters, which will not be elaborated here.
[0057] Please also see Figure 3 , Figure 3 This is a flow chart of a method for constructing a voice test instruction set in a clothes drying machine voice recognition test method of the present application. The voice test instruction is compared with the function instruction, and a voice test instruction set is constructed according to the comparison result, wherein the voice test instruction set includes several voice test instructions and further includes the following steps:
[0058] S31: adding the general function voice test instruction to the voice test instruction set;
[0059] S32: If the word segmentation result corresponding to the special function voice test instruction matches the function instruction, adding the special function voice test instruction to the voice test instruction set;
[0060] S33: If the word segmentation result corresponding to the special function voice test instruction does not match the function instruction, a corresponding special function voice test instruction is generated according to the function instruction and added to the voice test instruction set.
[0061] For step S31, the voice test instruction set is a set of voice test scripts for performing a voice recognition test on the clothes drying machine to be tested, obtained after screening the voice test scripts.
[0062] For step S32, the word segmentation result corresponding to the special function voice test instruction is matched with the function instruction through a matching algorithm, and the fuzzy matching of the string matching algorithm is used preferentially. If the match is successful, the special function voice test instruction is added to the voice test instruction set.
[0063] It should be noted that in order to ensure the accuracy and reliability of the matching results, the fuzzy matching parameters should be appropriately adjusted. A person skilled in the art should be aware of the means of adjusting the fuzzy matching parameters, which will not be elaborated here.
[0064] See also Figure 4 , Figure 4 This is a flow chart of a method for generating a special function voice test instruction in a clothes drying machine voice recognition test method of the present application. For step S33, if the word segmentation result corresponding to the special function voice test instruction does not match the function instruction, then according to the function instruction, a corresponding special function voice test instruction is generated and added to the voice test instruction set, and the following steps are also included:
[0065] S331: Acquire a pre-stored voice test instruction template, wherein the voice test instruction template includes an instruction prefix placeholder and a function placeholder for ensuring that the clothes drying machine recognizes the starting position of the special function voice test instruction;
[0066] S332: Replace the function placeholder with the function instruction, and replace the instruction prefix placeholder with the instruction prefix in the instruction prefix list, to generate a special function voice test instruction corresponding to the function instruction.
[0067] For steps S331 and S332, the voice test instruction template is stored in the clothes drying machine voice test database. The voice test instruction template includes an instruction prefix placeholder and a function placeholder for ensuring that the clothes drying machine recognizes the starting position of the voice test script. The instruction prefix is used to subsequently insert the specific instruction prefix. The function placeholder is used to subsequently insert the specific function instruction.
[0068] The clothes drying machine data acquisition server obtains the voice test instruction template and the instruction prefix list from the clothes drying machine voice test database, and sends them to the clothes drying machine voice test server. The clothes drying machine voice test server replaces the function placeholder with the function instruction, replaces the instruction prefix placeholder with the instruction prefix in the instruction prefix list, and generates a special function voice test instruction corresponding to the function instruction.
[0069] For step S4, after the clothes drying machine voice test server converts each voice test script in the voice test instruction set into an audio file, it controls the audio device connected to the computer terminal to play the audio file, thereby simulating the user giving a voice command to the clothes drying machine to be tested, and the voice module of the clothes drying machine to be tested receives the voice test script played by the audio device and generates a corresponding response test instruction. The computer terminal obtains the response test instruction output by the clothes drying machine to be tested after receiving the voice test script by accessing the serial port of the voice module of the clothes drying machine to be tested.
[0070] See also Figure 5 , Figure 5 This is a flow chart of a method for generating a clothes drying machine voice test result in a clothes drying machine voice recognition test method of the present application. For step S5, the response test instruction is compared with the voice response instruction to generate a clothes drying machine voice test result, and the following steps are also included:
[0071] S51: Counting the number of successful comparisons between the response test instruction and the voice response script corresponding to the voice test script, and calculating the success rate of the clothes drying machine voice recognition test;
[0072] S52: Counting the number of failed comparisons between the response test instruction and the voice response script corresponding to the voice test script, and calculating the failure rate of the clothes drying machine voice recognition test;
[0073] S53: counting the speech test scripts that fail to compare the response test instruction with the speech response script corresponding to the speech test script into the recognition failure speech set;
[0074] S54: The success rate of the clothes drying machine voice recognition test, the failure rate of the clothes drying machine voice recognition test and the recognition failure voice set are taken as the clothes drying machine voice recognition test result.
[0075] Regarding step S54, in this embodiment, the clothes drying machine voice test server can output the clothes drying machine voice test result by means of log printing, and of course can output the clothes drying machine voice test result in the form of a document.
[0076] Example 2
[0077] See also Figure 6 , Figure 6 This is a schematic diagram of a clothes drying machine voice recognition test system of the present application. The present application also provides a clothes drying machine voice recognition test system, including:
[0078] Voice test script acquisition module 1: used to acquire a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions;
[0079] Function list acquisition module 2: used to access the interface of the clothes drying machine to be tested and obtain the function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines;
[0080] A voice test instruction set building module 3 is used to compare the voice test instruction with the function instruction, and build a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions;
[0081] Voice test module 4: used for playing the voice test instructions in the voice test instruction set, and obtaining the response test instructions output by the clothes drying machine to be tested after receiving the voice test script;
[0082] Voice test result output module 5: used for comparing the response test instruction with the voice response instruction to generate a clothes drying machine voice test result.
[0083] It should be noted that the data obtained by the clothes drying machine voice recognition test system provided in this application when implementing a clothes drying machine voice recognition test method are stored one-to-one in the storage of this system. When relevant calculations are required, the data required for the calculation can be directly obtained from the storage.
[0084] It should also be noted that the clothes drying machine voice recognition test system provided in the above embodiment only uses the division of the above functional modules as an example when implementing a clothes drying machine voice recognition test method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the clothes drying machine voice recognition test system provided in the above embodiment and the clothes drying machine voice recognition test method in Example 1 belong to the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0085] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute a program to implement the aforementioned method for testing the voice recognition of a clothes drying machine; and the memory is used to store a computer program executable by the processor.
[0086] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a computer-executable instruction, and the computer-executable instruction can execute the described method for testing the voice recognition of a clothes drying machine. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0087] The present application is not limited to the above-mentioned implementation modes. If various changes or modifications to the present application do not depart from the spirit and scope of the present application, and if these changes and modifications fall within the claims of the present application and the scope of equivalent technologies, the present application is also intended to include these changes and modifications.
Claims
1. A method for testing voice recognition of a clothes drying machine, characterized in that: The following steps are involved: Obtaining a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions; Accessing an interface of the clothes drying machine to be tested and obtaining a function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines; Compare the voice test instruction with the function instruction, and construct a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions; Play the voice test instruction in the voice test instruction set, and obtain the response test instruction output by the clothes drying machine to be tested after receiving the voice test script; The response test instruction is compared with the voice response instruction to generate a clothes drying machine voice test result.
2. A clothes drying machine voice recognition test method according to claim 1, characterized in that: The voice test script includes a general function voice test instruction and a special function voice test instruction, and the voice test instruction includes an instruction prefix and a function instruction text for ensuring that the clothes drying machine recognizes the starting position of the voice test instruction; The voice test instruction is compared with the function instruction, and a voice test instruction set is constructed according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions, and further includes the following steps: Traversing all the voice test scripts and performing word segmentation processing on the voice test instructions of the voice test scripts to obtain word segmentation results; The word segmentation results are screened according to a preset instruction prefix list, and the word segmentation results that are the instruction prefixes are identified and removed; Sequentially matching the word segmentation results after the screening with the instructions in the preset general function voice instruction set, and if the match is successful, classifying the voice test instruction as a general function voice test instruction; The word segmentation results after screening are matched with the instructions in the preset special function voice instruction set in sequence. If the match is successful, the voice test instruction is classified as a special function voice test instruction.
3. A clothes drying machine voice recognition test method according to claim 2, characterized in that: The voice test instruction is compared with the functional instruction, and a voice test instruction set is constructed according to the comparison result, wherein the voice test instruction set includes several of the voice test instructions, and further includes the following steps: adding the general functional voice test instruction to the voice test instruction set.
4. A clothes drying machine voice recognition test method according to claim 2, characterized in that: The word segmentation result is compared with the functional instruction, and a voice test instruction set is constructed according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions, and further includes the following steps: If the word segmentation result corresponding to the special function voice test instruction matches the function instruction, adding the special function voice test instruction to the voice test instruction set; If the word segmentation result corresponding to the special function voice test instruction does not match the function instruction, a corresponding special function voice test instruction is generated according to the function instruction and added to the voice test instruction set.
5. A clothes drying machine voice recognition test method according to claim 4, characterized in that: If the word segmentation result corresponding to the special function voice test instruction does not match the function instruction, then according to the function instruction, a corresponding special function voice test instruction is generated and added to the voice test instruction set, further comprising the following steps: Acquire a pre-stored voice test instruction template, wherein the voice test instruction template includes an instruction prefix placeholder and a function placeholder for ensuring that the clothes drying machine recognizes the starting position of the special function voice test instruction; The function placeholder is replaced by the function instruction, and the instruction prefix placeholder is replaced by the instruction prefix in the instruction prefix list, so as to generate a special function voice test instruction corresponding to the function instruction.
6. A clothes drying machine voice recognition test method according to claim 1, characterized in that: The step of comparing the response test instruction with the voice response instruction to generate a clothes drying machine voice test result further includes the following steps: Counting the number of successful comparisons between the response test instruction and the voice response script corresponding to the voice test script, and calculating the success rate of the clothes drying machine voice recognition test; Counting the number of failed comparisons between the response test instruction and the voice response script corresponding to the voice test script, and calculating the failure rate of the clothes drying machine voice recognition test; The voice test scripts that fail to compare the response test instruction with the voice response script corresponding to the voice test script are counted into the recognition failure voice set; The success rate of the clothes drying machine voice recognition test, the failure rate of the clothes drying machine voice recognition test and the recognition failure voice set are taken as the clothes drying machine voice recognition test result.
7. A clothes drying machine voice recognition test method according to claim 2, characterized in that: After the speech test script is segmented and the segmentation result is obtained, the following steps are also included: The word segmentation results are preprocessed in sequence to obtain word segmentation results after preprocessing, and the preprocessing at least includes deduplication processing.
8. A clothes drying machine voice recognition test system, characterized in that: include: A voice test script acquisition module: used to acquire a pre-stored voice test script and a voice response script corresponding to the voice test script, wherein the voice test script includes a number of voice test instructions for the clothes drying machine to perform a specific function, and the voice response script includes a number of voice response instructions for the clothes drying machine to generate corresponding voice response instructions after receiving the voice test instructions; Function list acquisition module: used to access the interface of the clothes drying machine to be tested and obtain the function list pre-stored in the clothes drying machine to be tested, wherein the function list includes function instructions of several clothes drying machines; A voice test instruction set building module: used for comparing the voice test instruction with the function instruction, and building a voice test instruction set according to the comparison result, wherein the voice test instruction set includes a plurality of the voice test instructions; Voice test module: used for playing the voice test instructions in the voice test instruction set, and obtaining the response test instructions output by the clothes drying machine to be tested after receiving the voice test script; Voice test result output module: used to compare the response test instruction with the voice response instruction to generate a clothes drying machine voice test result.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for testing voice recognition of a clothes drying machine as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used in a clothes drying machine voice recognition test method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic test method and device for voice interaction application program
CN112799901A
Voice instruction test method and test device and readable storage medium
CN113140217A
Voice interaction function test method and device, test terminal and storage medium
CN115203009A
Test case screening method and device, equipment and medium
CN115858367A
Voice function test method and device of household appliance, equipment and storage medium
CN117666524A