Voice interaction method, device, equipment and computer storage medium
By turning on recording in the smart device and using local and cloud servers to analyze the voice content and directly end the recording execution operation, the problem of low voice interaction efficiency is solved and faster response and more efficient interaction are achieved.
Patent Information
- Application Number
- CN201910604759.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-07-05
AI Technical Summary
The voice interaction efficiency of existing smart devices is low due to the fixed recording time, and the interaction between the user and the device takes a long time.
The smart device turns on recording during voice interaction, obtains the voice content input by the user and its text recognition results, and uses the local command word list and the cloud server to perform instruction analysis on the text recognition results, and selects the analysis results that meet the preset conditions as instructions. Directly end the recording and perform the corresponding operations.
It shortens the time of voice interaction, improves the efficiency of voice interaction, and avoids the problem of smart devices responding to instructions only after the fixed recording time is over.
Smart Images

Figure CN112185371B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of Internet technology, and in particular to a voice interaction method, device, equipment and computer storage medium. [Background technology]
[0002] In the prior art, when performing voice interaction, the smart device needs to first obtain the voice content input by the user, and then recognize the obtained voice content before performing the corresponding operation. However, the existing smart devices usually adopt a method of pre-setting a fixed recording time to obtain the voice content input by the user. Therefore, the prior art has the following disadvantages: even if the user completes the voice input before the end of the recording, the smart device will still maintain the recording state until the recording time ends, resulting in a long time for the voice interaction between the user and the smart device, and the efficiency of the voice interaction is low. [Summary of the invention]
[0003] In view of this, the present invention provides a method, apparatus, device and computer storage medium for voice interaction, which are used to shorten the time of voice interaction and improve the efficiency of voice interaction.
[0004] The technical solution adopted by the present invention to solve the technical problem is to provide a method for voice interaction, which includes: the smart device starts recording when performing voice interaction, obtains the voice content input by the user and its corresponding text recognition result; uses a local command word list and a cloud server to perform instruction parsing on the text recognition result, and selects the parsed result that meets the preset selection conditions as the instruction; ends the recording and executes the operation corresponding to the instruction.
[0005] According to a preferred embodiment of the present invention, obtaining the voice content input by the user and its corresponding text recognition result includes: determining the end time of the user's voice input; obtaining the voice content between the start time and the end time of the recording as the voice content input by the user; and converting the voice content into text to obtain the text recognition result.
[0006] According to a preferred embodiment of the present invention, the selecting the analysis result satisfying the preset selection condition as the instruction comprises: selecting the analysis result with a faster return speed from the two analysis results as the instruction.
[0007] According to a preferred embodiment of the present invention, using a local command word list to perform instruction parsing on the text recognition result includes: matching the text recognition result in the local command word list to determine the command word that matches the text recognition result; and obtaining the instruction corresponding to the determined command word as the parsing result.
[0008] According to a preferred embodiment of the present invention, matching the text recognition result in a local command word list to determine the command word that matches the text recognition result includes: calculating the semantic similarity between the text recognition result and each command word in the local command word list; and taking the command word whose semantic similarity meets a preset matching condition as the command word that matches the text recognition result.
[0009] According to a preferred embodiment of the present invention, the local command word list is at least one of a preset command word list and a dynamic command word list.
[0010] According to a preferred embodiment of the present invention, the preset command word list is pre-established in the following manner: recording the text corresponding to the voice content input by the user each time; determining each text that meets the preset frequency condition as a command word, and establishing a preset command word list based on the determined command words.
[0011] According to a preferred embodiment of the present invention, the dynamic command word list is established in real time by: determining each clickable option in the current page; determining a command word according to the text corresponding to each clickable option; and establishing a dynamic command word list corresponding to the current page according to the determined command word.
[0012] The technical solution adopted by the present invention to solve the technical problem is to provide a voice interaction device, which is located in a smart device and includes: an acquisition unit, which is used for the smart device to start recording when performing voice interaction, and obtain the voice content input by the user and its corresponding text recognition result; a parsing unit, which is used to use a local command word list and a cloud server to perform instruction parsing on the text recognition result, and select the parsing result that meets the preset selection conditions as the instruction; a processing unit, which is used to end the recording and execute the operation corresponding to the instruction.
[0013] According to a preferred embodiment of the present invention, when acquiring the voice content input by the user and its corresponding text recognition result, the acquisition unit specifically performs the following steps: determining the end time of the user's voice input; acquiring the voice content between the start time and the end time of the recording as the voice content input by the user; and performing text conversion on the voice content to obtain the text recognition result.
[0014] According to a preferred embodiment of the present invention, when the parsing unit selects the parsing result satisfying the preset selection condition as the instruction, the parsing unit specifically performs: selecting the parsing result with a faster return speed from the two parsing results as the instruction.
[0015] According to a preferred embodiment of the present invention, when the parsing unit uses the local command word list to perform instruction parsing on the text recognition result, the parsing unit specifically executes: matching the text recognition result in the local command word list to determine the command word that matches the text recognition result; and obtaining the instruction corresponding to the determined command word as the parsing result.
[0016] According to a preferred embodiment of the present invention, when the parsing unit matches the text recognition result in the local command word list and determines the command word that matches the text recognition result, the parsing unit specifically performs the following steps: calculating the semantic similarity between the text recognition result and each command word in the local command word list; and taking the command word whose semantic similarity meets the preset matching condition as the command word that matches the text recognition result.
[0017] According to a preferred embodiment of the present invention, the local command word list is at least one of a preset command word list and a dynamic command word list.
[0018] According to a preferred embodiment of the present invention, the device also includes an establishment unit for pre-establishing the preset command word list in the following manner: recording the text corresponding to the voice content input by the user each time; determining each text that meets the preset frequency condition as a command word, and establishing a preset command word list based on the determined command words.
[0019] According to a preferred embodiment of the present invention, the parsing unit is also used to establish the dynamic command word list in real time by: determining each clickable option in the current page; determining the command word according to the text corresponding to each clickable option; and establishing the dynamic command word list corresponding to the current page according to the determined command word.
[0020] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the method is implemented when the processor executes the program.
[0021] A computer-readable storage medium stores a computer program, wherein the program implements the above method when executed by a processor.
[0022] A computer program product comprises a computer program, wherein the computer program implements the above method when executed by a processor.
[0023] It can be seen from the above technical scheme that after the recording is started by voice interaction on the smart device, the present invention uses the local command word list and the cloud server to perform instruction parsing on the text recognition results corresponding to the voice content input by the user, and after obtaining the analysis result that meets the preset selection conditions as the instruction, directly ends the recording and executes the corresponding operation, thereby avoiding the problem that the smart device can only respond to the instruction after the fixed recording time is over, thereby shortening the time required for voice interaction and improving the efficiency of voice interaction.
Brief Description of the Drawings
[0024] Figure 1 A flow chart of a voice interaction method provided by one embodiment of the present invention;
[0025] Figure 2 A schematic diagram of a TV series details page in a smart TV provided by an embodiment of the present invention;
[0026] Figure 3 A structural diagram of a voice interaction device provided by an embodiment of the present invention;
[0027] Figure 4 A block diagram of a computer system / server provided in accordance with an embodiment of the present invention. [Specific implementation method]
[0028] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0030] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0031] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0032] Figure 1 A flow chart of a voice interaction method provided by an embodiment of the present invention is as follows: Figure 1 As shown in , the method includes:
[0033] In 101, the smart device starts recording during voice interaction to obtain the voice content input by the user and its corresponding text recognition result.
[0034] In this step, recording is started when the smart device interacts with the user by voice, and after obtaining the voice content input by the user, the text recognition result corresponding to the voice content is obtained.
[0035] Among them, the smart device in the present invention is a device that has the ability to interact with users through voice, such as smart phones, smart home appliances, smart cars, smart wearable devices, etc.
[0036] Specifically, this step can adopt the following methods when obtaining the voice content input by the user and its corresponding text recognition result: determine the end time of the user's voice input, for example, VAD (Voice Activity Detection) technology can be used to detect whether the user has ended the voice input; obtain the voice content between the start time of the recording and the determined end time as the voice content input by the user; convert the obtained voice content into text to obtain a text recognition result.
[0037] In 102, the text recognition result is parsed using the local command word list and the cloud server, and the parsed result that meets the preset selection condition is selected as the instruction.
[0038] In this step, the text recognition result obtained in step 101 is parsed using the local command word list and the cloud server to obtain the parsing result returned by the local command word list and the cloud server for the text recognition result, and finally the parsing result that meets the preset conditions is selected as the instruction. The instructions in this step include but are not limited to query instructions, control instructions, etc.
[0039] It is understandable that if this step cannot obtain the local command word list and the analysis results returned by the cloud server, the smart device will follow the conventional voice interaction process and obtain the corresponding instructions based on the voice content input by the user after the recording is completed.
[0040] Specifically, the analysis result that meets the preset selection condition in this step can be the analysis result with a faster return speed among the two analysis results. In other words, this step can further improve the voice interaction speed of the terminal device by selecting the analysis result with a faster return speed as the instruction.
[0041] For example, if the parsing result is returned first using the local command word list, this step selects the parsing result as the instruction and discards the parsing result returned by the cloud server; similarly, if the parsing result is returned first using the cloud server, this step selects the parsing result as the instruction and discards the parsing result returned by the local command word list.
[0042] It is understandable that the parsing result that meets the preset conditions in this step can also be the parsing result with higher confidence among the two parsing results. For example, when the local command word list and the cloud server return the parsing results at the same time, this step can use the parsing result with higher confidence among the two parsing results as the instruction and discard the other parsing result with lower confidence.
[0043] In addition, since the data processing performance of the cloud server is more powerful, when the local command word list and the cloud server return the parsing results at the same time, this step can directly use the parsing results returned by the cloud server as instructions and discard the parsing results returned by the local command word list.
[0044] Specifically, when using the local command word list to perform instruction parsing on the text recognition result, this step can adopt the following method: match the acquired text recognition result in the local command word list to determine the command word that matches the text recognition result; obtain the instruction corresponding to the determined command word as the parsing result.
[0045] In this step, when matching the text recognition result in the local command word list, the following method can be used: calculating the semantic similarity between the text recognition result and each command word in the local command word list; and taking the command word whose semantic similarity meets the preset matching condition as the command word that matches the text recognition result. In this step, the preset matching condition can be the command word with the highest calculated result of semantic similarity.
[0046] Specifically, the local command word list in this step may be at least one of a preset command word list and a dynamic command word list, wherein the preset command word list is pre-established according to the user's input habits, and the dynamic command word list is established in real time according to the page the user is currently on.
[0047] For the preset command word list, this step can be pre-established in the following manner: record the text corresponding to the voice content input by the user each time; determine each text that meets the preset frequency condition as a command word; and establish a preset command word list based on the determined command words.
[0048] The preset frequency condition in this step may be text whose input frequency exceeds a preset threshold; or may be text whose input frequency ranks in the top N places, where N is a positive integer greater than or equal to 1.
[0049] For example, if the user often says "pause", "next", "louder" and other voice contents during daily voice interaction with the terminal device, the texts corresponding to the above voice contents can be used as command words to establish a preset command word list.
[0050] For the dynamic command word list, this step can be established in real time in the following manner: determine each clickable option in the current page, where the clickable options are options in the current page that can be selected by the user for operation; determine the command word based on the text corresponding to each determined clickable option, where the server corresponding to the smart device will save the clickable options and their corresponding texts in each page of the smart device, so this step can obtain the text corresponding to the clickable option by accessing the corresponding server; establish a dynamic command word list corresponding to the current page based on the determined command word.
[0051] For example, Figure 2 A schematic diagram of a TV series details page in a smart TV according to an embodiment of the present invention is provided. Figure 2 As shown in , if the clickable options on the page are "Play Episode 1", "Favorites", "Purchase Membership", "Selected Collections", "Plot Perspective", "Cast", "Highlights", "Guess You Like", etc., then the command words for the page can be determined based on the text corresponding to the above clickable options, thereby establishing a dynamic command word list for the current page.
[0052] It is understandable that, in this step, when determining the command words according to the texts corresponding to the determined clickable options, the texts corresponding to the clickable options can be directly used as the command words. This step can also process the texts corresponding to the clickable options according to the preset strategy, and use the processing results of the texts as the command words. For example, the command word corresponding to "collection" can be "click to collect", "add to collection" or "open collection".
[0053] In addition, the local command word list in this step may include not only the command words but also the instructions corresponding to the command words. Therefore, after obtaining the command words that match the text recognition result, this step obtains the instructions corresponding to the matched command words from the local command word list.
[0054] For example, if the local command word list includes the four command words "return", "back", "go back" and "exit", then the local command word list also includes the control instruction "return" corresponding to the above four command words, that is, no matter whether the user utters the voice of "return" or "back", the corresponding control instruction is "return".
[0055] It is understandable that this step can also set up an instruction set, which includes each instruction and its corresponding command word. That is, after determining the command word through the local command word list, this step obtains the instruction corresponding to the determined command word according to the instruction set.
[0056] For example, if there is a "next page" control instruction in the instruction set, and if the command words to which the control instruction belongs include "turn down", "next page" and "turn to the next page", then no matter whether the user utters the voice of "turn down" or "next page", the corresponding control instruction is "next page".
[0057] In 103, the recording is ended and an operation corresponding to the instruction is performed.
[0058] In this step, after obtaining the corresponding instruction according to step 102, the smart device ends recording and directly performs the corresponding operation according to the obtained instruction. For example, after the smart device ends recording, it performs a query operation according to the query instruction or performs a control operation according to the control instruction.
[0059] That is to say, after obtaining the instruction, this step does not need to waste the remaining recording time, and directly ends the recording to quickly respond to the obtained instruction, thereby shortening the time required for voice interaction and improving the efficiency of voice interaction.
[0060] Figure 3 A structure diagram of a voice interaction device provided by an embodiment of the present invention, such as Figure 3 As shown in , the apparatus is located in a smart device, and includes: an acquisition unit 31 , a parsing unit 32 , a processing unit 33 and an establishment unit 34 .
[0061] The acquisition unit 31 is used to start recording during voice interaction and acquire the voice content input by the user and its corresponding text recognition result.
[0062] The acquisition unit 31 starts recording when the smart device interacts with the user by voice, and after acquiring the voice content input by the user, acquires the text recognition result corresponding to the voice content.
[0063] Specifically, when acquiring the voice content input by the user and its corresponding text recognition result, the acquisition unit 31 can adopt the following method: determine the end time of the user's voice input; acquire the voice content between the start time of the recording and the determined end time as the voice content input by the user; perform text conversion on the acquired voice content to obtain a text recognition result.
[0064] The parsing unit 32 is used to perform instruction parsing on the text recognition result using the local command word list and the cloud server, and select the parsing result that meets the preset selection condition as the instruction.
[0065] The parsing unit 32 uses the local command word list and the cloud server to parse the text recognition result obtained by the acquisition unit 31, so as to obtain the local command word list and the parsing result returned by the cloud server for the text recognition result, and finally selects the parsing result that meets the preset conditions as the instruction. The instructions in the parsing unit 32 include but are not limited to query instructions, control instructions, etc.
[0066] It is understandable that if the parsing unit 32 cannot obtain the local command word list and the parsing results returned by the cloud server, the smart device will obtain the corresponding instructions based on the voice content input by the user after the recording is completed according to the conventional voice interaction process.
[0067] Specifically, the parsing result that meets the preset selection condition in the parsing unit 32 can be the parsing result with a faster return speed among the two parsing results. In other words, the parsing unit 32 can further improve the voice interaction speed of the terminal device by selecting the parsing result with a faster return speed as the instruction.
[0068] It is understandable that the parsing result that meets the preset conditions in the parsing unit 32 can also be the parsing result with higher confidence in the two parsing results. In addition, since the data processing performance of the cloud server is more powerful, when the local command word list and the cloud server return the parsing results at the same time, the parsing unit 32 can also directly use the parsing result returned by the cloud server as an instruction and discard the parsing result returned by the local command word list.
[0069] Specifically, when the parsing unit 32 uses the local command word list to perform instruction parsing on the text recognition result, the following method can be adopted: matching the acquired text recognition result in the local command word list to determine the command word that matches the text recognition result; and obtaining the instruction corresponding to the determined command word as the parsing result.
[0070] When the parsing unit 32 matches the text recognition result in the local command word list, the parsing unit 32 may adopt the following method: calculating the semantic similarity between the text recognition result and each command word in the local command word list; and taking the command word whose semantic similarity satisfies the preset matching condition as the command word that matches the text recognition result. The preset matching condition in the parsing unit 32 may be the command word with the highest calculated result of semantic similarity.
[0071] Specifically, the local command word list in the parsing unit 32 may be at least one of a preset command word list and a dynamic command word list. The preset command word list is pre-established according to the user's input habits, while the dynamic command word list is established in real time according to the page the user is currently on.
[0072] The preset command word list is pre-established by the establishment unit 34 in the following manner: recording the text corresponding to the voice content input by the user each time; determining each text that meets the preset frequency condition as a command word; and establishing the preset command word list based on the determined command words.
[0073] The preset frequency condition in the establishment unit 34 may be text whose input frequency exceeds a preset threshold; or may be text whose input frequency ranks in the top N places, where N is a positive integer greater than or equal to 1.
[0074] The dynamic command word list is established in real time by the parsing unit 32 in the following manner: determine each clickable option in the current page; determine a command word based on the text corresponding to each determined clickable option; and establish a dynamic command word list corresponding to the current page based on the determined command word.
[0075] It is understandable that when the parsing unit 32 determines the command words according to the texts corresponding to the determined clickable options, it can directly use the texts corresponding to the clickable options as the command words. The parsing unit 32 can also process the texts corresponding to the clickable options according to a preset strategy and use the processing results of the texts as the command words.
[0076] In addition, the local command word list in the parsing unit 32 may include instructions corresponding to each command word in addition to each command word. Therefore, after obtaining the command word that matches the text recognition result, the parsing unit 32 obtains the instruction corresponding to the matched command word from the local command word list.
[0077] It is understandable that the parsing unit 32 may also set an instruction set, which includes various instructions and their corresponding command words. That is, after the parsing unit 32 determines the command word through the local command word list, it obtains the instruction processing unit 33 corresponding to the determined command word according to the instruction set, so as to end the recording and execute the operation corresponding to the instruction.
[0078] After obtaining the corresponding instruction according to the parsing unit 32, the processing unit 33 controls the smart device to end the recording and directly performs the corresponding operation according to the obtained instruction.
[0079] That is to say, after obtaining the instruction, the processing unit 33 no longer needs to waste the remaining recording time and directly ends the recording to quickly respond to the obtained instruction, thereby shortening the time required for voice interaction and improving the efficiency of voice interaction.
[0080] like Figure 4 As shown, computer system / server 012 is in the form of a general-purpose computing device. Components of computer system / server 012 may include, but are not limited to: one or more processors or processing units 016, system memory 028, and bus 018 connecting different system components (including system memory 028 and processing unit 016).
[0081] Bus 018 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0082] The computer system / server 012 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer system / server 012, including volatile and non-volatile media, removable and non-removable media.
[0083] System memory 028 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 030 and / or cache memory 032. Computer system / server 012 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 034 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 018 via one or more data medium interfaces. The memory 028 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0084] A program / utility 040 having a set (at least one) of program modules 042 may be stored, for example, in the memory 028. Such program modules 042 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 042 generally perform the functions and / or methods of the embodiments described herein.
[0085] The computer system / server 012 may also communicate with one or more external devices 014 (e.g., keyboard, pointing device, display 024, etc.). In the present invention, the computer system / server 012 communicates with external radar devices, and may also communicate with one or more devices that enable a user to interact with the computer system / server 012, and / or communicate with any device that enables the computer system / server 012 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 022. In addition, the computer system / server 012 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 020. As shown in the figure, the network adapter 020 communicates with other modules of the computer system / server 012 through a bus 018. It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with computer system / server 012, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0086] The processing unit 016 executes various functional applications and data processing by running the programs stored in the system memory 028, such as implementing the method flow provided by the embodiment of the present invention.
[0087] With the development of time and technology, the meaning of medium is becoming more and more extensive, and the propagation path of computer programs is no longer limited to tangible media, but can also be downloaded directly from the network, etc. Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, - but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (non-exhaustive list) include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing programs, which can be used by or in combination with instruction execution systems, devices or devices.
[0088] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0089] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0090] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0091] By utilizing the technical solution provided by the present invention, after starting recording by performing voice interaction on a smart device, the text recognition result corresponding to the voice content input by the user is parsed using a local command word list and a cloud server, and after obtaining the parsed result that meets the preset selection conditions as an instruction, the recording is directly ended and the corresponding operation is executed, thereby avoiding the problem that the smart device can only respond to instructions after a fixed recording time ends, thereby shortening the time required for voice interaction and improving the efficiency of voice interaction.
[0092] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation.
[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0094] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0095] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0096] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for voice interaction, It is characterized in that The method comprises: The smart device starts recording during voice interaction to obtain the voice content input by the user and its corresponding text recognition results; respectively using a local command word list and a cloud server to perform command analysis on the text recognition results, and selecting the analysis results that meet the preset selection conditions as instructions, wherein the local command word list includes a dynamic command word list; After completing the selection of the instruction, the recording is ended, and an operation corresponding to the instruction is performed; The step of selecting the analysis result satisfying the preset selection condition as the instruction includes: selecting the analysis result with a faster return speed from the two analysis results as the instruction; The dynamic command word list is established in real time by: Determine the clickable options on the current page; Determine a command word according to the text corresponding to each clickable option; A dynamic command word list corresponding to the current page is established according to the determined command words.
2. The method according to claim 1, It is characterized in that The obtaining of the voice content input by the user and the corresponding text recognition result includes: Determine the end time of the user's voice input; Acquire the voice content between the start time and the end time of the recording as the voice content input by the user; The speech content is converted into text to obtain the text recognition result.
3. The method according to claim 1, It is characterized in that Using the local command word list to perform command parsing on the text recognition result includes: Matching the text recognition result in a local command word list to determine a command word that matches the text recognition result; An instruction corresponding to the determined command word is acquired as a parsing result.
4. The method according to claim 3, It is characterized in that The step of matching the text recognition result in a local command word list to determine a command word that matches the text recognition result includes: Calculating the semantic similarity between the text recognition result and each command word in the local command word list; The command words whose semantic similarity meets the preset matching condition are taken as the command words matching the text recognition result.
5. The method according to claim 1, It is characterized in that The local command word list further includes a preset command word list.
6. The method according to claim 5, It is characterized in that The preset command word list is pre-established in the following manner: Record the text corresponding to each voice content input by the user; Each text satisfying a preset frequency condition is determined as a command word, and a preset command word list is established according to the determined command words.
7. A voice interaction device, It is characterized in that The device comprises: An acquisition unit is used to enable recording when the smart device is performing voice interaction, and to acquire the voice content input by the user and its corresponding text recognition result; A parsing unit, used to perform instruction parsing on the text recognition result using a local command word list and a cloud server respectively, and select the parsing result satisfying a preset selection condition as an instruction, wherein the local command word list includes a dynamic command word list; A processing unit, configured to terminate the recording after completing the selection of the instruction and perform an operation corresponding to the instruction; When the parsing unit selects the parsing result that meets the preset selection condition as the instruction, the parsing unit specifically performs: selecting the parsing result with a faster return speed from the two parsing results as the instruction; The parsing unit is also used to establish the dynamic command word list in real time by: Determine the clickable options on the current page; Determine a command word according to the text corresponding to each clickable option; A dynamic command word list corresponding to the current page is established according to the determined command words.
8. The device according to claim 7, It is characterized in that When acquiring the voice content input by the user and the corresponding text recognition result, the acquisition unit specifically performs: Determine the end time of the user's voice input; Acquire the voice content between the start time and the end time of the recording as the voice content input by the user; The speech content is converted into text to obtain the text recognition result.
9. The device according to claim 7, It is characterized in that When the parsing unit uses the local command word list to perform instruction parsing on the text recognition result, the parsing unit specifically performs: Matching the text recognition result in a local command word list to determine a command word that matches the text recognition result; An instruction corresponding to the determined command word is acquired as a parsing result.
10. The device according to claim 9, It is characterized in that When the parsing unit matches the text recognition result in the local command word list and determines the command word matching the text recognition result, the parsing unit specifically performs: Calculating the semantic similarity between the text recognition result and each command word in the local command word list; The command words whose semantic similarity meets the preset matching condition are taken as the command words matching the text recognition result.
11. The device according to claim 7, It is characterized in that The local command word list further includes a preset command word list.
12. The device according to claim 11, It is characterized in that The device further comprises a establishing unit, configured to establish the preset command word list in advance by: Record the text corresponding to each voice content input by the user; Each text satisfying a preset frequency condition is determined as a command word, and a preset command word list is established according to the determined command words.
13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
15. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Speech recognition method and device
CN106653013A
Voice control mode switching method and device and equipment with device
CN107424607A
Interface intelligent interaction control method, device, system and storage medium
CN107507615A
Method and device for matching voice recognition text with command word text
CN107564528A
An automobile voice control method, system and device based on a cloud end and a plurality of command words
CN107657950A
