Voice control method and device, equipment and computer storage medium
By identifying the user's voice command library and voiceprint features, the user's voice command library is established, which solves the problem that users cannot control the washing and care equipment according to their daily speaking methods, and achieves a better user experience.
Patent Information
- Application Number
- CN202311147937.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, users can only use voice control washing equipment under fixed corpus formats and rules, and cannot match the user's daily speaking style, resulting in poor user experience.
By obtaining the user's voice command and identifying its voiceprint characteristics, a user's voice command library is established to store the corresponding relationship between the user's voice command and the target program. If the voice command is in the library, start the target program directly; if it is not in the library, ask the user whether to execute the target program, and add an association relationship when the cumulative number of times reaches the preset value.
It realizes voice control to match different users with their daily speaking methods while ensuring the normal operation of the washing and care equipment, improving the user experience.
Smart Images

Figure CN119580720A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of smart home appliances, and specifically relates to a voice control method, device, equipment and computer storage medium. Background Art
[0002] With the development of economy and the progress of society, in addition to the traditional button-based control of washing and care equipment, a method of user voice control of the operation of washing and care equipment has been added.
[0003] Currently, in the process of user voice control of the operation of the washing and care equipment, the washing and care equipment can only respond to the user's operation when the user expresses according to the fixed corpus format and rules stored in the washing and care equipment system. It is impossible to match the voice control method corresponding to the daily speaking style of each user.
[0004] Therefore, the current problem to be solved is how to match the voice control method corresponding to the daily speaking style of different users to enhance the user experience while ensuring the normal operation of the washing and care equipment. Summary of the invention
[0005] In order to solve the above-mentioned problems in the prior art, that is, to solve the problem in the prior art of how to match the voice control method corresponding to the daily speaking method of different users to enhance the user experience while ensuring the normal operation of the washing and care equipment.
[0006] Embodiments of the present application provide a voice control method, apparatus, device, and computer storage medium.
[0007] In a first aspect, an embodiment of the present invention provides a voice control method, which is applied to the field of smart home, and the method includes:
[0008] Acquire a first voice command of a user and identify a voiceprint feature in the first voice command;
[0009] According to the voiceprint feature, a voice instruction library of the user is obtained; wherein different users set different voice instruction libraries based on voiceprint features, and the voice instruction library is used to store the pre-learned correspondence between the user's voice instructions and the target program;
[0010] Determining whether the first voice instruction exists in a voice instruction library of the user;
[0011] If the first voice instruction is in the voice instruction library of the user, the target program corresponding to the first voice instruction is directly started.
[0012] Optionally, if the first voice instruction is not in the voice instruction library of the user, the method further includes:
[0013] Acquire voice control information, execute a target program, and update the accumulated number of the voice control information, wherein the voice control information includes first inquiry information for inquiring a user whether to execute the target program and first reply information indicating that the user agrees to execute the target program;
[0014] If the accumulated number of times of the voice control information reaches a preset number, an association relationship between the first voice instruction and the target program is added to the voice instruction library of the user.
[0015] Optionally, after directly starting the target program corresponding to the first voice instruction, the method further includes:
[0016] After the target program is started, if a second voice command sent by the user is received within a preset time period, and the second voice command is used to cancel or switch the target program, the second voice command is executed, and first time information is recorded, where the first time information includes the running time of the target program and the reception time of the associated second voice command;
[0017] Determine whether to delete the association between the first voice instruction and the target program in the voice instruction library based on the first time information and the second time information, wherein the second time information includes the running time of the target program that has not received the second voice instruction.
[0018] Optionally, determining whether to delete the association between the first voice instruction and the target program in the voice instruction library according to the first time information and the second time information includes:
[0019] According to the first time information and the second time information, if it is determined that the second voice instructions for the first number are received continuously during multiple target program executions, the association relationship is deleted from the voice instruction library and the association relationship is added to a blacklist, wherein the association relationships in the blacklist are no longer accumulated and added to the user's voice instruction library.
[0020] Optionally, the method further includes:
[0021] According to the first time information and the second time information, if it is determined that during multiple target program runs, the second voice instruction is received at an interval of a second number, and the maximum interval number of target programs that have not received the second voice instruction is less than a preset number, then when the second number is greater than the preset number, the association relationship is deleted from the voice instruction library, and the voice control information corresponding to the association relationship is re-accumulated.
[0022] Optionally, after adding the association relationship to a blacklist, the method further includes:
[0023] The user is recorded in a whitelist, and the voice instruction library of the user is deleted, wherein the whitelist is used to indicate that the user no longer sets a voice instruction library.
[0024] Optionally, before recording the user into the whitelist, the method further includes:
[0025] Sending a second inquiry message to the user, where the second inquiry message is used to inquire the user whether to delete the voice instruction library of the user;
[0026] Second reply information of the user to the second inquiry information is obtained, where the second reply information indicates that the user agrees to delete the voice instruction library of the user.
[0027] In a second aspect, an embodiment of the present invention provides a voice control device, comprising:
[0028] A first acquisition module: acquires a first voice command of a user and identifies a voiceprint feature in the first voice command;
[0029] The second acquisition module: acquires the voice instruction library of the user according to the voiceprint feature; wherein different users set different voice instruction libraries based on voiceprint features, and the voice instruction library is used to store the pre-learned correspondence between the user's voice instructions and the target program;
[0030] A judgment module: judging whether the first voice instruction exists in the voice instruction library of the user;
[0031] Processing module: If the first voice instruction is in the voice instruction library of the user, directly start the target program corresponding to the first voice instruction.
[0032] Optionally, the voice control device further includes: a processing module;
[0033] The first acquisition module is further used to, when the first voice instruction is not in the voice instruction library of the user, acquire voice control information, execute the target program, and update the accumulated number of the voice control information, wherein the voice control information includes first inquiry information for inquiring the user whether to execute the target program, and first reply information of the user agreeing to execute the target program;
[0034] The processing module is used to add an association relationship between the first voice instruction and the target program in the voice instruction library of the user when the accumulated number of times of the voice control information reaches a preset number.
[0035] Optionally, the processing module is further configured to, after the target program is started, if a second voice instruction sent by a user is received within a preset time period, and the second voice instruction is used to cancel or switch the target program, execute the second voice instruction and record first time information, wherein the first time information includes the running time of the target program and the reception time of the associated second voice instruction;
[0036] The processing module is also used to determine whether to delete the association between the first voice instruction and the target program in the voice instruction library based on the first time information and the second time information, wherein the second time information includes the running time of the target program that has not received the second voice instruction.
[0037] Optionally, the voice control device further includes: a determination module;
[0038] The determination module is used to determine whether to delete the association relationship between the first voice instruction and the target program in the voice instruction library according to the first time information and the second time information, including:
[0039] The determination module is also used to delete the association relationship from the voice instruction library and add the association relationship to a blacklist based on the first time information and the second time information, if it is determined that the second voice instructions for the first number of times are received continuously during multiple target program executions, wherein the association relationships in the blacklist are no longer accumulated and added to the voice instruction library of the user.
[0040] Optionally, the processing module is further used to:
[0041] According to the first time information and the second time information, if it is determined that during multiple target program runs, the second voice instruction is received at an interval of a second number, and the maximum interval number of target programs that have not received the second voice instruction is less than a preset number, then when the second number is greater than the preset number, the association relationship is deleted from the voice instruction library, and the voice control information corresponding to the association relationship is re-accumulated.
[0042] Optionally, the processing module is further used to record the user into a whitelist and delete the user's voice instruction library, wherein the whitelist is used to indicate that the user no longer sets a voice instruction library.
[0043] Optionally, the processing module is further used to:
[0044] Sending a second inquiry message to the user, where the second inquiry message is used to inquire the user whether to delete the voice instruction library of the user;
[0045] Second reply information of the user to the second inquiry information is obtained, where the second reply information indicates that the user agrees to delete the voice instruction library of the user.
[0046] In a third aspect, an embodiment of the present invention provides a voice control device, including: at least one processor and a memory;
[0047] The memory stores computer-executable instructions;
[0048] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the voice control method as described in the first aspect and various possible implementations of the first aspect.
[0049] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the voice control method described in the first aspect and various possible implementations of the first aspect is implemented.
[0050] The present application provides a voice control method, apparatus, device and computer storage medium. Obtain a user's first voice command and identify the voiceprint features in the first voice command; obtain the user's voice command library based on the voiceprint features; wherein different users set different voice command libraries based on voiceprint features, and the voice command library is used to store the pre-learned correspondence between the user's voice commands and target programs; determine whether the first voice command exists in the user's voice command library; if the first voice command is in the user's voice command library, directly start the target program corresponding to the first voice command. While ensuring the normal operation of the washing and care equipment, the voice control method corresponding to the user's daily speaking style is matched and the user's voice command library is established, thereby improving the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1 The process of the voice control method provided in the embodiment of the present application Figure 1 ;
[0053] Figure 2 The process of the voice control method provided in the embodiment of the present application Figure 2 ;
[0054] Figure 3 The process of the voice control method provided in the embodiment of the present application Figure 3 ;
[0055] Figure 4 is a structural schematic diagram of the voice control device provided by the present invention;
[0056] Figure 5 It is a structural schematic diagram of the voice control device provided by the present invention.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0060] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0061] With the development of economy and the progress of society, based on the traditional way of controlling the washing and care equipment through user buttons, the washing and care equipment has added a way of user voice control of the operation of the washing and care equipment. The user can send commands through voice to control the washing and care equipment to perform corresponding operations.
[0062] Currently, in the process of user voice control of the operation of the washing and care equipment, the washing and care equipment can only respond to the user's operation when the user expresses according to the fixed corpus format and rules stored in the washing and care equipment system. The user cannot control the operation of the washing and care equipment according to his daily speaking habits, which reduces the user's experience.
[0063] Therefore, the current problem to be solved is how to match the voice control method corresponding to the user's daily speaking style to enhance the user experience while ensuring the normal operation of the washing and care equipment.
[0064] The present application provides a voice control method, which obtains the user's voice command and identifies the voiceprint features in the voice command; obtains the user's voice command library based on the voiceprint features; determines whether the voice command exists in the user's voice command library; if the first voice command is in the user's voice command library, directly starts the target program corresponding to the voice command; if the voice command is not in the user's voice command library, asks the user whether to execute the target program and obtains the user's reply information, executes the target program according to the user's reply information, and updates the cumulative number of voice control information. If the cumulative number reaches a preset number, the association relationship between the voice command and the target program is added to the user's voice command library. While ensuring the normal operation of the washing and care equipment, it is possible to match the voice control method corresponding to the user's daily speaking style and establish the user's voice command library, thereby improving the user's experience.
[0065] The principles and features of the embodiments of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the embodiments of the present invention and are not used to limit the scope of the embodiments of the present invention.
[0066] Figure 1 The process of the voice control method provided by the present invention is Figure 1 ;like Figure 1 As shown, the voice control method specifically includes the following steps:
[0067] S101: Acquire a first voice command of a user and identify a voiceprint feature in the first voice command.
[0068] Among them, the first voice instruction is an instruction for the user to control the operation of the washing and care equipment. The instruction is not restricted by fixed corpus formats and rules, and is an everyday language with the user's personal language habits. The first voice instruction can be, for example: "I want to pause the washing of clothes", "Turn on the automatic drying function after washing", etc. In order to achieve the voice control method corresponding to the daily speaking method for different users, it is necessary to identify the user identity information based on the voiceprint features in the first voice instruction. The voiceprint features may include, for example: voice purity features, average pitch features, range features, etc. It can be understood that the purity of voices of different people is generally different, and can be roughly divided into three levels of high purity, low purity and medium purity. At the same time, there are differences in whether the voice is high-pitched or low-pitched, and whether the range is full or dry. By obtaining the voiceprint features, the user identity information can be obtained.
[0069] S102: acquiring a voice command library of the user according to the voiceprint feature; wherein different users set different voice command libraries based on voiceprint features, and the voice command library is used to store the pre-learned correspondence between the user's voice commands and the target program;
[0070] Among them, in order to match different users with the voice control method corresponding to their daily speaking style, this application establishes the voice command library for each user to store the corresponding relationship between the user's voice command and the target program. The corresponding relationship can be, for example: User A sends the command: "I want to pause the washing of clothes" corresponds to the target program A: start the washing pause program; User B sends "turn on the automatic drying function after the washing is finished" corresponds to the target program B: start the washing and drying program. After determining the user's identity information based on the voiceprint features, the user's voice command library can be obtained. When the corresponding relationship between the current user's first voice command and the target program is stored in the voice command library, the target program can be directly started to enable the user to control the operation of the washing and care equipment with daily language.
[0071] S103: Determine whether the first voice instruction exists in the voice instruction library of the user.
[0072] Among them, after obtaining the user's voice command library according to the voiceprint feature, it is determined whether the first voice command exists in the user's voice command library to determine whether the target program can be directly started according to the first voice command, thereby enabling the user to control the operation of the washing and care equipment with daily language.
[0073] S104: If the first voice instruction is in the voice instruction library of the user, directly start the target program corresponding to the first voice instruction.
[0074] Among them, if the first voice instruction is in the voice instruction library of the user, the target program corresponding to the first voice can be searched in the voice instruction library of the user and the target program can be directly started. For example, if the content of the first voice instruction of the current user A is; "I want to wash a wool sweater", after determining the identity information of user A and its corresponding voice instruction library based on the voiceprint information of user A, the content in the voice instruction library of user A is retrieved to determine whether the first voice instruction is in the voice instruction library of user A; when the first voice instruction is in the voice instruction library of user A, the target program corresponding to it is obtained. If the content of the target program obtained is: start the gentle wash function, the target program is directly started to control the washing and care equipment to start the gentle wash function.
[0075] The voice control method provided in this embodiment obtains the user's first voice command and identifies the voiceprint features in the first voice command; obtains the user's voice command library based on the voiceprint features; different users set different voice command libraries based on voiceprint features, and the voice command library is used to store the pre-learned correspondence between the user's voice command and the target program; determines whether the first voice command exists in the user's voice command library; if the first voice command exists in the user's voice command library, directly starts the target program corresponding to the first voice command. The method achieves matching the voice control method corresponding to the user's daily speaking method and establishing the user's voice command library, thereby improving the user's experience.
[0076] Figure 2 is a flow chart of a second embodiment of the voice control method provided by the present invention, Figure 2 exist Figure 1 Based on the above, the voice control method is described in detail, such as Figure 2 As shown, the method includes:
[0077] S201: Determine whether the first voice instruction exists in the voice instruction library of the user; if so, execute S205; if not, execute S202.
[0078] Among them, the user's voice instruction library stores the pre-learned correspondence between the user's voice instructions and the target program, and it is judged whether the first voice instruction exists in the user's voice instruction library to determine whether the target program can be directly started according to the first voice instruction, and the corresponding operations are performed according to different judgment results.
[0079] S202: Acquire voice control information, execute a target program, and update the accumulated number of the voice control information.
[0080] Among them, if the first voice instruction does not exist in the voice instruction library of the user, it is necessary to match the corresponding target program by analyzing the content of the first voice instruction. For example, the target program corresponding to the first voice instruction can be obtained by extracting keywords in the user's first voice instruction, training the model and inputting the keywords and the user's historical usage data. This application does not limit this. Subsequently, voice control information is obtained, and the voice control information includes first inquiry information for asking the user whether to execute the target program, and first reply information of the user agreeing to execute the target program.
[0081] It can be understood that after obtaining the target program corresponding to the first voice command, in order to ensure accuracy, it is necessary to send a first inquiry message to the user to ask the user whether he agrees to execute the target program; for example, if the first voice command content of the current user A is; "I want to wash a wool sweater", and the target program obtained is: start the gentle wash function, it is necessary to send a first inquiry message to the user, such as: "Hello, according to your instruction, the gentle wash function will be started for you, do you agree to start it?" If the user's first reply message is: "Agree to start", the gentle wash function is started.
[0082] In order to match the voice control method corresponding to the daily speaking style of different users, the present application establishes a voice command library for each user to store the correspondence between user voice commands and target programs. Therefore, after completing the acquisition of voice control information and executing the target program, the cumulative number of the voice control information is updated, and then when the cumulative number reaches a certain value, the correspondence between the first voice command and the target program can be stored in the user voice command library, and then the target program can be directly started, avoiding the above-mentioned inquiry process, and improving the working efficiency of the washing equipment and the user experience.
[0083] S203: Determine whether the accumulated number of voice control information reaches a preset number; if so, execute S204, if not, the process ends.
[0084] Among them, the preset number of times is the upper limit of the voice control information obtained when the first voice instruction information does not exist in the voice instruction library of the user, and the voice control information includes the first inquiry information for asking the user whether to execute the target program, and the first reply information of the user agreeing to execute the target program; the preset number of times can be 3 times, for example. It can be understood that by judging whether the cumulative number of the voice control information reaches the preset number of times, it can be determined whether to store the correspondence between the current user's first voice instruction and the target program in the user's voice instruction library so that when the first voice instruction exists in the user's voice instruction library, the target program can be directly started to avoid the above inquiry process.
[0085] S204: Adding an association relationship between the first voice instruction and the target program in the user's voice instruction library.
[0086] When the cumulative number of voice control information reaches a preset number, it can be determined that the association between the first voice instruction currently obtained and the target program is correct. In the user's voice instruction library, the association between the first voice instruction and the target program is added, and the target program with an association relationship can be found in the user's voice instruction library and directly executed after the first voice instruction of the user is obtained next time, thereby improving the working efficiency of the washing and care equipment and avoiding the above-mentioned process of asking the user.
[0087] S205: Directly start the target program corresponding to the first voice command
[0088] Among them, if the first voice instruction is in the user's voice instruction library, the target program corresponding to the first voice can be found in the user's voice instruction library and the target program can be directly started. The detailed process and principle of this step are the same as step S104, which will not be repeated here.
[0089] S206: Determine whether a second voice command sent by the user is received within a preset time period; if so, execute S207, if not, the process ends.
[0090] Among them, if the first voice command is in the voice command library of the user, the target program corresponding to the first voice command is directly started; after the target program is started, the user can send the second voice command within the preset time to cancel or switch the target program, and the preset time can be, for example, 1 minute; by judging whether the second voice command sent by the user is received within the preset time and making corresponding operations to meet the user's needs.
[0091] S207: Execute the second voice instruction and record the first time information.
[0092] Wherein, after the target program is started, the user can send the second voice instruction within the preset time to cancel or switch the target program, and the preset time can be, for example, 1 minute. For example: the current user A sends the first voice instruction at 9:30:25: "I want to wash a wool sweater", and the washing and care device executes the target program at 9:30:35: after obtaining that the target program is to start the gentle wash function, if the second voice instruction sent by user A is received at 9:30:54: "Switch to the fast wash function", the washing and care device executes the second voice instruction and switches to the fast wash function. Record the first time information, the first time information includes the running time of the target program and the receiving time of the associated second voice instruction. In this example, the first time information includes: executing the target program at 9:30:35: and receiving the second voice instruction sent by user A at 9:30:54:. By recording the first time information, it can be determined whether to delete the association between the first voice instruction and the target program in the voice instruction library.
[0093] S208: Determine whether to delete the association between the first voice instruction and the target program in the voice instruction library according to the first time information and the second time information.
[0094] Among them, according to the first time information and the second time information, it is determined whether to delete the association between the first voice instruction and the target program in the voice instruction library, and the second time information includes the running time of the target program that has not received the second voice instruction. For example, the current user A sends the first voice instruction at 18:20:40, which is "I want to wash a wool sweater". After the washing and care equipment obtains that the target program is to start the gentle wash function, it executes the target program at 18:20:45. If the second voice instruction sent by user A is not received within 9:21:40, the second time information is recorded. In this example, the second time information is 18:20:45 to execute the target program. According to the first time information and the second time information, it can be determined whether the second voice instruction is received continuously or at intervals during the running of multiple target programs, and then it is determined whether to delete the association between the first voice instruction and the target program in the voice instruction library, and the target program is not directly executed when the first voice instruction is obtained next time, so as to ensure the user experience.
[0095] The voice control method provided in this embodiment determines whether the first voice instruction exists in the voice instruction library of the user. If the first voice instruction does not exist in the voice instruction library of the user, the voice control information is obtained, the target program is executed, and the cumulative number of the voice control information is updated; it is determined whether the cumulative number of the voice control information reaches a preset number; if it reaches the preset number, the association relationship between the first voice instruction and the target program is added in the voice instruction library of the user. If the first voice instruction exists in the voice instruction library of the user, the target program corresponding to the first voice instruction is directly started; it is determined whether the second voice instruction sent by the user is received within the preset time length; if the second voice instruction sent by the user is received within the preset time length, the second voice instruction is executed, and the first time information is recorded, and according to the first time information and the second time information, it is determined whether the association relationship between the first voice instruction and the target program in the voice instruction library is deleted. It is realized that the voice control method corresponding to the daily speaking mode of the non-user is matched and the user's voice instruction library is established, which improves the user's use experience.
[0096] Figure 3 1 is a flow chart of a third embodiment of the voice control method provided by the present invention; Figure 3 exist Figure 1 Based on the first time information and the second time information, determining whether to delete the association relationship between the first voice instruction in the voice instruction library and the target program is described in detail, such as Figure 3 As shown, the method includes:
[0097] S301: Determine whether the second voice instruction of the first number is received continuously; if so, execute S302, if not, execute S306.
[0098] Among them, the second voice instruction is used to cancel or switch the target program. It can be understood that if the user sends the second voice instruction, it means that the current user is not satisfied with the target program and needs to terminate or switch it. The first number is the upper limit of the number of times the second voice instruction sent continuously by the user is received set by this application. The first number can be, for example, 2 times. According to the first time information and the second time information, it is judged whether the second voice instruction of the first number is received continuously to determine whether to delete the association relationship and make corresponding operations.
[0099] S302: Deleting the association relationship from the voice instruction library, and adding the association relationship to a blacklist.
[0100] If, according to the first time information and the second time information, it is determined that the second voice instructions of the first number are received continuously, the association relationship is deleted from the voice instruction library, and the first number of times can be, for example, 2 times. The method for determining that the second voice instructions of the first number are received continuously is: if there is no second time information between the two first time information, it is determined that the second voice instructions of the first number are currently received continuously.
[0101] It can be understood that if the user sends the second voice instruction, it indicates that the current user is not satisfied with the target program. Therefore, the present application uses the continuous receipt of the first number of second voice instructions as a condition for deleting the association between the first voice instruction and the target program from the voice instruction library; further, in order to avoid a poor user experience when the user sends the first voice instruction thereafter due to the association being stored in the voice instruction library again and directly executing the target program, if it is determined based on the first time information and the second time information that the first number of second voice instructions have been received continuously, the association is deleted from the voice instruction library and added to the blacklist. The association added to the blacklist is invalid and will no longer be added to the user voice instruction library.
[0102] S303: Sending a second inquiry message to the user.
[0103] Among them, in order to improve the user experience, after deleting the association from the voice instruction library and adding the association to the blacklist, the present application is set to send a second inquiry message to the user, and the second inquiry message is used to ask the user whether to delete the user's voice instruction library, that is, to determine whether the voice control function needs to be turned off from the user. The second inquiry message can be, for example: "I found that you may not like to start the program directly. Do you need to turn off the voice control function for you?"
[0104] S304: Determine whether the second reply information of the user to the second inquiry information is received; if so, execute S305, if not, the process ends.
[0105] The second reply information indicates that the user agrees to delete the voice instruction library of the user, and the second reply information may be, for example, "Yes, turn off the voice control function". By judging whether the second reply information of the user to the second inquiry information is received, it can be determined whether the current user needs to turn off the voice control function and perform corresponding operations.
[0106] S305: Record the user into a whitelist and delete the user's voice command library.
[0107] Among them, in order to improve the user experience, after deleting the association from the voice instruction library and adding the association to the blacklist, the present application is set to send a second inquiry message to the user, the second inquiry message is used to ask the user whether to delete the user's voice instruction library, that is, to determine whether the voice control function needs to be turned off from the user. The second inquiry message can be, for example: "I found that you may not like to start the program directly, do you need to turn off the voice control function for you?" After receiving the second reply message of the user's reply indicating that the user agrees to delete the user's voice instruction library, for example: "Yes, turn off the voice control function", the user is recorded in the whitelist and the user's voice instruction library is deleted. The whitelist stores a list of users who turn off the voice control function. After sending the first voice instruction, the users in the list do not perform the operation of directly starting the target program, but need to inquire the user to determine the user's needs. Correspondingly, the user's voice instruction library will be deleted and no voice instruction library will be established for it.
[0108] S306: Determine whether the second voice command is received for a second time interval, and whether the maximum interval number of the target program that has not received the second voice command is less than a preset number; if so, execute S307, if not, the process ends.
[0109] Among them, if it is judged based on the first time information and the second time information that the second voice instructions of the first number have not been received continuously, in order to ensure the user experience, it is still necessary to judge whether the second voice instructions of the second number are received at intervals, and the maximum interval number of the target program that has not received the second voice instruction is less than the preset number, so as to determine whether the current user is dissatisfied with directly executing the target program.
[0110] S307: Deleting the association relationship from the voice instruction library when the second number of times is greater than a preset number of times.
[0111] Among them, if the second voice instruction is received for the second time in the current interval, and the maximum interval number of times the target program has not received the second voice instruction is less than the preset number, it is determined that the current user is not satisfied with directly executing the target program, and the association relationship is deleted from the voice instruction library when the second number is greater than the preset number, and the preset number can be, for example, 3 times.
[0112] For example, if the second voice instruction is received 3 times in the current interval, and the maximum interval number of times the target program has not received the second voice instruction is 2 times, it means that when the target program is directly executed according to the user's first voice instruction in the current interval, the user's second voice instruction for canceling or switching the target program is received 3 times at an interval, and the interval for directly executing the target program without receiving the second voice instruction is less than or equal to 2 times, and the maximum interval number is less than the preset number of times 3, it is determined that the current user is not satisfied with the direct execution of the target program, and the association relationship needs to be deleted from the voice instruction library when the second number is greater than the preset number, that is, in this example, the association relationship is deleted from the voice instruction library when the second voice instruction is received for the third time.
[0113] S307: re-accumulate the voice control information corresponding to the association relationship.
[0114] Among them, if the second voice instruction of the second number is received in the current interval, and the maximum interval number of the target program that has not received the second voice instruction is less than the preset number, it is determined that the current user is dissatisfied with the direct execution of the target program, and because the second voice instruction of the first number is not received continuously at present, the association relationship is not added to the blacklist. In order to avoid the situation where the user is dissatisfied with the direct execution of the target program from happening again, the present application re-accumulates the voice control information corresponding to the association relationship, that is, executes S202-S203 to send the first inquiry information to the user to inquire whether the user agrees to execute the target program, and updates the accumulated number of the voice control information and its subsequent steps.
[0115] The voice control method provided in this embodiment determines whether the second voice instruction of the first number is received continuously. If so, the association relationship is deleted from the voice instruction library and the association relationship is added to the blacklist; then, a second inquiry message is sent to the user; it is determined whether the second reply message of the user to the second inquiry message is received, and after receiving the second reply message, the user is recorded in the whitelist and the voice instruction library of the user is deleted. If not, it is determined whether the second voice instruction of the second number is received at intervals, and the maximum interval number of the target program that has not received the second voice instruction is less than the preset number; if so, the association relationship is deleted from the voice instruction library when the second number is greater than the preset number; the voice control information corresponding to the association relationship is re-accumulated. It is realized that the voice control method corresponding to the daily speaking mode of the user is matched and the user's voice instruction library is established, and the voice control function is closed or the voice control information is re-accumulated according to the user's needs to satisfy the user, thereby improving the user's use experience and the working efficiency of the washing and care equipment.
[0116] Figure 4is a schematic diagram of the structure of the voice control device provided by the present invention, such as Figure 5 As shown, the voice control device 50 includes:
[0117] The first acquisition module 51 is used to acquire a first voice command of a user and recognize a voiceprint feature in the first voice command;
[0118] The second acquisition module 52 is used to acquire the voice instruction library of the user according to the voiceprint feature; wherein different users set different voice instruction libraries based on the voiceprint feature, and the voice instruction library is used to store the pre-learned correspondence between the user's voice instructions and the target program;
[0119] Determining module 53: determining whether the first voice instruction exists in the voice instruction library of the user;
[0120] Processing module 54: If the first voice instruction is in the voice instruction library of the user, directly start the target program corresponding to the first voice instruction.
[0121] Optionally, the voice control device further includes: a processing module 55;
[0122] The first acquisition module 51 is further used to, when the first voice instruction is not in the voice instruction library of the user, acquire voice control information, execute the target program, and update the accumulated number of the voice control information, wherein the voice control information includes first inquiry information for inquiring the user whether to execute the target program, and first reply information of the user agreeing to execute the target program;
[0123] The processing module 54 is used to add an association relationship between the first voice instruction and the target program in the voice instruction library of the user when the accumulated number of times of the voice control information reaches a preset number.
[0124] Optionally, the processing module 54 is further configured to, after the target program is started, if a second voice instruction sent by a user is received within a preset time period, and the second voice instruction is used to cancel or switch the target program, execute the second voice instruction and record first time information, wherein the first time information includes the running time of the target program and the reception time of the associated second voice instruction;
[0125] The processing module 54 is further used to determine whether to delete the association between the first voice instruction and the target program in the voice instruction library based on the first time information and the second time information, wherein the second time information includes the running time of the target program that has not received the second voice instruction.
[0126] Optionally, the voice control device further includes: a determination module 56;
[0127] The determination module 56 is used to determine whether to delete the association between the first voice instruction and the target program in the voice instruction library according to the first time information and the second time information, including:
[0128] The determination module 56 is also used to delete the association relationship from the voice instruction library and add the association relationship to a blacklist based on the first time information and the second time information, if it is determined that the second voice instructions for the first number of times are received continuously during multiple target program executions, wherein the association relationships in the blacklist are no longer accumulated and added to the voice instruction library of the user.
[0129] Optionally, the processing module 54 is further used for:
[0130] According to the first time information and the second time information, if it is determined that during multiple target program runs, the second voice instruction is received at an interval of a second number, and the maximum interval number of target programs that have not received the second voice instruction is less than a preset number, then when the second number is greater than the preset number, the association relationship is deleted from the voice instruction library, and the voice control information corresponding to the association relationship is re-accumulated.
[0131] Optionally, the processing module 54 is further used to record the user into a whitelist and delete the user's voice instruction library, wherein the whitelist is used to indicate that the user no longer sets a voice instruction library.
[0132] Optionally, the processing module 54 is further used for:
[0133] Sending a second inquiry message to the user, where the second inquiry message is used to inquire the user whether to delete the voice instruction library of the user;
[0134] Second reply information of the user to the second inquiry information is obtained, where the second reply information indicates that the user agrees to delete the voice instruction library of the user.
[0135] Figure 5 : is a schematic diagram of the structure of a voice control device provided by the present invention, wherein the voice control device comprises:
[0136] at least one processor and memory;
[0137] The memory stores computer-executable instructions;
[0138] The at least one processor executes the computer-executable instructions stored in the memory, so that when the at least one processor executes, the voice control method as described in the first aspect and various possible implementation methods of the first aspect is implemented.
[0139] The present invention also provides a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the voice control method described in any one of the first aspects.
[0140] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A voice control method, characterized in that: The method comprises: Acquire a first voice command of a user and identify a voiceprint feature in the first voice command; According to the voiceprint feature, a voice instruction library of the user is obtained; wherein different users set different voice instruction libraries based on voiceprint features, and the voice instruction library is used to store the pre-learned correspondence between the user's voice instructions and the target program; Determining whether the first voice instruction exists in a voice instruction library of the user; If the first voice instruction is in the voice instruction library of the user, the target program corresponding to the first voice instruction is directly started.
2. The method according to claim 1, characterized in that If the first voice instruction is not in the voice instruction library of the user, the method further includes: Acquire voice control information, execute a target program, and update the accumulated number of the voice control information, wherein the voice control information includes first inquiry information for inquiring a user whether to execute the target program and first reply information indicating that the user agrees to execute the target program; If the accumulated number of times of the voice control information reaches a preset number, an association relationship between the first voice instruction and the target program is added to the voice instruction library of the user.
3. The method according to claim 1, characterized in that After directly starting the target program corresponding to the first voice instruction, the method further includes: After the target program is started, if a second voice command sent by the user is received within a preset time period, and the second voice command is used to cancel or switch the target program, the second voice command is executed, and first time information is recorded, where the first time information includes the running time of the target program and the reception time of the associated second voice command; Determine whether to delete the association between the first voice instruction and the target program in the voice instruction library based on the first time information and the second time information, wherein the second time information includes the running time of the target program that has not received the second voice instruction.
4. The method according to claim 3, characterized in that The determining, according to the first time information and the second time information, whether to delete the association relationship between the first voice instruction and the target program in the voice instruction library includes: According to the first time information and the second time information, if it is determined that the second voice instructions for the first number are received continuously during multiple target program executions, the association relationship is deleted from the voice instruction library and the association relationship is added to a blacklist, wherein the association relationships in the blacklist are no longer accumulated and added to the user's voice instruction library.
5. The method according to claim 3, characterized in that: The method further comprises: According to the first time information and the second time information, if it is determined that during multiple target program runs, the second voice instruction is received at an interval of a second number, and the maximum interval number of target programs that have not received the second voice instruction is less than a preset number, then when the second number is greater than the preset number, the association relationship is deleted from the voice instruction library, and the voice control information corresponding to the association relationship is re-accumulated.
6. The method according to claim 4, characterized in that After adding the association relationship to the blacklist, the method further includes: The user is recorded in a whitelist, and the voice instruction library of the user is deleted, wherein the whitelist is used to indicate that the user no longer sets a voice instruction library.
7. The method according to claim 6, characterized in that Before recording the user into the whitelist, the method further includes: Sending a second inquiry message to the user, where the second inquiry message is used to inquire the user whether to delete the voice instruction library of the user; Second reply information of the user to the second inquiry information is obtained, where the second reply information indicates that the user agrees to delete the voice instruction library of the user.
8. A voice control device, characterized in that: include: A first acquisition module: acquires a first voice command of a user and identifies a voiceprint feature in the first voice command; The second acquisition module: acquires the voice instruction library of the user according to the voiceprint feature; wherein different users set different voice instruction libraries based on voiceprint features, and the voice instruction library is used to store the pre-learned correspondence between the user's voice instructions and the target program; A judgment module: judging whether the first voice instruction exists in the voice instruction library of the user; Processing module: If the first voice instruction is in the voice instruction library of the user, directly start the target program corresponding to the first voice instruction.
9. A voice control device, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the voice control method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are used to implement the voice control method according to any one of claims 1 to 7 when executed by a processor.