Voice interaction method and related device

By determining the baseline voice interaction instructions of a specific user in the smart device and extracting the target voice control instructions, the problem of smart devices misunderstanding or incorrectly executing voice instructions in complex environments is solved, and the accuracy and efficiency of voice interaction are improved.

CN118748017APending Publication Date: 2024-10-08HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411165751.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

It is difficult for smart devices to accurately recognize and execute the user's voice control instructions in complex environments, resulting in poor voice interaction effects. Especially when multiple people are talking, the device may misunderstand or mistakenly execute instructions.

Method used

By obtaining the voice information of multiple users, the baseline voice interaction instructions of a specific user are determined, and based on the instructions, the target voice control instructions are extracted from the voice interaction data to be processed to ensure that only the instructions of the same user are executed.

Benefits of technology

It improves the accuracy and efficiency of voice interaction after the smart device is awakened, ensures that only effective voice control instructions issued by the awakening person are executed, and improves the effect of voice interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748017A_ABST
    Figure CN118748017A_ABST
Patent Text Reader

Abstract

The invention discloses a voice interaction method and a related device, and relates to the technical field of voice processing, and the method comprises the steps: obtaining to-be-processed voice interaction data containing the voice information of a plurality of users, determining a voice interaction instruction of a specific user as a reference voice interaction instruction, and carrying out the voice interaction according to the reference voice interaction instruction, and determining a target voice control instruction consistent with the user corresponding to the reference voice interaction instruction from the to-be-processed voice interaction data, and finally executing the target voice control instruction. According to the scheme, only the instruction of the same user can be executed, on the basis, if the intelligent equipment is awakened, the effective voice control instruction sent by the awakening person can be accurately obtained and executed on the basis of the scheme, and the voice interaction effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech processing technology, and in particular to a speech interaction method and related devices. Background Art

[0002] At present, the voice interaction method used by smart devices (such as robots, mobile phones, wearable devices, smart home devices, car-mounted devices, etc.) is usually based on voice wake-up (KWS, Key Word Spotting). For example, the user simultaneously sends a wake-up word and a voice control command (such as "Xiao A + open the window", "Xiao B + turn on the air conditioner", "Xiao C + play music ××", etc.) to wake up the smart device, and the smart device immediately executes the voice control command after being awakened. In addition, in order to improve the efficiency of voice interaction, after the smart device is awakened, the awakened state can be maintained for a period of time in order to receive and process continuous voice control commands issued by the user, until the user explicitly ends the voice interaction, or the smart device times out without receiving a new voice control command.

[0003] In real application scenarios, the environment in which smart devices are located is often complex. When a user issues a voice control command to the device, other people may be speaking at the same time, causing the voice control command to be mixed with the sound of other people's speech, causing the device to execute the voice control command incorrectly. Alternatively, the user does not issue a voice control command to the device, but because the device has been awakened, it mistakenly believes that the speech of other people is the voice control command issued by the user, which will also cause the device to execute the voice control command incorrectly, resulting in poor voice interaction effects.

[0004] Therefore, how to provide a voice interaction method so that after being awakened, the smart device can accurately obtain effective voice control instructions issued by the awakener and improve the effect of voice interaction has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] In view of the above problems, the present application provides a voice interaction method and related devices to achieve the purpose of enabling the smart device to accurately obtain effective voice control instructions issued by the wake-up person after being awakened, thereby improving the effect of voice interaction. The specific scheme is as follows:

[0006] The first aspect of the present application provides a voice interaction method, comprising:

[0007] Acquire voice interaction data to be processed, wherein the voice interaction data to be processed includes voice information of multiple users;

[0008] Determining a reference voice interaction instruction, wherein the reference voice interaction instruction refers to a voice interaction instruction of a specific user;

[0009] According to the reference voice interaction instruction, determining a target voice control instruction from the voice interaction data to be processed, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user;

[0010] Execute the target voice control instruction.

[0011] In a possible implementation, if the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, then determining the reference voice interaction instruction includes:

[0012] Get the pre-stored wake-up word;

[0013] Extracting a wake-up instruction from the voice interaction data to be processed based on the wake-up word;

[0014] The wake-up instruction is used as the reference voice interaction instruction.

[0015] In a possible implementation, after determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, the method further includes:

[0016] The target voice control instruction is stored.

[0017] In a possible implementation, after extracting the wake-up instruction from the voice interaction data to be processed based on the wake-up word, the method further includes:

[0018] The wake-up instruction is stored.

[0019] In a possible implementation, if the voice interaction data to be processed is not the first voice interaction data to be processed in the current voice interaction process, then determining the reference voice interaction instruction includes:

[0020] Obtaining a pre-stored wake-up instruction, and / or a pre-stored historical target voice control instruction;

[0021] The wake-up instruction and / or the pre-stored historical target voice control instruction are used as the reference voice interaction instruction.

[0022] In a possible implementation, determining a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction includes:

[0023] Determining benchmark user attribute information according to the benchmark voice interaction instruction;

[0024] Extracting at least one user attribute information from the voice interaction data to be processed, wherein the voice interaction data to be processed includes voice interaction data of at least one user corresponding to the at least one user attribute information;

[0025] Determining target user attribute information matching the reference user attribute information from the at least one user attribute information;

[0026] A voice interaction data segment corresponding to the target user attribute information is determined from the voice interaction data to be processed as a target voice control instruction.

[0027] In a possible implementation, determining the benchmark user attribute information according to the benchmark voice interaction instruction includes:

[0028] Determine the audio features of the benchmark voice interaction instruction and / or the user identity information as benchmark user attribute information.

[0029] A second aspect of the present application provides a voice interaction device, comprising:

[0030] An acquisition unit, configured to acquire voice interaction data to be processed, wherein the voice interaction data to be processed includes voice information of multiple users;

[0031] A reference voice interaction instruction determining unit, used to determine a reference voice interaction instruction, wherein the reference voice interaction instruction refers to a voice interaction instruction of a specific user;

[0032] a target voice control instruction determining unit, configured to determine a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user;

[0033] An execution unit is used to execute the target voice control instruction.

[0034] In a possible implementation, the reference voice interaction instruction determination unit is specifically configured to:

[0035] If the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, obtain a pre-stored wake-up word; extract a wake-up instruction from the voice interaction data to be processed based on the wake-up word; and use the wake-up instruction as the benchmark voice interaction instruction.

[0036] In a possible implementation, the device further includes:

[0037] The target voice control instruction storage unit is used to store the target voice control instruction after determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction.

[0038] In a possible implementation, the device further includes:

[0039] A wake-up instruction storage unit is used to store the wake-up instruction after extracting the wake-up instruction from the voice interaction data to be processed based on the wake-up word.

[0040] In a possible implementation, the reference voice interaction instruction determination unit is specifically configured to:

[0041] If the voice interaction data to be processed is not the first voice interaction data to be processed in the current voice interaction process, obtain a pre-stored wake-up instruction, and / or a pre-stored historical target voice control instruction; and use the wake-up instruction, and / or the pre-stored historical target voice control instruction as the benchmark voice interaction instruction.

[0042] In a possible implementation, the target voice control instruction determination unit includes:

[0043] A reference user attribute information determination unit, configured to determine reference user attribute information according to the reference voice interaction instruction;

[0044] An extraction unit, configured to extract at least one user attribute information from the voice interaction data to be processed, wherein the voice interaction data to be processed includes voice interaction data of at least one user corresponding to the at least one user attribute information;

[0045] a target user attribute information determining unit, configured to determine target user attribute information matching the reference user attribute information from the at least one user attribute information;

[0046] The target voice control instruction determination subunit is used to determine a voice interaction data segment corresponding to the target user attribute information from the voice interaction data to be processed as a target voice control instruction.

[0047] In a possible implementation, the reference user attribute information determining unit is specifically configured to:

[0048] Determine the audio features of the benchmark voice interaction instruction and / or the user identity information as benchmark user attribute information.

[0049] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the voice interaction method of the above-mentioned first aspect or any implementation manner of the first aspect.

[0050] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0051] The memory is used to store computer programs;

[0052] The processor is used to execute the computer program so that the electronic device can implement the voice interaction method of the above-mentioned first aspect or any implementation manner of the first aspect.

[0053] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the voice interaction method of the above-mentioned first aspect or any implementation of the first aspect.

[0054] By means of the above technical solution, the voice interaction method and related device provided by the present application, after obtaining the voice interaction data to be processed containing the voice information of multiple users, first determine the voice interaction instruction of a specific user as the reference voice interaction instruction, then determine the target voice control instruction consistent with the user corresponding to the reference voice interaction instruction from the voice interaction data to be processed according to the reference voice interaction instruction, and finally execute the target voice control instruction. This solution can realize the execution of only the instructions of the same user. Based on this, if the smart device can accurately obtain and execute the effective voice control instructions issued by the wake-up person based on this solution after being awakened, the effect of voice interaction is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0056] Figure 1 A flowchart of a voice interaction method provided in an embodiment of the present application;

[0057] Figure 2 A flowchart of a method for determining a reference voice interaction instruction provided in an embodiment of the present application;

[0058] Figure 3 A flowchart of a method for determining a reference voice interaction instruction provided in an embodiment of the present application;

[0059] Figure 4 A flowchart of a method for determining a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction provided in an embodiment of the present application;

[0060] Figure 5 A schematic diagram of the structure of a voice interaction device provided in an embodiment of the present application;

[0061] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0063] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0064] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0065] At present, the voice interaction method used by smart devices (such as robots, mobile phones, wearable devices, smart home devices, car-mounted devices, etc.) is usually based on voice wake-up (KWS, Key Word Spotting). For example, the user simultaneously sends a wake-up word and a voice control command (such as "Xiao A + open the window", "Xiao B + turn on the air conditioner", "Xiao C + play music ××", etc.) to wake up the smart device, and the smart device immediately executes the voice control command after being awakened. In addition, in order to improve the efficiency of voice interaction, after the smart device is awakened, the awakened state can be maintained for a period of time in order to receive and process continuous voice control commands issued by the user, until the user explicitly ends the voice interaction, or the smart device times out without receiving a new voice control command.

[0066] In real application scenarios, the environment in which smart devices are located is often complex. When a user issues a voice control command to the device, other people may be speaking at the same time, causing the voice control command to be mixed with the sound of other people's speech, causing the device to execute the voice control command incorrectly. Alternatively, the user does not issue a voice control command to the device, but because the device has been awakened, it mistakenly believes that the speech of other people is the voice control command issued by the user, which will also cause the device to execute the voice control command incorrectly, resulting in poor voice interaction effects.

[0067] For example, in a car, there is driver A, passenger B sitting in the front passenger seat, and passengers C and D sitting in the back seat. Assume that when driver A sends a voice control command to the vehicle-mounted device, "Xiao Ai, navigate to Xiao Lingnan", passengers B and C are talking, "Xiao Bing, the peach forest in Xiao Lingnan is very beautiful". In this case, the voice control command received by the vehicle-mounted device is "Navigate to Xiao Lingnan, Xiao Bing, the peach forest in Xiao Lingnan is very beautiful". It can be seen that the voice control command received by the vehicle-mounted device is incorrect.

[0068] For another example, in a car, there is driver A, passenger B sitting in the front passenger seat, and passengers C and D sitting in the back seat. Only driver A has the authority to issue voice control commands to the vehicle-mounted device, and after the vehicle-mounted device is awakened, the awakened state can be maintained for a period of time. Assuming that after driver A issues a voice control command to the vehicle-mounted device, "Xiao Ai, navigate to Xiao Lingnan", the vehicle-mounted device is in the awakened state, and driver A does not speak, and passengers B and C are talking about "a new song ×× has been released recently, I want to listen to it", then in this case, the voice control command received by the vehicle-mounted device is "play song ××". However, in fact, this is not a voice control command issued by driver A, which will cause the voice control command received by the vehicle-mounted device to be incorrect.

[0069] Therefore, with the current voice interaction method, after the smart device is awakened, it is unable to accurately obtain the effective voice control instructions issued by the awakener, resulting in poor voice interaction effect.

[0070] In order to solve the above problems, the embodiment of the present application provides a voice interaction method. The voice interaction method of the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.

[0071] It should be noted that the execution subject of the voice interaction method disclosed in this embodiment is a smart device, which includes electronic devices such as robots, mobile phones, wearable devices, smart home devices, and vehicle-mounted devices. The voice interaction method disclosed in this embodiment can be executed by the voice interaction device disclosed in this embodiment, and the voice interaction device disclosed in this embodiment can be configured in any smart device.

[0072] Reference Figure 1 , Figure 1A flow chart of a voice interaction method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, a voice interaction method provided in an embodiment of the present application may include the following steps, which are described in detail below.

[0073] S101: Acquire voice interaction data to be processed, where the voice interaction data to be processed includes voice information of multiple users;

[0074] In the present application, the voice interaction data to be processed may be the original voice data collected by a sound receiving element (such as a microphone, a microphone array, etc.) installed on a smart device. After the sound receiving element (such as a microphone, a microphone array, etc.) collects the original voice data, it may also perform voice enhancement processing (such as amplification processing, and / or noise reduction processing, etc.) on the original voice data to obtain voice data after voice enhancement processing. As an implementable method, the voice interaction data to be processed may also be voice data after voice enhancement processing, and the present application does not impose any limitation on this.

[0075] In one possible implementation, the voice interaction data to be processed can be determined using the pause information collected by the sound receiving element (such as a microphone, microphone array, etc.). For example, the voice data before the first pause information is used as the first voice interaction data to be processed, and the voice data between the first pause information and the second pause is used as the second voice interaction data to be processed, and so on. In this implementation, it is necessary to consider whether the interval between the two pause information is less than the preset time interval. Only the voice data between the two pause information that is less than the preset time interval can be used as the voice interaction data to be processed. The preset time interval is used to characterize the duration of time that the smart device needs to meet if it wants to end the voice interaction without receiving a new voice control instruction.

[0076] Considering that if the user continues to speak for a long time without pausing, the pause information collected by the sound receiving element (such as a microphone, microphone array, etc.) to determine the voice interaction data to be processed may affect the response time of the voice interaction.

[0077] Therefore, in another possible implementation, the voice interaction data to be processed may be a voice interaction data segment of a preset fixed duration, and the specific value of the preset fixed duration may be set based on the response time requirement of the voice interaction, and this application does not impose any limitation thereon.

[0078] In the present application, after the collected original voice data reaches a preset fixed length, the first voice data segment of the preset fixed length can be intercepted from the original voice data as the voice interaction data to be processed. After that, the sound receiving component will continue to collect voice data until the user explicitly ends the voice interaction, or the smart device times out without receiving a new voice control instruction, and then continue to intercept the voice data segment of the preset fixed length as the new voice interaction data to be processed.

[0079] As an implementable method, a sliding time window and a sliding step can be preset. The size of the sliding time window can be consistent with the duration of the voice data to be processed, and the size of the sliding step needs to be smaller than the size of the sliding time window. Each time the sliding time window slides from the original voice data based on the sliding step, a voice interaction data to be processed can be determined.

[0080] For ease of understanding, assume that the duration of each voice interaction data to be processed is 10 seconds, the size of the sliding time window is 10 seconds, and the size of the sliding step is 2 seconds. If the current voice interaction data to be processed starts at 8:30:00 and ends at 8:30:10, then the next voice interaction data to be processed starts at 8:30:02 and ends at 8:30:12. It should be understood that the above times are all voice data collection times of the sound receiving components.

[0081] It should be noted that for each voice interaction data to be processed, the voice interaction method of this application is used for processing. In addition, it should be considered that the voice interaction data to be processed in this application refers to the data in a voice interaction process. If the user explicitly ends the voice interaction, or the smart device times out without receiving a new voice control command, it means that this voice interaction process ends.

[0082] S102: Determine a reference voice interaction instruction, where the reference voice interaction instruction refers to a voice interaction instruction of a specific user;

[0083] In the present application, in a possible implementation, the voice interaction instruction of a specific user may be a voice interaction instruction issued by a user who wakes up the voice interaction function. The voice interaction instruction issued by the user who wakes up the voice interaction function may be a wake-up instruction issued by the user (such as Xiao A Xiao A, Xiao B, etc.), or a voice control instruction issued by the user (such as open the car window, turn on the air conditioner, play music ××, etc.).

[0084] S103: Determine a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user;

[0085] In the present application, the target voice control instruction can be determined from the voice interaction data to be processed based on the similarity between the baseline voice interaction instruction and the voice information of each user in the voice interaction data to be processed. The similarity can be determined based on various methods, which will be described in detail through the following embodiments.

[0086] S104: Execute the target voice control instruction.

[0087] In the present application, voice recognition can be performed on the target voice control instruction, and then the corresponding application function can be executed according to the voice recognition result.

[0088] The voice interaction method provided in this embodiment, after obtaining the voice interaction data to be processed containing voice information of multiple users, first determines the voice interaction instruction of a specific user as the reference voice interaction instruction, then determines the target voice control instruction consistent with the user corresponding to the reference voice interaction instruction from the voice interaction data to be processed according to the reference voice interaction instruction, and finally executes the target voice control instruction. This scheme can realize the execution of only the instructions of the same user. Based on this, if the smart device can accurately obtain and execute the effective voice control instruction issued by the wake-up person based on this scheme after being awakened, the effect of voice interaction is improved.

[0089] Next, the implementation method of determining the benchmark voice interaction instruction is described.

[0090] In a possible implementation, if the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, then refer to Figure 2 , Figure 2 A flowchart of a method for determining a reference voice interaction instruction provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, in this case, the determining of the reference voice interaction instruction includes:

[0091] S201: Obtain a pre-stored wake-up word;

[0092] It should be noted that, in the present application, the pre-stored wake-up word can be in text form or in audio form.

[0093] S202: Extracting a wake-up instruction from the voice interaction data to be processed based on the wake-up word;

[0094] It should be noted that if the pre-stored wake-up word is in text form, speech recognition can be performed on the voice interaction data to be processed to obtain the corresponding text, and the text segment corresponding to the wake-up word can be extracted from the text. The voice interaction data segment corresponding to the text segment is the wake-up instruction. If the pre-stored wake-up word is in audio form, the audio similarity between the voice interaction data to be processed and the wake-up word can be used to extract the wake-up instruction from it. In addition, the existing voice wake-up model can be used to extract the wake-up instruction from the voice interaction data to be processed based on the wake-up word. This application does not make any restrictions on this.

[0095] S203: Using the wake-up instruction as the reference voice interaction instruction.

[0096] In another possible implementation, if the voice interaction data to be processed is not the first voice interaction data to be processed in the current voice interaction process, then refer to Figure 3 , Figure 3 A flowchart of a method for determining a reference voice interaction instruction provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, in this case, the determining of the reference voice interaction instruction includes:

[0097] S301: Acquire a pre-stored wake-up instruction and / or a pre-stored historical target voice control instruction;

[0098] S302: Using the wake-up instruction and / or the pre-stored historical target voice control instruction as the reference voice interaction instruction.

[0099] Specifically, if after determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, the method further includes: storing the target voice control instruction. Then determining the reference voice interaction instruction includes: acquiring a pre-stored historical target voice control instruction; and using the historical target voice control instruction as the reference voice interaction instruction.

[0100] Furthermore, after extracting the wake-up instruction from the voice interaction data to be processed based on the wake-up word, the method further includes: storing the wake-up instruction.

[0101] The determining of the reference voice interaction instruction includes: obtaining a pre-stored wake-up instruction; and using the wake-up instruction as the reference voice interaction instruction. In order to further ensure the effect of voice interaction, the determining of the reference voice interaction instruction includes: obtaining a pre-stored wake-up instruction and a pre-stored historical target voice control instruction; and using the wake-up instruction and the pre-stored historical target voice control instruction as the reference voice interaction instruction.

[0102] Next, an implementation method for determining a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction is described.

[0103] Reference Figure 4 , Figure 4 A flow chart of a method for determining a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction provided in an embodiment of the present application is as follows: Figure 4 As shown, the step of determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction includes:

[0104] S401: Determine benchmark user attribute information according to the benchmark voice interaction instruction;

[0105] It should be noted that, in the present application, the audio features of the benchmark voice interaction instructions and / or the user identity information can be determined as the benchmark user attribute information.

[0106] In a possible implementation, the audio feature may be an acoustic feature, which includes but is not limited to FFT (fast Fourier transform), Pitch (fundamental frequency), MFCC (Mel Frequency Cepstrum Coefficient), Fbank (Filter Bank), and PCEN (Per-channel energy normalization), etc. In order to further improve the distinguishability of the audio feature, in a possible implementation, the audio feature may be a voiceprint feature.

[0107] In a possible implementation, the user identity information may be a user face image, user identity document (ID) information, etc., and this application does not impose any limitation on this.

[0108] It should be noted that the method for determining audio features and the method for determining user identity information can be implemented with reference to existing related technologies and will not be repeated in this application.

[0109] S402: extracting at least one piece of user attribute information from the voice interaction data to be processed, wherein the voice interaction data to be processed includes voice interaction data of at least one user corresponding to the at least one piece of user attribute information;

[0110] S403: Determine target user attribute information matching the reference user attribute information from the at least one user attribute information;

[0111] In this application, a user attribute information matches a reference user attribute information means that the two information are consistent or the similarity meets a preset condition. For example, if the user attribute information is an audio feature, the two information matches means that the similarity of the two information is greater than a preset threshold, and if the user attribute information is user identity information, the two information matches means that the two information are consistent.

[0112] S404: Determine a voice interaction data segment corresponding to the target user attribute information from the voice interaction data to be processed as a target voice control instruction.

[0113] It should be noted here that if the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, the target voice control instruction may include both a wake-up instruction and a voice control instruction, such as "Xiao A, turn on the air conditioner."

[0114] The above introduces a voice interaction method provided in an embodiment of the present application, and the following will introduce a device for executing the above voice interaction method.

[0115] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of a voice interaction device provided in an embodiment of the present application. Figure 5 As shown, the voice interaction device includes:

[0116] An acquisition unit 11 is used to acquire voice interaction data to be processed, wherein the voice interaction data to be processed includes voice information of multiple users;

[0117] A reference voice interaction instruction determining unit 12, configured to determine a reference voice interaction instruction, wherein the reference voice interaction instruction refers to a voice interaction instruction of a specific user;

[0118] a target voice control instruction determining unit 13, configured to determine a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user;

[0119] The execution unit 14 is used to execute the target voice control instruction.

[0120] In a possible implementation, the reference voice interaction instruction determination unit is specifically configured to:

[0121] If the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, obtain a pre-stored wake-up word; extract a wake-up instruction from the voice interaction data to be processed based on the wake-up word; and use the wake-up instruction as the benchmark voice interaction instruction.

[0122] In a possible implementation, the device further includes:

[0123] The target voice control instruction storage unit is used to store the target voice control instruction after determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction.

[0124] In a possible implementation, the device further includes:

[0125] A wake-up instruction storage unit is used to store the wake-up instruction after extracting the wake-up instruction from the voice interaction data to be processed based on the wake-up word.

[0126] In a possible implementation, the reference voice interaction instruction determination unit is specifically configured to:

[0127] If the voice interaction data to be processed is not the first voice interaction data to be processed in the current voice interaction process, obtain a pre-stored wake-up instruction, and / or a pre-stored historical target voice control instruction; and use the wake-up instruction, and / or the pre-stored historical target voice control instruction as the benchmark voice interaction instruction.

[0128] In a possible implementation, the target voice control instruction determination unit includes:

[0129] A reference user attribute information determination unit, configured to determine reference user attribute information according to the reference voice interaction instruction;

[0130] An extraction unit, configured to extract at least one user attribute information from the voice interaction data to be processed, wherein the voice interaction data to be processed includes voice interaction data of at least one user corresponding to the at least one user attribute information;

[0131] a target user attribute information determining unit, configured to determine target user attribute information matching the reference user attribute information from the at least one user attribute information;

[0132] The target voice control instruction determination subunit is used to determine a voice interaction data segment corresponding to the target user attribute information from the voice interaction data to be processed as a target voice control instruction.

[0133] In a possible implementation, the reference user attribute information determining unit is specifically configured to:

[0134] Determine the audio features of the benchmark voice interaction instruction and / or the user identity information as benchmark user attribute information.

[0135] The present application also provides an electronic device in an embodiment. Figure 6 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 6 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0136] like Figure 6 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0137] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0138] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any voice interaction method provided in the embodiment of the present application.

[0139] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any voice interaction method provided in the embodiment of the present application.

[0140] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0141] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0142] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0143] 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 described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may 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 may be transmitted from a website site, a computer, a training device, 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, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may 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.

Claims

1. A voice interaction method, characterized in that: include: Acquire voice interaction data to be processed, wherein the voice interaction data to be processed includes voice information of multiple users; Determining a reference voice interaction instruction, wherein the reference voice interaction instruction refers to a voice interaction instruction of a specific user; According to the reference voice interaction instruction, determining a target voice control instruction from the voice interaction data to be processed, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user; Execute the target voice control instruction.

2. The method according to claim 1, characterized in that If the voice interaction data to be processed is the first voice interaction data to be processed in the current voice interaction process, then determining the reference voice interaction instruction includes: Get the pre-stored wake-up word; Extracting a wake-up instruction from the voice interaction data to be processed based on the wake-up word; The wake-up instruction is used as the reference voice interaction instruction.

3. The method according to claim 1, characterized in that After determining the target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, the method further includes: The target voice control instruction is stored.

4. The method according to claim 2 or 3, characterized in that: After extracting the wake-up instruction from the voice interaction data to be processed based on the wake-up word, the method further includes: The wake-up instruction is stored.

5. The method according to claim 4, characterized in that If the voice interaction data to be processed is not the first voice interaction data to be processed in the current voice interaction process, then determining the reference voice interaction instruction includes: Obtaining a pre-stored wake-up instruction, and / or a pre-stored historical target voice control instruction; The wake-up instruction and / or the pre-stored historical target voice control instruction are used as the reference voice interaction instruction.

6. The method according to claim 1, characterized in that The step of determining a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction includes: Determining benchmark user attribute information according to the benchmark voice interaction instruction; Extracting at least one user attribute information from the voice interaction data to be processed, wherein the voice interaction data to be processed includes voice interaction data of at least one user corresponding to the at least one user attribute information; Determining target user attribute information matching the reference user attribute information from the at least one user attribute information; A voice interaction data segment corresponding to the target user attribute information is determined from the voice interaction data to be processed as a target voice control instruction.

7. The method according to claim 6, characterized in that The determining of the benchmark user attribute information according to the benchmark voice interaction instruction includes: Determine the audio features of the benchmark voice interaction instruction and / or the user identity information as benchmark user attribute information.

8. A voice interaction device, characterized in that: include: An acquisition unit, configured to acquire voice interaction data to be processed, wherein the voice interaction data to be processed includes voice information of multiple users; A reference voice interaction instruction determining unit, used to determine a reference voice interaction instruction, wherein the reference voice interaction instruction refers to a voice interaction instruction of a specific user; a target voice control instruction determining unit, configured to determine a target voice control instruction from the voice interaction data to be processed according to the reference voice interaction instruction, wherein the target voice control instruction and the reference voice interaction instruction are issued by the same user; An execution unit is used to execute the target voice control instruction.

9. A computer program product, characterized in that It includes computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the voice interaction method as described in any one of claims 1 to 7.

10. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the voice interaction method as described in any one of claims 1 to 7.

11. A computer storage medium, characterized in that: The computer storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the voice interaction method as described in any one of claims 1 to 7.