Voice command recognition method, device, product and medium
Through cluster analysis of voice data and speech separation technology, the target user's voice commands in multi-person dialogue scenarios are identified, which solves the problem of low recognition accuracy of smart home devices in multi-person dialogue scenarios and achieves higher command recognition. Accuracy and user experience.
Patent Information
- Application Number
- CN202411154501.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In a multi-person conversation scenario, it is difficult for smart home devices to accurately recognize the user's voice commands, resulting in execution errors or the inability to execute commands.
By collecting voice data, extract the voice information of the target object and other objects, perform cluster analysis, determine whether the voice information can form a dialogue, and identify instructions from the target object's voice information when a dialogue cannot be formed, using sound source localization, speech The separation and semantic conversion technology separates the speech information of the target object, and combines the preset conditions to determine the speech information as instructions.
It improves the accuracy of voice command recognition in multi-person dialogue scenarios, ensures that smart home devices can accurately recognize and execute users' voice commands, and improves the ease of use and user experience of the device.
Smart Images

Figure CN118658480B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voice command recognition, and in particular to a voice command recognition method, device, product and medium. Background Art
[0002] With the popularity of smart home devices, voice interaction has become one of the main ways of human-computer interaction. However, in the presence of multiple people, it is difficult for smart home devices to accurately recognize the user's voice commands, and it is also difficult to perform correct operations. There is a technical problem in the art that the accuracy of voice command recognition in multi-person dialogue scenarios is low. Summary of the invention
[0003] The present invention provides a voice command recognition method, device, product and medium, which solve the technical problem of low voice command recognition accuracy in multi-person conversation scenarios.
[0004] In a first aspect, the present invention provides a method for voice command recognition, the method comprising: collecting voice data, and extracting voice information of a target object and voice information of other objects from the voice data; clustering the voice information of the target object with the voice information of other objects to determine whether the voice information of the target object can form a dialogue with the voice information of other objects; when the voice information of the target object cannot form a dialogue with the voice information of other objects, recognizing commands from the voice information of the target object.
[0005] In some embodiments, the method further includes: when the voice information of the target object can form a dialogue with the voice information of other objects, determining whether the voice information of the target object contains a pre-specified prompt word; if the voice information of the target object contains the prompt word, identifying instructions from the voice information of the target object.
[0006] In some embodiments, the step of collecting voice data includes: locating the sound source of the monitored sound; collecting the sound in a direction according to the sound source positioning to obtain sound data; and filtering the environmental noise from the sound data to obtain voice data in the sound data.
[0007] In some embodiments, the step of extracting the voice information of the target object and the voice information of other objects from the voice data includes: performing voice separation on the voice data to obtain the voice data corresponding to each object; performing feature analysis on the voice data of each object to obtain the voice feature parameters of each object; performing semantic conversion on the voice data to obtain voice information; comparing the preset voice feature parameters of the target object with the voice feature parameters of each object to identify the target object from the objects; and separating the voice information of the target object and the voice information of other objects from the voice information.
[0008] In some embodiments, the step of identifying instructions from the voice information of the target object includes: when the voice information of the target object meets preset conditions, determining that the voice information of the target object is an instruction; wherein the preset conditions include: the voice information of the target object conforms to a preset instruction structure, and the voice information of the target object contains a preset instruction object.
[0009] In some embodiments, after the step of identifying instructions from the voice information of the target object, the method further includes: if the voice information of the target object is an instruction, issuing an instruction prompt; after receiving confirmation feedback on the instruction prompt, issuing the instruction.
[0010] In some embodiments, the step of clustering the voice information of the target object with the voice information of other objects includes: clustering the voice information of the target object with the voice information of other objects respectively; when the voice information of the target object is successfully clustered with the voice information of at least one other object, stopping clustering the voice information of the target object with the voice information of the remaining other objects, and determining that the voice information of the target object can be clustered with the voice information of other objects; when the clustering results of clustering the voice information of the target object with the voice information of other objects respectively and one by one are all failures, determining that the voice information of the target object cannot be clustered with the voice information of other objects.
[0011] In a second aspect, the present invention provides a voice command recognition device, comprising: a voice extraction module, used to collect voice data, and extract voice information of a target object and voice information of other objects from the voice data; a cluster analysis module, used to cluster the voice information of the target object with the voice information of other objects to determine whether the voice information of the target object can form a dialogue with the voice information of other objects; and a command recognition module, used to recognize commands from the voice information of the target object when the voice information of the target object cannot form a dialogue with the voice information of other objects.
[0012] In a third aspect, the present invention provides a computer program product, comprising a computer program for implementing the steps of any one of the voice instruction recognition methods of the first aspect.
[0013] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the voice instruction recognition methods of the first aspect.
[0014] The present invention provides a method, device, product and medium for voice command recognition, wherein the method comprises: collecting voice data, and extracting voice information of a target object and voice information of other objects from the voice data; clustering the voice information of the target object and the voice information of other objects to determine whether the voice information of the target object can form a dialogue with the voice information of other objects; when the voice information of the target object cannot form a dialogue with the voice information of other objects, recognizing commands from the voice information of the target object; and being able to accurately recognize voice commands from multi-person dialogues. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The present invention will be described in more detail below based on embodiments and with reference to the accompanying drawings:
[0016] Figure 1 It is a flow chart of a voice command recognition method provided in an embodiment of the present application;
[0017] Figure 2 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;
[0018] Figure 3 It is a schematic diagram of an example of a voice command recognition method provided in an embodiment of the present application.
[0019] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, and to fully understand and implement how the present invention applies technical means to solve technical problems and achieve the corresponding technical effects, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, not all of the embodiments. The embodiments of the present invention and the various features in the embodiments can be combined with each other without conflict, and the technical schemes formed are all within the scope of protection of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0023] With the popularity of smart home devices, voice interaction has become one of the main ways of human-computer interaction. However, in the presence of multiple people, it is difficult for smart home devices to accurately recognize the user's voice commands, and it is also difficult to perform correct operations. There is a technical problem in the art that the accuracy of voice command recognition in multi-person dialogue scenarios is low.
[0024] Hereinafter, the technical solution of the present application will be described in conjunction with specific embodiments.
[0025] Embodiment 1
[0026] Figure 1 is a flow chart of a voice command recognition method provided by an embodiment of the present application, such as Figure 1 As shown, in the technical solution of this embodiment, a voice command recognition method is provided, the method comprising: collecting voice data, and extracting voice information of a target object and voice information of other objects from the voice data; clustering the voice information of the target object with the voice information of other objects to determine whether the voice information of the target object can form a dialogue with the voice information of other objects; when the voice information of the target object cannot form a dialogue with the voice information of other objects, recognizing commands from the voice information of the target object.
[0027] The technical problem solved by the technical solution of this embodiment is: how to identify instructions in a multi-person dialogue scene. Suppose that in the living room of a smart home, a family is discussing weekend activities. The child (other object) proposes to go to the playground, the elderly (other object) expresses the desire to go for a walk in the park, and the owner (target object) says "Turn up the speed of the fan in the living room". This embodiment first comprehensively collects the voice data generated by this multi-person communication. Then, the voice information corresponding to the owner's sentence "Turn up the speed of the fan in the living room" and the various utterances of other family members are extracted from these data. Next, these voice information are clustered and analyzed to consider the semantic association, logical relationship and context of the voice information of each party. In this example, the discussion between the child and the elderly about the location of weekend activities has no direct semantic and logical connection with the owner's statement on the adjustment of the fan speed, and cannot form a coherent dialogue topic, that is, no dialogue can be formed. This embodiment determines that the owner's sentence "Turn up the speed of the fan in the living room" is not part of the dialogue and discussion with other people, but a clear instruction specifically issued to smart home devices. Therefore, this embodiment can accurately identify voice instructions in multi-person dialogues.
[0028] Embodiment 2
[0029] Based on the above embodiment, the method also includes: when the voice information of the target object can form a dialogue with the voice information of other objects, determining whether the voice information of the target object contains a pre-specified prompt word; if the voice information of the target object contains the prompt word, identifying instructions from the voice information of the target object.
[0030] The technical problem solved by the technical solution of this embodiment is: when the voice information of the target object can form a dialogue with the voice information of other objects, how to identify the instructions in the voice information of the target object from the dialogue. Still in the above-mentioned family scene, while everyone is discussing heatedly, the host says: "Gree, wake me up at 7:30 tomorrow morning, and open the curtains by the way." At the same time, the host continues to participate in the discussion of weekend activities. After receiving this voice contained in the dialogue, since the pre-specified prompt word "Gree" appears in it, this embodiment can accurately distinguish from the communication between the host and other family members that this part of the speech containing the prompt word is an instruction for smart home devices. Even if it is in the overall dialogue context, this embodiment can effectively distinguish it from the general communication content by means of the prompt word, thereby ensuring accurate recognition and response to the host's instructions.
[0031] Embodiment 3
[0032] Based on the above embodiment, the step of collecting voice data includes: locating the sound source of the monitored sound; collecting the sound directionally according to the sound source positioning to obtain sound data; filtering the environmental noise from the sound data to obtain voice data in the sound data.
[0033] The technical problem solved by the technical solution of this embodiment is: how to obtain voice data from speech. In the living room, in addition to the heated discussions of family members, programs are also playing on TV, and the sound environment is relatively complex. This embodiment first uses sound source localization technology to identify the source direction of each sound. For example, it is determined that the sound of the host's speech comes from the sofa area in the living room. Then, based on the sound source localization, the sound in this direction is targeted and directional collection is carried out, and the sound signals from this area are collected intensively to reduce the mixing of irrelevant sounds from other directions. After collecting preliminary sound data, the noise filtering algorithm is used to process these data to remove interference from various environmental noises such as the sound of TV programs and the sound of vehicles running from the outside world, and only retain the voice data formed by the clear and pure speaking voices of family members. As a result, the availability of voice data is enhanced.
[0034] Embodiment 4
[0035] On the basis of the above embodiment, the steps of extracting the voice information of the target object and the voice information of other objects from the voice data include: performing voice separation on the voice data to obtain the voice data corresponding to each object; performing feature analysis on the voice data of each object to obtain the voice feature parameters of each object; performing semantic conversion on the voice data to obtain voice information; comparing the preset voice feature parameters of the target object with the voice feature parameters of each object to identify the target object from the objects; and separating the voice information of the target object and the voice information of other objects from the voice information.
[0036] The technical problem solved by this technical solution is: how to separate the voice information of the target object and the voice information of other objects from the voice data. In this lively family discussion scene, this embodiment performs voice separation operations such as human voice separation on the voice data to distinguish the sounds made by different family members one by one. For example, the clear voice of a child, the steady voice of an old man, and the mature tone of the host can be clearly distinguished. Then, for each person's separated voice data, this embodiment performs feature analysis through, for example, Mel-Frequency Cepstral Coefficients (MFCC) and Perceptual Linear Predictive (PLP) to obtain the voice feature parameters of each object. Next, this embodiment uses semantic conversion technology to convert these complex voice data into voice information in text form that is easy to understand and process, such as a diary system. Since the detailed voice feature parameters of the owner have been pre-recorded in the early stage, such as accurate parameters extracted by professional methods such as precise Mel frequency cepstral coefficients and perceptual linear prediction, this embodiment can compare the feature parameters of each object currently analyzed with the pre-recorded feature parameters of the owner (target object), and can accurately identify the owner's voice from many speakers. This embodiment can separate the key voice information of the owner and the relevant voice information of other family members from a large amount of voice information.
[0037] Embodiment 5
[0038] Based on the above embodiment, the step of identifying instructions from the voice information of the target object includes: when the voice information of the target object meets the preset conditions, determining that the voice information of the target object is an instruction; wherein the preset conditions include: the voice information of the target object conforms to the preset instruction structure, and the voice information of the target object contains a preset instruction object.
[0039] The technical problem solved by the technical solution of this embodiment is: how to judge whether the target object voice information is a command. In this scenario where the family discusses weekend arrangements, the owner, who is the target object, says "set the air conditioner temperature to 26 degrees". After receiving this voice information, this embodiment will immediately analyze and judge. For example, first of all, from the perspective of sentence structure, "set the air conditioner temperature to 26 degrees" contains a clear verb "set" and a specific temperature value "26 degrees", which conforms to the preset instruction structure mode. Secondly, "air conditioner temperature" is obviously a clear and operable instruction object, and in the smart home system, the air conditioning equipment has the function of adjusting the temperature and the corresponding control mechanism, and the sentence is feasible. Combining these factors, this embodiment determines that the owner's voice is a clear and effective instruction, and then immediately prepares to execute the corresponding temperature adjustment operation to meet the owner's needs and provide a comfortable indoor environment. This embodiment further improves the reliability of instruction recognition through instruction judgment.
[0040] Embodiment 6
[0041] Based on the above embodiment, after the step of identifying instructions from the voice information of the target object, the method also includes: if the voice information of the target object is an instruction, issuing an instruction prompt; after receiving confirmation feedback on the instruction prompt, issuing the instruction.
[0042] The technical problem solved by the technical solution of this embodiment is: how to confirm and issue the instruction after identifying the instruction. When the family members were discussing heatedly, the owner suddenly said "turn on the bedroom light". Through the above analysis and judgment, this embodiment recognizes that this is an instruction. Next, this embodiment sends a confirmation prompt tone of "Do you want to turn on the bedroom light for you" and / or makes a display screen prompt. At this time, the owner may respond with "yes" or other affirmative answers. Once this embodiment receives clear confirmation feedback from the owner, it will immediately start the subsequent operation process. For example, through internal algorithms and communication mechanisms, specific control instructions for bedroom lights are formed, and they are accurately issued to the corresponding devices for execution. In this process, through timely interactive confirmation with the owner, the accuracy and effectiveness of the execution of instructions are guaranteed, and possible misoperation is avoided.
[0043] Embodiment 7
[0044] On the basis of the above embodiment, in the step of clustering and analyzing the voice information of the target object with the voice information of other objects, it includes: clustering the voice information of the target object with the voice information of other objects respectively; when the voice information of the target object is successfully clustered with the voice information of at least one other object, stopping clustering the voice information of the target object with the voice information of the remaining other objects, and determining that the voice information of the target object can be clustered with the voice information of other objects; when the clustering results of clustering the voice information of the target object with the voice information of other objects respectively and one by one are all failures, determining that the voice information of the target object cannot be clustered with the voice information of other objects.
[0045] The technical problem solved by the technical solution of this embodiment is: how to cluster the voice information of the target object with the voice information of other objects. In this family discussion scenario, the owner said, "I think we should go for a picnic in the suburbs on the weekend," and the child responded excitedly, "Great, I want to go," while the old man said to himself, "The most beautiful thing is the sunset." This embodiment will first cluster the owner's voice information with, for example, the child's voice information. The owner and the child are both discussing the topic of "going for a picnic in the suburbs," and the clustering is successful. At this point, this embodiment will stop clustering the owner's voice with the old man's voice to reduce the consumption of computing resources.
[0046] If the child is singing the nursery rhyme "Happy Goat, Beautiful Goat, Lazy Goat, Boiling Goat", the topics discussed by the host and the child are inconsistent, and clustering fails. Try to cluster with the visitor further, and find that the topics discussed by the host and the elderly are inconsistent, and clustering fails. When the clustering results of clustering the voice information of the host as the target object with the voice information of the child and the elderly as other objects one by one fail, it is determined that the voice information of the target object cannot be clustered with the voice information of other objects.
[0047] Embodiment 8
[0048] Figure 2 is a structural diagram of a voice command recognition device provided in an embodiment of the present application, such as Figure 2 As shown, in the technical solution of this embodiment, a voice command recognition device is provided, including: a voice extraction module, used to collect voice data, and extract the voice information of the target object and the voice information of other objects from the voice data; a cluster analysis module, used to cluster the voice information of the target object and the voice information of other objects to determine whether the voice information of the target object can form a dialogue with the voice information of other objects; a command recognition module, used to recognize commands from the voice information of the target object when the voice information of the target object cannot form a dialogue with the voice information of other objects.
[0049] The technical problem solved by the technical solution of this embodiment is: how to identify instructions in a multi-person dialogue scene. Suppose that in the living room of a smart home, a family is discussing weekend activities. The child (other object) proposes to go to the playground, the elderly (other object) expresses the desire to go for a walk in the park, and the owner (target object) says "Turn up the speed of the fan in the living room". This embodiment first comprehensively collects the voice data generated by this multi-person communication. Then, the owner's sentence "Turn up the speed of the fan in the living room" and various words of other family members are extracted from these data. Next, these voice information are clustered and analyzed to consider the semantic association, logical relationship and context of the words of each party. In this example, the discussion between the child and the elderly about the location of weekend activities has no direct semantic and logical connection with the owner's statement on the adjustment of the fan speed, and cannot form a coherent dialogue topic. This embodiment determines that the owner's sentence "Turn up the speed of the fan in the living room" is not part of the discussion with other people, but a clear instruction specifically issued to the smart home device. Other technical features and beneficial effects of this embodiment correspond to the above-mentioned embodiment and are not repeated here.
[0050] Embodiment 9
[0051] In the technical solution of this embodiment, a computer program product is provided, including a computer program for implementing the steps of any one of the voice instruction recognition methods of the above embodiments.
[0052] In the technical solution of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any voice instruction recognition method of the above embodiments are implemented.
[0053] Based on the above embodiment, this embodiment provides a smart home device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiment. The smart home device includes at least one of the following: an air conditioner, a refrigerator, and a washing machine.
[0054] The processor may include, but is not limited to, one or more processors or microprocessors. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the method in the above embodiments.
[0055] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof. The computer-readable storage medium may include, but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CDROM, DVDROM, Blu-ray disc, etc.).
[0056] The computer-readable storage medium may also store at least one computer executable program / instruction, which may be, for example, a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.
[0057] In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.), etc.
[0058] The processor may communicate with external devices via an I / O bus via a wired or wireless network.
[0059] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.
[0060] Embodiment 10
[0061] Based on the above embodiments, this embodiment provides an application example.
[0062] With the popularity of smart home devices, voice interaction has become one of the main ways of human-computer interaction. However, when multiple people are present, it is difficult for smart home devices to accurately identify the voice commands of the target user and perform correct operations. The relevant technology mainly separates the voices of multiple people by methods such as sound source localization and voice feature extraction, but the effect is often unsatisfactory and is easily affected by factors such as environmental noise. Therefore, the present invention proposes a method and device for separating the voices of multiple people from smart home devices and executing the target user's commands. The present invention solves the following technical problems: when multiple people speak at the same time, the smart home device cannot accurately identify the target user's commands, resulting in incorrect execution of commands or failure to execute commands. Beneficial effects: By adding a semantic separation model on the basis of voice separation technology, the accuracy of command recognition is improved; the voices of multiple people can be separated, solving the problem of voice interaction when multiple people are present; and improving the ease of use and user experience of smart home devices. Combined with voice separation and diary systems such as voice information, multi-person quotations are registered; through semantic analysis, dialogue clustering and multi-layer filtering of useful sentences. Figure 3 FIG. 1 is a schematic diagram of an example of a method for recognizing a voice command disclosed in an embodiment of the present invention. Figure 3As shown, in this embodiment, the voice of the main user (i.e., the target object) is pre-recorded, and the main user voice feature parameters corresponding to the main user voice are extracted through methods such as Mel-Frequency Cepstral Coefficients (MFCC) and Perceptual Linear Predictive (PLP). When the voice is triggered, the voice device finds the direction of the sound source through a sound source localization algorithm such as array signal processing and beamforming, performs voice collection, and obtains voice data. Next, the collected voice data is filtered for ambient sound, and the human voice in the voice is separated to obtain voice data; it is determined whether the human voice is a multi-person conversation. If it is a multi-person conversation, the voices of multiple speakers are separated, and multiple single-channel human voices are extracted, and the sound feature parameters of each single-channel human voice are extracted, that is, the sound feature parameters of each object are obtained; for single-channel human voices with different sound feature parameters, a semantic conversion algorithm is combined with a diary system to form multiple speaker voice diaries (i.e., voice information), and the main user voice diary corresponding to the main user is compared and marked according to the sound feature parameters of the main user. Track the main user's voice diary. During this process, semantic analysis is performed synchronously with the newly added sentences of other voice diaries, and the conversation is clustered. If the sentence of the main user's voice diary can be clustered with the newly added sentences of other voice diaries, it means that the sentence is a conversation between the main user and other speakers. After no prompt sentences such as Xiaoai, Xiaodi, Xiaodu, and Gree are detected, the sentence can be filtered out and not processed as an instruction. The above unfiltered sentences are filtered for instruction confirmation, including: instruction structure confirmation, instruction object confirmation, and instruction feasibility confirmation. For example, if the sentence content is 'close the window' or 'close the window', the sentence contains a verb plus noun instruction structure, and contains the window as an instruction object, and the smart home device contains a window control device, that is, the instruction is feasible. For another example, if the sentence content is 'please turn on the air conditioner' or 'turn on the air conditioner', the sentence contains a verb plus noun instruction structure, and contains the air conditioner as an instruction object, and the smart home device contains the air conditioner, that is, the instruction is feasible. For example, if the sentence content is 'air conditioning 24 degrees', then the sentence contains a command structure of a noun plus an attribute word, and contains the command object of air conditioning, and the smart home device contains air conditioning, and the air conditioning has a temperature attribute, that is, the command is feasible. After confirmation, interact with the user through voice to confirm whether the command is issued. For example, if the command is 'turn on the air conditioner', then confirm with the user whether to turn on the air conditioner for you by issuing a voice 'whether to turn on the air conditioner for you'. Synchronously form the corresponding lower-level computer command through the algorithm and wait for it to be issued. After the user agrees to reply, the command is issued, and the lower-level computer implements the function. In a scenario instance, the user first registers the voiceprint feature.Then, in the multi-person conversation scenario, first filter out the environmental noise, separate the sound files of multiple voiceprints, perform semantic recognition on different voiceprints, and register their speech content to form a multi-person diary. Then match the conversation between the voiceprint registrant and other people to determine whether they can be matched into a conversation or a discussion around the same topic. If not, it is a new topic / sudden control command. Therefore, it is necessary to filter whether it is a command through the command control set, and let the user confirm whether to execute it through interaction (such as voice, display screen). Execute the command after receiving the user's confirmation.
[0063] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0064] It should be noted that, in the present invention, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element limited by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0065] Although the embodiments disclosed in the present invention are as above, the above contents are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A method for voice command recognition, characterized in that: The method comprises: Collecting voice data, and extracting voice information of a target object and voice information of other objects from the voice data; Performing cluster analysis on the voice information of the target object and the voice information of the other objects to determine whether the voice information of the target object can form a dialogue with the voice information of the other objects; When the voice information of the target object cannot form a dialogue with the voice information of other objects, recognizing a command from the voice information of the target object; The step of clustering the speech information of the target object and the speech information of other objects includes: Clustering the target object's speech information with the speech information of other objects respectively; When the speech information of the target object is successfully clustered with the speech information of at least one other object, stopping clustering the speech information of the target object with the speech information of the remaining other objects, and determining whether the speech information of the target object can be clustered with the speech information of other objects; When the clustering results of clustering the speech information of the target object with the speech information of other objects one by one are all failures, it is determined that the speech information of the target object cannot be clustered with the speech information of other objects.
2. The voice command recognition method according to claim 1, characterized in that: The method further comprises: When the voice information of the target object can form a dialogue with the voice information of other objects, determining whether the voice information of the target object contains a pre-specified prompt word; If the voice information of the target object includes a prompt word, an instruction is recognized from the voice information of the target object.
3. The voice command recognition method according to claim 1, characterized in that: The step of collecting voice data comprises: Localize the sound source of the monitored sound; Directed sound collection based on sound source positioning to obtain sound data; The sound data is filtered to remove environmental noise to obtain speech data from the sound data.
4. The voice command recognition method according to claim 1, characterized in that: The step of extracting the voice information of the target object and the voice information of other objects from the voice data comprises: Perform voice separation on the voice data to obtain voice data corresponding to each object; Performing feature analysis on the speech data of each object to obtain speech feature parameters of each object; Perform semantic transformation on speech data to obtain speech information; Comparing the preset speech feature parameters of the target object with the speech feature parameters of each object, and identifying the target object from the objects; Separate the target object's voice information and other objects' voice information from the voice information.
5. The voice command recognition method according to claim 1, characterized in that: The step of identifying instructions from the voice information of the target object includes: When the voice information of the target object meets a preset condition, determining that the voice information of the target object is a command; The preset conditions include: the voice information of the target object conforms to a preset instruction structure, and the voice information of the target object contains a preset instruction object.
6. The voice command recognition method according to claim 1 or 5, characterized in that: After the step of recognizing the instruction from the voice information of the target object, the method further includes: If the target object's voice message is a command, a prompt to issue the command is issued; After receiving confirmation feedback on the prompt for issuing the instruction, the instruction is issued.
7. A voice command recognition device, characterized in that: include: A voice extraction module, used to collect voice data and extract voice information of a target object and voice information of other objects from the voice data; A cluster analysis module, used for performing cluster analysis on the voice information of the target object and the voice information of the other objects, so as to determine whether the voice information of the target object can form a dialogue with the voice information of the other objects; A command recognition module, used for recognizing commands from the voice information of the target object when the voice information of the target object cannot form a dialogue with the voice information of other objects; The step of clustering the speech information of the target object and the speech information of other objects includes: Clustering the target object's speech information with the speech information of other objects respectively; When the speech information of the target object is successfully clustered with the speech information of at least one other object, stopping clustering the speech information of the target object with the speech information of the remaining other objects, and determining whether the speech information of the target object can be clustered with the speech information of other objects; When the clustering results of clustering the speech information of the target object with the speech information of other objects one by one are all failures, it is determined that the speech information of the target object cannot be clustered with the speech information of other objects.
8. A computer program product, characterized in that It comprises a computer program, wherein the computer program is used to implement the steps of the voice instruction recognition method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the voice instruction recognition method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Interactive-text-oriented topic detection method
CN103226580A
Method, device, equipment and system for controlling elevator based on voice and medium
CN111816180A
User voice instruction recognition processing method and device in multi-person scene
CN118447843A
