Low-power Bluetooth voice control method and system in smart home environment

By determining the relative angle and distance between Bluetooth devices in a smart home environment, and adjusting the position of the devices to optimize signal transmission, the problem of low accuracy of voice control in long-distance multi-device scenarios is solved, achieving higher signal quality and control. accuracy.

CN116708065BActive Publication Date: 2024-08-23BEIJING WINNER MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310764526.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-27
Publication Date
2024-08-23
Estimated Expiration
2043-06-27

AI Technical Summary

Technical Problem

In a smart home environment, existing Bluetooth communication technology has long transmission distances and many environmental interference signals in long-distance multi-device scenarios, resulting in reduced accuracy of voice control of smart devices.

Method used

The first electronic device receives the Bluetooth wireless signal sent by the second electronic device, determines its relative angle and distance, generates prompt information, instructs the user to move or rotate the second electronic device to reduce the distance and meet the preset angle, and improve signal quality, And broadcast the recognized voice commands to multiple smart home devices.

Benefits of technology

It effectively reduces environmental interference, improves the collection and transmission quality of voice signals, and enhances the accuracy of voice control in long-distance multi-device situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708065B
    Figure CN116708065B
Patent Text Reader

Abstract

The present disclosure relates to a low-power Bluetooth voice control method and system in a smart home environment, the method comprising: receiving a Bluetooth wireless signal sent by a second electronic device, determining a relative angle and a distance between a first electronic device and the second electronic device based on the Bluetooth wireless signal; generating prompt information based on the relative angle and / or distance and sending the prompt information to the second electronic device, prompting a user to move the second electronic device to reduce the distance between the first and second electronic devices and / or rotate the second electronic device to make the relative angle between the first and second electronic devices meet a preset angle condition when collecting a voice signal; receiving a voice signal collected and sent by the second electronic device, recognizing the voice signal to obtain at least one control instruction, generating a broadcast data packet based on the at least one control instruction, and broadcasting the broadcast data packet to multiple smart home devices so that the target smart home devices therein parse the broadcast data packet to obtain the control instruction to perform corresponding operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the technical field of smart home device control, and more particularly to a low-power Bluetooth voice control method and system in a smart home environment. Background Art

[0002] With the rapid development of the Internet of Things industry, voice-controlled smart devices such as smart home devices are becoming more and more widely used. In related technologies, a designated application APP installed on a smartphone usually establishes a Bluetooth communication connection with multiple smart devices with Bluetooth modules in the surrounding environment, such as TVs, smart lights, smart thermometers, etc. The user then operates the designated APP to collect the voice emitted by the user, recognizes the voice to obtain device instructions, and transmits the device instructions to the corresponding smart device via Bluetooth to realize voice control of the smart device.

[0003] The inventors have found that there are still some problems in the application of related technologies. For example, in long-distance multi-device situations involving multiple smart devices in multiple rooms up and down the stairs in a home environment, the existing ordinary Bluetooth communication technology has a limited transmission distance and is not very suitable for this new scenario, resulting in a decrease in the accuracy of voice control of smart devices. For example, a user collects the voice through an APP in a smart phone, obtains device instructions through voice recognition, and transmits the device instructions to the corresponding smart device via Bluetooth, i.e., wireless transmission. In the case of long-distance multi-devices, this method has the combined influence of factors such as an increase in environmental interference signals and a long transmission distance. When the user is far away from a smart device, there are more environmental interference signals in the voice signal collection stage during the process from voice signal collection and recognition to device instruction transmission, resulting in a decrease in the accuracy of the device instruction recognition result. In addition, the increase in the transmission distance of the device instruction and the further influence of the environmental interference signal during the transmission process reduce the accuracy of the device instruction data reaching the smart device, which means that the overall accuracy of the voice recognition control of the smart device will be greatly reduced. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a low-power Bluetooth voice control method and system in a smart home environment.

[0005] In a first aspect, an embodiment of the present disclosure provides a low-power Bluetooth voice control method in a smart home environment, the method being applied to a first electronic device including a low-power Bluetooth module, comprising:

[0006] receiving a Bluetooth wireless signal sent by a second electronic device, and determining a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal;

[0007] Generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device; wherein the prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting a voice signal for controlling a smart home device at the second electronic device, and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition;

[0008] Receive a voice signal sent by a user and collected by the second electronic device, identify the voice signal to obtain at least one device instruction, generate a broadcast data packet based on the at least one device instruction, and broadcast the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain the respective device instructions and thus execute corresponding operations.

[0009] In one embodiment, the method further comprises:

[0010] The first electronic device scans broadcast information sent by multiple smart home devices; wherein the broadcast information sent by the multiple smart home devices all carry a connection identifier;

[0011] After the first electronic device parses the broadcast information to obtain the connection identifiers corresponding to each smart home device, it directly establishes a Bluetooth communication connection with the multiple smart home devices based on the connection identifiers corresponding to each smart home device obtained by the parsing, and then sends the at least one device instruction to at least one target smart home device corresponding to the multiple smart home devices, so that the at least one target smart home device performs a corresponding operation based on the respective corresponding device instructions.

[0012] In one embodiment, the low-power Bluetooth module supports a Bluetooth module of Bluetooth protocol 5.1 or higher; and determining the relative angle between the first electronic device and the second electronic device and the distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal includes:

[0013] The arrival angle of the Bluetooth wireless signal at the first electronic device is determined as the relative angle between the first electronic device and the second electronic device, and the distance between the first electronic device and the second electronic device is determined by an arrival angle positioning method.

[0014] In one embodiment, a smart home device control application is installed on the second electronic device, and sending the prompt information to the second electronic device includes:

[0015] The prompt information is sent to the smart home device control application on the second electronic device. The smart home device control application can display a user interface to present the prompt information, and enable the user to move and / or rotate the second electronic device under the instruction of the prompt information to collect the voice signal emitted by the user for controlling the smart home device.

[0016] In one embodiment, the recognizing the voice signal to obtain at least one device instruction includes:

[0017] Cutting and dividing the speech signal into a plurality of sub-speech signals according to a preset rule;

[0018] Acquire the voiceprint feature information of the multiple sub-voice signals, and determine the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table; wherein the mapping relationship table contains the corresponding relationship between multiple different preset voiceprint feature information and different device instructions.

[0019] In one embodiment, the step of obtaining voiceprint feature information of the plurality of sub-voice signals includes:

[0020] Extract audio features of the multiple sub-voice signals, and input the audio features of the multiple sub-voice signals into a voiceprint feature extraction model respectively to obtain voiceprint feature information of the multiple sub-voice signals; wherein the voiceprint feature extraction model is obtained by pre-training a convolutional neural network model based on the audio features of the sample voice signal.

[0021] In one embodiment, the determining the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table includes:

[0022] For the voiceprint feature information of each of the sub-voice signals, multiple cosine similarity values ​​corresponding to the voiceprint feature information of each of the sub-voice signals and multiple different preset voiceprint feature information in the mapping relationship table are calculated, and based on the mapping relationship table, the device instruction corresponding to the preset voiceprint feature information corresponding to the maximum cosine similarity value among the multiple cosine similarity values ​​is determined as the device instruction corresponding to each of the sub-voice signals.

[0023] In a second aspect, an embodiment of the present disclosure provides a low-power Bluetooth voice control system in a smart home environment, the system being applied to a first electronic device including a low-power Bluetooth module, including:

[0024] a parameter determination module, configured to receive a Bluetooth wireless signal sent by a second electronic device, and determine a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal;

[0025] a collection prompt module, configured to generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device; wherein the prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting the voice signal for controlling the smart home device at the second electronic device, and / or to rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition;

[0026] The voice control module is used to receive a voice signal sent by a user collected and sent by the second electronic device, identify the voice signal to obtain at least one device instruction, generate a broadcast data packet based on the at least one device instruction, and broadcast the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain the respective device instructions and thus execute corresponding operations.

[0027] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the low-power Bluetooth voice control method in a smart home environment described in any of the above embodiments is implemented.

[0028] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0029] Processor; and

[0030] Memory for storing computer programs;

[0031] The processor is configured to execute the low-power Bluetooth voice control method in a smart home environment described in any of the above embodiments by executing the computer program.

[0032] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0033] The low-power Bluetooth voice control method and system in a smart home environment provided by the embodiments of the present disclosure, when a user uses a second electronic device such as a smart phone to collect voice signals for controlling smart home devices, a first electronic device, i.e., a transit electronic device, determines the relative angle and distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal sent by the second electronic device, and generates prompt information based on the information and sends it to the second electronic device, so as to prompt the user to move the second electronic device when collecting the voice signal so as to reduce the distance between the first electronic device and the second electronic device and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition, and then the first electronic device receives the voice signal sent by the user collected and sent by the second electronic device, identifies the voice signal to obtain at least one device instruction, generates a broadcast data packet based on the at least one device instruction, and broadcasts the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain respective device instructions and thereby performs corresponding operations. In this way, during the collection and transmission of voice signals, since the distance between the first electronic device and the second electronic device is reduced and / or the relative angle between the first electronic device and the second electronic device meets the preset angle condition, the influence of environmental interference signals can be avoided as much as possible. Combined with the use of low-power Bluetooth technology to broadcast data packets containing device instructions to multiple smart home devices, it can be applicable to long-distance multi-device scenarios. Overall, the signal quality of the voice signal collected and sent by the second electronic device and received by the first electronic device can be better, thereby making the device instructions obtained by voice recognition more accurate, thereby improving the accuracy of voice control of smart home devices in long-distance multi-device scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 This is a flow chart of a low-power Bluetooth voice control method in a smart home environment according to an embodiment of the present disclosure;

[0037] Figure 2 This is a flow chart of a low-power Bluetooth voice control method in a smart home environment according to another embodiment of the present disclosure;

[0038] Figure 3 This is a flow chart of a low-power Bluetooth voice control method in a smart home environment according to another embodiment of the present disclosure;

[0039] Figure 4 This is a schematic diagram of a low-power Bluetooth voice control system in a smart home environment according to an embodiment of the present disclosure;

[0040] Figure 5 Schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0042] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0043] It should be understood that, in the following, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0044] Figure 1 This is a flow chart of a low-power Bluetooth voice control method in a smart home environment according to an embodiment of the present disclosure. The method is applied to a first electronic device including a low-power Bluetooth module, and may specifically include the following steps:

[0045] Step S101: receiving a Bluetooth wireless signal sent by a second electronic device, and determining a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal.

[0046] Exemplarily, the second electronic device at the user's location, such as a smart phone, may include a low-power Bluetooth module that can send Bluetooth wireless signals. The first electronic device, such as a transit electronic device, can receive the Bluetooth wireless signal sent by the second electronic device, and then determine the relative angle and distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal. For example, the relative angle and distance between the first electronic device and the second electronic device are determined based on the arrival angle positioning method AoA or the departure angle positioning method AoD. For details about AoA and AoD, please refer to the prior art and will not be repeated here.

[0047] Step S102: Generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device. The prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting a voice signal for controlling a smart home device at the second electronic device, and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition.

[0048] Exemplarily, after the first electronic device such as the transit electronic device determines the relative angle and / or distance between the first electronic device and the second electronic device, it can generate prompt information such as text prompt information or voice prompt information based on the relative angle and / or distance between the first electronic device and the second electronic device, and can send the prompt information to the second electronic device at the user's location, such as a smart phone. The prompt information can be used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting voice signals for controlling smart home devices at the second electronic device, and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition.

[0049] In one example, when the relative angle between the first electronic device and the second electronic device is greater than a preset angle, and / or when the distance between the first electronic device and the second electronic device is greater than a preset distance, it can trigger the generation of a prompt message such as a text prompt message "Please move the second electronic device to reduce the distance, please rotate the second electronic device so that the relative angle is less than the preset angle."

[0050] The preset angle condition may include that the relative angle between the first electronic device and the second electronic device is less than or equal to a preset angle value. The preset angle value may be related to the signal strength of the Bluetooth wireless signal between the first electronic device and the second electronic device. Meeting the preset angle condition means that the signal strength of the Bluetooth wireless signal between the first electronic device and the second electronic device is greater than or equal to the preset signal strength value.

[0051] Step S103: receiving a voice signal sent by a user and collected by the second electronic device, identifying the voice signal to obtain at least one device instruction, generating a broadcast data packet based on the at least one device instruction, and broadcasting the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain respective device instructions and thereby performs corresponding operations.

[0052] Exemplarily, multiple smart home devices may be devices including low-power Bluetooth modules. When a user collects a voice signal at a second electronic device, the user moves the second electronic device to reduce the distance between the first electronic device and the second electronic device, and / or rotates the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition, which can reduce the transmission distance of the subsequent voice signal transmission and / or enhance the transmission quality of the voice signal. After that, the first electronic device receives the voice signal sent by the user collected and sent by the second electronic device, recognizes the voice signal to obtain at least one device instruction, generates a broadcast data packet based on the at least one device instruction, broadcasts the broadcast data packet to multiple smart home devices, and at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain respective device instructions to perform corresponding operations such as turning on the TV, cooling the air conditioner, etc.

[0053] The above-mentioned scheme of the embodiment of the present disclosure can reduce the transmission distance when transmitting the voice signal and / or enhance the transmission quality of the voice signal during the collection and transmission of the voice signal by prompting the user to reduce the distance between the first electronic device and the second electronic device and / or to make the relative angle between the first electronic device and the second electronic device meet the preset angle condition, thereby avoiding the influence of environmental interference signals as much as possible. In combination with the use of low-power Bluetooth technology to broadcast a data packet containing device instructions to multiple smart home devices, that is, carrying the device instructions in the broadcast message instead of the data message, the first electronic device has not yet established a Bluetooth connection with the multiple smart home devices. The device instructions are directly transmitted by broadcasting data, which can be applicable to long-distance multi-device scenarios. On the whole, the signal quality of the voice signal collected and sent by the second electronic device received by the first electronic device can be better, thereby making the device instructions obtained by voice recognition more accurate, thereby improving the accuracy of voice control of smart home devices in the long-distance multi-device scenario.

[0054] It should be noted that in general Bluetooth connections, devices are paired first, then formally connected, and finally data is transmitted. When this method is applied to the smart home device control scenario of the embodiment of the present disclosure, it is difficult to quickly and efficiently realize voice control of smart home devices in the case of multiple devices at a long distance. Therefore, in order to quickly and efficiently realize voice control of smart home devices in the case of multiple devices at a long distance, based on the above embodiment, in one embodiment, combined with Figure 2 As shown, the method may also include the following steps:

[0055] Step S201: the first electronic device scans broadcast information sent by multiple smart home devices; wherein the broadcast information sent by the multiple smart home devices all carries a connection identifier.

[0056] Exemplarily, the connection identifier may be a specific character, but is not limited thereto, and is used to instruct the first electronic device to directly establish a Bluetooth communication connection with the smart home device that carries the connection identifier in the broadcast information. In this embodiment, before the first electronic device establishes a Bluetooth connection with multiple smart home devices, pairing is not required, and the Bluetooth communication protocol is pre-configured so that the broadcast information sent by each smart home device carries the connection identifier in the broadcast message, and the first electronic device can obtain the broadcast information sent by multiple smart home devices by scanning. The pre-configured Bluetooth communication protocol can be implemented by a background control server that can remotely communicate with the first electronic device and multiple smart home devices.

[0057] It should be noted that in low-power Bluetooth technology, the data packet format is divided into two types: broadcast messages and data messages. Devices use broadcast messages to discover and connect to other devices, and only use data messages to transmit data after the connection is established. Currently, both broadcast messages and data messages use the same data packet format, for example, including "preamble", "access code", "payload (PDU)" and "cyclic redundancy check code (CRC)". In this embodiment, the connection identifier is carried in the broadcast information such as the broadcast message, which means that the current data packet format is changed and an information is added.

[0058] Bluetooth services usually require encryption or authentication, and therefore usually require pairing before allowing devices to connect remotely. In the embodiments of the present disclosure, smart home scenarios are considered rather than industrial scenarios, so the encryption or authentication requirements can be weakened and removed in a targeted manner. Instead of pairing, a Bluetooth connection is directly established based on the connection identifier carried in the broadcast information. In the case of long-distance multi-device situations, the efficiency of voice control of smart home devices and the accuracy of control are mainly considered.

[0059] Step S202: After the first electronic device parses the broadcast information to obtain the connection identifier corresponding to each smart home device, it directly establishes a Bluetooth communication connection with the multiple smart home devices based on the connection identifier corresponding to each smart home device obtained by the parsing, and then sends the at least one device instruction to at least one target smart home device corresponding to the multiple smart home devices, so that the at least one target smart home device performs a corresponding operation based on the respective corresponding device instructions.

[0060] Exemplarily, after the first electronic device scans and obtains broadcast information sent by multiple smart home devices, it parses each broadcast information to obtain the connection identifier corresponding to each smart home device, and the connection identifier corresponding to each smart home device at least includes a unique device identifier. Then, based on the connection identifier corresponding to each smart home device obtained by parsing, a Bluetooth communication connection is directly established with multiple smart home devices. Then, the first electronic device sends at least one device instruction obtained by voice recognition in step S103 to at least one target smart home device corresponding to the multiple smart home devices, so that at least one target smart home device performs a corresponding operation based on the respective corresponding device instructions. Here, the step of generating a broadcast data packet is not necessary, that is, omitted. Therefore, as a whole, a Bluetooth connection can be quickly established and device instructions can be sent to the target smart home device, so as to quickly, efficiently and reliably achieve the purpose of voice control of smart home devices in the case of multiple devices at a long distance.

[0061] In one embodiment, the low-power Bluetooth module can support Bluetooth modules above Bluetooth protocol 5.1. In step S101, determining the relative angle between the first electronic device and the second electronic device and the distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal can specifically include: determining the arrival angle of the Bluetooth wireless signal at the first electronic device as the relative angle between the first electronic device and the second electronic device, and determining the distance between the first electronic device and the second electronic device by the arrival angle positioning method.

[0062] Exemplarily, the arrival direction of the transmitting node signal is sensed by the array antenna, the relative orientation or angle between the receiving node (Bluetooth AoA positioning base station) and the transmitting node (Bluetooth AoA tag) is calculated, and then the position of the unknown node (Bluetooth AoA tag) is calculated using triangulation or other methods. The specific calculation process of the arrival angle positioning method AoA can be understood by referring to the prior art and will not be repeated here.

[0063] In this embodiment, the above scheme can accurately calculate the relative angle and distance between the first electronic device and the second electronic device, and then generate prompt information in a timely and accurate manner. In this way, during the collection and transmission of voice signals, the user can be prompted in a timely and accurate manner so that the distance between the first electronic device and the second electronic device is reduced and / or the relative angle between the first electronic device and the second electronic device meets the preset angle condition. Therefore, the transmission distance when transmitting the voice signal can be reduced and / or the transmission quality of the voice signal can be enhanced, thereby avoiding the influence of environmental interference signals as much as possible, so that the signal quality of the voice signal collected and sent by the second electronic device received by the first electronic device is better, thereby making the device instructions obtained by voice recognition more accurate, thereby improving the accuracy of voice control of smart home devices in the long-distance multi-device situation.

[0064] In one embodiment, a smart home device control application APP is installed on the second electronic device, and sending the prompt information to the second electronic device includes: sending the prompt information to the smart home device control application on the second electronic device, and the smart home device control application can display a user interface to present the prompt information, and allow the user to move and / or rotate the second electronic device under the instruction of the prompt information to collect the voice signal sent by the user for controlling the smart home device. In this way, it is convenient for the user to perform the voice collection operation according to the prompt information, and improve the user experience.

[0065] It is understandable that for voice signals sent by the same person, such as voice signals containing control information of more than two devices, the existence of factors such as different sound volumes, different transmission distances, and different strengths of interference signals even if the same voice signal is sent at different times will reduce the accuracy of home device commands obtained by voice recognition, thereby reducing the accuracy of voice control of smart home devices.

[0066] Therefore, in order to solve the above problems, in one embodiment, Figure 3 As shown, in step S103, recognizing the voice signal to obtain at least one device instruction may specifically include the following steps:

[0067] Step S301: dividing the speech signal into a plurality of sub-speech signals according to a preset rule.

[0068] Exemplarily, the segmentation according to the preset rules may be based on keywords in the text corresponding to the voice signal, that is, a voice signal contains at least two or more devices' control information, such as "turn on the TV, turn on the air conditioner". The voice signal is segmented into multiple sub-voice signals according to the preset rules, for example, the voice signal "turn on the TV, turn on the air conditioner" is segmented into two sub-voice signals "turn on the TV" and "turn on the air conditioner".

[0069] Step S302: Acquire the voiceprint feature information of the multiple sub-voice signals, and determine the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table; wherein the mapping relationship table contains the correspondence between multiple different preset voiceprint feature information and different device instructions.

[0070] Exemplarily, voiceprint feature information 1 and voiceprint feature information 2 of two sub-voice signals "turn on the TV" and "turn on the air conditioner" are obtained, and two corresponding device commands are determined based on voiceprint feature information 1, voiceprint feature information 2 and a preset mapping relationship table. The mapping relationship table contains the correspondence between a plurality of preset different preset voiceprint feature information and different device commands.

[0071] In this embodiment, by pre-setting the correspondence between multiple different preset voiceprint feature information and different device commands, the corresponding relationship is searched based on the voiceprint feature information of the divided multiple sub-voice signals to determine the corresponding multiple device commands. In essence, the device commands are directly determined based on the voiceprint feature information of multiple sub-voice signals in the voice signal, that is, it does not focus on voice recognition, but focuses on using voiceprint features to determine the device commands. In this way, it can avoid obtaining home device commands through voice recognition of voice signals to the greatest extent. Home device commands can be accurately obtained based on voiceprint features and preset correspondences, thereby improving the accuracy of voice control of smart home devices.

[0072] On the basis of the above embodiment, due to the difference between the voiceprint feature information obtained when the solution is applied and the preset voiceprint feature information, the accuracy of the device instructions determined by searching the corresponding relationship based on the obtained voiceprint feature information is reduced, that is, the accuracy of voice control of smart home devices is reduced. Therefore, in order to further improve the accuracy of voice control of smart home devices, in one embodiment, the corresponding multiple device instructions are determined based on the voiceprint feature information of the multiple sub-voice signals and the preset mapping relationship table in step S302, which may specifically include the following steps:

[0073] For the voiceprint feature information of each of the sub-voice signals, multiple cosine similarity values ​​corresponding to the voiceprint feature information of each of the sub-voice signals and multiple different preset voiceprint feature information in the mapping relationship table are calculated, and based on the mapping relationship table, the device instruction corresponding to the preset voiceprint feature information corresponding to the maximum cosine similarity value among the multiple cosine similarity values ​​is determined as the device instruction corresponding to each of the sub-voice signals.

[0074] Exemplarily, for the voiceprint feature information of a sub-voice signal, a first vector for characterizing the voiceprint feature information of the sub-voice signal is determined, and a plurality of different second vectors of preset voiceprint feature information are determined, and then a plurality of cosine similarity values ​​are calculated based on the first vector of the voiceprint feature information of the sub-voice signal and the second vectors of the plurality of different preset voiceprint feature information. The specific process of calculating the cosine similarity can be understood by referring to the prior art, and will not be described in detail here. Then, based on the mapping relationship table, the device instruction corresponding to the preset voiceprint feature information corresponding to the maximum cosine similarity value among the plurality of cosine similarity values ​​is determined as the device instruction corresponding to the corresponding sub-voice signal. The scheme in this embodiment can accurately determine the corresponding device instruction from the mapping relationship table based on the voiceprint feature information of a sub-voice signal, that is, the accuracy of the device instruction determined by searching the corresponding relationship based on the acquired voiceprint feature information is further improved, thereby further improving the accuracy of voice control of smart home devices.

[0075] In another embodiment, since the accuracy of the voiceprint feature information obtained when the solution is applied is reduced, the accuracy of voice control of smart home devices will eventually be reduced. Therefore, in this embodiment, the voiceprint feature information of the multiple sub-voice signals is obtained in step S302, which can specifically include the following steps: extracting the audio features of the multiple sub-voice signals, and inputting the audio features of the multiple sub-voice signals into the voiceprint feature extraction model respectively to obtain the voiceprint feature information of the multiple sub-voice signals; wherein the voiceprint feature extraction model is obtained by pre-training the convolutional neural network model based on the audio features of the sample voice signal.

[0076] In this embodiment, the voiceprint feature information of the sub-voice signal is extracted by a pre-trained voiceprint feature extraction model, which can further improve the accuracy of the acquired voiceprint feature information. Then, based on the voiceprint feature information of the sub-voice signal, the corresponding device command is accurately determined from the mapping relationship table, thereby ultimately further improving the accuracy of voice control of smart home devices.

[0077] In one example, the training process of the voiceprint feature extraction model includes: performing multiple iterative updates on the convolutional neural network model through the audio features of the sample speech signal; wherein each iterative update includes: obtaining multiple loss function values ​​corresponding to the convolutional neural network model after the last iterative update to perform multiple voiceprint feature extraction tasks, determining a target loss function value less than a specified loss function value from the multiple loss function values, and updating the convolutional neural network model after the last iterative update according to the target loss function value and the voiceprint feature extraction task corresponding to the target loss function value. Exemplarily, the specified loss function value may be the average of multiple loss function values, but is not limited thereto.

[0078] The solution of this embodiment uses the target loss function value and the corresponding voiceprint feature extraction task (i.e., the loss function value and the corresponding voiceprint feature extraction task that are closer to the model training target) to update the convolutional neural network model in each round of iterative update of the convolutional neural network model, thereby improving the task performance of the convolutional neural network model in the voiceprint feature extraction task corresponding to the target loss function value, thereby improving the accuracy of the voiceprint feature extraction results of the trained voiceprint feature extraction model. In addition, the model training process only uses the target loss function value and the corresponding voiceprint feature extraction task that are less than the specified loss function value to update the convolutional neural network model, thereby reducing the update steps, and ultimately greatly improving the training efficiency of the model.

[0079] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.

[0080] like Figure 4 As shown, an embodiment of the present disclosure provides a low-power Bluetooth voice control system in a smart home environment, the system is applied to a first electronic device including a low-power Bluetooth module, including:

[0081] The parameter determination module 401 is used to receive a Bluetooth wireless signal sent by a second electronic device, and determine a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal;

[0082] The collection prompt module 402 is used to generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device; wherein the prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting the voice signal for controlling the smart home device at the second electronic device, and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition;

[0083] The voice control module 403 is used to receive a voice signal sent by a user and collected by the second electronic device, identify the voice signal to obtain at least one device instruction, generate a broadcast data packet based on the at least one device instruction, and broadcast the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain the respective device instructions and thereby performs corresponding operations.

[0084] In one embodiment, the system may further include a scanning connection module, configured to enable the first electronic device to scan broadcast information emitted by a plurality of smart home devices; wherein the broadcast information emitted by the plurality of smart home devices all carry a connection identifier; after parsing the broadcast information to obtain a connection identifier corresponding to each smart home device, a Bluetooth communication connection is directly established with the plurality of smart home devices based on the connection identifier corresponding to each smart home device obtained by the parsing, and then the voice control module is further configured to send the at least one device instruction to at least one target smart home device corresponding to the plurality of smart home devices, so that the at least one target smart home device performs a corresponding operation based on the respective corresponding device instructions.

[0085] In one embodiment, the low-power Bluetooth module supports a Bluetooth module above Bluetooth protocol 5.1; the parameter determination module determines the relative angle between the first electronic device and the second electronic device and the distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal, including: determining the arrival angle of the Bluetooth wireless signal at the first electronic device as the relative angle between the first electronic device and the second electronic device, and determining the distance between the first electronic device and the second electronic device by an arrival angle positioning method.

[0086] In one embodiment, a smart home device control application is installed on the second electronic device, and the collection prompt module sends the prompt information to the second electronic device, including: sending the prompt information to the smart home device control application on the second electronic device, the smart home device control application can display a user interface to present the prompt information, and enable the user to move and / or rotate the second electronic device under the instruction of the prompt information to collect the voice signal emitted by the user for controlling the smart home device.

[0087] In one embodiment, the voice control module recognizes the voice signal to obtain at least one device instruction, including: dividing the voice signal into multiple sub-voice signals according to a preset rule; obtaining voiceprint feature information of the multiple sub-voice signals, and determining the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table; wherein the mapping relationship table contains the correspondence between multiple different preset voiceprint feature information and different device instructions.

[0088] In one embodiment, the voice control module obtains the voiceprint feature information of the multiple sub-voice signals, including: extracting the audio features of the multiple sub-voice signals, and inputting the audio features of the multiple sub-voice signals into a voiceprint feature extraction model respectively to obtain the voiceprint feature information of the multiple sub-voice signals; wherein the voiceprint feature extraction model is obtained by pre-training a convolutional neural network model based on the audio features of the sample voice signal.

[0089] In one embodiment, the voice control module determines multiple corresponding device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table, including: for the voiceprint feature information of each of the sub-voice signals, calculating multiple cosine similarity values ​​corresponding to the voiceprint feature information of each of the sub-voice signals and multiple different preset voiceprint feature information in the mapping relationship table, and determining, based on the mapping relationship table, the device instruction corresponding to the preset voiceprint feature information corresponding to the maximum cosine similarity value among the multiple cosine similarity values ​​as the device instruction corresponding to each of the sub-voice signals.

[0090] In one embodiment, the training process of the voiceprint feature extraction model includes: performing multiple iterative updates on the convolutional neural network model through the audio features of the sample speech signal; wherein each iterative update includes: obtaining multiple loss function values ​​corresponding to the convolutional neural network model after the last iterative update to perform multiple voiceprint feature extraction tasks, determining a target loss function value that is less than a specified loss function value from the multiple loss function values, and updating the convolutional neural network model after the last iterative update according to the target loss function value and the voiceprint feature extraction task corresponding to the target loss function value.

[0091] Regarding the system in the above embodiment, the specific manner in which each module performs operations and the corresponding technical effects brought about have been described in detail in the embodiment of the method, and will not be elaborated here.

[0092] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed scheme. Those of ordinary skill in the art can understand and implement it without paying creative work.

[0093] The embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for low-power Bluetooth voice control in a smart home environment described in any of the above embodiments is implemented.

[0094] Exemplarily, the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0095] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0096] The present disclosure also provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program, wherein the processor is configured to execute the low-power Bluetooth voice control method in a smart home environment in any of the above embodiments by executing the computer program.

[0097] Refer to the following Figure 5 The electronic device 600 according to this embodiment of the present invention is described. Figure 5 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0098] like Figure 5 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.

[0099] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above method embodiment section of this specification. For example, the processing unit 610 can perform the following steps: Figure 1 The steps of the method shown in .

[0100] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0101] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0102] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0103] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0104] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the steps of the low-power Bluetooth voice control method in the smart home environment according to the above-mentioned embodiments of the implementation methods of the present disclosure.

[0105] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0106] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A low-power Bluetooth voice control method in a smart home environment, It is characterized in that The method is applied to a first electronic device including a low-power Bluetooth module, wherein the first electronic device is a transfer control device, including: receiving a Bluetooth wireless signal sent by a second electronic device, and determining a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal; Generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device; wherein the prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting a voice signal for controlling a smart home device at the second electronic device, and / or rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition; Receive a voice signal sent by a user and collected by the second electronic device, identify the voice signal to obtain at least one device instruction, generate a broadcast data packet based on the at least one device instruction, and broadcast the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain the respective device instructions and thus execute corresponding operations.

2. The method according to claim 1, It is characterized in that The method further includes: The first electronic device scans broadcast information sent by multiple smart home devices; wherein the broadcast information sent by the multiple smart home devices all carry a connection identifier; After the first electronic device parses the broadcast information to obtain the connection identifiers corresponding to each smart home device, it directly establishes a Bluetooth communication connection with the multiple smart home devices based on the connection identifiers corresponding to each smart home device obtained by the parsing, and then sends the at least one device instruction to at least one target smart home device corresponding to the multiple smart home devices, so that the at least one target smart home device performs a corresponding operation based on the respective corresponding device instructions.

3. The method according to claim 1 or 2, It is characterized in that The low-power Bluetooth module supports Bluetooth modules above Bluetooth protocol 5.1; and determining the relative angle between the first electronic device and the second electronic device and the distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal includes: The arrival angle of the Bluetooth wireless signal at the first electronic device is determined as the relative angle between the first electronic device and the second electronic device, and the distance between the first electronic device and the second electronic device is determined by an arrival angle positioning method.

4. The method according to claim 1 or 2, It is characterized in that The second electronic device is installed with a smart home device control application, and sending the prompt information to the second electronic device includes: The prompt information is sent to the smart home device control application on the second electronic device. The smart home device control application can display a user interface to present the prompt information, and enable the user to move and / or rotate the second electronic device under the instruction of the prompt information to collect the voice signal emitted by the user for controlling the smart home device.

5. The method according to claim 1 or 2, It is characterized in that The step of recognizing the voice signal to obtain at least one device instruction includes: Cutting and dividing the speech signal into a plurality of sub-speech signals according to a preset rule; Acquire the voiceprint feature information of the multiple sub-voice signals, and determine the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table; wherein the mapping relationship table contains the corresponding relationship between multiple different preset voiceprint feature information and different device instructions.

6. The method according to claim 5, It is characterized in that The acquiring of the voiceprint feature information of the plurality of sub-voice signals includes: Extract audio features of the multiple sub-voice signals, and input the audio features of the multiple sub-voice signals into a voiceprint feature extraction model respectively to obtain voiceprint feature information of the multiple sub-voice signals; wherein the voiceprint feature extraction model is obtained by pre-training a convolutional neural network model based on the audio features of the sample voice signal.

7. The method according to claim 5, It is characterized in that The determining of the corresponding multiple device instructions based on the voiceprint feature information of the multiple sub-voice signals and a preset mapping relationship table includes: For the voiceprint feature information of each of the sub-voice signals, multiple cosine similarity values ​​corresponding to the voiceprint feature information of each of the sub-voice signals and multiple different preset voiceprint feature information in the mapping relationship table are calculated, and based on the mapping relationship table, the device instruction corresponding to the preset voiceprint feature information corresponding to the maximum cosine similarity value among the multiple cosine similarity values ​​is determined as the device instruction corresponding to each of the sub-voice signals.

8. A low-power Bluetooth voice control system in a smart home environment. It is characterized in that The system is applied to a first electronic device including a low-power Bluetooth module, wherein the first electronic device is a transfer control device, including: a parameter determination module, configured to receive a Bluetooth wireless signal sent by a second electronic device, and determine a relative angle between the first electronic device and the second electronic device and a distance between the first electronic device and the second electronic device based on the Bluetooth wireless signal; a collection prompt module, configured to generate prompt information based on the relative angle between the first electronic device and the second electronic device and / or the distance between the first electronic device and the second electronic device, and send the prompt information to the second electronic device; wherein the prompt information is used to prompt the user to move the second electronic device to reduce the distance between the first electronic device and the second electronic device when collecting the voice signal for controlling the smart home device at the second electronic device, and / or to rotate the second electronic device so that the relative angle between the first electronic device and the second electronic device meets a preset angle condition; The voice control module is used to receive a voice signal sent by a user collected and sent by the second electronic device, identify the voice signal to obtain at least one device instruction, generate a broadcast data packet based on the at least one device instruction, and broadcast the broadcast data packet to multiple smart home devices, so that at least one target smart home device among the multiple smart home devices parses the broadcast data packet to obtain the respective device instructions and thus execute corresponding operations.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the low-power Bluetooth voice control method in a smart home environment as described in any one of claims 1 to 7 is implemented.

10. An electronic device, It is characterized in that include: processor; as well as Memory for storing computer programs; Wherein, the processor is configured to execute the low-power Bluetooth voice control method in a smart home environment as described in any one of claims 1 to 7 by executing the computer program.