Detailed Description
The technical solutions of the exemplary embodiments provided in the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. The various embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart illustrating an emergency call method based on a wearable device according to an embodiment of the present disclosure.
Step S11: the wearable device determines whether an operating instruction triggering an emergency call is detected; wherein the operation instruction comprises a voiceprint instruction.
Wherein the wearable device determining whether an operating instruction triggering the emergency call is detected comprises: an operation command from the user is received, it is determined whether or not the operation command is an operation command of the user himself, and if so, step S12 is executed.
Specifically, if the obtained voiceprint information matches the preset voiceprint information, the operation instruction is responded and step S12 is executed, and if the obtained voiceprint information does not match the preset voiceprint information, the operation instruction is not responded.
In this embodiment, before the user detects the operation instruction for triggering the emergency call, the method further includes: collecting a plurality of sound information of a user; and performing voiceprint feature extraction on the plurality of sounds by adopting a deep neural network, and storing the extracted user specific voiceprint information to a voice storage module. Specifically, the step of performing voiceprint feature extraction on a plurality of sounds by using a deep neural network comprises the following steps: acquiring sound information of a user, preprocessing the sound information of the user, and extracting characteristics of the preprocessed sound information to obtain a Mel frequency cepstrum coefficient; and inputting the Mel frequency cepstrum coefficient into a pre-trained deep neural network, and acquiring an output vector of the deep neural network as voiceprint information of the voice signal, wherein each element in the voiceprint information represents the characteristics of the voice signal.
The step of the user detecting the operation instruction triggering the emergency call comprises the following steps: and acquiring voice information of the user, extracting voiceprint information in the voice information, performing characteristic comparison on the voiceprint information and prestored voiceprint information, and determining whether the operation instruction is operated by the user according to a comparison result.
In other embodiments, the operation instructions may further include: the fingerprint command, the key pressing command or the voice command may also be a combination of the voiceprint command and any one of the fingerprint command, the key pressing command or the voice command, which is not limited herein.
Wherein, the wearable device determines whether to detect an operation instruction triggering the emergency call and further comprises: recording and storing the recording information corresponding to the set user voice and the emergency contact, and extracting the specific voiceprint information of the user according to the recording information. Wherein, there is vocal print information acquisition device on the wearable equipment.
Step S12: and if the operation instruction is detected, starting an emergency call function of the wearable device or the terminal which is associated with the wearable device.
In step S12, after the wearable device detects the operation instruction of the user, the wearable device may directly initiate the emergency call function of the wearable device to make a call, or initiate the emergency call function of the terminal associated with the wearable device to make a call.
In the method for making an emergency call through the wearable device, the wearable device makes a call through a memory card which stores an emergency call list of emergency contacts, and the memory card is a SIM card. In the method for making the emergency call through the terminal associated with the wearable device, firstly, the wearable device is determined to be connected with the intelligent terminal, the wearable device detects an operation instruction of the emergency call, the operation instruction of the emergency call is sent to the terminal, and the call is transferred through the terminal.
Step S13: and sequentially dialing the emergency contacts of the emergency call list to any one of the emergency contacts according to a set sequence through the wearable device or the terminal which is associated with the wearable device.
The emergency call list is established through the intelligent terminal and comprises a list of a plurality of emergency contact information. In this embodiment, the emergency call list may include the names of the emergency contacts, the telephones of the emergency contacts, and the arrangement order of the emergency contacts.
The emergency contact list can be saved by the intelligent terminal or uploaded to the wearable device by the intelligent terminal and saved by a storage card of the wearable device.
The set sequence may be a call sequence established when the emergency call list is established through the intelligent terminal, and specifically, the call sequence is sequentially arranged according to an addition sequence for adding the emergency contact, or sequentially arranged according to a priority sequence set by the user.
The method for calling the emergency contacts sequentially according to the set sequence comprises the following steps: according to an operation instruction of a user, obtaining information of a first emergency contact person in an emergency call list, and calling the first emergency contact person, wherein the first emergency contact person is a person who has higher priority than other emergency contact persons in the call sequence in the emergency call list, and is not particularly specified; judging whether the first emergency contact is successfully answered or not according to the call time of calling the first emergency contact; if the call time is less than the preset call time, acquiring information of a next emergency contact arranged in the first emergency call list in the emergency call list, and calling the next emergency contact; and the like, and stopping calling until one of the emergency contacts answers the call. Judging whether the emergency contact answers the call or not by detecting the voice communication time of the service channel used in the call, judging that the emergency contact does not answer the call when the communication time of the service channel is zero, and judging that the emergency contact answers the call if the communication time of the service channel is not zero. In an actual application scenario, the establishment of the communication connection between the terminal and the terminal takes some time, that is, the answering delay, so that when the call connection is established, the call connection may be hung up in the process of answering the call due to misoperation of the user, and the voice call may not be completed normally. In this embodiment, whether the emergency contact successfully answers the call or not is determined by determining whether the call time is less than the preset call time, so that the operation of sequentially calling the emergency contact due to the fact that the normal voice call is not completed due to the misoperation of the user can be effectively prevented. Optionally, the preset talk time is set to 3 seconds.
In the embodiment, in order to prevent the problem of untimely contact caused by failure of calling one emergency contact, an emergency call list is set on an emergency call interface, a plurality of emergency contacts including a set call sequence are set in the emergency call list, and after an operation instruction for triggering emergency call is received, the telephone numbers of the emergency contacts in the emergency call list are sequentially dialed according to the set sequence until one emergency contact in the emergency contact list is dialed to answer the call. Specifically, after a call instruction is received, dialing a first emergency contact telephone number in an emergency call list according to a set sequence, dialing a second emergency contact telephone number in the emergency call list according to the set sequence when the first emergency contact fails to answer the call in time, and stopping calling a next emergency contact until the emergency contact answers the call. Through the mode, the wearable device which is convenient to carry quickly enters the emergency call interface to call a plurality of emergency contacts in sequence until the call is successful, and the old can be guaranteed to be capable of contacting the emergency contacts in time under emergency.
In other embodiments, when the wearable device calls an emergency contact or the wearable device calls the emergency contact through a terminal associated with the wearable device, at least one information acquisition device of a positioning device, a sound recording device and a camera of the wearable device is started, and information acquired by the information acquisition device is sent to all emergency contacts in the emergency call list.
In other embodiments, the intelligent terminal establishing connection with the wearable device further includes an emergency contact adding instruction, the contact information in the address list in the intelligent terminal is called according to the adding instruction, and the contact selection information input by the user is received to determine to add the emergency contact information and store the emergency contact information in a local emergency call list or upload the emergency contact information to the wearable device for storage in the emergency call list. In another embodiment, an emergency contact adding interface can be displayed according to the emergency contact adding instruction, and emergency contact information input by a user is received and uploaded to an emergency call list of the wearable device for storage. It should be noted that the emergency call list may be stored in the wearable device, or may be stored in a terminal associated with the wearable device, which is not limited herein.
The application also provides an emergency call method based on the wearable device, and the specific flow is shown in fig. 2, and fig. 2 is a schematic flow diagram of another embodiment of the emergency call method.
Step S21: the wearable device determines whether an operational instruction triggering the emergency call is detected.
Specifically, the operation instruction includes a voiceprint instruction, a fingerprint instruction, a voice instruction, a key instruction, and the like.
When the operation instruction is a voiceprint instruction, before the user detects the operation instruction triggering the emergency call, the method further includes: acquiring a plurality of voice samples of a user; and preprocessing each voice sample, and extracting the characteristics of the preprocessed voice samples to obtain and store a voiceprint signal specific to the user. After the wearable device detects voice information of a user, voiceprint information is extracted from the voice information, whether the voiceprint information is a voiceprint of the user or not is judged, if yes, an operation instruction is judged to be detected, and if not, no operation instruction is judged to be detected.
Step S22: and if the operation instruction is detected, starting an emergency call function of the wearable device or the terminal which is associated with the wearable device.
If the detected voiceprint information is the voiceprint of the user, determining that the operation instruction is the operation of the user, starting an emergency call function of the wearable device or the terminal which is associated with the wearable device, and entering an emergency call interface to call. The emergency call interface is used for displaying emergency contact information acquired from the emergency call list.
Step S23: and sequentially encrypting the emergency contacts dialing the emergency call list to any emergency contact in the emergency contact dialing list according to a set sequence through the wearable device or the terminal establishing association with the wearable device.
Specifically, the encryption method in step S23 includes: specifically, after the wearable device detects an operation instruction, a call interface corresponding to call information input by a user is received, whether a hidden interface corresponding to the call interface is created or not is judged, and if yes, the hidden interface is displayed on the call interface. The emergency call interface can be replaced by a black screen, namely after the wearable device detects an operation instruction of a call, the wearable device sequentially dials emergency contacts of an emergency call list to any one of the emergency contacts according to a set sequence in a black screen state.
Optionally, the user may unlock the emergency call interface through an unlocking instruction, and display information of an emergency contact in the emergency call interface, where the information of the emergency contact includes: an emergency contact phone number or an emergency contact name.
In the embodiment, the call interface is encrypted and hidden, so that the call safety of the user is ensured, and the information of the called emergency contact is not leaked.
The application also provides an emergency call method based on the wearable device, and a specific flow is shown in fig. 3, and fig. 3 is a schematic flow diagram of another embodiment of the emergency call method.
Step S31: recording and storing the recording information corresponding to the voice of the set user and the emergency contact.
Wherein, before step S31, the method further includes: collecting a plurality of sound information of a user; and performing voiceprint feature extraction on the plurality of sounds by adopting a deep neural network, and storing the extracted user specific voiceprint information to a voice storage module. Specifically, the step of performing voiceprint feature extraction on a plurality of sounds by using a deep neural network comprises the following steps: acquiring sound information of a user, preprocessing the sound information of the user, and extracting characteristics of the preprocessed sound information to obtain a Mel frequency cepstrum coefficient; and inputting the Mel frequency cepstrum coefficient into a pre-trained deep neural network, and acquiring an output vector of the deep neural network as voiceprint information of the voice signal, wherein each element in the voiceprint information represents the characteristics of the voice signal.
After the wearable device obtains the recording information corresponding to the emergency contact, whether the voiceprint in the recording information is the user, if the voiceprint information is consistent with the voiceprint information of the user, the recording information corresponding to the emergency contact is recorded and stored, and if the voiceprint information is inconsistent with the voiceprint information of the user, the recording information is not stored.
In another embodiment, the wearable device collects and sets recording information corresponding to the user voice and the emergency contact, extracts voice print information of each recording information and stores the voice print information in the storage module. After the wearable device detects the voice of the user, whether the voiceprint in the voice information is the user himself or herself is extracted, and whether information matched with the recording information exists in the voiceprint information or not is judged.
Step S32: it is determined whether an operational instruction triggering an emergency call is detected.
And extracting voiceprint information in the voice of the user, judging whether the voiceprint information is the same as the prestored voiceprint information, if so, determining that an operation instruction for triggering the emergency call is detected, and otherwise, judging that the operation instruction for triggering the emergency call is not detected.
Step S33: and according to the operation instruction, starting an emergency call function of the wearable device or the terminal establishing association with the wearable device.
And if the voiceprint information is judged to be matched with the prestored voiceprint information, determining that the current operation instruction is the operation of the user, and starting the wearable equipment or the emergency call function of the terminal associated with the wearable equipment.
Step S34: voice information of a user is detected.
Specifically, sound information of a user is detected by a wearable device.
Step S35: and judging whether the sound information has information matched with the recording information.
And extracting whether the voice matched with the preset recording information exists in the user voice according to the voice information of the user detected in the step S34, calling the communication number of the emergency contact from the emergency call list according to the recording information corresponding to the emergency contact matched with the voice, and executing the step S36.
Step S36: and if so, dialing the emergency contact matched with the recorded information through the wearable device or the terminal associated with the wearable device.
In the embodiment, the voice of the user and the information of the emergency contact are stored correspondingly in advance, and when the voice of the user is detected to have the sound information matched with the information of the emergency contact, the communication number of the emergency contact is directly called and the call is carried out without carrying out sequential call according to the set sequence in the emergency call list. This calling method takes precedence over the calling order set in the emergency call list. The emergency contact person is called according to the input sequence of the voice of the user, the contact person which the user wants to call can be called in time, and the user experience is improved.
Optionally, when the call of the emergency contact person phone matched with the voice is unsuccessful, acquiring a next emergency contact person phone number of the emergency contact person in the emergency call list, and automatically dialing the next emergency contact person phone.
Optionally, the first emergency contact is called by the emergency contact phone matched with the language, and the emergency contacts in the emergency list are called in sequence to dial any one of the emergency contacts.
The application also provides an emergency call method based on the wearable device, and the specific flow is shown in fig. 4, and fig. 4 is a schematic flow diagram of another embodiment of the emergency call method.
Step S41: it is determined whether the wearable device is in a worn state.
Specifically, a body temperature sensing block is arranged in the wearable device, and when the body temperature sensing block senses that the temperature is 36-38 ℃, the wearable device is determined to be in a wearing state. In other embodiments, it may be determined by the motion detection module whether the wearable device is in a wearing state, in particular, when it is detected that the acceleration of the wearable device is not zero, the wearable device is determined to be in a wearing state.
Step S42: it is determined whether an operational instruction triggering an emergency call is detected.
Further, the wearable device determines whether an operation command triggering the emergency call is detected, and if the operation command is detected, steps S43, S44, and S45 are performed, and if the operation command is not detected, the subsequent operation steps are not performed.
The operation instruction comprises a voiceprint instruction, and can further comprise a fingerprint instruction, a voice instruction and a key pressing instruction.
Step S43: whether the distance between the wearable device and the intelligent terminal is smaller than a preset distance is detected.
The wearable device detects whether the distance between the wearable device and the intelligent terminal is smaller than a preset distance through the distance sensing module, if yes, the Bluetooth of the wearable device is started to be in communication connection with the intelligent terminal, and steps S44 and S45 are executed, if not, the wearable device is not connected with the intelligent terminal, and steps S46 and S47 are executed.
Step S44: and starting an emergency call function of the intelligent terminal which establishes association with the wearable device.
When the wearable device is connected with the intelligent terminal, the emergency call function of the intelligent terminal which is associated with the wearable device can be started, and emergency contacts in the emergency call list are sequentially dialed through the intelligent terminal according to a set sequence. Specifically, the wearable device detects an operation instruction of a user, sends an emergency call request in the operation instruction to the intelligent terminal, and the intelligent terminal calls an emergency call list according to the call request and sequentially dials emergency contact telephones in the emergency call list according to a set sequence.
Step S45: and sequentially dialing the emergency contacts of the emergency call list to any one of the emergency contacts according to a set sequence through the terminal which is associated with the wearable device.
In step S43, if it is determined that the wearable device does not establish a connection with the smart terminal, step S46 is performed.
Step S46: an emergency call function of the wearable device is initiated.
When the wearable device and the smart terminal are not connected, the emergency call function of the wearable device is directly started, the emergency call list is called from the SIM card of the wearable device, and step S47 is executed.
Step S47: and sequentially dialing the emergency contacts of the emergency call list to any one of the emergency contacts according to a set sequence through the wearable equipment.
In this embodiment, the wearable device detects whether to establish a relationship with the intelligent terminal, and when the wearable device establishes a relationship with the intelligent terminal, the wearable device may make an emergency call through the intelligent terminal, and when the wearable device does not establish a relationship with the intelligent terminal, the wearable device may make a call directly through a call function in the wearable device. Through the mode, the old man can timely contact with family members in an emergency under the condition that any one of wearable equipment or intelligent terminal is intact.
The application also provides an emergency call method based on the wearable device, and a specific flow is shown in fig. 5, and fig. 5 is a schematic flow diagram of another embodiment of the emergency call method.
Step S51: incoming call information for any of the emergency contacts in the emergency call list is received.
Wherein the incoming call information includes: the emergency contact sends a call, a voice message and a text message.
If the wearable device receives the incoming call information of any emergency contact in the emergency call list, the wearable device prompts a user to receive the incoming call information of the emergency contact in a vibration or voice broadcast mode, and the incoming call information is displayed on a display screen of the wearable device.
If the terminal which is associated with the wearable device receives the incoming call information of any emergency contact in the emergency call list, the terminal needs to send the incoming call information to the wearable device through communication connection, the wearable device receives the incoming call information sent by the terminal, prompts a user to receive the incoming call information of the emergency contact in a vibration or voice broadcasting mode, and displays the incoming call information on a display screen of the wearable device.
Step S52: and if the incoming call information of any emergency contact in the emergency call list is not answered in time, acquiring the information of the emergency contact in the emergency call list according to the incoming call information.
If the wearable device cannot timely answer the incoming call information of any emergency contact in the emergency call list, such as the call dialed by the emergency contact, the wearable device can obtain the emergency contact information corresponding to the telephone number of the emergency contact from the emergency call list according to the incoming call telephone number of the emergency contact.
Step S53: and calling back the telephone of the emergency contact according to the type of the incoming call information of the emergency contact.
After the wearable device fails to answer the incoming call information of the emergency contact in time, searching for a telephone number in the incoming call information from the emergency call list according to the incoming call information, acquiring the information of the emergency contact according to the telephone number, detecting the type of the incoming call information, and calling the telephone of the emergency contact according to the acquired information of the emergency contact if the incoming call information is a missed call of the emergency contact. And if the incoming call information is a voice message or a text message, clicking a content playing or displaying button to read the incoming call information, and determining whether to call back according to the content of the incoming call information.
In this embodiment, the wearable device receives the incoming call information of the emergency contact and displays the incoming call information on the display screen to prompt the user to access the incoming call information of the emergency contact, the user can determine whether to immediately process the incoming call information according to the type of the received incoming call information, and if not, the user can obtain the information of the emergency contact in the emergency call list according to the incoming call information and call back the call according to the information of the emergency contact in the emergency call list. By the method, the user can timely process the incoming call information of the emergency contact, and when the incoming call information of the emergency contact is not timely received, whether the call of the emergency contact is called back is determined according to the type of the received incoming call information, so that the emergency contact is prevented from worrying about, and the emergency contact can timely contact the user.
Please further refer to fig. 6, and fig. 6 is a schematic frame diagram of an embodiment of the intelligentwearable device 60 according to the present application.
The smartwearable device 60 includes aprocessor 61 and amemory 62 coupled to each other, and theprocessor 61 is configured to execute program instructions stored in thememory 62 to implement steps in any of the above method embodiments or steps correspondingly executed by the wearable device in any of the above method embodiments.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a computer-readable storage medium 70.
The computer-readable storage medium 70 comprises acomputer program 701 stored on the computer-readable storage medium 70, thecomputer program 701, when executed by the processor, implementing the steps of any of the above-described method embodiments or the steps correspondingly performed by the electrocardiograph of the above-described method embodiments.
In particular, the integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computerreadable storage medium 70. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a computer-readable storage medium 70 and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the computer readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the specification and the drawings, or directly or indirectly applied to other related technical fields, are also included in the scope of the present application.