Speech recognition method, device, equipment and storage medium

By using multiple voice collection devices and signal segmentation technology on smart devices, we can identify and separate abnormal voice signals in user instructions, solving the problem of low recognition accuracy of smart devices in noisy environments and achieving higher recognition accuracy. sex and efficiency.

CN114187895BActive Publication Date: 2024-09-24HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111551390.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-09-24
Estimated Expiration
2041-12-17

Smart Images

  • Figure CN114187895B
    Figure CN114187895B
Patent Text Reader

Abstract

The present application belongs to the field of data processing, and specifically relates to a speech recognition method, device, equipment and storage medium. The present application aims to solve the problem that the current intelligent devices have low accuracy in recognizing user commands. The speech recognition method of the present application comprises: obtaining N to-be-processed speech signals collected by N speech collection devices set on the terminal device; dividing the nth to-be-processed speech signal among the N to-be-processed speech signals into M n speech signal segments; extract M n The signal characteristics of each speech signal segment in the speech signal segment; according to M n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n speech signal segment; according to S n The user's command is recognized from a voice signal segment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the field of data processing, and specifically relate to a speech recognition method, apparatus, device and storage medium. Background Art

[0002] With the development of intelligent technology, the degree of automated interaction of smart home devices is getting higher and higher. Therefore, it is becoming increasingly important for smart devices to accurately complete user instructions.

[0003] In the prior art, when a smart device recognizes a user's command, it usually recognizes specific keywords in the user's command, thereby executing a corresponding action. However, when a user issues a command, it is often affected by the surrounding environmental noise, causing the smart device to be unable to correctly read the keywords in the user's command, thereby making the smart device's recognition accuracy of the user's command low. Therefore, the prior art has the problem of low accuracy of smart devices recognizing user commands. Summary of the invention

[0004] In order to solve the above-mentioned problems in the prior art, that is, to solve the problem that the current smart devices have a low accuracy in recognizing user commands, an embodiment of the present application provides a speech recognition method, which includes: obtaining N to-be-processed speech signals collected by N speech acquisition devices set on a terminal device, the N to-be-processed speech signals corresponding to the N speech acquisition devices one by one, each of the N to-be-processed speech signals is a speech signal collected by a corresponding speech acquisition device in the N speech acquisition devices, and N is a positive integer; dividing the nth to-be-processed speech signal in the N to-be-processed speech signals into M n speech signal segments, M n is a positive integer, n is an integer from 1 to N; extract M n The signal characteristics of each speech signal segment in the speech signal segment; according to M n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n speech signal segment; according to S n The user's command is recognized from a voice signal segment.

[0005] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by setting up multiple voice collection devices on the terminal device to collect the voice signal to be processed, then dividing the voice signal to be processed into multiple voice signal segments, and extracting signal features for each voice signal segment, and then determining the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and finally identifying the voice signal segment including the abnormal voice signal to determine whether it is a user command, if it is a user command, executing the user command, if it is noise, ignoring the noise, and continuing to collect the voice signal to be processed, thereby avoiding the problem of low accuracy of smart devices recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of smart devices recognizing user commands.

[0006] In the preferred technical solution of the above-mentioned speech recognition method, the nth speech signal to be processed among the N speech signals to be processed is divided into M n The method comprises: using a sliding window of a preset length to divide the nth speech signal to be processed among the N speech signals to be processed, and obtaining M n A speech signal segment.

[0007] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by using a sliding window to divide the voice signal to be processed into voice signal segments, the amount of calculation can be greatly reduced, and the efficiency of dividing the voice signal to be processed into voice signal segments can be improved, thereby improving the efficiency of the smart device in recognizing user commands.

[0008] In the preferred technical solution of the above-mentioned speech recognition method, extract M n The signal characteristics of each speech signal segment in the speech signal segments include: n Each speech signal segment in the speech signal segments constructs a corresponding graph model, the S vertices of the graph model are the S data points in the corresponding speech signal segment, the L edges of the graph model are the lines between two adjacent data points in the S data points, and S and L are positive integers; the graph model is used as M n The signal features of the corresponding speech signal segments in the speech signal segments are obtained.

[0009] The technical solution provided by the embodiments of the present application may include the following beneficial effects: when extracting the signal features of each speech signal segment, a graph model is constructed according to the data points in each speech signal segment, so that the similarity scores between multiple speech signal segments can be quickly calculated according to the graph model. In this way, it is possible to determine whether an abnormal speech signal appears in the corresponding speech signal to be processed based on the obtained similarity score, thereby greatly improving the response speed of the smart device to the abnormal speech signal, thereby improving the efficiency of the smart device in recognizing user commands.

[0010] In the preferred technical solution of the above-mentioned speech recognition method, according to M n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n voice signal segments, including: obtaining M n The similarity score between the two graph models corresponding to each two adjacent speech signal segments in the graph models is greater than a preset score threshold, determining that the two speech signal segments corresponding to the two graph models include abnormal speech signals; in M n The nth speech signal to be processed corresponding to the graph model is determined to include the abnormal speech signal S n A speech signal segment.

[0011] The technical solution provided by the embodiments of the present application may include the following beneficial effects: the similarity scores between multiple voice signal segments can be quickly calculated through the graph model, so as to quickly determine multiple voice signal segments including abnormal voice signals in the voice signal to be processed, so that the multiple voice signal segments including abnormal voice signals can be identified, and it can be determined whether the abnormal voice signals are user commands or noise, thereby improving the accuracy of smart devices in recognizing user commands.

[0012] In the preferred technical solution of the above-mentioned speech recognition method, the method also includes: determining the arrival time of the abnormal speech signal in each of the N speech signals to be processed at the corresponding speech acquisition device; determining the emission position of the abnormal speech signal according to the time difference between the N arrival times; and separating the abnormal speech signal from the N speech signals to be processed according to the emission position and the positions of the N speech acquisition devices.

[0013] The technical solution provided by the embodiment of the present application may include the following beneficial effects: since the emission position of an abnormal voice signal is determined by only one voice collection device, the emission position may be inaccurately located. Therefore, the emission position of the abnormal voice signal can be accurately located by measuring the time difference between the arrival times of abnormal voice signals in the voice signals to be processed collected by multiple voice collection devices at the corresponding voice collection devices, thereby avoiding the problem of inaccurate recognition of user commands due to inaccurate positioning of the emission position of the abnormal voice signal, thereby improving the accuracy of smart devices in recognizing user commands.

[0014] In the preferred technical solution of the above-mentioned speech recognition method, an abnormal speech signal is separated from N speech signals to be processed according to the emission position and the positions of N speech acquisition devices, including: determining the corresponding target transfer function in a preset function library according to the emission position; and using the target transfer function to calculate the N speech signals to be processed to obtain the abnormal speech signal.

[0015] The technical solution provided by the embodiment of the present application may include the following beneficial effects: since the accurate emission position of the abnormal voice signal has been obtained before, when separating the abnormal voice signal from the voice signal to be processed, a suitable transfer function can be determined according to the specific emission position of the abnormal voice signal, so that the abnormal voice signal can be accurately separated, thereby improving the accuracy of the smart device in recognizing user commands.

[0016] In the preferred technical solution of the above-mentioned speech recognition method, according to S n The method comprises the steps of: detecting whether the abnormal voice signal includes a preset command signal; if the abnormal voice signal includes a preset command signal, n The abnormal voice signal in the voice signal segment can be used to identify the user command.

[0017] The technical solution provided by the embodiment of the present application may include the following beneficial effects: after correctly separating the abnormal voice signal, since the abnormal voice signal can be a user command or environmental noise, it is necessary to detect the abnormal voice signal to determine whether the abnormal voice signal includes a preset command signal. If the abnormal voice signal includes the preset command signal, it means that the abnormal voice signal is a user command issued by the user, so that the smart device can recognize the user command and make a corresponding response; if the abnormal voice signal does not include the preset command signal, it means that the abnormal voice signal is environmental noise. At this time, the smart device can ignore the abnormal voice signal and continue to monitor whether there is an abnormal voice signal in the future, thereby avoiding the problem of low accuracy of the smart device in recognizing user commands due to the influence of surrounding noise on the user commands, thereby achieving the purpose of improving the accuracy of the smart device in recognizing user commands.

[0018] In the preferred technical solution of the above-mentioned speech recognition method, N speech acquisition devices are located on the coordinate axes of a spatial coordinate system, the origin of the spatial coordinate system is a preset position on the terminal device, and the distance between each of the N speech acquisition devices and the origin is different.

[0019] The technical solution provided by the embodiment of the present application may include the following beneficial effects: the positions of multiple voice collection devices used to collect voice signals to be processed need to be set according to the smart device, so that it can better adapt to the recognition of user commands by different smart devices, thereby more accurately determining the location where the user command is issued, thereby improving the accuracy of enabling the device to recognize user commands.

[0020] The embodiment of the present application also provides a speech recognition device, which includes various functional modules for implementing the aforementioned speech recognition method. Any functional module can be implemented by software and / or hardware.

[0021] For example, the apparatus may include an acquisition module, a division module, an extraction module, a determination module, and an identification module.

[0022] The acquisition module is used to acquire N to-be-processed voice signals collected by N voice collection devices set on the terminal device, the N to-be-processed voice signals correspond to the N voice collection devices one by one, each to-be-processed voice signal in the N to-be-processed voice signals is a voice signal collected by a corresponding voice collection device in the N voice collection devices, and N is a positive integer;

[0023] The division module is used to divide the nth speech signal to be processed among the N speech signals to be processed into M n speech signal segments, M n is a positive integer, n is an integer ranging from 1 to N;

[0024] The extraction module is used to extract M n signal features of each speech signal segment in the speech signal segments;

[0025] Determine the module used to determine the n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n Speech signal segments;

[0026] The recognition module is used to identify n The user's command is recognized from a voice signal segment.

[0027] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by setting up multiple voice collection devices on the terminal device to collect the voice signal to be processed, then dividing the voice signal to be processed into multiple voice signal segments, and extracting signal features for each voice signal segment, and then determining the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and finally identifying the voice signal segment including the abnormal voice signal to determine whether it is a user command, if it is a user command, executing the user command, if it is noise, ignoring the noise, and continuing to collect the voice signal to be processed, thereby avoiding the problem of low accuracy of smart devices recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of smart devices recognizing user commands.

[0028] An embodiment of the present application also provides a terminal device, including: a processor, a memory, and an interactive interface; the memory is used to store executable instructions executable by the processor; wherein the processor is configured to execute the aforementioned speech recognition method by executing the executable instructions.

[0029] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by setting up multiple voice collection devices on the terminal device to collect the voice signal to be processed, then dividing the voice signal to be processed into multiple voice signal segments, and extracting signal features for each voice signal segment, and then determining the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and finally identifying the voice signal segment including the abnormal voice signal to determine whether it is a user command, if it is a user command, executing the user command, if it is noise, ignoring the noise, and continuing to collect the voice signal to be processed, thereby avoiding the problem of low accuracy of smart devices recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of smart devices recognizing user commands.

[0030] The embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the aforementioned speech recognition method.

[0031] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by setting up multiple voice collection devices on the terminal device to collect the voice signal to be processed, then dividing the voice signal to be processed into multiple voice signal segments, and extracting signal features for each voice signal segment, and then determining the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and finally identifying the voice signal segment including the abnormal voice signal to determine whether it is a user command, if it is a user command, executing the user command, if it is noise, ignoring the noise, and continuing to collect the voice signal to be processed, thereby avoiding the problem of low accuracy of smart devices recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of smart devices recognizing user commands.

[0032] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the aforementioned speech recognition method when executed by a processor.

[0033] The technical solution provided by the embodiment of the present application may include the following beneficial effects: by setting up multiple voice collection devices on the terminal device to collect the voice signal to be processed, then dividing the voice signal to be processed into multiple voice signal segments, and extracting signal features for each voice signal segment, and then determining the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and finally identifying the voice signal segment including the abnormal voice signal to determine whether it is a user command, if it is a user command, executing the user command, if it is noise, ignoring the noise, and continuing to collect the voice signal to be processed, thereby avoiding the problem of low accuracy of smart devices recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of smart devices recognizing user commands. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The preferred implementation of the speech recognition method of the present application is described below with reference to the accompanying drawings. The accompanying drawings are:

[0035] Figure 1 An application scenario diagram of the speech recognition method provided in the embodiment of the present application;

[0036] Figure 2 A flowchart of a first embodiment of a speech recognition method provided in an embodiment of the present application;

[0037] Figure 3 A flowchart of a second embodiment of a speech recognition method provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of a speech recognition device provided in an embodiment of the present application;

[0039] Figure 5A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the present application and are not intended to limit the scope of protection of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.

[0041] Secondly, it should be noted that in the description of the embodiments of the present application, the terms "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0042] In addition, it should be noted that in the description of the embodiments of the present application, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] The solution of the terminal device identifying the user instruction mentioned in the background technology has at least the following technical problems:

[0045] With the development of intelligent technology, the degree of automatic interaction of intelligent devices is getting higher and higher. The key to the interaction of intelligent home appliances is that intelligent devices can accurately complete user commands. Therefore, it is particularly important for intelligent devices to accurately monitor user commands in real time, locate the source of user commands, and identify and parse user commands. At the same time, intelligent devices also need to choose to complete the specified command actions according to different user scenarios. When intelligent devices recognize user commands, they often need to use specific command words to wake up the intelligent devices so that the intelligent devices can perform the corresponding actions. However, when intelligent devices recognize user commands, they are easily affected by environmental noise, which makes it difficult for users to wake up the intelligent devices through user commands. In addition, intelligent devices may misrecognize user commands, which reduces the accuracy of intelligent devices in recognizing user commands and reduces the user's experience of the interactive functions of intelligent devices, thereby reducing the sales of intelligent devices and causing economic losses.

[0046] In view of the above problems, the present application proposes a speech recognition method, which uses multiple speech acquisition devices to acquire speech signals to be processed according to certain positions, then uses a sliding window to divide the speech signals to be processed acquired by each speech acquisition device into multiple speech signal segments, and extracts signal features from each speech signal segment to detect whether an abnormal speech signal appears in the corresponding speech signal to be processed, and then determines the emission position of the abnormal speech signal according to the time difference between the time when the abnormal speech signal in the speech signal to be processed acquired by each speech acquisition device is generated and the time when the abnormal speech signal arrives at the corresponding speech acquisition device, and determines the emission position of the abnormal speech signal according to the obtained emission position of the abnormal speech signal. The method comprises the following steps: determining a suitable transfer function in a preset function library to process the voice signal to be processed, separating the abnormal voice signal, and comparing the separated abnormal voice signal with the preset user instruction. If the abnormal voice signal includes the preset user instruction, the abnormal voice signal is determined to be a user instruction issued by the user. At this time, the terminal device can identify the user instruction and make a corresponding response; if the abnormal voice signal does not include the preset user instruction, the abnormal voice signal is determined to be environmental noise. At this time, the terminal device can ignore the abnormal voice signal and continue to process the subsequently collected voice signal to be processed, thereby improving the accuracy of identifying the user instruction. First, the nouns involved in this application are explained below.

[0047] Sliding Window: A method of transmitting an unlimited number of packets using fixed-size sequence numbers. The term "window" on the sender side represents the logical boundary of the total number of packets that have not yet been acknowledged by the receiver. The receiver informs the sender of the current maximum receive buffer size (window boundary) in each acknowledgment packet.

[0048] Graph model: A graph composed of points and lines used to describe a system. The graphs that make up a graph model are different from general geometric figures. For example, each edge can be assigned a weight to form a weighted graph. The weight can take a certain value to represent distance, flow, cost, etc. Each point represents a random variable (or a group of random variables).

[0049] Similarity measure: A measure that comprehensively evaluates the degree of similarity between two things. The closer two things are, the greater their similarity measure is, and the farther two things are, the smaller their similarity measure is.

[0050] The core idea of ​​the speech recognition method provided by the present application is to set multiple speech collection devices on the terminal device to collect the speech signal to be processed. After collecting the speech signal to be processed, the speech signal to be processed is divided into multiple speech signal segments by using a sliding window, and then the signal features of each speech signal segment are extracted, and according to the similarity between the signal features of each speech signal segment, it is determined whether an abnormal speech signal appears in the speech signal to be processed. If an abnormal speech signal appears, it is necessary to determine the emission position of the abnormal speech signal according to the time difference between the occurrence time of the abnormal speech signal and the time when the abnormal speech signal arrives at the corresponding speech collection device. After obtaining the emission position of the abnormal speech signal, a suitable transfer function is determined in a preset function library to process the speech signal to be processed, separate the abnormal speech signal, and finally determine whether the abnormal speech signal contains a preset user instruction. If the abnormal speech signal contains a preset user instruction, the intelligent device can recognize the user instruction and respond; if the abnormal speech signal does not contain the preset user instruction, the intelligent device can ignore the abnormal speech signal, thereby overcoming the problem that is easy to occur when the intelligent device recognizes the user instruction in the above-mentioned prior art.

[0051] In a possible implementation manner, the speech recognition method provided by this embodiment can be applied in an application scenario. Figure 1 The application scenario diagram of the speech recognition method provided in the embodiment of the present application is as follows: Figure 1 As shown, the terminal device is a TV and the multiple voice collection devices are three microphones. Figure 1In the figure, a spatial coordinate system is established with the center of the TV as the origin O, and microphones 1, 2 and 3 are respectively arranged on the x-axis, y-axis and z-axis of the spatial coordinate system, and the distances between microphones 1, 2 and 3 and the origin O are all different. Microphones 1, 2 and 3 can monitor the voice signals emitted around the TV in real time. After microphones 1, 2 and 3 respectively collect the voice signals to be processed, the internal processor of the TV processes the voice signals to be processed, separates the abnormal voice signals from the voice signals to be processed, and then identifies whether the abnormal voice signals are user commands or noises, so as to make corresponding responses and perform corresponding actions.

[0052] In the above scenario, when the processor inside the TV processes the voice signal to be processed, it first divides the voice signal to be processed into multiple voice signal segments, then extracts signal features for each voice signal segment, and determines the abnormal voice signal appearing in the voice signal to be processed based on the similarity between the multiple signal features, and then separates the abnormal voice signal from the voice signal to be processed based on the emission position of the abnormal voice signal, so as to facilitate the identification of the abnormal voice signal. If the abnormal voice signal is a user command, the user command is identified and the corresponding action is performed. If the abnormal voice signal is noise, the noise is ignored, thereby improving the accuracy of user command recognition.

[0053] In combination with the above scenarios, the technical solution of the speech recognition method provided by the present application is described in detail through several specific embodiments below.

[0054] Figure 2 The flowchart of the first embodiment of the speech recognition method provided in the embodiment of the present application is as follows: Figure 2 As shown, the speech recognition method includes the following steps:

[0055] S201: Acquire N to-be-processed voice signals collected by N voice collection devices arranged on a terminal device.

[0056] In this step, the terminal device may be a smart terminal device such as a smart TV, a smart phone, a computer, a smart air conditioner, etc., and the voice collection device may be a device with a voice collection function such as a microphone. The N to-be-processed voice signals correspond one-to-one to the N voice collection devices, and each of the N to-be-processed voice signals is a voice signal collected by a corresponding voice collection device in the N voice collection devices, and N is a positive integer.

[0057] In the above scheme, the number of voice collection devices can be set according to actual needs. For example, three microphones can be set on the smart TV to monitor and collect voice signals around the smart TV in real time.

[0058] S202: Divide the nth speech signal to be processed among the N speech signals to be processed into M n A speech signal segment.

[0059] In this step, M n is a positive integer, and n is an integer ranging from 1 to N. Since there are many data points in the collected speech signal to be processed, if the entire collected speech signal to be processed is processed, the processing amount is large and it is also easy to make mistakes. Therefore, each speech signal to be processed can be divided into multiple speech signal segments. The data points in the speech signal segments obtained by division are relatively small, so each speech signal segment can be processed, thereby reducing the processing amount and improving the processing accuracy. The speech signal segments obtained by dividing each speech signal to be processed can be the same or different.

[0060] In the above solution, the speech signal to be processed may be divided into a plurality of speech signal segments according to the order of the acquisition time of the data points in the speech signal to be processed.

[0061] S203: Extract M n The signal features of each speech signal segment in the speech signal segments.

[0062] In this step, for each speech signal to be processed, the multiple speech signal segments are divided, and the signal features of each speech signal segment can be extracted, so that it can be determined whether an abnormal speech signal appears in the corresponding speech signal to be processed according to the signal features of each speech signal segment.

[0063] S204: According to M n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n A speech signal segment.

[0064] In this step, after obtaining the signal features of each speech signal segment, multiple signal features can be sorted according to the chronological order of the acquisition time of the data points in the speech signal to be processed, and then the similarity between each two adjacent signal features can be measured. The similarity between the two signal features can be used to determine the similarity between the two speech signal segments corresponding to the two signal features. Then, based on the similarity between the multiple speech signal segments, it is determined whether an abnormal speech signal appears in the speech signal to be processed, and the speech signal segment where the abnormal speech signal appears can be determined, as well as the time when the abnormal speech signal appears.

[0065] In the above scheme, if an abnormal voice signal appears in the voice signal to be processed, it means that a new voice signal is generated in the voice signal to be processed. The new voice signal can be a user instruction issued by the user, or the surrounding environmental noise, or other sounds issued by the user.

[0066] S205: According to S n The user's command is recognized from a voice signal segment.

[0067] In this step, the occurrence time of the abnormal voice signal is uncertain, and the division of the voice signal segments is based on preset time lengths. Therefore, it is possible that the abnormal voice signal is located in multiple voice signal segments. After determining that at least one voice signal segment including the abnormal voice signal is included in the voice signal to be processed, the terminal device can identify the abnormal voice signal based on the at least one voice signal segment.

[0068] In the above solution, if the abnormal voice signal includes a user instruction, the terminal device can recognize the user instruction based on at least one voice signal segment including the abnormal voice signal, and thus execute a corresponding action.

[0069] The speech recognition method provided in the embodiment of the present application collects the speech signal to be processed by setting multiple speech collection devices on the terminal device, then divides the speech signal to be processed into multiple speech signal segments, and extracts signal features for each speech signal segment, and then determines the abnormal speech signal appearing in the speech signal to be processed according to the similarity between the multiple signal features, and finally identifies the speech signal segment including the abnormal speech signal to determine whether it is a user command, and if it is a user command, executes the user command, and if it is noise, ignores the noise and continues to collect the speech signal to be processed, thereby avoiding the problem of low accuracy of intelligent devices in recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of intelligent devices in recognizing user commands.

[0070] In a possible implementation manner, the nth speech signal to be processed among the N speech signals to be processed is divided into M n The method comprises: using a sliding window of a preset length to divide the nth speech signal to be processed among the N speech signals to be processed, and obtaining M n A speech signal segment.

[0071] In this solution, the sliding window can be a non-overlapping sliding window. For each voice signal to be processed collected by the voice collection device, a non-overlapping sliding window of a preset length can be used to divide the voice signal to be processed. By using a non-overlapping sliding window to divide the voice signal to be processed into multiple voice signal segments, the amount of calculation can be greatly reduced, and the efficiency of dividing the voice signal to be processed into voice signal segments can be improved, thereby improving the efficiency of the smart device in recognizing user commands.

[0072] For example, for the speech signal S1 to be processed collected by microphone 1, a non-overlapping sliding window with a length of L data points is used to divide the speech signal S1 to be processed into l speech signal segments s 1,t-l+1 , ..., s 1,t-1 ,s 1,t , No. 1,t The signal segment represents the speech signal segment collected by microphone 1 at the current time t. Similarly, the speech signals to be processed collected by other microphones are also processed in the same way.

[0073] In one possible implementation, extract M n The signal characteristics of each speech signal segment in the speech signal segments include: n Each speech signal segment in the speech signal segments constructs a corresponding graph model, the S vertices of the graph model are the S data points in the corresponding speech signal segment, the L edges of the graph model are the lines between two adjacent data points in the S data points, and S and L are positive integers; the graph model is used as M n The signal features of the corresponding speech signal segments in the speech signal segments are obtained.

[0074] In this scheme, when extracting the signal features of each speech signal segment, a graph model can be constructed according to the data points in each speech signal segment, and the graph model of each speech signal segment can be used as the signal feature of the speech signal segment, so that the similarity scores between multiple speech signal segments can be quickly calculated according to the graph model. In this way, it can be determined whether an abnormal speech signal appears in the corresponding speech signal to be processed based on the obtained similarity score, which greatly improves the response speed of the smart device to abnormal voice signals, thereby improving the efficiency of the smart device in recognizing user commands.

[0075] For example, the speech signal S1 to be processed collected by the microphone 1 is still processed, and the speech signal segment set s1 including l speech signal segments of the speech signal S1 to be processed is 1,t-l+1 ,...s 1,t-1 ,s 1,t , for each speech signal segment s 1,t Construct a graph model. Take the speech signal segment s 1,t={sx1, sx2, ..., sx L} as an example, the speech signal segment s 1,t Any two data points sx i and sx j As the speech signal segment s 1,t The vertices of the graph model are the lines connecting the two vertices as the edges of the graph model. i,j , then calculate the two data points sx i and sx j The Euclidean distance between them is taken as the edge l i,j The weight d i,j , and then the speech signal segment s at the tth second 1,t The constructed graph model G 1,t It can be represented by the adjacency matrix α, where

[0076] In the above scheme, the speech signal to be processed can be divided into seconds. Every 1 second, a speech signal segment is obtained. Then, the speech signal s1 to be processed collected by the microphone 1 has 1 second, that is, the speech signal segment s 1,t Represents the speech signal segment at the tth second.

[0077] In a possible implementation, according to M n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n voice signal segments, including: obtaining M n The similarity score between the two graph models corresponding to each two adjacent speech signal segments in the graph models is greater than a preset score threshold, determining that the two speech signal segments corresponding to the two graph models include abnormal speech signals; in M n The nth speech signal to be processed corresponding to the graph model is determined to include the abnormal speech signal S n A speech signal segment.

[0078] In this scheme, multiple graph models can be sorted according to the order of the collection time of the data points in the speech signal to be processed. Since for each speech collection device, the speech signal to be processed collected by it has similar signal characteristics in time sequence, it is possible to measure the similarity between each two adjacent graph models and obtain the similarity score between each two adjacent graph models, so as to determine whether an abnormal speech signal appears in the corresponding speech signal to be processed, as well as the appearance time and end time of the abnormal speech signal according to the obtained similarity score, so that multiple speech signal segments including abnormal speech signals can be determined.

[0079] For example, the 1-second speech signal S1 collected by microphone 1 is still processed, and the graph model sequence of microphone 1 in time sequence can be G 1,t-l+1 , ..., G 1,t-1 , G 1,t By measuring the similarity score between the two graph models, it can be determined whether there is an abnormal speech signal in the speech signal S1 to be processed collected by microphone 1. 1,t It can be calculated by the following formula:

[0080]

[0081] Among them, sim 1,t It can be used to represent the similarity score between the graph model corresponding to the t-th second and the graph model corresponding to the t-1th second; SIM(G 1,t-1 , G 1,t ) can be used to represent the graph model G 1,t-1 and graph model G 1,t ; i and j can be used to represent the ordinal number of the weight of the graph model respectively; L can be used to represent the maximum ordinal number of the data points in the speech signal segment.

[0082] Then we can get the similarity sequence of the graph model of the 1-second speech signal S1 to be processed collected by microphone 1 as {sim 1,1 ,...,sim 1,t}, through the phase velocity sequence, it can be determined whether an abnormal speech signal appears in the speech signal to be processed S1. Whether an abnormal speech signal appears in the speech signal to be processed is determined by the similarity score, which can be determined by the following formula:

[0083] H0: sim 1,tc ≤μ 1,tc-1 ±3σ 1,tc-1

[0084] H A :sim 1,tc >μ 1,tc-1 ±3σ 1,tc-1

[0085] Among them, H0 can be used to indicate that there is no abnormal voice signal in the voice signal to be processed S1, and H A It can be used to indicate that an abnormal speech signal appears in the speech signal to be processed S1, and the time when the abnormal speech signal appears is tc; μ 1,tc-1 Can be used to represent the mean of the first tc-1 similarity scores; 3σ 1,tc-1It can be used to represent the variance of the first tc-1 similarity scores. For microphone 1, the time when the abnormal speech signal appears can be recorded as tc1, for microphone 2, the time when the abnormal speech signal appears can be recorded as tc2, and for microphone 3, the time when the abnormal speech signal appears can be recorded as tc3.

[0086] In a possible implementation, N voice collection devices are located on coordinate axes of a spatial coordinate system, the origin of the spatial coordinate system is a preset position on the terminal device, and the distance between each of the N voice collection devices and the origin is different.

[0087] In this scheme, you can Figure 1 As shown, the number of voice collection devices can be 3, that is, 3 microphones, the coordinates of microphone 1 in the space coordinate system can be (x1, y1, z1), the coordinates of microphone 2 in the space coordinate system can be (x2, y2, z2), and the coordinates of microphone 3 in the space coordinate system can be (x3, y3, z3). The preset position can be the center position of the terminal device, which can be changed according to actual needs.

[0088] In a possible implementation, the method further includes: determining the arrival time of an abnormal voice signal in each of the N voice signals to be processed at a corresponding voice collection device; determining a sending position of the abnormal voice signal based on the time difference between the N arrival times; and separating the abnormal voice signal from the N voice signals to be processed based on the sending position and the positions of the N voice collection devices.

[0089] In this scheme, since only one voice collection device is used to determine the emission position of the abnormal voice signal, inaccurate positioning of the emission position may result. Therefore, the emission position of the abnormal voice signal can be accurately located by measuring the time difference between the arrival times of the abnormal voice signals in the voice signals to be processed collected by multiple voice collection devices at the corresponding voice collection devices, thereby separating the abnormal voice signal from the voice signals to be processed according to the emission position, avoiding the problem of inaccurate recognition of user commands due to inaccurate positioning of the emission position of the abnormal voice signal, thereby improving the accuracy of intelligent devices in recognizing user commands.

[0090] For example, the arrival time of the abnormal voice signal detected by microphone 1 is tc1, the arrival time of the abnormal voice signal detected by microphone 2 is tc2, and the arrival time of the abnormal voice signal detected by microphone 3 is tc3, so the time difference of arrival (TDOA) algorithm can be used to locate the sound source. The location (x, y) of the abnormal voice signal can be calculated according to the time difference by the following formula:

[0091]

[0092]

[0093]

[0094] Where c is the speed of sound.

[0095] According to the above three formulas, the x-coordinate and y-coordinate of the location where the abnormal voice signal is emitted can be determined. In the actual use of smart devices, the user is standing or sitting, and the range of height change is small, that is, the user's height is approximately 120cm to 180cm, and the user's x-coordinate and y-coordinate change is more obvious during movement. Therefore, only the user's x-coordinate and y-coordinate can be calculated, thereby reducing the amount of calculation. When calculating the user's exact position, that is, calculating the user's x-coordinate, y-coordinate and z-coordinate, a microphone 4 needs to be added, so that the exact position (x, y, z) of the abnormal voice signal can be calculated by the following formula:

[0096]

[0097]

[0098]

[0099] The coordinates of the microphone 4 in the space coordinate system may be (x4, y4, z4), and tc4 may be used to indicate the arrival time of the abnormal voice signal detected by the microphone 4.

[0100] In a possible implementation, an abnormal voice signal is separated from N voice signals to be processed according to an emission position and positions of N voice collection devices, including: determining a corresponding target transfer function in a preset function library according to the emission position; and calculating the N voice signals to be processed using the target transfer function to obtain the abnormal voice signal.

[0101] In this solution, the target transfer function can be obtained from the function library of the pre-device. Since the accurate emission position of the abnormal voice signal has been obtained before, when the abnormal voice signal is separated from the voice signal to be processed, the appropriate transfer function can be determined according to the specific emission position of the abnormal voice signal, so that the abnormal voice signal can be accurately separated, thereby improving the accuracy of the smart device in recognizing user commands.

[0102] In the above scheme, when the voice collection device is a microphone, since the frequency response characteristics of the microphone can be used to determine the microphone's perception ability of various sounds of different frequencies from low to high, therefore, after establishing a spatial coordinate system based on the intelligent device and setting multiple microphones on the three coordinate axes of the spatial coordinate system, the frequency response characteristics of the microphone can be used to establish a transfer function h(n) from the position (x, y, z) where the abnormal voice signal is emitted to the microphone position, and the voice signal to be processed collected by the microphone is deconvolved using the transfer function h(n) to obtain the abnormal voice signal emitted at the position where the abnormal voice signal is emitted, thereby separating the abnormal voice signal from the voice signal to be processed.

[0103] In the above scheme, a function library can be pre-established during the process of designing the terminal device. The function library stores multiple transfer functions. Since the transfer function is only related to the sound source-microphone position, the corresponding transfer function can be selected according to the different sound source positions. Therefore, in this embodiment, the corresponding transfer function can be selected from the function library according to the emission position of the abnormal voice signal.

[0104] In one possible implementation, according to S n The method comprises the steps of: detecting whether the abnormal voice signal includes a preset command signal; if the abnormal voice signal includes a preset command signal, n The abnormal voice signal in the voice signal segment can be used to identify the user command.

[0105] In this scheme, after the abnormal voice signal is correctly separated, since the abnormal voice signal can be a user command or environmental noise, it is necessary to detect the abnormal voice signal to determine whether the abnormal voice signal includes a preset command signal. If the abnormal voice signal includes the preset command signal, it means that the abnormal voice signal is a user command issued by the user, so that the smart device can recognize the user command and make a corresponding response; if the abnormal voice signal does not include the preset command signal, it means that the abnormal voice signal is environmental noise. At this time, the smart device can ignore the abnormal voice signal and continue to monitor whether there is an abnormal voice signal in the future, thereby avoiding the problem of low accuracy of the smart device in recognizing user commands due to the influence of surrounding noise on the user commands, and achieving the purpose of improving the accuracy of the smart device in recognizing user commands.

[0106] The speech recognition method provided in the embodiment of the present application collects the speech signal to be processed by setting multiple speech collection devices on the terminal device, then divides the speech signal to be processed into multiple speech signal segments, and extracts signal features for each speech signal segment, and then determines the abnormal speech signal appearing in the speech signal to be processed according to the similarity between the multiple signal features, and finally identifies the speech signal segment including the abnormal speech signal to determine whether it is a user command, and if it is a user command, executes the user command, and if it is noise, ignores the noise and continues to collect the speech signal to be processed, thereby avoiding the problem of low accuracy of intelligent devices in recognizing user commands due to the influence of surrounding noise on user commands, and achieving the purpose of improving the accuracy of intelligent devices in recognizing user commands.

[0107] Figure 3 This is a flow chart of the second embodiment of the speech recognition method provided in the present application. Figure 3 As shown, the speech recognition method may include the following steps:

[0108] S301: Acquire a speech signal to be processed.

[0109] In this step, the speech signal to be processed can be obtained in real time, and as time changes, the obtained speech signal to be processed also changes accordingly.

[0110] S302: Divide the speech signal to be processed into a plurality of speech signal segments.

[0111] S303: Extract signal features from each voice model segment to obtain a graph model.

[0112] S304: Perform similarity measurement between multiple graph models to obtain similarity scores.

[0113] S305: Determine whether an abnormal speech signal appears in the speech signal to be processed according to the similarity score.

[0114] In this step, if no abnormal voice signal appears in the voice signal to be processed, the process jumps to step S306; if an abnormal voice signal appears in the voice signal to be processed, the process jumps to step S307.

[0115] S306: Continue detecting the voice signal to be processed.

[0116] S307: Determine the source location of the abnormal speech signal using the TDOA algorithm.

[0117] S308: Separate the abnormal voice signal from the voice signal to be processed according to the position where the abnormal voice signal is emitted.

[0118] S309: Identify the abnormal voice signal and determine whether the abnormal voice signal includes a user instruction.

[0119] In this step, if the abnormal voice signal includes a user instruction, the process jumps to step S310; if the abnormal voice signal does not include a user instruction, the process jumps to step S306 to continue detecting the voice signal to be processed.

[0120] S310: Respond to user instructions.

[0121] The speech recognition method provided in the embodiment of the present application divides the speech signal to be processed into multiple speech signal segments, extracts signal features from each speech signal segment, then determines the abnormal speech signal appearing in the speech signal to be processed based on the similarity between the multiple signal features, and finally identifies the speech signal segment including the abnormal speech signal to determine whether it is a user command. If it is a user command, the user command is executed; if it is noise, the noise is ignored, and the speech signal to be processed is continued to be collected, thereby avoiding the problem of low accuracy of intelligent devices in recognizing user commands due to the influence of surrounding noise on user commands, thereby achieving the purpose of improving the accuracy of intelligent devices in recognizing user commands.

[0122] Generally speaking, the speech recognition method provided by the present application is a technical method that can greatly improve the accuracy of smart devices in recognizing user commands, and can also improve the efficiency of smart devices in recognizing user commands.

[0123] Figure 4 Schematic diagram of a speech recognition device provided in an embodiment of the present application. Figure 4 As shown, the speech recognition device 40 may include various functional modules for implementing the aforementioned speech recognition method, and any functional module may be implemented in software and / or hardware.

[0124] For example, the device may include an acquisition module 41 , a division module 42 , an extraction module 43 , a determination module 44 and an identification module 45 .

[0125] The acquisition module 41 is used to acquire N to-be-processed voice signals collected by N voice collection devices set on the terminal device, the N to-be-processed voice signals correspond to the N voice collection devices one by one, each of the N to-be-processed voice signals is a voice signal collected by a corresponding voice collection device in the N voice collection devices, and N is a positive integer;

[0126] The division module 42 is used to divide the nth speech signal to be processed among the N speech signals to be processed into M n speech signal segments, M n is a positive integer, n is an integer ranging from 1 to N;

[0127] The extraction module 43 is used to extract M nsignal features of each speech signal segment in the speech signal segments;

[0128] The determination module 44 is used to determine the n There are M speech signal segments corresponding to each other. n The similarity between the signal features is used to determine the number of abnormal speech signals included in the nth speech signal to be processed. n Speech signal segments;

[0129] The identification module 45 is used to identify n The user's command is recognized from a voice signal segment.

[0130] Optionally, the division module 42 is further configured to divide the nth speech signal to be processed among the N speech signals to be processed by using a sliding window of a preset length to obtain M n A speech signal segment.

[0131] Optionally, the extraction module 43 is further used to n Each speech signal segment in the speech signal segments constructs a corresponding graph model, the S vertices of the graph model are the S data points in the corresponding speech signal segment, the L edges of the graph model are the lines between two adjacent data points in the S data points, and S and L are positive integers; the graph model is used as M n The signal features of the corresponding speech signal segments in the speech signal segments are obtained.

[0132] Optionally, the determination module 44 is further configured to obtain M n The similarity score between the two graph models corresponding to each two adjacent speech signal segments in the graph models is greater than a preset score threshold, determining that the two speech signal segments corresponding to the two graph models include abnormal speech signals; in M n The nth speech signal to be processed corresponding to the graph model is determined to include the abnormal speech signal S n A speech signal segment.

[0133] Optionally, the device is also used to determine the arrival time of the abnormal voice signal in each of the N voice signals to be processed at the corresponding voice collection device; determine the emission position of the abnormal voice signal according to the time difference between the N arrival times; and separate the abnormal voice signal from the N voice signals to be processed according to the emission position and the positions of the N voice collection devices.

[0134] Optionally, the device is also used to determine a corresponding target transfer function in a preset function library according to the emission position; and use the target transfer function to calculate N speech signals to be processed to obtain abnormal speech signals.

[0135] Optionally, the recognition module 45 is further configured to detect whether the abnormal voice signal includes a preset instruction signal; if the abnormal voice signal includes a preset instruction signal, n The abnormal voice signal in the voice signal segment can be used to identify the user command.

[0136] Optionally, the N voice collection devices are located on the coordinate axes of a spatial coordinate system, the origin of the spatial coordinate system is a preset position on the terminal device, and the distance between each of the N voice collection devices and the origin is different.

[0137] The speech recognition device is used to execute the technical solution provided by the aforementioned speech recognition method embodiment. Its implementation principle and technical effect are similar to those in the aforementioned method embodiment and will not be repeated here.

[0138] Figure 5 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the terminal device 500 includes:

[0139] Processor 511, memory 512, and interactive interface 513;

[0140] The memory 512 is used to store executable instructions executable by the processor 511;

[0141] Among them, the processor 511 is configured to execute the technical solution of the aforementioned speech recognition method by executing executable instructions.

[0142] In the above terminal device, the memory 512 and the processor 511 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 512 stores computer-executable instructions for implementing the above-mentioned speech recognition method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor 511 executes various functional applications and data processing by running the software programs and modules stored in the memory 512.

[0143] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.

[0144] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0145] The terminal device is used to execute the technical solution provided by the aforementioned speech recognition method embodiment. Its implementation principle and technical effect are similar to those in the aforementioned method embodiment and will not be repeated here.

[0146] An embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the technical solution provided by the aforementioned speech recognition method embodiment is implemented.

[0147] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solution provided in the aforementioned speech recognition method embodiment.

[0148] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The above program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed; and the above storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A speech recognition method, characterized in that: The method comprises: Obtaining N to-be-processed voice signals collected by N voice collection devices set on the terminal device, wherein the N to-be-processed voice signals correspond one-to-one to the N voice collection devices, each of the N to-be-processed voice signals is a voice signal collected by a corresponding voice collection device in the N voice collection devices, and N is a positive integer; The nth speech signal to be processed among the N speech signals to be processed is divided into M n speech signal segments, M n is a positive integer, n is an integer ranging from 1 to N; Extract the M n signal features of each speech signal segment in the speech signal segments; According to the M n There are M speech signal segments corresponding to each other. n similarity between the signal features, determining the number of abnormal speech signals included in the nth speech signal to be processed n Speech signal segments; According to the S n The user's command is recognized from a voice signal segment.

2. The method according to claim 1, characterized in that The nth speech signal to be processed among the N speech signals to be processed is divided into M n Speech signal segments, including: The nth speech signal to be processed among the N speech signals to be processed is divided and processed using a sliding window of a preset length to obtain the M n A speech signal segment.

3. The method according to claim 1, characterized in that The extraction of the M n The signal features of each speech signal segment in the speech signal segments include: For the M n For each speech signal segment in the speech signal segments, a corresponding graph model is constructed, wherein the S vertices of the graph model are the S data points in the corresponding speech signal segment, the L edges of the graph model are the lines between two adjacent data points in the S data points, and S and L are positive integers; The graph model is used as the M n The signal features of the corresponding speech signal segments in the speech signal segments are obtained.

4. The method according to claim 3, characterized in that According to the M n There are M speech signal segments corresponding to each other. n similarity between the signal features, determining the number of abnormal speech signals included in the nth speech signal to be processed n Speech signal segments, including: Get M n The similarity score between the two graph models corresponding to each two adjacent speech signal segments in the graph model; When the similarity score is greater than a preset score threshold, determining that the two speech signal segments corresponding to the two graph models include an abnormal speech signal; In the M n The nth speech signal to be processed corresponding to the graph model is determined to include the abnormal speech signal S n A speech signal segment.

5. The method according to claim 1, characterized in that The method further comprises: Determine the arrival time of the abnormal voice signal in each of the N voice signals to be processed to the corresponding voice collection device; Determining the sending position of the abnormal voice signal according to the time difference between the N arrival times; The abnormal voice signal is separated from the N voice signals to be processed according to the emission position and the positions of the N voice collection devices.

6. The method according to claim 5, characterized in that The step of separating the abnormal voice signal from the N voice signals to be processed according to the emission position and the positions of the N voice collection devices comprises: Determining a corresponding target transfer function in a preset function library according to the issuing position; The target transfer function is used to calculate the N speech signals to be processed to obtain the abnormal speech signal.

7. The method according to claim 5 or 6, characterized in that: According to the S n The voice signal segments recognize user commands, including: Detecting whether the abnormal voice signal includes a preset command signal; If the abnormal voice signal includes the preset command signal, then according to the S n The abnormal voice signal in the voice signal segment identifies the user instruction.

8. The method according to any one of claims 1 to 6, characterized in that: The N voice collection devices are located on the coordinate axes of a space coordinate system, the origin of the space coordinate system is a preset position on the terminal device, and the distance between each of the N voice collection devices and the origin is different.

9. A speech recognition device, characterized in that: The device comprises: a module for executing the speech recognition method according to any one of claims 1 to 8.

10. A terminal device, characterized in that: include: Processor, memory, and interactive interface; The memory is used to store executable instructions executable by the processor; The processor is configured to execute the speech recognition method according to any one of claims 1 to 8 by executing the executable instructions.

11. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the speech recognition method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that It comprises a computer program, which is used to implement the speech recognition method according to any one of claims 1 to 8 when executed by a processor.