Coding node processing method, device, computer equipment and storage medium
By determining the target threshold based on the utilization of the current encoding node and cutting redundant nodes in the decoding graph, the problem of low response timeliness caused by redundant encoding nodes in speech recognition is solved, and more efficient decoding path selection and speech recognition are achieved. Speed increase.
Patent Information
- Application Number
- CN202110178750.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-02-09
AI Technical Summary
Existing speech recognition technology has a large number of coding node redundancies in the decoding process, resulting in low response timeliness and affecting the efficiency of decoding path selection.
By determining the utilization of the current coding node as a reference for cropping, the target threshold is dynamically and adaptively determined to avoid redundancy of coding nodes and improve the rationality and efficiency of cropping.
It effectively improves the utilization of encoding nodes, improves the response timeliness of speech recognition, and saves about 70% of decoding search time while ensuring decoding accuracy.
Smart Images

Figure CN113808594B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech recognition technology, and in particular to a coding node processing method, device, computer equipment and storage medium. Background Art
[0002] With the continuous development of deep learning, the accuracy and speed of speech recognition are constantly improving. In a quiet environment, the accuracy of speech recognition in standard accents and common vocabulary scenarios has exceeded 95%, which means that the speech recognition technology in related technologies has already possessed language recognition capabilities similar to those of humans. However, in actual applications, the problem of speech recognition response being slow is often encountered.
[0003] The decoding method based on weighted finite state transducers (WFST) is usually combined with an acoustic model. In speech recognition, the hidden Markov finite state transducers (FST), context FST, pronunciation dictionary FST and language model FST are first constructed into a decoding graph. Then, according to the acoustic model score output by the acoustic model, a matching search is performed in the decoding graph to obtain the decoding result.
[0004] In practical applications, the decoding graph contains a large number of encoding nodes and decoding paths. The decoding process is to perform matching searches on the decoding graph in chronological order. At each time point, there will be a large number of encoding nodes as candidates. Each decoding node corresponds to a large number of decoding paths passed to the next moment. As time passes, the number of nodes will increase. Therefore, some pruning methods are needed to control the growth of the number of decoding graph nodes.
[0005] In related technologies, cumulative beam pruning is usually adopted, that is, the beam value is subtracted from the score of the decoding path with the highest current probability as a threshold, and the coding nodes with scores less than the threshold are pruned, or histogram pruning is adopted, for example, the maximum activation number of coding nodes is set, and only a certain number of coding nodes are retained at each time point.
[0006] In these methods, after the coding nodes in the decoding graph are pruned, there will still be a large amount of node redundancy, which will affect the efficiency of selecting the decoding path and cause the response timeliness of speech recognition to be low. Summary of the invention
[0007] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0008] To this end, the purpose of this application is to propose a coding node processing method, device, computer equipment and storage medium, which can effectively improve the rationality of clipping, effectively avoid redundancy of coding nodes, and effectively improve the utilization rate of coding nodes in speech recognition, thereby ensuring the efficiency of subsequent decoding path selection and improving the response timeliness of speech recognition.
[0009] To achieve the above-mentioned purpose, the coding node processing method proposed in the first aspect embodiment of the present application, wherein the coding node is used for speech recognition, includes: determining a current coding node, wherein the current coding node is a coding node to be matched at the current time when a decoding graph is used to decode speech data; performing target processing on the current coding node according to a target threshold, wherein the target threshold is determined based on the utilization rate of the current coding node.
[0010] The coding node processing method proposed in the first aspect of the embodiment of the present application determines the current coding node, which is the coding node to be matched at the current time when the decoding graph is used to decode the speech data, and performs target processing on the current coding node according to the target threshold, wherein the target threshold is determined according to the utilization rate of the current coding node. Since the utilization rate of the current coding node is used as a reference for cropping, the rationality of cropping can be effectively improved, the redundancy of coding nodes can be effectively avoided, and the utilization rate of coding nodes in speech recognition can be effectively improved, thereby ensuring the selection efficiency of subsequent decoding paths and improving the response timeliness of speech recognition.
[0011] To achieve the above-mentioned purpose, the coding node processing device proposed in the second aspect of the embodiment of the present application, wherein the coding node is used for speech recognition, includes: a first determination module, used to determine the current coding node, wherein the current coding node is the coding node to be matched at the current time when the speech data is decoded using a decoding graph; a processing module, used to perform target processing on the current coding node according to a target threshold, wherein the target threshold is determined based on the utilization rate of the current coding node.
[0012] The coding node processing device proposed in the second aspect of the embodiment of the present application determines the current coding node, which is the coding node to be matched at the current time when the decoding graph is used to decode the speech data, and performs target processing on the current coding node according to the target threshold, wherein the target threshold is determined according to the utilization rate of the current coding node. Since the utilization rate of the current coding node is used as a reference for cropping, the rationality of cropping can be effectively improved, the redundancy of coding nodes can be effectively avoided, and the utilization rate of coding nodes in speech recognition can be effectively improved, thereby ensuring the efficiency of selecting subsequent decoding paths and improving the response timeliness of speech recognition.
[0013] The third aspect embodiment of the present application proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the coding node processing method proposed in the first aspect embodiment of the present application is implemented.
[0014] The fourth aspect embodiment of the present application proposes a non-temporary computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the coding node processing method proposed in the first aspect embodiment of the present application.
[0015] The fifth aspect embodiment of the present application proposes a computer program product. When the instruction processor in the computer program product is executed, the coding node processing method proposed in the first aspect embodiment of the present application is executed.
[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0018] Figure 1 It is a flowchart of a coding node processing method proposed in an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of a decoding diagram in the related art;
[0020] Figure 3 is a flowchart of a coding node processing method proposed in another embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of the speech recognition process in the embodiment of the present application;
[0022] Figure 5 A schematic diagram of a process flow of a coding node processing method in an embodiment of the present application;
[0023] Figure 6 is a flowchart of a coding node processing method proposed in another embodiment of the present application;
[0024] Figure 7 is a flowchart of a coding node processing method proposed in another embodiment of the present application;
[0025] Figure 8 is a schematic diagram of the structure of a coding node processing device proposed in an embodiment of the present application;
[0026] Fig. 9 is a structural diagram of a coding node processing device proposed in another embodiment of the present application;
[0027] Fig.10 A block diagram of an exemplary computer device suitable for implementing embodiments of the present application is shown. DETAILED DESCRIPTION
[0028] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be construed as limiting the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.
[0029] Figure 1 It is a flowchart of a coding node processing method proposed in an embodiment of the present application.
[0030] It should be noted that the executor of the coding node processing method of this embodiment is a coding node processing device, which can be implemented by software and / or hardware. The device can be configured in an electronic device, and the electronic device may include but is not limited to a terminal, a server, etc.
[0031] The coding node in the embodiment of the present application is a node in the decoding graph that assists in speech recognition.
[0032] like Figure 1 As shown, the following steps are included.
[0033] In step S101, a current coding node is determined. The current coding node is a coding node to be matched at the current time when the decoding graph is used to decode the speech data.
[0034] The embodiments of the present application are specifically applied in the process of performing speech recognition on speech data, wherein the speech data is, for example, a segment of speech, which usually contains audio, sound, and semantic features. Speech recognition is to recognize the audio, sound, and semantic features in the speech data, and there is no limitation on this.
[0035] In the process of speech recognition, Figure 2 As shown, Figure 2 Schematic diagram of a decoding graph in the related art. The decoding graph contains a large number of encoding nodes and decoding paths, and the decoding process is to perform matching searches on the decoding graph in chronological order. At each time point, there are a large number of encoding nodes as candidates.
[0036] Therefore, in the embodiment of the present application, the current coding node is adopted as follows Figure 2 As shown ( Figure 2 (This is for illustration only and not intended to be limiting) When the decoding diagram decodes the voice data, the coding node to be matched at the current time, that is to say, the present application can first analyze whether there is redundancy in the coding node before matching it, and perform corresponding processing on the coding node before matching to improve the rationality of cropping and avoid redundancy in the coding node.
[0037] It is understandable that at each time point, there will be a large number of coding nodes as candidates. In fact, in the embodiment of the present application, the number of coding nodes to be matched at the current time can be multiple, and corresponding processing can be performed on each coding node.
[0038] Optionally, in some embodiments, Figure 3 As shown, Figure 3 is a flowchart of a coding node processing method proposed in another embodiment of the present application, which, after determining the current coding node, further includes:
[0039] S301: If the speech data frame matching the current coding node belongs to the first two frames of the speech data, a target threshold is determined according to a preset activation number and a preset clustering value.
[0040] The target threshold is the threshold value used as a reference when performing target processing on the current coding node. The target threshold can be, for example, a cost threshold value corresponding to the cost output by the acoustic model, wherein the cost is the function value corresponding to the cost function output by the acoustic model when performing signal processing and feature extraction on the speech data frame corresponding to the current coding node (the cost function is associated with the acoustic model).
[0041] That is to say, the speech data may be composed of multiple speech data frames. In the process of speech recognition, the speech data frames of each frame are matched frame by frame, so as to obtain the decoding result from the decoding graph matching.
[0042] In the above embodiment, if the voice data frame matching the current coding node belongs to the first two frames of the voice data, the target threshold is determined according to the preset activation number and the preset cluster value, wherein the preset activation number can be specifically, for example, a preset maximum activation number and a minimum activation number, and the preset cluster value can be the beam value in the cumulative beam pruning in the related art, and then, some mathematical operations can be performed on the preset activation number and the preset cluster value, and the value obtained by the mathematical operation is used as the target threshold.
[0043] S302: If the voice data frame matching the current coding node does not belong to the first two frames of the voice data, determine the utilization rate corresponding to the current coding node and use the utilization rate as the target threshold.
[0044] Figure 3 In the illustrated embodiment, a method is provided for determining a target threshold using a utilization rate corresponding to a current coding node. Specifically, if a voice data frame matching the current coding node belongs to the first two frames of voice data, the target threshold is determined based on a preset activation number and a preset clustering value. If the voice data frame matching the current coding node does not belong to the first two frames of voice data, the utilization rate corresponding to the current coding node is determined, and the utilization rate is used as the target threshold. This can effectively assist in reducing redundant coding nodes, and can reduce redundancy to a large extent based on simple calculations, with better adaptation performance.
[0045] In some other embodiments, if the speech data frame matching the current coding node does not belong to the first two frames of speech data, the utilization rate corresponding to the current coding node is determined, and the utilization rate is used as the target threshold.
[0046] Optionally, determining the utilization rate corresponding to the current coding node may be by determining at least one first coding node corresponding to the current time from a decoding graph, wherein the current coding node belongs to at least one first coding node; determining at least one second coding node corresponding to a previous time point from the decoding graph, wherein the previous time point is a time point in the coding time sequence that is earlier than the current time, and the previous time point and the current time point are adjacent in the coding time sequence; determining the utilization rate of the first coding node for the second coding node and using it as the utilization rate corresponding to the current coding node.
[0047] Combined with the above description, at each time point, there will be a large number of coding nodes as candidates. In fact, in the embodiment of the present application, the number of coding nodes to be matched at the current time can be multiple, and the multiple coding nodes to be matched at the current time can all be called first coding nodes. In actual processing, the currently processed coding node to be matched belongs to at least one first coding node.
[0048] In addition, according to the decoding principle of the decoding graph and combined with the above description, in the embodiment of the present application, the number of coding nodes to be matched at the previous time point can also be multiple, then the multiple coding nodes to be matched at the previous time point can all be called second coding nodes, and the current time and the previous time point are time points in the coding time sequence corresponding to the decoding graph. For example, the previous time point is a time point in the coding time sequence that is earlier than the current time, and the previous time point and the current time point are adjacent in the coding time sequence.
[0049] In the embodiment of the present application, the utilization rate of the first coding node for the second coding node can be determined and used as the utilization rate corresponding to the current coding node. That is to say, the embodiment of the present application implements recursive determination of the utilization rate corresponding to the current coding node. Before matching the coding node to be matched at each time point, the utilization rate of the current time coding node is dynamically and adaptively determined, which can effectively avoid redundancy of the coding nodes to be matched at each time point and effectively improve the overall speech recognition response efficiency.
[0050] like Figure 4 and Figure 5 As shown, Figure 4 This is a schematic diagram of the speech recognition process in the embodiment of the present application. Figure 5 is a flowchart of a coding node processing method in an embodiment of the present application, Figure 5 The method for determining the threshold based on utilization is specifically shown in FIG.
[0051] Combination Figure 4 and Figure 5 The method for determining the threshold value based on utilization in the embodiment of the present application is described as follows: Figure 4 The speech recognition process in can be performed by a WFST-based speech recognition system. The WFST-based speech recognition system mainly includes three parts: acoustic model, language model, and decoder. First, the collected speech data is subjected to signal processing and feature extraction to obtain the input features required by the acoustic model. Then, the obtained features are input into the forward calculation of the acoustic model. After the operation of the acoustic model (neural network model), the score of the acoustic model is obtained (the score can be the function value of the cost function). Finally, according to the acoustic model score, a matching search is performed in the decoding graph containing the language model information, and the sentence with the highest probability is selected, which is the speech recognition result.
[0052] exist Figure 5 In the flowchart shown in , the acoustic model cost and decoding graph of the speech data frame matching the current coding node can be input. If the speech data frame matching the current coding node is the first two frames, the clipping threshold of the decoding for the coding node (token) to be matched at the current time is determined according to the maximum activation number, the minimum activation number and the preset cluster value. If the speech data frame matching the current coding node is the speech data frame after the second frame, the clipping threshold of the coding node (token) to be matched at the current time is determined according to the utilization rate, wherein the calculation method of the utilization rate is as follows;
[0053] Assume that, in the speech recognition process, the encoding processing logic is in the encoding time sequence T = (t0, t1, t2, ..., t n) is transmitted along the time axis. When the matching coding node (token) is extended from t0 to t1, the remaining tokens cut at t0 are represented by A (second coding node). When the matching coding node (token) is extended from t1 to t2, the remaining tokens cut at t1 are represented by B (first coding node). The A (second coding node) used in B (first coding node) is counted, that is, the proportion of effective coding nodes (tokens) in A (second coding node) is calculated, thereby reducing the number of effective coding nodes (tokens) in proportion. The calculation formula of utilization is as follows:
[0054]
[0055] Among them, ratio n Indicates utilization, count B_A Indicates the number of A (second coding node) used in B (first coding node), count B Indicates the number of B (first coding nodes).
[0056] It can be seen that in this embodiment, the utilization rate of the first coding node to the second coding node is determined as above and used as the utilization rate corresponding to the current coding node, thereby effectively reducing the impact of the redundancy of the coding node at the previous time point on the coding node at the current time point, and effectively improving the rationality and practicality of redundant processing.
[0057] In step S102, target processing is performed on the current coding node according to a target threshold, wherein the target threshold is determined according to the utilization rate of the current coding node.
[0058] After the current coding node is determined and the target threshold corresponding to the current coding node is determined, target processing may be performed on the current coding node according to the target threshold.
[0059] For example, the description value corresponding to the current coding node can be determined (the description value, for example, the speech data frame corresponding to the current coding node, corresponds to the score of the acoustic model), and then the description value is compared with the target threshold. If the comparison between the description value and the target threshold meets the set conditions, the current coding node can be retained, so that speech recognition is performed based on the current coding node. If the comparison between the description value and the target threshold does not meet the set conditions, the current coding node can be directly deleted, that is, the current coding node is deleted, and there is no restriction on this.
[0060] In this embodiment, by determining the current coding node, the current coding node is the coding node to be matched at the current time when the decoding graph is used to decode the speech data, and the current coding node is subjected to target processing according to the target threshold, wherein the target threshold is determined based on the utilization rate of the current coding node. Since the utilization rate of the current coding node is used as a reference for cropping, the rationality of cropping can be effectively improved, the redundancy of coding nodes can be effectively avoided, and the utilization rate of coding nodes in speech recognition can be effectively improved, thereby ensuring the efficiency of selecting subsequent decoding paths and improving the response timeliness of speech recognition.
[0061] Figure 6 It is a flowchart of a coding node processing method proposed in another embodiment of the present application.
[0062] like Figure 6 As shown, the following steps are included.
[0063] In step S601, a current coding node is determined. The current coding node is a coding node to be matched at the current time when the decoding graph is used to decode the speech data.
[0064] The description of step S601 can be found in the above embodiment and will not be repeated here.
[0065] In step S602, a first description value of the current coding node is determined.
[0066] Among them, the description value corresponding to the current coding node (the description value, for example, the speech data frame corresponding to the current coding node, corresponds to the score of the acoustic model) can be called the first description value.
[0067] In step S603, if the first description value is greater than the target threshold, the current coding node is deleted.
[0068] That is to say, the first description value of the current coding node can be compared with the target threshold determined based on the utilization rate. If the first description value is greater than the target threshold, the current coding node is deleted, that is, during the speech recognition process, the coding path is not extended based on the current coding node.
[0069] In step S604, if the first description value is less than or equal to the target threshold, the current coding node is added to the first node extension list corresponding to the current time.
[0070] Among them, the first node extension list is used to generate a second node extension list corresponding to the next time point, and the next time point is a time point later than the current time in the coding time sequence, and the next time point and the current time point are adjacent in the coding time sequence.
[0071] That is to say, the first description value of the current coding node can be compared with the target threshold determined based on the utilization rate. If the first description value is less than or equal to the target threshold, the current coding node is added to the first node extension list corresponding to the current time. That is, in the process of speech recognition, the coding path is extended based on the current coding node. The node extension list corresponding to the current time can be called the first node extension list.
[0072] The above-mentioned first node extension list includes at least one coding node, and each coding node in the first node extension list can be used to extend the coding path, and the coding nodes in the first node extension list can be some coding nodes belonging to the above-mentioned multiple first coding nodes.
[0073] Adding the current coding node to the first node extension list corresponding to the current time may trigger subsequent steps.
[0074] In step S605, each coding node in the first node extension list is traversed, and a plurality of candidate decoding paths associated with the current coding node in the first node extension list are determined.
[0075] Step S605-Step S607 provides a method for expanding the second node extension list corresponding to the next time point according to the first node extension list corresponding to the current time. It can be understood that, based on the speech recognition encoding and decoding principle, the matching search in the decoding graph is a matching search at each time point to determine the optimal decoding path from the decoding graph, and some coding nodes are matched at each time point, so as to expand the coding nodes at the next time point based on the part of the coding nodes.
[0076] After forming the first node extension list corresponding to the current time, each coding node in the first node extension list may be traversed, and multiple candidate decoding paths associated with the current coding node in the first node extension list may be determined.
[0077] The candidate decoding path may be a possible decoding path associated with the current coding node and extended to the next time point. That is to say, the number of candidate decoding paths associated with the current coding node is usually multiple. In this embodiment, it supports determining a target decoding path from multiple candidate decoding paths based on a target threshold, thereby assisting in the expansion of the coding node at the next time point based on the selected better decoding path.
[0078] In step S606, a target decoding path is determined from a plurality of candidate decoding paths according to a target threshold.
[0079] Optionally, in some embodiments, a target decoding path is determined from multiple candidate decoding paths based on a target threshold, and a reference decoding path may be obtained, where the reference decoding path is a decoding path that is associated with a current coding node and is decoded and matched before a current time, a first path description value corresponding to the reference decoding path is determined, and multiple second path description values corresponding to multiple candidate decoding paths are determined, and candidate path description values corresponding to multiple candidate decoding paths are determined based on the first path description value and the multiple second path description values, where the candidate path description value is the sum of the first path description value and the corresponding second path description value, and the candidate decoding path corresponding to the candidate path description value that is less than the target threshold is used as the target decoding path.
[0080] The path description value corresponding to the reference decoding path (the path description value, for example, the speech data frame corresponding to the reference decoding path (such as the speech data frame corresponding to the encoding node connected to the reference decoding path), corresponds to the score of the acoustic model) can be called the first path description value.
[0081] The path description value corresponding to the candidate decoding path (the path description value, for example, the speech data frame corresponding to the candidate decoding path (such as the speech data frame corresponding to the encoding node connected to the candidate decoding path), corresponds to the score of the acoustic model) can be called a second path description value.
[0082] When determining the candidate path description values corresponding to multiple candidate decoding paths respectively, the first path description value corresponding to the reference decoding path and the second path description value corresponding to each candidate decoding path can be specifically added together to obtain the candidate path description values corresponding to the multiple candidate decoding paths respectively.
[0083] For example, multiple candidate decoding paths that are associated with the current coding node are B1, B2, and B3, and the decoding path that is associated with the current coding node and decoded and matched before the current time is A. Accordingly, the second path description values corresponding to the candidate decoding paths B1, B2, and B3 are B11, B21, and B31, respectively, and the first path description value corresponding to the reference decoding path is A0. Accordingly, the candidate path description values corresponding to the multiple candidate decoding paths are: A0+B11, A0+B21, A0+B31, respectively, and there is no restriction on this.
[0084] After determining the candidate path description values corresponding to multiple candidate decoding paths, the candidate decoding paths corresponding to the candidate path description values that are less than the target threshold can be used as target decoding paths. For example, A0+B11, A0+B21, and A0+B31 can be compared with the target thresholds determined based on the utilization rate, respectively, to determine the target decoding path.
[0085] In step S607, a second node extension list corresponding to the next time point is generated according to the next coding node associated with the target decoding path, until the coding nodes in the first node extension list are traversed.
[0086] The above indicates that after the target decoding path is determined, encoding expansion can be performed backward based on the target decoding path, and the next encoding node associated with the target decoding path is added to the second node extension list corresponding to the next time point, until the encoding nodes in the first node extension list are traversed. Then, the expansion method described in the above embodiment can be used to traverse the encoding nodes in the second node extension list to gradually perform encoding expansion backward.
[0087] For example, Figure 7 As shown, Figure 7 This is a flow chart of a coding node processing method proposed in another embodiment of the present application, (1) calculating a target threshold; (2) trimming the current coding node based on the target threshold; if the cost of the current coding node token at the current time is greater than the target threshold, the token is deleted, otherwise it is added to the first node extension list; (3) the current coding node token added to the first node extension list is expanded, and for each current coding node token in the first node extension list, the candidate decoding paths in the decoding graph that are associated with the current coding node token are traversed, and the cost of each possible candidate decoding path is calculated, which is the sum of the cost of the current coding node token and the cost of the candidate decoding path based on the acoustic model and the cost based on the language model. If the cost is less than the target threshold, the next coding node associated with the target decoding path is added to the second node extension list corresponding to the next time point; (4) at the next time point, the above steps are repeated until decoding based on the decoding graph is completed.
[0088] By applying the decoding optimization method in this embodiment, it is possible to effectively save about 70% of the decoding search time while effectively ensuring the decoding accuracy, greatly improve the decoding speed of speech recognition, and thus improve the response timeliness of speech recognition.
[0089] In this embodiment, by determining the current coding node, the current coding node is the coding node to be matched at the current time when the decoding graph is used to decode the voice data, and performing target processing on the current coding node according to the target threshold, wherein the target threshold is determined based on the utilization rate of the current coding node. Since the utilization rate of the current coding node is used as a reference for cropping, the rationality of cropping can be effectively improved, the redundancy of coding nodes can be effectively avoided, and the utilization rate of coding nodes in speech recognition can be effectively improved, thereby ensuring the efficiency of subsequent decoding path selection. It can be achieved while effectively ensuring the decoding accuracy. Effectively save about 70% of the decoding search time, greatly improve the decoding speed of speech recognition, and thus improve the response timeliness of speech recognition.
[0090] Figure 8 It is a structural diagram of a coding node processing device proposed in one embodiment of the present application.
[0091] like Figure 8 As shown, the coding node is used for speech recognition, and the coding node processing device 80 includes:
[0092] The first determination module 801 is used to determine the current coding node, where the current coding node is the coding node to be matched at the current time when the decoding graph is used to decode the speech data;
[0093] The processing module 802 is used to perform target processing on the current coding node according to the target threshold, wherein the target threshold is determined according to the utilization rate of the current coding node.
[0094] In some embodiments of the present application, the processing module 802 is specifically configured to:
[0095] Determine a first description value of a current coding node;
[0096] If the first description value is greater than the target threshold, the current coding node is deleted;
[0097] If the first description value is less than or equal to the target threshold, adding the current coding node to the first node extension list corresponding to the current time;
[0098] Among them, the first node extension list is used to generate a second node extension list corresponding to the next time point, and the next time point is a time point later than the current time in the coding time sequence, and the next time point and the current time point are adjacent in the coding time sequence.
[0099] In some embodiments of the present application, the processing module 802 is specifically configured to:
[0100] Traversing each coding node in the first node extension list, and determining a plurality of candidate decoding paths associated with a current coding node in the first node extension list;
[0101] Determine a target decoding path from among multiple candidate decoding paths according to a target threshold;
[0102] A second node extension list corresponding to the next time point is generated according to the next coding node associated with the target decoding path until the coding nodes in the first node extension list are traversed.
[0103] In some embodiments of the present application, Fig. 9 As shown, Fig. 9 is a schematic diagram of the structure of a coding node processing device proposed in another embodiment of the present application, and further includes:
[0104] The second determination module 803 is used to determine the target threshold value according to the preset activation number and the preset clustering value when the voice data frame matching the current coding node belongs to the first two frames of the voice data, and to determine the utilization rate corresponding to the current coding node when the voice data frame matching the current coding node does not belong to the first two frames of the voice data, and use the utilization rate as the target threshold value.
[0105] In some embodiments of the present application, the second determining module 803 is specifically configured to:
[0106] Determine at least one first coding node corresponding to the current time from the decoding graph, wherein the current coding node belongs to the at least one first coding node;
[0107] Determine at least one second coding node corresponding to a previous time point from the decoding graph, wherein the previous time point is a time point earlier than the current time in the coding time sequence, and the previous time point and the current time point are adjacent in the coding time sequence;
[0108] A utilization rate of the first coding node to the second coding node is determined and used as the utilization rate corresponding to the current coding node.
[0109] In some embodiments of the present application, the processing module 802 is specifically configured to:
[0110] Obtain a reference decoding path, which is a decoding path associated with the current coding node and decoded and matched before the current time;
[0111] Determine a first path description value corresponding to a reference decoding path, and determine a plurality of second path description values corresponding to a plurality of candidate decoding paths respectively;
[0112] Determine, according to the first path description value and the plurality of second path description values, candidate path description values corresponding to the plurality of candidate decoding paths respectively, wherein the candidate path description value is a sum of the first path description value and the corresponding second path description value;
[0113] The candidate decoding path corresponding to the candidate path description value less than the target threshold is used as the target decoding path.
[0114] With the above Figures 1 to 7 Corresponding to the coding node processing method provided in the embodiment, the present application also provides a coding node processing device. Figures 1 to 7 The coding node processing method provided in the embodiment corresponds to the coding node processing method, so the implementation method of the coding node processing method is also applicable to the coding node processing device provided in the embodiment of the present application, and will not be described in detail in the embodiment of the present application.
[0115] In this embodiment, by determining the current coding node, the current coding node is the coding node to be matched at the current time when the decoding graph is used to decode the speech data, and the current coding node is subjected to target processing according to the target threshold, wherein the target threshold is determined based on the utilization rate of the current coding node. Since the utilization rate of the current coding node is used as a reference for cropping, the rationality of cropping can be effectively improved, the redundancy of coding nodes can be effectively avoided, and the utilization rate of coding nodes in speech recognition can be effectively improved, thereby ensuring the efficiency of selecting subsequent decoding paths and improving the response timeliness of speech recognition.
[0116] In order to implement the above embodiments, the present application also proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the coding node processing method proposed in the above embodiments of the present application is implemented.
[0117] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the coding node processing method proposed in the above embodiments of the present application is implemented.
[0118] In order to implement the above embodiments, the present application also proposes a computer program product. When the instruction processor in the computer program product is executed, the coding node processing method proposed in the above embodiments of the present application is executed.
[0119] Fig.10 A block diagram of an exemplary computer device suitable for implementing embodiments of the present application is shown. Fig.10 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0120] like Fig.10 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0121] The bus 18 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 Interconnection (PCI) bus.
[0122] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0123] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig.10 not shown, usually called a "hard drive"). Although Fig.10Not shown, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 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 application.
[0124] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but 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 42 generally perform the functions and / or methods of the embodiments described herein.
[0125] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 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) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0126] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the coding node processing method mentioned in the above embodiments.
[0127] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0128] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0129] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0130] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0131] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0132] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0133] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0134] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0135] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0136] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A coding node processing method, It is characterized in that The encoding node is used for performing speech recognition, and the method comprises: Determine a current coding node, where the current coding node is a coding node to be matched at a current time when the decoding graph is used to decode the speech data; The current coding node is subjected to target processing according to a target threshold, wherein the target threshold is determined based on a utilization rate of the current coding node, and the utilization rate is determined based on a plurality of coding nodes to be matched at a current time and a plurality of coding nodes to be matched at a previous time point.
2. The method according to claim 1, It is characterized in that The performing target processing on the current coding node according to the target threshold comprises: Determining a first description value of the current coding node; If the first description value is greater than the target threshold, deleting the current coding node; If the first description value is less than or equal to the target threshold, adding the current coding node to the first node extension list corresponding to the current time; Among them, the first node extension list is used to generate a second node extension list corresponding to a next time point, and the next time point is a time point in the coding time sequence that is later than the current time, and the next time point and the current time point are adjacent in the coding time sequence.
3. The method according to claim 2, It is characterized in that After adding the current coding node to the first node extension list corresponding to the current time, the method further includes: Traversing each coding node in the first node extension list, and determining a plurality of candidate decoding paths associated with a current coding node in the first node extension list; Determining a target decoding path from the plurality of candidate decoding paths according to a target threshold; A second node extension list corresponding to a next time point is generated according to a next coding node associated with the target decoding path until the coding nodes in the first node extension list are traversed.
4. The method according to claim 1, It is characterized in that After the current coding node is determined, the method further includes: If the voice data frame matching the current encoding node belongs to the first two frames of the voice data, determining the target threshold value according to a preset activation number and a preset clustering value; If the voice data frame matching the current encoding node does not belong to the first two frames of the voice data, a utilization rate corresponding to the current encoding node is determined, and the utilization rate is used as the target threshold.
5. The method according to claim 4, It is characterized in that The determining the utilization rate corresponding to the current encoding node includes: Determine at least one first coding node corresponding to a current time from the decoding graph, wherein the current coding node belongs to the at least one first coding node; Determine at least one second coding node corresponding to a previous time point from the decoding graph, wherein the previous time point is a time point earlier than the current time in the coding time sequence, and the previous time point and the current time point are adjacent in the coding time sequence; A utilization rate of the first coding node to the second coding node is determined and used as the utilization rate corresponding to the current coding node.
6. The method according to claim 3, It is characterized in that The step of determining a target decoding path from the plurality of candidate decoding paths according to the target threshold comprises: Acquire a reference decoding path, where the reference decoding path is a decoding path associated with the current coding node and decoded and matched before the current time; Determine a first path description value corresponding to the reference decoding path, and determine a plurality of second path description values corresponding to the plurality of candidate decoding paths respectively; Determine, according to the first path description value and the plurality of second path description values, candidate path description values corresponding to the plurality of candidate decoding paths respectively, the candidate path description value being a sum of the first path description value and the corresponding second path description value; The candidate decoding path corresponding to the candidate path description value smaller than the target threshold is used as the target decoding path.
7. A coding node processing device, It is characterized in that The encoding node is used for performing speech recognition, and the device comprises: A first determination module is used to determine a current coding node, where the current coding node is a coding node to be matched at a current time when the decoding graph is used to decode the speech data; A processing module is used to perform target processing on the current coding node according to a target threshold, wherein the target threshold is determined based on a utilization rate of the current coding node, and the utilization rate is determined based on a plurality of coding nodes to be matched at a current time and a plurality of coding nodes to be matched at a previous time point.
8. The device according to claim 7, It is characterized in that The processing module is specifically used for: Determining a first description value of the current coding node; If the first description value is greater than the target threshold, deleting the current coding node; If the first description value is less than or equal to the target threshold, adding the current coding node to the first node extension list corresponding to the current time; Among them, the first node extension list is used to generate a second node extension list corresponding to a next time point, and the next time point is a time point in the coding time sequence that is later than the current time, and the next time point and the current time point are adjacent in the coding time sequence.
9. The device as claimed in claim 8, It is characterized in that The processing module is specifically used for: Traversing each coding node in the first node extension list, and determining a plurality of candidate decoding paths associated with a current coding node in the first node extension list; Determining a target decoding path from the plurality of candidate decoding paths according to a target threshold; A second node extension list corresponding to a next time point is generated according to a next coding node associated with the target decoding path until the coding nodes in the first node extension list are traversed.
10. The device according to claim 7, It is characterized in that Also includes: The second determination module is used to determine the target threshold value according to a preset activation number and a preset clustering value when the voice data frame matching the current coding node belongs to the first two frames of the voice data, and to determine the utilization rate corresponding to the current coding node when the voice data frame matching the current coding node does not belong to the first two frames of the voice data, and use the utilization rate as the target threshold value.
11. The device according to claim 10, It is characterized in that The second determining module is specifically used to: Determine at least one first coding node corresponding to a current time from the decoding graph, wherein the current coding node belongs to the at least one first coding node; Determine at least one second coding node corresponding to a previous time point from the decoding graph, wherein the previous time point is a time point earlier than the current time in the coding time sequence, and the previous time point and the current time point are adjacent in the coding time sequence; A utilization rate of the first coding node to the second coding node is determined and used as the utilization rate corresponding to the current coding node.
12. The device according to claim 9, It is characterized in that The processing module is specifically used for: Acquire a reference decoding path, where the reference decoding path is a decoding path associated with the current coding node and decoded and matched before the current time; Determine a first path description value corresponding to the reference decoding path, and determine a plurality of second path description values corresponding to the plurality of candidate decoding paths respectively; Determine, according to the first path description value and the plurality of second path description values, candidate path description values corresponding to the plurality of candidate decoding paths respectively, the candidate path description value being a sum of the first path description value and the corresponding second path description value; The candidate decoding path corresponding to the candidate path description value smaller than the target threshold is used as the target decoding path.
13. A computer device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
14. A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for encodng and decoding video signal by using embedded block partitioning
CN106664430A
Voice recognizing method and device, electronic device and storage medium
CN110689876A
