A method, device and storage medium for eliminating speech recognition errors
By integrating the controlled load switch status in the speech recognition system to determine the speech information, the problem of recognition errors caused by similar pronunciation in speech recognition is solved, the success rate and stability are improved, and the user experience is improved.
Patent Information
- Application Number
- CN202010143791.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In actual speech recognition operations, when the voice information input by the user has similar pronunciation but different meaning, it leads to recognition errors, resulting in a low success rate of speech recognition and poor product stability.
When receiving voice information, the system makes a judgment based on the comprehensive controlled load switch status to determine whether the voice information contains command words and feature words, and outputs the voice recognition result directly or by querying the controlled load switch status based on the credibility judgment. Avoid recognition errors caused by similar pronunciations.
It effectively avoids speech recognition errors caused by similar pronunciation, improves the success rate of speech recognition and product stability, and improves user experience.
Smart Images

Figure CN111326155B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech technology, and in particular to a method, device and storage medium for eliminating speech recognition errors. Background Art
[0002] At present, using voice to control the switch of a device is a relatively common technical means. When voice recognition is performed, the voice information input by the user is matched with the voice recognition library of the device to achieve voice recognition. However, in actual operation, because the voice information input by the user to control the controlled load switch may have similar pronunciations but completely different meanings, the voice information input by the user and the voice recognition library of the device may have recognition errors, which makes the success rate of voice recognition low, resulting in low product stability and poor user experience. Summary of the invention
[0003] To solve the above problems, the purpose of the present invention is to provide a method, device and storage medium for eliminating speech recognition errors, which is used for the system to comprehensively judge the contents of the controlled load switch status switch storage unit when receiving the current input voice information and give the final speech recognition result.
[0004] The technical solution adopted by the present invention to solve the problem is:
[0005] In a first aspect, the present invention provides a method for eliminating speech recognition errors, the method comprising:
[0006] Receiving input voice information;
[0007] Determining whether the voice information contains a command word;
[0008] If the command word exists, querying the state of the controlled load switch;
[0009] According to the controlled load switch state, the speech recognition result information is output.
[0010] Furthermore, the voice information is voice information containing a feature word on or a feature word off.
[0011] Further, the controlled load switch state includes: whether the controlled load is in a working state;
[0012] If the controlled load is in a working state, the voice recognition result is to turn off the device; if the controlled load is in a non-working state, the voice recognition result is to turn on the controlled load.
[0013] Furthermore, after determining that the voice information contains the command word, the credibility of the feature words in the voice information is also determined. If the credibility is high, the controlled load switch status is not queried, and the system directly makes a judgment on the voice information; if the credibility is not high, the controlled load switch status is queried, and the system makes a judgment on the voice information based on the controlled load switch status.
[0014] Furthermore, before determining whether the voice information contains a command word, the system will determine whether the voice information contains a device wake-up word. If the voice information does not contain the device wake-up word, the system will remain in sleep mode.
[0015] Furthermore, after determining that the voice information contains the command word, the system will determine whether the voice information contains the device identification word. If the voice information contains the device identification word, the system will query the switch status of the controlled load; if the voice information does not contain the controlled load identification word, the voice information is determined to be invalid voice information, and the user is required to re-enter the command.
[0016] In a second aspect, the present invention provides a device for eliminating speech recognition errors, the device comprising:
[0017] A voice acquisition unit, used for acquiring voice information;
[0018] A speech recognition unit, used to recognize whether the speech information contains a command word;
[0019] A controlled load switch state storage unit, used for storing the current state of the load;
[0020] The speech recognition decision unit is used to give a speech recognition result of the speech information.
[0021] Furthermore, the device also includes:
[0022] A power processing module for supplying power to the controlled load and the auxiliary power supply;
[0023] An auxiliary power supply, used to supply power to the speech recognition unit, the controlled load switch state storage unit and the speech recognition decision unit;
[0024] A switch execution unit is used to control the controlled load according to the speech recognition result.
[0025] Further, the device comprises:
[0026] The speech recognition unit also includes:
[0027] A credibility ratio unit, used for determining the credibility ratio of the voice information;
[0028] A device wake-up unit, used to identify whether the voice information contains a device wake-up word;
[0029] A device identification unit, used to identify whether the voice information contains a device identification word;
[0030] The speech recognition library is used to store the command word, the device wake-up word and the device recognition word.
[0031] A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon, which, when executed by the one or more processors, cause the one or more processors to perform operations according to one or more of the methods of claims 1 to 5.
[0032] At least one embodiment of the present invention has the following beneficial effects: It can be seen from the above technical solution that the method for eliminating speech recognition errors provided in this specification is used to make a judgment based on the contents of the controlled load switch state switch storage unit when receiving the currently input voice information, thereby avoiding the situation where the voice information input by the user has similar pronunciation but completely different meaning, resulting in speech recognition errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The present invention will be further described below in conjunction with the accompanying drawings and examples.
[0034] Figure 1 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 1 of the present invention;
[0035] Figure 2 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 2 of the present invention;
[0036] Figure 3 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 3 of the present invention;
[0037] Figure 4 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 4 of the present invention;
[0038] Figure 5 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 5 of the present invention;
[0039] Figure 6 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 6 of the present invention;
[0040] Figure 7 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 7 of the present invention;
[0041] Figure 8 is a flow chart of a method for eliminating speech recognition errors provided by Embodiment 8 of the present invention;
[0042] Fig. 9 It is a structural schematic diagram of a device for eliminating speech recognition errors provided by Embodiment 9 of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other and are all within the protection scope of the present invention.
[0045] During voice recognition, the voice information input by the user is matched with the voice recognition library of the device to achieve voice recognition. However, in actual operation, the voice information input by the user may have similar pronunciation but completely different meaning, which may result in the voice information input by the user and the voice recognition library of the device being unable to recognize or being recognized incorrectly. This makes the success rate of voice recognition low, resulting in low product stability and poor user experience.
[0046] Based on this, the present invention provides a method, device and storage medium for eliminating speech recognition errors, which is used for when the system receives the current input voice information, comprehensively judges the content of the controlled load switch state storage unit and gives the final speech recognition result.
[0047] In this specification, the system includes but is not limited to a device for receiving speech, a speech recognition module, a controlled load switch state storage module, a speech recognition decision module and a switch execution module.
[0048] For ease of explanation, this specification assumes that the actual application field of this method is the field of light bulbs, the voice message input by the user is Hello, Turn on / off the light, and the controlled load is a light bulb, which has only two states: lighting and non-lighting.
[0049] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0050] Embodiment 1
[0051] Reference Figure 1Embodiment 1 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0052] Step S100, receiving input voice information.
[0053] In this embodiment, the device for receiving voice information of the system may be but is not limited to a microphone, which converts the voice information input by the user into a corresponding electrical signal and then inputs the electrical signal into the voice recognition module.
[0054] Step S200, determining whether the voice information contains a command word.
[0055] In this embodiment, the command word can be defined by the manufacturer or the user. On the assumption, the command word can be defined as Turn on / off. When the voice recognition module determines that the voice information contains Turn on / off, it provides a work instruction to the controlled load switch state storage module.
[0056] Furthermore, based on the above embodiment, the present invention also provides another method for determining whether voice information contains a command word.
[0057] In this embodiment, the command word includes an action word and a feature word, and both the action word and the feature word can be defined by a producer or a user. Based on the assumption, the command word can be defined as Turn on / off, the action word can be defined as Turn, and the feature word can be defined as on / off. When the speech recognition module recognizes that the speech information contains the action word Turn, the speech recognition module begins to recognize whether the action word Turn in the speech information contains the feature word on / off. If it does, it is considered that the speech information contains a command word, and a work instruction is provided to the controlled load switch state storage module. If not, it is considered that the speech information does not contain a command word, and the speech information is considered invalid.
[0058] Step S300, query the state of the controlled load switch.
[0059] Further, when the voice recognition module issues a working instruction, the controlled load switch state storage module begins to query the controlled load working state stored in the controlled load switch state storage module. The controlled load working state includes but is not limited to: whether the controlled load is in a working state. On the basis of assumption, whether the controlled load is in a working state represents whether the light bulb is in a lighting state.
[0060] Step S400, giving a speech recognition result according to the state of the controlled load switch state.
[0061] In this embodiment, there are multiple ways to realize the functions of the speech recognition module, the controlled load switch state storage module and the speech recognition decision module. For example, the functions of the speech recognition module, the controlled load switch state storage module and the speech recognition decision module can be realized by using a single-chip microcomputer, and the signal transmission path of the speech recognition module, the controlled load switch state storage module and the speech recognition decision module is the internal circuit of the single-chip microcomputer; for another example, the functions of the speech recognition module, the controlled load switch state storage module and the speech recognition decision module can also be realized by using physical entities, and the signal transmission of the speech recognition module, the controlled load switch state storage module and the speech recognition decision module is realized by using a signal transmission device connecting each module.
[0062] Further, if the controlled load is in a working state, the voice recognition result is to turn off the controlled load, and if the controlled load is in a non-working state, the voice recognition result is to turn on the controlled load.
[0063] In this embodiment, the controlled load switch state storage module stores the working state of the controlled load. On the assumption that the controlled load is a light bulb, the data stored in the controlled load switch state storage module is whether the light bulb is in a lighting state. If the light bulb is in a lighting state, the voice recognition result is to turn off the light bulb. If the light bulb is in a non-lighting state, the voice recognition result is to turn on the light bulb.
[0064] Further, according to the voice recognition result, the switch execution module performs corresponding operations on the controlled load.
[0065] In this embodiment, the speech recognition decision module outputs high and low levels to the switch execution module according to the speech recognition result, and then the switch execution module controls the controlled load.
[0066] Embodiment 2
[0067] Reference Figure 2 ,exist Figure 1 Based on the above, Embodiment 2 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0068] Step S500, determining the credibility of the feature words.
[0069] In this embodiment, credibility determination refers to calculating various credibility effective feature values in speech information in a certain manner. The characteristic of credibility effective features is that they can clearly distinguish correct recognition results from incorrect recognition results. In this embodiment, credibility effective features can be but are not limited to features based on normalized likelihood, N best candidates, hypothesis density, segment length, language model, and posterior probability. The calculation method of the feature values of these credibility effective features has high reliability.
[0070] Furthermore, if the credibility is high, the controlled load switch state storage module is not queried, and the speech recognition decision module directly makes a decision on the speech information; if the credibility is not high, the controlled load switch state storage module is queried, and the speech recognition decision module makes a decision on the speech information according to the state of the controlled load switch state storage module.
[0071] In this embodiment, the user or manufacturer can determine the standard for determining the credibility based on actual needs. Based on the assumption, the system will make a credibility judgment on the voice information input by the user, that is, for Hello, Turnon / off the light, the feature word is on / off, the system will make a credibility judgment on on / off. If the credibility of on / off is high, the voice recognition result is determined to be turning on or off the light bulb. If the credibility of on / off is not high, the controlled load switch state storage module is queried, and the voice recognition judgment module judges the voice information according to the state of the controlled load switch state storage module.
[0072] Embodiment 3
[0073] Reference Figure 3 ,exist Figure 1 Based on the above, Embodiment 3 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0074] Step S600, determining whether the voice information contains a device wake-up word.
[0075] In this embodiment, the device wake-up word can be defined by the user or manufacturer according to actual needs. On the assumption that the device wake-up word is "Hello", when the system recognizes that there is a device wake-up word in the voice information, it continues to recognize whether there is a command word in the voice information. If the system recognizes that there is no device wake-up word in the voice information, the system enters a sleep state.
[0076] Embodiment 4
[0077] Reference Figure 4 ,exist Figure 1Based on the above, Embodiment 4 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0078] Step S700, determining whether the voice information includes a device recognition word.
[0079] In this embodiment, the device identification word can be defined by the user or manufacturer according to actual needs. On the assumption that the device identification word is "light", when the system recognizes that there is a device identification word in the voice information, the system queries the controlled load switch status storage module. If the system recognizes that there is no device identification word in the voice information, the system determines that the voice information is illegal.
[0080] Embodiment 5
[0081] Reference Figure 5 ,exist Figure 3 and Figure 4 Based on the above, Embodiment 5 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0082] Step S100, receiving input voice information.
[0083] Step S600, determining whether the voice information contains a device wake-up word.
[0084] Step S200, determining whether the voice information contains a command word.
[0085] Step S700, determining whether the voice information includes a device recognition word.
[0086] Step S300, query the state of the controlled load switch.
[0087] Step S400, providing a speech recognition result according to the controlled load switch state.
[0088] Example 6
[0089] Reference Figure 6 ,exist Figure 2 and Figure 4 Based on the above, Embodiment 6 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0090] Step S100, receiving input voice information.
[0091] Step S200, determining whether the voice information contains a command word.
[0092] Step S700, determining whether the voice information includes a device recognition word.
[0093] Step S500, determining the credibility of the feature words.
[0094] Step S300, querying the controlled load switch state storage module.
[0095] Step S400: According to the state of the controlled load switch, the speech recognition decision module gives a speech recognition result.
[0096] Embodiment 7
[0097] Reference Figure 7 ,exist Figure 2 and Figure 3 Based on the above, Embodiment 7 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0098] Step S100, receiving the currently input voice information.
[0099] Step S600, determining whether the voice information contains a device wake-up word.
[0100] Step S200, determining whether the voice information contains a command word.
[0101] Step S500, determining the credibility of the feature words.
[0102] Step S300, query the state of the controlled load switch.
[0103] Step S400, providing a speech recognition result according to the controlled load switch state.
[0104] Embodiment 8
[0105] Reference Figure 8 ,exist Figure 2 , Figure 3 and Figure 4 Based on the above, Embodiment 8 of the present invention provides a method for eliminating speech recognition errors, which is applied to a system for eliminating speech recognition errors, wherein one embodiment includes but is not limited to the following steps:
[0106] Step S100, receiving input voice information.
[0107] Step S600, determining whether the voice information contains a device wake-up word.
[0108] Step S200, determining whether the voice information contains a command word.
[0109] Step S700, determining whether the voice information includes a device recognition word.
[0110] Step S500, determining the credibility of the feature words.
[0111] Step S300, query the state of the controlled load switch.
[0112] Step S400, providing a speech recognition result according to the controlled load switch state.
[0113] Embodiment 9
[0114] Reference Fig. 9 , a device for eliminating speech recognition errors, the device comprising:
[0115] The voice acquisition unit 100 is used to acquire voice information;
[0116] A speech recognition unit 103, used to recognize whether the speech information contains a command word;
[0117] A controlled load switch state storage unit 104, used to store the current state of the controlled load 107;
[0118] The speech recognition decision unit 105 is used to provide a speech recognition result of the speech information.
[0119] Furthermore, the device also includes:
[0120] A power processing module 101 is used to supply power to a controlled load 107 and an auxiliary power supply 102;
[0121] Auxiliary power supply 102, used to supply power to speech recognition unit 103, controlled load switch state storage unit 104 and speech recognition decision unit 105;
[0122] The switch execution unit 106 is used to control the controlled load 107 according to the speech recognition result.
[0123] In this embodiment, the power processing module 101 rectifies and steps down the input external current, and the output current can be but is not limited to a low-voltage direct current, and then supplies power to the controlled load 107 and the auxiliary power supply 102. The auxiliary power supply 102 then rectifies and steps down the input current to obtain a suitable current. When the device obtains a speech recognition result, the speech recognition decision unit 105 outputs high and low levels to the switch execution unit 106 according to the speech recognition result, and then the switch execution unit 106 controls the controlled load 107. On the basis of the assumption that the speech recognition result is to turn on the light bulb, the speech recognition decision unit 105 outputs a high level, and the switch execution unit 106 controls the light bulb to start lighting.
[0124] Furthermore, the speech recognition unit also includes:
[0125] A credibility ratio unit, used to determine the credibility ratio of voice information;
[0126] A device wake-up unit, used to identify whether the voice information contains a device wake-up word;
[0127] A device identification unit, used to identify whether the voice information contains a device identification word;
[0128] Speech recognition library, used to store command words, device wake-up words, and device recognition words.
[0129] The device can be implemented by software, hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the CPU (Central Process Unit) of the device reading the corresponding computer program instructions into the memory and running them. From the hardware level, in addition to the conventional CPU, memory and storage, the device usually also includes conventional hardware such as capacitors, resistors and transformers.
[0130] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically detailed in the implementation process of the corresponding steps in the above-mentioned method. For relevant parts, please refer to the partial description of the method embodiment, which will not be repeated here.
[0131] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, i.e., may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] Corresponding to the above method embodiment, the embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored. When these computer programs are executed by a processor, they execute the various steps of a method for eliminating speech recognition errors in the embodiment of this specification. For a detailed description of the various steps of the above method for eliminating speech recognition errors, please refer to the previous content and will not be repeated.
[0133] Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory media such as modulated data signals and carrier waves.
[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, product or apparatus that includes 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, product or apparatus. In the absence of further restrictions, the elements defined by the sentence "comprises one..." do not exclude the presence of other identical elements in the process, method, product or apparatus that includes the elements.
[0135] The above is only a preferred embodiment of the present invention. The present invention is not limited to the above implementation mode. As long as the technical effect of the present invention is achieved by the same means, it should belong to the protection scope of the present invention.
Claims
1. A method for eliminating speech recognition errors, characterized in that: include: Receiving input voice information; Determining whether the voice information contains a command word, wherein the command word includes an action word and a feature word on, or includes an action word and a feature word off; If the command word exists, querying the state of the controlled load switch; Outputting speech recognition result information according to the controlled load switch state; After determining that the voice information contains the command word, the credibility of the feature words in the voice information is judged. If the credibility is high, the controlled load switch state is not queried, and the system directly judges the voice information; if the credibility is not high, the controlled load switch state is queried, and the system judges the voice information based on the controlled load switch state.
2. A method for eliminating speech recognition errors according to claim 1, characterized in that: Outputting speech recognition result information according to the controlled load switch state, specifically including: If the controlled load is in a working state, the voice recognition result information is to turn off the device; if the controlled load is in a non-working state, the voice recognition result information is to turn on the controlled load.
3. A method for eliminating speech recognition errors according to claim 1, characterized in that: Before determining whether the voice information contains a command word, the system will determine whether the voice information contains a device wake-up word. If the voice information does not contain the device wake-up word, the system will remain in sleep mode.
4. A method for eliminating speech recognition errors according to claim 1, characterized in that: After determining that the voice information contains the command word, the system will determine whether the voice information contains the device identification word. If the voice information contains the device identification word, the system will query the switch status of the controlled load; if the voice information does not contain the controlled load identification word, the voice information is determined to be invalid voice information, and the user is required to re-enter the command.
5. A device for eliminating speech recognition errors, characterized in that: include: A voice acquisition unit, used for acquiring voice information; A speech recognition unit, used to recognize whether the speech information contains a command word, wherein the command word includes an action word and a feature word on, or includes an action word and a feature word off; A credibility ratio unit, used to determine the credibility of the voice information; A controlled load switch state storage unit, used for storing the current state of the load; The speech recognition judgment unit is used to judge the credibility of the speech information according to the feature words in the speech information after judging that the speech information contains the command word. If the credibility is high, the controlled load switch state is not queried, and the system directly judges the speech information; if the credibility is not high, the controlled load switch state is queried, and the system judges the speech information according to the controlled load switch state, and gives the speech recognition result of the speech information.
6. The device for eliminating speech recognition errors according to claim 5, characterized in that: The device also includes: A power processing module for supplying power to the controlled load and the auxiliary power supply; The auxiliary power supply is used to supply power to the speech recognition unit, the controlled load switch state storage unit and the speech recognition decision unit; A switch execution unit is used to control the controlled load according to the speech recognition result.
7. The device for eliminating speech recognition errors according to claim 5, characterized in that: The speech recognition unit also includes: A device wake-up unit, used to identify whether the voice information contains a device wake-up word; A device identification unit, used to identify whether the voice information contains a device identification word; The speech recognition library is used to store the command word, the device wake-up word and the device recognition word.
8. A storage medium for eliminating speech recognition errors, which is coupled to one or more processors and has instructions stored thereon, which when executed by the one or more processors, cause the one or more processors to perform operations according to one or more of the methods described in claims 1 to 4.
Citation Information
Patent Citations
Networking voice recognition lamp and voice recognition lamp control system thereof
CN106879130A
Speech dual-mode fan control method
CN108806672A
A multi-word speech control on-off device method and a system thereof
CN109215634A
Smart home control method and device, terminal and computer readable storage medium
CN110687817A
Two segmentation syllable controlling means
CN206179509U
