CN113438640B - Equipment pairing connection method, device, system and storage medium - Google Patents
Equipment pairing connection method, device, system and storage medium Download PDFInfo
- Publication number
- CN113438640B CN113438640B CN202110553845.3A CN202110553845A CN113438640B CN 113438640 B CN113438640 B CN 113438640B CN 202110553845 A CN202110553845 A CN 202110553845A CN 113438640 B CN113438640 B CN 113438640B
- Authority
- CN
- China
- Prior art keywords
- pairing
- voice
- equipment
- identity information
- pairing connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/50—Secure pairing of devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The device pairing connection method comprises the steps of sending pairing voice to second equipment in a pairing mode, carrying out pairing connection on the pairing voice and the second equipment through the pairing voice generated according to identity information of the first equipment in advance, determining a pairing connection instruction after the second equipment receives the pairing voice, carrying out pairing connection on the pairing connection instruction and the second equipment according to the received pairing connection instruction sent by the second equipment, carrying out pairing connection through the pairing voice to identify the identity of the first equipment, improving the safety of the pairing connection process, and enabling a user not to manually search for target equipment through a voice mode, so that the pairing connection process is greatly simplified, and a longer pairing connection distance can be supported compared with a Bluetooth connection mode.
Description
Technical Field
The present application relates to the field of communication connection technologies, and in particular, to a device pairing connection method, apparatus, system, and storage medium.
Background
With the development of communication technology, more and more electronic devices have an internet communication function, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, smart home devices, and the like. The user can pair and connect two or more devices according to the requirement, so that information transmission among the devices is realized, or one device controls other devices, so that remote control operation of the devices is realized.
At present, most of the pairing connection between the devices adopts a Bluetooth pairing connection mode, but the Bluetooth pairing connection is adopted, a user needs to manually search for target devices, the process is complicated, and the supportable pairing distance is limited.
Disclosure of Invention
In view of the foregoing problems, the present invention provides a device pairing connection method, apparatus, system and storage medium to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a device pairing connection method, where the method is applied to a first device, and the method includes: in the pairing mode, a pairing voice is transmitted to the second device. The pairing voice is generated in advance according to the identity information of the first device. And receiving a pairing connection instruction sent by the second equipment, wherein the pairing connection instruction is determined by the second equipment according to the received pairing voice. And carrying out pairing connection with the second equipment according to the pairing connection instruction.
In a second aspect, an embodiment of the present application also provides a device pairing connection method, where the method is applied to a second device, and the method includes: and receiving the pairing voice sent by the first equipment. The pairing voice is generated in advance according to the identity information of the first device. And determining identity information of the first equipment according to the pairing voice, determining a pairing connection instruction according to the identity information, sending the pairing connection instruction to the first equipment, and instructing the first equipment to perform pairing connection with the second equipment according to the pairing connection instruction.
In a third aspect, an embodiment of the present application further provides an apparatus for device pairing connection, where the apparatus includes: the device comprises a pairing voice determining module, a pairing instruction connecting module and a first pairing connecting module. The pairing voice determining module is used for sending pairing voice to the second device in the pairing mode. The pairing voice is generated in advance according to the identity information of the first device. The pairing connection instruction receiving module is used for receiving a pairing connection instruction sent by the second device, and the pairing connection instruction is determined by the second device according to the received pairing voice. The first pairing connection module is used for carrying out pairing connection with the second equipment according to the pairing connection instruction.
In a fourth aspect, an embodiment of the present application further provides a device pairing connection method, where the device includes: the system comprises a pairing voice receiving module, an identity information confirming module, a pairing connection instruction determining module and a second pairing connection module. The paired voice receiving module is used for receiving the paired voice sent by the first device. The pairing voice is generated in advance according to the identity information of the first device. The identity information confirmation module is used for determining the identity information of the first equipment according to the pairing voice. And the pairing connection instruction determining module is used for determining a pairing connection instruction according to the identity information. The second pairing connection module is used for sending the pairing connection instruction to the first equipment and indicating the first equipment to be paired and connected with the second equipment according to the pairing connection instruction.
In a fifth aspect, an embodiment of the present application further provides a device pairing connection system, where the system includes a first device and a second device. The first equipment is used for sending the delivery voice to the second equipment in the pairing mode. The pairing voice is generated in advance according to the identity information of the first device. The second device is used for receiving the pairing voice sent by the first device. The second device is further used for determining the identity information of the first device according to the pairing voice. The second device is further configured to determine a pairing connection instruction according to the identity information. The first device is further configured to receive a pairing connection instruction sent by the second device. The first equipment is also used for carrying out pairing connection with the second equipment according to the pairing connection instruction.
In a sixth aspect, the present application further provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be called by a processor to execute the method according to the first aspect or the second aspect.
According to the technical scheme provided by the invention, the pairing voice is sent to the second equipment in the pairing mode, the pairing voice generated in advance according to the identity information of the first equipment is paired and connected with the second equipment, the pairing connection instruction is determined after the second equipment receives the pairing voice, the pairing connection is performed with the second equipment according to the received pairing connection instruction sent by the second equipment, the identity of the first equipment can be identified through the pairing connection performed through the pairing voice, the safety of the pairing connection process is improved, in addition, the target equipment does not need to be manually searched by a user through a voice mode, the pairing connection process is greatly simplified, and compared with a Bluetooth connection mode, a longer pairing connection distance can be supported.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments, not all embodiments, of the present application. All other embodiments and drawings obtained by a person skilled in the art based on the embodiments of the present application without any inventive step are within the scope of the present invention.
FIG. 1 is a schematic diagram illustrating an application environment according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for pairing and connecting devices according to an embodiment of the present application;
FIG. 3 is a schematic interface diagram illustrating a setup interface according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for pairing and connecting devices according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a method for pairing and connecting devices according to another embodiment of the present application;
FIG. 6 is a schematic flow chart of step S310 in another embodiment of the present application;
FIG. 7 is a schematic flow chart of step S310 in another embodiment of the present application;
fig. 8 is a flowchart illustrating a method for pairing and connecting devices according to still another embodiment of the present application;
fig. 9 is a flowchart illustrating a method for pairing and connecting devices according to a further embodiment of the present application;
fig. 10 is a schematic flow chart of step S520 in a further embodiment of the present application;
fig. 11 is a schematic flow chart of step S530 in a further embodiment of the present application;
fig. 12 is a block diagram illustrating a structure of a device pairing connection apparatus according to an embodiment of the present application;
fig. 13 is a block diagram illustrating a device pairing-connection apparatus according to another embodiment of the present application;
fig. 14 is a block diagram illustrating an electronic device according to an embodiment of the present application;
fig. 15 shows a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
With the development of communication technology, more and more electronic devices have an internet communication function, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a smart home device, and the like. The user can carry out pairing connection on two or more devices according to the requirement, so that information transmission between the devices is realized. For example, the bluetooth headset is coupled in pair with the user terminal, so that the bluetooth headset can play audio data transmitted by the user terminal. Or the other equipment is controlled by one equipment, so that the remote control operation of the equipment is realized. For example, in an intelligent home system, a user terminal and home equipment are connected in a pairing manner, for example, an air conditioner, a television and the like are connected in a pairing manner. Therefore, the user terminal can control the working state of the household equipment, such as turning on an air conditioner, selecting a playing channel of a television and the like.
At present, most of pairing connection between devices adopts a bluetooth pairing connection mode. The bluetooth technology is based on low-cost short-distance wireless connection, the pairing connection between devices through bluetooth usually requires that both sides of the devices connected through pairing are started, a user clicks a scanning search device on one device, clicks a device to be paired and connected in a searched device list, the process is complicated, and the pairing distance supportable by the bluetooth technology is limited.
In order to solve the above problem, the inventor of the present application has proposed a device pairing connection method, apparatus, system, and storage medium provided by the present application, in a pairing mode, sending a pairing voice to a second device, performing pairing connection with the second device through the pairing voice generated in advance according to identity information of a first device, determining a pairing connection instruction after the second device receives the pairing voice, performing pairing connection with the second device according to the received pairing connection instruction sent by the second device, performing pairing connection through the pairing voice can identify an identity of the first device, improve security of a pairing connection process, and in a voice manner, a user does not need to manually search for a target device, which greatly simplifies a pairing connection process, and can support a longer pairing connection distance compared to a bluetooth connection manner.
The following description is directed to an application environment of the device pairing connection method according to the embodiment of the present invention.
Referring to fig. 1, fig. 1 illustrates a device pairing connection system provided in an embodiment of the present application, where the device pairing connection system includes: a first device 100 and a second device 200.
In some embodiments, the first device 100 is configured to send a pairing voice to the second device 200 in the pairing mode. The pairing voice is generated in advance according to the identity information of the first device 100.
In this embodiment, the first device 100 may include an audio playing apparatus, and the audio playing apparatus may be configured to send a pairing voice to perform pairing connection when the first device 100 performs pairing connection. The first device 100 may include, but is not limited to, a terminal device such as a smart phone, a tablet computer, a wearable device, a smart home device, and the like, and it is to be understood that the first device 100 may also be any other terminal device having an audio playing apparatus. Alternatively, the audio playing device may be a speaker or other devices that can be used to transmit audio signals, which is not limited in this application.
In this embodiment, the first device 100 is further configured to receive a pairing connection instruction sent by the second device 200. And the first device 100 is also used for pairing-connection with the second device 200 according to the pairing-connection instruction.
In some embodiments, the second device 200 is configured to receive the pairing voice transmitted by the first device 100. In this embodiment, the second device 200 may include an audio receiving apparatus, and the audio receiving apparatus may be configured to receive the pairing voice transmitted by the first device 100 when the pairing is connected. The second device 200 may include, but is not limited to, a terminal device such as a smart phone, a tablet computer, a wearable device, a smart home device, and the like, and it is to be understood that the second device 200 may also be any other terminal device having an audio receiving apparatus. Alternatively, the audio receiving device may be a microphone, a microphone array, or the like, which may be used to collect audio signals, and the application is not limited thereto.
In some embodiments, the first device 100 may further include an audio receiving means, and the second device 200 may further include an audio playing means. That is, in some embodiments, the second device 200 may issue a pairing voice to perform pairing connection with the first device 100, and the first device 100 or the second device 200 may serve as a sender or a receiver of the pairing voice, which is not limited in this application.
In this embodiment, the second device 200 is configured to determine the identity information of the first device 100 according to the pairing voice. The second device 200 is further configured to determine a pairing connection instruction according to the identity information.
In some embodiments, after the first device 100 and the second device 200 are connected in a pairing manner, data transmission between the first device and the second device can be realized through the internet. Optionally, the internet described above uses standard communication technologies and/or protocols. The internet is typically the internet, but can be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), any combination of mobile, wireline or wireless networks, private or virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), transport Layer Security (TLS), virtual Private Network (VPN), internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above. Alternatively, the first device 100 and the second device 200 may be connected to the same internet after the first device 100 emits the pairing voice. Alternatively, the first device 100 and the second device 200 may be connected to the same internet after the first device 100 sends the pairing voice. This is not limited by the present application.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, an embodiment of the present application provides a device pairing connection method, which can be applied to a first device, and the method can include steps S110 to S130.
And step S110, sending pairing voice to the second equipment in the pairing mode. The pairing voice is generated in advance according to the identity information of the first device.
In the embodiment of the application, the first device can perform pairing connection with the second device by sending pairing voice to the second device in the pairing mode.
In some embodiments, the user may trigger the first device to generate a pairing signal, and the first device may initiate the pairing mode after receiving the pairing signal triggered by the user.
In some embodiments, the first device is provided with a key for triggering the pairing signal, by pressing which the user can trigger the first device to generate the pairing signal. Alternatively, the key may be a key specifically arranged to trigger the pairing signal. Alternatively, the key may also be a key of the first device that may be used for other functions, such as a power key, a volume key, etc. Optionally, the key may be pressed a preset number of times and/or for a preset time to trigger the first device to generate the pairing signal. For example, the generation of the pairing signal is triggered by continuously pressing the power key for 3 seconds, by continuously pressing the volume key twice, or the like.
In some embodiments, taking the first device as a smartphone as an example, with reference to fig. 3, the user may trigger the starting of the pairing mode in a setting interface related to pairing connection displayed by the first device. As shown in fig. 3, a user may click on a switch control of the pairing mode in the setting interface to control the on or off of the trigger mode. When the switch control is started, the generation of the pairing signal is triggered, so that the first equipment starts the pairing mode according to the pairing signal.
In some embodiments, the first device further comprises an audio receiving means, and the first device may receive a voice instruction of the user. The user can control the first device to start the pairing mode through voice instructions. For example, a user sends a voice instruction "start pairing mode", the first device receives the voice instruction, obtains instruction content through voice recognition, and triggers generation of a pairing signal according to the instruction content, so that the first device starts the pairing mode according to the pairing signal.
Due to different factors such as sex, age and physiological structure of the vocal organs, the voice of each person has unique voiceprint characteristics, and different persons can be distinguished through the voiceprint characteristics. In the embodiment of the application, in order to distinguish different devices, corresponding pairing voices are set according to the identity information of each device, so that different devices can be distinguished through the pairing voices. The pairing voice of each device is generated in advance according to the identity information of the first device, the identity information of different devices is different, and the pairing voice determined by the identity information has the unique voiceprint feature of the first device, so that different devices can be distinguished through the pairing voice.
Alternatively, the pairing voice may be generated from the identity information of the first device and stored in the memory of the first device. After the first device starts the pairing mode, the first device may retrieve audio data of the pairing voice from the memory and transmit the pairing voice. Optionally, the audio data of the paired voice may also be generated by acquiring the identity information of the first device after the first device starts the pairing mode, and according to the identity information of the first device.
As an embodiment of the present invention, the voiceprint characteristics may include, but are not limited to, fundamental frequency parameters, formant parameters, harmonic parameters, etc., so that different devices have different paired voices due to differences in voiceprint characteristics.
As an embodiment of the present invention, the identity information of the first device may include fixed information. Optionally, the fixed information may include, but is not limited to, one or more of a device identification, a device type identification, a physical address, and a device door identification of the first device.
As an embodiment of the present invention, the identity information of the first device may further include variable information. Alternatively, the variable information may include, but is not limited to, an age of the first device, a battery level of the first device, and the like. Optionally, the variable information may further include a transmission time of the paired voice, a communication connection mode supportable by the first device, and the like.
As an embodiment of the present invention, the voiceprint feature of the first device is determined by the identity information, and the paired speech having the voiceprint feature may be synthesized. Optionally, the text content of the paired voices may be preset fixed content, that is, the content of the paired voices played back by the first device is the same each time the first device performs the paired connection. For example: wait for a connection, etc. Optionally, the text content of the paired voice may further include the sending time of the paired voice, the supportable communication connection mode of the first device, and the like, that is, the played content of the paired voice may be different each time the first device performs the paired connection, and the specific content of the paired voice may be determined according to the sending time of the paired voice, the supportable communication connection mode of the first device, and the like. Optionally, the content of the paired voice may include a verification portion. The content of the verification section includes a keyword for triggering the second device to perform confirmation recognition on the paired voice. For example, the keyword is "start pairing", and when the second device receives the pairing voice, if the keyword "start pairing" is determined through voice recognition, the pairing connection is performed according to the received pairing voice.
As an embodiment of the present invention, the correspondence between the identity information of the first device and the voiceprint feature of the paired voice and/or the text content of the paired voice may be determined according to a preset rule.
Optionally, the identity information of the first device may be input into a pre-trained pairing speech synthesis model, and the pairing speech synthesis model synthesizes pairing speech corresponding to the first device according to the identity information of the first device. It can be understood that the paired speech synthesis model can be trained by using a large amount of identity information training data by using a preset deep neural network.
In embodiments of the application, the second device may be a device within range of the paired voice propagation that can receive the paired voice. Alternatively, the number of the second devices may be one or more, which is not provided for in the present application.
The embodiment of this application adopts to pair pronunciation and pairs the connection, because the frequency channel of ordinary voice, the propagation distance can reach one hundred meters on the theory, and in some implementation modes, equipment voiceprint characteristic can also adopt frequency channels such as infrasound, and the propagation distance can be farther, can reach several hundred meters. And the propagation distance of civilian bluetooth is about ten meters, compares with bluetooth, and this application adopts to pair the pronunciation and connects, can support farther pairing distance.
And step S120, receiving a pairing connection instruction sent by the second equipment. The pairing connection instruction is determined by the second device according to the received pairing voice.
In the embodiment of the present application, after the first device sends the paired voice, the second device having the voice receiving function receives the paired voice. And the second equipment determines a pairing connection instruction according to the pairing voice sent by the first equipment. The first equipment receives a pairing connection instruction sent by the second equipment.
In the embodiment of the application, after the second device determines the identity information of the first device according to the pairing voice, if it is determined that pairing connection is performed with the first device, a corresponding pairing connection instruction is generated.
In one embodiment, the pairing connection command is transmitted by means of a voice signal, and the first device receives the pairing connection command through the audio receiving device. As an embodiment, the first device may further receive a pairing connection instruction through the wireless network. This is not limited by the present application.
As an implementation manner, the first device sends a prompt message after receiving the pairing connection instruction sent by the second device. The prompting information includes, but is not limited to, a prompting voice, such as the second device agreeing to the paired connection. The prompt may also be a vibration signal, such as by vibrating at a preset frequency for a preset time to indicate that the first device received the pairing connection instruction. It is to be understood that the present invention is not limited thereto, and other manners may be used to indicate that the first device receives the pairing connection instruction, such as the on/off state of the corresponding indicator light.
And step S130, pairing and connecting with the second equipment according to the pairing and connecting instruction.
In the embodiment of the application, the first device performs pairing connection with the second device according to the received pairing connection instruction.
In some embodiments, the pairing connection instruction includes identity information of the second device, such as a device identification, a physical address, etc. of the second device. In some embodiments, the pairing connection instruction further includes a time at which the pairing voice is received by the second device. In some embodiments, the pairing connection instruction further includes a pairing connection mode supportable by the second device.
In some embodiments, the first device receives the pairing connection instruction, that is, the second device agrees to perform pairing connection with the first device, and the first device may perform pairing connection with the second device directly according to the pairing connection instruction.
In some embodiments, the first device receives the pairing connection instruction, and determines related information of the second device, such as a supportable communication method, a distance from the first device, and the like, according to the pairing connection instruction. Optionally, a connection condition may also be preset, and when the related information of the second device meets the preset condition, the first device performs pairing connection with the second device according to the pairing connection instruction.
According to the device pairing connection method provided by the embodiment of the application, pairing voice is sent to the second device in the pairing mode, pairing connection is carried out on the second device through the pairing voice generated in advance according to the identity information of the first device, the pairing connection instruction is determined after the second device receives the pairing voice, pairing connection is carried out on the second device according to the received pairing connection instruction sent by the second device, the identity of the first device can be identified through the pairing connection carried out through the pairing voice, the safety of the pairing connection process is improved, in addition, through the voice mode, the user does not need to manually search for the target device, the pairing connection process is greatly simplified, and compared with a Bluetooth connection mode, a longer pairing connection distance can be supported.
Referring to fig. 4, another embodiment of the present application provides a device pairing connection method, which can be applied to a first device, and the method can include steps S210 to S250.
Step S210, in the pairing mode, acquiring identity information of the first device.
In an embodiment of the present application, a first device acquires identity information of the first device in a pairing mode.
In an embodiment of the present application, the identity information of the first device includes, but is not limited to, one or more of a physical address, a device identification, and a device type identification of the first device. Where the physical address is an identifier used to tag each device in the network. The physical address of each device in the network is different. The device identification may include a device ID (device ID), an IMEI (International Mobile Equipment Identity), and the like. The device type identifier may include a door type of the device, such as a smart speaker, a smart desk lamp, and the like.
In an embodiment of the present application, the identity information of the first device may be stored in a memory of the first device in advance, and in the pairing mode, the first device retrieves the identity information of the first device from the memory.
And S220, determining the target voiceprint characteristics according to the identity information of the first equipment.
In an embodiment of the application, the first device determines the target voiceprint feature according to the identity information of the first device.
In some embodiments, the first device may determine, according to the identity information of the first device and the first preset correspondence, a target voiceprint feature corresponding to the identity information of the first device. The first preset corresponding relation represents the corresponding relation between the identity information of the first device and the target voiceprint feature.
As an embodiment, the target voiceprint characteristics include one or more of a fundamental frequency parameter, a formant parameter, a harmonic parameter.
The fundamental frequency (fundamental frequency) parameter refers to the lowest oscillation frequency of the free oscillation system, and refers to the lowest frequency in the complex wave. Wherein the higher the fundamental frequency parameter, the sharper the emitted sound.
The formants refer to regions where energy is relatively concentrated in the frequency spectrum of sound, and the sound is filtered by the cavity when passing through the resonant cavity, so that energy of different frequencies in the frequency domain is redistributed, one part is strengthened due to the resonance of the resonant cavity, and the other part is attenuated. Since the energy distribution is not uniform, the strong portion is called a formant as if it were a mountain peak. Formants determine the quality of vowels, and are important parameters for determining timbre and tone quality. The formant parameters may include formant frequency, frequency bandwidth, amplitude, and the like.
Harmonic parameters refer to vibrations of other frequencies in the sound than the fundamental frequency, and the superposition or subtraction of these vibrations produces the appearance of vibrations of more frequencies, i.e. harmonics. The harmonic parameters include the frequency, the magnitude, the proportion of vibration and the like of other vibration besides the fundamental frequency in the sound.
Optionally, the first preset corresponding relationship may be that the device type identifier determines a fundamental frequency parameter. The device type may include different types such as a smart television, a smart lamp, a smart air conditioner, and the like, and illustratively, the device type identifier a may represent the smart television, the device type identifier B may represent the smart lamp, and the device type identifier C may represent the smart air conditioner; the first preset corresponding relationship may be that the fundamental frequency parameter of the device type identifier a is 100Hz, the fundamental frequency parameter of the device type identifier B is 150Hz, and the fundamental frequency parameter of the device type C is 200Hz. Therefore, the fundamental frequency parameter can be determined through the device type identifier and the first preset corresponding relationship, and it can be understood that the application is not limited thereto, and the first preset corresponding relationship can also be set according to actual use needs.
Optionally, the first preset correspondence may be that the identifier of the device determines a harmonic parameter. The identification of the devices is used to characterize the unique identification of each device for use in distinguishing each different device. The identity of the device may for example be an identification code for characterising the device. The first preset corresponding relationship may be set according to a difference in format of the identification code. For example in terms of the number of digits, type of identification code, etc. Illustratively, if the device identifier is a 3-bit digital code, the first predetermined relationship may be that a harmonic is set and its frequency value corresponds to the 3-bit digital code of the device identifier. Such as: if the identifier of the device 1 is "111", the corresponding harmonic parameter is 111Hz; device 2 is identified as "160" and its corresponding harmonic parameter is 160Hz. In some embodiments, due to different identification formats of the devices, the identifier of the device cannot be completely represented by only using the frequency of one harmonic, in this case, the first preset relationship may also be that the identifiers of the devices are represented by the frequencies of multiple harmonics together, and the order of the identifiers may be determined by the proportion of the harmonics, for example, the higher proportion of the harmonics may be ranked earlier. Illustratively, the device 3 is identified as "120230", the first preset relationship may be that the harmonic parameter of the first harmonic corresponding to the device 3 is 120Hz, the harmonic parameter of the second harmonic is 230Hz, and the proportion of the first harmonic is greater than that of the second harmonic. When the identification of the equipment is confirmed, the sequence can be determined by the harmonic parameter 120Hz of the first harmonic, the harmonic parameter 230Hz of the second harmonic and the proportion of the two, so that the identification of the equipment is '120230'. It can be understood that the present application is not limited thereto, and the first preset corresponding relationship may also be set according to actual use requirements.
Alternatively, the first preset correspondence may be that the physical address of the device determines the formant parameter. The physical address is an identifier used to mark each device in the network. The physical address of the target device is obtained, and then data can be transmitted and received to and from the target device. The first predetermined relationship may correspond the formant parameters to physical addresses. Illustratively, the physical address may be composed of 6 sub-addresses, each of which is a 16-ary number, such as: 00-0D-87-ED-5E-6F, each sub-address can be represented by 6 formants, and the amplitude of each formant represents the value of each sub-address, and for convenience of representation, a 16-system number of each sub-address can be converted into a 10-system number and represented by the amplitude of the formant. And the order of each sub-address may be sorted according to the frequency of the formants, for example, the order of the smaller frequency is first. Illustratively, the physical address of the device: 00-0D-87-ED-5E-6F includes the first sub-address "00" being converted to 10 to "00", i.e., the corresponding first formant has an amplitude of 0dB. The second sub-address "0D" is converted to 10 to be "13", that is, the amplitude of the corresponding second formant is 13dB. The third sub-address "87" is converted to 10 and then to "135", that is, the amplitude of the corresponding third formant is 135dB. The fourth sub-address "ED" is converted to 10 and then is "237", that is, the amplitude of the corresponding fourth formant is 237dB. The fifth sub-address "5E" is converted to 10 and then "94", that is, the amplitude of the corresponding fifth formant is 94dB. The sixth sub-address "6F" is converted to 10 and then becomes "111", that is, the amplitude of the corresponding sixth formant is 111dB. Wherein the frequency magnitude relation of each formant is as follows: and determining the order of the sub-addresses according to the frequency of the formants, and finally determining the physical address of the equipment. It is to be understood that the present application is not limited thereto, and the first preset corresponding relationship may also be set according to actual use requirements, for example, the order of the sub-addresses may also be determined by different amplitudes, the sub-addresses may also be determined by frequency values of formants, and the like.
And step S230, determining the paired voice according to the target voiceprint characteristics.
In the embodiment of the application, the first device may synthesize the paired voice according to the determined target voiceprint feature, and send the paired voice through an audio playing device such as a speaker.
And step S240, receiving a pairing connection instruction sent by the second device. The pairing connection instruction is determined by the second device according to the received pairing voice.
And step S250, carrying out pairing connection with the second equipment according to the pairing connection instruction.
For the detailed description of steps S240 to S250, refer to steps S120 to S130, which are not described herein again.
In the device pairing connection method provided by another embodiment of the present application, on the basis of the first embodiment, in the pairing mode, the identity information of the first device is acquired, the target voiceprint feature is determined according to the identity information of the first device, so that the pairing voice is determined according to the target voiceprint, the identity of the first device can be identified by performing pairing connection through the pairing voice, the security of the pairing connection process is improved, and in a voice manner, a user does not need to manually search for the target device, the pairing connection process is greatly simplified, and compared with a bluetooth connection manner, a farther pairing connection distance can be supported.
Referring to fig. 5, another embodiment of the present application provides a device pairing connection method, which can be applied to a first device and includes steps S310 to S330.
Step S310, in the pairing mode, the pairing voice is determined according to the identity information of the first device and the target wireless communication mode of the first device.
In an embodiment of the present application, in the pairing mode, the first device determines the pairing voice according to the identity information of the first device, that is, the target wireless communication mode of the first device. That is, the pairing voice not only contains identity information that can identify the first device, but also includes a wireless communication mode supported by the first device.
As an embodiment, the target wireless communication mode may include, but is not limited to, a sound wave communication mode, a bluetooth communication mode, a Wifi communication mode, and other wireless communication modes.
As an embodiment, the first device may simultaneously support one or more target wireless communication modalities.
As an embodiment, the paired voice may further include information related to a network to which the first device is connected. For example, the first device employs Wifi communication, and the paired voice may also include a Wifi name and a password at the same time, so that the second device may access the same network as the first device through the related information.
As one embodiment, the matching text of the matching voice can be determined according to the target wireless communication mode. As another embodiment, the target voiceprint characteristics of the paired speech can be determined based on the target wireless communication manner.
Specifically, referring to fig. 6, fig. 6 is a schematic flow chart illustrating step S310 in another embodiment of the present application. In this embodiment, the first device determines the pairing text of the pairing voice according to the target wireless communication mode. As will be specifically explained below, in an embodiment of the present application, step S310 may include steps S311 to S314.
Step S311, in the pairing mode, acquiring the identity information of the first device and the target wireless communication mode of the first device.
In an embodiment of the present application, in the pairing mode, the first device acquires identity information of the first device and a target wireless communication mode of the first device.
In some embodiments, the identity information of the first device may include, but is not limited to, a device identification, a device type identification, a physical address, etc. of the first device. The identity information of the first device may be stored in a memory of the first device in advance, and the first device may retrieve the identity information of the first device from the memory.
In some embodiments, the target wireless communication modality of the first device may be a current wireless communication modality of the first device. The wireless communication mode currently supported by the first device can be determined by acquiring the current network state of the first device. For example, whether bluetooth of the first device is turned on, whether Wifi is connected, and whether voice reception is turned on.
In some embodiments, the target wireless communication mode of the first device may also be a preset wireless communication mode. For example, the mode in which the first device wirelessly communicates with the second device is preset to be acoustic wave communication. Optionally, the first device may further obtain a current network status, and determine whether the first device supports the target wireless communication mode. For example, when the target wireless communication mode is bluetooth communication, whether the audio acquisition function of the first device is turned on or not can be determined, and when the audio acquisition function of the first device is in a turned-off state, an instruction can be sent to control the audio acquisition device of the first device to be turned on, and a user can be reminded to turn on the audio acquisition function of the first device.
Step S312, determining a target voiceprint feature corresponding to the identity information of the first device according to the identity information of the first device and the second preset corresponding relationship. The second preset correspondence represents a correspondence between the identity information of the first device and the target voiceprint feature.
The detailed description of step S312 may refer to step S220, which is not described herein again.
And step S313, determining the paired text content according to the target wireless communication mode.
In an embodiment of the application, the first device may determine the paired text content according to the target wireless communication mode, so as to carry information related to the target wireless communication mode in the paired voice.
In some embodiments, the format of the paired text content may be "keyword + target wireless communication mode", for example, the keyword may be "communication", the target wireless communication mode is "Wifi", the paired text content may be "Wifi communication", and after recognizing the keyword communication, the second device may acquire the text content after communication as the target wireless communication mode.
In some embodiments, the target wireless communication mode may also adopt a preset mark, for example, the number "1" may be used to represent "Wifi communication", and the letter "a" may be used to represent acoustic communication. It is to be appreciated that the present application is not so limited and that other implementations of formatting the paired textual content are possible.
And step S314, synthesizing the paired voice according to the target voiceprint characteristics and the paired text content.
In other embodiments, the first device may further determine the paired voice by determining a target voiceprint characteristic of the paired voice according to the target wireless communication manner. Specifically, referring to fig. 7, fig. 7 is a schematic view illustrating another flow chart of step S310 in another embodiment of the present application. In an embodiment of the present application, step S310 may include steps S315 to S318.
Step S315, in the pairing mode, acquiring identity information of the first device and a target wireless communication mode of the first device.
For a detailed description of step S315, refer to step S311, which is not described herein again.
Step S316, determining the identity information of the first device and the target voiceprint feature corresponding to the target wireless communication mode according to the identity information of the first device, the target wireless communication mode and the third preset corresponding relationship. The third preset corresponding relation represents the corresponding relation among the identity information of the first equipment, the target wireless communication mode and the target voiceprint feature.
In an embodiment of the application, the first device determines, according to the identity information of the first device and the target wireless communication mode, the identity information of the first device and a target voiceprint feature corresponding to the target wireless communication mode. Specifically, the identity information of the first device and the target voiceprint feature corresponding to the target wireless communication mode may be determined through a preset third preset corresponding relationship. And the third preset corresponding relation represents the corresponding relation among the identity information of the first equipment, the target wireless communication mode and the target voiceprint characteristic.
Optionally, the identity information of the first device may include, but is not limited to, a device identification, a device type identification, a physical address, and the like. Alternatively, the targeted wireless communication means may include, but is not limited to, acoustic wave communication, wifi communication, bluetooth communication, and the like. Alternatively, the target voiceprint characteristics can include, but are not limited to, fundamental frequency parameters, formant parameters, harmonic parameters, and the like.
Optionally, the third preset corresponding relationship may be that a fundamental frequency parameter is determined according to the device type identifier, a harmonic parameter is determined according to the device identifier, a formant frequency in the formant parameter is determined according to the physical address of the first device, and an amplitude in the formant parameter is determined according to the target wireless communication mode. Illustratively, the amplitude of the formant can be adjusted according to different target wireless communication modes by setting a formant of a specific frequency, illustratively, a communication formant of 100Hz can be set for specially setting the target wireless communication mode, and when the target wireless communication mode is acoustic wave communication, the amplitude of the communication formant is set to 50dB; when the target wireless communication mode is Wifi communication; the amplitude of the communication formant is set to 100dB; when the target wireless communication mode is bluetooth communication, the amplitude of the communication formant is set to 150dB. It is to be understood that the present application is not limited thereto, and other parameters of the formant parameters, such as the frequency of formants, the number of formants, etc., may also be determined by the targeted wireless communication means. In addition, the specific implementation manner of determining the fundamental frequency parameter according to the device type identifier, determining the harmonic parameter according to the device identifier, and determining the formant frequency in the formant parameter according to the physical address of the first device may refer to the specific description in step S220, and is not described herein again.
And S317, synthesizing paired voices according to the target voiceprint characteristics and preset paired text contents.
In this embodiment, the text content of the paired voices may also be a preset fixed text content. For example, the preset pairing text content may be "waiting for connection", and it is understood that the present invention is not limited thereto, and the preset pairing text content may also be set as other content according to actual use needs.
And step S320, receiving a pairing connection instruction sent by the second equipment. And the pairing connection instruction is determined by the second equipment according to the received pairing voice.
And step S330, performing pairing connection with the second equipment according to the pairing connection instruction.
For the detailed description of steps S320 to S330, refer to steps S120 to S130, which are not described herein again.
In another embodiment of the present application, a device pairing connection method is further defined based on the first embodiment, in a pairing mode, by obtaining identity information of a first device and a target wireless communication mode, determining pairing voice according to the identity information of the first device and the target wireless communication mode, performing pairing connection through the pairing voice can identify an identity of the first device, improve security of a pairing connection process, and can instruct a second device to perform communication in the target wireless communication mode, and through the voice mode, a user does not need to manually search for a target device, which greatly simplifies the pairing connection process, and can support a longer pairing connection distance compared to a bluetooth connection mode.
Referring to fig. 8, another embodiment of the present application provides a device pairing connection method applicable to a first device, where the method includes steps S510 to S540.
And step S410, sending the pairing voice to the second equipment in the pairing mode. The pairing voice is generated in advance according to the identity information of the first device.
And step S420, receiving a pairing connection instruction sent by the second equipment. The pairing connection instruction is determined by the second device according to the received pairing voice.
For details of steps S410 to S420, refer to steps S110 to S120, which are not described herein again.
And step S430, determining the detection distance between the first device and the second device.
In this embodiment of the application, the pairing connection instruction sent by the second device may carry information related to the second device, and the first device may further determine information related to the second device after receiving the pairing connection instruction sent by the second device, for example, a physical address of the second device, a supportable wireless communication method, and the like, so as to further determine whether to perform pairing connection with the second device.
In an embodiment of the application, the pairing connection instruction includes a reception time at which the second device receives the pairing voice. It will be appreciated that in some usage scenarios, such as a home environment, a user may only wish devices within the premises to be paired. In order to prevent other devices from performing pairing connection with devices outside the range of the house, in the embodiment of the present application, the pairing connection instruction of the second device includes the receiving time of the second device for receiving the pairing voice. The first device may pre-store a sending time of the first device sending the pairing voice, and the detection distance between the first device and the second device may be determined according to the sending time and the receiving time of the pairing voice.
And step S440, if the detection distance is smaller than the preset distance threshold, performing pairing connection with the second equipment according to the pairing connection instruction.
After determining the detected distance between the first device and the second device in step S430, the first device may compare the detected distance with a preset distance threshold, and further determine whether the second device is within the target range.
In the embodiment of the present application, the preset distance threshold may be determined according to actual use needs, for example, the preset distance threshold may cover a range occupied by a house, so that devices within the range of the house may perform pairing connection.
In the embodiment of the application, if it is determined that the detection distance is smaller than the preset threshold, the first device performs pairing connection with the second device according to the pairing connection instruction, so that the range of the device in pairing connection can be controlled.
In another embodiment of the present application, a device pairing connection method is further defined based on the first embodiment, where whether to perform pairing connection with a second device is determined according to a distance between the first device and the second device, so that a range of the device to be connected in a pairing mode can be set, and in a pairing mode, by obtaining identity information of the first device and a target wireless communication manner, a pairing voice is determined according to the identity information of the first device and the target wireless communication manner, and by performing pairing connection through the pairing voice, an identity of the first device can be identified, so as to improve security of a pairing connection process, and the second device can be instructed to perform communication in the target wireless communication manner.
Referring to fig. 9, a method for pairing and connecting devices, which is applicable to a second device, is further provided according to another embodiment of the present disclosure and includes steps S510 to S520.
Step S510, receiving the pairing voice sent by the first device. The pairing voice is generated in advance according to the identity information of the first device.
In an embodiment of the application, the second device receives the pairing voice transmitted by the first device. The second device is provided with audio acquisition means, such as a microphone, an array of microphones, etc. Optionally, when the second device is in operation, the audio capture device of the second device may be always in an on state. Optionally, when the pairing mode of the second device is turned on, the audio capture device of the second device is turned on to receive the pairing voice of the first device.
And step S520, determining the identity information of the first equipment according to the paired voice.
In an embodiment of the present application, the second device may determine identity information of the first device according to the paired voice.
In some implementations, the second device can determine the target voiceprint feature from the paired speech. In other embodiments, the second device may determine the target voiceprint characteristics and the paired text from the paired speech.
In some embodiments, the second device may determine identity information of the first device through the target voiceprint feature. In some embodiments, the second device may also determine the target wireless communication mode of the first device through the target voiceprint characteristics. In some embodiments, the second device may also determine the target wireless communication mode of the first device through the pairing text.
Referring to fig. 10, a schematic flow chart of step S520 in another embodiment of the present application is shown in fig. 10. In an embodiment of the present application, step S520 may include steps S521 to S522.
And step S521, determining the target voiceprint characteristics according to the paired voice.
In some embodiments, the target voiceprint characteristics include one or more of a fundamental frequency parameter, a formant parameter, a harmonic parameter.
Step S522, determining the identity information of the first device and the target wireless communication mode of the first device according to the target voiceprint feature.
In some embodiments, the second device may pass the paired speech through a pre-trained target voiceprint feature recognition model, which may determine the target voiceprint features from the paired speech. The target voiceprint feature recognition module can be formed by training a large amount of paired voice data by adopting a preset deep neural network.
In some embodiments, the second device may determine the target voiceprint feature of the paired speech according to a preset correspondence. The preset corresponding relation represents the corresponding relation between the target voiceprint characteristics and the identity information of the first device.
Step S530, determining a pairing connection instruction according to the identity information.
In an embodiment of the present application, the second device may determine the pairing connection instruction according to the identity information. In some embodiments, the second device determines whether to pair with the first device based on the identity information. Optionally, when the identity information of the first device meets a preset condition, the second device confirms that pairing connection is performed with the first device. Alternatively, the second device may also confirm whether to perform pairing connection with the first device by querying the user.
Specifically, referring to fig. 11, fig. 11 is a schematic flowchart illustrating step S530 in a further embodiment of the present application. In an embodiment of the present application, step S530 may include steps S531 to S535.
Step S531, determining whether the first device is a verified device according to the identity information and a preset device identity library, where the preset device identity library includes identity information of the verified device connected in a pairing manner with the second device.
In an embodiment of the application, the preset device identity library may store identity information of a plurality of devices in advance. The identity information of the plurality of devices may be identity information of devices that have historically been paired with the second device. Namely, the second device stores the identity information of the first device which is in pairing connection in a preset device identity library.
And step S532, when the first equipment belongs to the verified equipment, generating a pairing connection instruction according to the identity information.
In an embodiment of the present application, when the identity information of the first device is the same as the identity information of one of the devices in the preset device identity library, the first device belongs to a verified device.
In an embodiment of the present application, when the first device belongs to an authenticated device, the second device may generate the pairing connection instruction directly according to the identity information.
Step S533, when the first device does not belong to the authenticated device, generating inquiry information. The query information is used for querying whether the user performs pairing connection with the first device.
In the embodiment of the present application, when the first device does not belong to the authenticated device, the first device performs pairing connection with the second device for the first time. The second device may generate inquiry information to inquire whether the user is in a pairing connection with the first device.
In some embodiments, the query message may ask the user in the form of voice, for example, "XX device wants to connect, please confirm whether to establish a connection. Optionally, the query information may simultaneously display the related information of the first device on the second device in the form of voice playing or message, so as to assist the user in determining whether to perform pairing connection with the first device.
And step S534, obtaining the inquiry result.
In an embodiment of the application, the user may reply to the query of the second device by voice reply or in the form of a selection on a display interface, etc. For example, the user may respond "agree to connect" with a voice, or select a "connect" button on the display interface.
And step S535, determining a pairing connection instruction according to the inquiry result.
In the embodiment of the application, the second device determines whether to perform pairing connection with the first device according to the query result, and when it is determined that the pairing connection is performed with the first device, the second device generates a pairing connection instruction.
And S540, sending the pairing connection instruction to the first equipment, and indicating the first equipment to perform pairing connection with the second equipment according to the pairing connection instruction.
In the embodiment of the application, when the pairing connection with the first device is determined, the second device sends the pairing connection instruction to the first device so as to instruct the first device to perform the pairing connection with the second device according to the pairing connection instruction.
In some embodiments, the second device sends the pairing connection instruction to the first device through the target wireless communication mode. The target wireless communication mode may include, but is not limited to, a wireless communication mode such as bluetooth communication, sound wave communication, wifi communication, and the like, which is not limited in this application.
The method for pairing and connecting the devices is applied to a second device side which receives pairing voice, the method determines identity information of the first device according to the pairing voice by receiving the pairing voice sent by the first device, determines a pairing connection instruction according to the identity information, and sends the pairing connection instruction to the first device, so that the first device is indicated to be paired and connected with the second device according to the pairing connection instruction, the identity of the first device can be identified by performing pairing connection through the pairing voice, the safety of the pairing connection process is improved, a user does not need to manually search for a target device, the pairing connection process is greatly simplified, and compared with a Bluetooth connection mode, a longer pairing connection distance can be supported.
Referring to fig. 12, which illustrates an apparatus for connecting device pairing according to an embodiment of the present invention, the apparatus for connecting device pairing 300 includes: the pairing voice determination module 310, the pairing connection instruction receiving module 320 and the first pairing connection module 330.
The paired voice determining module 310 is configured to send paired voice to the second device in the paired mode. The pairing voice is generated in advance according to the identity information of the first device.
The pairing connection instruction receiving module 320 is configured to receive a pairing connection instruction sent by the second device. And determining a pairing connection instruction by the second equipment according to the received pairing voice.
The first pairing connection module 330 is configured to perform pairing connection with the second device according to the pairing connection instruction.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. For any processing manner described in the method embodiment, all the processing manners may be implemented by corresponding processing modules in the apparatus embodiment, and details in the apparatus embodiment are not described again.
Referring to fig. 13, which illustrates a device pairing connection apparatus according to another embodiment of the present invention, the device pairing connection apparatus 400 includes: the system comprises a pairing voice receiving module 410, an identity information confirming module 420, a pairing connection instruction determining module 430 and a second pairing connection module 440.
The paired voice receiving module 410 is configured to receive a paired voice sent by a first device. The pairing voice is generated in advance according to the identity information of the first device.
The identity information confirmation module 420 is configured to determine identity information of the first device according to the pairing voice.
The pairing connection instruction determining module 430 is configured to determine a pairing connection instruction according to the identity information.
The second pairing connection module 440 is configured to send the pairing connection instruction to the first device, and instruct the first device to perform pairing connection with the second device according to the pairing connection instruction.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. For any processing manner described in the method embodiment, all the processing manners may be implemented by corresponding processing modules in the apparatus embodiment, and details in the apparatus embodiment are not described again.
Referring to fig. 14, based on the device pairing connection method, another electronic device 500 including a processor capable of executing the device pairing connection method is provided in the embodiment of the present application, where the electronic device 500 further includes one or more processors 510, a memory 520, and one or more application programs. The memory 520 stores programs that can execute the content of the foregoing embodiments, and the processor 510 can execute the programs stored in the memory.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as paired voice transmission, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal in use (such as pairing voice, pairing connection instruction), and the like.
Referring to fig. 15, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable storage medium 600 has stored therein a program code 610, said program code 610 being invokable by the processor for performing the method described in the method embodiments above.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-volatile computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code 610 can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
In summary, according to the device pairing connection method, apparatus, system and storage medium provided by the present invention, in the pairing mode, the pairing voice is sent to the second device, the pairing connection is performed with the second device through the pairing voice generated in advance according to the identity information of the first device, the second device determines the pairing connection instruction after receiving the pairing voice, the pairing connection is performed with the second device according to the received pairing connection instruction sent by the second device, the identity of the first device can be identified through the pairing connection performed by the pairing voice, the security of the pairing connection process is improved, and in addition, through the voice manner, the user does not need to manually search for the target device, the pairing connection process is greatly simplified, and compared with the bluetooth connection manner, a longer pairing connection distance can be supported.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (13)
1. A device pairing connection method is applied to a first device, and comprises the following steps:
in a pairing mode, determining a target voiceprint characteristic according to identity information of the first device, determining a pairing voice according to the target voiceprint characteristic, and sending the pairing voice to the second device, wherein the target voiceprint characteristic comprises a fundamental frequency parameter, a formant parameter and a harmonic parameter, the formant parameter comprises a formant frequency, a frequency bandwidth and an amplitude, and the harmonic parameter comprises the frequency, the magnitude and the proportion of vibration except the fundamental frequency in sound;
receiving a pairing connection instruction sent by the second equipment; the pairing connection instruction is determined by the second equipment according to the received pairing voice;
determining the receiving time of the paired voice received by the second equipment according to the paired connection instruction;
acquiring the sending time for sending the paired voice;
determining a detection distance between the first device and the second device according to the receiving time and the sending time;
and if the detection distance is smaller than a preset distance threshold value, performing pairing connection with the second equipment according to the pairing connection instruction.
2. The method of claim 1, wherein determining the target voiceprint characteristics based on the identity information of the first device comprises:
determining a target voiceprint feature corresponding to the identity information of the first device according to the identity information of the first device and a first preset corresponding relation; the first preset corresponding relation represents the corresponding relation between the identity information of the first device and the target voiceprint feature;
wherein the identity information includes one or more of a physical address, a device identifier, and a device type identifier of the first device.
3. The method of claim 1, wherein in the pairing mode, sending pairing voice to the second device comprises:
and under the pairing mode, determining pairing voice according to the identity information of the first equipment and the target wireless communication mode of the first equipment.
4. The method of claim 3, wherein in the pairing mode, determining a pairing voice according to the identity information of the first device and the target wireless communication mode of the first device comprises:
in a pairing mode, acquiring identity information of the first equipment and a target wireless communication mode of the first equipment;
determining a target voiceprint feature corresponding to the identity information of the first device according to the identity information of the first device and a second preset corresponding relation; the second preset corresponding relation represents the corresponding relation between the identity information of the first equipment and the target voiceprint characteristic;
determining paired text content according to the target wireless communication mode;
and synthesizing the paired voice according to the target voiceprint characteristics and the paired text content.
5. The method of claim 3, wherein in the pairing mode, determining a pairing voice according to the identity information of the first device and the target wireless communication mode of the first device comprises:
in a pairing mode, acquiring identity information of the first equipment and a target wireless communication mode of the first equipment;
determining the identity information of the first equipment and a target voiceprint characteristic corresponding to the target wireless communication mode according to the identity information of the first equipment, the target wireless communication mode and a third preset corresponding relation; the third preset corresponding relation represents the corresponding relation among the identity information of the first equipment, the target wireless communication mode and the target voiceprint feature;
and synthesizing the paired voice according to the target voiceprint characteristics and preset paired text content.
6. A device pairing connection method is applied to a second device, and comprises the following steps:
receiving pairing voice sent by first equipment, wherein the pairing voice is generated in advance according to identity information of the first equipment;
determining a target voiceprint characteristic according to the paired voice, and determining identity information of the first device according to the target voiceprint characteristic, wherein the target voiceprint characteristic comprises a fundamental frequency parameter, a formant parameter and a harmonic parameter, the formant parameter comprises a formant frequency, a frequency bandwidth and an amplitude, and the harmonic parameter comprises the frequency, the magnitude and the proportion of vibration except the fundamental frequency in the sound;
determining a pairing connection instruction according to the identity information;
and sending the pairing connection instruction to the first equipment, wherein the pairing connection instruction comprises receiving time when the pairing voice is received so as to indicate that the first equipment determines the detection distance between the first equipment and the second equipment according to the receiving time and the sending time when the pairing voice is sent, and performs pairing connection with the second equipment according to the pairing connection instruction when the detection distance is smaller than a preset distance threshold.
7. The method according to claim 6, wherein the determining the pairing connection instruction according to the identity confirmation information comprises:
determining whether the first equipment is verified equipment or not according to the identity information and a preset equipment identity library, wherein the preset equipment identity library comprises identity information of verified equipment in pairing connection with the second equipment;
and when the first equipment belongs to the verified equipment, generating a pairing connection instruction according to the identity information.
8. The method of claim 7, wherein determining the pairing connection instruction according to the identity confirmation information further comprises:
generating challenge information when the first device does not belong to an authenticated device; the inquiry information is used for inquiring whether a user is in pairing connection with the first equipment or not;
obtaining an inquiry result;
and determining a pairing connection instruction according to the inquiry result.
9. The method of claim 6, further comprising:
determining a target wireless communication mode of the first device according to the target voiceprint characteristics;
the sending the pairing connection instruction to the first device, instructing the first device to perform pairing connection with the second device according to the pairing connection instruction, including:
and sending the pairing connection instruction to the first equipment in the target wireless communication mode, and indicating the first equipment to perform pairing connection with the first equipment according to the pairing connection instruction.
10. An apparatus for device pairing connection, the apparatus comprising:
the device comprises a pairing voice determining module, a pairing voice determining module and a matching voice sending module, wherein the pairing voice determining module is used for determining a target voiceprint characteristic according to identity information of first equipment in a pairing mode, determining pairing voice according to the target voiceprint characteristic and sending the pairing voice to second equipment, the target voiceprint characteristic comprises a fundamental frequency parameter, a formant parameter and a harmonic parameter, the formant parameter comprises a formant frequency, a frequency bandwidth and an amplitude value, and the harmonic parameter comprises the frequency, the magnitude and the proportion of vibration except the fundamental frequency in sound;
a pairing connection instruction receiving module, configured to receive a pairing connection instruction sent by the second device; the pairing connection instruction is determined by the second equipment according to the received pairing voice;
the detection distance determining module is used for determining the receiving time of the paired voice received by the second equipment according to the paired connection instruction; acquiring sending time for sending the paired voice; determining a detection distance between the first device and the second device according to the receiving time and the sending time;
and the first pairing connection module is used for carrying out pairing connection with the second equipment according to the pairing connection instruction if the detection distance is smaller than a preset distance threshold value.
11. An apparatus for pairing devices, the apparatus comprising:
the paired voice receiving module is used for receiving the paired voice sent by the first equipment; the pairing voice is generated in advance according to the identity information of the first equipment;
the identity information confirmation module is used for determining a target voiceprint feature according to the paired voice and determining identity information of the first device according to the target voiceprint feature, wherein the target voiceprint feature comprises a fundamental frequency parameter, a formant parameter and a harmonic parameter, the formant parameter comprises a formant frequency, a frequency bandwidth and an amplitude, and the harmonic parameter comprises the frequency, the magnitude and the proportion of vibration except the fundamental frequency in the sound;
a pairing connection instruction determination module; the terminal is used for determining a pairing connection instruction according to the identity information;
and the second pairing connection module is used for sending the pairing connection instruction to the first equipment, wherein the pairing connection instruction comprises receiving time when the pairing voice is received so as to indicate the first equipment to determine a detection distance between the first equipment and the second equipment according to the receiving time and sending time when the pairing voice is sent, and when the detection distance is smaller than a preset distance threshold value, pairing connection is carried out on the first equipment and the second equipment according to the pairing connection instruction.
12. A device pairing connection system, the system comprising a first device and a second device;
the first device is used for determining a target voiceprint feature according to the identity information of the first device, determining a paired voice according to the target voiceprint feature and sending the paired voice to the second device in a pairing mode, wherein the paired voice is generated in advance according to the identity information of the first device;
the second device is used for receiving the pairing voice sent by the first device;
the second device is further configured to determine a target voiceprint feature according to the paired voice, and determine identity information of the first device according to the target voiceprint feature, where the target voiceprint feature includes a fundamental frequency parameter, a formant parameter, and a harmonic parameter, the formant parameter includes a formant frequency, a frequency bandwidth, and an amplitude, and the harmonic parameter includes a frequency, a magnitude, and a proportion of vibration of the sound except for the fundamental frequency;
the second device is further configured to determine a pairing connection instruction according to the identity information, where the pairing connection instruction includes a receiving time when the pairing voice is received;
the first device is further configured to receive a pairing connection instruction sent by the second device, and determine, according to the pairing connection instruction, a receiving time for the second device to receive the pairing voice;
the first device is further configured to acquire sending time for sending the paired voice, and determine a detection distance between the first device and the second device according to the receiving time and the sending time; and the first equipment is also used for carrying out pairing connection with the second equipment according to the pairing connection instruction when the detection distance is smaller than a preset distance threshold value.
13. A computer-readable storage medium, having stored thereon program code that is invoked by a processor to perform the method of any one of claims 1-5 or claims 6-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110553845.3A CN113438640B (en) | 2021-05-20 | 2021-05-20 | Equipment pairing connection method, device, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110553845.3A CN113438640B (en) | 2021-05-20 | 2021-05-20 | Equipment pairing connection method, device, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113438640A CN113438640A (en) | 2021-09-24 |
CN113438640B true CN113438640B (en) | 2022-12-02 |
Family
ID=77802565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110553845.3A Active CN113438640B (en) | 2021-05-20 | 2021-05-20 | Equipment pairing connection method, device, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113438640B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113766510A (en) * | 2021-09-28 | 2021-12-07 | 安徽华米信息科技有限公司 | Device binding method, device, system and storage medium |
CN113965929A (en) * | 2021-10-21 | 2022-01-21 | 北京雪扬科技有限公司 | Hardware binding method |
CN115278636B (en) * | 2022-07-20 | 2023-10-31 | 安克创新科技股份有限公司 | Bluetooth device, terminal device and pairing connection method thereof |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255033A (en) * | 2015-06-15 | 2016-12-21 | 卡西欧计算机株式会社 | Information transmitting apparatus, method for sending information, portable terminal device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11452153B2 (en) * | 2012-05-01 | 2022-09-20 | Lisnr, Inc. | Pairing and gateway connection using sonic tones |
KR20140104215A (en) * | 2013-02-20 | 2014-08-28 | 삼성전자주식회사 | Wireless network audio system having auto pairing function and method of auto pairing using the same |
US20140256260A1 (en) * | 2013-03-07 | 2014-09-11 | Bose Corporation | Wireless Device Pairing |
CN103595448A (en) * | 2013-10-31 | 2014-02-19 | 宇龙计算机通信科技(深圳)有限公司 | Bluetooth pairing method and device |
CN105867143A (en) * | 2016-03-31 | 2016-08-17 | 美的集团股份有限公司 | Speech box and speech box pairing method |
CN106714086B (en) * | 2016-12-23 | 2020-01-14 | 深圳Tcl数字技术有限公司 | Voice pairing system and method |
CN107769822B (en) * | 2017-11-02 | 2021-10-12 | 江苏蓝策电子科技有限公司 | Filtering processing system based on broadcast power of Bluetooth indoor positioning technology |
-
2021
- 2021-05-20 CN CN202110553845.3A patent/CN113438640B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255033A (en) * | 2015-06-15 | 2016-12-21 | 卡西欧计算机株式会社 | Information transmitting apparatus, method for sending information, portable terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN113438640A (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113438640B (en) | Equipment pairing connection method, device, system and storage medium | |
KR102525294B1 (en) | Voice control method, wearable device and terminal | |
CN108922537B (en) | Audio recognition method, device, terminal, earphone and readable storage medium | |
JP6611470B2 (en) | Headphone listening device | |
CN108710486B (en) | Audio playing method and device, earphone and computer readable storage medium | |
JP6738867B2 (en) | Speaker authentication method and voice recognition system | |
CN108735209A (en) | Wake up word binding method, smart machine and storage medium | |
CN103095911A (en) | Method and system for finding mobile phone through voice awakening | |
TW200813980A (en) | Voice recognition system and method thereof | |
CN105185378A (en) | Voice control method, voice control system and air conditioner capable of realizing voice control | |
TWI638352B (en) | Electronic device capable of adjusting output sound and method of adjusting output sound | |
US11069332B2 (en) | Interference generation | |
CN104869497A (en) | Wireless network setting method and apparatus of WIFI sound box | |
CN105722183A (en) | Sharing method and apparatus for Wi-Fi (wireless fidelity) link information | |
US20230032366A1 (en) | Method and apparatus for wireless connection between electronic devices | |
CN111739628B (en) | Adjusting method of wearable massager and related device | |
CN118197323A (en) | Voice interaction method and related electronic equipment | |
CN107977187B (en) | Reverberation adjusting method and electronic equipment | |
CN110600045A (en) | Sound conversion method and related product | |
CN105407445B (en) | A kind of connection method and the first electronic equipment | |
CN103581857A (en) | Method for giving voice prompt, text-to-speech server and terminals | |
KR20200006204A (en) | Method for user authentication using data extracting | |
KR20070030061A (en) | Mobile telecommunication device and base station server having function for managing data by feeling recognition and method thereby | |
CN111429917A (en) | Equipment awakening method and terminal equipment | |
JP2006025079A (en) | Head set and wireless communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |