Multi-voice instruction processing method and device, equipment and computer storage medium
By receiving and judging the voiceprint information of multiple voice commands in smart home appliances, generating prompt information or determining the target voice command, the problem of recognition errors of the voice interaction system in noisy environments is solved, and the user experience and work efficiency are improved.
Patent Information
- Application Number
- CN202310493923.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for the existing voice interaction system of smart home appliances to accurately recognize multiple voice commands issued in a short period of time in a noisy environment, resulting in command recognition errors or the need to re-enter, which reduces the user experience.
By receiving multiple voice commands, it is judged whether their voiceprint information is consistent. If they are inconsistent, a prompt message is generated for the user to select or resend. If they are consistent, the target voice command is determined and executed.
It improves the speech recognition accuracy and user experience of smart home appliances in noisy environments, avoids command recognition errors, and enhances work efficiency.
Smart Images

Figure CN118865985A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of smart home appliances, and specifically relates to a method, device, equipment and computer storage medium for processing multiple voice commands. Background Art
[0002] The intelligent voice interaction system can communicate with users through voice, machines, terminal products, etc. and get feedback. The system mainly realizes a series of actions such as human-computer dialogue, human-computer interaction, and intelligent judgment and decision-making through key links such as sound collection, voice recognition, natural language understanding, and voice synthesis.
[0003] With the continuous improvement of artificial intelligence technology and the increasing consumer demand, the application of voice interaction technology in the field of artificial intelligence has penetrated into various vertical industries, and more and more smart products equipped with voice interaction systems have emerged on the market. In the existing technology, most smart home appliances have added voice interaction systems, so that users can control smart home appliances through voice commands.
[0004] However, the existing voice interaction system of smart home appliances may have defects such as command recognition errors or require re-entry of commands if the user issues multiple commands in a short period of time in a noisy environment, resulting in a poor user experience. Summary of the invention
[0005] The present application provides a method, device, equipment and computer storage medium for processing multiple voice commands, which are used to solve the problem that in a noisy environment, if a user issues multiple commands in a short period of time, the voice interaction system will have command recognition errors or need to re-enter the commands.
[0006] In a first aspect, the present application provides a method for processing multiple voice commands, comprising:
[0007] receiving a plurality of first voice commands, wherein the plurality of first voice commands include commands received by the smart home appliance within a preset time interval;
[0008] Determining whether the first voiceprint information of the multiple first voice commands is consistent;
[0009] When the first voiceprint information of the multiple first voice commands are inconsistent, generating prompt information, the prompt information is used to instruct the user to select a corresponding voice command or resend the voice command;
[0010] receiving a second voice instruction, and determining a target voice instruction according to the second voice instruction;
[0011] Control the smart home appliance to execute the target voice command.
[0012] Optionally, determining a target voice instruction according to the second voice instruction includes:
[0013] Determining whether the second voice instruction is a selection instruction, wherein the selection instruction is used to instruct selection from multiple first voice instructions;
[0014] If yes, taking the first voice instruction corresponding to the selection instruction as the target voice instruction;
[0015] If not, the second voice instruction is used as the target voice instruction.
[0016] Optionally, the method for processing multiple voice commands further includes:
[0017] When the first voiceprint information of the multiple first voice commands are consistent, determining a target voice command according to the multiple first voice commands;
[0018] Control the smart home appliance to execute the target voice command.
[0019] Optionally, determining a target voice instruction according to the plurality of first voice instructions includes:
[0020] Acquire the reception time of the plurality of first voice commands;
[0021] The target voice instruction is determined according to the reception time of each first voice instruction.
[0022] Optionally, determining whether the first voiceprint information of the multiple first voice commands are consistent includes:
[0023] Determining, according to the multiple first voice commands, first voiceprint information corresponding to each first voice command;
[0024] Determine whether the first voiceprint information of the multiple first voice commands is consistent.
[0025] Optionally, before receiving the plurality of first voice instructions, the method further includes:
[0026] receiving a wake-up instruction, where the wake-up instruction is used to wake up the smart home appliance;
[0027] Obtaining second voiceprint information corresponding to the wake-up instruction;
[0028] Determining whether the second voiceprint information is stored in the storage repository;
[0029] If not, the second voiceprint information is stored in the storage repository, and the second voiceprint information is the same as the first voiceprint information, or the second voiceprint information is different from the first voiceprint information.
[0030] Optionally, after storing the second voiceprint information in the repository, the method further includes:
[0031] Obtaining the storage duration of the second voiceprint information;
[0032] When the storage time length of the second voiceprint information is greater than the preset storage time length, the second voiceprint information is deleted from the storage repository.
[0033] In a second aspect, the present application provides a multi-voice instruction processing device, comprising:
[0034] A receiving module, configured to receive a plurality of first voice commands, wherein the plurality of first voice commands include commands received by the smart home appliance within a preset time interval;
[0035] A determination module, used to determine whether the first voiceprint information of the plurality of first voice commands is consistent;
[0036] A generating module, configured to generate prompt information when the first voiceprint information of the plurality of first voice commands are inconsistent, wherein the prompt information is used to instruct the user to select a corresponding voice command or to resend the voice command;
[0037] The receiving module is further used to receive a second voice instruction;
[0038] A determination module, configured to determine a target voice instruction according to the second voice instruction;
[0039] A control module is used to control the smart home appliance to execute the target voice command.
[0040] Optionally, the judging module is further used to judge whether the second voice instruction is a selection instruction, and the selection instruction is used to instruct to select from multiple first voice instructions;
[0041] The determining module is further configured to use the first voice instruction corresponding to the selection instruction as the target voice instruction when the second voice instruction is a selection instruction.
[0042] The determination module is further configured to use the second voice instruction as the target voice instruction when the second voice instruction is not a selection instruction.
[0043] Optionally, the determination module is specifically configured to determine a target voice instruction according to the multiple first voice instructions when the first voiceprint information of the multiple first voice instructions are consistent.
[0044] Optionally, the device for processing multiple voice commands further includes: an acquisition module.
[0045] The acquisition module is used to acquire the reception time of the multiple first voice instructions.
[0046] The determination module is specifically configured to determine the target voice instruction according to the reception time of each first voice instruction.
[0047] Optionally, the determination module is further used to determine the first voiceprint information corresponding to each first voice instruction based on the multiple first voice instructions.
[0048] Optionally, the receiving module is further used to receive a wake-up instruction, and the wake-up instruction is used to wake up the smart home appliance.
[0049] The acquisition module is further used to acquire the second voiceprint information corresponding to the wake-up instruction.
[0050] The determination module is further configured to determine whether the second voiceprint information is stored in the storage repository.
[0051] The multi-voice instruction processing device further includes: a storage module.
[0052] The storage module is used to store the second voiceprint information in the storage library when the second voiceprint information is not stored in the storage library, and the second voiceprint information is the same as the first voiceprint information, or the second voiceprint information is different from the first voiceprint information.
[0053] Optionally, the acquisition module is further used to obtain the storage duration of the second voiceprint information.
[0054] The multi-voice instruction processing device further includes: a deletion module.
[0055] The deleting module is used to delete the second voiceprint information from the storage repository when the storage time of the second voiceprint information is greater than a preset storage time.
[0056] In a third aspect, the present application provides a multi-voice instruction processing device, comprising:
[0057] Memory;
[0058] processor;
[0059] Wherein, the memory stores computer-executable instructions;
[0060] The processor executes the computer-executable instructions stored in the memory to implement the method for processing multi-voice instructions as described in the first aspect and various possible implementations of the first aspect.
[0061] In a fourth aspect, the present application provides a computer storage medium having computer execution instructions stored thereon, wherein the computer execution instructions are executed by a processor to implement the method for processing multi-voice instructions as described in the first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] 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.
[0063] Figure 1 It is a scenario diagram of the method for processing multiple voice commands provided by the present application;
[0064] Figure 2 This is the process of the multi-voice instruction processing method provided by this application Figure 1 ;
[0065] Figure 3 This is the process of the multi-voice instruction processing method provided by this application Figure 2 ;
[0066] Figure 4 It is a structural schematic diagram of a multi-voice instruction processing device provided by the present application;
[0067] Figure 5 It is a structural diagram of a multi-voice instruction processing device provided in this application.
[0068] 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
[0069] 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.
[0070] 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.
[0071] 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.
[0072] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0073] The intelligent voice interaction system can communicate with users through voice, machines, terminal products, etc. and get feedback. The system mainly realizes a series of actions such as human-computer dialogue, human-computer interaction, and intelligent judgment and decision-making through key links such as sound collection, voice recognition, natural language understanding, and voice synthesis.
[0074] With the continuous improvement of artificial intelligence technology and the increasing consumer demand, the application of voice interaction technology in the field of artificial intelligence has penetrated into various vertical industries, and more and more smart products equipped with voice interaction systems have emerged on the market. In the existing technology, most smart home appliances have added voice interaction systems, so that users can control smart home appliances through voice commands.
[0075] However, the existing voice interaction system of smart home appliances may have defects such as command recognition errors or require re-entry of commands if the user issues multiple commands in a short period of time in a noisy environment, resulting in a poor user experience.
[0076] In order to solve the above problems, the present application provides a method for processing multiple voice commands. Figure 1 It is a scenario diagram of the method for processing multiple voice commands provided in this application. Figure 1 The smart home appliance has a voice interaction module, which is used to receive voice data sent by the user and parse and process the received voice data so that the smart home appliance executes a corresponding processing program according to the voice data sent by the user.
[0077] Figure 1 a is a schematic diagram of a scenario in which the smart home appliance 1 interacts with a single user through voice. Figure 1As shown in Figure a, a single user can send a voice command to the smart home appliance 1, and the smart home appliance 1 receives the voice command and executes a corresponding processing program according to the received voice command.
[0078] Figure 1 b is a schematic diagram of a scenario in which the smart home appliance 1 interacts with multiple users through voice. Figure 1 As shown in FIG. 2 , the smart home appliance 1 can receive a voice command sent by a user, wherein the number of users can be multiple. The smart home appliance 1 can also determine the user information sending the voice command through the voiceprint information of the received voice command.
[0079] The multi-voice instructions described in the present application may be, for example, multiple voice instructions sent by a single user, or multiple voice instructions sent by multiple users. Figure 1 The smart home appliance 1 shown in the figure may be, for example, a smart laundry machine, a smart drying machine, a smart air conditioner, a smart TV, a smart refrigerator, etc. This application does not impose any limitation on this.
[0080] The method for processing multiple voice commands provided in the present application receives multiple first voice commands, identifies whether the voiceprint information of the multiple first voice commands received is consistent; if so, prompts the user to select the corresponding voice command or resend the voice command; if not, executes the last voice command received; thereby determining the target voice command that the smart home appliance should execute; and controls the smart home appliance to execute the target voice command. The method can process multiple voice commands received in a short period of time, avoiding the defects of command recognition errors or the need to re-enter commands in the prior art, improving the working efficiency and voice recognition of smart home appliances, and also improving user experience.
[0081] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0082] Figure 2 The process of the method for processing multiple voice commands provided in the embodiment of the present application Figure 1 The execution subject of this embodiment may be, for example, a control device of a smart home appliance. Figure 2 As shown, the method for processing multiple voice commands provided in this embodiment includes:
[0083] S201: Receive multiple first voice commands, where the multiple first voice commands include commands received by the smart home appliance within a preset time interval.
[0084] The first voice command refers to a voice command received by the smart appliance from the user within a preset time interval, and the voice command needs to be executed by the current smart appliance. Multiple first voice commands can be sent by one user or multiple users. The preset time interval refers to the minimum time period for the smart appliance to receive multiple voice commands. The preset time interval can be, for example, 3 seconds.
[0085] For example, within 3 seconds after receiving the first voice command, the smart home appliance receives at least one more first voice command.
[0086] S202: Determine whether the first voiceprint information of the multiple first voice commands is consistent.
[0087] Among them, the first voiceprint information refers to the voiceprint characteristics corresponding to multiple first voice commands received by the smart home appliance.
[0088] According to the received multiple first voice instructions, the voiceprint characteristics of each first voice instruction are extracted, and all the voiceprint characteristics are compared to identify whether the user information of each first voice instruction is consistent.
[0089] For example, when the voice interaction module of a smart home appliance receives three first voice commands from one user within three seconds, the voiceprint characteristics of the received first voice commands are extracted respectively, and it can be obtained that the voiceprint characteristics of the three first voice commands are consistent, that is, the smart home appliance can obtain that the user who issued the three first voice commands is the same person. When the voice interaction module of a smart home appliance receives three first voice commands from three users within three seconds, the voice print characteristics of the received first voice commands are extracted respectively, and it can be obtained that the voiceprint characteristics of the three first voice commands are inconsistent, that is, the smart home appliance can obtain that the users who issued the three first voice commands are different.
[0090] S203: When the first voiceprint information of the multiple first voice commands are inconsistent, generating prompt information, wherein the prompt information is used to instruct the user to select a corresponding voice command or resend the voice command.
[0091] When the voiceprint information of multiple first voice commands received is inconsistent, the smart home appliance sends a prompt message to the user, and the prompt message includes the execution content corresponding to all the first voice commands obtained by the smart home appliance at that time, prompting the user to select the voice command that needs to be executed at that time; if the prompt message sent by the smart home appliance does not include the execution content required by the user, the user is prompted to resend the voice command, and the smart home appliance executes the voice command at that time.
[0092] For example, the smart home appliance receives three first voice commands respectively issued by three users through the voice interaction module, and the first voiceprint information of these three first voice commands are inconsistent. These three voice commands can be, for example: User A: "Select the mixed washing mode"; User B: "Wait, let's go for the quick wash mode"; User C: "Don't worry, turn off the washing mode, there is still a piece of clothing." According to the command content that the smart home appliance needs to execute in the three voice commands, a prompt message is generated to prompt the user to make a selection, and the method of prompting the user can be prompted by the voice interaction module.
[0093] Optionally, when the first voiceprint information of the multiple first voice instructions are consistent, the target voice instruction is determined according to the multiple first voice instructions.
[0094] Among them, the target voice command refers to the voice command determined to be executed by the smart home appliance.
[0095] When the voiceprint information of multiple first voice commands received is consistent, it can be obtained that all the first voice commands obtained by the smart home appliance at that time are issued by the same user. Therefore, the smart home appliance autonomously screens the multiple first voice commands obtained and determines the first voice command to be executed as the target voice command.
[0096] For example, the smart home appliance receives three first voice commands from the same user through the voice interaction module, and the first voiceprint information of these three first voice commands is consistent. These three voice commands can be, for example: "Select the mixed washing mode and wash for 40 minutes", "Let's go for 30 minutes", "Will the effect be better if the gentle mode is used for 30 minutes?" The smart home appliance can autonomously determine the first voice command to be executed at that time from the three voice commands obtained.
[0097] S204: Receive a second voice instruction, and determine a target voice instruction according to the second voice instruction.
[0098] Among them, the second voice command refers to the feedback information given by the user after the smart home appliance prompts the user to make a selection.
[0099] According to the prompt information generated by the smart home appliance, after prompting the user to make a selection, a second voice instruction issued by the user is received, and the smart home appliance determines the second voice instruction as the target voice instruction.
[0100] For example, the smart home appliance receives three first voice commands issued by three users respectively through the voice interaction module, and prompts the users to make a selection. These three voice commands may be, for example: User A: "Select the mixed washing mode"; User B: "Wait, let's go for the quick wash mode"; User C: "Don't worry, turn off the washing mode, there is still one piece of clothing". When the user chooses to execute the "mixed washing mode", the smart home appliance receives the feedback information and determines the first voice command issued by user A as the target voice command; when the user re-issues the command, the smart home appliance obtains the second voice command fed back by user A: "Switch to quick wash mode", and determines the second voice command re-issued by user A as the target voice command.
[0101] S205: Control the smart home appliance to execute the target voice command.
[0102] By acquiring the target voice command, the smart home appliance executes the content required to be executed in the target voice command.
[0103] For example, when the target voice command acquired by the smart home appliance is "switch to quick wash mode", the smart home appliance is controlled to switch to the quick wash program.
[0104] The method for processing multiple voice commands provided in this embodiment receives multiple first voice commands, wherein the multiple first voice commands include commands received by the smart home appliance within a preset time interval; determines whether the first voiceprint information of the multiple first voice commands is consistent; generates prompt information when the first voiceprint information of the multiple first voice commands is inconsistent, and the prompt information is used to instruct the user to select the corresponding voice command or resend the voice command; receives a second voice command, and determines a target voice command according to the second voice command; and controls the smart home appliance to execute the target voice command. This method can process multiple voice commands received in a short period of time, improve the working efficiency and voice recognition of smart home appliances, and also improve user experience.
[0105] Figure 3 The process of the method for processing multiple voice commands provided in the embodiment of the present application Figure 2 .like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, the processing method of multiple voice commands is described in detail. This embodiment shows the processing method of multiple voice commands, including:
[0106] S301: Receive multiple first voice commands, where the multiple first voice commands include commands received by the smart home appliance within a preset time interval.
[0107] Step S301 is similar to the above step S201 and will not be described again.
[0108] S302: Determine first voiceprint information corresponding to each first voice command according to the multiple first voice commands.
[0109] Based on multiple first voice commands obtained by the smart home appliance, the voiceprint characteristics of each first voice command are extracted. The voiceprint characteristics are the basis for distinguishing the issuers of different first voice commands, so that the first voiceprint information corresponding to each first voice command can be determined, and the user information that issues each first voice command can be obtained.
[0110] S303: Determine whether the first voiceprint information of the multiple first voice commands is consistent; if so, execute step S304; if not, execute step S309.
[0111] If the first voiceprint information of multiple first voice commands is inconsistent, the command information that the smart home appliance needs to execute is extracted from the received multiple first voice commands, and corresponding prompt information is generated to prompt the user to confirm the command information that the smart home appliance needs to execute at that time.
[0112] If the first voiceprint information of multiple first voice commands is consistent, the smart home appliance can autonomously filter the voice commands that need to be executed.
[0113] S304: When the first voiceprint information of the multiple first voice instructions are inconsistent, generate prompt information, where the prompt information is used to instruct the user to select a corresponding voice instruction or resend the voice instruction.
[0114] Step S304 is similar to the above step S203 and will not be described again.
[0115] S305: Receive a second voice instruction.
[0116] When the first voiceprint information of the multiple first voice commands are inconsistent, user feedback information is obtained through voice interaction according to the prompt information generated by the smart home appliance, and the feedback information is the second voice command.
[0117] It is understandable that the user feedback information obtained by the smart home appliance may be from the user who issued the first voice command, or may not be from the user who issued the first voice command.
[0118] S306: Determine whether the second voice instruction is a selection instruction, where the selection instruction is used to instruct selection from multiple first voice instructions; if so, execute step S307; if not, execute step S308.
[0119] According to the user's feedback information, the smart home appliance obtains a second voice command issued by the user, and compares the second voice command with multiple first voice commands.
[0120] If the second voice command is one of the multiple first voice commands obtained by the smart home appliance, then the second voice command is the selection command; the first voice command corresponding to the selection command is obtained, and the first voice command is used as the target voice command.
[0121] If the second voice command is not one of the multiple first voice commands acquired by the smart home appliance, the second voice command can be directly used as the target voice command.
[0122] For example, the three first voice commands received by the smart appliance may be: User A: "Select the mixed washing mode"; User B: "Wait, let's go with the quick wash mode"; User C: "Don't worry, turn off the washing mode, there is still a piece of clothing to be washed."
[0123] When the second voice command received by the smart home appliance is: "Switch to quick wash mode", this voice command is consistent with the "Wait, let's go to quick wash mode" command issued by user B among the three first voice commands received. Then the second voice command obtained at this time is the selection command, and the first voice command issued by user B corresponding to the selection command is determined as the voice command finally executed by the smart home appliance.
[0124] When the second voice instruction received by the smart home appliance is: "Restart", this voice instruction is inconsistent with the three first voice instructions received. Then the second voice instruction obtained at this time can be directly determined as the voice instruction finally executed by the smart home appliance.
[0125] S307: Using the first voice instruction corresponding to the selection instruction as the target voice instruction.
[0126] S308: Using the second voice instruction as the target voice instruction.
[0127] S309: When the first voiceprint information of the multiple first voice instructions are consistent, obtaining the reception time of the multiple first voice instructions.
[0128] When the first voiceprint information of multiple first voice commands received by the smart home appliance is consistent, it can be obtained that the multiple first voice commands received at the time are all issued by the same user. At this time, the receiving time corresponding to each first voice command is obtained respectively.
[0129] The first voice command and receiving time of the same user obtained by the smart home appliance may be, for example: D1 is "select mixed washing mode, wash for 40 minutes", and the receiving time is 10 o'clock; D2 is "still 30 minutes", and the receiving time is 10:01; D3 is "will the effect be better if the gentle mode is washed for 30 minutes", and the receiving time is 10:01:30. At this time, the order of the three first voice commands is: D1: "select mixed washing mode, wash for 40 minutes", D2: "still 30 minutes", D3: "will the effect be better if the gentle mode is washed for 30 minutes".
[0130] S310: Determine the target voice instruction according to the reception time of each first voice instruction.
[0131] The smart home appliance can determine the sequence of the received multiple first voice commands according to the receiving time of each received first voice command, and determine the last acquired first voice command as the target voice command according to the obtained sequence.
[0132] For example, the first voice command and the receiving time of the same user acquired by the smart home appliance may be: D1 is "select the mixed washing mode and wash for 40 minutes", and the receiving time is 10 o'clock; D2 is "still 30 minutes", and the receiving time is 10:01; D3 is "will the effect be better if the gentle mode is washed for 30 minutes", and the receiving time is 10:01:30. Then, the smart home appliance determines the D3 voice command as the target voice command.
[0133] S311: Control the smart home appliance to execute the target voice command.
[0134] Step S311 is similar to the above step S205 and will not be described again.
[0135] The method for processing multiple voice commands provided in this embodiment receives multiple first voice commands, wherein the multiple first voice commands include commands received by a smart home appliance within a preset time interval; determines the first voiceprint information corresponding to each first voice command according to the multiple first voice commands; determines whether the first voiceprint information of the multiple first voice commands is consistent; generates prompt information when the first voiceprint information of the multiple first voice commands is inconsistent, and the prompt information is used to instruct the user to select the corresponding voice command or resend the voice command; receives a second voice command, and determines the target voice command according to the second voice command; obtains the receiving time of the multiple first voice commands when the first voiceprint information of the multiple first voice commands is consistent; determines the target voice command according to the receiving time of each first voice command; and controls the smart home appliance to execute the target voice command. The method can identify the voiceprint information of multiple voice commands received in a short time, improves the working efficiency and voice recognition of smart home appliances, and also improves the user experience.
[0136] Optional, in the above Figure 1 Examples and Figure 2 Based on the embodiment, the user's voiceprint information can also be stored, and the specific implementation method is as follows:
[0137] Receive a wake-up instruction, where the wake-up instruction is used to wake up the smart home appliance; obtain second voiceprint information corresponding to the wake-up instruction; determine whether the second voiceprint information is stored in a storage repository; if not, store the second voiceprint information in the storage repository, where the second voiceprint information is the same as the first voiceprint information, or the second voiceprint information is different from the first voiceprint information.
[0138] The second voiceprint information refers to the voiceprint characteristics corresponding to the wake-up instruction received by the smart home appliance. The repository refers to a database in the smart home appliance that stores the acquired voiceprint information.
[0139] It is understandable that before the smart home appliance receives the multiple first voice commands, the smart home appliance receives a wake-up command issued by the user, so that the smart home appliance is in a wake-up state, so as to better recognize and receive the voice commands issued by the user.
[0140] After the smart home appliance receives the wake-up command, it obtains the voiceprint information of the wake-up command, that is, the second voiceprint information, and compares the second voiceprint information with the existing voiceprint information in the storage library. If there is no consistent voiceprint information, the second voiceprint information is stored in the storage library.
[0141] Optional, in the above Figure 1 Examples and Figure 2 Based on the embodiment, the stored voiceprint information can also be updated. The specific implementation method is as follows:
[0142] Obtaining the storage time length of the second voiceprint information; when the storage time length of the second voiceprint information is greater than a preset storage time length, deleting the second voiceprint information from the storage repository.
[0143] The storage duration refers to the length of time the second voiceprint information is stored in the storage repository. The preset storage duration refers to the maximum time that each voiceprint information in the storage repository can be saved without re-storing.
[0144] When there is voiceprint information consistent with the second voiceprint information in the storage repository, the storage duration of the second voiceprint information is judged against the preset storage duration. If the storage duration is greater than the preset storage duration, the smart home appliance deletes the second voiceprint information stored in the storage repository.
[0145] Figure 4 This is a schematic diagram of the structure of a device for processing multiple voice commands provided in an embodiment of the present application. Figure 4 As shown, the present application provides a multi-voice instruction processing device, and the multi-voice instruction processing device 300 includes:
[0146] The receiving module 301 is used to receive multiple first voice instructions, where the multiple first voice instructions include instructions received by the smart home appliance within a preset time interval.
[0147] The judgment module 302 is used to judge whether the first voiceprint information of the multiple first voice commands is consistent.
[0148] The generating module 303 is used to generate prompt information when the first voiceprint information of the multiple first voice instructions are inconsistent, and the prompt information is used to instruct the user to select a corresponding voice instruction or resend the voice instruction.
[0149] The receiving module 301 is further configured to receive a second voice instruction.
[0150] The determination module 304 is configured to determine a target voice instruction according to the second voice instruction.
[0151] The control module 305 is used to control the smart home appliance to execute the target voice command.
[0152] Optionally, the judging module 302 is further configured to judge whether the second voice instruction is a selection instruction, wherein the selection instruction is used to instruct selection from a plurality of first voice instructions;
[0153] The determining module 304 is further configured to use the first voice instruction corresponding to the selection instruction as the target voice instruction when the second voice instruction is a selection instruction.
[0154] The determining module 304 is further configured to use the second voice instruction as the target voice instruction when the second voice instruction is not a selection instruction.
[0155] Optionally, the determination module 304 is specifically configured to determine a target voice instruction according to the multiple first voice instructions when the first voiceprint information of the multiple first voice instructions are consistent.
[0156] Optionally, the device for processing multiple voice commands further includes: an acquisition module 306 .
[0157] The acquisition module 306 is used to acquire the reception time of the multiple first voice instructions.
[0158] The determination module 304 is specifically configured to determine the target voice instruction according to the reception time of each first voice instruction.
[0159] Optionally, the determination module 304 is further configured to determine, according to the multiple first voice instructions, first voiceprint information corresponding to each first voice instruction.
[0160] Optionally, the receiving module 301 is further used to receive a wake-up instruction, and the wake-up instruction is used to wake up the smart home appliance.
[0161] The acquisition module 306 is further configured to acquire second voiceprint information corresponding to the wake-up instruction.
[0162] The determining module 302 is further configured to determine whether the second voiceprint information is stored in the storage repository.
[0163] The multi-voice instruction processing device further includes: a storage module 307 .
[0164] The storage module 307 is used to store the second voiceprint information in the storage repository when the second voiceprint information is not stored in the storage repository, and the second voiceprint information is the same as the first voiceprint information, or the second voiceprint information is different from the first voiceprint information.
[0165] Optionally, the acquisition module 306 is further configured to acquire the storage duration of the second voiceprint information.
[0166] The apparatus for processing multiple voice commands further includes: a deletion module 308 .
[0167] The deleting module 308 is configured to delete the second voiceprint information from the storage repository when the storage time of the second voiceprint information is greater than a preset storage time.
[0168] Figure 5 A schematic diagram of the structure of a multi-voice instruction processing device provided in an embodiment of the present application. Figure 5 As shown, the present application provides a multi-voice instruction processing device, and the multi-voice instruction processing device 400 includes: a receiver 401, a transmitter 402, a processor 403 and a memory 404.
[0169] Receiver 401, used for receiving instructions and data;
[0170] A transmitter 402, used for sending instructions and data;
[0171] Memory 404, for storing computer-executable instructions;
[0172] The processor 403 is used to execute the computer-executable instructions stored in the memory 404 to implement the various steps executed by the method for processing multiple voice commands in the above embodiment. For details, please refer to the relevant description in the above embodiment of the method for processing multiple voice commands.
[0173] Optionally, the memory 404 may be independent or integrated with the processor 403 .
[0174] When the memory 404 is independently provided, the electronic device further includes a bus for connecting the memory 404 and the processor 403 .
[0175] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a method for processing multiple voice instructions executed by the processing device of the multiple voice instructions as described above is implemented.
[0176] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0177] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application 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 application.
Claims
1. A method for processing multiple voice commands, characterized in that: The method comprises: receiving a plurality of first voice commands, wherein the plurality of first voice commands include commands received by the smart home appliance within a preset time interval; Determining whether the first voiceprint information of the multiple first voice commands is consistent; When the first voiceprint information of the multiple first voice commands are inconsistent, generating prompt information, the prompt information is used to instruct the user to select a corresponding voice command or resend the voice command; receiving a second voice instruction, and determining a target voice instruction according to the second voice instruction; Control the smart home appliance to execute the target voice command.
2. The method according to claim 1, characterized in that The determining the target voice instruction according to the second voice instruction comprises: Determining whether the second voice instruction is a selection instruction, wherein the selection instruction is used to instruct selection from multiple first voice instructions; If yes, taking the first voice instruction corresponding to the selection instruction as the target voice instruction; If not, the second voice instruction is used as the target voice instruction.
3. The method according to claim 1, characterized in that The method further comprises: When the first voiceprint information of the multiple first voice commands are consistent, determining a target voice command according to the multiple first voice commands; Control the smart home appliance to execute the target voice command.
4. The method according to claim 3, characterized in that The step of determining a target voice instruction according to the plurality of first voice instructions comprises: Acquire the reception time of the plurality of first voice commands; The target voice instruction is determined according to the reception time of each first voice instruction.
5. The method according to claim 1, characterized in that The determining whether the first voiceprint information of the plurality of first voice commands is consistent includes: Determining, according to the multiple first voice commands, first voiceprint information corresponding to each first voice command; Determine whether the first voiceprint information of the multiple first voice commands is consistent.
6. The method according to claim 1, characterized in that Before receiving the plurality of first voice instructions, the method further includes: receiving a wake-up instruction, where the wake-up instruction is used to wake up the smart home appliance; Obtaining second voiceprint information corresponding to the wake-up instruction; Determining whether the second voiceprint information is stored in the storage repository; If not, the second voiceprint information is stored in the storage repository, and the second voiceprint information is the same as the first voiceprint information, or the second voiceprint information is different from the first voiceprint information.
7. The method according to claim 6, characterized in that After storing the second voiceprint information in the storage repository, the method further includes: Obtaining the storage duration of the second voiceprint information; When the storage time length of the second voiceprint information is greater than the preset storage time length, the second voiceprint information is deleted from the storage repository.
8. A device for processing multiple voice commands, characterized in that: include: A receiving module, configured to receive a plurality of first voice commands, wherein the plurality of first voice commands include commands received by the smart home appliance within a preset time interval; A determination module, used to determine whether the first voiceprint information of the plurality of first voice commands is consistent; A generating module, configured to generate prompt information when the first voiceprint information of the plurality of first voice commands are inconsistent, wherein the prompt information is used to instruct the user to select a corresponding voice command or to resend the voice command; The receiving module is further used to receive a second voice instruction; A determination module, configured to determine a target voice instruction according to the second voice instruction; A control module is used to control the smart home appliance to execute the target voice command.
9. A device for processing multiple voice commands, 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 method for processing multi-voice instructions as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which, when executed by a processor, are used to implement the method for processing multi-voice instructions as described in any one of claims 1 to 7.
