Speech recognition method and device, electronic equipment and storage medium
By acquiring and processing environmental noise data, the problem of noise interference between voice recognition devices in the home environment is solved, and the accuracy of voice recognition and the ability of users to manipulate smart home devices is improved.
Patent Information
- Application Number
- CN202411137091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-01
AI Technical Summary
In a home environment, voice recognition devices cannot accurately recognize voice commands due to noise interference, affecting users' control over smart home devices.
By sending a data acquisition request to a wireless perception device with a wireless perception module, acquiring ambient noise data and processing it, the voice signal is recognized based on the data to filter out noise interference, and voice recognition is realized.
Improve the accuracy of voice recognition, enable users to more accurately control smart home devices, and enhance user experience.
Smart Images

Figure CN118887968A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a speech recognition method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of artificial intelligence and Internet of Things technology, smart home has become an indispensable part of people's lives. As an important artificial intelligence technology, speech recognition technology plays an important role in the field of smart home.
[0003] However, in a home environment, the voice signals to be recognized often have the problem of noise interference, which causes smart home devices with voice recognition functions to be unable to accurately recognize voice commands, and thus users are unable to accurately control smart home devices, affecting user use. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a speech recognition method, device, electronic device and storage medium.
[0005] In a first aspect, the present application provides a speech recognition method, which is applied to a speech recognition device, and the method comprises:
[0006] Collecting a first voice signal in a surrounding environment;
[0007] Sending a data acquisition request to a wireless sensing device having a wireless sensing module, wherein the data acquisition request is used to instruct the wireless sensing device to collect an environmental noise signal, process the environmental noise signal, obtain environmental noise data, and return the data;
[0008] If the environmental noise data is received, the first voice signal is recognized and processed based on the environmental noise data to obtain voice information.
[0009] Optionally, performing recognition processing on the first voice signal based on the environmental noise data to obtain voice information includes:
[0010] Based on the environmental noise data, filtering the noise signal in the first speech signal to obtain a speech signal to be recognized;
[0011] Performing speech recognition on the speech signal to be recognized to obtain the speech information.
[0012] Optionally, filtering the noise signal in the first speech signal based on the environmental noise data to obtain the speech signal to be recognized includes:
[0013] Obtaining the start time and end time of collecting the environmental noise signal;
[0014] The target voice signal between the collection start time and the collection end time in the first voice signal is filtered using the environmental noise data to obtain the voice signal to be recognized.
[0015] Optionally, the method further comprises:
[0016] Obtain device information of surrounding wireless sensing devices with wireless sensing modules;
[0017] Sending a connection establishment request to the wireless sensing device according to the device information;
[0018] If a connection establishment response from the wireless sensing device is received, a wireless communication link is established between the wireless sensing device and the wireless sensing device, so as to send a data acquisition request to the wireless sensing device having the wireless sensing module.
[0019] Optionally, obtaining device information of surrounding wireless sensing devices having wireless sensing modules includes:
[0020] Broadcasting a request to obtain device function information to surrounding smart devices;
[0021] If device function information is received from the smart device, determining whether the smart device includes a wireless sensing module based on the device function information;
[0022] If the smart device includes a wireless sensing module, it is determined that the smart device is a wireless sensing device, and device information of the wireless sensing device is obtained.
[0023] Optionally, the method further comprises:
[0024] Collecting a second voice signal in the surrounding environment, and preprocessing the second voice signal to obtain a third voice signal;
[0025] If the noise situation in the third voice signal does not meet the preset condition, the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module is executed.
[0026] Optionally, the method further comprises:
[0027] If the noise in the third voice signal meets the preset condition, performing voice recognition on the third voice signal;
[0028] If the voice recognition of the third voice signal fails, record the number of recognition failures;
[0029] If the number of identification failures is greater than a preset threshold, a step of sending a data acquisition request to a wireless sensing device having a wireless sensing module is executed.
[0030] In a second aspect, the present application provides a speech recognition device, which is applied to a speech recognition device, and the device includes:
[0031] A collection module, used for collecting a first voice signal in the surrounding environment;
[0032] A sending module, used to send a data acquisition request to a wireless sensing device having a wireless sensing module, wherein the data acquisition request is used to instruct the wireless sensing device to collect an environmental noise signal, process the environmental noise signal, obtain environmental noise data, and return the data;
[0033] The recognition module is used to, if the environmental noise data is received, perform recognition processing on the first voice signal based on the environmental noise data to obtain voice information.
[0034] Optionally, the identification module includes:
[0035] A filtering unit, configured to filter the noise signal in the first speech signal based on the environmental noise data to obtain a speech signal to be recognized;
[0036] The recognition unit is used to perform voice recognition on the voice signal to be recognized to obtain the voice information.
[0037] Optionally, the filtering unit comprises:
[0038] An acquisition subunit, used to acquire the acquisition start time and the acquisition end time of the environmental noise signal;
[0039] The filtering subunit is used to filter the target voice signal between the collection start time and the collection end time in the first voice signal by using the environmental noise data to obtain the voice signal to be recognized.
[0040] Optionally, the device further comprises:
[0041] An information acquisition module is used to acquire device information of surrounding wireless sensing devices having wireless sensing modules;
[0042] A request sending module, used for sending a connection establishment request to the wireless sensing device according to the device information;
[0043] The link establishment module is used to establish a wireless communication link between itself and the wireless sensing device if a connection establishment response from the wireless sensing device is received, so as to send a data acquisition request to the wireless sensing device having the wireless sensing module.
[0044] Optionally, the information acquisition module includes:
[0045] A broadcast unit, used to broadcast a request for obtaining device function information to surrounding smart devices;
[0046] a determining unit, configured to determine whether the smart device includes a wireless sensing module based on the device function information if device function information from the smart device is received;
[0047] The determination and acquisition unit is used to determine that the smart device is a wireless sensing device if the smart device includes a wireless sensing module, and acquire device information of the wireless sensing device.
[0048] Optionally, the device further comprises:
[0049] A signal acquisition module, used for acquiring a second voice signal in the surrounding environment, and preprocessing the second voice signal to obtain a third voice signal;
[0050] The first execution module is used to execute the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module if the noise situation in the third voice signal does not meet the preset condition.
[0051] Optionally, the device further comprises:
[0052] A speech recognition module, configured to perform speech recognition on the third speech signal if the noise in the third speech signal meets a preset condition;
[0053] A recording module, configured to record the number of recognition failures if the voice recognition of the third voice signal fails;
[0054] The second execution module is used to execute the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module if the number of identification failures is greater than a preset threshold.
[0055] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0056] Memory, used to store computer programs;
[0057] A processor is used to implement the speech recognition method described in any one of the first aspects of claims when executing a program stored in a memory.
[0058] In a fourth aspect, the present application provides a computer-readable storage medium, on which a program of a speech recognition method is stored. When the program of the speech recognition method is executed by a processor, the steps of the speech recognition method described in any one of the first aspects are implemented.
[0059] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0060] The embodiment of the present application obtains environmental noise data from a wireless sensing device with a wireless sensing module, and recognizes and processes the first voice signal based on the environmental noise data to obtain voice information, thereby utilizing the processing capability of the external wireless sensing device for environmental noise, assisting the voice recognition device in filtering out environmental noise interference in the collected voice signal, utilizing the hardware advantages of the wireless sensing device and the data interaction between the devices, making up for the hardware and functional shortcomings of the voice recognition device, making the voice recognition device equivalent to having the ability to process environmental noise, making the functions of the voice recognition device more complete, improving the accuracy of voice recognition, facilitating accurate recognition of voice commands, facilitating users to accurately control smart home devices, and facilitating user use. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0063] Figure 1 A flow chart of a speech recognition method provided in an embodiment of the present application;
[0064] Figure 2 A structural diagram of a speech recognition device provided in an embodiment of the present application;
[0065] Figure 3 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0067] In a home environment, the voice signals to be recognized often have noise interference problems, which causes smart home devices with voice recognition functions to be unable to accurately recognize voice commands, and thus users are unable to accurately control smart home devices, affecting user use.
[0068] An embodiment of the present application provides a speech recognition method, which is applied to a speech recognition device. The speech recognition device in the embodiment of the present application may refer to a smart home device or other smart device with a speech recognition function. The speech recognition device in the embodiment of the present application is not provided with a wireless sensing module or the wireless sensing module is faulty. The speech recognition device does not have other functional modules with an environmental noise signal processing function or has other functional modules with a simple environmental noise signal processing function but still cannot perform accurate speech recognition after simple environmental noise signal processing.
[0069] like Figure 1 As shown, the speech recognition method of the embodiment of the present application includes the following steps:
[0070] Step S101, collecting a first voice signal in the surrounding environment;
[0071] In this step, a voice input device such as a microphone may be used to collect voice signals in the surrounding environment to obtain a first voice signal.
[0072] Step S102, sending a data acquisition request to a wireless sensing device having a wireless sensing module;
[0073] In the embodiment of the present application, the data acquisition request is used to instruct the wireless sensing device to collect the environmental noise signal, process the environmental noise signal, obtain the environmental noise data, and return it;
[0074] A wireless sensing device may refer to a device with a wireless sensing module, and a wireless sensing module may refer to a WIFI sensing module. The WIFI sensing module can capture and analyze the waveform, frequency and other characteristics of noise through detailed detection of the environment, so as to accurately determine the degree and source of noise interference.
[0075] The WIFI sensing module can reduce or eliminate noise interference through signal filtering technology. This includes preprocessing the received WIFI signal and using filters to remove high-frequency noise or other unwanted signal components. By selecting the appropriate filter type and parameters, the impact of noise on signal quality can be effectively reduced. Therefore, the WIFI sensing module can use the received WIFI signal minus the signal obtained by filtering out high-frequency noise or other unwanted signal components, and finally obtain the ambient noise signal.
[0076] After receiving the data acquisition request, the wireless sensing device collects the environmental noise signal, processes the environmental noise signal, obtains the environmental noise data, and sends it to the speech recognition device.
[0077] Step S103: If the environmental noise data is received, the first voice signal is recognized and processed based on the environmental noise data to obtain voice information.
[0078] In this step, the environmental noise data can be used to filter out noise interference in the first speech signal, and then speech recognition is performed on the first speech signal to obtain speech information.
[0079] The embodiment of the present application obtains environmental noise data from a wireless sensing device with a wireless sensing module, and recognizes and processes the first voice signal based on the environmental noise data to obtain voice information, thereby utilizing the processing capability of the external wireless sensing device for environmental noise, assisting the voice recognition device in filtering out environmental noise interference in the collected voice signal, utilizing the hardware advantages of the wireless sensing device and the data interaction between the devices, making up for the hardware and functional shortcomings of the voice recognition device, making the voice recognition device equivalent to having the ability to process environmental noise, making the functions of the voice recognition device more complete, improving the accuracy of voice recognition, facilitating accurate recognition of voice commands, facilitating users to accurately control smart home devices, and facilitating user use.
[0080] In another embodiment of the present application, step S103 performs recognition processing on the first voice signal based on the environmental noise data to obtain voice information, including:
[0081] Step S201, filtering the noise signal in the first speech signal based on the environmental noise data to obtain a speech signal to be recognized;
[0082] In this step, the environmental noise data can be used to filter out noise interference in the first voice signal to obtain a voice signal to be recognized. Exemplarily, a noise reduction filtering algorithm can be used to filter out or reduce the environmental noise in the first voice signal according to the environmental noise data to obtain a voice signal to be recognized.
[0083] In one implementation of the present application, step S201 filters the noise signal in the first speech signal based on the environmental noise data to obtain the speech signal to be recognized, including:
[0084] Step S301, obtaining the collection start time and collection end time of the environmental noise signal;
[0085] Since there is a difference in the acquisition time of the ambient noise signal and the first voice signal, in order to ensure that the filtered noise signal is synchronized with the voice signal, it is necessary to time-align the ambient noise signal with the voice signal. Therefore, in this step, the acquisition start time and the acquisition end time of the ambient noise signal can be obtained.
[0086] Step S302: Using the environmental noise data, filter the target voice signal between the collection start time and the collection end time in the first voice signal to obtain the voice signal to be recognized.
[0087] In this step, according to the collection start time and the collection end time, voice segments with the same collection start time and collection end time can be selected from the first voice signal for filtering processing to obtain a voice signal to be recognized.
[0088] Step S202: performing speech recognition on the speech signal to be recognized to obtain the speech information.
[0089] The embodiment of the present application can further improve the accuracy of speech recognition by selecting speech segments within the same time window according to the time window of the ambient noise signal to filter out the ambient noise interference, thereby facilitating accurate recognition of voice commands, facilitating users to accurately control smart home devices, and facilitating user use.
[0090] In one embodiment of the present application, since the time window for collecting the ambient noise signal must be later than the time window for collecting the first voice signal, the voice segments in the first voice signal that are earlier than the time window can be processed with reference to the mean of the ambient noise data. If the result after processing is not ideal, the ambient noise data can be multiplied by different weights and then processed until the voice information can be recognized.
[0091] In another embodiment of the present application, the method further includes:
[0092] Step S401, obtaining device information of surrounding wireless sensing devices having wireless sensing modules;
[0093] In one embodiment of the present application, obtaining device information of wireless sensing devices with wireless sensing modules in the surrounding includes: broadcasting a request for obtaining device function information to surrounding smart devices; if device function information from the smart device is received, determining whether the smart device includes a wireless sensing module based on the device function information; if the smart device includes a wireless sensing module, determining that the smart device is a wireless sensing device, and obtaining device information of the wireless sensing device. If the smart device does not include a wireless sensing module, the device information of the smart device is no longer obtained.
[0094] In this implementation, wireless sensing devices including wireless sensing modules may be screened in the surroundings, and then device information of the wireless sensing devices may be acquired for subsequent establishment of wireless communication links.
[0095] Step S402, sending a connection establishment request to the wireless sensing device according to the device information;
[0096] Step S403: if a connection establishment response from the wireless sensing device is received, a wireless communication link is established between the wireless sensing device and the wireless sensing device, so as to send a data acquisition request to the wireless sensing device having the wireless sensing module.
[0097] The embodiments of the present application can screen wireless sensing devices having wireless sensing modules and establish wireless communication links with the wireless sensing devices, which can facilitate the acquisition of environmental noise data from the wireless sensing devices.
[0098] In another embodiment of the present application, the method further includes:
[0099] Step S501, collecting a second voice signal in the surrounding environment, and preprocessing the second voice signal to obtain a third voice signal;
[0100] In an embodiment of the present application, preprocessing is the preprocessing process of the voice signal, including: voice signal amplification, anti-aliasing filtering, automatic gain control, analog-to-digital conversion, noise elimination, endpoint detection, etc. The second voice signal is preprocessed to obtain a third voice signal.
[0101] Step S502: If the noise condition in the third voice signal does not meet the preset condition, execute the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module.
[0102] After the above preprocessing, if there are still too many noises in the third voice signal, the assistance of the external wireless sensing module can be requested to send a data acquisition request for the environmental noise data to the wireless sensing device.
[0103] Step S503, if the noise in the third voice signal meets the preset condition, perform voice recognition on the third voice signal;
[0104] After the above preprocessing, if the noise level in the third speech signal has reached a normal standard, speech recognition can be started on the third speech signal.
[0105] Step S504, if the voice recognition of the third voice signal fails, the number of recognition failures is recorded;
[0106] Step S505: if the number of identification failures is greater than a preset threshold, executing the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module.
[0107] If multiple voice recognitions fail, it is possible that noise interference still exists in the third voice signal. In this case, the assistance of an external wireless sensing module may be requested to send a data acquisition request for environmental noise data to the wireless sensing device.
[0108] The embodiment of the present application can send a data acquisition request to an external wireless sensing module only when the noise situation in the third voice signal does not meet the preset conditions, or when multiple voice recognitions still cannot obtain a voice recognition result. When the noise situation in the third voice signal meets the preset conditions and the voice recognition is successful, there is no need to send a data acquisition request to the external wireless sensing module, thereby saving system resources of the voice recognition device and the wireless sensing device.
[0109] In another embodiment of the present application, a speech recognition device is also provided, which is applied to a speech recognition device, such as Figure 2 As shown, the device comprises:
[0110] A collection module 11, used for collecting a first voice signal in the surrounding environment;
[0111] A voice input device such as a microphone may be used to collect voice signals in the surrounding environment to obtain a first voice signal.
[0112] The sending module 12 is used to send a data acquisition request to a wireless sensing device having a wireless sensing module, wherein the data acquisition request is used to instruct the wireless sensing device to collect an environmental noise signal, process the environmental noise signal, obtain environmental noise data, and return the data;
[0113] In the embodiment of the present application, the data acquisition request is used to instruct the wireless sensing device to collect the environmental noise signal, process the environmental noise signal, obtain the environmental noise data, and return it;
[0114] A wireless sensing device may refer to a device with a wireless sensing module, and a wireless sensing module may refer to a WIFI sensing module. The WIFI sensing module can capture and analyze the waveform, frequency and other characteristics of noise through detailed detection of the environment, so as to accurately determine the degree and source of noise interference.
[0115] The WIFI sensing module can reduce or eliminate noise interference through signal filtering technology. This includes preprocessing the received WIFI signal and using filters to remove high-frequency noise or other unwanted signal components. By selecting the appropriate filter type and parameters, the impact of noise on signal quality can be effectively reduced. Therefore, the WIFI sensing module can use the received WIFI signal minus the signal obtained by filtering out high-frequency noise or other unwanted signal components, and finally obtain the ambient noise signal.
[0116] After receiving the data acquisition request, the wireless sensing device collects the environmental noise signal, processes the environmental noise signal, obtains the environmental noise data, and sends it to the speech recognition device.
[0117] The recognition module 13 is configured to, upon receiving the environmental noise data, perform recognition processing on the first voice signal based on the environmental noise data to obtain voice information.
[0118] In this step, the environmental noise data can be used to filter out noise interference in the first speech signal, and then speech recognition is performed on the first speech signal to obtain speech information.
[0119] The embodiment of the present application obtains environmental noise data from a wireless sensing device with a wireless sensing module, and recognizes and processes the first voice signal based on the environmental noise data to obtain voice information, thereby utilizing the processing capability of the external wireless sensing device for environmental noise, assisting the voice recognition device in filtering out environmental noise interference in the collected voice signal, utilizing the hardware advantages of the wireless sensing device and the data interaction between the devices, making up for the hardware and functional shortcomings of the voice recognition device, making the voice recognition device equivalent to having the ability to process environmental noise, making the functions of the voice recognition device more complete, improving the accuracy of voice recognition, facilitating accurate recognition of voice commands, facilitating users to accurately control smart home devices, and facilitating user use.
[0120] Optionally, the identification module includes:
[0121] A filtering unit, configured to filter the noise signal in the first speech signal based on the environmental noise data to obtain a speech signal to be recognized;
[0122] The environmental noise data can be used to filter out noise interference in the first voice signal to obtain a voice signal to be recognized. Exemplarily, a noise reduction filtering algorithm can be used to filter out or reduce the environmental noise in the first voice signal according to the environmental noise data to obtain a voice signal to be recognized.
[0123] The recognition unit is used to perform voice recognition on the voice signal to be recognized to obtain the voice information.
[0124] The embodiment of the present application can further improve the accuracy of speech recognition by selecting speech segments within the same time window according to the time window of the ambient noise signal to filter out the ambient noise interference, thereby facilitating accurate recognition of voice commands, facilitating users to accurately control smart home devices, and facilitating user use.
[0125] In one embodiment of the present application, since the time window for collecting the ambient noise signal must be later than the time window for collecting the first voice signal, the voice segments in the first voice signal that are earlier than the time window can be processed with reference to the mean of the ambient noise data. If the result after processing is not ideal, the ambient noise data can be multiplied by different weights and then processed until the voice information can be recognized.
[0126] Optionally, the filtering unit comprises:
[0127] An acquisition subunit, used to acquire the acquisition start time and the acquisition end time of the environmental noise signal;
[0128] Since there is a difference in the acquisition time of the ambient noise signal and the first voice signal, in order to ensure that the filtered noise signal is synchronized with the voice signal, it is necessary to time-align the ambient noise signal with the voice signal. Therefore, in this step, the acquisition start time and the acquisition end time of the ambient noise signal can be obtained.
[0129] The filtering subunit is used to filter the target voice signal between the collection start time and the collection end time in the first voice signal by using the environmental noise data to obtain the voice signal to be recognized.
[0130] According to the collection start time and the collection end time, voice segments with the same collection start time and collection end time can be selected from the first voice signal for filtering processing to obtain a voice signal to be recognized.
[0131] Optionally, the device further comprises:
[0132] An information acquisition module is used to acquire device information of surrounding wireless sensing devices having wireless sensing modules;
[0133] In one embodiment of the present application, obtaining device information of wireless sensing devices with wireless sensing modules in the surrounding includes: broadcasting a request for obtaining device function information to surrounding smart devices; if device function information from the smart device is received, determining whether the smart device includes a wireless sensing module based on the device function information; if the smart device includes a wireless sensing module, determining that the smart device is a wireless sensing device, and obtaining device information of the wireless sensing device. If the smart device does not include a wireless sensing module, the device information of the smart device is no longer obtained.
[0134] In this implementation, wireless sensing devices including wireless sensing modules may be screened in the surroundings, and then device information of the wireless sensing devices may be acquired for subsequent establishment of wireless communication links.
[0135] A request sending module, used for sending a connection establishment request to the wireless sensing device according to the device information;
[0136] The link establishment module is used to establish a wireless communication link between itself and the wireless sensing device if a connection establishment response from the wireless sensing device is received, so as to send a data acquisition request to the wireless sensing device having the wireless sensing module.
[0137] The embodiments of the present application can screen wireless sensing devices having wireless sensing modules and establish wireless communication links with the wireless sensing devices, which can facilitate the acquisition of environmental noise data from the wireless sensing devices.
[0138] Optionally, the information acquisition module includes:
[0139] A broadcast unit, used to broadcast a request for obtaining device function information to surrounding smart devices;
[0140] a determining unit, configured to determine whether the smart device includes a wireless sensing module based on the device function information if device function information from the smart device is received;
[0141] The determination and acquisition unit is used to determine that the smart device is a wireless sensing device if the smart device includes a wireless sensing module, and acquire device information of the wireless sensing device.
[0142] Optionally, the device further comprises:
[0143] A signal acquisition module, used for acquiring a second voice signal in the surrounding environment, and preprocessing the second voice signal to obtain a third voice signal;
[0144] In an embodiment of the present application, preprocessing is the preprocessing process of the voice signal, including: voice signal amplification, anti-aliasing filtering, automatic gain control, analog-to-digital conversion, noise elimination, endpoint detection, etc. The second voice signal is preprocessed to obtain a third voice signal.
[0145] The first execution module is used to execute the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module if the noise situation in the third voice signal does not meet the preset condition.
[0146] After the above preprocessing, if there are still too many noises in the third voice signal, the assistance of the external wireless sensing module can be requested to send a data acquisition request for the environmental noise data to the wireless sensing device.
[0147] Optionally, the device further comprises:
[0148] A speech recognition module, configured to perform speech recognition on the third speech signal if the noise in the third speech signal meets a preset condition;
[0149] After the above preprocessing, if the noise level in the third speech signal has reached a normal standard, speech recognition can be started on the third speech signal.
[0150] A recording module, configured to record the number of recognition failures if the voice recognition of the third voice signal fails;
[0151] The second execution module is used to execute the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module if the number of identification failures is greater than a preset threshold.
[0152] If multiple voice recognitions fail, it is possible that noise interference still exists in the third voice signal. In this case, the assistance of an external wireless sensing module may be requested to send a data acquisition request for environmental noise data to the wireless sensing device.
[0153] The embodiment of the present application can send a data acquisition request to an external wireless sensing module only when the noise situation in the third voice signal does not meet the preset conditions, or when multiple voice recognitions still cannot obtain a voice recognition result. When the noise situation in the third voice signal meets the preset conditions and the voice recognition is successful, there is no need to send a data acquisition request to the external wireless sensing module, thereby saving system resources of the voice recognition device and the wireless sensing device.
[0154] In another embodiment of the present application, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0155] Memory, used to store computer programs;
[0156] The processor is used to implement the speech recognition method described in any of the above method embodiments when executing the program stored in the memory.
[0157] In the electronic device provided by the embodiment of the present invention, the processor realizes the environmental noise data obtained from the wireless sensing device with the wireless sensing module by executing the program stored in the memory, and recognizes and processes the first voice signal based on the environmental noise data to obtain voice information, thereby utilizing the processing capability of the external wireless sensing device for environmental noise, assisting the voice recognition device in filtering out the environmental noise interference in the collected voice signal, utilizing the hardware advantages of the wireless sensing device and the data interaction between the devices, making up for the hardware and functional shortcomings of the voice recognition device, making the voice recognition device equivalent to having the environmental noise processing capability, making the function of the voice recognition device more complete, improving the accuracy of voice recognition, facilitating the accurate recognition of voice commands, facilitating the user to accurately control the smart home device, and facilitating the user to use.
[0158] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0159] The communication interface 1120 is used for communication between the above electronic device and other devices.
[0160] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0161] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0162] In another embodiment of the present application, a computer-readable storage medium is provided, on which a program of a speech recognition method is stored. When the program of the speech recognition method is executed by a processor, the steps of the speech recognition method described in any of the aforementioned method embodiments are implemented.
[0163] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0164] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A speech recognition method, characterized in that: Applied to a speech recognition device, the method comprises: Collecting a first voice signal in a surrounding environment; Sending a data acquisition request to a wireless sensing device having a wireless sensing module, wherein the data acquisition request is used to instruct the wireless sensing device to collect an environmental noise signal, process the environmental noise signal, obtain environmental noise data, and return the data; If the environmental noise data is received, the first voice signal is recognized and processed based on the environmental noise data to obtain voice information.
2. The speech recognition method according to claim 1, characterized in that: The first voice signal is recognized and processed based on the environmental noise data to obtain voice information, including: Based on the environmental noise data, filtering the noise signal in the first speech signal to obtain a speech signal to be recognized; Performing speech recognition on the speech signal to be recognized to obtain the speech information.
3. The speech recognition method according to claim 2, characterized in that: Based on the environmental noise data, filtering the noise signal in the first speech signal to obtain a speech signal to be recognized includes: Obtaining the start time and end time of collecting the environmental noise signal; The target voice signal between the collection start time and the collection end time in the first voice signal is filtered using the environmental noise data to obtain the voice signal to be recognized.
4. The speech recognition method according to claim 1, characterized in that: The method further comprises: Obtain device information of surrounding wireless sensing devices with wireless sensing modules; Sending a connection establishment request to the wireless sensing device according to the device information; If a connection establishment response from the wireless sensing device is received, a wireless communication link is established between the wireless sensing device and the wireless sensing device, so as to send a data acquisition request to the wireless sensing device having the wireless sensing module.
5. The speech recognition method according to claim 4, characterized in that: Get device information of surrounding wireless sensing devices with wireless sensing modules, including: Broadcasting a request to obtain device function information to surrounding smart devices; If device function information is received from the smart device, determining whether the smart device includes a wireless sensing module based on the device function information; If the smart device includes a wireless sensing module, it is determined that the smart device is a wireless sensing device, and device information of the wireless sensing device is obtained.
6. The speech recognition method according to claim 1, characterized in that: The method further comprises: Collecting a second voice signal in the surrounding environment, and preprocessing the second voice signal to obtain a third voice signal; If the noise situation in the third voice signal does not meet the preset condition, the step of sending a data acquisition request to a wireless sensing device having a wireless sensing module is executed.
7. The speech recognition method according to claim 6, characterized in that: The method further comprises: If the noise in the third voice signal meets the preset condition, performing voice recognition on the third voice signal; If the voice recognition of the third voice signal fails, record the number of recognition failures; If the number of identification failures is greater than a preset threshold, a step of sending a data acquisition request to a wireless sensing device having a wireless sensing module is executed.
8. A speech recognition device, characterized in that: Applied to a speech recognition device, the device comprises: A collection module, used for collecting a first voice signal in the surrounding environment; A sending module, used to send a data acquisition request to a wireless sensing device having a wireless sensing module, wherein the data acquisition request is used to instruct the wireless sensing device to collect an environmental noise signal, process the environmental noise signal, obtain environmental noise data, and return the data; The recognition module is used to, if the environmental noise data is received, perform recognition processing on the first voice signal based on the environmental noise data to obtain voice information.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the speech recognition method described in any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program of the speech recognition method, and when the program of the speech recognition method is executed by the processor, the steps of the speech recognition method described in any one of claims 1 to 7 are implemented.
