A method, device, storage medium and equipment for reducing speech noise
By selecting the appropriate microphone array noise reduction algorithm and hyperparameter values according to the wearing status of the smart wearable device for speech noise reduction processing, the problem of poor noise reduction effect of smart wearable devices during exercise is solved and the quality of speech recognition and interaction is improved. .
Patent Information
- Application Number
- CN202111546994.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-16
AI Technical Summary
When smart wearable devices are in motion, because the sound source is far away from the microphone, and there are multipath reflections and noise in the environment, it is difficult for the single-microphone speech enhancement algorithm to separate different sound sources, and the noise reduction effect is reduced, affecting speech recognition and interaction.
According to the wearing status of the smart wearable device, determine whether to use the noise reduction algorithm and hyperparameter values suitable for fixed position or moving microphone array, update the adaptive filter coefficients through the adaptive filtering algorithm, and perform speech noise reduction processing.
It improves the speech noise reduction effect, realizes the separation of different sound sources, optimizes subsequent speech recognition and interaction, and improves the user experience.
Smart Images

Figure CN114155871B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech processing technology, and in particular to a speech noise reduction method, apparatus, storage medium and smart wearable device. Background Art
[0002] With the advancement of technology and the advent of the wave of intelligence, smart wearable devices are also developing rapidly. The forms of smart wearable devices are becoming more and more diverse, such as smart glasses, smart watches, smart bracelets, etc. Voice interaction is an extremely convenient and important way of interaction in the process of human-computer interaction. Some smart bracelets or smart watches also integrate recording functions into the product, allowing users to start recording anytime and anywhere.
[0003] When smart wearable devices collect voice, they are easily disturbed by the external environment and the audio they play, which in turn affects the accuracy of voice recognition. At present, many smart wearable devices usually use a single microphone to collect voice. Based on this, the single-microphone voice enhancement algorithm can be used to reduce the noise of the voice. The single-microphone voice enhancement algorithm can achieve better results in the case of no reverberation, low noise, and close distance to the sound source.
[0004] However, when the user is moving, the sound source may be far away from the microphone, and there may be a large amount of multipath reflection, reverberation and noise in the real environment. As a result, the voice signal received by a single microphone is composed of multiple sound sources and environmental noise. It is difficult for a single-microphone speech enhancement algorithm to separate different sound sources, and the noise reduction effect is significantly reduced, which has a great impact on subsequent speech recognition and interaction. Summary of the invention
[0005] The purpose of this application is to provide a speech noise reduction method, device, storage medium and smart wearable device, which can improve the noise reduction effect.
[0006] In a first aspect, the present application provides a speech noise reduction method, comprising:
[0007] Acquire the state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user;
[0008] Determining the noise reduction algorithm and parameter values of the hyperparameters used to reduce the noise of the speech according to the state of the smart wearable device;
[0009] The noise reduction algorithm and the parameter value of the hyperparameter are used to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech.
[0010] In a possible implementation, determining the noise reduction algorithm and parameter values of hyperparameters used for noise reduction of speech according to the state of the smart wearable device includes:
[0011] When the state of the smart wearable device is an unworn state, the noise reduction algorithm is determined to be a noise reduction algorithm suitable for a microphone array at a fixed position, and the parameter value of the hyperparameter is determined to be a parameter value suitable for a microphone array at a fixed position.
[0012] In one possible implementation, the noise reduction algorithm suitable for a microphone array at a fixed position includes an adaptive filtering algorithm based on a minimum mean square error (LMS), the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor, and the parameter values of the hyperparameters are preset values.
[0013] In a possible implementation, determining the noise reduction algorithm and parameter values of hyperparameters used for noise reduction of speech according to the state of the smart wearable device includes:
[0014] When the state of the smart wearable device is a wearing state, the noise reduction algorithm is determined to be a noise reduction algorithm suitable for a mobile microphone array, and the parameter value of the hyperparameter is determined to be a parameter value suitable for a mobile microphone array.
[0015] In one possible implementation, the noise reduction algorithm suitable for a mobile microphone array includes an adaptive filtering algorithm based on recursive least squares RLS, and the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor. The frame shift is less than a preset frame shift, the adaptive filter step size is greater than a preset step size, and the forgetting factor is less than a preset forgetting factor.
[0016] In a possible implementation, the step of using the noise reduction algorithm and the parameter value of the hyperparameter to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech includes:
[0017] Updating adaptive filter coefficients using the denoising algorithm and parameter values of the hyperparameters;
[0018] The noise-reduced speech is obtained according to the adaptive filter coefficient and the speech collected by the smart wearable device through the microphone array.
[0019] In a possible implementation, when the state of the smart wearable device is a wearing state, updating the adaptive filter coefficient by using the noise reduction algorithm and the parameter value of the hyperparameter includes:
[0020] The adaptive filter coefficients are updated using the noise reduction algorithm, the parameter values of the hyperparameters, and the parameter values of the motion parameters.
[0021] In a possible implementation, obtaining the state of the smart wearable device includes:
[0022] Receiving a state of the smart wearable device input by a user; or,
[0023] The state of the smart wearable device is detected by a biosensor of the smart wearable device.
[0024] In a second aspect, the present application provides a speech noise reduction device, comprising:
[0025] An acquisition module, used to acquire the state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user;
[0026] A determination module, used to determine the noise reduction algorithm and parameter values of the hyperparameters used for noise reduction of speech according to the state of the smart wearable device;
[0027] The noise reduction module uses the noise reduction algorithm and the parameter value of the hyperparameter to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech.
[0028] In one possible implementation, the determination module is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array at a fixed position when the smart wearable device is in an unworn state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a microphone array at a fixed position.
[0029] In one possible implementation, the noise reduction algorithm suitable for a microphone array at a fixed position includes an adaptive filtering algorithm based on a minimum mean square error (LMS), the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor, and the parameter values of the hyperparameters are preset values.
[0030] In a possible implementation, the determination module is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array when the state of the smart wearable device is a wearing state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a mobile microphone array.
[0031] In one possible implementation, the noise reduction algorithm suitable for a mobile microphone array includes an adaptive filtering algorithm based on recursive least squares RLS, and the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor. The frame shift is smaller than a preset frame shift, the adaptive filter step size is smaller than a preset step size, and the forgetting factor is smaller than a preset forgetting factor.
[0032] In one possible implementation, the noise reduction module is specifically used to update the adaptive filter coefficients using the noise reduction algorithm and the parameter values of the hyperparameters; and obtain the noise-reduced speech according to the adaptive filter coefficients and the speech collected by the smart wearable device through the microphone array.
[0033] In a possible implementation, when the state of the smart wearable device is a wearing state, the noise reduction module is specifically used to update the adaptive filter coefficients by using the noise reduction algorithm, the parameter values of the hyperparameters, and the parameter values of the motion parameters.
[0034] In a possible implementation, the acquisition module is specifically configured to receive a state of the smart wearable device input by a user; or to detect the state of the smart wearable device through a biosensor of the smart wearable device.
[0035] In a third aspect, the present application provides a smart wearable device, the smart wearable device comprising a microphone array and a processor;
[0036] The microphone array is used to collect voice;
[0037] The processor is used to obtain the state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user; determine the noise reduction algorithm and parameter values of the hyperparameters used to reduce the noise of the speech according to the state of the smart wearable device, and use the noise reduction algorithm and the parameter values of the hyperparameters to reduce the noise of the speech to obtain the noise-reduced speech.
[0038] In a possible implementation, the smart wearable device further includes a communication interface;
[0039] The communication interface is used to receive the status of the smart wearable device input by the user;
[0040] The processor is specifically used to obtain the state of the smart wearable device input by the user.
[0041] In a possible implementation, the smart wearable device further includes a biosensor;
[0042] The biosensor is used to detect the state of the smart wearable device;
[0043] The processor is specifically used to obtain the state of the smart wearable device detected by the biosensor.
[0044] In a possible implementation, the smart wearable device includes a smart bracelet, a smart watch, smart glasses, a smart helmet and a smart headband.
[0045] In one possible implementation, the processor is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array at a fixed position when the smart wearable device is in an unworn state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a microphone array at a fixed position.
[0046] In a possible implementation, the processor is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array when the smart wearable device is in a wearing state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a mobile microphone array.
[0047] In one possible implementation, the processor is specifically used to update the adaptive filter coefficients using the noise reduction algorithm and the parameter values of the hyperparameters; and obtain the noise-reduced speech according to the adaptive filter coefficients and the speech collected by the smart wearable device through the microphone array.
[0048] In a possible implementation, the processor is specifically used to update the adaptive filter coefficients using the noise reduction algorithm, the parameter values of the hyperparameters, and the parameter values of the motion parameters when the state of the smart wearable device is a wearing state.
[0049] In a fourth aspect, the present application provides an electronic device, including: a processor, a memory, and a system bus;
[0050] The processor and the memory are connected via the system bus;
[0051] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes any one of the implementations of the above-mentioned speech noise reduction method.
[0052] In a fifth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes any one of the implementation methods of the above-mentioned speech noise reduction method.
[0053] In a sixth aspect, the present application provides a computer program product, which, when running on an electronic device, enables the electronic device to perform any one of the implementations of the above-mentioned speech noise reduction method.
[0054] It can be seen from the above technical solution that the present application has at least the following beneficial effects:
[0055] The present application provides a method for reducing the noise of speech. The method is applied to a smart wearable device. First, the state of the smart wearable device is obtained, and the state is used to identify whether the smart wearable device is worn by the user. Then, based on the state of the smart wearable device, the noise reduction algorithm and the parameter value of the hyperparameter used for reducing the noise of speech are determined. Then, the noise reduction algorithm and the parameter value of the hyperparameter determined based on the state of the smart wearable device are used to reduce the noise of speech, instead of reducing the noise of speech based on a set of fixed noise reduction algorithms and the parameter value of the hyperparameter. In this way, the noise reduction algorithm and the parameter value of the hyperparameter adapted to the state of the smart wearable device can be used to reduce the noise of speech, thereby improving the noise reduction effect of reducing the noise of speech. In addition, the speech obtained by collecting the sound source based on the microphone array will carry the spatial characteristics of the sound source, so that the separation of different sound sources can be achieved, further improving the noise reduction effect of the collected speech. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 An application scenario diagram of a speech noise reduction method provided in an embodiment of the present application;
[0058] Figure 2 An application scenario diagram of another speech noise reduction method provided in an embodiment of the present application;
[0059] Figure 3 A flow chart of a speech noise reduction method provided in an embodiment of the present application;
[0060] Figure 4A A schematic diagram of a configuration interface provided in an embodiment of the present application;
[0061] Figure 4B A schematic diagram of a configuration interface provided in an embodiment of the present application;
[0062] Figure 4C A schematic diagram of a configuration interface provided in an embodiment of the present application;
[0063] Figure 5 A schematic diagram of a desktop provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of a speech noise reduction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0066] First, some technical terms involved in the embodiments of the present application are introduced.
[0067] A microphone array refers to a speech signal acquisition device formed by a plurality of acoustic sensors (such as microphones) located at different positions in space arranged in a certain shape rule. The speech acquired by collecting the sound source using a microphone array can carry the spatial characteristics of the sound source (such as spatial position), thereby achieving the separation of different sound sources. Generally, microphone arrays can be divided into near-field models and far-field models according to the distance between the sound source and the microphone array. Microphone arrays can be divided into linear arrays, planar arrays, volume arrays, etc. according to the topological structure of the microphone array. Compared with a single microphone, microphone arrays can better solve the problems of a large number of multipath reflections, reverberation and noise in real environments through microphone array speech enhancement algorithms, thereby achieving better noise reduction effects.
[0068] Since the sound source needs to be tracked, microphone array speech enhancement algorithms usually update the filter based on adaptive filtering algorithms such as least mean squares (LMS) and recursive least squares (RLS). Current microphone array speech enhancement algorithms only control the noise reduction effect through a set of hyperparameters (such as frame shift and adaptive filter step size).
[0069] However, in some scenarios, the microphone arrays equipped on smart wearable devices such as smart watches and smart bracelets may cause relative displacement between the sound source and the microphone array as the wearer's body moves. The above-mentioned adaptive filtering algorithm is sensitive to hyperparameters such as frame shift and adaptive filter step size. When the parameter values of the configured hyperparameters are inappropriate, the adaptive filtering algorithm will converge slowly and may also fail to achieve the expected noise reduction effect. Therefore, when fixed hyperparameters are still used to control the noise reduction effect, the expected noise reduction effect is often not achieved, which has a greater impact on subsequent speech recognition and interaction.
[0070] In view of this, an embodiment of the present application provides a method for reducing the noise of speech, which can be applied to a smart wearable device. Specifically, the method includes: the smart wearable device obtains the state of the smart wearable device, which is used to identify whether the smart wearable device is worn by a user, and then determines the noise reduction algorithm and the parameter values of the hyperparameters used for reducing the noise of speech according to the state of the smart wearable device, and then uses the noise reduction algorithm and the parameter values of the hyperparameters to reduce the noise of speech collected by the smart wearable device through a microphone array to obtain the noise-reduced speech.
[0071] In this method, the smart wearable device uses a noise reduction algorithm associated with its own state and parameter values of hyperparameters to perform noise reduction processing on the speech collected by the microphone array, rather than performing noise reduction processing based on fixed hyperparameters. When the state of the smart wearable device is a wearing state, the noise reduction algorithm applicable to the mobile microphone array and the parameter values adapted to the mobile microphone array are used to perform noise reduction processing on the speech collected by the microphone array; when the state of the smart wearable device is an unworn state, the noise reduction algorithm applicable to the fixed microphone array and the parameter values adapted to the fixed microphone array are used to perform noise reduction processing on the speech collected by the microphone array. In this way, when the smart wearable device moves with the user's limbs or the smart wearable device is in a fixed position, a good noise reduction effect can be achieved for the speech collected by the smart wearable device through the microphone array.
[0072] In order to make the technical solution of the present application clearer and easier to understand, the application scenarios of the speech noise reduction method provided in the embodiments of the present application are introduced below with reference to the accompanying drawings.
[0073] like Figure 1 As shown, the voice noise reduction method provided in the embodiment of the present application can be applied to a call scenario. In a call scenario, the smart wearable device 11 can collect the voice of user 1 (for example, the voice corresponding to "Hello, is xx here?"), and the smart wearable device 12 can collect the voice of user 2 (for example, the voice corresponding to "Hello, he is not here today"), thereby realizing a voice call between user 1 and user 2. Figure 2 As shown, the voice noise reduction method provided in the embodiment of the present application can also be applied to smart home scenarios. In the smart home scenario, the smart wearable device 21 can collect the voice of the user 3 (for example, the voice corresponding to "turn on the air conditioner"), so that the user 3 can indirectly control the smart home appliance 22 (such as a smart air conditioner, etc.) by voice.
[0074] In the above scenario, the smart wearable device can detect its own state, that is, whether it is worn by the user. When the smart wearable device is in a state of being worn by the user, the smart wearable device uses a noise reduction algorithm suitable for a mobile microphone array and parameter values suitable for a mobile microphone array to reduce the noise of the speech collected by the microphone array; when the smart wearable device is not worn by the user, the smart wearable device uses a noise reduction algorithm suitable for a microphone array in a fixed position and parameter values suitable for a microphone array in a fixed position to reduce the noise of the speech collected by the microphone array.
[0075] In this way, in the above scenario, whether the smart wearable device is worn by the user or not, it can effectively reduce the noise of the voice collected by the microphone array, thereby helping to optimize subsequent voice recognition and interaction and improve the user experience.
[0076] In order to make the technical solution of the present application clearer and easier to understand, the speech noise reduction method provided by the embodiment of the present application is introduced from the perspective of a smart wearable device. Figure 3 As shown, the figure is a flow chart of a speech noise reduction method provided by an embodiment of the present application, the method comprising:
[0077] S302: The smart wearable device obtains the status of the smart wearable device.
[0078] The state of the smart wearable device is used to identify whether the smart wearable device is worn by the user. In some examples, the smart wearable device can obtain the state of the smart wearable device based on a biosensor equipped on the smart wearable device, that is, detect whether the smart wearable device is worn by the user.
[0079] In other examples, the smart wearable device may also receive the state of the smart wearable device configured by the user. For example, after the user wears the smart wearable device, the state of the smart wearable device may be configured as being worn by the user; after the user takes off the smart wearable device, the state of the smart wearable device may be configured as not being worn by the user.
[0080] In some examples, the smart wearable device may determine how the smart wearable device obtains the status based on the user configuration. Figure 4A As shown, this figure is a schematic diagram of a configuration interface provided by an embodiment of the present application. The configuration interface includes: a selection switch 410 for obtaining a state mode and a selection switch 420 for wearing a state. Among them, the selection switch 410 for obtaining a state is used by the user to configure the mode in which the smart wearable device obtains the state, and the selection switch 420 for wearing a state is used by the user to manually configure the state of the smart wearable device.
[0081] When the acquisition status selection switch 410 is in the on state (such as Figure 4AAs shown), the smart wearable device obtains the state of the smart wearable device based on the biosensor; when the selection switch 410 for obtaining the state is in the off state (as shown Figure 4B ), the user can manually configure the state of the smart wearable device based on the wearing state selection switch 420. When the wearing state selection switch 420 is in the on state (as shown in FIG. Figure 4B ), indicating that the user configures the state of the smart wearable device as the wearing state, and the user can trigger a click operation on the selection switch 420 of the wearing state. Based on the user's click operation, the smart wearable device switches the selection switch 420 of the wearing state from the on state to the off state (as shown in FIG. Figure 4C As shown), when the wearing status selection switch 420 is in the off state, it indicates that the user configures the smart wearable device to be in the not-worn state.
[0082] It should be noted that the embodiments of the present application do not specifically limit the manner in which the smart wearable device obtains the status of the smart wearable device, and those skilled in the art may select the manner in which the smart wearable device obtains its own status according to actual needs.
[0083] The smart wearable device may be installed with various applications. In some examples, the smart wearable device may provide a schematic diagram of the user's desktop, such as Figure 5 As shown, the desktop includes a recording application 501, a voice assistant application 502, etc. The user triggers a click operation on the recording application 501, and the smart wearable device can start collecting voice based on the click operation; similarly, the user can also trigger a click operation on the voice assistant application 502, and the smart wearable device can start collecting voice based on the click operation. In other examples, the user can also press a hardware button on the smart wearable device to trigger the smart wearable device to start collecting voice.
[0084] When the smart wearable device starts to collect voice, the smart wearable device can obtain the status of the smart wearable device in real time to determine the noise reduction algorithm and parameter values of the hyperparameters used for performing noise reduction processing on the voice collected by the smart wearable device.
[0085] In other embodiments, the smart wearable device can also record the starting time and ending time of the collected voice, and obtain the state of the smart wearable device corresponding to the voice segment from the starting time to the ending time (for example, the voice corresponding to a sentence), and then establish an association between the voice segment and the state of the smart wearable device, so as to subsequently perform noise reduction processing on the voice segment based on the association.
[0086] S304: The smart wearable device determines the noise reduction algorithm and parameter values of the hyperparameters used to reduce the noise of the speech according to the state of the smart wearable device.
[0087] In the embodiment of the present application, the state of the smart wearable device is different, and the noise reduction algorithm and the parameter value of the hyperparameter used by the smart wearable device to perform noise reduction processing on the collected voice are different. The following introduces the noise reduction algorithm and the parameter value of the hyperparameter used by the smart wearable device to perform noise reduction processing on the voice when the smart wearable device is in a state of being worn by the user and in a state of not being worn by the user.
[0088] In some embodiments, when the state of the smart wearable device is not worn, the noise reduction algorithm is determined to be a noise reduction algorithm suitable for a microphone array at a fixed position, and the parameter value of the hyperparameter is determined to be a parameter value suitable for a microphone array at a fixed position. Among them, the noise reduction algorithm suitable for a microphone array at a fixed position includes an adaptive filtering algorithm based on minimum mean square error, and the hyperparameter includes one or more of a frame shift, an adaptive filter step size, and a forgetting factor, and the hyperparameter can be a preset value. For example, the frame shift is a preset frame shift, the adaptive filter step size is a preset step size, and the forgetting factor is a preset forgetting factor, and the preset frame shift, the preset step size, and the preset forgetting factor can all be set according to empirical values.
[0089] It should be noted that the noise reduction algorithm applicable to the fixed microphone array is an adaptive filtering algorithm based on minimum mean square error, which is only an example. In other examples, other adaptive filtering algorithms may also be used.
[0090] In this embodiment, when the smart wearable device detects that it is not worn by the user, it indicates that the smart wearable device is in a fixed position. The smart wearable device uses a noise reduction algorithm suitable for a microphone array at a fixed position and parameter values suitable for a microphone array at a fixed position to perform noise reduction processing on the speech collected by the microphone array.
[0091] It should be noted that the smart wearable device being in a fixed position may specifically mean that the microphone array of the smart wearable device and the sound source are in a relatively fixed position. For example, the sound source is located at a first position (such as a sofa in a living room), and the smart wearable device is located at a second position (such as a coffee table in the living room).
[0092] In other embodiments, when the state of the smart wearable device is the wearing state, the noise reduction algorithm is determined to be a noise reduction algorithm suitable for a mobile microphone array, and the parameter value of the hyperparameter is determined to be a parameter value suitable for a mobile microphone array. Among them, the noise reduction algorithm suitable for a mobile microphone array includes an adaptive filtering algorithm based on recursive least squares, and the hyperparameter includes one or more of a frame shift, an adaptive filter step size, and a forgetting factor. Compared with the parameter value suitable for a microphone array in a fixed position, the frame shift suitable for a mobile microphone array is less than a preset frame shift, the adaptive filter step size suitable for a mobile microphone array is greater than a preset step size, and the forgetting factor suitable for a mobile microphone array is less than a preset forgetting factor.
[0093] It should be noted that the noise reduction algorithm applicable to the mobile microphone array is a least squares-based adaptive filtering algorithm, which is merely an example. In other examples, other adaptive filtering algorithms may also be used.
[0094] In this embodiment, when the smart wearable device detects that it is being worn by a user, it indicates that there is relative motion between the smart wearable device and the sound source. The smart wearable device uses a noise reduction algorithm suitable for a mobile microphone array and parameter values suitable for a mobile microphone array to perform noise reduction processing on the speech collected by the microphone array.
[0095] It should be noted that the relative motion between the smart wearable device and the sound source can be that the position of the microphone array of the smart wearable device is fixed, while the position of the sound source moves; or the position of the microphone array of the smart wearable device moves, while the position of the sound source is fixed; or the positions of the microphone array of the smart wearable device and the sound source both move, but at different speeds. In some examples, the position of the sound source (the user's mouth) is fixed, and the position of the smart wearable device moves, such as swinging with the user's swinging arms.
[0096] In this way, the smart wearable device can determine the appropriate noise reduction algorithm and parameter values of the hyperparameters based on its own state, so that the smart wearable device can achieve better noise reduction effects in different states (for example, being worn by the user and not being worn by the user), providing clearer voice for subsequent voice recognition and interaction, and meeting business needs.
[0097] S306: The smart wearable device uses a noise reduction algorithm and a parameter value of a hyperparameter to reduce noise on the speech collected by the smart wearable device through the microphone array to obtain noise-reduced speech.
[0098] The adaptive filter can update the adaptive filter coefficients based on an adaptive filtering algorithm (e.g., the above-mentioned adaptive filtering algorithm based on recursive least squares, the adaptive filtering algorithm based on minimum mean square error). For example, an input signal (e.g., an input voice signal) can be input into an adaptive filter for filtering to obtain an output signal (e.g., an output voice signal), and the output signal is compared with the expected signal to obtain an error signal, and then the adaptive filter coefficients are updated through the adaptive filtering algorithm so that the mean square error value of the error signal is minimized.
[0099] In some examples, the smart wearable device updates the adaptive filter coefficients using the noise reduction algorithm and the parameter values of the hyperparameters. Specifically, the smart wearable device can update the adaptive filter coefficients at time n based on the following formula:
[0100] w(n+1)=w(n)+μe(n)X(n) (1)
[0101] Among them, w(n+1) is the adaptive filter coefficient at time n+1, w(n) is the adaptive filter coefficient at time n, μ is the adaptive filter step size, e(n) is the estimation error at time n, and X(n) is the speech signal input at time n, such as the speech collected by the microphone array.
[0102] When the state of the smart wearable device is different, the adaptive filtering algorithm and the parameter value of the hyperparameter used by the smart wearable device when updating the adaptive filter coefficient are different.
[0103] When the state of the smart wearable device is not worn, the adaptive filter can be updated based on the noise reduction algorithm adapted to the microphone array at a fixed position and the parameter value of the hyperparameter of the microphone array adapted to the fixed position. For example, the adaptive filter coefficients can be updated based on the minimum mean square error adaptive filtering algorithm and a preset frame shift, a preset step size, a preset forgetting factor, etc.
[0104] When the state of the smart wearable device is the wearing state, the adaptive filter coefficients can be updated based on the noise reduction algorithm adapted to the mobile microphone array and the parameter values of the hyperparameters adapted to the mobile microphone array. For example, the adaptive filter coefficients can be updated based on the recursive least squares adaptive filtering algorithm and a frame shift less than the above-preset frame shift, an adaptive filter step size greater than the above-preset step size, a forgetting factor less than the preset forgetting factor, etc.
[0105] When the smart wearable device is in the wearing state, the smart wearable device moves with the movement of the user's limbs (such as arms), thereby causing relative movement between the sound source and the microphone array of the smart wearable device. In addition, the acceleration of the smart wearable device will affect the degree of change in the relative position between the sound source and the microphone array of the smart wearable device. For example, when the acceleration of the smart wearable device is large, the degree of change in the relative position is large, and it is necessary to update the adaptive filter coefficients with a smaller frame shift and a larger adaptive filter step size; when the acceleration of the smart wearable device is small, the degree of change in the relative position is small, and it is necessary to update the adaptive filter coefficients with a larger frame shift and a smaller adaptive filter step size.
[0106] It should be noted that, when the smart wearable device adjusts the frame shift and the adaptive filter step size based on the motion parameters, the frame shift should be smaller than the preset frame shift, and the adaptive filter step size should be larger than the preset step size.
[0107] Based on this, in another embodiment of the present application, the smart wearable device can update the adaptive filter coefficients using a noise reduction algorithm adapted to a mobile microphone array, parameter values adapted to a mobile microphone array, and parameter values of motion parameters. The smart wearable device can obtain the parameter values of the motion parameters of the smart wearable device. For example, the smart wearable device can collect the motion parameters of the smart wearable device based on the motion sensor equipped on the smart wearable device, and then obtain the parameter values of the motion parameters. The parameter values of the motion parameters are then used to assist in updating the adaptive filter coefficients. Specifically, the smart wearable device can update the adaptive filter coefficients at time n based on the following formula:
[0108] w(n+1)=w(n)+μf[M(n)]e(n)X(n) (2)
[0109] Wherein, f[M(n)] is a conversion function, for example, f[M(n)]=log[M(n)+1]. M(n) is the parameter value of the motion parameter at time n, for example, M(n) can be the acceleration of the wearable device at time n. Since the acceleration and the adaptive filtering algorithm are not in the same dimension, the conversion function can convert the acceleration.
[0110] It should be noted that the acquisition frequency of the motion sensor is consistent with the adaptive filtering algorithm, so that the speech targeted by the motion parameters acquired by the motion sensor and the speech targeted by the adaptive filtering algorithm are speech in the same time period.
[0111] Then, the smart wearable device can obtain the de-noised speech based on the adaptive filter coefficient and the speech collected by the smart wearable device through the microphone array. In some examples, the smart wearable device can process the speech collected by the smart wearable device through the microphone array based on the updated adaptive filter coefficient to obtain the de-noised speech. Specifically, the smart wearable device can obtain the de-noised speech at time n based on the following formula:
[0112] y(n)=w(n)*X(n) (3)
[0113] Among them, y(n) is the speech signal output at time n, such as the speech after noise reduction, w(n) is the adaptive filter coefficient at time n, and X(n) is the input signal at time n, such as the speech collected by the microphone array.
[0114] Furthermore, the noise-reduced speech may be transmitted to a speech recognition system for speech recognition, or the noise-reduced speech may be stored for subsequent playback.
[0115] Based on the above description, the speech noise reduction method provided in the embodiment of the present application updates the adaptive filter coefficients based on different scenarios, using different noise reduction algorithms and different hyperparameter parameter values. For example, based on the biosensor of the smart wearable device, the state of the microphone array of the smart wearable device when collecting speech can be automatically detected, and based on different states, different noise reduction algorithms and hyperparameter parameter values can be selected for adaptation, thereby improving the noise reduction effect of reducing the noise of speech collected by the microphone array in different scenarios.
[0116] Furthermore, the smart wearable device can also obtain the parameter value of the motion parameter of the smart wearable device based on its own motion sensor, and then assist in updating the adaptive filter coefficient based on the parameter value of the motion parameter. For example, when the acceleration of the smart wearable device is large, the adaptive filter step size is increased and the frame shift is reduced during the updating of the adaptive filter coefficient; when the acceleration of the smart wearable device is small, the adaptive filter step size is reduced and the frame shift is increased during the updating of the adaptive filter coefficient, so that the adaptive filtering algorithm can achieve the purpose of rapid convergence.
[0117] This embodiment will introduce a speech noise reduction device. For related content, please refer to the above method embodiment.
[0118] See also Figure 6 , is a schematic diagram of the composition of the speech noise reduction device provided in this embodiment, the speech noise reduction device 600 includes:
[0119] An acquisition module 601 is used to acquire a state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user;
[0120] A determination module 602 is used to determine the noise reduction algorithm and parameter values of the hyperparameters used for noise reduction of speech according to the state of the smart wearable device;
[0121] The noise reduction module 603 uses the noise reduction algorithm and the parameter value of the hyperparameter to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech.
[0122] In one possible implementation, the determination module 602 is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array at a fixed position when the smart wearable device is in an unworn state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a microphone array at a fixed position.
[0123] In one possible implementation, the noise reduction algorithm suitable for a microphone array at a fixed position includes an adaptive filtering algorithm based on a minimum mean square error (LMS), the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor, and the parameter values of the hyperparameters are preset values.
[0124] In a possible implementation, the determination module 602 is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array when the state of the smart wearable device is a wearing state, and determine that the parameter value of the hyperparameter is a parameter value suitable for a mobile microphone array.
[0125] In one possible implementation, the noise reduction algorithm suitable for a mobile microphone array includes an adaptive filtering algorithm based on recursive least squares RLS, and the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor. The frame shift is smaller than a preset frame shift, the adaptive filter step size is smaller than a preset step size, and the forgetting factor is smaller than a preset forgetting factor.
[0126] In one possible implementation, the noise reduction module 603 is specifically used to update the adaptive filter coefficients using the noise reduction algorithm and the parameter values of the hyperparameters; and obtain the noise-reduced speech according to the adaptive filter coefficients and the speech collected by the smart wearable device through the microphone array.
[0127] In a possible implementation, when the state of the smart wearable device is the wearing state, the noise reduction module 603 is specifically used to update the adaptive filter coefficients by using the noise reduction algorithm, the parameter values of the hyperparameters and the parameter values of the motion parameters.
[0128] In a possible implementation, the acquisition module 601 is specifically configured to receive the state of the smart wearable device input by a user; or to detect the state of the smart wearable device through a biosensor of the smart wearable device.
[0129] The embodiment of the present application also provides a smart wearable device, the smart wearable device comprising a microphone array and a processor;
[0130] The microphone array is used to collect voice;
[0131] The processor is used to obtain the state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user; determine the noise reduction algorithm and parameter values of the hyperparameters used to reduce the noise of the speech according to the state of the smart wearable device, and use the noise reduction algorithm and the parameter values of the hyperparameters to reduce the noise of the speech to obtain the noise-reduced speech.
[0132] In a possible implementation, the smart wearable device further includes a communication interface;
[0133] The communication interface is used to receive the status of the smart wearable device input by the user;
[0134] The processor is specifically used to obtain the state of the smart wearable device input by the user.
[0135] In a possible implementation, the smart wearable device further includes a biosensor;
[0136] The biosensor is used to detect the state of the smart wearable device;
[0137] The processor is specifically used to obtain the state of the smart wearable device detected by the biosensor.
[0138] In a possible implementation, the smart wearable device includes a smart bracelet, a smart watch, smart glasses, a smart helmet and a smart headband.
[0139] In one possible implementation, the processor is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array at a fixed position when the smart wearable device is in an unworn state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a microphone array at a fixed position.
[0140] In a possible implementation, the processor is specifically used to determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array when the smart wearable device is in a wearing state, and to determine that the parameter value of the hyperparameter is a parameter value suitable for a mobile microphone array.
[0141] In one possible implementation, the processor is specifically used to update the adaptive filter coefficients using the noise reduction algorithm and the parameter values of the hyperparameters; and obtain the noise-reduced speech according to the adaptive filter coefficients and the speech collected by the smart wearable device through the microphone array.
[0142] In a possible implementation, the processor is specifically used to update the adaptive filter coefficients using the noise reduction algorithm, the parameter values of the hyperparameters, and the parameter values of the motion parameters when the state of the smart wearable device is a wearing state.
[0143] The embodiment of the present application also provides an electronic device, including: a processor, a memory, and a system bus;
[0144] The processor and the memory are connected via the system bus;
[0145] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes any one of the implementation methods of the above-mentioned speech noise reduction method.
[0146] An embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes any one of the implementation methods of the above-mentioned speech noise reduction method.
[0147] The embodiment of the present application further provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the implementation methods of the above-mentioned speech noise reduction method.
[0148] It can be known from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0149] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0150] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0151] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A speech noise reduction method, characterized in that: Applied to a smart wearable device, the method comprises: Acquire the state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user; Determine the noise reduction algorithm and parameter values of the hyperparameters used for noise reduction of speech according to the state of the smart wearable device; when the state of the smart wearable device is not worn, determine that the noise reduction algorithm is a noise reduction algorithm applicable to a microphone array at a fixed position, and determine that the parameter values of the hyperparameters are parameter values applicable to a microphone array at a fixed position; when the state of the smart wearable device is worn, determine that the noise reduction algorithm is a noise reduction algorithm applicable to a mobile microphone array, and determine that the parameter values of the hyperparameters are parameter values applicable to a mobile microphone array; The noise reduction algorithm and the parameter value of the hyperparameter are used to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech.
2. The method according to claim 1, characterized in that: The noise reduction algorithm suitable for a microphone array at a fixed position includes an adaptive filtering algorithm based on a minimum mean square error (LMS); the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor; and the parameter values of the hyperparameters are preset values, wherein the frame shift is a preset frame shift, the adaptive filter step size is a preset step size, and the forgetting factor is a preset forgetting factor.
3. The method according to claim 1, characterized in that The noise reduction algorithm suitable for a mobile microphone array includes an adaptive filtering algorithm based on recursive least squares (RLS), and the hyperparameters include one or more of a frame shift, an adaptive filter step size, and a forgetting factor. The frame shift is smaller than a preset frame shift, the adaptive filter step size is larger than a preset step size, and the forgetting factor is smaller than a preset forgetting factor.
4. The method according to any one of claims 1 to 3, characterized in that: The method of using the noise reduction algorithm and the parameter value of the hyperparameter to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech includes: Updating adaptive filter coefficients using the noise reduction algorithm and parameter values of the hyperparameters; The noise-reduced speech is obtained according to the adaptive filter coefficient and the speech collected by the smart wearable device through the microphone array.
5. The method according to claim 4, characterized in that When the state of the smart wearable device is a wearing state, updating the adaptive filter coefficient by using the noise reduction algorithm and the parameter value of the hyperparameter includes: The adaptive filter coefficients are updated using the noise reduction algorithm, the parameter values of the hyperparameters, and the parameter values of the motion parameters.
6. The method according to any one of claims 1 to 3, characterized in that: The obtaining the state of the smart wearable device includes: Receiving a state of the smart wearable device input by a user; or, The state of the smart wearable device is detected by a biosensor of the smart wearable device.
7. A smart wearable device, characterized in that: The smart wearable device includes a microphone array and a processor; The microphone array is used to collect voice; The processor is used to obtain a state of the smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user; According to the state of the smart wearable device, determine the noise reduction algorithm and parameter values of the hyperparameters used to reduce the noise of the speech; when the state of the smart wearable device is not worn, determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array in a fixed position, and determine the parameter values of the hyperparameters as parameter values suitable for a microphone array in a fixed position; when the state of the smart wearable device is worn, determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array, and determine the parameter values of the hyperparameters as parameter values suitable for a mobile microphone array; use the noise reduction algorithm and the parameter values of the hyperparameters to reduce the noise of the speech to obtain the noise-reduced speech.
8. The smart wearable device according to claim 7, characterized in that: The smart wearable device also includes a communication interface; The communication interface is used to receive the status of the smart wearable device input by the user; The processor is specifically used to obtain the state of the smart wearable device input by the user.
9. The smart wearable device according to claim 7, characterized in that: The smart wearable device also includes a biosensor; The biosensor is used to detect the state of the smart wearable device; The processor is specifically used to obtain the state of the smart wearable device detected by the biosensor.
10. The smart wearable device according to any one of claims 7 to 9, characterized in that: The smart wearable devices include smart bracelets, smart watches, smart glasses, smart helmets and smart headbands.
11. A speech noise reduction device, characterized in that: include: An acquisition module, used to acquire a state of a smart wearable device, where the state is used to identify whether the smart wearable device is worn by a user; A determination module, used to determine the noise reduction algorithm and parameter values of the hyperparameters used for voice noise reduction according to the state of the smart wearable device, when the state of the smart wearable device is not worn, determine that the noise reduction algorithm is a noise reduction algorithm suitable for a microphone array at a fixed position, and determine the parameter values of the hyperparameters as parameter values suitable for a microphone array at a fixed position; when the state of the smart wearable device is worn, determine that the noise reduction algorithm is a noise reduction algorithm suitable for a mobile microphone array, and determine the parameter values of the hyperparameters as parameter values suitable for a mobile microphone array; The noise reduction module uses the noise reduction algorithm and the parameter value of the hyperparameter to reduce the noise of the speech collected by the smart wearable device through the microphone array to obtain the noise-reduced speech.
12. An electronic device, characterized in that: include: Processor, memory, system bus; The processor and the memory are connected via the system bus; The memory is used to store one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 6.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for enhancing microphone array voice based on combined inhibition
CN102509552A
Noise reduction method and apparatus in terminal voice interaction mode
CN104967717A
Noise reduction method and device, and equipment achieving noise reduction
CN110164425A
Method and device for determining earphone noise reduction parameters and computer readable medium
CN110996215A
Acoustic processing device and acoustic processing method
CN111034217A
