Hot word recognition method, device, medium and electronic device
By using the difference between the speech decoding path score and the hot word excitation score in hot word recognition, the problem of high misrecognition rate and improved recall rate in the existing technology is solved, and higher recognition accuracy and robustness are achieved. sex.
Patent Information
- Application Number
- CN202011529691.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-12-22
AI Technical Summary
When the existing technology uses empirical probabilistic intervention in hot word recognition, it often results in a high misrecognition rate and an increase in the recall rate, and the path score is abnormally small, which affects the recognition accuracy.
By decoding the voice information input by the user, the path score of each decoding path and the hot word excitation score of the hot word are obtained. The hot word excitation score is related to the adaptive excitation probability of the word segmentation. Based on the path score and the hot word excitation score Differences are used to identify, and adaptive excitation probability is used to improve the robustness of hot word recognition.
It improves the accuracy of hot word recognition and enhances the robustness of recognition. It is suitable for recognition intervention of any hot word and does not cause abnormal path scores. It is small and avoids an increase in recall rate.
Smart Images

Figure CN112634904B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of speech recognition, and in particular, to a hot word recognition method, device, medium and electronic device. Background Art
[0002] In the related art, in the process of probabilistic intervention on hot words, an empirical probability enhancement is usually performed on the hot words that appear. This method often produces many side effects. For example, some common words appear frequently, resulting in abnormally small path scores of the decoding paths containing such hot words, and the recall rate of hot words becomes higher, but the false recognition rate is greatly increased. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a hot word recognition method, comprising: performing voice decoding on voice information input by a user to obtain a path score of each decoding path; obtaining a hot word excitation score of each hot word on the decoding path, wherein the hot word excitation score is related to an adaptive excitation probability of each word in the hot word; and recognizing the hot word based on the difference between the path score and the hot word excitation score.
[0005] In a second aspect, the present disclosure provides a hot word recognition device, including: a path score acquisition module, used to perform voice decoding on voice information input by a user to obtain a path score of each decoding path; a hot word excitation score acquisition module, used to obtain a hot word excitation score of each hot word on the decoding path, wherein the hot word excitation score is related to the adaptive excitation probability of each word in the hot word; a hot word recognition module, used to recognize the hot word based on the difference between the path score and the hot word excitation score.
[0006] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.
[0007] In a fourth aspect, the present disclosure provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.
[0008] By adopting the above technical solution, since the voice information input by the user is firstly voice decoded to obtain the path score of each decoding path, and then the hot word excitation score of the hot word on each decoding path is obtained, wherein the hot word excitation score is related to the adaptive excitation probability of each word in the hot word, and finally the hot word is identified based on the difference between the path score and the hot word excitation score, in this way, the adaptive excitation probability of the hot word can be used to adaptively excite the hot word recognition, thereby improving the robustness of the hot word recognition intervention and greatly improving the accuracy of the hot word recognition. Moreover, it is applicable to the recognition intervention of any hot word, and will not cause the path score containing the hot word to become abnormally small, so it will not increase the recall rate of the hot word.
[0009] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0011] Figure 1 It is a flowchart of a hot word recognition method according to an embodiment of the present disclosure.
[0012] Figure 2 A schematic diagram showing the adaptive excitation probability of word segmentation under different scale values.
[0013] Figure 3 It is a schematic block diagram of a hot word recognition device according to an embodiment of the present disclosure.
[0014] Figure 4 It is a structural schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0016] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0017] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0019] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0020] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0021] Figure 1 FIG. 1 is a flow chart of a hot word recognition method according to an embodiment of the present disclosure. Figure 1 As shown, the method includes the following steps S11 to S13.
[0022] In step S11, voice decoding is performed on the voice information input by the user to obtain a path score of each decoding path.
[0023] Usually, before speech recognition, all speech layer information is combined into a language model. Then, during speech decoding, it is performed on the decoding space composed of the language model. For example, the speech information input by the user traverses each decoding path in the decoding space to obtain the path score of each decoding path.
[0024] The present disclosure does not limit the construction of the language model, the construction of the decoding space, the calculation method of the path score of the decoding path, etc.
[0025] In step S12, a hot word excitation score of a hot word on each decoding path is obtained, wherein the hot word excitation score is related to the adaptive excitation probability of each word in the hot word.
[0026] In the present disclosure, a hot word refers to a word that needs to be recognized more easily than other words in speech recognition. For example, if the personal name "Jiali" is determined as a hot word, then in speech recognition, when encountering the speech "jia li" regarding a personal name, it needs to be more easily recognized as "Jiali" rather than "Jiali".
[0027] In the present disclosure, the hot word incentive score refers to intervening in the recognition probability of a hot word so that the recognition probability of the hot word is enhanced to increase the probability that the hot word is correctly recognized.
[0028] In the present disclosure, the adaptive incentive probability means that the incentive probability is adaptively adjusted rather than fixed.
[0029] In one example, the hot word incentive scores of hot words on each decoding path can be obtained in the following manner.
[0030] First, segment the hot word. That is, according to the word formation rules of the language, divide the hot word into individual smallest unit words. For example, after segmenting the hot word "Jiali", it is divided into the following two segments: "Jia", "Li".
[0031] Then, calculate the adaptive incentive probability of each segment.
[0032] The adaptive incentive probability can be calculated in the following manner. That is, first calculate the hot word path probability of each segment; then, use the adaptive adjustment coefficient corresponding to each hot word path probability to adaptively adjust the hot word path probability to obtain the adaptive incentive probability of each segment, where the smaller the hot word path probability, the larger the adaptive adjustment coefficient corresponding to the hot word path probability.
[0033] Still taking the hot word "Jiali" as an example. Suppose the hot word path probabilities of the two segments "Jia" and "Li" of the hot word "Jiali" are P1 and P2 respectively, and the adaptive adjustment coefficients corresponding to these two hot word path probabilities are a and b respectively. Then, the adaptive incentive probability of the segment "Jia" is a×P1, and the adaptive incentive probability of the segment "Li" is b×P2.
[0034] The hot word path probability of each segment can be calculated by the following formula:
[0035] P1 = P(W1| <s>) (1)
[0036] P i =P(W i | <s>W1W2…W i-1 ) (2)
[0037] Among them, P1 represents the hot word path probability of the first participle W1 in the hot word; <s>Indicates the beginning of a hot word. This is a virtual concept and does not require a specific symbol to correspond to. As long as it is the beginning of a word, this symbol can be added <s>; P i represents the i-th word segmentation Wi in the hot word, where i ≥ 2. i The hot word path probability of, i ≥ 2.
[0038] Still taking the hot word "Jiali" as an example. The hot word path probability of the word segmentation "Jia" is P1 = P(Jia| <s>), the hot word path probability of the word segment "立" is P2 = P(立| <s>Good).
[0039] The adaptive adjustment coefficient corresponding to each hot word path probability is as follows:
[0040]
[0041] Among them, the adaptive adjustment coefficient i represents the adaptive adjustment coefficient corresponding to the hot word path probability of the i-th word segment W i in the hot word, i ≥ 1; scale represents a scaling factor within the range of 0 to 1, and its value can be adjusted according to the actual situation.
[0042] Still taking the hot word "Jiali" as an example. The adaptive adjustment coefficient corresponding to the hot word path probability of the word segment "Jia" is And so on for the others.
[0043] In addition, in formula (3), the principle of the adaptive adjustment of the hot word path probability by the adaptive adjustment coefficient is: first take the inverse of the hot word path probability of the word segment, and then perform smoothing processing using a smoothing function (such as an exponential function), so as to achieve the smooth adaptive adjustment of the hot word path probability of the word segment. Since scale is a scaling factor within the range of 0 to 1, it can be seen that the closer scale is to 0, the more the probability is excited, the closer scale is to 1, the less the probability is excited, and it will not exceed 1; if scale is set to 1, then the probability of each word segment word in the hot word is maximized to 1, and in this case, the negative log cost of this hot word is 0. Figure 2 Shows a schematic diagram of the adaptive excitation probability of the word segment under different scale values. In practical applications, the size of the scale value can be set according to the actual situation.
[0044] By configuring the adaptive adjustment coefficient in this way, it is possible to perform proportional probability intervention on the hot word path probability of each word segment, that is, the smaller the hot word path probability of a certain word segment, the greater the degree of improvement of the hot word path probability of this word segment. For example, assume P(W1| <s>)=0.01,P(W2| <s>W1)=0.0001, which means that the word segment W2 is a relatively uncommon word, and its hot word path probability needs to be intervened with a greater probability, that is, its hot word path probability needs to be improved to a greater extent.
[0045] Then, after obtaining the adaptive excitation probability of each word segment, the adaptive excitation probabilities of all word segmentations can be multiplied.
[0046] Then, the multiplied value is converted into a hot word incentive score. For example, the multiplied value is subjected to negative log processing to obtain the hot word incentive score.
[0047] Through such configuration, the adaptive adjustment coefficient of each segmentation can be used to adaptively adjust the hot word path probability of each segmentation to obtain an adaptive incentive probability, and then the adaptive incentive probabilities of each segmentation are multiplied and converted into a hot word incentive score, thereby obtaining an incentive score for intervening in the recognition of the hot word.
[0048] In one embodiment, the calculation algorithm for the hot word excitation score described above can be built into the speech recognition decoder. In this way, during the speech decoding process of the speech recognition decoder, the calculation algorithm can be used to automatically calculate the hot word excitation scores of the hot words on each decoding path.
[0049] In another embodiment, a finite-state transducer (FST) graphing algorithm can be used to construct an FST graph with the hot word excitation scores calculated by the calculation algorithm described above, and then the FST graph can be externally attached to the speech recognition decoder. In this way, during the speech decoding process of the speech recognition decoder, the hot word excitation scores of the hot words on each decoding path can be automatically obtained from the FST graph, without the need to use the calculation algorithm described above to calculate the hot word excitation scores of the hot words again, thereby saving the amount of calculation.
[0050] In step S13, the hot word is identified based on the difference between the path score and the hot word excitation score.
[0051] In one embodiment, the path score of each decoding path is subtracted from the hot word excitation score on the decoding path to obtain a difference, and the hot word on the decoding path with the smallest difference is used as the hot word recognition result.
[0052] For example, the voice information input by the user is the person name "jia li". There are three decoding paths in the decoding space. The decoding result on the first decoding path is "家里" (home), its path score is 70, and the hot word excitation score is 10. The decoding result on the second decoding path is "佳丽" (beautiful woman), its path score is 80, and the hot word excitation score is 25. The decoding result on the third decoding path is "佳立", its path score is 90, and the hot word excitation score is 60. Since the difference between the path score and the hot word excitation score of the third decoding path is the smallest, the final hot word recognition result is "佳立".
[0053] By adopting the above technical solution, first, the voice information input by the user is subjected to voice decoding to obtain the path score of each decoding path, and then the hot word excitation score of the hot word on each decoding path is obtained. Among them, the hot word excitation score is related to the adaptive excitation probability of each word segment in the hot word. Finally, based on the difference between the path score and the hot word excitation score, the hot word is recognized. In this way, the adaptive excitation probability of the hot word can be used to perform adaptive excitation on hot word recognition, improving the robustness of hot word recognition intervention and greatly improving the accuracy of hot word recognition. Moreover, it is applicable to the recognition intervention of any hot word and will not cause the path score containing the hot word to become abnormally small, so it will not increase the recall rate of hot words.
[0054] Figure 3 It is a schematic block diagram of a hot word recognition device according to an embodiment of the present disclosure. As Figure 3 shown, the device includes: a path score acquisition module 31, configured to perform voice decoding on the voice information input by the user to obtain the path score of each decoding path; a hot word excitation score acquisition module 32, configured to obtain the hot word excitation score of the hot word on each decoding path, where the hot word excitation score is related to the adaptive excitation probability of each word segment in the hot word; and a hot word recognition module 33, configured to recognize the hot word based on the difference between the path score and the hot word excitation score.
[0055] By adopting the above technical solution, first, the voice information input by the user is subjected to voice decoding to obtain the path score of each decoding path, and then the hot word excitation score of the hot word on each decoding path is obtained. Among them, the hot word excitation score is related to the adaptive excitation probability of each word segment in the hot word. Finally, based on the difference between the path score and the hot word excitation score, the hot word is recognized. In this way, the adaptive excitation probability of the hot word can be used to perform adaptive excitation on hot word recognition, improving the robustness of hot word recognition intervention and greatly improving the accuracy of hot word recognition. Moreover, it is applicable to the recognition intervention of any hot word and will not cause the path score containing the hot word to become abnormally small, so it will not increase the recall rate of hot words.
[0056] Optionally, obtaining the hot word excitation score of the hot word on each decoding path includes: segmenting the hot word; calculating the adaptive excitation probability of each segmented word; multiplying the adaptive excitation probabilities of all segmented words; and converting the multiplied value into the hot word excitation score.
[0057] Optionally, the obtaining of the hot word excitation score of the hot word on each decoding path comprises: obtaining the hot word excitation score of the hot word on each decoding path from a finite automatic state machine diagram about the hot word constructed by a finite automatic state machine diagram algorithm;
[0058] Among them, the finite state machine diagram is pre-constructed in the following way: segment the hot words; calculate the adaptive excitation probability of each segmentation; multiply the adaptive excitation probabilities of all segmentations; convert the multiplied value into a hot word excitation score; through the finite state machine diagram algorithm, the hot word excitation score is used to construct a finite state machine diagram about the hot words.
[0059] Optionally, the calculation of the adaptive excitation probability of each segmentation includes: calculating the hot word path probability of each segmentation; adaptively adjusting the hot word path probability using the adaptive adjustment coefficient corresponding to each hot word path probability to obtain the adaptive excitation probability of each segmentation, wherein the smaller the hot word path probability, the larger the adaptive adjustment coefficient corresponding to the hot word path probability.
[0060] Optionally, the calculation of the hot word path probability of each word segment is implemented by the following formula:
[0061] P1=P(W1| <s>)
[0062] P i =P(W i | <s>W1W2…W i-1 )
[0063] Among them, P1 represents the hot word path probability of the first participle W1 in the hot word; <s>Indicates the beginning of a hot word; P i Represents the i-th participle W in the hot word i The hot word path probability, i ≥ 2.
[0064] Optionally, the adaptive adjustment coefficient corresponding to each hot word path probability is:
[0065]
[0066] Among them, the adaptive adjustment coefficient i Represents the i-th participle W in the hot word i The hot word path probability P i The corresponding adaptive adjustment coefficient, i≥1; scale represents a scaling factor in the range of 0 to 1.
[0067] Optionally, converting the multiplied value into a hot word incentive score includes: performing negative log processing on the multiplied value to obtain the hot word incentive score.
[0068] Optionally, the identifying the hot word based on the difference between the path score and the hot word excitation score includes: taking the hot word on the decoding path with the smallest difference as the hot word identification result.
[0069] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0070] like Figure 4 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0071] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0072] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0073] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium 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. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0074] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0075] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0076] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: performs voice decoding on the voice information input by the user to obtain the path score of each decoding path; obtains the hot word excitation score of each hot word on the decoding path, wherein the hot word excitation score is related to the adaptive excitation probability of each word in the hot word; and identifies the hot word based on the difference between the path score and the hot word excitation score.
[0077] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, 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 cases involving 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).
[0078] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0079] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the module itself.
[0080] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0081] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0082] According to one or more embodiments of the present disclosure, Example 1 provides a hot word recognition method, including: performing voice decoding on voice information input by a user to obtain a path score for each decoding path; obtaining a hot word excitation score for each hot word on the decoding path, wherein the hot word excitation score is related to an adaptive excitation probability of each word in the hot word; and recognizing the hot word based on the difference between the path score and the hot word excitation score.
[0083] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein obtaining the hot word excitation score of each hot word on the decoding path includes: segmenting the hot word; calculating the adaptive excitation probability of each segmentation; multiplying the adaptive excitation probabilities of all segmentations; and converting the multiplied value into the hot word excitation score.
[0084] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the obtaining of the hot word excitation score of the hot word comprises: obtaining the hot word excitation score of each hot word on the decoding path from a finite automatic state machine diagram about the hot word constructed by a finite automatic state machine diagram algorithm;
[0085] The finite state machine diagram is pre-constructed in the following manner: segmenting the hot words; calculating the adaptive excitation probability of each segmentation; multiplying the adaptive excitation probabilities of all segmentations; converting the multiplied value into the hot word excitation score; and constructing a finite state machine diagram about the hot word using the hot word excitation score through a finite state machine diagram algorithm.
[0086] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 2 or 3, wherein the calculation of the adaptive excitation probability of each word segmentation includes: calculating the hot word path probability of each word segmentation; adaptively adjusting the hot word path probability using the adaptive adjustment coefficient corresponding to each of the hot word path probabilities to obtain the adaptive excitation probability of each word segmentation, wherein the smaller the hot word path probability, the larger the adaptive adjustment coefficient corresponding to the hot word path probability.
[0087] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein the calculation of the hot word path probability of each word segment is implemented by the following formula:
[0088] P1=P(W1| <s>)
[0089] P i =P(W i | <s>W1W2…W i-1 )
[0090] Wherein, P1 represents the hot word path probability of the first participle W1 in the hot word; <s>Indicates the beginning of the hot word; P i Represents the i-th participle W in the hot word i The hot word path probability, i ≥ 2.
[0091] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, wherein the adaptive adjustment coefficient corresponding to each of the hot word path probabilities is:
[0092]
[0093] Among them, the adaptive adjustment coefficient i Represents the i-th participle W in the hot word i The hot word path probability P i The corresponding adaptive adjustment coefficient, i≥1; scale represents a scaling factor in the range of 0 to 1.
[0094] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 2 or 3, wherein converting the multiplied numerical value into the hot word incentive score includes: performing negative log processing on the multiplied numerical value to obtain the hot word incentive score.
[0095] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 1, wherein the hot word is identified based on the difference between the path score and the hot word excitation score, including: taking the hot word on the decoding path with the smallest difference as the hot word identification result.
[0096] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0097] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0098] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.< / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s> < / s>
Claims
1. A hot word recognition method, characterized in that: include: Perform voice decoding on the voice information input by the user to obtain a path score for each decoding path; Obtaining a hot word excitation score of each hot word on the decoding path, wherein the hot word excitation score is related to the adaptive excitation probability of each word in the hot word; Based on the difference between the path score and the hot word incentive score, identifying the hot word; The step of identifying the hot word based on the difference between the path score and the hot word excitation score includes: The hot word on the decoding path with the smallest difference is taken as the hot word recognition result.
2. The method according to claim 1, characterized in that: The step of obtaining the hot word incentive score of each hot word on the decoding path includes: Segmenting the hot words; Calculate the adaptive excitation probability for each word segment; Multiply the adaptive excitation probabilities of all word segments; The multiplied value is converted into the hot word incentive score.
3. The method according to claim 1, characterized in that The obtaining of the hot word excitation score of each hot word on the decoding path comprises: obtaining the hot word excitation score of each hot word on the decoding path from a finite automatic state machine diagram about the hot word constructed by a finite automatic state machine diagram algorithm; The finite state machine diagram is pre-constructed in the following manner: Segmenting the hot words; Calculate the adaptive excitation probability for each word segment; Multiply the adaptive excitation probabilities of all word segments; Convert the multiplied value into the hot word incentive score; The hot word excitation score is used to construct a finite state machine graph about the hot word through a finite state machine graph algorithm.
4. The method according to claim 2 or 3, characterized in that: The step of calculating the adaptive excitation probability of each word segment includes: Calculate the hot word path probability of each segmentation; The hot word path probability is adaptively adjusted using the adaptive adjustment coefficient corresponding to each of the hot word path probabilities to obtain an adaptive excitation probability for each word segment, wherein the smaller the hot word path probability is, the larger the adaptive adjustment coefficient corresponding to the hot word path probability is.
5. The method according to claim 4, characterized in that The calculation of the hot word path probability of each word segment is achieved by the following formula: P1=P(W1| <s>)< / s> <s> P i =P(W i | <s>W1W2…W 1-i )< / s> <s> Wherein, P1 represents the hot word path probability of the first participle W1 in the hot word; <s>Indicates the beginning of the hot word; P i Represents the i-th participle W in the hot word i The hot word path probability, i ≥ 2.< / s> <s> 6. The method according to claim 4, characterized in that The adaptive adjustment coefficient corresponding to each of the hot word path probabilities is: Among them, the adaptive adjustment coefficient i Represents the i-th participle W in the hot word i The hot word path probability P i The corresponding adaptive adjustment coefficient, i≥1; scale represents a scaling factor in the range of 0 to 1.
7. The method according to claim 2 or 3, characterized in that: The step of converting the multiplied value into the hot word incentive score includes: The value obtained by multiplication is subjected to negative log processing to obtain the hot word incentive score.
8. A hot word recognition device, characterized in that: include: A path score acquisition module is used to perform voice decoding on the voice information input by the user to obtain the path score of each decoding path; A hot word incentive score acquisition module, used to acquire the hot word incentive score of each hot word on the decoding path, wherein the hot word incentive score is related to the adaptive incentive probability of each word in the hot word; A hot word recognition module, used for recognizing the hot word based on the difference between the path score and the hot word excitation score; The step of identifying the hot word based on the difference between the path score and the hot word excitation score includes: taking the hot word on the decoding path with the smallest difference as the hot word identification result.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7. < / s> < / s> < / s>
Citation Information
Patent Citations
Voice recognition method and system
CN102592595A
Method and system for improving accuracy of speech recognition
CN103903619A
Speech recognition method, device and apparatus
CN109523991A
Speech recognition method, device and equipment, and storage medium
CN110176230A
Method, device and equipment for establishing character recognition model and computer storage medium
CN110378346A
