Voice wake-up method and device, equipment and medium
By combining the method of non-directional noise reduction and spatial filter to process the microphone array data, the existing technology problems of low accuracy and large calculation amount of voice wake-up under strong noise and interference conditions are solved, and efficient Wake up by voice.
Patent Information
- Application Number
- CN202411052138.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-01
AI Technical Summary
Existing voice wake-up technology is difficult to improve wake-up accuracy under strong noise and interference conditions. In particular, it cannot effectively handle co-directional interference, and non-directional noise reduction will damage low-frequency speech. Multi-beam solutions are computationally intensive and unavailable.
Using a method that combines non-directional noise reduction and spatial filters, preset non-directional noise reduction and filtering noise reduction processing are performed on the microphone array data, and the recognition results are comprehensively judged through the two-channel voice wake-up engine to determine whether to perform a wake-up operation.
Under the premise of ensuring that the amount of calculation does not increase significantly, the accuracy of voice wake-up is significantly improved, and it can handle co-directional interference to make up for the shortcomings of non-directional noise reduction.
Smart Images

Figure CN118737162A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech recognition technology, and in particular to a speech wake-up method, device, equipment and medium. Background Art
[0002] In actual environments, front-end noise reduction is particularly important for voice wake-up rate; usually under complex conditions such as strong noise and interference, front-end noise suppression can greatly improve the voice wake-up rate.
[0003] For voice wake-up tasks, the direction of the sound source is unknown before wake-up, and there are usually two noise reduction solutions. One is non-directional noise reduction, the defect of this method is that the voice in the low-frequency area is severely damaged. The other solution is to divide the space into multiple areas according to the horizontal angle, and form multiple beams at the same time. Each beam outputs the voice and sends it to the wake-up engine. In this solution, if the space division is too rough, more noise will be retained. The finer the division, the greater the amount of calculation. At the same time, this solution is not applicable to interference in the same direction. Summary of the invention
[0004] In view of this, the present invention provides a voice wake-up method, device, equipment and medium, which can not only make up for the shortcomings of simple unidirectional noise reduction, but also will not significantly increase the amount of calculation, and can handle unidirectional interference, thereby greatly improving the accuracy of voice wake-up while ensuring efficiency.
[0005] In a first aspect, the present invention provides a voice wake-up method, the method comprising:
[0006] Obtain the data currently received by the microphone array as target data;
[0007] Performing a preset non-directional noise reduction process on the target data, and inputting the target data after the non-directional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine;
[0008] Performing filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and inputting the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine;
[0009] Based on the first voice recognition result and the second voice recognition result, it is comprehensively determined whether a wake-up operation corresponding to the target data is required.
[0010] The voice wake-up method provided by the present invention has the following advantages:
[0011] The present invention processes the data received by the microphone array in two ways. One way is to first perform a preset undirected noise reduction process on the data, and then perform voice recognition through the first voice wake-up engine. The other way is to first use a pre-constructed spatial filter to filter and reduce noise on the data, and then perform voice recognition through the second voice wake-up engine. Finally, based on the results of the voice recognition in the two ways, it is comprehensively determined whether the data contains the target wake-up word, and then it is determined whether the corresponding wake-up operation is required. The present invention adopts the method of undirected noise reduction combined with spatial filter filtering and noise reduction, which can not only make up for the shortcomings of pure undirected noise reduction, but also will not greatly increase the amount of calculation. At the same time, it can handle co-directional interference, thereby greatly improving the accuracy of voice wake-up while ensuring efficiency.
[0012] In an optional implementation manner, before performing noise reduction processing on the target data, the method further includes:
[0013] transforming the target data into a frequency domain signal;
[0014] Correspondingly, after the target data is subjected to noise reduction processing, the method further includes:
[0015] Restoring the target data after noise reduction processing to a time domain signal;
[0016] The noise reduction process includes non-directional noise reduction process and filtering noise reduction process.
[0017] In an optional implementation manner, before performing noise reduction processing on the target data, the method further includes:
[0018] The target data transformed into the frequency domain signal is subjected to reverberation suppression processing.
[0019] In an optional implementation, before filtering and denoising the target data using a pre-constructed spatial filter, the method further includes:
[0020] Based on a preset flag, it is determined whether a spatial filter has been constructed. If so, the step of filtering and denoising the target data using the pre-constructed spatial filter is performed; otherwise, a spatial filter is constructed based on the target data.
[0021] In an optional implementation, constructing a spatial filter based on the target data includes:
[0022] Based on the first speech recognition result, respectively determining the pure noise data and the target wake-up word data contained in the target data;
[0023] A covariance matrix of the pure noise data and the target wake-up word data is calculated, and a spatial filter is calculated based on the covariance matrix.
[0024] In an optional implementation, after obtaining the second voice recognition result output by the second voice wake-up engine, the method further includes:
[0025] Determine a speech recognition result indicating that the target data contains any word as a target speech recognition result, wherein the speech recognition result includes a first speech recognition result and a second speech recognition result;
[0026] Based on the target speech recognition result, the steps of respectively determining the pure noise data and the target wake-up word data contained in the target data are performed until a new spatial filter is calculated, and the new spatial filter is used to replace the existing spatial filter.
[0027] In an optional implementation, based on the first voice recognition result and the second voice recognition result, comprehensively determining whether a wake-up operation corresponding to the target data needs to be performed includes:
[0028] If the first voice recognition result and / or the second voice recognition result reaches a preset voice wake-up score threshold, it is determined that a wake-up operation corresponding to the target data needs to be performed; wherein the first voice recognition result and the second voice recognition result are respectively corresponding voice wake-up scores.
[0029] In a second aspect, the present invention provides a voice wake-up device, the device comprising:
[0030] An acquisition module is used to: acquire the data currently received by the microphone array as target data;
[0031] A first recognition module is used to: perform a preset non-directional noise reduction process on the target data, and input the target data after the non-directional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine;
[0032] A second recognition module is used to: perform filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and input the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine;
[0033] The determination module is used to comprehensively determine whether a wake-up operation corresponding to the target data is required based on the first voice recognition result and the second voice recognition result.
[0034] The voice wake-up device provided by the present invention has the following advantages:
[0035] The present invention processes the data received by the microphone array in two ways. One way is to first perform a preset undirected noise reduction process on the data, and then perform voice recognition through the first voice wake-up engine. The other way is to first use a pre-constructed spatial filter to filter and reduce noise on the data, and then perform voice recognition through the second voice wake-up engine. Finally, based on the results of the voice recognition in the two ways, it is comprehensively determined whether the data contains the target wake-up word, and then it is determined whether the corresponding wake-up operation is required. The present invention adopts the method of undirected noise reduction combined with spatial filter filtering and noise reduction, which can not only make up for the shortcomings of pure undirected noise reduction, but also will not greatly increase the amount of calculation. At the same time, it can handle co-directional interference, thereby greatly improving the accuracy of voice wake-up while ensuring efficiency.
[0036] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the voice wake-up method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the voice wake-up method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a flow chart of a voice wake-up method provided according to an embodiment of the present invention;
[0040] Figure 2 is a specific implementation process diagram of a voice wake-up method provided according to an embodiment of the present invention;
[0041] Figure 3 is a structural block diagram of a voice wake-up device according to an embodiment of the present invention;
[0042] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] The noise suppression methods can be divided into two categories according to whether there is prior information. One is the non-directional noise reduction technology, that is, the direction or statistical information of the target speech is unknown, and the other is the direction or statistical information of the target speech is known. The latter can greatly improve the noise reduction performance because the target direction information is known.
[0045] For voice wake-up tasks, the direction of the sound source is unknown before wake-up, and there are usually two noise reduction solutions. One is non-directional noise reduction. Although this technology can greatly reduce noise, it also has obvious defects, that is, the voice in the low-frequency area is severely damaged. Another solution is to divide the space into multiple areas according to the horizontal angle, and form multiple beams at the same time. Each beam outputs the voice and sends it to the wake-up engine. This solution uses angle information to reduce noise while keeping the voice as little damaged as possible; the disadvantage is that if the space division is too rough, more noise will be retained. The finer the division, the more calculations will increase significantly. For example, if 5 beams are calculated at the same time, not only 5 beam calculations are required, but also 5 wake-up engines need to work at the same time; at the same time, this solution is not available for interference in the same direction.
[0046] In summary, due to the lack of angle information guidance, the non-directional noise reduction technology has weak noise reduction ability and will damage the voice; while the multi-beam solution usually leads to a significant increase in the amount of calculation and cannot solve the problem of co-directional interference.
[0047] In this embodiment, a voice wake-up method is provided, which can be used in terminal devices such as mobile phones, tablet computers, etc. Figure 1 is a flow chart of a voice wake-up method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0048] S11: Acquire the data currently received by the microphone array as target data.
[0049] Assume the microphone array receives data x i (t), where i represents the microphone channel, t is the time, and x i (t) is the data received by the i-th microphone at time t, assuming there are M microphones in total.
[0050] S12: Perform a preset unidirectional noise reduction process on the target data, and input the target data after the unidirectional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine.
[0051] The voice wake-up engine is the same as the corresponding concept in the prior art, specifically, it can perform voice recognition on the input data, and if the recognition result indicates that the input data contains the target wake-up word, the corresponding wake-up operation is performed; the target wake-up word is a preset wake-up word that can be set according to the actual scene, such as "Hello Hello" and "Xiao Mei Xiao Mei", etc., and the wake-up operation is a preset operation that can be set according to the actual scene, such as power on, power off, etc. In addition, the first voice wake-up engine and the second voice wake-up engine can be the same or different, and can be set according to actual needs.
[0052] The algorithm used for the undirected noise reduction processing can be any algorithm that can implement the undirected noise reduction processing, which can be selected according to actual needs and will not be described in detail here. After the target data is subjected to the preset undirected noise reduction processing, the target data is input into the first voice wake-up engine for voice recognition, thereby greatly improving the accuracy of voice wake-up by first reducing noise and then recognizing.
[0053] S13: Perform filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and input the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine.
[0054] The spatial filter is the same as the corresponding concept in the prior art, and its main function is to filter and reduce noise on the input data, thereby enhancing the target sound source. In the embodiment of the present invention, the target data is filtered and denoised using a pre-constructed spatial filter, and then the target data is input into the second voice wake-up engine for voice recognition, thereby greatly improving the accuracy of voice wake-up by first reducing noise and then processing.
[0055] In addition, when it is determined that a spatial filter is constructed, step S12 and step S13 may be performed simultaneously, and in other special cases, they may also be performed separately and sequentially, all of which are within the protection scope of the present invention.
[0056] S14: Based on the first voice recognition result and the second voice recognition result, comprehensively determine whether a wake-up operation corresponding to the target data is required.
[0057] Based on the two speech recognition results, it is comprehensively determined whether the target data contains the target wake-up word, and then it is determined whether the corresponding wake-up operation of the target data is required. The accuracy of speech wake-up can be further improved through dual-path wake-up and fusion.
[0058] The present invention processes the data received by the microphone array in two ways. One way is to first perform a preset undirected noise reduction process on the data, and then perform voice recognition through the first voice wake-up engine. The other way is to first use a pre-constructed spatial filter to filter and reduce noise on the data, and then perform voice recognition through the second voice wake-up engine. Finally, based on the results of the voice recognition in the two ways, it is comprehensively determined whether the data contains the target wake-up word, and then it is determined whether the corresponding wake-up operation is required. The present invention adopts the method of undirected noise reduction combined with spatial filter filtering and noise reduction, which can not only make up for the shortcomings of pure undirected noise reduction, but also will not greatly increase the amount of calculation. At the same time, it can handle co-directional interference, thereby greatly improving the accuracy of voice wake-up while ensuring efficiency.
[0059] In a voice wake-up method provided in this embodiment, before performing noise reduction processing on the target data, the following steps may also be included:
[0060] transforming the target data into a frequency domain signal;
[0061] Correspondingly, after the target data is subjected to noise reduction processing, the following steps may also be included:
[0062] Restoring the target data after noise reduction processing to a time domain signal;
[0063] The noise reduction process includes non-directional noise reduction process and filtering noise reduction process.
[0064] In addition, before performing noise reduction processing on the target data, the following steps may also be included:
[0065] The target data transformed into the frequency domain signal is subjected to reverberation suppression processing.
[0066] In the embodiment of the present invention, after each microphone receives data, the data received by each microphone can be processed by framing and windowing, and then converted to the frequency domain by Fourier transformation to obtain a frequency domain signal X i (k,f), where k is the number of frames and f is the frequency band. For example, for data with a commonly used 16kHz sampling rate, the frame length can be set to 32ms and the frame shift to 16ms.
[0067] The above frequency domain signal is processed by the reverberation suppression module to obtain the multi-channel reverberation suppression processed data. Among them, reverberation suppression can adopt multi-channel WPE technology, etc.
[0068] The data after the multi-channel reverberation suppression processing is subjected to a preset non-directional noise reduction process. After denoising, S1(k,f) is obtained, and then restored to the time domain signal s1(t) through inverse Fourier transform and overlap-addition method. In addition, the data after the multi-channel reverberation suppression processing is filtered and denoised through a spatial filter to obtain S2(k,f), and then restored to the time domain signal s2(t) through inverse Fourier transform and overlap-addition method.
[0069] In a voice wake-up method provided in this embodiment, before filtering and denoising the target data using a pre-constructed spatial filter, the method may further include:
[0070] Based on a preset flag, it is determined whether a spatial filter has been constructed. If so, the step of filtering and denoising the target data using the pre-constructed spatial filter is performed; otherwise, a spatial filter is constructed based on the target data.
[0071] In the embodiment of the present invention, after the spatial filter is constructed, a corresponding flag bit sign can be set to indicate that a spatial filter has been constructed, and the flag bit is a preset flag bit. If the flag bit sign indicates that a spatial filter has been constructed, the constructed spatial filter is used to implement subsequent steps such as filtering and noise reduction processing of microphone received data. Otherwise, a spatial filter is constructed based on the microphone received data, and when constructing the spatial filter, a corresponding flag bit sign is set to indicate that a spatial filter has been constructed.
[0072] The process of constructing a spatial filter based on the target data may include:
[0073] Based on the first speech recognition result, respectively determining the pure noise data and the target wake-up word data contained in the target data;
[0074] A covariance matrix of the pure noise data and the target wake-up word data is calculated, and a spatial filter is calculated based on the covariance matrix.
[0075] It should be noted that the result of the voice wake-up engine performing voice recognition on the input data can be a voice wake-up score. The higher the voice wake-up score, the greater the possibility that the input data contains the target wake-up word. Specifically, the result of the voice wake-up engine performing the corresponding voice recognition can be divided into three states. One is that the voice cannot be recognized at all, and the voice wake-up score is 0; one is that the voice and the words in it can be recognized, and the voice wake-up score reaches the voice wake-up score threshold set according to actual needs. At this time, it can be considered that the input data contains the target wake-up word; the other is that the voice and the words in it can be recognized, but the voice wake-up score is low, between 0 and the voice wake-up score threshold. Among them, the last state usually has two possible causes. One is that the voice quality is too poor to be recognized, and the other is that other non-target wake-up words cause misrecognition.
[0076] In the embodiment of the present invention, as long as the word can be recognized, a spatial filter can be constructed based on this. The data after the undirected noise reduction processing is sent to the first voice wake-up engine to obtain the first voice recognition result. If the first voice recognition result indicates that the voice cannot be recognized, it is determined that the spatial filter cannot be constructed based on the first voice recognition result; otherwise, it is determined that the spatial filter can be constructed based on the first voice recognition result. Specifically, based on the first voice recognition result, the voice start and end time points of the target wake-up word can be obtained. According to the start and end time points, which frames are pure noise data and which contain target wake-up word data can be located in the cached data (for the convenience of spatial filter construction, a copy of the target data after reverberation suppression processing can be cached) according to the start and end time points. The covariance matrix of the initial noise (i.e., pure noise data) and the target voice (i.e., target wake-up word data) is calculated, and a more accurate initial noise and target voice covariance matrix can be obtained through the iteration of the complex Gaussian model, and then the spatial filter is calculated based on this. And while constructing the spatial filter, the sign of the spatial filter is set.
[0077] In addition, after obtaining the second voice recognition result output by the second voice wake-up engine, the method may further include:
[0078] Determine a speech recognition result indicating that the target data contains any word as a target speech recognition result, wherein the speech recognition result includes a first speech recognition result and a second speech recognition result;
[0079] Based on the target speech recognition result, the steps of respectively determining the pure noise data and the target wake-up word data contained in the target data are performed until a new spatial filter is calculated, and the new spatial filter is used to replace the existing spatial filter.
[0080] It should be noted that after the spatial filter is constructed, in the subsequent process, whether the first voice wake-up engine recognizes a word or the second voice wake-up engine recognizes a word, the spatial filter can be updated based on this, thereby ensuring the real-time and effectiveness of the spatial filter.
[0081] In a voice wake-up method provided in this embodiment, based on the first voice recognition result and the second voice recognition result, comprehensively determining whether a wake-up operation corresponding to the target data needs to be performed may include:
[0082] If the first voice recognition result and / or the second voice recognition result reaches a preset voice wake-up score threshold, it is determined that a wake-up operation corresponding to the target data needs to be performed; wherein the first voice recognition result and the second voice recognition result are respectively corresponding voice wake-up scores.
[0083] It should be noted that the speech recognition result in the embodiment of the present invention can be a score of the possibility of whether the input data contains the target wake-up word; thus, the first speech wake-up score score1 can be obtained through the first speech wake-up engine, and the second speech wake-up score score2 can be obtained through the second speech wake-up engine. The scores of the two speech wake-up engines are fused in the maximum value method: score = max (score1, score2). As long as the score reaches the speech wake-up score threshold, it is awakened.
[0084] In a specific implementation, Figure 2 As shown, a voice wake-up method provided in this embodiment may specifically include:
[0085] Step 1: Data Preprocessing
[0086] Assume the microphone array receives data x i (t), where i represents the microphone channel, t is the time, and x i (t) is the data received by the i-th microphone at time t; suppose there are M microphones in total.
[0087] The data received by each microphone is framed, windowed, and transformed to the frequency domain X by Fourier transform. i (k,f)(that is Figure 2 ), where k represents the frame number and f represents the frequency band.
[0088] Step 2: Suppress Reverberation
[0089] The multi-channel data transformed into the frequency domain is processed by the reverberation suppression module to obtain the multi-channel reverberation suppressed data.
[0090] Step 3: Undirected Noise Reduction and Data Caching
[0091] After undirected denoising, S1(k,f) is obtained, which is then restored to the time domain signal s1(t) through inverse Fourier transform and overlap-addition method.
[0092] Since the spatial filter construction needs to estimate the covariance matrix of the original noise and the target speech, sufficient data is needed for estimation, so the data can be cached first for easy access when needed. Generally, the duration of a four-character wake-up word is about 1 second. To avoid the impact of slow speech speed, the buffer can be set to 3 seconds.
[0093] Step 4: Construct spatial filter and set flag
[0094] The signal s1(t) after unidirectional noise reduction is sent to the voice wake-up engine 1 (the first voice wake-up engine, i.e. Figure 2 Wake-up in 1).
[0095] As long as the voice wake-up engine 1 can recognize the word, the spatial filter can be constructed. The voice start and end time points of the target wake-up word can be obtained through the voice wake-up engine 1. According to the start and end time points, it is possible to locate which frames in the cached data are pure noise data and which contain target wake-up word data, calculate the initial noise and target speech covariance matrix, and then iterate the complex Gaussian model to obtain a more accurate noise and target speech covariance matrix, and then calculate the spatial filter.
[0096] While constructing the spatial filter, the spatial filter flag sign is set.
[0097] In the subsequent process, whether it is voice wake-up engine 1 outputting a word or voice wake-up engine 2 (the second voice wake-up engine, i.e. Figure 2 Whether it is the wake-up 2) word output in the process or the final word output, the spatial filter is updated.
[0098] Step 5: Dual-channel wake-up and integration
[0099] The flag bit can be used to determine whether a spatial filter has been constructed. If the flag bit indicates that the spatial filter is constructed, the newly input multi-channel data can be de-noised by spatial filtering to obtain S2(k,f), which is then restored to the time domain signal s2(t) through inverse Fourier transform and overlap-addition method. S2(t) is passed through voice wake-up engine 2 to obtain score2. The two wake-up engine scores are fused by the maximum value method: score=max(score1,score2). As long as the score exceeds the threshold, it is woken up.
[0100] The embodiment of the present invention adopts a method of combining non-directional noise reduction with a spatial filter (specifically MVDR-GEV), which can not only make up for the shortcomings of non-directional noise reduction, but also avoid a significant increase in the amount of calculation, and can handle co-directional interference.
[0101] In this embodiment, a voice wake-up device is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0102] This embodiment provides a voice wake-up device, such as Figure 3 may include:
[0103] An acquisition module 11 is used to: acquire the data currently received by the microphone array as target data;
[0104] The first recognition module 12 is used to: perform a preset non-directional noise reduction process on the target data, and input the target data after the non-directional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine;
[0105] The second recognition module 13 is used to: perform filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and input the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine;
[0106] The determination module 14 is used to comprehensively determine whether a wake-up operation corresponding to the target data is required based on the first voice recognition result and the second voice recognition result.
[0107] The voice wake-up device in this embodiment is presented in the form of a functional module, where the module refers to an application specific integrated circuit (ASIC), a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0108] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0109] The embodiment of the present invention also provides a computer device having the above Figure 3 The voice wake-up device shown.
[0110] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade-sliced servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0111] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware core slice. The hardware core slice may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0112] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0113] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0115] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0116] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0117] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0118] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A voice wake-up method, characterized in that: include: Obtain the data currently received by the microphone array as target data; Performing a preset non-directional noise reduction process on the target data, and inputting the target data after the non-directional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine; Performing filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and inputting the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine; Based on the first voice recognition result and the second voice recognition result, it is comprehensively determined whether a wake-up operation corresponding to the target data is required.
2. The method according to claim 1, characterized in that Before performing noise reduction processing on the target data, the method further includes: transforming the target data into a frequency domain signal; Correspondingly, after the target data is subjected to noise reduction processing, the method further includes: Restoring the target data after noise reduction processing to a time domain signal; The noise reduction process includes non-directional noise reduction process and filtering noise reduction process.
3. The method according to claim 2, characterized in that Before performing noise reduction processing on the target data, the method further includes: The target data transformed into the frequency domain signal is subjected to reverberation suppression processing.
4. The method according to any one of claims 1 to 3, characterized in that Before filtering and denoising the target data using a pre-constructed spatial filter, the method further includes: Based on a preset flag, it is determined whether a spatial filter has been constructed. If so, the step of filtering and denoising the target data using the pre-constructed spatial filter is performed. Otherwise, a spatial filter is constructed based on the target data.
5. The method according to claim 4, characterized in that Constructing a spatial filter based on the target data, comprising: Based on the first speech recognition result, respectively determining the pure noise data and the target wake-up word data contained in the target data; A covariance matrix of the pure noise data and the target wake-up word data is calculated, and a spatial filter is calculated based on the covariance matrix.
6. The method according to claim 5, characterized in that After obtaining the second voice recognition result output by the second voice wake-up engine, the method further includes: Determine a speech recognition result indicating that the target data contains any word as a target speech recognition result, wherein the speech recognition result includes a first speech recognition result and a second speech recognition result; Based on the target speech recognition result, the steps of respectively determining the pure noise data and the target wake-up word data contained in the target data are performed until a new spatial filter is calculated, and the new spatial filter is used to replace the existing spatial filter.
7. The method according to claim 6, characterized in that Based on the first voice recognition result and the second voice recognition result, comprehensively determining whether a wake-up operation corresponding to the target data needs to be performed includes: If the first voice recognition result and / or the second voice recognition result reaches a preset voice wake-up score threshold, it is determined that a wake-up operation corresponding to the target data needs to be performed; wherein the first voice recognition result and the second voice recognition result are the corresponding voice wake-up scores respectively.
8. A voice wake-up device, characterized in that: include: An acquisition module is used to: acquire the data currently received by the microphone array as target data; A first recognition module is used to: perform a preset non-directional noise reduction process on the target data, and input the target data after the non-directional noise reduction process into a first voice wake-up engine to obtain a first voice recognition result output by the first voice wake-up engine; A second recognition module is used to: perform filtering and noise reduction processing on the target data using a pre-constructed spatial filter, and input the target data after filtering and noise reduction processing into a second voice wake-up engine to obtain a second voice recognition result output by the second voice wake-up engine; The determination module is used to comprehensively determine whether a wake-up operation corresponding to the target data is required based on the first voice recognition result and the second voice recognition result.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the voice wake-up method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the voice wake-up method according to any one of claims 1 to 7.
