Multi-terminal smart home response method, device, equipment and storage medium

By analyzing and identifying voice data in smart homes, determining the device with the loudest sound intensity and sending instructions, it solves the problem of multiple smart voice devices responding at the same time and achieves coordinated control and response accuracy of voice instructions.

CN113380257BActive Publication Date: 2024-09-24SHENZHEN TONGXINGZHE TECH
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202110638902.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-08
Publication Date
2024-09-24
Estimated Expiration
2041-06-08

AI Technical Summary

Technical Problem

In a smart home scenario, multiple voice assistant devices may respond at the same time or perform incorrect operations, resulting in chaotic responses and inability to effectively coordinate multiple smart voice devices.

Method used

By acquiring the voice data of all smart homes, analyzing the sound intensity to determine whether it exceeds the preset threshold, perform speech recognition processing, determine the marked voice data, and send wake-up and execution instructions to the smart home with the highest sound intensity to coordinate the voice response.

Benefits of technology

It realizes the coordinated control of voice commands in smart homes, avoids response confusion, and ensures the accurate execution of voice commands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113380257B
    Figure CN113380257B
Patent Text Reader

Abstract

The present invention relates to the field of electrical appliance response, and discloses a multi-terminal smart home response method, device, equipment and storage medium. The multi-terminal smart home response method is applied to a distributed smart home set, and includes the steps of: obtaining voice data collected by all smart homes in the smart home set to generate a voice data set; analyzing the sound intensity of the voice data in the voice data set in turn to determine whether the sound intensity exceeds a preset intensity threshold; performing a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition string; determining whether there is a preset wake-up word in the recognition string; determining the voice data as marked voice data; performing comparative analysis on the sound intensity to obtain marked voice data, and performing a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data; sending the preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrical appliance response, and in particular to a multi-terminal smart home response method, device, equipment and storage medium. Background Art

[0002] At present, Internet technology is penetrating into various fields, and people are constantly improving the application process of Internet technology so that Internet technology can better adapt to the application of various fields. In the process of using Internet technology, although the underlying logic does not change often, rigid use of technology will not achieve good results. In the case of smart homes, the application of intelligent voice has been widely popularized.

[0003] However, in the field of smart homes, related voice assistant devices are distributed in various rooms. When users use voice wake-up words to wake up the device, since the sound cannot be isolated and propagated, multiple devices may respond at the same time, or the responses may be confusing and incorrect operations may be performed. This requires a technology that can coordinate multiple intelligent voices. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem of chaotic execution of voice recognition in multiple smart home scenarios.

[0005] A first aspect of the present invention provides a multi-terminal smart home response method, which is applied to a distributed smart home set and includes the steps of:

[0006] Acquire voice data collected by all smart homes in the smart home set to generate a voice data set;

[0007] Analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0008] If the intensity exceeds the threshold, performing a first speech recognition process on the speech data corresponding to the sound intensity to obtain a recognition character string;

[0009] Determining whether there is a preset wake-up word in the recognition character string;

[0010] If so, determining the voice data as marked voice data;

[0011] Comparing and analyzing the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and performing a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0012] Sending a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data.

[0013] Optionally, in a first implementation of the first aspect of the present invention, sequentially analyzing the sound intensity of the speech data in the speech data set to determine whether the sound intensity exceeds a preset intensity threshold comprises:

[0014] Extracting the voice data in the voice data set in sequence according to the number of the smart home corresponding to the voice data set;

[0015] Counting all the sound signal amplitudes of the voice data, and performing root mean square processing on all the sound signal amplitudes to obtain the sound intensity corresponding to the voice data;

[0016] Determine whether the sound enhancement exceeds a preset intensity threshold.

[0017] Optionally, in a second implementation of the first aspect of the present invention, performing a first speech recognition process on the speech data corresponding to the sound intensity to obtain a recognition character string includes:

[0018] Matrixing the voice data corresponding to the sound intensity to generate a voice matrix;

[0019] Based on a preset first step length, multiplying the speech matrix by a preset first convolution vector to obtain a first processing vector;

[0020] Based on a preset second step length, multiplying the first processing vector by a preset second convolution vector to obtain a second processing vector;

[0021] Multiplying the second processing vector by a preset weight matrix to obtain a result vector;

[0022] The result vector is activated to obtain a recognition character string.

[0023] Optionally, in a third implementation of the first aspect of the present invention, performing a first speech recognition process on the speech data corresponding to the sound intensity to obtain a recognition character string further includes:

[0024] Connecting to a preset cloud server, transmitting the voice data corresponding to the sound intensity to the cloud server for first voice recognition processing to obtain a recognition character string.

[0025] Optionally, in a fourth implementation of the first aspect of the present invention, determining whether a preset wake-up word exists in the recognition character string includes:

[0026] Based on a regular expression, the recognition character string is matched with a wake-up word in a preset wake-up word table to determine whether there is a matching wake-up word in the wake-up word table.

[0027] Optionally, in a fifth implementation of the first aspect of the present invention, the comparing and analyzing the sound intensities of all the marked speech data to obtain the marked speech data with the largest sound intensity comprises:

[0028] Randomly select one of the sound intensities of all the marked speech data, and sort all the unselected sound intensities to obtain an intensity analysis sequence number;

[0029] According to the intensity analysis sequence number, the selected sound intensity is compared with the unselected sound intensity, the originally selected sound intensity is eliminated, and the sound intensity with a larger comparison result is determined as the newly selected sound intensity. The comparison is cyclically performed until all intensity analysis sequences are compared, and the marked voice data with the largest sound intensity is obtained.

[0030] Optionally, in a sixth implementation of the first aspect of the present invention, the acquiring voice data collected by all smart homes in the smart home set to generate a voice data set includes:

[0031] Establishing a connection channel with all smart homes in the smart home set;

[0032] Receive voice signals from all the smart homes, capture non-zero voice signals, and generate a voice data set.

[0033] A second aspect of the present invention provides a multi-terminal smart home response device, comprising:

[0034] An acquisition module, used to acquire voice data collected by all smart homes in the smart home set and generate a voice data set;

[0035] An intensity analysis module, used to analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0036] A first recognition module, configured to perform a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition character string if the intensity exceeds a threshold value;

[0037] A judgment module, used to judge whether there is a preset wake-up word in the recognition character string;

[0038] a marking module, configured to determine the voice data as marked voice data if present;

[0039] The second recognition module is used to compare and analyze the sound intensity of all the marked voice data to obtain the marked voice data with the largest sound intensity, and to perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0040] The wake-up module is used to send a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data.

[0041] The third aspect of the present invention provides a response device for a multi-terminal smart home, comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected through a line; the at least one processor calling the instructions in the memory so that the response device for the multi-terminal smart home executes the above-mentioned response method for the multi-terminal smart home.

[0042] A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, the computer executes the above-mentioned multi-terminal smart home response method.

[0043] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a schematic diagram of a first embodiment of a multi-terminal smart home response method in an embodiment of the present invention;

[0045] Figure 2 Schematic diagram of a second embodiment of a multi-terminal smart home response method in an embodiment of the present invention;

[0046] Figure 3 Schematic diagram of a third embodiment of a multi-terminal smart home response method in an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of an embodiment of a multi-terminal smart home response device in an embodiment of the present invention;

[0048] Figure 5 It is a schematic diagram of another embodiment of a response device of a multi-terminal smart home in an embodiment of the present invention;

[0049] Figure 6 Schematic diagram of an embodiment of a multi-terminal smart home response device in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] Embodiments of the present invention provide a multi-terminal smart home response method, device, equipment and storage medium.

[0051] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the multi-terminal smart home response method in the embodiment of the present invention is applied to a distributed smart home set, comprising the steps of:

[0053] 101. Acquire voice data collected by all smart homes in the smart home set to generate a voice data set;

[0054] 102. Analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0055] 103. If the intensity exceeds the threshold, performing a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition character string;

[0056] 104. Determine whether there is a preset wake-up word in the recognition character string;

[0057] 105. If so, determine the voice data as marked voice data;

[0058] 106. Compare and analyze the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0059] 107. Send a preset wake-up instruction and an execution instruction to the smart home corresponding to the marked voice data.

[0060] In the embodiments 101-107, the smart home is distributed throughout the house, and the smart homes in different rooms are interconnected. Voice data is obtained in any corner of the house, and the intensity of the obtained voice data is used to determine whether voice recognition is to be performed. When judging the intensity, the root mean square of the sound signal amplitude is mainly calculated. According to the data obtained by the root mean square, the intensity data is compared with the intensity threshold. Only when it is greater than the intensity threshold can the recognition continue. In the recognition process, two-step judgment is required. If it is a one-step judgment, the response time will be too long because the model training of the one-step judgment is too large. After the improvement, the semantics of the speech is first recognized, and the data features of a segment are continuously extracted based on the training process of the time-delay neural network TDNN. After obtaining the data that can be analyzed, it is multiplied with the weight matrix, and finally the softmax activation function is used to obtain the string. Then the recognized string is matched with the wake-up word table that has been set. The matching means uses the regular matching method. If the wake-up word is successfully matched, the voice data corresponding to the matched string is determined as the voice data that can be recognized in the second segment. Before using the second voice recognition, the size is obtained by transfer comparison. Since the number of homes is not large, the marked voice data with the maximum sound intensity can be obtained by transfer comparison. When performing the second voice recognition process, the time-delay neural network TDNN model is also used for recognition. It can also be uploaded to the cloud server through the cloud through an external interface, and the cloud server performs recognition processing, and then receives the recognition result transmitted back by the cloud server, and generates an execution instruction based on the recognition result. Then the wake-up instruction is used as the first instruction and the execution instruction is used as the second data instruction, and they are combined and sent to the smart home corresponding to the specified maximum voice intensity to complete the entire voice response process.

[0061] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion.

[0062] See also Figure 2 , a second embodiment of the multi-terminal smart home response method in an embodiment of the present invention includes:

[0063] 201. Acquire voice data collected by all smart homes in a smart home set to generate a voice data set;

[0064] This embodiment is similar to the first embodiment and will not be described in detail here.

[0065] 202. Extracting speech data from the speech data set in sequence according to the numbers of the smart homes corresponding to the speech data sets;

[0066] 203. Count all sound signal amplitudes of the voice data, and perform root mean square processing on all sound signal amplitudes to obtain sound intensity corresponding to the voice data;

[0067] 204. Determine whether the sound enhancement exceeds a preset intensity threshold;

[0068] Embodiments 202-204 are preferred solutions for step 102. The smart home serial numbers are arranged according to certain rules. For example, the first characters are sorted first, numbers are before letters, and letter data are sorted normally. The arrangement order of AAds562, 69jhjd, and 166dd is: 166dd, 69jhjd, and AAds562. After being arranged in order, the amplitudes of the collected voice data corresponding to 166dd, 69jhjd, and AAds562 are counted, and the root mean square calculation method is adopted to obtain a sound intensity value of 36 decibels, and the intensity threshold is 30 decibels, which is considered to exceed the intensity threshold.

[0069] 205. If the intensity threshold is exceeded, the voice data corresponding to the sound intensity is matrixed to generate a voice matrix;

[0070] 206. Based on a preset first step length, multiply the speech matrix by a preset first convolution vector to obtain a first processing vector;

[0071] 207. Based on a preset second step length, multiply the first processing vector by a preset second convolution vector to obtain a second processing vector;

[0072] 208. Multiply the second processing vector by the preset weight matrix to obtain a result vector;

[0073] 209. Activate the result vector to obtain a recognition string;

[0074] Embodiments 205-209 are refinements of step 103, specifically describing how the time-delay neural network TDNN processes speech data. The waveform of the speech data is matrixed, image analysis is performed on the existing data, 1 is assigned to the position where the signal exists, and 0 is assigned to the position where no signal exists, to generate a speech matrix. The speech matrix is ​​convolved step by step with the first convolution vector, the step size can be 3, 6, 9, and the convolution length of the convolution vector can be 3, 6, 9, etc., and convolution is performed one-to-one to generate a first processing vector.

[0075] The first processing vector is multiplied by the second convolution vector. The second step size can be 1. According to the trained model, the second processing vector is generated by convolution. The second processing vector is multiplied by the weight matrix. Finally, a 1*n result vector is obtained. The softmax function is used for activation to obtain the data of the recognized string.

[0076] 210. Based on a regular expression, match the recognition string with a wake-up word in a preset wake-up word table to determine whether there is a matching wake-up word in the wake-up word table;

[0077] This embodiment is a preferred solution of step 104, which performs a regular expression match between the wake-up word in the preset wake-up word table and the recognition string. If there is no match, 0 is returned, and if there is a match, 1 is returned.

[0078] 211. If present, determining the voice data as marked voice data;

[0079] This implementation is similar to the first embodiment and will not be described in detail here.

[0080] 212. Randomly select one sound intensity from all the sound intensities of the marked speech data, and sort all the unselected sound intensities to obtain an intensity analysis sequence number;

[0081] 213. According to the intensity analysis sequence number, the selected sound intensity is compared with the unselected sound intensity, the original selected sound intensity is discarded, and the sound intensity with a larger comparison result is determined as the newly selected sound intensity, and the comparison is cyclically performed until all the intensity analysis sequences are compared, so as to obtain the marked voice data with the largest sound intensity;

[0082] Embodiments 212-213 are the priority scheme of "comparing and analyzing the sound intensities of all marked voice data to obtain the marked voice data with the largest sound intensity" in step 106. One of the n sound intensities is randomly selected, and there are n-1 sound intensities. The remaining sound intensities are compared and sorted. After comparing the size of each intensity, the larger sound intensity is selected to continue to compare the size according to the order of the intensity analysis sequence number. After the entire intensity analysis sequence number is completed, the maximum sound intensity is obtained, and the marked voice data corresponding to the maximum sound intensity is found.

[0083] 214. Perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0084] 215. Send a preset wake-up instruction and an execution instruction to the smart home corresponding to the marked voice data.

[0085] The implementation of 214-215 is similar to the first embodiment and will not be repeated here.

[0086] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion.

[0087] See also Figure 3 , a third embodiment of the multi-terminal smart home response method in the embodiment of the present invention includes:

[0088] 301. Establishing a connection channel with all smart homes in the smart home collection;

[0089] 302. Receive voice signals from all smart homes, capture non-zero voice signals, and generate a voice data set;

[0090] Embodiment 301-302 is a preferred solution of step 101. A channel is first established, and all non-zero voice signals are captured and collected. If there is no signal, no capture is performed. A minimum signal value can also be set. For example, signals within 5 decibels are considered zero signals, and signals above 5 decibels are captured. The non-zero voice signals of each smart home are collected as a voice data set.

[0091] 303. Analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0092] This implementation is similar to the first embodiment and will not be described in detail here.

[0093] 304. If the intensity exceeds the threshold, connect to a preset cloud server and transmit the voice data corresponding to the sound intensity to the cloud server for first voice recognition processing to obtain a recognition string;

[0094] Embodiment 304 is a preferred solution of step 103, that is, speech recognition is not performed locally, but data is transferred to a third party using an API interface, and the third-party server performs recognition, and then transmits the recognition result back via the Internet, and determines the character string in the recognition result as the character string that needs to be processed next.

[0095] 305. Determine whether there is a preset wake-up word in the recognition character string;

[0096] 306. If so, determining the voice data as marked voice data;

[0097] 307. Compare and analyze the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0098] 308. Send a preset wake-up instruction and an execution instruction to the smart home corresponding to the marked voice data.

[0099] The implementation of 305-308 is similar to the first embodiment and will not be described in detail here.

[0100] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion.

[0101] The above describes the response method of the multi-terminal smart home in the embodiment of the present invention. The following describes the response device of the multi-terminal smart home in the embodiment of the present invention. Figure 4 In one embodiment of the present invention, a multi-terminal smart home response device includes:

[0102] An acquisition module 401 is used to acquire voice data collected by all smart homes in the smart home set to generate a voice data set;

[0103] The intensity analysis module 402 is used to analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0104] A first recognition module 403 is used to perform a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition character string if the intensity exceeds a threshold value;

[0105] A determination module 404 is used to determine whether there is a preset wake-up word in the recognition character string;

[0106] A marking module 405, configured to determine the voice data as marked voice data if it exists;

[0107] The second recognition module 406 is used to compare and analyze the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and to perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0108] The wake-up module 407 is used to send a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data.

[0109] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion.

[0110] See also Figure 5 Another embodiment of the multi-terminal smart home response device in the embodiment of the present invention includes:

[0111] An acquisition module 401 is used to acquire voice data collected by all smart homes in the smart home set to generate a voice data set;

[0112] The intensity analysis module 402 is used to analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold;

[0113] A first recognition module 403 is used to perform a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition character string if the intensity exceeds a threshold value;

[0114] A determination module 404 is used to determine whether there is a preset wake-up word in the recognition character string;

[0115] A marking module 405, configured to determine the voice data as marked voice data if it exists;

[0116] The second recognition module 406 is used to compare and analyze the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and to perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data;

[0117] The wake-up module 407 is used to send a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data.

[0118] Wherein, the strength analysis module 402 includes:

[0119] An extraction unit 4021 is used to extract the voice data in the voice data set in sequence according to the number of the smart home corresponding to the voice data set;

[0120] The calculation unit 4022 is used to count all the sound signal amplitudes of the voice data and perform root mean square processing on all the sound signal amplitudes to obtain the sound intensity corresponding to the voice data;

[0121] The judgment unit 4023 is used to judge whether the sound enhancement exceeds a preset intensity threshold.

[0122] The first identification module 403 is specifically used for:

[0123] Matrixing the voice data corresponding to the sound intensity to generate a voice matrix;

[0124] Based on a preset first step length, multiplying the speech matrix by a preset first convolution vector to obtain a first processing vector;

[0125] Based on a preset second step length, multiplying the first processing vector by a preset second convolution vector to obtain a second processing vector;

[0126] Multiplying the second processing vector by a preset weight matrix to obtain a result vector;

[0127] The result vector is activated to obtain a recognition character string.

[0128] The first identification module 403 may also be specifically used for:

[0129] Connecting to a preset cloud server, transmitting the voice data corresponding to the sound intensity to the cloud server for first voice recognition processing to obtain a recognition character string.

[0130] The determining module 404 is specifically used for:

[0131] Based on a regular expression, the recognition character string is matched with a wake-up word in a preset wake-up word table to determine whether there is a matching wake-up word in the wake-up word table.

[0132] The second identification module 406 is specifically used for:

[0133] Randomly select one of the sound intensities of all the marked speech data, and sort all the unselected sound intensities to obtain an intensity analysis sequence number;

[0134] According to the intensity analysis sequence number, the selected sound intensity is compared with the unselected sound intensity, the originally selected sound intensity is eliminated, and the sound intensity with a larger comparison result is determined as the newly selected sound intensity. The comparison is cyclically performed until all intensity analysis sequences are compared, and the marked voice data with the largest sound intensity is obtained.

[0135] The acquisition module 401 is specifically used for:

[0136] Establishing a connection channel with all smart homes in the smart home set;

[0137] Receive voice signals from all the smart homes, capture non-zero voice signals, and generate a voice data set.

[0138] In an embodiment of the present invention, by acquiring the voice recognition data of each smart home, the strength of the voice data of all smart homes is analyzed and judged, and finally the smart home with the largest voice data strength is obtained, and the smart home is awakened and commanded, thereby realizing coordinated control of the voice commands of the smart homes and avoiding response confusion.

[0139] above Figure 4 and Figure 5The response device of the multi-terminal smart home in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The response device of the multi-terminal smart home in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0140] Figure 6 : is a structural diagram of a response device of a multi-terminal smart home provided by an embodiment of the present invention. The response device 600 of the multi-terminal smart home may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 533 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the response device 600 of the multi-terminal smart home. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the response device 600 of the multi-terminal smart home.

[0141] The multi-terminal smart home-based response device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 6 The structure of the response device of the multi-terminal smart home shown does not constitute a limitation on the response device based on the multi-terminal smart home, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0142] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the multi-terminal smart home response method.

[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0144] If the integrated 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 technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0145] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those 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 thereof may be replaced by equivalents. However, these 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 invention.

Claims

1. A multi-terminal smart home response method, the multi-terminal smart home response method is applied to a distributed smart home set, comprising the steps of: Acquire voice data collected by all smart homes in the smart home set to generate a voice data set; Analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold; If the intensity exceeds the threshold, performing a first speech recognition process on the speech data corresponding to the sound intensity to obtain a recognition character string; Determining whether there is a preset wake-up word in the recognition character string; If so, determining the voice data as marked voice data; Comparing and analyzing the sound intensities of all the marked voice data to obtain the marked voice data with the largest sound intensity, and performing a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data; Sending a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data; The step of sequentially analyzing the sound intensity of the speech data in the speech data set to determine whether the sound intensity exceeds a preset intensity threshold comprises: Extracting the voice data in the voice data set in sequence according to the number of the smart home corresponding to the voice data set; Counting all the sound signal amplitudes of the voice data, and performing root mean square processing on all the sound signal amplitudes to obtain the sound intensity corresponding to the voice data; Determining whether the sound intensity exceeds a preset intensity threshold; The process of comparing and analyzing the sound intensities of all the marked speech data to obtain the marked speech data with the largest sound intensity includes: Randomly select one of the sound intensities of all the marked speech data, and sort all the unselected sound intensities to obtain an intensity analysis sequence number; According to the intensity analysis sequence number, the selected sound intensity is compared with the unselected sound intensity, the originally selected sound intensity is eliminated, and the sound intensity with a larger comparison result is determined as the newly selected sound intensity. The comparison is cyclically performed until all intensity analysis sequences are compared, and the marked voice data with the largest sound intensity is obtained.

2. The multi-terminal smart home response method according to claim 1, characterized in that: The performing of the first speech recognition process on the speech data corresponding to the sound intensity to obtain the recognition character string comprises: Matrixing the voice data corresponding to the sound intensity to generate a voice matrix; Based on a preset first step length, multiplying the speech matrix by a preset first convolution vector to obtain a first processing vector; Based on a preset second step length, multiplying the first processing vector by a preset second convolution vector to obtain a second processing vector; Multiplying the second processing vector by a preset weight matrix to obtain a result vector; The result vector is activated to obtain a recognition character string.

3. The multi-terminal smart home response method according to claim 1, characterized in that: The performing a first speech recognition process on the speech data corresponding to the sound intensity to obtain a recognition character string further comprises: Connecting to a preset cloud server, transmitting the voice data corresponding to the sound intensity to the cloud server for first voice recognition processing to obtain a recognition character string.

4. The multi-terminal smart home response method according to claim 1, characterized in that: The determining whether there is a preset wake-up word in the recognition character string includes: Based on a regular expression, the recognition character string is matched with a wake-up word in a preset wake-up word table to determine whether there is a matching wake-up word in the wake-up word table.

5. The multi-terminal smart home response method according to claim 1, characterized in that: The acquiring of voice data collected by all smart homes in the smart home set to generate a voice data set includes: Establishing a connection channel with all smart homes in the smart home set; Receive voice signals from all the smart homes, capture non-zero voice signals, and generate a voice data set.

6. A multi-terminal smart home response device, characterized in that: The multi-terminal smart home response device includes: An acquisition module, used to acquire voice data collected by all smart homes in the smart home set and generate a voice data set; An intensity analysis module, used to analyze the sound intensity of the speech data in the speech data set in turn, and determine whether the sound intensity exceeds a preset intensity threshold; A first recognition module, configured to perform a first voice recognition process on the voice data corresponding to the sound intensity to obtain a recognition character string if the intensity exceeds a threshold value; A judgment module, used to judge whether there is a preset wake-up word in the recognition character string; a marking module, configured to determine the voice data as marked voice data if present; The second recognition module is used to compare and analyze the sound intensity of all the marked voice data to obtain the marked voice data with the largest sound intensity, and to perform a second voice recognition process on the marked voice data to generate an execution instruction corresponding to the marked voice data; A wake-up module, used for sending a preset wake-up instruction and the execution instruction to the smart home corresponding to the marked voice data; Wherein, the strength analysis module is specifically used for: Extracting the voice data in the voice data set in sequence according to the number of the smart home corresponding to the voice data set; Counting all the sound signal amplitudes of the voice data, and performing root mean square processing on all the sound signal amplitudes to obtain the sound intensity corresponding to the voice data; Determining whether the sound intensity exceeds a preset intensity threshold; Wherein, the second identification module is specifically used for: Randomly select one of the sound intensities of all the marked speech data, and sort all the unselected sound intensities to obtain an intensity analysis sequence number; According to the intensity analysis sequence number, the selected sound intensity is compared with the unselected sound intensity, the originally selected sound intensity is eliminated, and the sound intensity with a larger comparison result is determined as the newly selected sound intensity. The comparison is cyclically performed until all intensity analysis sequences are compared, and the marked voice data with the largest sound intensity is obtained.

7. A multi-terminal smart home response device, characterized in that: The multi-terminal smart home response device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory so that the multi-terminal smart home response device executes the multi-terminal smart home response method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the multi-terminal smart home response method as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Speech recognition method and device

    CN106920543A

  • Multi-device interaction cooperative method, device, equipment and computer readable medium

    CN107919119A

  • An awakening word binding method, an intelligent device and a storage medium

    CN108735209A

  • Oral test and evaluation method, device and device for generating oral test and evaluation model

    CN109272992A

  • Voice control method and device, electronic equipment and computer readable medium

    CN109920419A