Method for adjusting voice wake-up mode, storage medium and electronic device
By adjusting the wake-up mode of the voice activity detection unit and adjusting the wake-up difficulty according to the number of wake-ups and environmental conditions, the problem of false wake-up and high power consumption of smart devices in noisy environments is solved, achieving lower power consumption and higher wake-up accuracy. sex.
Patent Information
- Application Number
- CN202111225350.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-10-21
AI Technical Summary
The voice activity detection unit of existing smart devices is easily awakened by mistake in a noisy environment, resulting in increased power consumption and the inability to adapt to different sound field environments.
By obtaining the number of wake-ups of the voice activity detection unit within a preset time period, the wake-up mode is adjusted according to the number of wake-ups and the preset threshold, and the difficulty of waking up the voice activity detection unit is adjusted to adapt to the external environment and reduce the frequency of false wake-ups and power consumption.
It effectively reduces the false wake-up frequency of the voice activity detection unit and keyword detection unit in a noisy environment, reduces the power consumption of smart devices, and improves the adaptability of the wake-up mode.
Smart Images

Figure CN113889109B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice wake-up technology, and in particular to a method for adjusting a voice wake-up mode, a storage medium and an electronic device. Background Art
[0002] At present, most smart devices have a voice wake-up function. When the smart device is not used for a long time, it will automatically enter a dormant state. In the dormant state, the smart device can reduce power consumption and reduce electricity consumption.
[0003] Existing smart devices are integrated with a voice activity detection unit (VAD) and a keyword spotting unit (KWS). The voice activity detection unit is used to detect whether the audio signal contains a voice signal, where the voice signal is a signal sent by the user. If it contains a voice signal, the voice activity detection unit wakes up the keyword detection unit to work. The keyword detection unit is used to detect whether the voice signal contains a wake-up keyword set by the user. If it contains a wake-up keyword, the keyword detection unit wakes up the smart device and enters the normal working mode.
[0004] Since the wake-up mode of the voice activity detection unit is relatively simple and cannot adapt to various sound field environments, such as in scenes with a lot of human voices such as bars, concerts or shopping malls, the voice activity detection unit is easily woken up by mistake, and the wake-up frequency in this scene is much higher than the wake-up frequency in a quiet environment. Since the voice activity detection unit and the keyword detection unit are directly connected and the voice activity detection unit is always in the monitoring state, the keyword detection unit is also always in the computing state, which is easy to increase the power consumption of the smart device in the above noisy environment. Summary of the invention
[0005] An object of an embodiment of the present invention is to provide a method for adjusting a voice wake-up mode, a storage medium, and an electronic device, so as to solve the above-mentioned technical defects in the prior art.
[0006] In a first aspect, an embodiment of the present invention provides a method for adjusting a voice wake-up mode, including:
[0007] Acquire the number of voice wake-up times of the voice activity detection unit within a preset time length, wherein the voice activity detection unit can wake up the keyword detection unit to work when in the wake-up state;
[0008] According to the voice wake-up times and the preset wake-up threshold, the current wake-up mode of the voice activity detection unit is adjusted.
[0009] Optionally, the current wake-up mode is a low wake-up mode or a high wake-up mode, and the wake-up difficulty of the voice activity detection unit in waking up the keyword detection unit in the low wake-up mode is lower than the wake-up difficulty of waking up the keyword detection unit in the high wake-up mode.
[0010] Optionally, adjusting the current wake-up mode of the voice activity detection unit according to the voice wake-up number and a preset wake-up threshold includes:
[0011] Determining a target wake-up value according to the number of voice wake-ups;
[0012] According to the target wake-up value and the preset wake-up threshold, a current wake-up mode of the voice activity detection unit is adjusted.
[0013] Optionally, the preset wake-up threshold includes a first threshold or a second threshold, and adjusting the current wake-up mode of the voice activity detection unit according to the target wake-up value and the preset wake-up threshold includes:
[0014] If the current wake-up mode is a low wake-up mode, adjusting the current wake-up mode of the voice activity detection unit according to the target wake-up value and the first threshold;
[0015] If the current wake-up mode is a high wake-up mode, the current wake-up mode of the voice activity detection unit is adjusted according to the target wake-up value and the second threshold, and the second threshold is greater than the first threshold.
[0016] Optionally, determining a target wake-up value according to the number of voice wake-up times includes:
[0017] If the recognition probability of the keyword detection unit is less than or equal to the preset probability, the number of voice wake-up times is used as the target wake-up value;
[0018] If the recognition probability of the keyword detection unit is greater than the preset probability, the characteristic parameters of the keyword detection unit are obtained, and the target wake-up value is generated by fusing the characteristic parameters and the number of voice wake-up times.
[0019] Optionally, the difficulty of waking up the keyword detection unit by the voice activity detection unit can be represented by a voice judgment threshold, wherein the voice judgment threshold is positively correlated with the wake-up difficulty, and in the current wake-up mode, the target wake-up value is positively correlated with the voice judgment threshold.
[0020] Optionally, the method further comprises:
[0021] Determining a target preset value of the voice activity detection unit in a current wake-up mode, wherein the voice activity detection unit is configured with different target preset values in different wake-up modes;
[0022] According to the target wake-up value and the target preset value, the voice judgment threshold of the voice activity detection unit is adjusted.
[0023] Optionally, adjusting the voice judgment threshold of the voice activity detection unit according to the target wake-up value and the target preset value includes:
[0024] Calculating a difference between the target wake-up value and the target preset value;
[0025] Taking the difference as input, applying it to a preset PID architecture, so that the PID architecture outputs a compensation value;
[0026] According to the compensation value, the speech determination threshold of the speech activity detection unit is adjusted.
[0027] Optionally, if the current wake-up mode is a low wake-up mode, the target preset value is a first preset value;
[0028] If the current wake-up mode is the high wake-up mode, the target preset value is a second preset value, and the second preset value is greater than the first preset value.
[0029] In a second aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, wherein the computer executable instructions are used to enable an electronic device to execute the above-mentioned method for adjusting the voice wake-up mode.
[0030] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0031] A voice activity detection unit, configured to acquire an audio signal and generate a wake-up instruction if it is detected that the audio signal contains a voice signal;
[0032] A keyword detection unit, configured to determine whether the voice signal contains a wake-up keyword according to the wake-up instruction, and if the voice signal contains the wake-up keyword, wake up the electronic device;
[0033] The controller is used to execute the above-mentioned adjustment method.
[0034] Optionally, the voice activity detection unit is further configured to determine whether the sound pressure of the audio signal is less than a minimum sound pressure threshold or greater than a maximum sound pressure threshold; if not, to detect whether the audio signal contains a voice signal.
[0035] In the method for adjusting the voice wake-up mode provided in an embodiment of the present invention, the number of voice wake-up times of a voice activity detection unit within a preset time length is obtained. When the voice activity detection unit is in the wake-up state, it can wake up the keyword detection unit to work. According to the number of voice wake-up times and the preset wake-up threshold, the current wake-up mode of the voice activity detection unit is adjusted. Since the number of voice wake-up times can reflect the external environment, this embodiment adaptively adjusts the current wake-up mode of the voice activity detection unit according to the external environment, so that the adjusted current wake-up mode adapts to the external environment, reduces the frequency of the voice activity detection unit being mistakenly awakened when using a single wake-up mode, and the frequency of the keyword detection unit being mistakenly awakened, thereby reducing power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0037] Figure 1 A schematic diagram of a circuit structure of an electronic device provided by an embodiment of the present invention;
[0038] Figure 2 A flow chart of a method for adjusting a voice wake-up mode provided by an embodiment of the present invention;
[0039] Figure 3 for Figure 2 The schematic diagram of the process of S22 shown;
[0040] Figure 4 for Figure 3 The schematic diagram of the process of S222 shown;
[0041] Figure 5 A flowchart of a method for adjusting a voice wake-up mode provided by another embodiment of the present invention;
[0042] Figure 6 for Figure 5 The schematic diagram of the process of S24 shown;
[0043] Figure 7 A schematic diagram of the circuit structure of a controller provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0045] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0046] The electronic device provided in the embodiment of the present invention may be any suitable type of electronic product. For example, the electronic device is a smart speaker, a smart watch, a smart phone, a sweeping robot, or a smart TV.
[0047] See also Figure 1 The electronic device 100 includes a voice activity detection unit 11, a keyword detection unit 12 and a controller 13.
[0048] The voice activity detection unit 11 is used to acquire an audio signal and detect whether the audio signal contains a voice signal. For example, the voice activity detection unit 11 integrates an audio acquisition module and an audio analysis module. The audio acquisition module is used to acquire the audio signal and transmit the audio signal to the audio analysis module. The audio analysis module is burned with software code for voice extraction and filters the noise signal contained in the audio signal according to the noise filtering algorithm, wherein the noise signal includes environmental noise such as knocking sound, noise, and white noise.
[0049] Next, the audio analysis module determines whether there is a voice signal in the filtered audio signal according to the voice extraction algorithm, wherein the voice signal is a signal sent by the user. For example, the audio analysis module calculates the short-time energy or the number of short-time zero crossings of each frame of the filtered audio signal, and determines whether there is a voice signal in the filtered audio signal according to the short-time energy and the energy threshold or the number of short-time zero crossings and the zero crossing threshold of each frame of the audio signal. If the short-time energy is greater than the energy threshold, or the number of short-time zero crossings is greater than the zero crossing threshold, then there is a voice signal in the filtered audio signal. If the short-time energy is less than the energy threshold, or the number of short-time zero crossings is less than the zero crossing threshold, then there is no voice signal in the filtered audio signal.
[0050] If the voice activity detection unit 11 detects that the audio signal contains a voice signal, it generates a wake-up instruction, wherein the wake-up instruction is used to wake up the keyword detection unit to enter a normal working mode. If the voice activity detection unit 11 detects that the audio signal does not contain a voice signal, it continues to acquire the audio signal.
[0051] In some embodiments, the audio acquisition module is an electroacoustic transducer with an electroacoustic acquisition function, for example, the audio acquisition module is a microphone. The audio analysis module is an integrated chip with logic analysis and operation functions, for example, the audio analysis module can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components or any combination of these components.
[0052] In some embodiments, the voice activity detection unit 11 is also used to determine whether the sound pressure of the audio signal is less than a minimum sound pressure threshold or greater than a maximum sound pressure threshold. If not, it detects whether the audio signal contains a voice signal. If so, it reacquires the audio signal, wherein the minimum sound pressure threshold or the maximum sound pressure threshold is customized by the designer based on engineering experience.
[0053] Since the voice signal extracted by the voice activity detection unit 11 needs to be transmitted to the keyword detection unit 12 for analysis, if the sound pressure of the voice signal (audio signal) is too small or too large, the reliability and accuracy of the keyword detection unit 12 in extracting the wake-up keyword from the voice signal will be reduced. Therefore, this embodiment can timely filter the voice signal with a sound pressure less than the minimum sound pressure threshold or greater than the maximum sound pressure threshold to avoid the keyword detection unit 12 from analyzing such voice signals, thereby enhancing the reliability and accuracy of waking up the electronic device.
[0054] The keyword detection unit 12 is used to determine whether the voice signal contains the wake-up keyword according to the wake-up instruction. If the voice signal contains the wake-up keyword, the electronic device is woken up; if the voice signal does not contain the wake-up keyword, the electronic device is not woken up. The wake-up keyword is customized by the designer. For example, the wake-up keyword includes words such as open, start, start or close.
[0055] The keyword detection unit 12 is configured with a keyword extraction algorithm, wherein the keyword extraction algorithm may be any suitable type of algorithm, such as a deep learning algorithm or a neural network algorithm.
[0056] In some embodiments, the keyword detection unit 12 is an integrated chip with logic analysis and calculation functions.
[0057] The controller 13 is used to execute the adjustment method of the voice wake-up mode described in the following embodiments.
[0058] The embodiment of the present invention provides a method for adjusting the voice wake-up mode. Figure 2 The method S200 for adjusting the voice wake-up mode includes:
[0059] S21, obtaining the number of voice wake-up times of the voice activity detection unit within a preset time length, and when the voice activity detection unit is in the wake-up state, the keyword detection unit can be woken up to work;
[0060] As an example but not limiting, the number of voice wake-up times is the number of times the voice activity detection unit wakes up the keyword detection unit within the preset time length. For example, if the number of times the voice activity detection unit wakes up the keyword detection unit within the preset time length is 10 times or 100 times, the number of voice wake-up times is 10 or 100. The preset time length is customized by the designer based on engineering experience, for example, the preset time length is 1 minute, 10 minutes, or 30 minutes.
[0061] In some embodiments, each time the voice activity detection unit is in the wake-up state, the controller accumulates the natural number 1. For example, within the preset time length, assuming that the controller has currently accumulated 5 voice wake-up times, at time t1, the voice activity detection unit wakes up the keyword detection unit, then the controller accumulates the natural number 1 based on the accumulated voice wake-up times, and obtains a new accumulated voice wake-up time of 6, and so on.
[0062] The awakening state is the state in which the voice activity detection unit can wake up the keyword detection unit to work, that is, when the voice activity detection unit is in the awakening state, it can wake up the keyword detection unit to work. As mentioned above, if the number of voice wake-ups is 10, it means that the voice activity detection unit is in the awakening state 10 times within the preset time length, and the keyword detection unit can be awakened 10 times to work. When the keyword detection unit enters the working state, it can determine whether the voice signal contains the wake-up keyword. If the wake-up keyword is contained, the electronic device is awakened.
[0063] S22: Adjust the current wake-up mode of the voice activity detection unit according to the number of voice wake-up times and the preset wake-up threshold.
[0064] As an example but not limiting, the wake-up mode is a mode in which the voice activity detection unit can wake up the keyword detection unit, and the current wake-up mode is the wake-up mode that the voice activity detection unit is currently in. Different wake-up modes are configured with different wake-up difficulties, wherein, since the voice activity detection unit can wake up the keyword detection unit when detecting that the audio signal contains a voice signal, the wake-up difficulty can be defined as the difficulty of waking up the voice activity detection unit to detect whether the audio signal contains a voice signal. Generally, the wake-up difficulty can be represented by a voice judgment threshold, and the voice judgment threshold is a threshold used to judge whether the audio signal contains a voice signal, wherein the wake-up difficulty is positively correlated with the voice judgment threshold, and the larger the voice judgment threshold, the higher the wake-up difficulty, and the smaller the voice judgment threshold, the smaller the wake-up difficulty.
[0065] As mentioned above, the voice activity detection unit can determine whether the audio signal contains a voice signal according to an energy threshold or a zero-crossing threshold, that is, the voice determination threshold can be an energy threshold or a zero-crossing threshold.
[0066] Generally, when the energy threshold is greater than the short-time energy of the audio signal or the zero-crossing threshold is greater than the short-time zero-crossing number of the audio signal, it can be determined that the audio signal contains a voice signal. If the energy threshold or the zero-crossing threshold is increased, the signals in the audio signal that can exceed the energy threshold or the zero-crossing threshold will be relatively fewer, that is, the difficulty of waking up to determine whether the audio signal contains a voice signal will be higher. If the energy threshold or the zero-crossing threshold is lowered, the signals in the audio signal that can exceed the energy threshold or the zero-crossing threshold will be relatively more, that is, the difficulty of waking up to determine whether the audio signal contains a voice signal will be lower. Therefore, the energy threshold or the zero-crossing threshold can be used as the voice judgment threshold to indicate the difficulty of waking up.
[0067] It is understandable that those skilled in the art may also use other speech features to indicate the difficulty of awakening, and this document is not limited to the method of using energy threshold or zero-crossing threshold to indicate the difficulty of awakening.
[0068] The preset wake-up threshold is customized by the designer based on engineering experience. For example, the preset wake-up threshold is 0.5 or 1 or 8 or 15 or 30, etc. It can be understood that the number of voice wake-up times can be converted into any suitable value for comparison or judgment with the preset wake-up threshold. For example, the number of voice wake-up times is 10. In this embodiment, the number of voice wake-up times can be converted into 0.6 according to the rule, or the number of voice wake-up times can be kept at 10 according to the rule. Therefore, accordingly, the preset wake-up threshold is not limited to an integer, such as 8 or 15 or 30, and can also be 0.5 or 0.8, etc.
[0069] As mentioned above, when the accumulated duration of the controller is equal to the preset duration, the controller will adjust the current wake-up mode of the voice activity detection unit according to the number of voice wake-up times and the preset wake-up threshold.
[0070] Since the number of voice wake-up times can reflect the external environment conditions, this embodiment adaptively adjusts the current wake-up mode of the voice activity detection unit according to the external environment, so that the adjusted current wake-up mode adapts to the external environment, reduces the frequency of the voice activity detection unit being falsely awakened when using a single wake-up mode, and the frequency of the keyword detection unit being falsely awakened, thereby reducing power consumption.
[0071] In some embodiments, the current wake-up mode is a low wake-up mode or a high wake-up mode, and the wake-up difficulty of the voice activity detection unit in the low wake-up mode is lower than that in the high wake-up mode.
[0072] For example, the voice activity detection unit is configured with a first energy threshold in the low wake-up mode, and the voice activity detection unit is configured with a second energy threshold in the high wake-up mode, and the first energy threshold is smaller than the second energy threshold.
[0073] Assuming that the current wake-up mode is the low wake-up mode, and the short-term energy of the audio signal F1 is greater than the first energy threshold, the voice activity detection unit detects that there is a voice signal in the audio signal F1, so the voice activity detection unit wakes up the keyword detection unit to work. If the electronic device is working in a relatively quiet environment at this time, the voice activity detection unit can easily detect a normal human voice or a weak human voice.
[0074] Therefore, this embodiment can set the wake-up mode of the voice activity detection unit to the low wake-up mode in advance, so as to meet the need to wake up the electronic device in a quiet scene. That is, the quieter the scene the electronic device is in, the easier it is to detect the voice signal, and thus the easier it is to wake up the keyword detection unit to work.
[0075] Assuming that the current wake-up mode is the high wake-up mode, although the short-time energy of the audio signal F1 is greater than the first energy threshold, the short-time energy of the audio signal F1 is less than the second energy threshold, the voice activity detection unit detects that there is no voice signal in the audio signal F1, so the voice activity detection unit cannot wake up the keyword detection unit to work.
[0076] Therefore, this embodiment can set the wake-up mode of the voice activity detection unit to the high wake-up mode in advance, so as to avoid the situation where the electronic device is woken up too frequently and the power consumption is increased in noisy scenes. That is, the noisier the scene is, the less likely it is to detect the voice signal, and thus the less likely it is to wake up the keyword detection unit to work.
[0077] In some embodiments, see Figure 3 , S22 includes:
[0078] S221, determining a target wake-up value according to the number of voice wake-up times;
[0079] S222: Adjust the current wake-up mode of the voice activity detection unit according to the target wake-up value and the preset wake-up threshold.
[0080] In S221, if the recognition probability of the keyword detection unit is less than or equal to the preset probability, the number of voice wake-up times is used as the target wake-up value, wherein the recognition probability is the probability that the keyword detection unit recognizes the wake-up keyword from the voice signal. Usually, the keyword detection unit uses a neural network algorithm to analyze the voice signal and can output the recognition probability that the voice signal contains the wake-up keyword. For example, the preset probability α is 70%, and the recognition probability β of the keyword detection unit is 50%. Since the recognition probability β is less than the preset probability α, the number of voice wake-up times is used as the target wake-up value.
[0081] In order to improve the accuracy of the number of voice wake-up times in reflecting the external environment conditions, in some embodiments, if the recognition probability of the keyword detection unit is greater than the preset probability, the characteristic parameters of the keyword detection unit are obtained, and the target wake-up value is generated by fusion based on the characteristic parameters and the number of voice wake-up times, wherein the characteristic parameters are parameters used to represent the working of the keyword detection unit, for example, the characteristic parameters are parameters used to reflect the power consumption of the keyword detection unit.
[0082] In some embodiments, when obtaining the characteristic parameters of the keyword detection unit, this embodiment calculates the characteristic parameters based on the first weight factor and the number of voice wake-ups, for example, the characteristic parameter ρ0=η1*k, where ρ0 is the characteristic parameter, η1 is the first weight factor, and k is the number of voice wake-ups. Once the voice activity detection unit detects that the audio signal contains a voice signal, the voice activity detection unit will wake up the keyword detection unit to work, and the keyword detection unit consumes power when working. Therefore, the power consumption of the keyword detection unit can be reflected by the number of voice wake-ups. In order to facilitate the subsequent steps to comprehensively reflect the influence of the external environment and power consumption, the number of voice wake-ups can be multiplied by the first weight factor this time.
[0083] When the present embodiment generates the target wake-up value based on the fusion of the feature parameters and the number of voice wake-up times, first, the present embodiment can normalize the feature parameters and the recognition probability respectively to obtain the first normalized value and the second normalized value respectively, wherein the first normalized value is positively correlated with the target wake-up value, and the second normalized value is negatively correlated with the target wake-up value. For example, the first normalized value ρ1=tanhρ0, and the second normalized value ρ2=tanhβ. Then, according to the weighted algorithm, the present embodiment performs a weighted operation on the first normalized value and the second normalized value to obtain the target wake-up value, for example, y=η2*tanh(η1*k)-η3*tanhβ=η2*ρ1-η3*ρ2, y is the target wake-up value, η2 is the second weight factor, η3 is the third weight factor, 1=η1+η2+η3, wherein η1, η2 and η3 can be customized by the designer based on engineering experience.
[0084] It can be understood that the present embodiment can use any suitable fusion algorithm to generate the target wake-up value, and is not limited to the method provided in the above embodiment.
[0085] As mentioned above, the difficulty of waking up the keyword detection unit of the voice activity detection unit can be represented by the voice judgment threshold, wherein the voice judgment threshold is positively correlated with the wake-up difficulty. In the current wake-up mode, the target wake-up value is positively correlated with the voice judgment threshold.
[0086] For example, under the premise that the current wake-up mode is a low wake-up mode, the smaller the target wake-up value, the smaller the voice judgment threshold, and the smaller the voice judgment threshold, the lower the wake-up difficulty. Therefore, when the current wake-up mode is a low wake-up mode, if the external environment becomes quieter, the wake-up difficulty becomes lower. At this time, the voice activity detection unit can easily wake up the keyword detection unit to work, avoid missing audio signals, and thus meet the high-reliability detection requirements of quiet scenes.
[0087] For another example, under the premise that the current wake-up mode is a high wake-up mode, the higher the target wake-up value, the higher the voice judgment threshold, and the higher the voice judgment threshold, the higher the wake-up difficulty. Therefore, when the current wake-up mode is a high wake-up mode, if the external environment becomes noisier, the wake-up difficulty becomes higher. At this time, the voice activity detection unit is less likely to wake up the keyword detection unit to work, thereby avoiding the situation of frequently waking up the keyword detection unit to work and wasting power consumption.
[0088] In some embodiments, the preset wake-up threshold includes a first threshold or a second threshold. Figure 4 , S222 includes:
[0089] S2221: If the current wake-up mode is the low wake-up mode, adjusting the current wake-up mode of the voice activity detection unit according to the target wake-up value and the first threshold;
[0090] S2222. If the current wake-up mode is the high wake-up mode, then according to the target wake-up value and the second threshold, adjust the current wake-up mode of the voice activity detection unit, where the second threshold is greater than the first threshold.
[0091] In step S2221, on the premise that the current wake-up mode is the low wake-up mode, if the target wake-up value is greater than or equal to the first threshold, then adjust the wake-up mode of the voice activity detection unit to the high wake-up mode; if the target wake-up value is less than the first threshold, then keep the wake-up mode of the voice activity detection unit as the low wake-up mode.
[0092] For example, on the premise that the current wake-up mode is the low wake-up mode, when y ≥ a1, adjust the wake-up mode of the voice activity detection unit to the high wake-up mode, where a1 is the first threshold; when y < a1, keep the wake-up mode of the voice activity detection unit as the low wake-up mode.
[0093] In step S2222, on the premise that the current wake-up mode is the high wake-up mode, if the target wake-up value is greater than or equal to the second threshold, then keep the wake-up mode of the voice activity detection unit as the high wake-up mode; if it is less than the second threshold, then adjust the wake-up mode of the voice activity detection unit to the low wake-up mode.
[0094] For example, on the premise that the current wake-up mode is the high wake-up mode, when y ≥ a2, keep the wake-up mode of the voice activity detection unit as the high wake-up mode, where a2 is the second threshold; when y < a2, adjust the wake-up mode of the voice activity detection unit to the low wake-up mode.
[0095] Therefore, by setting the first threshold or the second threshold, in this embodiment, it is avoided that when the target wake-up value y has small fluctuations (slightly less than a1 or slightly greater than a2), the wake-up mode will not be frequently switched.
[0096] In some embodiments, please refer to Figure 5 , the voice wake-up mode adjustment method S200 further includes:
[0097] S23. Determine the target preset value of the voice activity detection unit in the current wake-up mode, where the voice activity detection unit is configured with different target preset values in different wake-up modes;
[0098] S24. According to the target wake-up value and the target preset value, adjust the voice judgment threshold of the voice activity detection unit.
[0099] As an example but not limiting, the target preset value is a fixed value configured by the electronic device for the voice activity detection unit in different wake-up modes. For example, the voice activity detection unit is configured with a first preset value as the target preset value in the low wake-up mode, for example, the first preset value is 10. The voice activity detection unit is configured with a second preset value as the target preset value in the high wake-up mode, and the second preset value is greater than the first preset value, for example, the second preset value is 20. In this way, in step S24, it can adapt to various external environments more effectively, reliably and accurately.
[0100] In step S24, refer to Figure 6 , S24 includes:
[0101] S241, calculating the difference between the target wake-up value and the target preset value;
[0102] S242, taking the difference as input and applying it to a preset PID architecture, so that the PID architecture outputs a compensation value;
[0103] S243: Adjust the speech judgment threshold of the speech activity detection unit according to the compensation value.
[0104] For example, assuming that the external environment is relatively quiet and the target wake-up times are relatively small, according to the above embodiment, the current wake-up mode can be set to a low wake-up mode. Since the current wake-up mode is a low wake-up mode, the target preset value is a first preset value, assuming that the first preset value is 10, and assuming that the current voice judgment threshold of the voice activity detection unit is H1.
[0105] The first case: Assuming that within the first preset time, the target wake-up value is 8, the target wake-up value-target preset value=difference=8-10=-2. The difference value -2 is used as input and applied to the preset PID architecture, so that the PID architecture outputs a compensation value -Δh1. This embodiment adjusts the current speech judgment threshold to H1_1=H1-Δh1. Therefore, the adjusted current speech judgment threshold H1_1 is lower than the previous speech judgment threshold H1.
[0106] Second case: Assume that within the second preset duration, the target wake-up value is 6. This indicates that the quietness level of the external environment corresponding to the second preset duration is quieter than that of the first preset duration. Target wake-up value - target preset value = difference = 6 - 10 = -4. Using the difference -4 as the input and applying it to the preset PID architecture, the PID architecture outputs a compensation value -Δh2, where Δh2 > Δh1. In this embodiment, the current voice judgment threshold is adjusted to H1_2 = H1 - Δh2. Therefore, the adjusted current voice judgment threshold H1_2 is lower than the previous voice judgment threshold H1. Moreover, since H1_2 < H1_1, it means that for audio signals with the same amplitude, the voice activity detection unit is more likely to wake up the keyword detection unit to work in the second case than in the first case.
[0107] For another example, assume that the external environment is relatively noisy and the target wake-up times are relatively large. According to the embodiments provided above, the current wake-up mode can be set to the high wake-up mode. Since the current wake-up mode is the high wake-up mode, the target preset value is the second preset value. Assume that the second preset value is 20, and assume that the current voice judgment threshold of the voice activity detection unit is H2.
[0108] Third case: Assume that within the third preset duration, the target wake-up value is 30. Target wake-up value - target preset value = difference = 30 - 20 = 10. Using the difference 10 as the input and applying it to the preset PID architecture, the PID architecture outputs a compensation value Δh3. In this embodiment, the current voice judgment threshold is adjusted to H2_1 = H2 + Δh3. Therefore, the adjusted current voice judgment threshold H2_1 is higher than the previous voice judgment threshold H2.
[0109] Fourth case: Assume that within the third preset duration, the target wake-up value is 40. This indicates that the noise level of the external environment corresponding to the third preset duration is noisier than that of the third preset duration. Target wake-up value - target preset value = difference = 40 - 10 = 30. Using the difference 30 as the input and applying it to the preset PID architecture, the PID architecture outputs a compensation value Δh4, where Δh4 > Δh3. In this embodiment, the current voice judgment threshold is adjusted to H2_2 = H2 + Δh4. Therefore, the adjusted current voice judgment threshold H2_2 is higher than the previous voice judgment threshold H2. Moreover, since H2_2 > H2_1, it means that for audio signals with the same amplitude, the voice activity detection unit is less likely to wake up the keyword detection unit to work in the fourth case than in the third case.
[0110] In general, the above method can, on the one hand, adaptively feedback to lower the voice judgment threshold in a quieter external environment, so that the voice activity detection unit can more easily wake up the keyword detection unit to work, avoiding missed detection. On the other hand, in a noisier external environment, adaptively feedback to increase the voice judgment threshold, so that the voice activity detection unit can less easily wake up the keyword detection unit to work, avoiding the voice activity detection unit frequently waking up the keyword detection unit to work and wasting power consumption.
[0111] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0112] See also Figure 7 , Figure 7 A schematic diagram of the circuit structure of a controller provided by an embodiment of the present invention. Figure 7 As shown, the controller 700 includes one or more processors 71 and a memory 72. Figure 7 A processor 71 is taken as an example.
[0113] The processor 71 and the memory 72 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0114] The memory 72 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method for adjusting the voice wake-up mode in the embodiment of the present invention. The processor 71 implements the function of the method for adjusting the voice wake-up mode provided in the above method embodiment by running the non-volatile software programs, instructions and modules stored in the memory 72.
[0115] The memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to the processor 71 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.
[0116] The program instructions / modules are stored in the memory 72, and when executed by the one or more processors 71, the method for adjusting the voice wake-up mode in any of the above method embodiments is executed.
[0117] The embodiment of the present invention further provides a storage medium, wherein the storage medium stores computer executable instructions, and the computer executable instructions are executed by one or more processors, such as Figure 7 A processor 71 in the embodiment may enable the one or more processors to execute the method for adjusting the voice wake-up mode in any of the above method embodiments.
[0118] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a controller, the controller executes any one of the methods for adjusting the voice wake-up mode.
[0119] The above described device or equipment embodiments are merely illustrative, wherein the unit modules described as separate components may or may not be physically separated, and the components displayed as module units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adjusting a voice wake-up mode, characterized in that: include: Acquire the number of voice wake-up times of the voice activity detection unit within a preset time length, wherein the voice activity detection unit can wake up the keyword detection unit to work when in the wake-up state; According to the voice wake-up times and the preset wake-up threshold, adjusting the current wake-up mode of the voice activity detection unit includes: Determining a target wake-up value according to the number of voice wake-ups; According to the target wake-up value and the preset wake-up threshold, adjusting the current wake-up mode of the voice activity detection unit includes: the current wake-up mode is a low wake-up mode or a high wake-up mode, and the preset wake-up threshold includes a first threshold or a second threshold; If the current wake-up mode is a low wake-up mode, when the target wake-up value is greater than or equal to the first threshold, adjusting the wake-up mode of the voice activity detection unit to a high wake-up mode; when the target wake-up value is less than the first threshold, maintaining the wake-up mode of the voice activity detection unit to a low wake-up mode; If the current wake-up mode is a high wake-up mode, when the target wake-up value is greater than or equal to the second threshold, the wake-up mode of the voice activity detection unit is maintained at the high wake-up mode; when the target wake-up value is less than the second threshold, the wake-up mode of the voice activity detection unit is adjusted to a low wake-up mode.
2. The method according to claim 1, characterized in that The difficulty of waking up the keyword detection unit in the low wake-up mode is lower than the difficulty of waking up the keyword detection unit in the high wake-up mode.
3. The method according to claim 1, characterized in that: The determining the target wake-up value according to the number of voice wake-up times includes: If the recognition probability of the keyword detection unit is less than or equal to the preset probability, the number of voice wake-up times is used as the target wake-up value; If the recognition probability of the keyword detection unit is greater than the preset probability, the characteristic parameters of the keyword detection unit are obtained, and the target wake-up value is generated by fusing the characteristic parameters and the number of voice wake-up times.
4. The method according to claim 3, characterized in that The difficulty of waking up the keyword detection unit by the voice activity detection unit can be represented by a voice judgment threshold, wherein the voice judgment threshold is positively correlated with the wake-up difficulty, and in the current wake-up mode, the target wake-up value is positively correlated with the voice judgment threshold.
5. The method according to any one of claims 1 to 4, characterized in that: Also includes: Determining a target preset value of the voice activity detection unit in a current wake-up mode, wherein the voice activity detection unit is configured with different target preset values in different wake-up modes; According to the target wake-up value and the target preset value, the voice judgment threshold of the voice activity detection unit is adjusted.
6. The method according to claim 5, characterized in that The adjusting the voice judgment threshold of the voice activity detection unit according to the target wake-up value and the target preset value comprises: Calculating a difference between the target wake-up value and the target preset value; Taking the difference as input, applying it to a preset PID architecture, so that the PID architecture outputs a compensation value; According to the compensation value, the speech determination threshold of the speech activity detection unit is adjusted.
7. The method according to claim 5, characterized in that If the current wake-up mode is the low wake-up mode, the target preset value is the first preset value; If the current wake-up mode is the high wake-up mode, the target preset value is a second preset value, and the second preset value is greater than the first preset value.
8. A storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to enable the electronic device to execute the method for adjusting the voice wake-up mode as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: include: A voice activity detection unit, configured to acquire an audio signal and generate a wake-up instruction if it is detected that the audio signal contains a voice signal; A keyword detection unit, configured to determine whether the voice signal contains a wake-up keyword according to the wake-up instruction, and if the voice signal contains the wake-up keyword, wake up the electronic device; A controller, used to execute the adjustment method described in any one of claims 1 to 7.
10. The electronic device according to claim 9, characterized in that: The voice activity detection unit is further configured to determine whether the sound pressure of the audio signal is less than a minimum sound pressure threshold or greater than a maximum sound pressure threshold, and if not, to detect whether the audio signal contains a voice signal.
Citation Information
Patent Citations
Speech Recognition
CN104252860A
Speaker verification method and system
CN109155132A
Voice activity detection method, voice activity detection device and computer readable storage medium
CN110580913A
Keyword identification method, apparatus and device, and readable storage medium
CN111276124A
Voice interaction and voice wake-up detection method and device, equipment and storage medium
CN111292737A
