Voice recognition method, device, equipment and massage sofa
Through the segmentation processing of the speech signal and the storage strategy of characteristic parameters, the problem of difficulty in balancing the computational load and accuracy of speech recognition in the existing technology is solved, and efficient speech recognition in lightweight products is achieved.
Patent Information
- Application Number
- CN202110165585.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-02-06
AI Technical Summary
Existing speech recognition technology cannot take into account a relatively small amount of calculation and a relatively high accuracy, making it difficult to achieve efficient speech recognition in lightweight products.
By segmenting the speech signal, if the energy of the target speech sub-signal is not greater than the preset energy threshold, its characteristic parameters are stored in the first memory. If the energy is greater than the threshold, they are stored in the second memory and merged. Enter the pre-trained classification model for recognition.
After obtaining enough feature parameters, speech recognition can be performed, reducing the amount of calculations while ensuring a certain accuracy, taking into account both the smaller amount of calculations and higher accuracy.
Smart Images

Figure CN112908309B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of voice recognition, and in particular relates to a voice recognition method, device, equipment and a massage sofa. Background Art
[0002] Traditional speech recognition usually breaks down speech into the fundamental frequency vibration of the throat glottis and the envelope changes of the oral articulation, and recognizes it based on the time-varying state of the two. Although this speech recognition method has relatively accurate results, the amount of calculation is very large.
[0003] At present, products that require voice recognition are basically lightweight products, such as wireless headphones, etc. Such products require a voice recognition method with relatively small computing power and relatively high accuracy, but the existing voice recognition methods cannot take into account both relatively small computing power and relatively high accuracy. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a speech recognition method, device, equipment and massage sofa to solve the problem that the prior art cannot take into account both relatively small computational complexity and relatively high accuracy.
[0005] A first aspect of an embodiment of the present invention provides a speech recognition method, comprising:
[0006] Acquire a speech signal, and process the speech signal in segments to obtain multiple speech sub-signals;
[0007] Selecting the first speech sub-signal from the multiple speech sub-signals as the target speech sub-signal, and extracting characteristic parameters of the target speech sub-signal;
[0008] If the energy of the target speech sub-signal is not greater than the preset energy threshold, the characteristic parameter is stored in the first memory, the next speech sub-signal of the target speech sub-signal is selected as the new target speech sub-signal, and the step of extracting the characteristic parameter of the target speech sub-signal is jumped to and executed in a loop;
[0009] If the energy of the target speech sub-signal is greater than a preset energy threshold, the characteristic parameters are stored in a second memory, and the characteristic parameters of the next first preset number of speech sub-signals are extracted, and the characteristic parameters of the first preset number of speech sub-signals are stored in the second memory;
[0010] The feature parameters in the first memory and the feature parameters in the second memory are combined, and the combined feature parameters are input into a pre-trained classification model to obtain a speech recognition result.
[0011] A second aspect of an embodiment of the present invention provides a speech recognition device, including:
[0012] An acquisition module is used to acquire a speech signal and process the speech signal in segments to obtain multiple speech sub-signals;
[0013] A selection module, used to select the first speech sub-signal from the multiple speech sub-signals as the target speech sub-signal, and extract characteristic parameters of the target speech sub-signal;
[0014] A signal processing module, for storing the characteristic parameters in a first memory if the energy of the target speech sub-signal is not greater than a preset energy threshold, selecting the next speech sub-signal of the target speech sub-signal as a new target speech sub-signal, and jumping to the step of extracting the characteristic parameters of the target speech sub-signal for loop execution; if the energy of the target speech sub-signal is greater than the preset energy threshold, storing the characteristic parameters in a second memory, extracting the characteristic parameters of the next first preset number of speech sub-signals, and storing the characteristic parameters of the first preset number of speech sub-signals in the second memory;
[0015] The speech recognition module is used to merge the feature parameters in the first memory and the feature parameters in the second memory, and input the merged feature parameters into a pre-trained classification model to obtain a speech recognition result.
[0016] A third aspect of an embodiment of the present invention provides a speech recognition device, comprising a program memory, a processor, and a computer program stored in the program memory and executable on the processor, wherein the processor implements the steps of the speech recognition method described in the first aspect when executing the computer program.
[0017] A fourth aspect of an embodiment of the present invention provides a massage sofa, comprising a head cushion and a voice recognition device as described in the third aspect;
[0018] The voice recognition device is disposed in the headrest cushion.
[0019] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows: the embodiments of the present invention segment the speech signal, and when the energy of the target speech sub-signal is not greater than the preset energy threshold, store its feature parameters in the first memory, and continue to judge whether the energy of the next speech sub-signal is greater than the preset energy threshold; when the energy of the target speech sub-signal is greater than the preset energy threshold, store its feature parameters in the second memory, extract the feature parameters of the next first preset number of speech sub-signals, and store them in the second memory, finally merge the feature parameters in the first memory and the feature parameters in the second memory, and input the merged feature parameters into a pre-trained classification model to obtain a speech recognition result. After obtaining enough feature parameters, speech recognition can be performed without feature extraction for each speech sub-signal. The amount of calculation can be reduced while ensuring a certain accuracy rate, and both a relatively small amount of calculation and a relatively high accuracy rate can be taken into account. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 It is a schematic diagram of the implementation flow of the speech recognition method provided by one embodiment of the present invention;
[0022] Figure 2 is a schematic block diagram of a speech recognition device provided by an embodiment of the present invention;
[0023] Figure 3 is a schematic block diagram of a speech recognition device provided by an embodiment of the present invention;
[0024] Figure 4 It is a schematic diagram of a massage sofa provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0026] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.
[0027] Figure 1 FIG. 1 is a schematic diagram of an implementation flow of a speech recognition method provided by an embodiment of the present invention. For the sake of convenience, only the part related to the embodiment of the present invention is shown. The execution subject of the embodiment of the present invention may be a processor included in a speech recognition device. Figure 1 As shown, the method may include the following steps:
[0028] S101: Acquire a speech signal, and process the speech signal in segments to obtain multiple speech sub-signals.
[0029] The speech signal may be a digitized sound signal. Each segment of the speech signal is referred to as a speech sub-signal.
[0030] Optionally, the voice signal can be segmented and processed in a manner with equal time intervals and non-overlapping, for example, every 32ms can be a segment, that is, 0-32ms is the first segment of the voice sub-signal, 32-64ms is the second segment of the voice sub-signal, and so on; the voice signal can also be segmented and processed in a manner with equal time intervals and partial overlaps, for example, every 32ms can be a segment, overlapping by 16ms, that is, 0-32ms is the first segment of the voice sub-signal, 16ms-48ms is the second segment of the voice sub-signal, and so on; the voice signal can also be segmented in a manner with unequal time intervals; the segmentation processing can be performed according to actual needs, and no specific restrictions are made here.
[0031] Specifically, the speech signal can be processed in segments using audio frames, and each audio frame corresponds to a segment of speech sub-signal.
[0032] S102: Selecting a first speech sub-signal from among the multiple speech sub-signals as a target speech sub-signal, and extracting characteristic parameters of the target speech sub-signal.
[0033] In one embodiment of the present invention, the step of “selecting a first speech sub-signal from among multiple speech sub-signals as a target speech sub-signal” in S102 may include:
[0034] In order from earliest to latest, the first speech sub-signal among the multiple speech sub-signals is selected as the target speech sub-signal.
[0035] Specifically, the first voice sub-signal is the earliest voice sub-signal in time order, for example, the voice sub-signal of 0-32ms in the above example. The first voice sub-signal is used as the target voice sub-signal, and the feature parameters of the target voice sub-signal are extracted using the existing method. The subsequent selection of the target voice sub-signal is selected in time order from early to late.
[0036] In one embodiment of the present invention, the characteristic parameters are Mel-frequency cepstrum parameters.
[0037] The Mel-frequency Cepstral Coefficient (MFCC) may be used as the Mel-frequency Cepstral Coefficient (MFCC).
[0038] S103: If the energy of the target speech sub-signal is not greater than the preset energy threshold, the characteristic parameters are stored in the first memory, the next speech sub-signal of the target speech sub-signal is selected as the new target speech sub-signal, and the step of jumping to the step of extracting the characteristic parameters of the target speech sub-signal is executed in a loop; if the energy of the target speech sub-signal is greater than the preset energy threshold, the characteristic parameters are stored in the second memory, and the characteristic parameters of the next first preset number of speech sub-signals are extracted, and the characteristic parameters of the first preset number of speech sub-signals are stored in the second memory.
[0039] The energy of the target speech sub-signal may be the short-time energy of the target speech sub-signal.
[0040] In an embodiment of the present invention, the energy of the target speech sub-signal is calculated, and it is determined whether the energy of the target speech sub-signal is greater than a preset energy threshold. If the energy of the target speech sub-signal is not greater than the preset energy threshold, the characteristic parameters of the target speech sub-signal are stored in a first memory in chronological order, and the next speech sub-signal of the target speech sub-signal is selected as a new target speech sub-signal in chronological order, and the step of extracting the characteristic parameters of the target speech sub-signal is jumped to and executed cyclically until the energy of the target speech sub-signal is greater than the preset energy threshold.
[0041] If the energy of the target speech sub-signal is greater than the preset energy threshold, the characteristic parameters of the target speech sub-signal are stored in the second memory in chronological order, and the characteristic parameters of the next first preset number of speech sub-signals are continuously extracted, and the extracted characteristic parameters of the first preset number of speech sub-signals are stored in the second memory in chronological order.
[0042] The preset energy threshold and the first preset number can be set according to actual needs. The target speech sub-signal greater than the preset energy threshold can be a speech signal with sound.
[0043] The next segment of the target speech sub-signal is a speech sub-signal whose initial time is after the initial time of the target speech sub-signal and whose initial time is closest to the initial time of the target speech sub-signal.
[0044] The first memory and the second memory may be temporary memories.
[0045] S104: Merge the feature parameters in the first memory and the feature parameters in the second memory, and input the merged feature parameters into a pre-trained classification model to obtain a speech recognition result.
[0046] Specifically, when the feature parameters of the first preset number of speech sub-signals are extracted and stored in the second memory, all the feature parameters in the first memory and all the feature parameters in the second memory are obtained, and all the feature parameters in the first memory and all the feature parameters in the second memory are merged to obtain merged feature parameters, and the merged feature parameters are input into the pre-trained classification model to obtain the speech recognition result.
[0047] The merging of the characteristic parameters in the first memory and the characteristic parameters in the second memory may be to put the characteristic parameters in the first memory first and the characteristic parameters in the second memory last to form a characteristic vector.
[0048] The classification model can be a neural network model for speech recognition.
[0049] It can be seen from the above description that the embodiment of the present invention processes the speech signal in segments, and when the energy of the target speech sub-signal is not greater than the preset energy threshold, stores its feature parameters in the first memory, and continues to judge whether the energy of the next speech sub-signal is greater than the preset energy threshold; when the energy of the target speech sub-signal is greater than the preset energy threshold, stores its feature parameters in the second memory, and extracts the feature parameters of the next first preset number of speech sub-signals and stores them in the second memory, finally merges the feature parameters in the first memory and the feature parameters in the second memory, and inputs the merged feature parameters into a pre-trained classification model to obtain a speech recognition result. After obtaining enough feature parameters, speech recognition can be performed without feature extraction for each speech sub-signal. It can reduce the amount of calculation while ensuring a certain accuracy rate, and can take into account both a relatively small amount of calculation and a relatively high accuracy rate.
[0050] In one embodiment of the present invention, the “storing the characteristic parameters in the first memory” in S103 above may include:
[0051] If the number of characteristic parameters stored in the first memory is not less than the second preset number, deleting the characteristic parameters first stored in the first memory, and storing the characteristic parameters of the target speech sub-signal in the first memory in chronological order;
[0052] If the number of characteristic parameters stored in the first memory is less than the second preset number, the characteristic parameters of the target speech sub-signal are stored in the first memory in chronological order.
[0053] In one embodiment of the present invention, the first memory stores data in a circular queue manner, and the capacity of the first memory is a second preset amount.
[0054] The second preset number can be set according to actual needs.
[0055] When the number of characteristic parameters stored in the first memory is equal to the capacity of the first memory, if new characteristic parameters are stored, the new characteristic parameters will overwrite the characteristic parameters first saved in the first memory, thereby ensuring that the first memory stores the most recently extracted second preset number of characteristic parameters.
[0056] During the speech recognition process, in order to save power and reduce the amount of calculation, the energy of each speech sub-signal can be calculated, and speech recognition is performed only when it exceeds a preset energy threshold. However, the speech sub-signal whose energy is greater than the preset energy threshold is not necessarily the speech sub-signal starting with human voice. The energy of a word beginning with a voiceless consonant may not reach the preset energy threshold, but may contain important information. Therefore, the most recently extracted second preset number of feature parameters stored in the first memory and the feature parameters stored in the second memory are merged, and speech recognition can be performed based on the partial speech sub-signals before the speech sub-signal whose energy reaches the preset energy threshold and the partial speech sub-signals after whose energy reaches the preset energy threshold, which can improve the accuracy of speech recognition while reducing the amount of calculation.
[0057] In one embodiment of the present invention, before inputting the combined feature parameters into a pre-trained classification model to obtain a speech recognition result, the speech recognition method further includes:
[0058] Obtain a training sample set, and extract characteristic parameters of each training sample in the training sample set;
[0059] Perform dimensionality reduction processing on the characteristic parameters of each training sample respectively to obtain the reduced dimensionality characteristic parameters corresponding to each training sample;
[0060] Based on the reduced-dimensional feature parameters corresponding to each training sample, the preset classification model is trained to obtain a pre-trained classification model.
[0061] Each training sample is labeled with the correct speech recognition result. Dimensionality reduction processing may include but is not limited to traditional averaging, weighting based on sound frames, PCA (Principal Component Analysis), K-means, etc.
[0062] Optionally, in order to prevent the problem of false awakening, negative samples may be added to the training sample set, or classification categories of the classification model may be added.
[0063] The above training process can be completed before the product goes online.
[0064] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0065] Corresponding to the above-mentioned speech recognition method, an embodiment of the present invention further provides a speech recognition device, which has the same beneficial effects as the above-mentioned speech recognition method. Figure 2 1 is a schematic block diagram of a speech recognition device provided by an embodiment of the present invention. For ease of explanation, only the part related to the embodiment of the present invention is shown.
[0066] In the embodiment of the present invention, the speech recognition device 30 may include an acquisition module 301 , a selection module 302 , a signal processing module 303 and a speech recognition module 304 .
[0067] The acquisition module 301 is used to acquire a speech signal and process the speech signal in segments to obtain multiple speech sub-signals.
[0068] A selection module 302 is used to select the first speech sub-signal from the multiple speech sub-signals as the target speech sub-signal, and extract characteristic parameters of the target speech sub-signal;
[0069] The signal processing module 303 is used to store the characteristic parameters in the first memory if the energy of the target speech sub-signal is not greater than the preset energy threshold, select the next speech sub-signal of the target speech sub-signal as the new target speech sub-signal, and jump to the step of extracting the characteristic parameters of the target speech sub-signal for loop execution; if the energy of the target speech sub-signal is greater than the preset energy threshold, store the characteristic parameters in the second memory, extract the characteristic parameters of the next first preset number of speech sub-signals, and store the characteristic parameters of the first preset number of speech sub-signals in the second memory;
[0070] The speech recognition module 304 is used to merge the feature parameters in the first memory and the feature parameters in the second memory, and input the merged feature parameters into a pre-trained classification model to obtain a speech recognition result.
[0071] In one embodiment of the present invention, the signal processing module 303 may also be used for:
[0072] If the number of characteristic parameters stored in the first memory is not less than the second preset number, deleting the characteristic parameters first stored in the first memory, and storing the characteristic parameters of the target speech sub-signal in the first memory in chronological order;
[0073] If the number of characteristic parameters stored in the first memory is less than the second preset number, the characteristic parameters of the target speech sub-signal are stored in the first memory in chronological order.
[0074] In one embodiment of the present invention, the selection module 302 may also be used to:
[0075] In order from early to late, the first speech sub-signal in the multiple speech sub-signals is selected as the target speech sub-signal.
[0076] In one embodiment of the present invention, the first memory stores data in a circular queue manner, and the capacity of the first memory is a second preset amount.
[0077] In one embodiment of the present invention, the speech recognition device 30 may further include a training module.
[0078] Training modules can be used to:
[0079] Obtain a training sample set, and extract characteristic parameters of each training sample in the training sample set;
[0080] Perform dimensionality reduction processing on the characteristic parameters of each training sample respectively to obtain the reduced dimensionality characteristic parameters corresponding to each training sample;
[0081] Based on the reduced-dimensional feature parameters corresponding to each training sample, the preset classification model is trained to obtain a pre-trained classification model.
[0082] In one embodiment of the present invention, the characteristic parameters are Mel-frequency cepstrum parameters.
[0083] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the speech recognition device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0084] Figure 3FIG. 1 is a schematic block diagram of a speech recognition device provided by an embodiment of the present invention. Figure 3 As shown, the speech recognition device 40 of this embodiment includes: one or more processors 401, a program memory 402, and a computer program 403 stored in the program memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned various speech recognition method embodiments are implemented, such as Figure 1 Alternatively, when the processor 401 executes the computer program 403, the functions of each module / unit in the above-mentioned speech recognition device embodiment are realized, for example Figure 2 Functions of modules 301 to 304 are shown.
[0085] Exemplarily, the computer program 403 may be divided into one or more modules / units, which are stored in the program memory 402 and executed by the processor 401 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 403 in the speech recognition device 40. For example, the computer program 403 may be divided into an acquisition module, a selection module, a signal processing module, and a speech recognition module, and the specific functions of each module are as follows:
[0086] An acquisition module is used to acquire a speech signal and process the speech signal in segments to obtain multiple speech sub-signals;
[0087] A selection module, used to select the first speech sub-signal from the multiple speech sub-signals as the target speech sub-signal, and extract characteristic parameters of the target speech sub-signal;
[0088] A signal processing module, for storing the characteristic parameters in a first memory if the energy of the target speech sub-signal is not greater than a preset energy threshold, selecting the next speech sub-signal of the target speech sub-signal as a new target speech sub-signal, and jumping to the step of extracting the characteristic parameters of the target speech sub-signal for loop execution; if the energy of the target speech sub-signal is greater than the preset energy threshold, storing the characteristic parameters in a second memory, extracting the characteristic parameters of the next first preset number of speech sub-signals, and storing the characteristic parameters of the first preset number of speech sub-signals in the second memory;
[0089] The speech recognition module is used to merge the feature parameters in the first memory and the feature parameters in the second memory, and input the merged feature parameters into a pre-trained classification model to obtain a speech recognition result.
[0090] Other modules or units can refer to Figure 2The description in the illustrated embodiment will not be repeated here.
[0091] The speech recognition device 40 may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, or a specific speech recognition device. The speech recognition device 40 includes but is not limited to a processor 401 and a program memory 402. Those skilled in the art will understand that Figure 3 It is only an example of the speech recognition device 40 and does not constitute a limitation of the speech recognition device 40. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the speech recognition device 40 may also include an input device, an output device, a network access device, a bus, etc.
[0092] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0093] The program memory 402 may be an internal storage unit of the speech recognition device 40, such as a hard disk or memory of the speech recognition device 40. The program memory 402 may also be an external storage device of the speech recognition device 40, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the speech recognition device 40. Further, the program memory 402 may also include both an internal storage unit and an external storage device of the speech recognition device 40. The program memory 402 is used to store the computer program 403 and other programs and data required by the speech recognition device 40. The program memory 402 may also be used to temporarily store data that has been output or is to be output.
[0094] In one embodiment of the present invention, the above-mentioned speech recognition device 40 may further include a sound collection device;
[0095] The sound collection device is connected to the processor 401;
[0096] The sound collection device is used to collect external sound signals, convert the external sound signals into analog current signals, and perform amplification, filtering and analog-to-digital conversion on the analog current signals to obtain voice signals, and send the voice signals to the processor 401.
[0097] Optionally, the sound collection device may include a microphone, an amplifier, a filter, and an analog-to-digital converter connected in sequence, and the analog-to-digital converter is connected to the processor 401 .
[0098] The microphone is used to collect sound signals, convert the sound signals into analog current signals, and send the analog current signals to the amplifier.
[0099] The amplifier is used to amplify the analog current signal and send the amplified analog current signal to the filter. The amplifier can pre-set multiple sensitivities according to user needs, and select the appropriate sensitivity to amplify the analog current signal according to actual needs.
[0100] The filter is used to filter the amplified analog current signal and send the filtered analog circuit signal to the analog-to-digital converter. In the filtering process, the spectral response of the signal can be adjusted to perform sound enhancement, equalization, noise filtering, etc.
[0101] The analog-to-digital converter is used to perform analog-to-digital conversion on the filtered analog current signal to obtain a digital sound signal, namely a voice signal, and send it to the processor 401. The analog-to-digital converter can set a suitable sampling frequency, bit number, etc. to convert the analog signal into a digital signal.
[0102] In order to avoid hardware distortion and energy loss, amplifiers and filters are used for hardware compensation before the analog-to-digital converter is used for analog-to-digital conversion.
[0103] Optionally, the speech recognition device 40 may further include a first memory and a second memory, and both the first memory and the second memory are connected to the processor 401 .
[0104] The functions of the first memory and the second memory refer to the specific description in the above-mentioned speech recognition method, which will not be repeated here.
[0105] Optionally, the microphone may be a bone conduction microphone.
[0106] See also Figure 4 , corresponding to the above-mentioned voice recognition device 40, an embodiment of the present invention further provides a massage sofa, including a head cushion 20 and the above-mentioned voice recognition device 40;
[0107] The voice recognition device 40 is provided in the headrest 20 .
[0108] Preferably, the voice recognition device 40 is disposed in the middle of the headrest 20 .
[0109] Among them, in the massage sofa, the voice recognition result of the voice recognition device 40 is a massage instruction, which is used to instruct the corresponding massager to massage.
[0110] Alternatively, see Figure 4 The massage sofa may further include a sofa body 10 and a massager 30 disposed in the sofa body 10 . The sofa body 10 includes a sofa backrest 11 , and the head cushion 20 is disposed on an upper portion of the sofa backrest 11 .
[0111] The voice recognition device 40 is connected to the massager;
[0112] The voice recognition device 40 is used to receive the sound signal, obtain the massage instruction according to the sound signal recognition, and send the massage instruction to the massager;
[0113] The massager is used to perform massage according to massage instructions.
[0114] The voice recognition device 40 can be installed on the surface layer of the head cushion 20 and can be covered with fabrics such as mesh. When the user sits on the massage sofa, the back of the head will touch the voice recognition device 40.
[0115] The headrest cushion 20 can be installed on the upper part of the sofa backrest 11 and can be adjusted. The voice recognition device 40 can be installed in the middle of the headrest cushion 20 or near the middle.
[0116] It can be seen from the above description that the embodiment of the present invention recognizes massage commands through the voice recognition device 40. No remote control is required, and massage can be achieved only by voice commands. It is easy to use, can improve user experience, and can solve the problem that the remote control is easily lost and inconvenient to use; the voice recognition device 40 is arranged in the head cushion 20. When the user leans against the sofa backrest 11, the head can just lean on the voice recognition device 40, which can effectively receive sound, reduce environmental noise interference, and improve the accuracy of command recognition.
[0117] Optionally, the speech recognition device 40 may further include a parameter memory connected to the processor 32 for storing relevant parameters of the operation process of the processor 32 .
[0118] Optionally, the voice recognition device 40 may further include an instruction classifier connected to the processor 32, for receiving the massage instruction sent by the processor 32, classifying the massage instruction to obtain a category corresponding to the massage instruction, and sending the massage instruction to a massager corresponding to the category. The massager corresponding to the category performs massage according to the massage instruction.
[0119] Specifically, different massage instructions may correspond to different categories, such as hand massage, leg massage, etc. Each category has a corresponding massager for massage, for example, hand massage corresponds to a hand massager, leg massage corresponds to a leg massager, and so on.
[0120] Optionally, the embodiment of the present invention can use a bone conduction microphone to collect sound, specifically, it can collect the vibration signal of the back of the head in contact with the bone conduction microphone, which can further improve the accuracy of sound collection; by combining the bone conduction microphone with the head cushion part, the interference of factors such as environmental noise can be greatly reduced, thereby improving the recognition accuracy.
[0121] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0123] In the embodiments provided in the present application, it should be understood that the disclosed speech recognition device and method can be implemented in other ways. For example, the speech recognition device embodiments described above are merely schematic. For example, the division of the modules or 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0124] 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.
[0125] In addition, each functional unit in each embodiment of the present application 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 software functional units.
[0126] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0127] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A speech recognition method, characterized in that: include: Acquire a speech signal, and perform segment processing on the speech signal to obtain multiple speech sub-signals; Selecting a first speech sub-signal from the plurality of speech sub-signals as a target speech sub-signal, and extracting characteristic parameters of the target speech sub-signal; If the energy of the target speech sub-signal is not greater than a preset energy threshold, the characteristic parameter is stored in a first memory, a next speech sub-signal of the target speech sub-signal is selected as a new target speech sub-signal, and the step of extracting the characteristic parameter of the target speech sub-signal is jumped to and executed in a loop; If the energy of the target speech sub-signal is greater than the preset energy threshold, the characteristic parameter is stored in the second memory, and the characteristic parameters of the next first preset number of speech sub-signals are extracted, and the characteristic parameters of the first preset number of speech sub-signals are stored in the second memory; Merging the feature parameters in the first memory and the feature parameters in the second memory, and inputting the merged feature parameters into a pre-trained classification model to obtain a speech recognition result; The storing the characteristic parameters in a first memory comprises: If the number of characteristic parameters stored in the first memory is not less than a second preset number, deleting the characteristic parameters first stored in the first memory, and storing the characteristic parameters of the target speech sub-signal in the first memory in chronological order; If the number of characteristic parameters stored in the first memory is less than the second preset number, the characteristic parameters of the target speech sub-signal are stored in the first memory in chronological order.
2. The speech recognition method according to claim 1, characterized in that: The selecting the first speech sub-signal from the multiple speech sub-signals as the target speech sub-signal comprises: In order from earliest to latest, the first speech sub-signal among the multiple speech sub-signals is selected as the target speech sub-signal.
3. The speech recognition method according to claim 1, characterized in that: The first memory stores data in a circular queue manner, and the capacity of the first memory is a second preset amount.
4. The speech recognition method according to any one of claims 1 to 3, characterized in that: Before inputting the combined feature parameters into the pre-trained classification model to obtain the speech recognition result, the speech recognition method further includes: Acquire a training sample set, and extract characteristic parameters of each training sample in the training sample set; Perform dimensionality reduction processing on the characteristic parameters of each training sample respectively to obtain the reduced dimensionality characteristic parameters corresponding to each training sample; Based on the reduced-dimensional feature parameters corresponding to each training sample, the preset classification model is trained to obtain the pre-trained classification model.
5. The speech recognition method according to any one of claims 1 to 3, characterized in that: The characteristic parameters are Mel-frequency cepstrum parameters.
6. A speech recognition device, characterized in that: include: An acquisition module is used to acquire a speech signal and process the speech signal in segments to obtain multiple speech sub-signals; A selection module, used for selecting the first speech sub-signal among the multiple speech sub-signals as the target speech sub-signal, and extracting characteristic parameters of the target speech sub-signal; A signal processing module, for storing the characteristic parameters in a first memory if the energy of the target speech sub-signal is not greater than a preset energy threshold, selecting the next speech sub-signal of the target speech sub-signal as a new target speech sub-signal, and jumping to the step of extracting the characteristic parameters of the target speech sub-signal for loop execution; if the energy of the target speech sub-signal is greater than the preset energy threshold, storing the characteristic parameters in a second memory, extracting the characteristic parameters of the next first preset number of speech sub-signals, and storing the characteristic parameters of the first preset number of speech sub-signals in the second memory; A speech recognition module, configured to combine the feature parameters in the first memory and the feature parameters in the second memory, and input the combined feature parameters into a pre-trained classification model to obtain a speech recognition result; In the signal processing module, storing the characteristic parameter in a first memory includes: If the number of characteristic parameters stored in the first memory is not less than a second preset number, deleting the characteristic parameters first stored in the first memory, and storing the characteristic parameters of the target speech sub-signal in the first memory in chronological order; If the number of characteristic parameters stored in the first memory is less than the second preset number, the characteristic parameters of the target speech sub-signal are stored in the first memory in chronological order.
7. A speech recognition device, comprising a program memory, a processor, and a computer program stored in the program memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the speech recognition method according to any one of claims 1 to 5 are implemented.
8. The speech recognition device according to claim 7, characterized in that: The speech recognition device also includes a sound collection device; The sound collection device is connected to the processor; The sound collection device is used to collect external sound signals, convert the external sound signals into analog current signals, and respectively amplify, filter and analog-to-digital convert the analog current signals to obtain voice signals, and send the voice signals to the processor.
9. A massage sofa, characterized in that: comprising a headrest and a speech recognition device as claimed in claim 7 or 8; The voice recognition device is disposed in the headrest cushion.
