A method, device and equipment for waking up voice recognition function
Through the statistics and judgment of voice signal interruption signals, the activity status of the voice signal is determined, which solves the problem of high misrecognition rate of the VAD module in Bluetooth headsets and achieves efficient voice recognition under low power consumption.
Patent Information
- Application Number
- CN202210735039.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-06-27
AI Technical Summary
The VAD module in existing Bluetooth headsets has a high misrecognition rate, resulting in poor recognition efficiency of the speech recognition function under low power consumption conditions.
By obtaining the activity detection results of the voice signal, the interruption signals generated by the voice signal are detected multiple times for statistics. Based on the statistical results, it is judged whether the preset effective interruption conditions are met. If it is met, the voice signal is determined to be active and the voice recognition function is awakened to avoid Misidentification.
The false recognition rate of the VAD module is reduced, the power consumption of the speech recognition function is reduced, and the recognition efficiency is improved.
Smart Images

Figure CN115116441B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice detection, and in particular to a method, device and equipment for waking up a voice recognition function. Background Art
[0002] With the rapid development of Bluetooth headsets, their excellent user experience is loved by more and more people, and more functions are integrated into the headsets, such as voice recognition.
[0003] However, since the small body of Bluetooth headsets can only accommodate a small battery, strict requirements were placed on power consumption during the development process. The voice recognition function requires a large amount of computing, so power consumption has become a problem for it to run on headphones. To address this problem, a VAD (Voice Active Detection) module is generally added to the voice recognition front end, so that the voice recognition module is in standby mode under normal conditions. When the VAD module detects active voice information, the voice recognition module is turned on to start working, thereby achieving low power consumption.
[0004] Since the VAD module is always in working mode, it must also be low power. Low power consumption means that it cannot increase the amount of complex calculations. At the same time, in order not to reduce the overall recognition rate, the VAD module must have a high sensitivity, so invalid speech will be recognized, which also leads to a high misrecognition rate of the VAD module. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device and equipment for waking up a speech recognition function in view of the above-mentioned deficiencies in the prior art, so as to solve the problem of high misrecognition rate of the VAD module in the prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for waking up a voice recognition function, the method comprising:
[0008] Acquiring an activity detection result of a voice signal, the activity detection result comprising: detecting multiple interrupt signals generated by the voice signal multiple times;
[0009] Taking statistics of the multiple interrupt signals;
[0010] According to the statistical results, determining whether the activity detection result meets the preset effective interruption condition;
[0011] If the activity detection result meets the preset effective interruption condition, it is determined that the voice signal is in an active state, and the voice recognition function is awakened to recognize the collected voice signal.
[0012] Optionally, the counting of the multiple interrupt signals includes:
[0013] Count the number of interrupt signals within a preset time period;
[0014] The step of judging whether the activity detection result satisfies a preset effective interruption condition according to the statistical result includes:
[0015] According to the number of interrupt signals within the preset time period, it is determined whether the activity detection result meets the preset effective interrupt condition.
[0016] Optionally, judging whether the activity detection result satisfies the preset effective interruption condition according to the number of interruption signals within the preset duration includes:
[0017] Determine whether the number of interrupt signals within the preset time period reaches a preset interrupt number threshold;
[0018] If the number of interrupt signals within the preset time period reaches the preset interrupt number threshold, determining that the activity detection result meets the preset valid interrupt condition;
[0019] If the number of interruption signals within the preset time length does not reach the preset interruption number threshold, it is determined that the activity detection result does not meet the preset valid interruption condition.
[0020] Optionally, the determining whether the number of interruption signals within the preset time period reaches a preset interruption number threshold includes:
[0021] The preset interruption quantity threshold is determined according to a preset application scenario.
[0022] Optionally, the counting of the multiple interrupt signals includes:
[0023] Determine at least two consecutive interrupt signals whose time differences between adjacent interrupt signals of the plurality of interrupt signals are within a preset time range;
[0024] Determining a continuous interruption duration according to the duration of the at least two consecutive interruption signals;
[0025] The step of judging whether the activity detection result satisfies a preset effective interruption condition according to the statistical result includes:
[0026] According to the continuous interruption duration, it is determined whether the activity detection result satisfies the preset effective interruption condition.
[0027] Optionally, judging whether the activity detection result satisfies the preset effective interruption condition according to the continuous interruption duration includes:
[0028] Determine whether the continuous interruption duration reaches a preset interruption duration threshold;
[0029] If the continuous interruption duration reaches the preset interruption duration threshold, determining that the activity detection result meets the preset effective interruption condition;
[0030] If the continuous interruption duration does not reach the preset interruption duration threshold, it is determined that the activity detection result does not meet the preset valid interruption condition.
[0031] Optionally, the determining whether the continuous interruption duration reaches a preset interruption duration threshold includes:
[0032] The preset interruption duration threshold is determined according to a preset application scenario.
[0033] Optionally, the method further comprises:
[0034] If the activity detection result does not meet the preset valid interrupt condition, it is determined that the interrupt signal in the activity detection result is a false detection interrupt signal, and the interrupt signal in the activity detection result is cleared.
[0035] In a second aspect, an embodiment of the present application provides a device for waking up a voice recognition function, the device comprising:
[0036] An acquisition module is used to acquire an activity detection result of a voice signal, wherein the activity detection result includes: a plurality of interruption signals generated by the voice signal are detected multiple times;
[0037] A statistical module, used for collecting statistics on the multiple interrupt signals;
[0038] A judgment module, used to judge whether the activity detection result meets a preset effective interruption condition according to the statistical result;
[0039] The determination module is used to determine that the voice signal is in an active state if the activity detection result meets the preset effective interruption condition, and wake up the voice recognition function to recognize the collected voice signal.
[0040] In a third aspect, an embodiment of the present application provides a voice processing device, comprising: a processor and a storage medium, wherein the processor and the storage medium are communicatively connected via a bus, the storage medium stores program instructions executable by the processor, and the processor calls the program instructions stored in the storage medium to execute the steps of the wake-up method of the voice recognition function as described in any one of the first ones.
[0041] Compared with the prior art, this application has the following beneficial effects:
[0042] The present application provides a method, device and equipment for waking up a speech recognition function. The method obtains the activity detection result of the speech signal, and the activity detection result includes: detecting multiple interrupt signals generated by the speech signal multiple times; counting the multiple interrupt signals; judging whether the activity detection result meets the preset effective interrupt condition according to the statistical result; if the activity detection result meets the preset effective interrupt condition, it is determined that the speech signal is in an active state, and the speech recognition function is awakened to recognize the collected speech signal. Thus, by detecting the interrupt signal, determining the activity state of the speech signal, and then waking up the speech recognition function, some misrecognition information is filtered out, the misrecognition rate of the VAD module is reduced, and the power consumption of speech recognition is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A flowchart of a method for waking up a voice recognition function provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of a statistical determination method for an interrupt signal provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of a method for determining whether a preset effective interruption condition is met provided in an embodiment of the present application;
[0047] Figure 4 A flowchart of another method for statistically determining an interrupt signal provided in an embodiment of the present application;
[0048] Figure 5 A flowchart of another method for determining whether a preset effective interruption condition is met provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of a wake-up device with a voice recognition function provided in an embodiment of the present application;
[0050] Figure 7 A schematic diagram of a speech processing device provided in an embodiment of the present application.
[0051] Icons: 601 - acquisition module, 602 - statistics module, 603 - judgment module, 604 - determination module, 701 - processor, 702 - storage medium. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0053] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0055] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0056] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0057] In a Bluetooth headset, a VAD module is added to the front end of the voice recognition module, so that the voice recognition module is in standby mode under normal conditions. When the VAD module detects active voice information, the voice recognition module is turned on to start working, thereby achieving low power consumption. In order to reduce the transmission of invalid voices detected by the VAD module to the voice recognition module, the present application provides a method, device and equipment for waking up a voice recognition function to reduce the misrecognition rate of the VAD module. The following is an explanation of a method for waking up a voice recognition function provided by the present application through a specific embodiment.
[0058] Figure 1 A flowchart of a method for waking up a voice recognition function provided in an embodiment of the present application. Figure 1 As shown, the execution subject of the method may be a chip with computing and processing functions, for example, a system on chip (SOC), and the method includes:
[0059] S101: Obtain activity detection results of voice signals.
[0060] The activity detection result includes: multiple interruption signals generated by the voice signal are detected multiple times.
[0061] When the VAD module detects an active voice signal, it generates an interrupt pulse signal and reports the interrupt signal to the system chip. When the system chip receives the interrupt signal reported by the VAD module, it can further process the interrupt signal.
[0062] S102: Count multiple interrupt signals.
[0063] When the system chip obtains the activity detection result of the voice signal, it can count the multiple interrupt signals in the activity detection result. Starting from the system chip receiving the first interrupt signal, the multiple interrupt signals received are counted within the preset statistical time. Since there is a voice signal, an interrupt signal will be generated. Therefore, counting the multiple interrupt signals is to count the voice signal. Further, the statistical result of the interrupt signal is obtained.
[0064] S103: judging whether the activity detection result satisfies a preset effective interruption condition according to the statistical result.
[0065] The statistical result of the interrupt signal can be compared with the preset effective interrupt condition to determine whether the activity detection result meets the preset effective interrupt condition. The statistical result of the interrupt signal characterizes the statistical characteristics of the voice data, so according to the comparison result of the statistical result of the interrupt signal with the preset effective interrupt condition, it can be determined whether the detected voice is in an active state. For example, a continuous sound is in an active state, whereas a sudden short-term noise is not in an active state.
[0066] S104: If the activity detection result meets the preset effective interruption condition, it is determined that the voice signal is in an active state, and the voice recognition function is awakened to recognize the collected voice signal.
[0067] If the activity detection result meets the preset valid interruption condition, it can be determined whether the detected voice is valid voice, and it can be determined that the voice signal is in a continuously active state. A voice signal in a continuously active state is a valid voice and can be recognized. Therefore, by determining that the voice signal is in an active state, the voice recognition function can be awakened to recognize the collected voice signal. This avoids the situation where the detected voice signal is not in an active state, and the voice recognition function may not be detected as soon as it is awakened, causing the voice recognition function to be awakened frequently, increasing power consumption. By first determining the activity state of the voice signal and then waking up the voice recognition function, the power consumption of voice recognition is reduced.
[0068] In summary, the embodiment of the present application provides a method for waking up a voice recognition function, by obtaining the activity detection result of the voice signal, the activity detection result includes: multiple interrupt signals generated by the voice signal are detected multiple times; multiple interrupt signals are counted; according to the statistical results, it is determined whether the activity detection result meets the preset effective interrupt condition; if the activity detection result meets the preset effective interrupt condition, it is determined that the voice signal is in an active state, and the voice recognition function is awakened to recognize the collected voice signal. Therefore, by detecting the interrupt signal, determining the activity state of the voice signal, and then waking up the voice recognition function, some misrecognition information is filtered out, the misrecognition rate of the VAD module is reduced, and the power consumption of the voice recognition is reduced.
[0069] Figure 2 The following is a flow chart of a statistical judgment method for an interrupt signal provided in an embodiment of the present application. Figure 2 As shown, the statistics of multiple interrupt signals in S102 include:
[0070] S201: Count the number of interrupt signals within a preset time period.
[0071] The number of multiple interruption signals is counted within the preset statistical time length. Since an interruption signal is sent out as long as a voice signal is detected, the number of interruption signals within the preset statistical time length can represent the activity amount of the voice signal within the preset statistical time length.
[0072] It should be noted that since the VAD module cannot cache data, if the statistical time is too long, too much voice data will be lost, which is not conducive to the subsequent voice recognition processing; if the statistical time is too short, too many interrupt signals will be filtered out, causing the voice recognition function to be frequently awakened, resulting in power consumption loss. Therefore, it is necessary to determine the statistical time length based on the capabilities of the adopted voice recognition algorithm.
[0073] In S103, judging whether the activity detection result meets the preset effective interruption condition according to the statistical result includes:
[0074] S202: Determine whether the activity detection result meets a preset effective interruption condition according to the number of interruption signals within a preset time period.
[0075] The number of interruption signals within a preset duration can be compared with the preset effective interruption condition to determine whether the activity detection result meets the preset effective interruption condition. The number of interruption signals within a preset duration represents the activity amount of the voice signal within the preset duration, so according to the comparison result of the number of interruption signals within the preset duration and the preset effective interruption condition, it can be determined whether the detected voice is in an active state.
[0076] In summary, in this embodiment, by counting the number of interruption signals within a preset time length, it is determined whether the activity detection result meets the preset effective interruption condition according to the number of interruption signals within the preset time length. Thus, by counting the number of interruption signals within the preset time length, it is possible to accurately determine whether the activity detection result meets the preset effective interruption condition.
[0077] Figure 3 A flowchart of a method for determining whether a preset effective interruption condition is met is provided in an embodiment of the present application. Figure 3 As shown, judging whether the activity detection result meets the preset effective interruption condition according to the number of interruption signals within the preset time length in S202 includes:
[0078] S301: Determine whether the number of interruption signals within a preset time period reaches a preset interruption number threshold.
[0079] If the number of interruption signals within the preset time length is greater than or equal to the preset interruption number threshold, the number of interruption signals within the preset time length reaches the preset interruption number threshold; if the number of interruption signals within the preset time length is less than the preset interruption number threshold, the number of interruption signals within the preset time length does not reach the preset interruption number threshold.
[0080] S302: If the number of interruption signals within a preset time period reaches a preset interruption number threshold, it is determined that the activity detection result meets a preset valid interruption condition.
[0081] If the number of interruption signals within the preset time length reaches the preset interruption number threshold, it means that the number of interruption signals within the preset time length is large enough, and it is determined that the activity detection result meets the preset effective interruption condition.
[0082] S303: If the number of interruption signals within the preset time period does not reach the preset interruption number threshold, it is determined that the activity detection result does not meet the preset valid interruption condition.
[0083] If the number of interruption signals within the preset duration does not reach the preset interruption number threshold, it means that the number of interruption signals within the preset duration is small, and the voice detected within the preset duration may not be active and does not meet the preset effective interruption condition.
[0084] In summary, in this embodiment, it is determined whether the number of interruption signals within the preset duration reaches the preset interruption number threshold; if the number of interruption signals within the preset duration reaches the preset interruption number threshold, it is determined that the activity detection result meets the preset effective interruption condition; if the number of interruption signals within the preset duration does not reach the preset interruption number threshold, it is determined that the activity detection result does not meet the preset effective interruption condition. Thus, by comparing the number of interruption signals within the preset duration with the preset interruption number threshold, it is more accurately determined whether the preset effective interruption condition is met.
[0085] Continue to refer to Figure 3 The step S301 of determining whether the number of interruption signals within a preset time period reaches a preset interruption number threshold includes:
[0086] Determine the preset interruption quantity threshold based on the preset application scenario.
[0087] The specific preset interruption quantity threshold can be set according to different preset application scenarios and is not limited here.
[0088] Figure 4 A flow chart of another method for statistically determining an interrupt signal provided in an embodiment of the present application. Figure 4 As shown, the statistics of multiple interrupt signals in S201 include:
[0089] S401: Determine at least two consecutive interruption signals whose time differences between adjacent interruption signals among a plurality of interruption signals are within a preset time range.
[0090] The active voice is actually likely to be a series of continuous voice signals, and its corresponding interruption signal is also a series of continuous interruption signals. Therefore, in order to determine whether the voice signal is valid, multiple continuous interruption signals are determined within the preset statistical time range, that is, at least two continuous interruption signals whose time difference between adjacent interruption signals among the multiple interruption signals is within the preset time range are determined.
[0091] S402: Determine a continuous interruption duration according to the duration of at least two consecutive interruption signals.
[0092] Each two adjacent interruption signals in at least two consecutive interruption signals are sent continuously, so the time intervals between each two adjacent interruption signals in at least two consecutive interruption signals are equal. The duration of at least two consecutive interruption signals can be determined, and then the continuous interruption duration can be determined.
[0093] Furthermore, multiple segments of at least two consecutive interruption signals may appear within a preset duration range, and the duration of the multiple segments of at least two consecutive interruption signals may be determined, and the maximum duration may be determined as the continuous interruption duration.
[0094] In S103, judging whether the activity detection result meets the preset effective interruption condition according to the statistical result includes:
[0095] S403: judging whether the activity detection result meets a preset effective interruption condition according to the continuous interruption duration.
[0096] The continuous interruption duration of the interruption signal within the preset duration can be compared with the preset effective interruption condition to determine whether the activity detection result meets the preset effective interruption condition. The continuous interruption duration within the preset duration characterizes the activity amount of the voice signal within the preset duration, so according to the comparison result of the continuous interruption duration within the preset duration and the preset effective interruption condition, it can be determined whether the detected voice is in an active state.
[0097] In summary, in this embodiment, at least two consecutive interruption signals whose time difference between adjacent interruption signals among multiple interruption signals is within a preset duration range are determined; the continuous interruption duration is determined according to the duration of the at least two consecutive interruption signals; and whether the activity detection result meets the preset effective interruption condition is determined according to the continuous interruption duration. Therefore, by counting the continuous interruption duration, it is possible to accurately determine whether the activity detection result meets the preset effective interruption condition.
[0098] Figure 5 A flowchart of another method for determining whether a preset effective interruption condition is met is provided in an embodiment of the present application. Figure 5 As shown, judging whether the activity detection result meets the preset effective interruption condition according to the continuous interruption duration in S403 includes:
[0099] S501: Determine whether the continuous interruption duration reaches a preset interruption duration threshold.
[0100] If the continuous interruption duration is greater than or equal to the preset interruption duration threshold, the continuous interruption duration reaches the preset interruption duration threshold; if the continuous interruption duration is less than the preset interruption duration threshold, the continuous interruption duration does not reach the preset interruption duration threshold.
[0101] S502: If the continuous interruption duration reaches a preset interruption duration threshold, it is determined that the activity detection result meets a preset effective interruption condition.
[0102] If the continuous interruption duration reaches the preset interruption duration threshold, it means that the interruption duration within the preset duration is large enough, and it is determined that the activity detection result meets the preset effective interruption condition.
[0103] S503: If the continuous interruption duration reaches a preset interruption duration threshold, it is determined that the activity detection result does not meet a preset valid interruption condition.
[0104] If the continuous interruption duration does not reach the preset interruption duration threshold, it means that the interruption duration within the preset duration is small, and the voice detected within the preset duration may not be in an active state and does not meet the preset effective interruption condition.
[0105] In summary, in this embodiment, it is determined whether the continuous interruption duration reaches the preset interruption duration threshold; if the continuous interruption duration reaches the preset interruption duration threshold, it is determined that the activity detection result meets the preset effective interruption condition; if the continuous interruption duration reaches the preset interruption duration threshold, it is determined that the activity detection result does not meet the preset effective interruption condition. Thus, through the continuous interruption duration and the preset interruption duration threshold, it is more accurately determined whether the preset effective interruption condition is met.
[0106] Continue to refer to Figure 5 The determination in S501 of whether the continuous interruption duration reaches a preset interruption duration threshold includes:
[0107] Determine the preset interruption duration threshold based on the preset application scenario.
[0108] The specific preset interruption quantity threshold can be set according to different preset application scenarios and is not limited here. For example, the preset statistical duration can be 50ms, and the preset interruption duration threshold can be 20ms.
[0109] On the basis of any of the above embodiments, a method for waking up a voice recognition function provided by the present application further includes:
[0110] If the activity detection result does not meet the preset valid interrupt condition, the interrupt signal in the activity detection result is determined to be a false detection interrupt signal, and the interrupt signal in the activity detection result is cleared.
[0111] If it is determined that the interrupt signal in the activity detection result is a false detection interrupt signal, subsequent speech recognition is not required. To reduce memory pressure, the interrupt signal in the activity detection result is cleared.
[0112] The following describes a wake-up device, equipment, storage medium, etc. for executing a voice recognition function provided by the present application. The specific implementation process and technical effects are described above and will not be repeated below.
[0113] Figure 6 A schematic diagram of a wake-up device for a voice recognition function provided in an embodiment of the present application, the device comprising:
[0114] The acquisition module 601 is used to acquire the activity detection result of the voice signal, where the activity detection result includes: multiple interruption signals generated by the voice signal are detected multiple times.
[0115] The statistics module 602 is used to collect statistics on multiple interrupt signals.
[0116] The judgment module 603 is used to judge whether the activity detection result meets the preset effective interruption condition according to the statistical result.
[0117] The determination module 604 is used to determine that the voice signal is in an active state if the activity detection result meets the preset effective interruption condition, and wake up the voice recognition function to recognize the collected voice signal.
[0118] Furthermore, the statistical module 602 is specifically used for counting the multiple interrupt signals, including: counting the number of interrupt signals within a preset time period.
[0119] Furthermore, the judgment module 603 is specifically used to judge whether the activity detection result meets the preset effective interruption condition based on the statistical result, including: judging whether the activity detection result meets the preset effective interruption condition based on the number of interruption signals within the preset time length.
[0120] Further, the judgment module 603 is specifically used to judge whether the activity detection result meets the preset effective interruption condition based on the number of interruption signals within the preset duration, including: judging whether the number of interruption signals within the preset duration reaches a preset interruption number threshold; if the number of interruption signals within the preset duration reaches the preset interruption number threshold, determining that the activity detection result meets the preset effective interruption condition; if the number of interruption signals within the preset duration does not reach the preset interruption number threshold, determining that the activity detection result does not meet the preset effective interruption condition.
[0121] Furthermore, the judgment module 603 is specifically used to judge whether the number of interruption signals within the preset time period reaches a preset interruption number threshold, including: determining the preset interruption number threshold according to a preset application scenario.
[0122] Further, the statistical module 602 is specifically used for performing statistics on the multiple interruption signals, including: determining at least two consecutive interruption signals whose time difference between adjacent interruption signals of the multiple interruption signals is within a preset duration range; determining the continuous interruption duration according to the duration of the at least two consecutive interruption signals;
[0123] Further, the judgment module 603 is specifically used to judge whether the activity detection result meets the preset effective interruption condition according to the statistical result, including: judging whether the activity detection result meets the preset effective interruption condition according to the continuous interruption duration.
[0124] Further, the judgment module 603 is specifically used to judge whether the activity detection result meets the preset effective interruption condition based on the continuous interruption duration, including: judging whether the continuous interruption duration reaches the preset interruption duration threshold; if the continuous interruption duration reaches the preset interruption duration threshold, determining that the activity detection result meets the preset effective interruption condition; if the continuous interruption duration reaches the preset interruption duration threshold, determining that the activity detection result does not meet the preset effective interruption condition.
[0125] Furthermore, the judging module 603 is specifically used to judge whether the continuous interruption duration reaches a preset interruption duration threshold, including: determining the preset interruption duration threshold according to a preset application scenario.
[0126] Furthermore, the determination module 604 is further configured to determine that the interrupt signal in the activity detection result is a false detection interrupt signal if the activity detection result does not satisfy the preset valid interrupt condition, and clear the interrupt signal in the activity detection result.
[0127] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0128] Figure 7 A schematic diagram of a speech processing device provided in an embodiment of the present application, wherein the speech processing device may be a device with computing and processing functions.
[0129] The speech processing device includes: a processor 701 and a storage medium 702. The processor 701 and the storage medium 702 are connected via a bus.
[0130] The storage medium 702 is used to store programs, and the processor 701 calls the programs stored in the storage medium 702 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0131] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.
[0132] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0135] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A method for waking up a voice recognition function, characterized in that: The method comprises: Acquiring an activity detection result of a voice signal, the activity detection result comprising: detecting multiple interrupt signals generated by the voice signal multiple times; Taking statistics of the multiple interrupt signals; According to the statistical results, determining whether the activity detection result meets the preset effective interruption condition; If the activity detection result satisfies the preset effective interruption condition, determining that the voice signal is in an active state, and waking up the voice recognition function to recognize the collected voice signal; The counting of the multiple interrupt signals includes: Determine at least two consecutive interruption signals whose time differences between adjacent interruption signals among the multiple interruption signals are within a preset time range; Determining a continuous interruption duration according to the duration of the at least two consecutive interruption signals; The step of judging whether the activity detection result satisfies a preset effective interruption condition according to the statistical result includes: According to the continuous interruption duration, it is determined whether the activity detection result satisfies the preset effective interruption condition.
2. The method according to claim 1, characterized in that The counting of the multiple interrupt signals includes: Count the number of interrupt signals within a preset time period; The step of judging whether the activity detection result satisfies a preset effective interruption condition according to the statistical result includes: According to the number of interrupt signals within the preset time period, it is determined whether the activity detection result meets the preset effective interrupt condition.
3. The method according to claim 2, characterized in that The determining, based on the number of interruption signals within the preset duration, whether the activity detection result satisfies the preset effective interruption condition includes: Determine whether the number of interrupt signals within the preset time period reaches a preset interrupt number threshold; If the number of interrupt signals within the preset time period reaches the preset interrupt number threshold, determining that the activity detection result meets the preset valid interrupt condition; If the number of interruption signals within the preset time length does not reach the preset interruption number threshold, it is determined that the activity detection result does not meet the preset valid interruption condition.
4. The method according to claim 3, characterized in that The determining whether the number of interruption signals within the preset time period reaches a preset interruption number threshold comprises: The preset interruption quantity threshold is determined according to a preset application scenario.
5. The method according to claim 1, characterized in that The determining, according to the continuous interruption duration, whether the activity detection result satisfies the preset effective interruption condition includes: Determine whether the continuous interruption duration reaches a preset interruption duration threshold; If the continuous interruption duration reaches the preset interruption duration threshold, determining that the activity detection result meets the preset effective interruption condition; If the continuous interruption duration does not reach the preset interruption duration threshold, it is determined that the activity detection result does not meet the preset valid interruption condition.
6. The method according to claim 5, characterized in that The determining whether the continuous interruption duration reaches a preset interruption duration threshold comprises: The preset interruption duration threshold is determined according to a preset application scenario.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: If the activity detection result does not meet the preset valid interrupt condition, it is determined that the interrupt signal in the activity detection result is a false detection interrupt signal, and the interrupt signal in the activity detection result is cleared.
8. A device for waking up a voice recognition function, characterized in that: The device comprises: An acquisition module is used to acquire an activity detection result of a voice signal, wherein the activity detection result includes: a plurality of interruption signals generated by the voice signal are detected multiple times; A statistical module, used for collecting statistics on the multiple interrupt signals; A judgment module, used to judge whether the activity detection result meets a preset effective interruption condition according to the statistical result; A determination module, configured to determine that the voice signal is in an active state if the activity detection result satisfies the preset effective interruption condition, and wake up the voice recognition function to recognize the collected voice signal; The statistical module is specifically used to determine at least two consecutive interruption signals in which the time difference between adjacent interruption signals among the multiple interruption signals is within a preset duration range; and determine the continuous interruption duration according to the duration of the at least two consecutive interruption signals; The judgment module is specifically used to judge whether the activity detection result meets the preset effective interruption condition according to the continuous interruption duration.
9. A speech processing device, characterized in that: include: A processor and a storage medium, wherein the processor and the storage medium are communicatively connected via a bus, the storage medium stores program instructions executable by the processor, and the processor calls the program instructions stored in the storage medium to execute the steps of the wake-up method for the speech recognition function as described in any one of claims 1 to 7.
