Intelligent lock unlocking method and device based on indoor voice, equipment and storage medium

By detecting the internal and external volume and voice signal recognition of smart door locks, the reliability and safety of the voice unlocking function of smart door locks are ensured, which solves the problems of inconvenience and misjudgment in indoor unlocking of existing smart locks, and improves security and anti-interference capabilities.

CN118587798APending Publication Date: 2024-09-03DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410577266.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing smart lock unlocking methods indoors are not convenient enough, and voice recognition technology is prone to misjudgment due to similar tones, leading to mistaken door opening.

Method used

By detecting the original voice signal within the preset range of the smart door lock, the detection volume inside and outside the door is determined, and the volume relationship is judged. If the volume inside the door is greater than outside the door, the voice signal is recognized and the preset sentence is matched to ensure recognition. Perform the unlocking operation after the result is accurate.

Benefits of technology

It achieves the reliability and safety of the voice unlocking function, reduces the risk of mislocking, improves the anti-interference ability and safety of the smart door lock, and avoids misdirected opening of the door due to voice recognition errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587798A
    Figure CN118587798A
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent locks, and discloses an intelligent lock unlocking method, device and equipment based on indoor voice and a storage medium, and the method comprises the following steps: detecting an original voice signal within a preset range of an intelligent door lock; determining indoor detection volume and outdoor detection volume based on the original voice signal, and judging whether the indoor detection volume is greater than the outdoor detection volume; under the condition that the indoor detection volume is larger than the outdoor detection volume, the first signal is recognized, a recognition result is obtained, and the first signal is a voice signal detected by an indoor sound wave detector in the original voice signals; and matching the identification result with a preset statement, and controlling the intelligent door lock to execute unlocking operation when the identification result is consistent with the preset statement. The problems that in the prior art, the indoor unlocking mode of an intelligent lock is not convenient enough, and misjudgment is easily caused by similar timbres in the voice recognition technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart locks, and in particular to a method, device, equipment and storage medium for unlocking a smart lock based on indoor voice. Background Art

[0002] In today's society, with the development of science and technology, smart locks have gradually replaced traditional mechanical locks and become the main door lock choice for various places. Smart locks have been widely welcomed for their convenience, security and intelligence. At present, most smart locks use fingerprint recognition, password recognition, facial recognition and other technologies to unlock. However, although these unlocking methods are safe, the existing smart locks still mainly rely on manual buttons or fingerprint recognition for indoor unlocking, which may cause inconvenience in some specific scenarios. For example, when the user is busy with other matters and cannot open the door for the guest in time, this traditional unlocking method seems to be stretched.

[0003] Although voice recognition technology has been applied in other fields, it has not yet been involved in the field of smart locks, especially in indoor voice unlocking. The current sound signal processing technology mainly relies on the recognition of the characteristics of the sound, sound frequency, speech speed, etc. of the creature making the sound to determine whether the sound is made by the homeowner. However, this method is prone to misjudgment, resulting in the wrong door opening. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a smart lock unlocking method, device, equipment and storage medium based on indoor voice to solve the problem that the smart lock indoor unlocking method in the prior art is not convenient enough and the voice recognition technology is prone to misjudgment due to similar timbres.

[0005] In a first aspect, an embodiment of the present invention provides a method for unlocking a smart lock based on indoor voice, the method comprising:

[0006] Detect the original voice signal within the preset range of the smart door lock;

[0007] Determine the door detection volume and the door detection volume based on the original voice signal, and judge whether the door detection volume is greater than the door detection volume;

[0008] In the case where the volume detected inside the door is greater than the volume detected outside the door, identifying the first signal to obtain a recognition result, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal;

[0009] The recognition result is matched with a preset statement, and when the recognition result is consistent with the preset statement, the smart door lock is controlled to perform an unlocking operation.

[0010] In an optional implementation of the present application, the method further includes: when the volume detected inside the door is less than or equal to the volume detected outside the door, maintaining the locked state of the smart door lock.

[0011] In an optional implementation of the present application, determining the door detection volume and the door detection volume based on the original voice signal, and judging whether the door detection volume is greater than the door detection volume, includes:

[0012] Preprocessing the original speech signal to obtain a target speech signal;

[0013] Extracting a first signal and a second signal from the target voice signal, wherein the first signal is a voice signal detected by an acoustic wave detector inside the door, and the second signal is a voice signal detected by an acoustic wave detector outside the door;

[0014] Comparing the volume of each frame of the first signal and the second signal, and recording the comparison result of each frame;

[0015] Based on the comparison result of each frame, it is determined whether the volume detected inside the door is greater than the volume detected outside the door.

[0016] In an optional implementation manner of the present application, determining whether the volume detected inside the door is greater than the volume detected outside the door based on the comparison result of each frame includes:

[0017] If the comparison result of each frame is that the proportion of the number of frames of the first signal that is greater than the second signal exceeds a preset threshold, it is determined that the volume detected inside the door is greater than the volume detected outside the door;

[0018] Alternatively, if the comparison result of each frame is that the proportion of the number of frames of the first signal that is greater than the second signal does not exceed a preset threshold, it is determined that the volume detected inside the door is less than or equal to the volume detected outside the door.

[0019] In an optional implementation manner of the present application, identifying the first signal to obtain an identification result includes:

[0020] Extracting features from the first signal using an acoustic feature extraction technique to obtain a plurality of acoustic features;

[0021] Multiple acoustic features are input into the trained preset acoustic model for recognition, and the corresponding recognition results are output.

[0022] In an optional embodiment of the present application, before inputting the plurality of acoustic features into a trained preset acoustic model for recognition, the method further includes:

[0023] Obtaining voice data samples;

[0024] Extracting acoustic feature samples and text annotation information from the speech data samples;

[0025] Inputting the acoustic feature samples into an initial acoustic model for training to obtain a training result;

[0026] An error value between the training result and the text annotation information is calculated, and when the error value meets a preset condition, the initial acoustic model is used as the trained preset acoustic model.

[0027] In an optional implementation of the present application, matching the recognition result with a preset statement, and when the recognition result is consistent with the preset statement, controlling the smart door lock to perform an unlocking operation, includes:

[0028] Extracting text information from the recognition result;

[0029] Calculate the similarity between the text information and the preset sentence based on the text similarity algorithm;

[0030] Comparing the similarity with a second preset threshold to determine whether the recognition result is consistent with the preset sentence;

[0031] When the recognition result is consistent with the preset statement, generating an unlock instruction;

[0032] According to the unlocking instruction, the smart door lock is controlled to perform an unlocking operation.

[0033] In a second aspect, an embodiment of the present invention provides an indoor voice-based smart lock unlocking device, the device comprising:

[0034] A detection module, used to detect the original voice signal within a preset range of the smart door lock;

[0035] A determination module, configured to determine an inside-door detection volume and an outside-door detection volume based on the original voice signal, and determine whether the inside-door detection volume is greater than the outside-door detection volume;

[0036] an identification module, configured to identify a first signal to obtain an identification result when the volume detected inside the door is greater than the volume detected outside the door, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal;

[0037] The matching module is used to match the recognition result with a preset statement, and when the recognition result is consistent with the preset statement, control the smart door lock to perform an unlocking operation.

[0038] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the indoor voice-based smart lock unlocking method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the indoor voice-based smart lock unlocking method of the above-mentioned first aspect or any corresponding embodiment thereof.

[0040] The method provided in the embodiment of the present application has the following beneficial effects:

[0041] The method provided in the embodiment of the present application can effectively capture the ambient sound of the door lock by accurately detecting the original voice signal within the preset range of the smart door lock, and provide an accurate data basis for subsequent sound analysis and processing. This step ensures the reliability and security of the voice unlocking function and avoids external interference or misoperation.

[0042] The method provided in the embodiment of the present application optimizes the original voice signal through preprocessing operations, removes noise and interference, and provides higher quality data for subsequent analysis. By extracting the voice signals inside and outside the door, basic data is provided for volume comparison. By comparing the detection volume inside and outside the door, accurate judgment of the source of the voice signal is achieved, which helps to prevent interference from external illegal voice commands and improves the anti-interference ability and security of the smart door lock. At the same time, by setting a reasonable volume comparison threshold, it is ensured that subsequent recognition operations are performed only when the volume inside the door is significantly greater than the volume outside the door, reducing the risk of misinterpreting the lock.

[0043] The method provided in the embodiment of the present application uses acoustic feature extraction technology to extract multiple key acoustic features from the voice signal, providing important data for subsequent recognition. Through the trained acoustic model for recognition, the specific content of the voice signal inside the door can be accurately parsed, providing an accurate basis for subsequent matching and unlocking operations. Through the training process of the acoustic model, the high accuracy and reliability of the acoustic model are ensured, providing a solid foundation for speech recognition. Through the precise recognition of the voice signal inside the door, the accurate understanding of the user's intention is achieved, providing a reliable basis for the subsequent smart door lock unlocking operation.

[0044] The method provided in the embodiment of the present application provides basic data for subsequent matching operations by extracting text information from the recognition result. The text similarity algorithm is used to accurately calculate the similarity between the recognition result and the preset sentence. The recognition result is matched with the preset sentence to accurately verify the voice command. By comparing the similarity with the preset threshold, it is ensured that the subsequent unlocking operation is performed only when the two are highly consistent, thereby ensuring the safety of the door lock. At the same time, this matching mechanism also avoids the occurrence of mis-locking caused by voice recognition errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a flowchart of an indoor voice-based smart lock unlocking method according to some embodiments of the present invention;

[0047] Figure 2 is a flowchart of another method for unlocking an indoor smart lock based on voice according to some embodiments of the present invention;

[0048] Figure 3 is a schematic diagram of the structure of an external lock body of a smart lock according to an embodiment of the present invention;

[0049] Figure 4 is a schematic diagram of the structure of the internal lock body of the smart lock according to an embodiment of the present invention;

[0050] Figure 5 is a structural block diagram of an indoor voice-based smart lock unlocking device according to an embodiment of the present invention;

[0051] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0053] According to an embodiment of the present invention, a method, device, equipment and storage medium for unlocking an indoor voice-based smart lock are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0054] In this embodiment, a smart lock unlocking method based on indoor voice is provided. Figure 1 is a flow chart of an indoor voice-based smart lock unlocking method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0055] Step S11, detecting the original voice signal within a preset range of the smart door lock.

[0056] In the embodiment of the present application, the smart door lock is a new type of smart door lock that combines sound wave detection and voice recognition technology to realize voice command door opening and multiple interaction methods. It is specially equipped with a sound wave detector for capturing and analyzing sound signals; the preset range refers to the range in which the sound wave detector can effectively capture the sound signal. This range can be set according to the sensitivity and installation position of the sound wave detector; the original voice signal refers to the voice command signal issued by the user without any processing. When the user speaks a specific command within the preset range of the door lock, the sound is transmitted in the form of sound waves and captured by the sound wave detector on the door lock.

[0057] The method provided in the embodiment of the present application can effectively capture the ambient sound of the door lock by accurately detecting the original voice signal within the preset range of the smart door lock, and provide an accurate data basis for subsequent sound analysis and processing. This step ensures the reliability and security of the voice unlocking function and avoids external interference or misoperation.

[0058] Step S12, determining the door-inside detection volume and the door-outside detection volume based on the original voice signal, and judging whether the door-inside detection volume is greater than the door-outside detection volume.

[0059] In the embodiment of the present application, step S12 includes the following steps A1-A4:

[0060] Step A1, preprocessing the original speech signal to obtain a target speech signal.

[0061] In the embodiment of the present application, the original speech signal is a speech signal directly collected by the sound wave detector, and there are noise, echo or other interference factors. The preprocessing may include operations such as filtering, noise reduction, and gain adjustment.

[0062] Step A2, extracting a first signal and a second signal from the target voice signal, wherein the first signal is a voice signal detected by the sound wave detector inside the door, and the second signal is a voice signal detected by the sound wave detector outside the door.

[0063] In the embodiment of the present application, the first signal refers to the voice signal detected by the door-inside acoustic wave detector on the internal lock body of the smart door lock; the second signal refers to the voice signal detected by the door-outside acoustic wave detector on the external lock body of the smart door lock. Among them, the working principle of the acoustic wave detector is as follows: First, an ultrasonic signal is generated by a transmitter, and these signals are sent to the detection area. When the ultrasonic signal encounters an object during propagation, it interacts with the object, and part of the signal will be reflected back by the target object. The receiver receives the reflected acoustic wave signal and converts it into an electrical signal (first signal / second signal).

[0064] Step A3, comparing the volume of each frame of the first signal and the second signal, and recording the comparison result of each frame.

[0065] In the embodiment of the present application, the first signal and the second signal are divided into a plurality of small time periods, each of which is called a frame. The volume of each frame is compared one by one, and the comparison results are recorded.

[0066] Step A4, determining whether the volume detected inside the door is greater than the volume detected outside the door based on the comparison result of each frame.

[0067] In the embodiment of the present application, according to the volume comparison result of each recorded frame, the proportion of the number of frames in which the volume of the first signal (inside the door signal) is greater than the volume of the second signal (outside the door signal) is counted. If this proportion exceeds a preset threshold, it is determined that the volume detected inside the door is greater than the volume detected outside the door. On the contrary, if the proportion does not reach the preset threshold, it is determined that the volume detected inside the door is less than or equal to the volume detected outside the door.

[0068] In an embodiment of the present application, step A4 specifically includes: if the comparison result of each frame is that the proportion of frames greater than the second signal in the number of frames of the first signal exceeds a preset threshold, then it is determined that the detection volume inside the door is greater than the detection volume outside the door; or, if the comparison result of each frame is that the proportion of frames greater than the second signal in the number of frames of the first signal does not exceed the preset threshold, then it is determined that the detection volume inside the door is less than or equal to the detection volume outside the door.

[0069] As an example, assume that the first signal (inside door signal) and the second signal (outside door signal) are divided into 100 frames for volume comparison. The comparison result shows that in 100 frames, the volume of the first signal (inside door signal) is greater than the volume of the second signal (outside door signal) in 65 frames. The preset threshold is set to 60% (that is, the volume of the inside door signal for more than 60 frames needs to be greater than the volume of the outside door signal). The volume of the first signal is greater than the second signal in 65 frames (65%), which exceeds the preset threshold of 60%. Therefore, it can be determined that the volume detected inside the door is greater than the volume detected outside the door.

[0070] The method provided in the embodiment of the present application optimizes the original voice signal through preprocessing operations, removes noise and interference, and provides higher quality data for subsequent analysis. By extracting the voice signals inside and outside the door, basic data is provided for volume comparison. By comparing the detection volume inside and outside the door, accurate judgment of the source of the voice signal is achieved, which helps to prevent interference from external illegal voice commands and improves the anti-interference ability and security of the smart door lock. At the same time, by setting a reasonable volume comparison threshold, it is ensured that subsequent recognition operations are performed only when the volume inside the door is significantly greater than the volume outside the door, reducing the risk of misinterpreting the lock.

[0071] Step S13, when the volume detected inside the door is greater than the volume detected outside the door, the first signal is identified to obtain an identification result, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal.

[0072] In an embodiment of the present application, the first signal is identified to obtain an identification result, including: using acoustic feature extraction technology to extract features of the first signal to obtain multiple acoustic features; inputting the multiple acoustic features into a trained preset acoustic model for identification, and outputting corresponding recognition results.

[0073] In an embodiment of the present application, after confirming that the volume detected inside the door is indeed greater than the volume detected outside the door, a specific acoustic feature extraction technology (such as MFCC, PLP, etc.) is used to process the first signal. These technologies can analyze the frequency, energy and other related characteristics of the voice signal, and extract parameters that can represent the characteristics of the voice signal, that is, acoustic features. The extracted acoustic features are the basis for subsequent speech recognition. The preset acoustic model is a model obtained through training with a large amount of voice data, and can predict or recognize corresponding text or instructions based on the input acoustic features. After the acoustic features of the first signal are extracted, these features are input into the preset acoustic model. The model analyzes the features and tries to match the most similar text or instructions to it, and outputs a recognition result. The recognition result can be a piece of text that represents the content spoken in the voice signal or the instructions issued.

[0074] In the embodiment of the present application, before inputting the plurality of acoustic features into the trained preset acoustic model for recognition, the method further includes the following steps B1-B4:

[0075] Step B1, obtaining a voice data sample.

[0076] In the embodiment of the present application, voice data is obtained as the basis for training the model. The voice data samples can come from different speakers, different contexts and different voice contents.

[0077] Step B2: extracting acoustic feature samples and text annotation information from the speech data samples.

[0078] In the embodiment of the present application, acoustic features are extracted for each collected speech data sample, and these features may include phonemes, spectral features, energy distribution, etc., which are key parameters for quantifying and describing speech signals. At the same time, each speech data sample will be annotated with corresponding text information, namely "text annotation information".

[0079] Step B3: input the acoustic feature samples into the initial acoustic model for training to obtain training results.

[0080] In the embodiment of the present application, the initial acoustic model predicts the corresponding text content based on the input acoustic features, which is implemented by a machine learning algorithm. The model continuously adjusts its internal parameters and structure based on the input acoustic features and the corresponding text annotation information. The training results reflect the model's ability to recognize acoustic features under the current parameters and structure.

[0081] Step B4, calculating the error value between the training result and the text annotation information, and when the error value meets the preset condition, using the initial acoustic model as the trained preset acoustic model.

[0082] In an embodiment of the present application, in order to evaluate the performance of the model, the error value between the model training result and the real text annotation information is calculated, wherein the error value can be calculated by accuracy, recall, F1 score, etc. If the error value meets a certain preset condition (such as being lower than a certain threshold), the model has achieved sufficient recognition accuracy and can be regarded as a trained preset acoustic model. If the error value does not meet the preset condition, it is necessary to continue to adjust the parameters and structure of the model, or add more training data to improve the performance of the model.

[0083] In an embodiment of the present application, the method also includes: when the volume detected inside the door is less than or equal to the volume detected outside the door, maintaining the locked state of the smart door lock.

[0084] In the embodiment of the present application, since the voice signal may be affected by external interference or illegal commands, if the volume outside the door is equal to or louder than that inside the door, it is impossible to accurately determine whether the source of the command is legal. In this case, in order to prevent potential illegal intrusion or misoperation, the smart door lock will maintain the locked state and will not perform any operations that may cause security risks.

[0085] The method provided in the embodiment of the present application uses acoustic feature extraction technology to extract multiple key acoustic features from the voice signal, providing important data for subsequent recognition. Through the trained acoustic model for recognition, the specific content of the voice signal inside the door can be accurately parsed, providing an accurate basis for subsequent matching and unlocking operations. Through the training process of the acoustic model, the high accuracy and reliability of the acoustic model are ensured, providing a solid foundation for speech recognition. Through the precise recognition of the voice signal inside the door, the accurate understanding of the user's intention is achieved, providing a reliable basis for the subsequent smart door lock unlocking operation.

[0086] Step S14, matching the recognition result with the preset statement, and when the recognition result is consistent with the preset statement, controlling the smart door lock to perform an unlocking operation.

[0087] In the embodiment of the present application, step S14 includes the following steps C1-C5:

[0088] Step C1, extracting text information from the recognition result.

[0089] In an embodiment of the present application, text information is extracted from the output of the speech recognition module, wherein the text information represents the specific content of the user's voice command and is the basis for subsequent matching operations.

[0090] Step C2, based on a text similarity algorithm, calculate the similarity between the text information and the preset sentence.

[0091] In the embodiment of the present application, a text similarity algorithm is used to quantify the similarity between the user voice command and the preset unlocking sentence. This algorithm may include cosine similarity, Jaccard similarity, edit distance, etc., which are used to calculate the similarity value between two texts.

[0092] Step C3, comparing the similarity with a second preset threshold to determine whether the recognition result is consistent with the preset sentence.

[0093] In an embodiment of the present application, the calculated similarity value is compared with a preset threshold (i.e., a second preset threshold), wherein the second preset threshold is used to determine whether the recognition result is close enough to the preset statement, thereby deciding whether to perform the unlocking operation.

[0094] Step C4: if the recognition result is consistent with the preset statement, an unlock instruction is generated.

[0095] In the embodiment of the present application, if the similarity between the recognition result and the preset sentence exceeds the second preset threshold, the two are considered to be consistent, and an unlock instruction is generated. This instruction is a signal that triggers the door lock unlocking operation.

[0096] Step C5, according to the unlocking instruction, control the smart door lock to perform the unlocking operation.

[0097] In the embodiment of the present application, after receiving the unlocking instruction, the corresponding physical operation is performed, such as driving the lock tongue to retract, so as to complete the unlocking process and allow the user to open the door. This step is the final execution link of the entire process, and realizes the function of controlling the door lock through voice recognition technology.

[0098] As an example, Figure 2 As shown in the figure, the user sends out "Xiao X, Xiao X, please open the door", and the smart door lock detects the volume of the sound inside and outside the door. If the volume of the sound inside the door is not greater than the volume of the sound outside the door, there may be external interference or illegal attempts, so the door opening fails and the process ends. If the volume of the sound inside the door is greater than the volume of the sound outside the door, the voice recognition of the sound inside the door continues, and the recognized sentence is compared with the preset door opening sentence in the program to determine whether the sentence issued from the door is "Xiao X, Xiao X, please open the door". If the recognized sentence is exactly the same as the preset sentence, it means that it is a legal door opening request. If the sentence matches successfully, the door is opened successfully, the door lock will be automatically unlocked, and the user can open the door. If the sentence does not match, the door lock remains locked.

[0099] The method provided in the embodiment of the present application provides basic data for subsequent matching operations by extracting text information from the recognition result. The text similarity algorithm is used to accurately calculate the similarity between the recognition result and the preset sentence. The recognition result is matched with the preset sentence to accurately verify the voice command. By comparing the similarity with the preset threshold, it is ensured that the subsequent unlocking operation is performed only when the two are highly consistent, thereby ensuring the safety of the door lock. At the same time, this matching mechanism also avoids the occurrence of mis-locking caused by voice recognition errors.

[0100] In this embodiment, a smart lock is also provided. Figure 3 is a schematic diagram of the structure of the external lock body of a smart lock according to an embodiment of the present invention, Figure 4 is a schematic diagram of the structure of the internal lock body of the smart lock according to an embodiment of the present invention. Figure 1 as well as Figure 2 As shown, the smart lock includes: a display screen 1, an interactive area 2, a handle 3, a keyhole 4, a power interface 5, an acoustic wave detector A6, an acoustic wave detector B10, and a main chip 11;

[0101] Display screen 1, used to display the status information of the smart lock, such as locked, unlocked, low battery and other prompts, or used to display relevant information when the user interacts with the smart lock;

[0102] Interactive area 2, used to enter passwords, perform fingerprint recognition or perform other operations related to the smart lock, and may include a numeric keyboard, fingerprint recognition module, touch screen, etc.;

[0103] Handle 3, a physical part used to open or close the door lock. When the user passes the verification (such as correct password, successful fingerprint recognition, etc.), the door lock can be opened by turning the handle;

[0104] A key hole 4, used to unlock the smart lock using a physical key when the smart lock fails or the battery is exhausted;

[0105] A power interface 5 is used to provide power to the smart lock, which can be achieved by rechargeable batteries or direct connection to a power source;

[0106] Sound wave detector A6 (outside door sound wave detector), used to detect the sound signal outside the door, when a specific sentence is detected, it determines whether the sound is emitted from outside the door;

[0107] The sound wave detector B10 (the sound wave detector inside the door) is used to detect the sound signal inside the door. When a specific sentence is detected, it determines whether the sound is emitted from inside the door.

[0108] The main chip 11 is used to recognize and decode the voice after confirming that the sound is emitted from inside the door. If the sentence is consistent with the preset sentence in the lock program, it will issue a door opening command to control the door lock to open. It can include voice decoding and voice recognition functions.

[0109] In this embodiment, a smart lock unlocking device based on indoor voice is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0110] This embodiment provides a smart lock unlocking device based on indoor voice, such as Figure 5 As shown, including:

[0111] The detection module 51 is used to detect the original voice signal within the preset range of the smart door lock;

[0112] A determination module 52, for determining the door detection volume and the door detection volume based on the original voice signal, and judging whether the door detection volume is greater than the door detection volume;

[0113] The recognition module 53 is used to recognize the first signal when the volume detected inside the door is greater than the volume detected outside the door, and obtain a recognition result, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal;

[0114] The matching module 54 is used to match the recognition result with the preset statement, and when the recognition result is consistent with the preset statement, control the smart door lock to perform an unlocking operation.

[0115] In an optional embodiment of the present application, the device also includes: a maintaining module, which is used to maintain the locked state of the smart door lock when the volume detected inside the door is less than or equal to the volume detected outside the door.

[0116] In an optional embodiment of the present application, a determination module 52 is used to preprocess the original voice signal to obtain a target voice signal; extract a first signal and a second signal from the target voice signal, wherein the first signal is a voice signal detected by a sound wave detector inside the door, and the second signal is a voice signal detected by a sound wave detector outside the door; compare the volume of each frame of the first signal and the second signal, and record the comparison result of each frame; and determine whether the volume detected inside the door is greater than the volume detected outside the door based on the comparison result of each frame.

[0117] In an optional embodiment of the present application, the determination module 52 is used to determine that the volume detected inside the door is greater than the volume detected outside the door if the comparison result of each frame is that the proportion of frames greater than the second signal in the number of frames of the first signal exceeds a preset threshold; or, if the comparison result of each frame is that the proportion of frames greater than the second signal in the number of frames of the first signal does not exceed the preset threshold, determine that the volume detected inside the door is less than or equal to the volume detected outside the door.

[0118] In an optional embodiment of the present application, the recognition module 53 is used to extract features from the first signal using acoustic feature extraction technology to obtain multiple acoustic features; input the multiple acoustic features into a trained preset acoustic model for recognition, and output corresponding recognition results.

[0119] In an optional embodiment of the present application, the matching module 54 is used to extract text information from the recognition result; based on a text similarity algorithm, calculate the similarity between the text information and a preset sentence; compare the similarity with a second preset threshold to determine whether the recognition result is consistent with the preset sentence; if the recognition result is consistent with the preset sentence, generate an unlock instruction; according to the unlock instruction, control the smart door lock to perform an unlock operation.

[0120] In an optional embodiment of the present application, the device also includes: a training module for obtaining speech data samples; extracting acoustic feature samples and text annotation information in the speech data samples; inputting the acoustic feature samples into the initial acoustic model for training to obtain training results; calculating the error value between the training results and the text annotation information, and when the error value meets the preset conditions, using the initial acoustic model as the trained preset acoustic model.

[0121] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).

[0122] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0123] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0124] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0125] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0126] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0127] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0128] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A smart lock unlocking method based on indoor voice, characterized in that: The method comprises: Detect the original voice signal within the preset range of the smart door lock; Determine the door detection volume and the door detection volume based on the original voice signal, and judge whether the door detection volume is greater than the door detection volume; In the case where the volume detected inside the door is greater than the volume detected outside the door, identifying the first signal to obtain a recognition result, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal; The recognition result is matched with a preset statement, and when the recognition result is consistent with the preset statement, the smart door lock is controlled to perform an unlocking operation.

2. The method according to claim 1, characterized in that The method further includes: when the volume detected inside the door is less than or equal to the volume detected outside the door, maintaining the locked state of the smart door lock.

3. The method according to claim 1, characterized in that The step of determining the door detection volume and the door detection volume based on the original voice signal, and judging whether the door detection volume is greater than the door detection volume, comprises: Preprocessing the original speech signal to obtain a target speech signal; Extracting a first signal and a second signal from the target voice signal, wherein the first signal is a voice signal detected by an acoustic wave detector inside the door, and the second signal is a voice signal detected by an acoustic wave detector outside the door; Comparing the volume of each frame of the first signal and the second signal, and recording the comparison result of each frame; Based on the comparison result of each frame, it is determined whether the volume detected inside the door is greater than the volume detected outside the door.

4. The method according to claim 3, characterized in that The determining, based on the comparison result of each frame, whether the volume detected inside the door is greater than the volume detected outside the door includes: If the comparison result of each frame is that the proportion of the number of frames of the first signal that is greater than the second signal exceeds a preset threshold, it is determined that the volume detected inside the door is greater than the volume detected outside the door; Alternatively, if the comparison result of each frame is that the proportion of the number of frames of the first signal that is greater than the second signal does not exceed a preset threshold, it is determined that the volume detected inside the door is less than or equal to the volume detected outside the door.

5. The method according to claim 1, characterized in that The identifying the first signal to obtain an identification result includes: Extracting features from the first signal using an acoustic feature extraction technique to obtain a plurality of acoustic features; Multiple acoustic features are input into the trained preset acoustic model for recognition, and the corresponding recognition results are output.

6. The method according to claim 5, characterized in that Before inputting the plurality of acoustic features into the trained preset acoustic model for recognition, the method further includes: Obtaining voice data samples; Extracting acoustic feature samples and text annotation information from the speech data samples; Inputting the acoustic feature samples into an initial acoustic model for training to obtain a training result; An error value between the training result and the text annotation information is calculated, and when the error value meets a preset condition, the initial acoustic model is used as the trained preset acoustic model.

7. The method according to claim 1, characterized in that The matching of the recognition result with the preset statement, and when the recognition result is consistent with the preset statement, controlling the smart door lock to perform an unlocking operation, includes: Extracting text information from the recognition result; Calculate the similarity between the text information and the preset sentence based on the text similarity algorithm; Comparing the similarity with a second preset threshold to determine whether the recognition result is consistent with the preset sentence; When the recognition result is consistent with the preset statement, generating an unlock instruction; According to the unlocking instruction, the smart door lock is controlled to perform an unlocking operation.

8. An indoor voice-based smart lock unlocking device, characterized in that: The device comprises: A detection module, used to detect the original voice signal within a preset range of the smart door lock; A determination module, configured to determine an inside-door detection volume and an outside-door detection volume based on the original voice signal, and determine whether the inside-door detection volume is greater than the outside-door detection volume; an identification module, configured to identify a first signal to obtain an identification result when the volume detected inside the door is greater than the volume detected outside the door, wherein the first signal is a voice signal detected by the sound wave detector inside the door in the original voice signal; The matching module is used to match the recognition result with a preset statement, and when the recognition result is consistent with the preset statement, control the smart door lock to perform an unlocking operation.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Intelligent door control system with speech recognition

    CN102760312A

  • Vocal print code question-answer door access

    CN107689095A

  • Voice unlocking method and device, electronic equipment and storage medium

    CN114387968A

  • Speech recognition method and device based on artificial intelligence, equipment and storage medium

    CN114822504A

  • Speech recognition method and device, equipment and storage medium

    CN115064152A