A method and circuit for recognizing speech keywords
By calculating the mel frequency cepstral coefficient of the speech signal in the analog domain, and using units such as low noise amplifiers, squarers, and bandpass filters, the problem of high power consumption of high-precision ADCs in the existing technology is solved, and low power consumption is achieved Speech keyword recognition improves recognition efficiency and accuracy.
Patent Information
- Application Number
- CN202210087130.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Among existing speech keyword recognition technologies, high-precision ADCs have high power consumption and are difficult to meet low-power design requirements.
The mel frequency cepstrum coefficient of the speech signal is calculated in the analog domain, and the feature extraction of the speech signal is realized through the low noise amplifier, squarer, bandpass filter, integration unit, logarithmic operation circuit and discrete cosine transform unit to avoid high Frequency and high-precision digital domain conversion.
It effectively reduces the overall circuit power consumption and improves the efficiency and accuracy of speech keyword recognition, which has high practical significance.
Smart Images

Figure CN114464185B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voice keyword recognition, and in particular to a voice keyword recognition method and recognition circuit. Background Art
[0002] Speech keyword spotting (KWS) is to identify one or more specific keywords in a speech. Taking the common keyword wake-up of IoT devices as an example, in a complex speech, often only a small segment of speech contains keyword signals. Therefore, if the KWS module can remain always on with extremely low power consumption, after accurately identifying the speech keywords, and then wake up the subsequent huge processing system, a lot of power consumption can be saved.
[0003] A KWS system consists of two parts: feature extraction at the front end and classification model at the back end. In the feature extraction part, commonly used feature parameters include Mel Frequency Cepstral Coefficients (MFCC), short-time energy, and zero-crossing rate. Among them, MFCC is widely used in various fields of speech signal processing because it is more in line with human hearing and has more complete features.
[0004] like Figure 1 As shown in the figure, the circuit implementation of the existing MFCC calculation method is in the digital domain. After the speech signal is amplified by the amplifier, it is converted to the digital domain using an analog to digital converter (ADC), and the specific calculation of the feature is realized using a digital module. However, high-precision ADC means that a lot of power consumption is required. The existing technology lacks a method to save the power consumption and area of high-frequency and high-precision ADC to better meet the design requirements of low power consumption.
[0005] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0006] In order to solve the existing problems, the present invention provides a method and circuit for recognizing a speech keyword.
[0007] In order to solve the above problems, the technical solution adopted by the present invention is as follows:
[0008] A method for recognizing speech keywords calculates the Mel-frequency cepstral coefficients of a speech signal in an analog domain, comprising the following steps: S1: a signal output by a microphone is passed through a low-noise amplifier to obtain an amplified signal; S2: the amplified signal is squared in the time domain by a squarer using the Pasaval theorem to obtain a squared signal; S3: a group of linear filters in the Mel frequency are used to perform band-pass filtering on the squared signal to obtain a filtered signal; S4: the filtered signal is integrated to obtain an integrated signal; S5: a logarithmic operation circuit is used to perform logarithmic operation on the integrated signal; S6: a result obtained by the logarithmic operation is subjected to discrete cosine transformation to obtain the Mel-frequency cepstral coefficients of the speech signal.
[0009] Preferably, the amplified signal is squared in the time domain by a squarer using the Pasaval theorem to obtain a squared signal, and then the squared signal is integrated:
[0010]
[0011] Among them, x(t) is the original signal, X(ω) is the signal after Fourier transform, t is the time domain unit, and ω is the frequency domain unit.
[0012] Preferably, the filter bank is a bandpass filter, and its transfer function H(s) is expressed as:
[0013]
[0014] Among them, A, B, C, D are coefficients, and s is a complex frequency domain unit.
[0015] Preferably, performing discrete cosine transform on the result obtained by the logarithmic operation includes: converting the result obtained by the logarithmic operation into current according to a coefficient matrix and then adding them, wherein the coefficient matrix is:
[0016]
[0017] Among them, a, b, c, d, e, f, and g are parameters.
[0018] The present invention provides a voice keyword recognition circuit, which is used to implement any of the voice keyword recognition methods described above, and includes: an amplification unit, which is used to pass the signal output by the microphone through a low-noise amplifier to obtain an amplified signal; a squaring unit, which is used to square the amplified signal in the time domain through a squarer using the Pasaval theorem to obtain a squared signal; a filtering unit, which is used to filter the squared signal to obtain a filtered signal; an integration unit, which is used to integrate the filtered signal to obtain an integrated signal; a logarithmic operation unit, which uses a logarithmic operation circuit to perform logarithmic operation on the integrated signal; and a discrete cosine transform unit, which is used to perform discrete cosine transform on the result obtained by the logarithmic operation to obtain the Mel-frequency cepstrum coefficient of the voice signal.
[0019] Preferably, the square unit includes 6 field effect transistors M1-M6, the field effect transistor M1 and the field effect transistor M2 are used as a differential input pair, the drains of the field effect transistor M1 and the field effect transistor M2 are connected to the drains of the field effect transistor M3 and the field effect transistor M4; the gate and drain of the field effect transistor M3 are connected and connected to the gate of the field effect transistor M5, and the gate and drain of the field effect transistor M4 are connected and connected to the gate of the field effect transistor M6.
[0020] Preferably, the integration unit includes an amplifier A1, a capacitor C1, a switch S1 and a resistor R1; wherein, of the two input terminals of the amplifier, the positive input is grounded, a resistor is connected between the negative input and the filtered signal, and a switch S1 and a capacitor C1 are connected in parallel between the negative input and the output terminal; the switch S1 is used to perform frame processing on the filtered signal, and the capacitor C1 converts the input current signal into a voltage signal.
[0021] Preferably, the logarithmic operation unit includes an amplifier A2, a resistor R2, and a diode D1; the integrated signal is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the negative input of the amplifier A2, the diode D1 is connected in parallel between the negative end and the output end of the amplifier A2, and the positive input of the amplifier A2 is grounded.
[0022] Preferably, the calculation formula of the logarithmic operation unit is:
[0023]
[0024] Where I is the current converted from the integrated voltage signal through resistor R2, V is the voltage result after logarithmic operation, and I S is the saturation current of diode D1, V T is the thermal voltage of diode D1, and e is a natural constant.
[0025] Preferably, the discrete cosine transform unit includes 8*8 voltage-to-current conversion calculation matrices, and the calculation matrix is arranged according to the following coefficient matrix:
[0026]
[0027] Seven types of calculation units are designed to calculate the sizes of seven parameters respectively, which are used to implement the calculation parameters a, b, c, d, e, f, and g in the circuit.
[0028] The beneficial effects of the present invention are: providing a method and circuit for recognizing speech keywords, which effectively reduces the overall circuit power consumption by calculating the Mel-frequency cepstral coefficients of the speech signal in the analog domain, and has high feasibility significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of a circuit implementation of an existing method for calculating Mel-frequency cepstral coefficients in an embodiment of the present invention.
[0030] Figure 2 It is a schematic diagram of a method for recognizing voice keywords in an embodiment of the present invention.
[0031] Figure 3 The present invention is a flow chart of a recognition process of a voice keyword in an embodiment of the present invention.
[0032] Figure 4 It is a schematic diagram of a common transconductance capacitor bandpass filter example in an embodiment of the present invention.
[0033] Figure 5 Schematic diagram of a circuit of a square unit in an embodiment of the present invention.
[0034] Figure 6 Schematic diagram of a circuit of an integration unit in an embodiment of the present invention.
[0035] Figure 7 Schematic diagram of a circuit of a logarithmic operation unit in an embodiment of the present invention.
[0036] Figure 8 Schematic diagram of a circuit of a discrete cosine transform unit in an embodiment of the present invention.
[0037] Fig. 9 Schematic diagram of the structure of a fully connected network in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments 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 used to limit the present invention.
[0039] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.
[0040] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0041] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0042] like Figure 2 As shown, a method for recognizing speech keywords calculates the Mel-frequency cepstral coefficients of speech signals in an analog domain, including the following steps:
[0043] S1: The signal output by the microphone is amplified by a low noise amplifier;
[0044] S2: using the Pasaval theorem to square the amplified signal in the time domain through a squarer to obtain a squared signal;
[0045] S3: using a set of linear filters in Mel frequency to perform bandpass filtering on the squared signal to obtain a filtered signal;
[0046] S4: Integrate the filtered signal to obtain an integrated signal;
[0047] S5: using a logarithmic operation circuit to perform a logarithmic operation on the integrated signal;
[0048] S6: Perform discrete cosine transform on the result obtained by logarithmic operation to obtain Mel-frequency cepstral coefficients of the speech signal.
[0049] The method for recognizing speech keywords provided by the present invention calculates the Mel-frequency cepstral coefficients of speech signals in an analog domain, and has a high keyword recognition rate through simulation verification.
[0050] like Figure 3 As shown, a schematic diagram of the recognition process of voice keywords is described in detail as follows.
[0051] In a specific embodiment, the microphone output signal is usually small, generally in the microvolt level, and it is very difficult to directly calculate its characteristics; therefore, it is easier to calculate by first passing it through a low noise amplifier, amplifying it by 20dB to 40dB according to the amplitude, and then performing characteristic calculations such as square. The signal output by the microphone first passes through a low noise amplifier (Low Noise Amplifier, LNA) to obtain an amplified signal.
[0052] The amplified signal is squared in the time domain by a squarer using the Pasaval theorem to obtain a squared signal, and then the squared signal is integrated:
[0053]
[0054] Among them, x(t) is the original signal, X(ω) is the signal after Fourier transform, t is the time domain unit, and ω is the frequency domain unit.
[0055] Pasaval's theorem shows that the energy of a signal is equal in the time domain and the frequency domain. Therefore, using a squarer in the time domain and filtering in the frequency domain can replace the traditional Fourier transform.
[0056] In step S3, in order to better conform to the laws of human hearing, MFCC uses the nonlinear Mel frequency domain, and its relationship with the linear frequency is:
[0057]
[0058] Among them, F mel is the Mel frequency, F Hz is the universal linear frequency.
[0059] In one embodiment of the present invention, the filter bank is a bandpass filter, and its transfer function H(s) is expressed as:
[0060]
[0061] Among them, A, B, C, D are coefficients, and s is a complex frequency domain unit.
[0062] like Figure 4As shown, the present invention provides a common transconductance capacitor bandpass filter example to achieve bandpass filtering for frequency signals. This filter provides two transconductances through two MOS tubes M7 and M8, and forms two poles with capacitors C2 and C3 to achieve the function of bandpass filtering.
[0063] The effective hearing frequency of the human ear is about 100Hz to 4000Hz, and the sound within this frequency band can be clearly heard by humans. Therefore, when designing a bandpass filter, the effective frequency band of the human ear is fully taken into account, and the number of filters is set to 16, 12, 8 and 4, etc. in this frequency band, and the center frequency is set according to the relationship between the Mel frequency and the linear frequency. This result is simulated in the software, and the voice data is input for keyword recognition to obtain the accuracy shown in Table 1. It is found that when the number of filters is 8, high accuracy can be guaranteed, and the reduction in the number of filters means a reduction in power. Therefore, the present invention fully combines software analysis and simulation, and sets the number of filters to 8 after compromise consideration.
[0064] Table 1 Schematic diagram of simulation results
[0065]
[0066]
[0067] In step S4, the purpose of integration is to calculate energy. In the time domain, energy is often used as a feature of a speech signal. Based on energy, the present invention sets the energy calculation to zero after each frame time ends. This ensures that the calculations between frames do not interfere with each other, making the calculation results more accurate.
[0068] In step S5, the multiplicative signal is converted into an additive signal by logarithm, and the low-frequency envelope signal and the high-frequency detail signal are separated.
[0069] Based on the energy, the present invention first sets a frame to 32ms, and sets the energy calculation to zero after each frame time ends. This ensures that the calculations between frames do not interfere with each other, making the calculation results more accurate. At the same time, a logarithmic calculation part is added to convert the multiplicative signal into an additive signal through the logarithm, and separate the low-frequency envelope signal and the high-frequency detail signal.
[0070] In step S6, a discrete cosine transform (DCT) calculation circuit is used. DCT is a special discrete Fourier transform, and DCT has better energy concentration. Currently, DCT is mostly used in image processing. Since there are many pixels in an image, DCT can effectively compress the amount of data. In this application, in the calculation of speech features, a calculation formula corresponding to the speech signal is obtained, and unlike the two-dimensional image signal, the speech signal is one-dimensional. The logarithmic result is subjected to a DCT operation, and the concentration of the signal is increased through the DCT transformation. The calculation formula of one-dimensional DCT is:
[0071]
[0072] Where x is the input, X is the output, n and k are integers from 0 to N-1, and N is the number of input data.
[0073] The final calculated result is the MFCC result, which can be used as the characteristic value of the speech signal.
[0074] In one embodiment of the present invention, performing discrete cosine transform on the result obtained by the logarithmic operation includes:
[0075] The results obtained by the logarithmic operation are converted into currents according to a coefficient matrix and then added. The coefficient matrix is:
[0076]
[0077] Among them, a, b, c, d, e, f, and g are parameters.
[0078] The present invention also provides a voice keyword recognition circuit, which is used to implement any of the voice keyword recognition methods described above, comprising:
[0079] an amplifying unit, used for obtaining an amplified signal by passing the signal output by the microphone through a low noise amplifier;
[0080] A squaring unit, used for squaring the amplified signal in the time domain through a squarer using the Pasaval theorem to obtain a squared signal;
[0081] A filtering unit, configured to filter the squared signal to obtain a filtered signal;
[0082] An integration unit, used for integrating the filtered signal to obtain an integrated signal;
[0083] A logarithmic operation unit, which uses a logarithmic operation circuit to perform logarithmic operation on the integrated signal;
[0084] The discrete cosine transform unit is used to perform discrete cosine transform on the result obtained by logarithmic operation to obtain Mel-frequency cepstrum coefficients of the speech signal.
[0085] like Figure 5 As shown, the square unit includes 6 field effect transistors, namely MOS tubes M1-M6, MOS tube M1 and MOS tube M2 are used as differential input pair tubes, the drains of the MOS tube M1 and the MOS tube M2 are connected to the drains of the MOS tube M3 and the MOS tube M4; the gate and drain of the MOS tube M3 are connected and connected to the gate of the MOS tube M5, and the gate and drain of the MOS tube M4 are connected and connected to the gate of the MOS tube M6.
[0086] The present invention optimizes the squarer, and only 6 MOS tubes are needed to calculate the square. The current formed by M1 and M2 can be added through a current mirror to cancel the first-order terms other than the square terms. In this way, the calculated result only contains the required second-order square terms and constant terms, realizing the full square function.
[0087] like Figure 6 As shown, the integrator unit is implemented based on a closed-loop application of an amplifier. The integrator unit includes an amplifier A1, a capacitor C1, a switch S1 and a resistor R1;
[0088] Among the two input terminals of the amplifier, the positive input is grounded, a resistor is connected between the negative input and the filtered signal, and a switch S1 and a capacitor C1 are connected in parallel between the negative input and the output terminal;
[0089] The switch S1 is used to perform frame processing on the filtered signal, and the capacitor C1 converts the input current signal into a voltage signal.
[0090] like Figure 7 As shown, the logarithmic operation unit is based on the closed-loop application of the amplifier and the diode. The logarithmic operation unit includes an amplifier A2, a resistor R2, and a diode D1;
[0091] The integrated signal is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the negative input of the amplifier A2, the diode D1 is connected in parallel between the negative and output ends of the amplifier A2, and the positive input of the amplifier A2 is grounded.
[0092] In one embodiment of the present invention, the calculation formula of the logarithmic operation unit is:
[0093]
[0094] Where I is the current converted from the integrated voltage signal through resistor R2, V is the voltage result after logarithmic operation, and I S is the saturation current of diode D1, V Tis the thermal voltage of diode D1, and e is a natural constant. Therefore, the voltage result V and the current I present a logarithmic form with the natural logarithm e as the base.
[0095] like Figure 8 As shown, in one-dimensional discrete cosine transform, if the number of coefficients is 8, the calculation formula can be simplified to:
[0096] X 8×1 =D 8×8 ·x 8×1
[0097] Where x is the input, X is the output, and D is the coefficient matrix.
[0098] The discrete cosine transform unit includes 8*8 voltage-to-current conversion calculation matrices, and the calculation matrix is arranged according to the following coefficient matrix:
[0099]
[0100] Seven calculation units are designed to calculate the size of seven parameters respectively, which are used to calculate the parameters a, b, c, d, e, f, and g in the circuit. Therefore, a calculation network is constructed according to the value of D. After the input voltage is converted into current through a pseudo-resistor with a corresponding coefficient resistance value, the current is added by parallel connection to complete the DCT calculation.
[0101] Continue as Figure 8 As shown, the calculated eight current values I1-I8 are the MFCC coefficients of a frame signal. The eight eigenvalues are applied to the neural network. Through the neural network training, the judgment of speech keywords can be effectively realized.
[0102] like Fig. 9 As shown in the figure, the neural network selected here is a fully connected network. The input is 8 MFCC feature values of a frame of speech, the middle is a hidden layer, and there are 12 nodes in total. The output is 2 nodes, which represent whether it is a keyword or not. After network training, the probability of identifying a keyword under a 10dB signal-to-noise ratio reaches 93.53%.
[0103] As shown in Table 2, when simulated under 180nm process, it only takes 437.1nA to measure all feature calculation modules, VDD is 0.8V, and the total power consumption is 349.7nW. In the digital domain, J. Giraldo et al. calculated the MFCC in the digital domain in 2019, and the power consumption of the feature extraction part was 7.328μW. Therefore, the present invention effectively reduces the overall circuit power consumption and has a high feasibility significance.
[0104] Table 2 Experimental results
[0105]
[0106] An embodiment of the present application also provides a control device, including a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least the method described above when executing the computer program.
[0107] An embodiment of the present application also provides a storage medium for storing a computer program, which at least performs the method described above when executed.
[0108] An embodiment of the present application further provides a processor, which executes a computer program and at least performs the method described above.
[0109] The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAMEnhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely 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 can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0111] The units described above as separate components may or may not be physically separated, and the components displayed 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 present embodiment.
[0112] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0113] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.
[0114] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0115] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0116] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0117] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0118] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for recognizing speech keywords, characterized in that: Calculating the Mel-frequency cepstral coefficients of a speech signal in the analog domain includes the following steps: S1: The signal output by the microphone is amplified by a low noise amplifier; S2: using the Pasaval theorem to square the amplified signal in the time domain through a squarer to obtain a squared signal; S3: using a set of linear filters in Mel frequency to perform bandpass filtering on the squared signal to obtain a filtered signal; S4: Integrate the filtered signal to obtain an integrated signal; S5: using a logarithmic operation circuit to perform a logarithmic operation on the integrated signal; S6: Perform discrete cosine transform on the result obtained by logarithmic operation to obtain Mel-frequency cepstral coefficients of the speech signal.
2. The method for recognizing speech keywords according to claim 1, characterized in that: The amplified signal is squared in the time domain by a squarer using the Pasaval theorem to obtain a squared signal, and then the squared signal is integrated: Among them, x(t) is the original signal, X(ω) is the signal after Fourier transform, t is the time domain unit, and ω is the frequency domain unit.
3. The method for recognizing speech keywords according to claim 2, characterized in that: The filter bank is a bandpass filter, and its transfer function H(s) is expressed as: Among them, A, B, C, D are coefficients, and s is a complex frequency domain unit.
4. The method for recognizing speech keywords according to claim 2, characterized in that: Performing discrete cosine transform on the result obtained by the logarithmic operation includes: The results obtained by the logarithmic operation are converted into currents according to a coefficient matrix and then added. The coefficient matrix is: Among them, a, b, c, d, e, f, and g are parameters.
5. A voice keyword recognition circuit, characterized in that: A method for realizing the recognition of a speech keyword as claimed in any one of claims 1 to 4, comprising: an amplifying unit, used for obtaining an amplified signal by passing the signal output by the microphone through a low noise amplifier; A squaring unit, used for squaring the amplified signal in the time domain through a squarer using the Pasaval theorem to obtain a squared signal; A filtering unit, configured to filter the squared signal to obtain a filtered signal; An integration unit, used for integrating the filtered signal to obtain an integrated signal; A logarithmic operation unit, which uses a logarithmic operation circuit to perform logarithmic operation on the integrated signal; The discrete cosine transform unit is used to perform discrete cosine transform on the result obtained by logarithmic operation to obtain Mel-frequency cepstrum coefficients of the speech signal.
6. The voice keyword recognition circuit according to claim 5, characterized in that: The square unit includes 6 field effect transistors M1-M6. The field effect transistor M1 and the field effect transistor M2 serve as a differential input pair, and the drains of the field effect transistor M1 and the field effect transistor M2 are connected to the drains of the field effect transistor M3 and the field effect transistor M4; the gate and drain of the field effect transistor M3 are connected and connected to the gate of the field effect transistor M5, and the gate and drain of the field effect transistor M4 are connected and connected to the gate of the field effect transistor M6.
7. The voice keyword recognition circuit according to claim 6, characterized in that: The integration unit includes an amplifier A1, a capacitor C1, a switch S1 and a resistor R1; Among the two input terminals of the amplifier, the positive input is grounded, a resistor is connected between the negative input and the filtered signal, and a switch S1 and a capacitor C1 are connected in parallel between the negative input and the output terminal; The switch S1 is used to perform frame processing on the filtered signal, and the capacitor C1 converts the input current signal into a voltage signal.
8. The voice keyword recognition circuit according to claim 7, characterized in that: The logarithmic operation unit includes an amplifier A2, a resistor R2, and a diode D1; The integrated signal is connected to one end of the resistor R2, the other end of the resistor R2 is connected to the negative input of the amplifier A2, the diode D1 is connected in parallel between the negative and output ends of the amplifier A2, and the positive input of the amplifier A2 is grounded.
9. The voice keyword recognition circuit according to claim 8, characterized in that: The calculation formula of the logarithmic operation unit is: Where I is the current converted from the integrated voltage signal through resistor R2, V is the voltage result after logarithmic operation, and I S is the saturation current of diode D1, V T is the thermal voltage of diode D1, and e is a natural constant.
10. The voice keyword recognition circuit according to claim 9, characterized in that: The discrete cosine transform unit includes 8*8 voltage-to-current conversion calculation matrices, and the calculation matrix is arranged according to the following coefficient matrix: Seven types of calculation units are designed to calculate the sizes of seven parameters respectively, which are used to implement the calculation parameters a, b, c, d, e, f, and g in the circuit.
