Voice interaction method, device and equipment, storage medium and vehicle

By obtaining missing keywords from historical key information, combined with user voice instructions, semantically complete instructions are generated, which solves the problem of unclear recognition intentions in the existing technology and improves the recognition accuracy and intelligence of the voice interaction system.

CN118629400APending Publication Date: 2024-09-10BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310217184.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology cannot accurately identify the user's intention when recognizing the user's voice command, especially when the slot in the voice command is missing or the intention is unclear, resulting in poor recognition accuracy.

Method used

By obtaining the missing keywords from the pre-stored historical key information, combined with the voice instructions issued by the user, a second voice instruction with complete semantics and clear intention is generated, and the corresponding target operation is executed.

Benefits of technology

It improves the recognition accuracy and intelligence of the user's voice commands, can more accurately identify the user's intentions, and enhances the responsiveness of the voice interaction system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629400A
    Figure CN118629400A
Patent Text Reader

Abstract

The invention discloses a voice interaction method, device and equipment, a storage medium and a vehicle. The method comprises the following steps: receiving a first voice instruction; under the condition that the first voice instruction does not comprise N preset slots, N keywords in one-to-one correspondence with the N slots are obtained from pre-stored historical key information, N is a positive integer smaller than M, and M is the total number of the preset slots; using the N keywords and the first voice instruction to obtain a second voice instruction; and executing a target operation corresponding to the second voice instruction. According to the embodiment of the invention, the accuracy and intelligence of identifying the user intention through the voice instruction in the voice interaction process can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of natural language semantic understanding, and in particular, relates to a voice interaction method, device, equipment, storage medium and vehicle. Background Art

[0002] As one of the important directions in the field of artificial intelligence, natural language understanding technology has always been a hot topic for researchers in related fields. With the rapid development of the Internet and the increasing informatization, people are trying to make machines understand natural language, thereby reducing manual input and improving social production efficiency.

[0003] However, in the related technologies, language understanding usually only recognizes each command of the user separately. According to the user's normal conversation habits, the user's voice commands are continuous over a period of time. Therefore, this language understanding method in the related technologies cannot well recognize the user's intentions through the user's commands. How to more accurately and intelligently recognize the user's intentions through the voice commands issued by the user is a problem that needs to be solved urgently in recent years. Summary of the invention

[0004] The embodiments of the present application provide a voice interaction method, device, equipment, storage medium and vehicle, which can solve the problem that the existing artificial intelligence has poor accuracy in recognizing user intentions through voice commands issued by the user.

[0005] In a first aspect, an embodiment of the present application provides a voice interaction method, the method comprising:

[0006] receiving a first voice command;

[0007] In the case where the first voice instruction does not include the preset N slots, obtaining N keywords corresponding to the N slots one by one from the pre-stored historical key information, where N is a positive integer less than M, and M is the total number of the preset slots;

[0008] Obtain a second voice instruction using the N keywords and the first voice instruction;

[0009] Execute a target operation corresponding to the second voice instruction.

[0010] In some embodiments, the second voice instruction includes M slots arranged in a preset order, and the obtaining of the second voice instruction by using the N keywords and the first voice instruction includes:

[0011] Determine P slots included in the first voice instruction and P keywords in the P slots, where P is a positive integer less than M, and each slot in the P slots includes a keyword;

[0012] The P keywords and the N keywords are concatenated in the preset order to obtain the second voice instruction.

[0013] In some embodiments, the performing of the target operation corresponding to the second voice instruction includes:

[0014] If the second voice instruction can be recognized, executing a target operation corresponding to the second voice instruction;

[0015] In which, when text information corresponding to the second voice instruction is obtained, it is determined that the second voice instruction can be recognized.

[0016] In some embodiments, the first voice instruction includes P slots, the P slots include P keywords corresponding to the P slots one by one, and after executing the target operation corresponding to the second voice instruction, the method further includes:

[0017] The P keywords are updated to the historical key information.

[0018] In some embodiments, the first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After determining whether the second voice instruction can be recognized, the method further includes:

[0019] In the case that the second voice instruction cannot be recognized, a prompt message is broadcasted, where the prompt message is used to prompt the user that the first voice instruction cannot be recognized.

[0020] In some embodiments, the first voice instruction includes P slots, the P slots include P keywords corresponding to the P slots one by one, and after the prompt information is broadcast, the method further includes:

[0021] The P keywords are updated as historical key information, and the N keywords are deleted from the historical key information.

[0022] In a second aspect, an embodiment of the present application provides a voice interaction device, the device comprising:

[0023] A receiving module, used for receiving a first voice command;

[0024] an acquisition module, configured to acquire N keywords corresponding to the N slots in a one-to-one manner from pre-stored historical key information when the first voice instruction does not include the N preset slots, where N is a positive integer less than M, and M is the total number of preset slots;

[0025] A generating module, configured to obtain a second voice instruction using the N keywords and the first voice instruction;

[0026] An execution module is used to execute a target operation corresponding to the second voice instruction.

[0027] In a third aspect, an embodiment of the present application provides a voice interaction device, the device comprising: a processor and a memory storing computer program instructions;

[0028] The above voice interaction method is implemented when the processor executes the computer program instructions.

[0029] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned voice interaction method is implemented.

[0030] In a fifth aspect, an embodiment of the present application provides a vehicle, which includes computer program instructions, and the computer program instructions implement the above voice interaction method when executed by a processor.

[0031] In the present application, when there is a missing slot in the first voice command issued by the user, the missing N keywords can be obtained from the pre-stored historical key information to supplement the unclear intention of the current first voice command, and the first voice command and N keywords can be used to generate a semantically complete and clear second semantic instruction, and the target operation corresponding to the second semantic instruction is executed. Compared with the prior art, the present application can supplement the voice instructions in combination with the above content, and combine the pre-stored historical information with the voice instructions issued by the user, so that the user's intention can be more accurately and intelligently identified through the voice instructions issued by the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 It is a flowchart of a voice interaction method provided by an embodiment of the present application;

[0034] Figure 2 is a flowchart of a voice interaction method provided by another embodiment of the present application;

[0035] Figure 3 is a flowchart of a voice interaction method provided by another embodiment of the present application;

[0036] Figure 4 It is a schematic diagram of the hardware structure of a voice interaction device provided in an embodiment of the present application;

[0037] Figure 5 It is a structural diagram of a voice interaction device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0038] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0039] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0040] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.

[0041] Specifically, in order to solve the problems of the prior art, the embodiments of the present application provide a voice interaction method, device, equipment, storage medium and vehicle. The voice interaction method provided by the embodiments of the present application is first introduced below.

[0042] Figure 1 A flow chart of a voice interaction method provided by an embodiment of the present application is shown. The method comprises the following steps:

[0043] S110, receiving a first voice command.

[0044] In this embodiment, the first voice command is any voice command issued by the user. The voice interaction method is applied on a vehicle. A voice receiving device is provided on the vehicle. The voice receiving device can receive the first voice command issued by the user and transmit the first voice command to an electronic control unit on the vehicle. The electronic control unit parses the voice command and controls various components on the vehicle based on the results of the analysis to respond to the user's first voice command.

[0045] S120, when the first voice instruction does not include the preset N slots, obtain N keywords corresponding to the N slots one by one from the pre-stored historical key information, where N is a positive integer less than M, and M is the total number of preset slots.

[0046] In this embodiment, voice commands are divided into strong semantic commands and weak semantic commands, wherein strong semantic commands are voice commands with complete semantics and clear intentions, and strong semantic commands include the object that the user wants to adjust, which attribute of the object the user wants to adjust, and the specific method of adjustment. By parsing the strong semantic command, a complete execution action can be obtained.

[0047] Weak semantic instructions are voice instructions with incomplete semantics and unclear intentions. They only include partial information about the adjustment object, adjustment attributes, and specific adjustment methods. Therefore, it is impossible to obtain a complete execution action based solely on weak semantic instructions. It is necessary to combine weak semantic instructions with other supplementary information to generate a complete execution action.

[0048] In this embodiment, the slot is a storage space for specific types of key information in the user's voice command, which is used to structure the key information in the voice command. By limiting the type of key information to be filled in each slot, redundant words in the user's voice command are filtered out, so that the user's intention can be quickly understood through the structured key information.

[0049] It can be predetermined that a complete strong semantic instruction should include M slots arranged in a preset order. Then, by detecting the information of the slots in each received first voice instruction, it is determined whether the first voice instruction is a strong semantic instruction or a weak semantic instruction. Therefore, when it is detected that the number of slots in the first voice instruction is less than M, the first voice instruction can be determined as a weak semantic instruction.

[0050] When it is determined that the first voice command is a weak semantic command, it can be further determined that the first voice command does not include N slots out of M slots. Then it is necessary to fill these N slots with supplementary information to supplement the first voice command into a semantically complete and clearly intended voice command.

[0051] Since the context usually has a certain degree of continuity during human voice interaction, the voice commands issued by the user in the previous period of time can be combined to determine the execution action that the user wants to control the vehicle to perform in this voice command, among which the historical key information is the information contained in the voice commands issued by the user before the current time point.

[0052] Therefore, N keywords corresponding to the N slots one by one can be searched in the pre-stored historical key information, and these N keywords can be used as supplementary information of the first voice command.

[0053] S130: Obtain a second voice instruction using the N keywords and the first voice instruction.

[0054] In this embodiment, after obtaining N keywords, these N keywords and the keywords in the first voice instruction can be arranged in a preset order to supplement the first voice instruction, that is, a second voice instruction can be obtained, and the second voice instruction is a strong semantic instruction.

[0055] For example, a strong semantic instruction with complete semantics and clear intention needs to determine three key information: the object, attribute and specific method that the user wants to adjust. Therefore, three slots can be set in advance, that is, M is 3. Each slot corresponds to one key information, so each slot needs to be filled with a keyword that reflects the key information.

[0056] In the case where the first voice instruction is a weak semantic instruction, the voice instruction includes P items of objects, attributes, and specific methods that the user wants to adjust, then the voice instruction can be segmented, and P keywords corresponding to the P items of key information are identified in the segmentation, where P is a positive integer less than 3. Since the P keywords cannot completely fill all three slots, it is necessary to obtain N keywords other than the P keywords from the pre-stored historical key information, and combine the P keywords in the first voice instruction with the N keywords in the historical key information to obtain the final second voice instruction.

[0057] S140: Execute a target operation corresponding to the second voice instruction.

[0058] In this embodiment, since the second voice instruction is a strong semantic instruction with complete semantics and clear intention, each strong semantic instruction has a corresponding target operation. Therefore, after the second voice instruction is obtained by supplementing the first voice instruction, the target operation corresponding to the second voice instruction can be executed.

[0059] In the case where there is a missing slot in the first voice command issued by the user, the missing N keywords can be obtained from the pre-stored historical key information to supplement the unclear intention of the current first voice command, and the first voice command and N keywords can be used to generate a semantically complete and clear second semantic instruction, and the target operation corresponding to the second semantic instruction can be executed. Compared with the prior art, the present application can supplement the voice instructions in combination with the above content, and combine the pre-stored historical information with the voice instructions issued by the user, so that the user's intention can be more accurately and intelligently identified through the voice instructions issued by the user.

[0060] As an optional embodiment, the second voice instruction includes M slots arranged in a preset order, and the above S130 may include:

[0061] Determine P slots included in the first voice instruction and P keywords in the P slots, where P is a positive integer less than M, and each slot in the P slots includes a keyword;

[0062] The P keywords and the N keywords are concatenated in the preset order to obtain the second voice instruction.

[0063] In this embodiment, since each slot corresponds to a type of key information, when the first voice instruction is received, the first voice instruction can be directly parsed, the first voice instruction can be segmented to obtain multiple words, and then the keywords corresponding to the P slots can be queried from the multiple words, and these keywords can be filled into the corresponding P slots respectively.

[0064] Since there is missing information in the weak semantic instruction, the first voice instruction needs to be supplemented with N keywords in the historical key information to obtain the second voice instruction.

[0065] In this embodiment, the P keywords corresponding to the P slots included in the preset M slots in the first voice instruction can be first determined, and then the preset N slots not included in the first voice instruction can be further determined, and then the N keywords corresponding to the N slots one by one can be queried in the historical key information, and these N keywords can be filled into the corresponding N slots, and then, the N keywords and the P keywords can be spliced ​​in the preset order to obtain the second voice instruction.

[0066] In one embodiment, the user instruction is "adjust the temperature a little higher", and the pre-configured slots include "vehicle control object", "adjustment attribute" and "adjustment method", and the preset order is "vehicle control object", "adjustment attribute" and "adjustment method". The first voice instruction can be parsed to obtain the two keywords "temperature" and "adjust", and "temperature" is filled into the "adjustment attribute" slot, and "adjustment" is filled into the "adjustment method" slot. In this way, it can be determined that the "vehicle control object" slot is a slot not included in the first voice instruction, and it can be queried from the historical key information. According to the context semantics, it is known that the "vehicle control object" is "air conditioning", that is, "air conditioning" can be filled into the "vehicle control object" slot, and the above three slots are arranged in the preset order, so that the complete second voice instruction can be generated: adjust the air conditioning temperature higher.

[0067] In this way, the key information in the user's instructions can be structured by setting slots, and combined with the content of the context, the user's semantics can be determined to provide users with more intelligent services.

[0068] As an optional embodiment, the executing the target operation corresponding to the second voice instruction includes:

[0069] If the second voice instruction can be recognized, executing a target operation corresponding to the second voice instruction;

[0070] In which, when text information corresponding to the second voice instruction is obtained, it is determined that the second voice instruction can be recognized.

[0071] In this embodiment, since the second voice instruction is obtained by arranging the contents stored in M ​​slots in a preset order, it cannot be guaranteed that the contents of each slot can adapt to each other, and the formed second voice instruction is a coherent executable action. Therefore, it is necessary to further determine whether the second voice instruction can be recognized.

[0072] In the process of recognizing the second voice command, the second voice command can first be converted into text information, and then the converted text information is input into a pre-trained natural language processing (NLP) model. The NLP model can perform grammatical analysis and semantic analysis on the text information.

[0073] If the text information converted from the second voice instruction can be obtained, then it can be considered that the second voice instruction can be recognized. At this time, the NLP model will output the understanding and analysis results of the second voice instruction, that is, it can be determined that the second voice instruction is a coherent and executable instruction, in which the contents of each slot can be adapted to each other, and then the target operation corresponding to the second voice instruction is executed; if the text information converted from the second voice instruction cannot be obtained, then it can be considered that the second voice instruction cannot be recognized. At this time, the NLP model will output an error or abnormal status code or error message, then it can be considered that the keywords in each slot in the second voice instruction cannot be adapted to each other, so there is no need to respond to the second voice instruction.

[0074] For example, a mapping database can be pre-built, which includes the mapping relationship between the keyword in each slot and the keyword in the next slot. Only when each slot in the second voice instruction conforms to the mapping relationship in the mapping database can the text information corresponding to the second voice instruction be obtained, and the second voice instruction is considered to be recognizable; otherwise, the second voice instruction is considered to be unrecognizable.

[0075] For another example, the keywords in the second voice command can be filtered. Only when all the keywords in the second voice command exist in the preset keyword library can the text information corresponding to the second voice command be obtained, and the second voice command is considered to be recognizable. Otherwise, the second voice command is considered to be unrecognizable. In addition, the length of the second voice command can be limited. Only when the number of words in the second voice command is less than a preset threshold can the text information corresponding to the second voice command be obtained, and the second voice command is considered to be recognizable. Otherwise, the second voice command is considered to be unrecognizable.

[0076] As an optional embodiment, the first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After executing the target operation corresponding to the second voice instruction, the method further includes:

[0077] The P keywords are updated to the historical key information.

[0078] In this embodiment, in order to accurately inherit the semantics of the user in the above text, the historical key information needs to be updated in real time. Every time the user sends a voice command, the historical key information needs to be updated.

[0079] After executing the target operation corresponding to the second voice command, the P keywords and N keywords in the second voice command can be determined as key information in the user's most recent intention. Since the above-mentioned N keywords have been stored in the historical key information, the P keywords in the first voice command can be updated as historical key information.

[0080] By updating key information in this way, the accuracy of each semantic inheritance can be guaranteed, thereby ensuring that each generated execution action can accurately express the user's intention.

[0081] As an optional embodiment, the first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After determining whether the second voice instruction can be recognized, the method further includes:

[0082] In the case that the second voice instruction cannot be recognized, a prompt message is broadcasted, where the prompt message is used to prompt the user that the first voice instruction cannot be recognized.

[0083] In this embodiment, if the second voice command cannot be recognized, it can be considered that the contents of each slot in the second voice command cannot be adapted to each other, and the second voice command is not a semantically complete and clear voice command. Therefore, it cannot respond to the first voice command issued by the user, so the user's most recent first voice command is an invalid command.

[0084] In order to let the user know as soon as possible that the first voice command is an invalid command, a prompt message can be broadcast to the user through the speaker in the vehicle to remind the user that the voice command cannot be recognized by the system, so the vehicle will not respond to the first voice command. If the user wants to express the same intention again, he may need to resend the voice command in another way.

[0085] As an optional embodiment, the first voice instruction includes P slots, the P slots include P keywords corresponding to the P slots one by one, and after the prompt information is broadcast, the method further includes:

[0086] The P keywords are updated as historical key information, and the N keywords are deleted from the historical key information.

[0087] In this embodiment, since the second voice command cannot be recognized, that is, the P keywords in the first voice command and the N keywords in the historical key information cannot be adapted, it can be determined that the user's first voice command does not want to inherit the semantics of the above, that is, does not want to inherit the N keywords in the historical key information. Therefore, it is necessary to delete the existing N keywords in the historical key information and only update the P keywords in the first voice command to the historical key information.

[0088] As an optional embodiment, Figure 2As shown, the user's first voice command is "turn on the air conditioner". After executing the "turn on the air conditioner" operation, three slots can be configured. The three slots are "vehicle control object", "adjustment properties" and "adjustment method". The preset order is "vehicle control object", "adjustment properties" and "adjustment method". "Air conditioning" is stored as the keyword corresponding to the slot "vehicle control object" as historical key information. At the same time, the "adjustment properties" slot configured to match "air conditioning" can only be filled with the two keywords "temperature" and "air volume".

[0089] First, when the user issues the first voice command "adjust the temperature a little higher", the time domain technology (TDT) can be used to perform voice recognition on the first voice command to obtain the keyword "temperature" corresponding to the slot "adjustment attribute" and the keyword "increase" corresponding to the slot "adjustment method". Then, the keyword "air conditioning" corresponding to the slot "vehicle control object" is obtained from the historical key information. After determining that the "air conditioning" slot of the "vehicle control object" and the slot "temperature" of the "adjustment attribute" can be adapted, the three keys can be adjusted in a preset order. By sorting the keywords, the second voice command "raise the air conditioning temperature" can be obtained. Further, it can be determined whether the second voice command belongs to the voice function and supports context control, that is, whether the second voice command inherited through the context can be recognized. If it can be recognized, the target operation corresponding to "raise the air conditioning temperature" can be executed, and "temperature" and "raise" are stored in the historical key information; if it cannot be recognized, the above context will not be inherited, and the "air conditioning" in the "vehicle control object" slot will be deleted from the historical key information, and the user will be informed that the voice command "raise the temperature" issued by the user cannot be recognized.

[0090] Secondly, when the user issues the second first voice command "Adjust the seat too", the TDT can be used to perform voice recognition on the first voice command, and obtain the keyword "seat" corresponding to the slot "vehicle control object", and then obtain the keyword "temperature" corresponding to the slot "adjustment attribute" and the keyword "increase" corresponding to the slot "adjustment method" in the historical key information. The second voice command "increase seat temperature" can be obtained. If the command "increase seat temperature" can be recognized, the target operation corresponding to "increase seat temperature" can be executed, and "seat" can be stored in the historical key information, replacing "air conditioning" as the keyword of the slot "vehicle control object" in the historical key information.

[0091] Again, when the user issues the third first voice command "Adjust the air volume as well", TDT can be used to perform voice recognition on the first voice command to obtain the keyword "air volume" corresponding to the slot "adjustment attribute", and then obtain the keyword "seat" corresponding to the slot "vehicle control object" and the keyword "increase" corresponding to the slot "adjustment method" in the historical key information. The second voice command "Increase seat air volume" can be obtained. If the command "Increase seat air volume" can be recognized, the target operation corresponding to "Increase seat air volume" can be executed, and "air volume" can be stored in the historical key information, replacing "air volume" as the keyword for the slot "adjustment attribute" in the historical key information.

[0092] As an optional embodiment, Figure 3 As shown, the above-mentioned voice interaction method can be executed by applying a set voice interaction program. The voice interaction program can include three modules: a voice engine module, a dialogue management module, and a business management module. Among them, the voice engine can use TDT to recognize the user's voice command and determine whether the voice command is a weak semantic command or a strong semantic command.

[0093] If the voice command is a weak semantic command, the application dialogue management module manages the voice command, controls the weak semantic command to inherit the content of the previous text, combines the content of the previous text and the weak semantic command, and obtains a strong semantic command. The strong semantic command actually expresses the intention of the weak semantic command. After the strong semantic command is generated, the historical key information can be updated based on the strong semantic command. The business management module can identify the strong semantic command. If the strong semantic command can be identified, the target operation corresponding to the strong semantic command can be executed.

[0094] Based on the voice interaction method provided in the above embodiment, the present application also provides a specific implementation of the voice interaction device. Please refer to the following embodiment.

[0095] See first Figure 4 The voice interaction device 400 provided in the embodiment of the present application includes the following modules:

[0096] The receiving module 401 is used to receive a first voice command;

[0097] The acquisition module 402 is used to acquire N keywords corresponding to the N slots in a one-to-one manner from the pre-stored historical key information when the first voice instruction does not include the N preset slots, where N is a positive integer less than M, and M is the total number of the preset slots;

[0098] A generating module 403, configured to obtain a second voice instruction using the N keywords and the first voice instruction;

[0099] The execution module 404 is used to execute the target operation corresponding to the second voice instruction.

[0100] When there is a missing slot in the first voice command issued by the user, the device can obtain the missing N keywords from the pre-stored historical key information to supplement the unclear intention part of the current first voice command, use the first voice command and N keywords to generate a semantically complete and clear second semantic instruction, and execute the target operation corresponding to the second semantic instruction. Compared with the prior art, the present application can supplement the voice command in combination with the above content, combine the pre-stored historical information with the voice command issued by the user, and thus can more accurately and intelligently identify the user's intention through the voice command issued by the user.

[0101] As an implementation of the present application, the generation module 403 may also be used to:

[0102] Determine P slots included in the first voice instruction and P keywords in the P slots, where P is a positive integer less than M, and each slot in the P slots includes a keyword;

[0103] The P keywords and the N keywords are concatenated in the preset order to obtain the second voice instruction.

[0104] As an implementation of the present application, the execution module 404 may also be used to:

[0105] If the second voice instruction can be recognized, executing a target operation corresponding to the second voice instruction;

[0106] In which, when text information corresponding to the second voice instruction is obtained, it is determined that the second voice instruction can be recognized.

[0107] As an implementation of the present application, the execution module 404 may also be used to:

[0108] The P keywords are updated to the historical key information.

[0109] As an implementation of the present application, the execution module 404 may also be used to:

[0110] In the case that the second voice instruction cannot be recognized, a prompt message is broadcasted, where the prompt message is used to prompt the user that the first voice instruction cannot be recognized.

[0111] As an implementation of the present application, the execution module 404 may also be used to:

[0112] The P keywords are updated as historical key information, and the N keywords are deleted from the historical key information.

[0113] The voice interaction device provided in the embodiment of the present invention can implement each step in the above method embodiment, and will not be described again here to avoid repetition.

[0114] Figure 5 A schematic diagram of the hardware structure of the voice interaction device provided in an embodiment of the present application is shown.

[0115] The voice interaction device may include a processor 501 and a memory 502 storing computer program instructions.

[0116] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0117] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0118] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0119] The processor 501 implements any one of the voice interaction methods in the above embodiments by reading and executing computer program instructions stored in the memory 502.

[0120] In one example, the voice interaction device may further include a communication interface 503 and a bus 510. Figure 5As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0121] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0122] Bus 510 includes hardware, software or both, and the parts of voice interaction device are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0123] The voice interaction device can be based on the above embodiment, thereby realizing the combination of the above voice interaction method and device.

[0124] In addition, in combination with the voice interaction method in the above embodiment, the embodiment of the present application may provide a computer storage medium to implement it. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the voice interaction methods in the above embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. Among them, the above-mentioned computer-readable storage medium may include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc., which are not limited here.

[0125] In addition, an embodiment of the present application also provides a vehicle, including computer program instructions, which, when executed by a processor, can implement the steps and corresponding contents of the aforementioned method embodiment.

[0126] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0127] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0128] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0129] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices and vehicles according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0130] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A voice interaction method, characterized in that: The method comprises: receiving a first voice command; In the case where the first voice instruction does not include the preset N slots, obtaining N keywords corresponding to the N slots one by one from the pre-stored historical key information, where N is a positive integer less than M, and M is the total number of the preset slots; Obtain a second voice instruction using the N keywords and the first voice instruction; Execute a target operation corresponding to the second voice instruction.

2. The voice interaction method according to claim 1, characterized in that: The second voice instruction includes M slots arranged in a preset order, and the second voice instruction is obtained by using the N keywords and the first voice instruction, including: Determine P slots included in the first voice instruction and P keywords in the P slots, wherein P is a positive integer less than M, and each slot in the P slots includes a keyword; The P keywords and the N keywords are concatenated in the preset order to obtain the second voice instruction.

3. The voice interaction method according to claim 1, characterized in that: The executing the target operation corresponding to the second voice instruction includes: If the second voice instruction can be recognized, executing a target operation corresponding to the second voice instruction; In which, when text information corresponding to the second voice instruction is obtained, it is determined that the second voice instruction can be recognized.

4. The voice interaction method according to claim 3, characterized in that: The first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After executing the target operation corresponding to the second voice instruction, the method further includes: The P keywords are updated to the historical key information.

5. The voice interaction method according to claim 3, characterized in that: The first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After determining whether the second voice instruction can be recognized, the method further includes: In the case that the second voice instruction cannot be recognized, a prompt message is broadcasted, where the prompt message is used to prompt the user that the first voice instruction cannot be recognized.

6. The voice interaction method according to claim 5, characterized in that: The first voice instruction includes P slots, and the P slots include P keywords corresponding to the P slots one by one. After the prompt information is broadcast, the method further includes: The P keywords are updated as historical key information, and the N keywords are deleted from the historical key information.

7. A voice interaction device, characterized in that: The device comprises: A receiving module, used for receiving a first voice command; an acquisition module, configured to acquire N keywords corresponding to the N slots in a one-to-one manner from pre-stored historical key information when the first voice instruction does not include the N preset slots, where N is a positive integer less than M, and M is the total number of preset slots; A generating module, configured to obtain a second voice instruction using the N keywords and the first voice instruction; An execution module is used to execute a target operation corresponding to the second voice instruction.

8. A voice interaction device, characterized in that: The voice interaction device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the voice interaction method according to any one of claims 1 to 6 is implemented.

9. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, which, when executed by a processor, implement the voice interaction method according to any one of claims 1 to 6.

10. A vehicle, characterized in that: The vehicle includes computer program instructions, and when the computer program instructions are executed by a processor, the voice interaction method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Action determination method and device, computer equipment, readable storage medium and program product

    CN119993151A

  • Action determination method, device, computer device, readable storage medium and program product

    CN119993151B