WO2019242400A1 - Control method and apparatus for electronic device, and storage medium and electronic device - Google Patents

Control method and apparatus for electronic device, and storage medium and electronic device Download PDF

Info

Publication number
WO2019242400A1
WO2019242400A1 PCT/CN2019/084214 CN2019084214W WO2019242400A1 WO 2019242400 A1 WO2019242400 A1 WO 2019242400A1 CN 2019084214 W CN2019084214 W CN 2019084214W WO 2019242400 A1 WO2019242400 A1 WO 2019242400A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
voiceprint
matching threshold
voice information
connection status
Prior art date
Application number
PCT/CN2019/084214
Other languages
French (fr)
Chinese (zh)
Inventor
黄粟
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019242400A1 publication Critical patent/WO2019242400A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification
    • G10L17/06Decision making techniques; Pattern matching strategies
    • G10L17/08Use of distortion metrics or a particular distance between probe pattern and reference templates
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification
    • G10L17/22Interactive procedures; Man-machine interfaces
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/40Electronic components, circuits, software, systems or apparatus used in telephone systems using speech recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/40Electronic components, circuits, software, systems or apparatus used in telephone systems using speech recognition
    • H04M2201/405Electronic components, circuits, software, systems or apparatus used in telephone systems using speech recognition involving speaker-dependent recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/74Details of telephonic subscriber devices with voice recognition means

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to a method, a device, a storage medium, and an electronic device for controlling an electronic device.
  • a user can implement a variety of functions through a voice assistant, such as finding information, sending messages, etc., and can also use a voice assistant to find the location of a smart device when the smart device is lost.
  • a voiceprint recognition function is introduced in some voice assistants to avoid information leakage.
  • the embodiments of the present application provide a method, a device, a storage medium, and an electronic device for controlling an electronic device, which can improve the operating efficiency of the electronic device.
  • An embodiment of the present application provides a method for controlling an electronic device, which is applied to an electronic device.
  • the method includes:
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • An embodiment of the present application provides an electronic device control device, which is applied to an electronic device.
  • the device includes:
  • An extraction module configured to obtain voice information of a user, and extract voiceprint features and instruction information in the voice information
  • a threshold value determining module configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
  • a judging module configured to judge whether a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold
  • An execution module configured to control the electronic device according to the content of the instruction information if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold.
  • the device performs the corresponding operation.
  • An embodiment of the present application further provides a storage medium.
  • a computer program is stored in the storage medium, and when the computer program runs on the computer, the computer causes the computer to perform the following steps:
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • An embodiment of the present application further provides an electronic device.
  • the electronic device includes a processor and a memory.
  • the memory stores a computer program, and the processor calls the computer program stored in the memory for: Perform the following steps:
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • FIG. 1 is a schematic flowchart of an electronic device control method according to an embodiment of the present application.
  • FIG. 2 is an application scenario diagram of an electronic device control method according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of another method for controlling an electronic device according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of still another implementation of an electronic device control method according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of determining a target device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device control apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a threshold determination module according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is clearly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the embodiments of the present application provide a method, a device, a storage medium, and an electronic device for controlling an electronic device.
  • the electronic device may include a smart phone or a portable computer with a wireless communication module, for example, a tablet computer, a laptop computer, etc., or a wearable or handheld computer, such as Devices such as smart wearers and personal digital assistants (PDAs) are not limited here.
  • PDAs personal digital assistants
  • the electronic device control method may run in an operating system of the electronic device, which may include, but is not limited to, a Windows operating system, a Mac OS operating system, an Android operating system, an IOS operating system, and Linux.
  • the operating system, the Ubuntu operating system, and the Windows Phone operating system are not limited in the embodiments of the present application.
  • the electronic device control method is applied to an electronic device, wherein the method includes:
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • the determining a current voiceprint matching threshold includes:
  • the device connection status includes a connection quality between the electronic device and the target device
  • the adjusting the voiceprint matching threshold according to the device connection status includes:
  • connection quality includes a signal strength between the electronic device and the target device, and the determining whether the connection quality between the electronic device and the target device meets a preset quality requirement ,include:
  • the device connection status includes a connection status between the electronic device and the target device
  • the adjusting the voiceprint matching threshold according to the device connection status includes:
  • the method before the acquiring the current device connection status of the electronic device, the method further includes:
  • the device identifier is an identifier pre-stored in the electronic device for the connected device
  • the target device when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
  • the target device is a device that has the device identifier pre-stored.
  • the instruction information is used to instruct the electronic device to play a preset audio
  • the controlling the electronic device to perform a corresponding operation according to the content of the instruction information includes:
  • the acquiring voice information of a user includes:
  • the ambient sound is stored in a buffer and matched in real time.
  • the method before the determining whether a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold, the method further includes:
  • a voiceprint matching threshold is obtained from a preset address of the system or from a server, and the voiceprint matching threshold is used to determine a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user.
  • FIG. 1 is a flowchart of an electronic device control method provided by an embodiment of the present application. The method is applied to the electronic device described in the above embodiment, and may include the following steps:
  • the voice information can be obtained through a microphone of the electronic device.
  • the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
  • the voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
  • a voice instruction preceding the wake-up word may be set to wake up the extraction function of the voice information. For example, if “Xiaoou” is used as the wake-up word, when the electronic device matches that the voice spoken by the user contains “Xiaoou”, the voice information behind the “Xiaoou” wake-up word is obtained, and the voice information in the voice information is extracted. Voiceprint features and command information to facilitate later analysis.
  • the instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A".
  • the voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
  • the voice information may be converted into content information (such as text information) that the electronic device can understand, and then the content information is matched with a plurality of pre-stored instructions, and the matching is only successful
  • content information such as text information
  • the instruction may be formulated according to user needs, and this application is not limited here.
  • the voiceprint matching threshold is used to determine a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user, so that whether the voiceprint feature is a preset voiceprint feature can be determined through the matching degree.
  • the voiceprint matching threshold may be obtained from a specific address of the system, or may be obtained from a server.
  • the voiceprint matching threshold is related to the device connection status of the electronic device. Specifically, the electronic device may correspondingly adjust the voiceprint matching threshold according to the connection with other devices.
  • the voiceprint matching threshold may determine two or more different voiceprint matching thresholds after determining the device connection status of the electronic device, and then use different voiceprint matching according to the device connection status of the electronic device.
  • the threshold or, adjusting the initial voiceprint matching threshold according to the current position, for example, increasing or lowering the voiceprint matching threshold.
  • determining the current voiceprint matching threshold may include the following steps:
  • the target device is a device that meets a preset condition.
  • the preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
  • the target device may be a smart bracelet, a smart watch, or another smart device.
  • obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device.
  • the target device is connected to the electronic device through other methods, such as the WIFI hotspot method
  • the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
  • the electronic device connection status between the electronic device and other devices it can be determined whether the user is near the electronic device, and thus the environmental condition of the electronic device can be determined.
  • the electronic device can be judged to be in a safer environment. You can lower the voiceprint matching threshold, or maintain a low initial voiceprint matching threshold.
  • 103 Determine whether a matching degree between a voiceprint feature in the voice information and a preset user's voiceprint feature is greater than or equal to a voiceprint matching threshold. If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information; if not, end this step.
  • the electronic device may store the voiceprint characteristics of the user in advance.
  • a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
  • one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users.
  • a preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
  • voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information
  • Electronic equipment is operated to improve the safety of electronic equipment.
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • the instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
  • This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
  • FIG. 2 an application scenario of an electronic device control method according to an embodiment of the present application is shown in the figure.
  • the user shouts “Xiaoou Xiaoou, where are you?” On “Location A”, and then the electronic device located at “Location B” can obtain the above-mentioned voice information through the microphone.
  • the content of the instruction information is "Where are you?"
  • the electronic device first retrieves the data mapping related to the instruction information in the database, where each data mapping includes the mapping between the instruction information and the execution instruction relationship. Then, match the "where are you” instruction information with these data mappings in the database to obtain the corresponding execution instructions after the match, such as the execution "play where corresponding to” where are you “to guide the user to find the electronic Device's audio file ". The electronic device can then play the audio file according to this execution instruction.
  • the electronic device uses the microphone to obtain the user's voice information and detects that it contains the wake-up word "Xiaoou Xiaoou". At this time, the steps of extracting the voiceprint features and the instruction information in the voice information will continue.
  • the electronic device In the process of extracting information or after extracting the information, the electronic device first determines the device connection status with other devices, so as to determine whether the user is near the electronic device according to the device connection status. For example, if the user's smart bracelet is connected to the electronic device at this time, and the signal strength of the connected state is large, it means that the user is near the electronic device, and if the initial voiceprint matching threshold is 90%, then You can reduce the voiceprint matching threshold to 70% and use 70% as the current voiceprint matching threshold.
  • the voiceprint characteristics in the voice information are matched with the voiceprint characteristics of the preset user, so that whether the user is a preset user is determined according to the voiceprint matching threshold.
  • the execution instruction to be executed by the electronic device is determined according to the instruction information, such as the execution instruction mapped to the instruction information "where are you” to play an audio file for guiding the user to find the electronic device.
  • the voiceprint matching threshold is associated with the device connection status of the electronic device, and then the voiceprint matching threshold is adjusted according to the current device connection status, so that the electronic device is relatively safe to use. In specific scenarios, increase the recognition rate and speed of voiceprint features.
  • FIG. 3 illustrates another implementation process of an electronic device control method provided by an embodiment of the present application.
  • the electronic device control method includes:
  • the voice information can be obtained through a microphone of the electronic device.
  • the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
  • the voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
  • the instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A".
  • the voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
  • the target device is a device that meets a preset condition.
  • the preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
  • the current device connection status of the electronic device can be obtained by accessing a location related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device. Of course, if the target device is connected to the electronic device through other methods, such as the WIFI hotspot method, the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
  • the quality of the connection between the electronic device and the target device may be some parameters that can reflect the connection quality, such as signal strength, packet loss rate, or signal-to-noise ratio. Which specific parameters can be used according to the actual situation Selected.
  • determining whether the connection quality between the electronic device and the target device meets a preset quality requirement may include:
  • Table 1 shows data of one application scenario provided by the embodiment of the present application.
  • the preset threshold can be set to -40 dBm, and users may generally bring bracelet A, helmet B, and watch C.
  • the signal strength between the bracelet A and the electronic device is -32 dBm, and the helmet B and the watch C are not connected with the electronic device.
  • the initial voiceprint matching threshold can be performed reduce.
  • the voiceprint matching threshold can be reduced to 70% to improve the recognition rate and speed of voiceprint recognition.
  • the electronic device may store the voiceprint characteristics of the user in advance.
  • a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
  • one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users.
  • a preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
  • voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information
  • Electronic equipment is operated to improve the safety of electronic equipment.
  • the instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
  • This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
  • connection quality in the device connection status meets the preset quality requirements. When it is satisfied, it can be determined that the user is located near the electronic device, and the sound is reduced.
  • the pattern matching threshold can effectively determine the use security of the electronic device according to the device connection state, so as to ensure the information security and maximize the recognition rate and speed of the voiceprint.
  • FIG. 4 illustrates still another implementation manner of an electronic device control method provided by an embodiment of the present application.
  • the method for controlling an electronic device includes:
  • the voice information can be obtained through a microphone of the electronic device.
  • the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
  • the voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
  • the instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A".
  • the voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
  • the target device is a device that meets a preset condition.
  • the preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
  • obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device.
  • the target device is connected to the electronic device through other methods, such as the WIFI hotspot method
  • the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
  • the connected state includes a connected state and an unconnected state.
  • connection status may be determined according to a system status attribute of the electronic device.
  • the electronic device and the target device are in a connected state, it means that the user carrying the target device is located near the electronic device. At this time, the electronic device is in a relatively safe state and the initial voiceprint matching threshold can be reduced.
  • the voiceprint matching threshold can be reduced to 70% to improve the recognition rate and speed of voiceprint recognition.
  • the electronic device may store the voiceprint characteristics of the user in advance.
  • a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
  • one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users.
  • a preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
  • voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information
  • Electronic equipment is operated to improve the safety of electronic equipment.
  • the instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
  • This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
  • the threshold value can effectively determine the use security of the electronic device according to the device connection state, so that the voiceprint recognition rate and recognition speed can be improved as much as possible on the premise of ensuring information security.
  • FIG. 5 shows an implementation manner of determining a target device according to an embodiment of the present application.
  • the electronic device before obtaining the current device connection status of the electronic device, it may include:
  • the device identification is the configuration information stored before other devices are connected to the electronic device.
  • the configuration information may include the device name, device password, and unique identification number of other devices.
  • the specific content can be based on the actual situation. It depends.
  • a device is a bracelet A
  • the bracelet A has been connected to an electronic device before that, there may be a device identifier associated with the bracelet A.
  • the electronic device can find the configuration information of the bracelet A in the configuration information related to the connection between the system and other devices.
  • the target device when there is a device in a connected state with the electronic device, the target device is a device in a connected state; when there is no device that handles the connection state with the electronic device, the target device is a device with a device identifier pre-stored device.
  • At least one target device is determined according to the device identifier, which may be determined according to the connection between the device corresponding to each device identifier and the electronic device. For example, if the device corresponding to a device identifier is in a connected state with the electronic device, The device corresponding to the device identifier may be determined as the target device.
  • the usage frequency of the device corresponding to each device identifier may be determined. For example, based on the number of historically connected electronic devices, a device with a higher number of historical connections is used as the target device.
  • the specific determination means may be other implementation manners besides the above embodiments, using the device commonly used by the user as the target device, and improving the device connection between the electronic device and the target device as the adjustment threshold for the voiceprint matching. Judgment accuracy of judgment parameters.
  • the electronic device control device is applied to an electronic device, wherein the device includes:
  • An extraction module configured to obtain voice information of a user, and extract voiceprint features and instruction information in the voice information
  • a threshold value determining module configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
  • a judging module configured to judge whether a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold
  • An execution module configured to control the electronic device according to the content of the instruction information if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold.
  • the device performs the corresponding operation.
  • the threshold determining module includes:
  • An acquisition submodule configured to acquire a current device connection status of the electronic device, and the device connection status is used to prompt a connection status between the electronic device and a target device;
  • An adjustment sub-module is configured to adjust the voiceprint matching threshold according to the device connection status.
  • the device connection status includes a connection status between the electronic device and the target device, and the adjustment submodule is specifically configured to:
  • FIG. 6 shows a structure of an electronic device control apparatus provided by an embodiment of the present application.
  • the electronic device control apparatus 500 includes an extraction module 501, a threshold determination module 502, a determination module 503, and an execution module 504.
  • module used herein may be a software object executed on the computing system.
  • the devices and methods described herein can be implemented in software, and of course, they can also be implemented in hardware, which are all within the protection scope of this application.
  • the extraction module 501 is configured to acquire voice information of a user, and extract voiceprint features and instruction information in the voice information.
  • the voice information can be obtained through a microphone of the electronic device.
  • the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
  • the voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
  • the instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A".
  • the voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
  • the threshold determination module 502 is configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of an electronic device;
  • the voiceprint matching threshold is used to determine a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user, so that whether the voiceprint feature is a preset voiceprint feature can be determined through the matching degree.
  • the determining module 503 is configured to determine whether a degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to a voiceprint matching threshold.
  • the electronic device may store the voiceprint characteristics of the user in advance.
  • a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
  • the execution module 504 is configured to control the electronic device to perform a corresponding operation if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold. .
  • the instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
  • This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
  • the voiceprint matching threshold is associated with the device connection status of the electronic device, and then the voiceprint matching threshold is adjusted according to the current device connection status, so that the electronic device is relatively safe to use. In specific scenarios, increase the recognition rate and speed of voiceprint features.
  • FIG. 7 shows a structure of a threshold determination module provided by an embodiment of the present application.
  • the threshold determination module 502 includes an acquisition sub-module 5021 and an adjustment sub-module 5022.
  • the obtaining sub-module 5021 is configured to obtain the current device connection status of the electronic device, and the device connection status is used to prompt the connection status between the electronic device and the target device.
  • the target device is a device that meets a preset condition.
  • the preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
  • obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device.
  • the adjustment sub-module 5022 is configured to adjust a voiceprint matching threshold according to a device connection status.
  • the electronic device can be judged to be in a safer environment. You can lower the voiceprint matching threshold, or maintain a low initial voiceprint matching threshold.
  • the device connection status includes a connection status between an electronic device and a target device
  • the adjustment submodule is specifically configured to:
  • the device connection status between the electronic device and other devices determine whether the connection status in the device connection status is in the connected state. When it is satisfied, it can be determined that the user is located near the electronic device, and then the voiceprint matching threshold is reduced, which can be effective.
  • the use security of the electronic device is determined according to the connection status of the device, so that the recognition rate and speed of the voiceprint are improved as much as possible on the premise of ensuring the security of the information.
  • an electronic device is also provided, and the electronic device may be a device such as a smart phone or a tablet computer.
  • An electronic device includes a processor and a memory, where the computer program is stored in the memory, and the processor executes the following steps by calling the computer program stored in the memory:
  • control the electronic device to perform a corresponding operation according to the content of the instruction information.
  • the processor is further configured to perform the following steps:
  • the device connection status includes a connection quality between the electronic device and the target device, and the processor is further configured to perform the following steps:
  • connection quality includes a signal strength between the electronic device and the target device, and the processor is further configured to perform the following steps:
  • the device connection status includes a connection status between the electronic device and the target device, and the processor is further configured to perform the following steps:
  • the processor is further configured to perform the following steps:
  • the device identifier is an identifier pre-stored in the electronic device for the connected device
  • the target device when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
  • the target device is a device that has the device identifier pre-stored.
  • the instruction information is used to instruct the electronic device to play a preset audio
  • the processor is further configured to perform the following steps:
  • the electronic device 600 includes a processor 601 and a memory 602.
  • the processor 601 and the memory 602 are electrically connected.
  • the processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device.
  • the processor 601 runs or loads a computer program stored in the memory 602, and calls data stored in the memory 602 to execute the electronic Various functions of the device and processing data, so as to monitor the overall electronic equipment.
  • the processor 601 in the electronic device 600 will load the instructions corresponding to the process of one or more computer programs into the memory 602 according to the following steps, and the processor 601 will run and store the memory 602
  • a computer program in the computer to implement various functions, such as:
  • the processor 601 may further perform the following steps:
  • the device connection status includes a connection quality between the electronic device and the target device, and the processor 601 may further perform the following steps:
  • connection quality includes a signal strength between the electronic device and the target device, and the processor 601 may further perform the following steps:
  • the device connection status includes a connection status between the electronic device and the target device, and the processor 601 may further perform the following steps:
  • the processor 601 may further perform the following steps:
  • the device identifier is an identifier pre-stored in the electronic device for the connected device. Determining at least one target device according to the device identification;
  • the target device when there is a device in a connected state with the electronic device, the target device is a device in a connected state; when there is no device that processes a connection state with the electronic device, the target device is a pre-stored device. A device with the device identification.
  • the processor 601 may further perform the following steps:
  • the memory 602 may be used to store computer programs and data.
  • the computer program stored in the memory 602 contains instructions executable by the processor.
  • Computer programs can be composed of various functional modules.
  • the processor 601 executes various computer programs and data processing by running a computer program stored in the memory 602. For example: acquiring voice information of a user, extracting voiceprint features and instruction information in the voice information; determining a current voiceprint matching threshold value, the voiceprint matching threshold value being related to a device connection state of the electronic device; judging the Whether the degree of matching between the voiceprint feature in the voice message and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold; if so, controlling the electronic device to perform a corresponding operation according to the content of the instruction information .
  • the electronic device 600 further includes a display screen 603, a control circuit 604, a radio frequency circuit 605, an input unit 606, an audio circuit 607, a sensor 608, and a power supply 609.
  • the processor 601 is electrically connected to the display screen 603, the control circuit 604, the radio frequency circuit 605, the input unit 606, the audio circuit 607, the sensor 608, and the power source 609, respectively.
  • the display screen 603 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, text, icons, videos, and any combination thereof.
  • the control circuit 604 is electrically connected to the display screen 603 and is used to control the display screen 603 to display information.
  • the radio frequency circuit 605 is used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic device through wireless communication, and transmit and receive signals to and from the network device or other electronic device.
  • the input unit 606 can be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
  • the input unit 606 may include a fingerprint recognition module.
  • the audio circuit 607 can provide an audio interface between the user and the electronic device through a speaker or a microphone.
  • the sensor 608 is used to collect external environment information.
  • the sensor 608 may include an ambient brightness sensor, an acceleration sensor, a light sensor, a motion sensor, and other sensors.
  • the power supply 609 is used to supply power to various components of the electronic device 600.
  • the power supply 609 may be logically connected to the processor 601 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption management through the power management system.
  • the electronic device 600 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the electronic device provided in the embodiment of the present application associates the voiceprint matching threshold value with the device connection status of the electronic device, and further adjusts the voiceprint matching threshold value according to the current device connection status, thereby ensuring the relative use of the electronic device In specific security scenarios, the recognition rate and speed of voiceprint features of users are improved.
  • a storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute any of the foregoing electronic device control methods, for example:
  • the program may be stored in a computer-readable storage medium.
  • the storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.

Abstract

A control method and apparatus for an electronic device, and a storage medium and an electronic device, the method comprising: correlating a voiceprint matching threshold with a device connection status of an electronic device, and adjusting the voiceprint matching threshold according to a current device connection status. In specific scenarios in which the usage safety of the electronic device is relatively guaranteed, the recognition rate and recognition speed for voiceprint features of a user are improved.

Description

电子设备控制方法、装置、存储介质及电子设备Electronic device control method, device, storage medium and electronic device
本申请要求于2018年6月19日提交中国专利局、申请号为201810631580.2、发明名称为“电子设备控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed on June 19, 2018 with the Chinese Patent Office, application number 201810631580.2, and the invention name is "electronic device control method, device, storage medium and electronic device", the entire contents of which are incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种电子设备控制方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic devices, and in particular, to a method, a device, a storage medium, and an electronic device for controlling an electronic device.
背景技术Background technique
在智能设备的应用越来越广的今天,用户使用智能设备中的应用程序可以实现多种功能。With the increasing use of smart devices today, users can implement a variety of functions using applications in smart devices.
在智能设备的实际应用中,用户可以通过语音助手实现多种功能,例如查找信息、发送消息等,还可以在该智能设备丢失时通过语音助手实现查找智能设备位置的功能。为了解决安全问题,在某些语音助手中引入了声纹识别功能,可以避免信息泄露。In the practical application of a smart device, a user can implement a variety of functions through a voice assistant, such as finding information, sending messages, etc., and can also use a voice assistant to find the location of a smart device when the smart device is lost. In order to solve the security problem, a voiceprint recognition function is introduced in some voice assistants to avoid information leakage.
发明内容Summary of the Invention
本申请实施例提供一种电子设备控制方法、装置、存储介质及电子设备,可以提升电子设备的操作效率。The embodiments of the present application provide a method, a device, a storage medium, and an electronic device for controlling an electronic device, which can improve the operating efficiency of the electronic device.
本申请实施例提供一种电子设备控制方法,应用于电子设备,所述方法包括:An embodiment of the present application provides a method for controlling an electronic device, which is applied to an electronic device. The method includes:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
本申请实施例提供了一种电子设备控制装置,应用于电子设备,所述装置包括:An embodiment of the present application provides an electronic device control device, which is applied to an electronic device. The device includes:
提取模块,用于获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;An extraction module, configured to obtain voice information of a user, and extract voiceprint features and instruction information in the voice information;
阈值确定模块,用于确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;A threshold value determining module, configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断模块,用于判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;以及A judging module, configured to judge whether a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold; and
执行模块,用于若所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度大于或等于所述声纹匹配阈值,则根据所述指令信息的内容控制所述电子设备执行相应的操作。An execution module configured to control the electronic device according to the content of the instruction information if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold. The device performs the corresponding operation.
本申请实施例还提供了一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以下步骤:An embodiment of the present application further provides a storage medium. A computer program is stored in the storage medium, and when the computer program runs on the computer, the computer causes the computer to perform the following steps:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于 所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
本申请实施例还提供了一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行以下步骤:An embodiment of the present application further provides an electronic device. The electronic device includes a processor and a memory. The memory stores a computer program, and the processor calls the computer program stored in the memory for: Perform the following steps:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请实施例提供的电子设备控制方法的实现流程示意图。FIG. 1 is a schematic flowchart of an electronic device control method according to an embodiment of the present application.
图2是本申请实施例提供的电子设备控制方法的应用场景图。FIG. 2 is an application scenario diagram of an electronic device control method according to an embodiment of the present application.
图3是本申请实施例提供的电子设备控制方法的另一实现流程示意图。FIG. 3 is another schematic flowchart of another method for controlling an electronic device according to an embodiment of the present application.
图4是本申请实施例提供的电子设备控制方法的再一实现流程示意图。FIG. 4 is a schematic flowchart of still another implementation of an electronic device control method according to an embodiment of the present application.
图5是本申请实施例提供的确定目标设备的实现流程示意图。FIG. 5 is a schematic flowchart of determining a target device according to an embodiment of the present application.
图6是本申请实施例提供的电子设备控制装置的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device control apparatus according to an embodiment of the present application.
图7是本申请实施例提供的阈值确定模块的结构示意图。FIG. 7 is a schematic structural diagram of a threshold determination module according to an embodiment of the present application.
图8是本申请实施例提供的电子设备的一种结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图9是本申请实施例提供的电子设备的另一种结构示意图。FIG. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components. The principle of the present application is illustrated by implementing in an appropriate computing environment. The following description is based on the exemplified specific embodiments of the present application, which should not be construed as limiting other specific embodiments that are not detailed herein.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is clearly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例提供一种电子设备控制方法、装置、存储介质及电子设备。以下将分别进行详细说明。该电子设备,可以包括智能手机(Smart Phone),或者具有无线通信模块的便携式计算机,例如,平板电脑(Tablet Computer)、笔记本电脑(Laptop)等,还可以是穿戴式、手持式的计算机,如智能穿戴设备(Smart wearer)、个人数字助理(Personal Digital Assistant,PDA)等设备,在此不作限定。The embodiments of the present application provide a method, a device, a storage medium, and an electronic device for controlling an electronic device. Each will be described in detail below. The electronic device may include a smart phone or a portable computer with a wireless communication module, for example, a tablet computer, a laptop computer, etc., or a wearable or handheld computer, such as Devices such as smart wearers and personal digital assistants (PDAs) are not limited here.
当该方法应用在该电子设备时,其中,该电子设备控制方法可运行在电子设备的操作 系统中,可包括但不限于Windows操作系统、Mac OS操作系统、Android操作系统、IOS操作系统、Linux操作系统、Ubuntu操作系统、Windows Phone操作系统等等,本申请实施例不作限定。When the method is applied to the electronic device, the electronic device control method may run in an operating system of the electronic device, which may include, but is not limited to, a Windows operating system, a Mac OS operating system, an Android operating system, an IOS operating system, and Linux. The operating system, the Ubuntu operating system, and the Windows Phone operating system are not limited in the embodiments of the present application.
在一些实施例中,电子设备控制方法,应用于电子设备,其中,所述方法包括:In some embodiments, the electronic device control method is applied to an electronic device, wherein the method includes:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
在一些实施例中,所述确定当前的声纹匹配阈值,包括:In some embodiments, the determining a current voiceprint matching threshold includes:
获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;Acquiring the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device;
根据所述设备连接状态调整所述声纹匹配阈值。Adjusting the voiceprint matching threshold according to the device connection state.
在一些实施例中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接质量,所述根据所述设备连接状态调整所述声纹匹配阈值,包括:In some embodiments, the device connection status includes a connection quality between the electronic device and the target device, and the adjusting the voiceprint matching threshold according to the device connection status includes:
判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求;Determining whether the connection quality between the electronic device and the target device meets a preset quality requirement;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
在一些实施例中,所述连接质量包括所述电子设备与所述目标设备之间的信号强度,所述判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求,包括:In some embodiments, the connection quality includes a signal strength between the electronic device and the target device, and the determining whether the connection quality between the electronic device and the target device meets a preset quality requirement ,include:
判断所述电子设备与所述目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
在一些实施例中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述根据所述设备连接状态调整所述声纹匹配阈值,包括:In some embodiments, the device connection status includes a connection status between the electronic device and the target device, and the adjusting the voiceprint matching threshold according to the device connection status includes:
判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
在一些实施例中,在所述获取所述电子设备当前的设备连接状态之前,还包括:In some embodiments, before the acquiring the current device connection status of the electronic device, the method further includes:
获取所述电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在所述电子设备中预存的标识;Acquiring at least one device identifier pre-stored in the electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device;
根据所述设备标识确定至少一个目标设备;Determining at least one target device according to the device identification;
其中,当存在有与所述电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
当不存在有与所述电子设备处理连接状态的设备时,所述目标设备为预存有所述设备标识的设备。When there is no device that processes the connection state with the electronic device, the target device is a device that has the device identifier pre-stored.
在一些实施例中,所述指令信息用于指示所述电子设备播放预设音频;In some embodiments, the instruction information is used to instruct the electronic device to play a preset audio;
所述根据所述指令信息的内容控制所述电子设备执行相应的操作,包括:The controlling the electronic device to perform a corresponding operation according to the content of the instruction information includes:
控制所述电子设备播放所述预设音频。Controlling the electronic device to play the preset audio.
在一些实施例中,所述获取用户的语音信息,包括:In some embodiments, the acquiring voice information of a user includes:
通过所述电子设备的麦克风获取持续获取环境音;Continuously acquiring ambient sound through a microphone of the electronic device;
将所述环境音存入缓冲并进行实时匹配。The ambient sound is stored in a buffer and matched in real time.
在一些实施例中,所述判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值之前,还包括:In some embodiments, before the determining whether a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold, the method further includes:
从系统的预设地址中或从服务器中获取声纹匹配阈值,所述声纹匹配阈值用于确定所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配程度。A voiceprint matching threshold is obtained from a preset address of the system or from a server, and the voiceprint matching threshold is used to determine a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user.
请参阅图1,图中为本申请实施例提供的一种电子设备控制方法的实现流程。该方法应用于如上实施例所述的电子设备,可以包括如下步骤:Please refer to FIG. 1, which is a flowchart of an electronic device control method provided by an embodiment of the present application. The method is applied to the electronic device described in the above embodiment, and may include the following steps:
101、获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息。101. Acquire voice information of a user, and extract voiceprint features and instruction information in the voice information.
其中,语音信息可以通过电子设备的麦克风获取。具体的,电子设备可以通过麦克风持续获取环境音,将环境音存入缓存并进行实时匹配。The voice information can be obtained through a microphone of the electronic device. Specifically, the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
提取语音信息中的声纹特征,可以通过本领域技术人员所知的提取算法对语音信息中的声纹特征进行提取。该声纹特征可以包括宽带声纹、窄带声纹、振幅声纹、等高线声纹、时间波谱声纹、断面声纹等特征等一种或多种结合,在此不尽数列举。To extract the voiceprint features in the voice information, the voiceprint features in the voice information can be extracted by an extraction algorithm known to those skilled in the art. The voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
在一些实施例中,为了触发提取语音信息中的声纹特征以及指令信息,可以设置前置唤醒词的语音指令来唤醒语音信息的提取功能。例如,将“小欧”作为唤醒词,当电子设备匹配到用户说出的语音里包含“小欧”时,则获取在“小欧”唤醒词后面的语音信息,并提取该语音信息中的声纹特征以及指令信息,以方便后面的分析。In some embodiments, in order to trigger the extraction of voiceprint features and instruction information in the voice information, a voice instruction preceding the wake-up word may be set to wake up the extraction function of the voice information. For example, if “Xiaoou” is used as the wake-up word, when the electronic device matches that the voice spoken by the user contains “Xiaoou”, the voice information behind the “Xiaoou” wake-up word is obtained, and the voice information in the voice information is extracted. Voiceprint features and command information to facilitate later analysis.
其中,指令信息可以是一些由用户的自然语言组成的语音指令,例如“播放发件人A的未读短信”。该语音指令则用于指示电子设备获取并播放发件人A的未读短信。The instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A". The voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
在一些实施例中,为了实现提取指令信息,可以将语音信息转化为电子设备可以理解的内容信息(例如文字信息),然后将该内容信息与预存的多个指令进行匹配,并仅将匹配成功的内容作为指令信息。当然,该指令可以是根据用户需要进行制定,本申请在此不作限定。In some embodiments, in order to realize the extraction of the instruction information, the voice information may be converted into content information (such as text information) that the electronic device can understand, and then the content information is matched with a plurality of pre-stored instructions, and the matching is only successful The contents are used as instruction information. Of course, the instruction may be formulated according to user needs, and this application is not limited here.
102、确定当前的声纹匹配阈值,所述声纹匹配阈值与电子设备的设备连接状态相关。102. Determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device.
其中,在对语音信息中的声纹特征进行匹配之前,需要获取声纹匹配阈值。该声纹匹配阈值用于确定该语音信息中的声纹特征与预设用户的声纹特征之间的匹配程度,从而可以通过该匹配程度确定该声纹特征是否为预设的声纹特征。Before matching voiceprint features in the voice information, a voiceprint matching threshold needs to be obtained. The voiceprint matching threshold is used to determine a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user, so that whether the voiceprint feature is a preset voiceprint feature can be determined through the matching degree.
其中,该声纹匹配阈值可以从系统的特定地址中获取,也可以是从服务器中获取。The voiceprint matching threshold may be obtained from a specific address of the system, or may be obtained from a server.
其中,该声纹匹配阈值与电子设备的设备连接状态相关。具体的,电子设备可以根据与其他设备的连接情况,来对应调整声纹匹配阈值。The voiceprint matching threshold is related to the device connection status of the electronic device. Specifically, the electronic device may correspondingly adjust the voiceprint matching threshold according to the connection with other devices.
在一些实施例中,该声纹匹配阈值可以在确定电子设备的设备连接状态后,可以获取两个或以上不同的声纹匹配阈值,再根据该电子设备的设备连接状态采用不同的声纹匹配阈值;或者,根据该当前位置调整初始的声纹匹配阈值,例如调高或者调低该声纹匹配阈值。In some embodiments, the voiceprint matching threshold may determine two or more different voiceprint matching thresholds after determining the device connection status of the electronic device, and then use different voiceprint matching according to the device connection status of the electronic device. The threshold; or, adjusting the initial voiceprint matching threshold according to the current position, for example, increasing or lowering the voiceprint matching threshold.
在一些实施例中,确定当前的声纹匹配阈值,可以包括以下步骤:In some embodiments, determining the current voiceprint matching threshold may include the following steps:
获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;根据设备连接状态调整所述声纹匹配阈值。Acquire the current device connection status of the electronic device, and the device connection status is used to prompt the connection status between the electronic device and the target device; and adjust the voiceprint matching threshold according to the device connection status.
其中,目标设备也即符合预设条件的设备,该预设条件可以包括已连接的设备,或者已在系统中保存了配置信息的设备。具体条件可以根据实际情况而定。该目标设备可以是 智能手环、智能手表或者是其他智能设备。The target device is a device that meets a preset condition. The preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation. The target device may be a smart bracelet, a smart watch, or another smart device.
其中,获取电子设备当前的设备连接状态,可以通过访问电子设备的系统中与目标设备连接状态相关的位置来获取。例如,若目标设备通过蓝牙与电子设备连接,可以访问电子设备中蓝牙设备的连接情况,并从蓝牙设备的连接情况获取相关的状态属性,从而获得电子设备当前的设备连接状态。当然,若目标设备通过其他方式与电子设备连接,例如采用WIFI热点的方式,还可以从与该连接方式相关的位置获取到电子设备当前的设备连接状态,具体的设备连接方式或者是获取方式本申请在此不作限定。Wherein, obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device. Of course, if the target device is connected to the electronic device through other methods, such as the WIFI hotspot method, the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
通过获取电子设备与其他设备之间的设备连接状态,可以确定用户是否在该电子设备附近,从而判断电子设备的环境情况。By obtaining the device connection status between the electronic device and other devices, it can be determined whether the user is near the electronic device, and thus the environmental condition of the electronic device can be determined.
若用户身上携带的其他设备与电子设备存在连接,或者连接的信号强度较强,则说明用户位于电子设备附近,此时可以判断电子设备处于较为安全的环境。可以调低声纹匹配阈值,或者维持较低的初始的声纹匹配阈值。If other devices carried by the user are connected to the electronic device, or the signal strength of the connection is strong, the user is located near the electronic device, and at this time, the electronic device can be judged to be in a safer environment. You can lower the voiceprint matching threshold, or maintain a low initial voiceprint matching threshold.
若用户身上携带的其他设备与电子设备处于断开连接的状态,则说明用户不位于电子设备附近,此时可以判断电子设备可能处于无人看管的状态,环境较为不安全,可以调高声纹匹配阈值或者维持较高的初始的声纹匹配阈值。If other devices carried by the user are disconnected from the electronic device, it means that the user is not near the electronic device. At this time, it can be judged that the electronic device may be left unattended, the environment is less safe, and the voiceprint can be raised. Match threshold or maintain a high initial voiceprint match threshold.
103、判断语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于声纹匹配阈值。若是,则根据指令信息的内容控制电子设备执行相应的操作;若否,则结束该步骤。103. Determine whether a matching degree between a voiceprint feature in the voice information and a preset user's voiceprint feature is greater than or equal to a voiceprint matching threshold. If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information; if not, end this step.
其中,为了确定用户的身份,电子设备可以预先存储用户的声纹特征。In order to determine the identity of the user, the electronic device may store the voiceprint characteristics of the user in advance.
在一些实施例中,可以通过本领域技术人员所知的声纹特征比对算法来对获取到的声纹特征与预存用户的声纹特征进行处理、比对,以获得两者之间的匹配度,然后将该匹配度与声纹匹配阈值进行比对,确定是否大于或等于该声纹匹配阈值。In some embodiments, a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
若预存的用户有多个,可以采用逐一匹配的方式,获取该语音信息中的声纹特征与多个预设用户之间的多个匹配度,从而确定在多个预设用户中是否有匹配度高于声纹匹配阈值的预设用户,若是则可以确定该语音信息对应的用户为预设用户。If there are multiple pre-stored users, one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users. A preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
若某用户语音信息中的声纹特征与预存的声纹特征均不匹配,则确定该用户不是预设用户,可以不响应后续的调整步骤,以使得不符合要求的用户无法通过语音信息对该电子设备进行操作,提高电子设备的安全性。If the voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information Electronic equipment is operated to improve the safety of electronic equipment.
104、若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。104. If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
其中,指令信息是从语音信息中进行提取后得到的电子设备能读取的信息,电子设备可以根据指令信息确定需要执行何种操作。The instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
该操作可以是播放预设音频、显示预设信息等,或者是打开预设应用、执行预设功能,又或者是对系统选项进行调节等,本申请实施例不作限定。This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
结合图2,图中示出了本申请实施例提供的电子设备控制方法的应用场景。With reference to FIG. 2, an application scenario of an electronic device control method according to an embodiment of the present application is shown in the figure.
如图2中所示,例如,用户在“位置A”上喊“小欧小欧,你在哪里?”,然后,位于“位置B”的电子设备可以通过麦克风获取到上述语音信息。As shown in FIG. 2, for example, the user shouts “Xiaoou Xiaoou, where are you?” On “Location A”, and then the electronic device located at “Location B” can obtain the above-mentioned voice information through the microphone.
此时,该指令信息中的内容为“你在哪里?”,电子设备首先会调取该数据库中与指令信息相关的数据映射,其中每一数据映射均包含指令信息与执行指令之间的映射关系。然 后,将该“你在哪里”的指令信息与数据库中的这些数据映射进行匹配,从而获得匹配后相应的执行指令,如与“你在哪里”对应的执行“播放用于引导用户寻找该电子设备的音频文件”的执行指令。接着,电子设备可以根据这个执行指令播放音频文件。At this time, the content of the instruction information is "Where are you?" The electronic device first retrieves the data mapping related to the instruction information in the database, where each data mapping includes the mapping between the instruction information and the execution instruction relationship. Then, match the "where are you" instruction information with these data mappings in the database to obtain the corresponding execution instructions after the match, such as the execution "play where corresponding to" where are you "to guide the user to find the electronic Device's audio file ". The electronic device can then play the audio file according to this execution instruction.
结合上述实施例,在于上述实施例对应的应用场景中,用户若需要查找该电子设备的位置,可以喊出“小欧小欧,你在哪里”。然后,电子设备利用麦克风获取到该用户的语音信息,并检测到里面包含唤醒词“小欧小欧”,此时会继续执行提取所述语音信息中的声纹特征以及指令信息的步骤。In combination with the above embodiment, in the application scenario corresponding to the above embodiment, if the user needs to find the position of the electronic device, he can shout "Little Europe, Little Europe, where are you?" Then, the electronic device uses the microphone to obtain the user's voice information and detects that it contains the wake-up word "Xiaoou Xiaoou". At this time, the steps of extracting the voiceprint features and the instruction information in the voice information will continue.
在提取信息的过程中或者提取该信息以后,该电子设备会先确定与其他设备之间的设备连接状态,从而根据设备连接状态确定用户是否在电子设备附近。例如,用户的智能手环此时正与电子设备处于连接状态,且该连接状态的信号强度较大,则说明用户位于电子设备附近,而若初始的声纹匹配阈值为90%,则此时可以将声纹匹配阈值降低至70%,并将70%作为当前的声纹匹配阈值。In the process of extracting information or after extracting the information, the electronic device first determines the device connection status with other devices, so as to determine whether the user is near the electronic device according to the device connection status. For example, if the user's smart bracelet is connected to the electronic device at this time, and the signal strength of the connected state is large, it means that the user is near the electronic device, and if the initial voiceprint matching threshold is 90%, then You can reduce the voiceprint matching threshold to 70% and use 70% as the current voiceprint matching threshold.
当确定好声纹匹配阈值后,将语音信息中的声纹特征与预设用户的声纹特征进行匹配,从而根据该声纹匹配阈值判断该用户是否为预设用户。After the voiceprint matching threshold is determined, the voiceprint characteristics in the voice information are matched with the voiceprint characteristics of the preset user, so that whether the user is a preset user is determined according to the voiceprint matching threshold.
若确定为预设用户后,根据该指令信息确定电子设备需要执行的执行指令,如指令信息“你在哪里”所映射的执行指令“播放用于引导用户寻找该电子设备的音频文件”。If it is determined to be a preset user, the execution instruction to be executed by the electronic device is determined according to the instruction information, such as the execution instruction mapped to the instruction information "where are you" to play an audio file for guiding the user to find the electronic device.
可以理解的,上述实施例仅为本申请实施里中的其中一种,还可以根据实际情况应用其他实现方式。It can be understood that the foregoing embodiments are only one of the implementations of this application, and other implementation manners can also be applied according to actual conditions.
可以理解的是,因使用环境的不同,声纹识别能力比较容易受到环境的影响而出现识别率低的问题。It can be understood that, due to different use environments, the voiceprint recognition ability is relatively easily affected by the environment and the problem of low recognition rate occurs.
由上可知,该电子设备控制方法中,通过将声纹匹配阈值与电子设备的设备连接状态进行关联,进而根据该当前的设备连接状态调整声纹匹配阈值,从而在相对保证电子设备使用安全的特定场景中,提高用户声纹特征的识别率和识别速度。As can be seen from the above, in the electronic device control method, the voiceprint matching threshold is associated with the device connection status of the electronic device, and then the voiceprint matching threshold is adjusted according to the current device connection status, so that the electronic device is relatively safe to use. In specific scenarios, increase the recognition rate and speed of voiceprint features.
请参阅图3,图中示出了本申请实施例提供的电子设备控制方法的另一实现流程。Please refer to FIG. 3, which illustrates another implementation process of an electronic device control method provided by an embodiment of the present application.
如图3所示,该电子设备控制方法,包括:As shown in FIG. 3, the electronic device control method includes:
201、获取用户的语音信息,提取语音信息中的声纹特征以及指令信息。201. Acquire voice information of a user, and extract voiceprint features and instruction information in the voice information.
其中,语音信息可以通过电子设备的麦克风获取。具体的,电子设备可以通过麦克风持续获取环境音,将环境音存入缓存并进行实时匹配。The voice information can be obtained through a microphone of the electronic device. Specifically, the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
提取语音信息中的声纹特征,可以通过本领域技术人员所知的提取算法对语音信息中的声纹特征进行提取。该声纹特征可以包括宽带声纹、窄带声纹、振幅声纹、等高线声纹、时间波谱声纹、断面声纹等特征等一种或多种结合,在此不尽数列举。To extract the voiceprint features in the voice information, the voiceprint features in the voice information can be extracted by an extraction algorithm known to those skilled in the art. The voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
其中,指令信息可以是一些由用户的自然语言组成的语音指令,例如“播放发件人A的未读短信”。该语音指令则用于指示电子设备获取并播放发件人A的未读短信。The instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A". The voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
202、获取电子设备当前的设备连接状态,所述设备连接状态用于提示电子设备与目标设备之间的连接状态。202. Obtain the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device.
其中,目标设备也即符合预设条件的设备,该预设条件可以包括已连接的设备,或者已在系统中保存了配置信息的设备。具体条件可以根据实际情况而定。The target device is a device that meets a preset condition. The preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
其中,获取电子设备当前的设备连接状态,可以通过访问电子设备的系统中与目标设 备连接状态相关的位置来获取。例如,若目标设备通过蓝牙与电子设备连接,可以访问电子设备中蓝牙设备的连接情况,并从蓝牙设备的连接情况获取相关的状态属性,从而获得电子设备当前的设备连接状态。当然,若目标设备通过其他方式与电子设备连接,例如采用WIFI热点的方式,还可以从与该连接方式相关的位置获取到电子设备当前的设备连接状态,具体的设备连接方式或者是获取方式本申请在此不作限定。The current device connection status of the electronic device can be obtained by accessing a location related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device. Of course, if the target device is connected to the electronic device through other methods, such as the WIFI hotspot method, the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
203、判断电子设备与目标设备之间的连接质量是否满足预设的质量要求;若是,则降低声纹匹配阈值;若否,则维持初始的声纹匹配阈值。203: Determine whether the connection quality between the electronic device and the target device meets a preset quality requirement; if it is, reduce the voiceprint matching threshold; if not, maintain the initial voiceprint matching threshold.
其中,该电子设备与目标设备之间的连接质量,可以是一些能反映连接质量的参数,例如,信号强度、丢包率或者是信噪比等,具体采用何种参数可以根据实际情况而进行选定。The quality of the connection between the electronic device and the target device may be some parameters that can reflect the connection quality, such as signal strength, packet loss rate, or signal-to-noise ratio. Which specific parameters can be used according to the actual situation Selected.
判断该电子设备与目标设备之间的连接质量是否满足预设的质量要求,可以通过设置用于判断的参数阈值,将与连接质量相关的参数与该参数阈值进行比对,从而确定该连接质量是否满足预设的质量要求。Determine whether the connection quality between the electronic device and the target device meets the preset quality requirements. By setting a parameter threshold for judgment, a parameter related to the connection quality is compared with the parameter threshold to determine the connection quality. Whether to meet preset quality requirements.
在一些实施例中,判断电子设备与目标设备之间的连接质量是否满足预设的质量要求,可以包括:In some embodiments, determining whether the connection quality between the electronic device and the target device meets a preset quality requirement may include:
判断电子设备与目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
请结合表1,表1中示出了本申请实施例提供的其中一个应用场景的数据。Please refer to Table 1. Table 1 shows data of one application scenario provided by the embodiment of the present application.
表1Table 1
设备名Equipment name 手环ABracelet A 头盔BHelmet B 手表CWatch C
信号强度Signal strength -32dBm-32dBm 未连接not connected 未连接not connected
在表1中,预设阈值可以设置成-40dBm,用户一般可能携带手环A、头盔B以及手表C。其中,手环A与电子设备之间的信号强度为-32dBm,头盔B以及手表C与电子设备之间均未连接,则通过将手环A的信号强度与预设阈值进行对比可知,该手环A与电子设备之间的连接质量满足质量要求,则可以确定携带该手环A的用户位于电子设备附近。当然,若电子设备与目标设备之间的信号强度小于-40dBm,则可以确定携带该目标设备的用户不在电子设备附近。In Table 1, the preset threshold can be set to -40 dBm, and users may generally bring bracelet A, helmet B, and watch C. Among them, the signal strength between the bracelet A and the electronic device is -32 dBm, and the helmet B and the watch C are not connected with the electronic device. By comparing the signal strength of the bracelet A with a preset threshold, it can be seen that the hand The quality of the connection between the ring A and the electronic device meets the quality requirements, and it can be determined that the user carrying the bracelet A is located near the electronic device. Of course, if the signal strength between the electronic device and the target device is less than -40 dBm, it can be determined that the user carrying the target device is not near the electronic device.
204、降低声纹匹配阈值。204. Lower the voiceprint matching threshold.
若电子设备与目标设备之间的连接质量满足预设的质量要求,则说明携带该目标设备的用户位于电子设备附近,此时电子设备处于较为安全的状态,可以对初始的声纹匹配阈值进行降低。If the quality of the connection between the electronic device and the target device meets the preset quality requirements, it means that the user carrying the target device is located near the electronic device. At this time, the electronic device is in a relatively safe state. The initial voiceprint matching threshold can be performed reduce.
例如,若初始的声纹匹配阈值为90%,则可以将该声纹匹配阈值降低至70%,以提高声纹识别的识别率以及识别速度。For example, if the initial voiceprint matching threshold is 90%, the voiceprint matching threshold can be reduced to 70% to improve the recognition rate and speed of voiceprint recognition.
205、判断语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于声纹匹配阈值。205. Determine whether a matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to a voiceprint matching threshold.
其中,为了确定用户的身份,电子设备可以预先存储用户的声纹特征。In order to determine the identity of the user, the electronic device may store the voiceprint characteristics of the user in advance.
在一些实施例中,可以通过本领域技术人员所知的声纹特征比对算法来对获取到的声纹特征与预存用户的声纹特征进行处理、比对,以获得两者之间的匹配度,然后将该匹配 度与声纹匹配阈值进行比对,确定是否大于或等于该声纹匹配阈值。In some embodiments, a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
若预存的用户有多个,可以采用逐一匹配的方式,获取该语音信息中的声纹特征与多个预设用户之间的多个匹配度,从而确定在多个预设用户中是否有匹配度高于声纹匹配阈值的预设用户,若是则可以确定该语音信息对应的用户为预设用户。If there are multiple pre-stored users, one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users. A preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
若某用户语音信息中的声纹特征与预存的声纹特征均不匹配,则确定该用户不是预设用户,可以不响应后续的调整步骤,以使得不符合要求的用户无法通过语音信息对该电子设备进行操作,提高电子设备的安全性。If the voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information Electronic equipment is operated to improve the safety of electronic equipment.
206、根据指令信息的内容控制电子设备执行相应的操作。206: Control the electronic device to perform a corresponding operation according to the content of the instruction information.
其中,指令信息是从语音信息中进行提取后得到的电子设备能读取的信息,电子设备可以根据指令信息确定需要执行何种操作。The instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
该操作可以是播放预设音频、显示预设信息等,或者是打开预设应用、执行预设功能,又或者是对系统选项进行调节等,本申请实施例不作限定。This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
由上可知,通过判断电子设备与其他设备之间的设备连接状态,确定该设备连接状态中的连接质量是否满足预设的质量要求,当满足时可以确定用户位于电子设备附近,并进而降低声纹匹配阈值,可以有效地根据设备连接状态来判定电子设备的使用安全性,使得在保证信息安全的前提下,尽可能提高声纹的识别率以及识别速度。It can be known from the above that by judging the device connection status between the electronic device and other devices, it is determined whether the connection quality in the device connection status meets the preset quality requirements. When it is satisfied, it can be determined that the user is located near the electronic device, and the sound is reduced. The pattern matching threshold can effectively determine the use security of the electronic device according to the device connection state, so as to ensure the information security and maximize the recognition rate and speed of the voiceprint.
请参阅图4,图中示出了本申请实施例提供的电子设备控制方法的再一实现方式。Please refer to FIG. 4, which illustrates still another implementation manner of an electronic device control method provided by an embodiment of the present application.
如图4所示,该电子设备控制方法,包括:As shown in FIG. 4, the method for controlling an electronic device includes:
301、获取用户的语音信息,提取语音信息中的声纹特征以及指令信息。301. Acquire voice information of a user, and extract voiceprint features and instruction information in the voice information.
其中,语音信息可以通过电子设备的麦克风获取。具体的,电子设备可以通过麦克风持续获取环境音,将环境音存入缓存并进行实时匹配。The voice information can be obtained through a microphone of the electronic device. Specifically, the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
提取语音信息中的声纹特征,可以通过本领域技术人员所知的提取算法对语音信息中的声纹特征进行提取。该声纹特征可以包括宽带声纹、窄带声纹、振幅声纹、等高线声纹、时间波谱声纹、断面声纹等特征等一种或多种结合,在此不尽数列举。To extract the voiceprint features in the voice information, the voiceprint features in the voice information can be extracted by an extraction algorithm known to those skilled in the art. The voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
其中,指令信息可以是一些由用户的自然语言组成的语音指令,例如“播放发件人A的未读短信”。该语音指令则用于指示电子设备获取并播放发件人A的未读短信。The instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A". The voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
302、获取电子设备当前的设备连接状态,所述设备连接状态用于提示电子设备与目标设备之间的连接状态。302. Obtain the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device.
其中,目标设备也即符合预设条件的设备,该预设条件可以包括已连接的设备,或者已在系统中保存了配置信息的设备。具体条件可以根据实际情况而定。The target device is a device that meets a preset condition. The preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
其中,获取电子设备当前的设备连接状态,可以通过访问电子设备的系统中与目标设备连接状态相关的位置来获取。例如,若目标设备通过蓝牙与电子设备连接,可以访问电子设备中蓝牙设备的连接情况,并从蓝牙设备的连接情况获取相关的状态属性,从而获得电子设备当前的设备连接状态。当然,若目标设备通过其他方式与电子设备连接,例如采用WIFI热点的方式,还可以从与该连接方式相关的位置获取到电子设备当前的设备连接状态,具体的设备连接方式或者是获取方式本申请在此不作限定。Wherein, obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device. For example, if the target device is connected to the electronic device via Bluetooth, the connection status of the Bluetooth device in the electronic device can be accessed, and related status attributes can be obtained from the connection status of the Bluetooth device, thereby obtaining the current device connection status of the electronic device. Of course, if the target device is connected to the electronic device through other methods, such as the WIFI hotspot method, the current device connection status of the electronic device can also be obtained from the location related to the connection method, the specific device connection method or the acquisition method. Applications are not limited here.
303、判断电子设备与目标设备之间是否处于连接状态。303: Determine whether the electronic device and the target device are in a connected state.
其中,连接状态包括已连接状态以及未连接状态。Among them, the connected state includes a connected state and an unconnected state.
在一些实施例中,该连接状态可以根据电子设备的系统状态属性中确定。In some embodiments, the connection status may be determined according to a system status attribute of the electronic device.
304、降低声纹匹配阈值。304. Lower the voiceprint matching threshold.
当其他设备与电子设备之间为已连接状态时,有可能用户在电子设备身边,此时电子设备的使用环境较为安全;反之,当其他设备与电子设备之间为未连接状态时,有可能用户不在电子设备身边,此时电子设备的使用环境可能不安全。When other devices are connected to the electronic device, it is possible that the user is near the electronic device, and the use environment of the electronic device is safer; on the contrary, when the other device and the electronic device are not connected, it is possible The user is not near the electronic device, and the use environment of the electronic device may not be safe at this time.
若电子设备与目标设备之间处于已连接状态,则说明携带该目标设备的用户位于电子设备附近,此时电子设备处于较为安全的状态,可以对初始的声纹匹配阈值进行降低。If the electronic device and the target device are in a connected state, it means that the user carrying the target device is located near the electronic device. At this time, the electronic device is in a relatively safe state and the initial voiceprint matching threshold can be reduced.
例如,若初始的声纹匹配阈值为90%,则可以将该声纹匹配阈值降低至70%,以提高声纹识别的识别率以及识别速度。For example, if the initial voiceprint matching threshold is 90%, the voiceprint matching threshold can be reduced to 70% to improve the recognition rate and speed of voiceprint recognition.
305、判断语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于声纹匹配阈值。305: Determine whether a matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to a voiceprint matching threshold.
其中,为了确定用户的身份,电子设备可以预先存储用户的声纹特征。In order to determine the identity of the user, the electronic device may store the voiceprint characteristics of the user in advance.
在一些实施例中,可以通过本领域技术人员所知的声纹特征比对算法来对获取到的声纹特征与预存用户的声纹特征进行处理、比对,以获得两者之间的匹配度,然后将该匹配度与声纹匹配阈值进行比对,确定是否大于或等于该声纹匹配阈值。In some embodiments, a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
若预存的用户有多个,可以采用逐一匹配的方式,获取该语音信息中的声纹特征与多个预设用户之间的多个匹配度,从而确定在多个预设用户中是否有匹配度高于声纹匹配阈值的预设用户,若是则可以确定该语音信息对应的用户为预设用户。If there are multiple pre-stored users, one-to-one matching can be used to obtain multiple matching degrees between the voiceprint features in the voice information and multiple preset users, so as to determine whether there is a match among the multiple preset users. A preset user whose degree is higher than the voiceprint matching threshold. If so, it can be determined that the user corresponding to the voice information is the preset user.
若某用户语音信息中的声纹特征与预存的声纹特征均不匹配,则确定该用户不是预设用户,可以不响应后续的调整步骤,以使得不符合要求的用户无法通过语音信息对该电子设备进行操作,提高电子设备的安全性。If the voiceprint features in a user's voice information do not match the pre-stored voiceprint features, it is determined that the user is not a preset user, and the subsequent adjustment steps may not be responded, so that users who do not meet the requirements cannot use voice information Electronic equipment is operated to improve the safety of electronic equipment.
306、根据指令信息的内容控制电子设备执行相应的操作。306: Control the electronic device to perform a corresponding operation according to the content of the instruction information.
其中,指令信息是从语音信息中进行提取后得到的电子设备能读取的信息,电子设备可以根据指令信息确定需要执行何种操作。The instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
该操作可以是播放预设音频、显示预设信息等,或者是打开预设应用、执行预设功能,又或者是对系统选项进行调节等,本申请实施例不作限定。This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
由上可知,通过判断电子设备与其他设备之间的设备连接状态,确定该设备连接状态中的连接状态是否处于已连接状态,当满足时可以确定用户位于电子设备附近,并进而降低声纹匹配阈值,可以有效地根据设备连接状态来判定电子设备的使用安全性,使得在保证信息安全的前提下,尽可能提高声纹的识别率以及识别速度。It can be known from the above that by judging the device connection status between the electronic device and other devices, it is determined whether the connection status in the device connection status is in the connected status. When it is satisfied, it can be determined that the user is near the electronic device, and then the voiceprint matching is reduced The threshold value can effectively determine the use security of the electronic device according to the device connection state, so that the voiceprint recognition rate and recognition speed can be improved as much as possible on the premise of ensuring information security.
请参阅图5,图中示出了本申请实施例提供的确定目标设备的实现方式。Please refer to FIG. 5, which shows an implementation manner of determining a target device according to an embodiment of the present application.
如图5所示,在获取电子设备当前的设备连接状态之前,可以包括:As shown in FIG. 5, before obtaining the current device connection status of the electronic device, it may include:
401、获取电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在电子设备中预存的标识。401: Obtain at least one device identifier pre-stored in an electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device.
其中,设备标识为在此之前其他设备与电子设备连接后所配置存储好的配置信息,该配置信息可以包括其他设备的设备名称、设备密码以及设备唯一标识号等,具体的内容可以根据实际情况而定。Among them, the device identification is the configuration information stored before other devices are connected to the electronic device. The configuration information may include the device name, device password, and unique identification number of other devices. The specific content can be based on the actual situation. It depends.
例如,若有一设备为手环A,且在此之前该手环A与电子设备进行过连接,并有可能 存在与该手环A相关的设备标识。此时电子设备可以在系统与其他设备连接情况相关的配置信息中发现该手环A的配置信息。For example, if a device is a bracelet A, and the bracelet A has been connected to an electronic device before that, there may be a device identifier associated with the bracelet A. At this time, the electronic device can find the configuration information of the bracelet A in the configuration information related to the connection between the system and other devices.
402、根据设备标识确定至少一个目标设备。402: Determine at least one target device according to the device identifier.
其中,当存在有与电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;当不存在有与电子设备处理连接状态的设备时,所述目标设备为预存有设备标识的设备。Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state; when there is no device that handles the connection state with the electronic device, the target device is a device with a device identifier pre-stored device.
在一些实施例中,根据设备标识确定至少一个目标设备,可以根据每一设备标识对应的设备与电子设备的连接情况来确定,例如,若某一设备标识对应的设备与电子设备处于连接状态,可以将该设备标识对应的设备确定为目标设备。In some embodiments, at least one target device is determined according to the device identifier, which may be determined according to the connection between the device corresponding to each device identifier and the electronic device. For example, if the device corresponding to a device identifier is in a connected state with the electronic device, The device corresponding to the device identifier may be determined as the target device.
或者,当不存在有设备与电子设备处于已连接状态,此时可以将每一设备标识对应的设备的使用频率来进行确定。例如,根据历史上与电子设备连接次数,将历史连接次数较多的设备作为目标设备。Alternatively, when no device and the electronic device are in a connected state, at this time, the usage frequency of the device corresponding to each device identifier may be determined. For example, based on the number of historically connected electronic devices, a device with a higher number of historical connections is used as the target device.
可以理解的,具体的确定手段除了上述实施例,还可以是其他实现方式,以将用户常用的设备作为目标设备,提高将电子设备与目标设备之间的设备连接情况作为调整声纹匹配阈值的判断参数的判断准确性。It can be understood that the specific determination means may be other implementation manners besides the above embodiments, using the device commonly used by the user as the target device, and improving the device connection between the electronic device and the target device as the adjustment threshold for the voiceprint matching. Judgment accuracy of judgment parameters.
在一些实施例中,电子设备控制装置,应用于电子设备,其中,所述装置包括:In some embodiments, the electronic device control device is applied to an electronic device, wherein the device includes:
提取模块,用于获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;An extraction module, configured to obtain voice information of a user, and extract voiceprint features and instruction information in the voice information;
阈值确定模块,用于确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;A threshold value determining module, configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断模块,用于判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;以及A judging module, configured to judge whether a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold; and
执行模块,用于若所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度大于或等于所述声纹匹配阈值,则根据所述指令信息的内容控制所述电子设备执行相应的操作。An execution module configured to control the electronic device according to the content of the instruction information if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold. The device performs the corresponding operation.
在一些实施例中,所述阈值确定模块,包括:In some embodiments, the threshold determining module includes:
获取子模块,用于获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;An acquisition submodule, configured to acquire a current device connection status of the electronic device, and the device connection status is used to prompt a connection status between the electronic device and a target device;
调整子模块,用于根据所述设备连接状态调整所述声纹匹配阈值。An adjustment sub-module is configured to adjust the voiceprint matching threshold according to the device connection status.
在一些实施例中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述调整子模块,具体用于:In some embodiments, the device connection status includes a connection status between the electronic device and the target device, and the adjustment submodule is specifically configured to:
判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
请参阅图6,图中示出了本申请实施例提供的电子设备控制装置的结构。Please refer to FIG. 6, which shows a structure of an electronic device control apparatus provided by an embodiment of the present application.
如图6所示,该电子设备控制装置500包括提取模块501、阈值确定模块502、判断模块503以及执行模块504。需要说明的是,本文所使用的术语“模块”可为在该运算系统上执行的软件对象。本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。As shown in FIG. 6, the electronic device control apparatus 500 includes an extraction module 501, a threshold determination module 502, a determination module 503, and an execution module 504. It should be noted that the term “module” used herein may be a software object executed on the computing system. The devices and methods described herein can be implemented in software, and of course, they can also be implemented in hardware, which are all within the protection scope of this application.
该提取模块501,用于获取用户的语音信息,提取语音信息中的声纹特征以及指令信 息。The extraction module 501 is configured to acquire voice information of a user, and extract voiceprint features and instruction information in the voice information.
其中,语音信息可以通过电子设备的麦克风获取。具体的,电子设备可以通过麦克风持续获取环境音,将环境音存入缓存并进行实时匹配。The voice information can be obtained through a microphone of the electronic device. Specifically, the electronic device can continuously obtain the ambient sound through the microphone, store the ambient sound into the cache, and perform real-time matching.
提取语音信息中的声纹特征,可以通过本领域技术人员所知的提取算法对语音信息中的声纹特征进行提取。该声纹特征可以包括宽带声纹、窄带声纹、振幅声纹、等高线声纹、时间波谱声纹、断面声纹等特征等一种或多种结合,在此不尽数列举。To extract the voiceprint features in the voice information, the voiceprint features in the voice information can be extracted by an extraction algorithm known to those skilled in the art. The voiceprint feature may include one or more features such as a broadband voiceprint, a narrowband voiceprint, an amplitude voiceprint, a contour voiceprint, a time-spectrum voiceprint, and a cross-section voiceprint, which are not exhaustively listed here.
其中,指令信息可以是一些由用户的自然语言组成的语音指令,例如“播放发件人A的未读短信”。该语音指令则用于指示电子设备获取并播放发件人A的未读短信。The instruction information may be some voice instructions composed of a user's natural language, such as "play an unread short message of sender A". The voice instruction is used to instruct the electronic device to acquire and play the unread short message of the sender A.
该阈值确定模块502,用于确定当前的声纹匹配阈值,所述声纹匹配阈值与电子设备的设备连接状态相关;The threshold determination module 502 is configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of an electronic device;
其中,在对语音信息中的声纹特征进行匹配之前,需要获取声纹匹配阈值。该声纹匹配阈值用于确定该语音信息中的声纹特征与预设用户的声纹特征之间的匹配程度,从而可以通过该匹配程度确定该声纹特征是否为预设的声纹特征。Before matching voiceprint features in the voice information, a voiceprint matching threshold needs to be obtained. The voiceprint matching threshold is used to determine a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user, so that whether the voiceprint feature is a preset voiceprint feature can be determined through the matching degree.
该判断模块503,用于判断语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于声纹匹配阈值。The determining module 503 is configured to determine whether a degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to a voiceprint matching threshold.
其中,为了确定用户的身份,电子设备可以预先存储用户的声纹特征。In order to determine the identity of the user, the electronic device may store the voiceprint characteristics of the user in advance.
在一些实施例中,可以通过本领域技术人员所知的声纹特征比对算法来对获取到的声纹特征与预存用户的声纹特征进行处理、比对,以获得两者之间的匹配度,然后将该匹配度与声纹匹配阈值进行比对,确定是否大于或等于该声纹匹配阈值。In some embodiments, a voiceprint feature comparison algorithm known to those skilled in the art may be used to process and compare the acquired voiceprint feature with the voiceprint feature of a pre-stored user to obtain a match between the two. Degree, and then compare the matching degree with the voiceprint matching threshold to determine whether it is greater than or equal to the voiceprint matching threshold.
该执行模块504,用于若语音信息中的声纹特征与预设用户的声纹特征之间的匹配度大于或等于声纹匹配阈值,则所述指令信息的内容控制电子设备执行相应的操作。The execution module 504 is configured to control the electronic device to perform a corresponding operation if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold. .
其中,指令信息是从语音信息中进行提取后得到的电子设备能读取的信息,电子设备可以根据指令信息确定需要执行何种操作。The instruction information is information that can be read by the electronic device after being extracted from the voice information, and the electronic device can determine what operation needs to be performed according to the instruction information.
该操作可以是播放预设音频、显示预设信息等,或者是打开预设应用、执行预设功能,又或者是对系统选项进行调节等,本申请实施例不作限定。This operation may be playing preset audio, displaying preset information, etc., or opening a preset application, executing a preset function, or adjusting a system option, etc., which are not limited in the embodiment of the present application.
由上可知,该电子设备控制方法中,通过将声纹匹配阈值与电子设备的设备连接状态进行关联,进而根据该当前的设备连接状态调整声纹匹配阈值,从而在相对保证电子设备使用安全的特定场景中,提高用户声纹特征的识别率和识别速度。As can be seen from the above, in the electronic device control method, the voiceprint matching threshold is associated with the device connection status of the electronic device, and then the voiceprint matching threshold is adjusted according to the current device connection status, so that the electronic device is relatively safe to use. In specific scenarios, increase the recognition rate and speed of voiceprint features.
请参阅图7,图中示出了本申请实施例提供的阈值确定模块的结构。Please refer to FIG. 7, which shows a structure of a threshold determination module provided by an embodiment of the present application.
该阈值确定模块502包括获取子模块5021以及调整子模块5022。The threshold determination module 502 includes an acquisition sub-module 5021 and an adjustment sub-module 5022.
其中,获取子模块5021,用于获取电子设备当前的设备连接状态,所述设备连接状态用于提示电子设备与目标设备之间的连接状态。The obtaining sub-module 5021 is configured to obtain the current device connection status of the electronic device, and the device connection status is used to prompt the connection status between the electronic device and the target device.
其中,目标设备也即符合预设条件的设备,该预设条件可以包括已连接的设备,或者已在系统中保存了配置信息的设备。具体条件可以根据实际情况而定。The target device is a device that meets a preset condition. The preset condition may include a connected device or a device that has stored configuration information in the system. Specific conditions can be determined according to the actual situation.
其中,获取电子设备当前的设备连接状态,可以通过访问电子设备的系统中与目标设备连接状态相关的位置来获取。Wherein, obtaining the current device connection status of the electronic device can be obtained by accessing a position related to the target device connection status in the system of the electronic device.
调整子模块5022,用于根据设备连接状态调整声纹匹配阈值。The adjustment sub-module 5022 is configured to adjust a voiceprint matching threshold according to a device connection status.
通过获取电子设备与其他设备之间的设备连接状态,可以确定用户是否在该电子设备 附近,从而判断电子设备的环境情况。By obtaining the device connection status between the electronic device and other devices, it is possible to determine whether the user is near the electronic device, thereby judging the environmental condition of the electronic device.
若用户身上携带的其他设备与电子设备存在连接,或者连接的信号强度较强,则说明用户位于电子设备附近,此时可以判断电子设备处于较为安全的环境。可以调低声纹匹配阈值,或者维持较低的初始的声纹匹配阈值。If other devices carried by the user are connected to the electronic device, or the signal strength of the connection is strong, the user is located near the electronic device, and at this time, the electronic device can be judged to be in a safer environment. You can lower the voiceprint matching threshold, or maintain a low initial voiceprint matching threshold.
若用户身上携带的其他设备与电子设备处于断开连接的状态,则说明用户不位于电子设备附近,此时可以判断电子设备可能处于无人看管的状态,环境较为不安全,可以调高声纹匹配阈值或者维持较高的初始的声纹匹配阈值。If other devices carried by the user are disconnected from the electronic device, it means that the user is not near the electronic device. At this time, it can be judged that the electronic device may be left unattended, the environment is less safe, and the voiceprint can be raised. Match threshold or maintain a high initial voiceprint match threshold.
在一些实施例中,所述设备连接状态包括电子设备与目标设备之间的连接状态,所述调整子模块,具体用于:In some embodiments, the device connection status includes a connection status between an electronic device and a target device, and the adjustment submodule is specifically configured to:
判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
通过判断电子设备与其他设备之间的设备连接状态,确定该设备连接状态中的连接状态是否处于已连接状态,当满足时可以确定用户位于电子设备附近,并进而降低声纹匹配阈值,可以有效地根据设备连接状态来判定电子设备的使用安全性,使得在保证信息安全的前提下,尽可能提高声纹的识别率以及识别速度。By judging the device connection status between the electronic device and other devices, determine whether the connection status in the device connection status is in the connected state. When it is satisfied, it can be determined that the user is located near the electronic device, and then the voiceprint matching threshold is reduced, which can be effective The use security of the electronic device is determined according to the connection status of the device, so that the recognition rate and speed of the voiceprint are improved as much as possible on the premise of ensuring the security of the information.
在本申请又一实施例中还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。电子设备,其包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行以下步骤:In another embodiment of the present application, an electronic device is also provided, and the electronic device may be a device such as a smart phone or a tablet computer. An electronic device includes a processor and a memory, where the computer program is stored in the memory, and the processor executes the following steps by calling the computer program stored in the memory:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
确定当前的声纹匹配阈值,所述声纹匹配阈值与电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
在一些实施例中,所述处理器还用于执行以下步骤:In some embodiments, the processor is further configured to perform the following steps:
获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;Acquiring the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device;
根据所述设备连接状态调整所述声纹匹配阈值。Adjusting the voiceprint matching threshold according to the device connection state.
在一些实施例中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接质量,所述处理器还用于执行以下步骤:In some embodiments, the device connection status includes a connection quality between the electronic device and the target device, and the processor is further configured to perform the following steps:
判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求;Determining whether the connection quality between the electronic device and the target device meets a preset quality requirement;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
在一些实施例中,所述连接质量包括所述电子设备与所述目标设备之间的信号强度,所述处理器还用于执行以下步骤:In some embodiments, the connection quality includes a signal strength between the electronic device and the target device, and the processor is further configured to perform the following steps:
判断所述电子设备与所述目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
在一些实施例中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述处理器还用于执行以下步骤:In some embodiments, the device connection status includes a connection status between the electronic device and the target device, and the processor is further configured to perform the following steps:
判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
在一些实施例中,所述处理器还用于执行以下步骤:In some embodiments, the processor is further configured to perform the following steps:
获取所述电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在所述电子设备中预存的标识;Acquiring at least one device identifier pre-stored in the electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device;
根据所述设备标识确定至少一个目标设备;Determining at least one target device according to the device identification;
其中,当存在有与所述电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
当不存在有与所述电子设备处理连接状态的设备时,所述目标设备为预存有所述设备标识的设备。When there is no device that processes the connection state with the electronic device, the target device is a device that has the device identifier pre-stored.
在一些实施例中,所述指令信息用于指示所述电子设备播放预设音频,所述处理器还用于执行以下步骤:In some embodiments, the instruction information is used to instruct the electronic device to play a preset audio, and the processor is further configured to perform the following steps:
控制所述电子设备播放所述预设音频。Controlling the electronic device to play the preset audio.
如图8所示,电子设备600包括处理器601及存储器602。其中,处理器601与存储器602电性连接。As shown in FIG. 8, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 and the memory 602 are electrically connected.
处理器601是电子设备600的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器602内的计算机程序,以及调用存储在存储器602内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. The processor 601 runs or loads a computer program stored in the memory 602, and calls data stored in the memory 602 to execute the electronic Various functions of the device and processing data, so as to monitor the overall electronic equipment.
在本实施例中,电子设备600中的处理器601会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器602中,并由处理器601来运行存储在存储器602中的计算机程序,从而实现各种功能,如:In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the process of one or more computer programs into the memory 602 according to the following steps, and the processor 601 will run and store the memory 602 A computer program in the computer to implement various functions, such as:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。Acquire the user's voice information, extract voiceprint features and instruction information in the voice information; determine the current voiceprint matching threshold, which is related to the device connection status of the electronic device; determine the voice information Whether the matching degree between the voiceprint feature in the preset and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold; if so, controlling the electronic device to perform a corresponding operation according to the content of the instruction information.
在一些实施方式中,处理器601进一步可以执行以下步骤:In some implementations, the processor 601 may further perform the following steps:
获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;根据所述设备连接状态调整所述声纹匹配阈值。Acquire the current device connection status of the electronic device, and the device connection status is used to prompt the connection status between the electronic device and the target device; and adjust the voiceprint matching threshold according to the device connection status.
在一些实施方式中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接质量,处理器601进一步可以执行以下步骤:In some implementation manners, the device connection status includes a connection quality between the electronic device and the target device, and the processor 601 may further perform the following steps:
判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求;若是,则降低所述声纹匹配阈值。Determine whether the connection quality between the electronic device and the target device meets a preset quality requirement; if so, reduce the voiceprint matching threshold.
在一些实施方式中,所述连接质量包括所述电子设备与所述目标设备之间的信号强度,处理器601进一步可以执行以下步骤:In some embodiments, the connection quality includes a signal strength between the electronic device and the target device, and the processor 601 may further perform the following steps:
判断所述电子设备与所述目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
在一些实施方式中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,处理器601进一步可以执行以下步骤:In some implementations, the device connection status includes a connection status between the electronic device and the target device, and the processor 601 may further perform the following steps:
判断所述电子设备与所述目标设备之间是否处于连接状态;若是,则降低所述声纹匹配阈值。Determining whether the electronic device is in a connected state with the target device; if so, reducing the voiceprint matching threshold.
在一些实施方式中,处理器601进一步可以执行以下步骤:In some implementations, the processor 601 may further perform the following steps:
获取所述电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在所述电子设备中预存的标识。根据所述设备标识确定至少一个目标设备;Obtain at least one device identifier pre-stored in the electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device. Determining at least one target device according to the device identification;
其中,当存在有与所述电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;当不存在有与所述电子设备处理连接状态的设备时,所述目标设备为预存有所述设备标识的设备。Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state; when there is no device that processes a connection state with the electronic device, the target device is a pre-stored device. A device with the device identification.
在一些实施方式中,处理器601进一步可以执行以下步骤:In some implementations, the processor 601 may further perform the following steps:
控制所述电子设备播放预设音频。Controlling the electronic device to play preset audio.
存储器602可用于存储计算机程序和数据。存储器602存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器601通过运行存储在存储器602的计算机程序,从而执行各种功能计算机程序以及数据处理。例如:获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。The memory 602 may be used to store computer programs and data. The computer program stored in the memory 602 contains instructions executable by the processor. Computer programs can be composed of various functional modules. The processor 601 executes various computer programs and data processing by running a computer program stored in the memory 602. For example: acquiring voice information of a user, extracting voiceprint features and instruction information in the voice information; determining a current voiceprint matching threshold value, the voiceprint matching threshold value being related to a device connection state of the electronic device; judging the Whether the degree of matching between the voiceprint feature in the voice message and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold; if so, controlling the electronic device to perform a corresponding operation according to the content of the instruction information .
在一些实施例中,如图9所示,电子设备600还包括:显示屏603、控制电路604、射频电路605、输入单元606、音频电路607、传感器608以及电源609。其中,处理器601分别与显示屏603、控制电路604、射频电路605、输入单元606、音频电路607、传感器608以及电源609电性连接。In some embodiments, as shown in FIG. 9, the electronic device 600 further includes a display screen 603, a control circuit 604, a radio frequency circuit 605, an input unit 606, an audio circuit 607, a sensor 608, and a power supply 609. The processor 601 is electrically connected to the display screen 603, the control circuit 604, the radio frequency circuit 605, the input unit 606, the audio circuit 607, the sensor 608, and the power source 609, respectively.
显示屏603可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 603 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, text, icons, videos, and any combination thereof.
控制电路604与显示屏603电性连接,用于控制显示屏603显示信息。The control circuit 604 is electrically connected to the display screen 603 and is used to control the display screen 603 to display information.
射频电路605用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 605 is used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic device through wireless communication, and transmit and receive signals to and from the network device or other electronic device.
输入单元606可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元606可以包括指纹识别模组。The input unit 606 can be used to receive inputted numbers, character information, or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 606 may include a fingerprint recognition module.
音频电路607可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 607 can provide an audio interface between the user and the electronic device through a speaker or a microphone.
传感器608用于采集外部环境信息。传感器608可以包括环境亮度传感器、加速度传感器、光传感器、运动传感器、以及其他传感器。The sensor 608 is used to collect external environment information. The sensor 608 may include an ambient brightness sensor, an acceleration sensor, a light sensor, a motion sensor, and other sensors.
电源609用于给电子设备600的各个部件供电。在一些实施例中,电源609可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 609 is used to supply power to various components of the electronic device 600. In some embodiments, the power supply 609 may be logically connected to the processor 601 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption management through the power management system.
尽管图9中未示出,电子设备600还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 9, the electronic device 600 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
由上可知,本申请实施例提供的电子设备,通过将声纹匹配阈值与电子设备的设备连接状态进行关联,进而根据该当前的设备连接状态调整声纹匹配阈值,从而在相对保证电子设备使用安全的特定场景中,提高用户声纹特征的识别率和识别速度。It can be known from the above that the electronic device provided in the embodiment of the present application associates the voiceprint matching threshold value with the device connection status of the electronic device, and further adjusts the voiceprint matching threshold value according to the current device connection status, thereby ensuring the relative use of the electronic device In specific security scenarios, the recognition rate and speed of voiceprint features of users are improved.
在一些实施例中,还提供了一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述任一电子设备控制方法,例如:In some embodiments, a storage medium is also provided. The storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute any of the foregoing electronic device control methods, for example:
获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。Acquire the user's voice information, extract voiceprint features and instruction information in the voice information; determine the current voiceprint matching threshold, which is related to the device connection status of the electronic device; determine the voice information Whether the matching degree between the voiceprint feature in the preset and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold; if so, controlling the electronic device to perform a corresponding operation according to the content of the instruction information.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may include: Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
在描述本申请中,每个独立的值都并入本说明书中,就像这些值在本文中单独进行了陈述一样。另外,除非本文中另有指明或上下文有明确的相反提示,否则本文中所述的所有方法的步骤都可以按任何适当次序加以执行。本申请的改变并不限于描述的步骤顺序。除非另外主张,否则使用本文中所提供的任何以及所有实例或示例性语言(例如,“例如”)都仅仅为了更好地说明本申请的概念,而并非对本申请的概念的范围加以限制。在不脱离精神和范围的情况下,所属领域的技术人员将易于明白多种修改和适应。In describing this application, each individual value is incorporated into this specification, as if those values were individually recited herein. In addition, unless otherwise indicated herein or otherwise clearly indicated to the contrary by context, the steps of all methods described herein can be performed in any suitable order. Changes to this application are not limited to the sequence of steps described. The use of any and all examples or exemplary languages (eg, "such as") provided herein is intended merely to better illuminate the concepts of the application and does not pose a limitation on the scope of the application unless otherwise claimed. Many modifications and adaptations will be readily apparent to those skilled in the art without departing from the spirit and scope.
以上对本申请实施例所提供的电子设备控制方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The electronic device control method, device, storage medium, and electronic device provided in the embodiments of the present application have been described in detail above. Specific examples are used in this document to explain the principles and implementation of the present application. The description of the above embodiments is only for To help understand the method of the application and its core ideas; at the same time, for those skilled in the art, according to the ideas of the application, there will be changes in the specific implementation and application scope. In summary, the content of this description It should not be construed as a limitation on this application.

Claims (20)

  1. 一种电子设备控制方法,应用于电子设备,其中,所述方法包括:An electronic device control method applied to an electronic device, wherein the method includes:
    获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
    确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
    判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
    若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
  2. 如权利要求1所述的电子设备控制方法,其中,所述确定当前的声纹匹配阈值,包括:The method for controlling an electronic device according to claim 1, wherein the determining a current voiceprint matching threshold comprises:
    获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;Acquiring the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device;
    根据所述设备连接状态调整所述声纹匹配阈值。Adjusting the voiceprint matching threshold according to the device connection state.
  3. 如权利要求2所述的电子设备控制方法,其中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接质量,所述根据所述设备连接状态调整所述声纹匹配阈值,包括:The electronic device control method according to claim 2, wherein the device connection state includes a connection quality between the electronic device and the target device, and the adjusting the voiceprint matching threshold value according to the device connection state ,include:
    判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求;Determining whether the connection quality between the electronic device and the target device meets a preset quality requirement;
    若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
  4. 如权利要求3所述的电子设备控制方法,其中,所述连接质量包括所述电子设备与所述目标设备之间的信号强度,所述判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求,包括:The electronic device control method according to claim 3, wherein the connection quality includes a signal strength between the electronic device and the target device, and the determining the connection between the electronic device and the target device Whether the quality meets the preset quality requirements, including:
    判断所述电子设备与所述目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
  5. 如权利要求2所述的电子设备控制方法,其中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述根据所述设备连接状态调整所述声纹匹配阈值,包括:The electronic device control method according to claim 2, wherein the device connection state includes a connection state between the electronic device and the target device, and the adjusting the voiceprint matching threshold value according to the device connection state ,include:
    判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
    若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
  6. 如权利要求2所述的电子设备控制方法,其中,在所述获取所述电子设备当前的设备连接状态之前,还包括:The method for controlling an electronic device according to claim 2, before the acquiring the current device connection status of the electronic device, further comprising:
    获取所述电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在所述电子设备中预存的标识;Acquiring at least one device identifier pre-stored in the electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device;
    根据所述设备标识确定至少一个目标设备;Determining at least one target device according to the device identification;
    其中,当存在有与所述电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
    当不存在有与所述电子设备处理连接状态的设备时,所述目标设备为预存有所述设备标识的设备。When there is no device that processes the connection state with the electronic device, the target device is a device that has the device identifier pre-stored.
  7. 如权利要求1所述的电子设备控制方法,其中,所述指令信息用于指示所述电子设备播放预设音频;The method for controlling an electronic device according to claim 1, wherein the instruction information is used to instruct the electronic device to play a preset audio;
    所述根据所述指令信息的内容控制所述电子设备执行相应的操作,包括:The controlling the electronic device to perform a corresponding operation according to the content of the instruction information includes:
    控制所述电子设备播放所述预设音频。Controlling the electronic device to play the preset audio.
  8. 如权利要求1所述的电子设备控制方法,其中,所述获取用户的语音信息,包括:The method for controlling an electronic device according to claim 1, wherein the acquiring voice information of a user comprises:
    通过所述电子设备的麦克风获取持续获取环境音;Continuously acquiring ambient sound through a microphone of the electronic device;
    将所述环境音存入缓冲并进行实时匹配。The ambient sound is stored in a buffer and matched in real time.
  9. 如权利要求1所述的电子设备控制方法,其中,所述判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值之前,还包括:The method for controlling an electronic device according to claim 1, wherein said determining whether a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold ,Also includes:
    从系统的预设地址中或从服务器中获取声纹匹配阈值,所述声纹匹配阈值用于确定所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配程度。A voiceprint matching threshold is obtained from a preset address of the system or from a server, and the voiceprint matching threshold is used to determine a degree of matching between a voiceprint feature in the voice information and a voiceprint feature of a preset user.
  10. 一种电子设备控制装置,应用于电子设备,其中,所述装置包括:An electronic device control device is applied to an electronic device, wherein the device includes:
    提取模块,用于获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;An extraction module, configured to obtain voice information of a user, and extract voiceprint features and instruction information in the voice information;
    阈值确定模块,用于确定当前的声纹匹配阈值,所述声纹匹配阈值与所述电子设备的设备连接状态相关;A threshold value determining module, configured to determine a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
    判断模块,用于判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;以及A judging module, configured to judge whether a matching degree between a voiceprint feature in the voice information and a voiceprint feature of a preset user is greater than or equal to the voiceprint matching threshold; and
    执行模块,用于若所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度大于或等于所述声纹匹配阈值,则根据所述指令信息的内容控制所述电子设备执行相应的操作。An execution module configured to control the electronic device according to the content of the instruction information if the matching degree between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold. The device performs the corresponding operation.
  11. 如权利要求10所述的电子设备控制装置,其中,所述阈值确定模块,包括:The electronic device control device according to claim 10, wherein the threshold value determination module comprises:
    获取子模块,用于获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;An acquisition submodule, configured to acquire a current device connection status of the electronic device, and the device connection status is used to prompt a connection status between the electronic device and a target device;
    调整子模块,用于根据所述设备连接状态调整所述声纹匹配阈值。An adjustment sub-module is configured to adjust the voiceprint matching threshold according to the device connection status.
  12. 如权利要求11所述的电子设备控制装置,其中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述调整子模块,具体用于:The electronic device control device according to claim 11, wherein the device connection status includes a connection status between the electronic device and the target device, and the adjustment submodule is specifically configured to:
    判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
    若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
  13. 一种存储介质,其中,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以下步骤:A storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer causes the computer to perform the following steps:
    获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
    确定当前的声纹匹配阈值,所述声纹匹配阈值与电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
    判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
    若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
  14. 一种电子设备,其包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行以下步骤:An electronic device includes a processor and a memory. A computer program is stored in the memory, and the processor executes the following steps by calling the computer program stored in the memory:
    获取用户的语音信息,提取所述语音信息中的声纹特征以及指令信息;Acquiring voice information of a user, and extracting voiceprint features and instruction information in the voice information;
    确定当前的声纹匹配阈值,所述声纹匹配阈值与电子设备的设备连接状态相关;Determining a current voiceprint matching threshold, where the voiceprint matching threshold is related to a device connection state of the electronic device;
    判断所述语音信息中的声纹特征与预设用户的声纹特征之间的匹配度是否大于或等于所述声纹匹配阈值;Determining whether the degree of matching between the voiceprint feature in the voice information and the voiceprint feature of the preset user is greater than or equal to the voiceprint matching threshold;
    若是,则根据所述指令信息的内容控制所述电子设备执行相应的操作。If yes, control the electronic device to perform a corresponding operation according to the content of the instruction information.
  15. 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein the processor is further configured to perform the following steps:
    获取所述电子设备当前的设备连接状态,所述设备连接状态用于提示所述电子设备与目标设备之间的连接状态;Acquiring the current device connection status of the electronic device, where the device connection status is used to prompt the connection status between the electronic device and the target device;
    根据所述设备连接状态调整所述声纹匹配阈值。Adjusting the voiceprint matching threshold according to the device connection state.
  16. 如权利要求15所述的电子设备,其中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接质量,所述处理器还用于执行以下步骤:The electronic device according to claim 15, wherein the device connection status includes a connection quality between the electronic device and the target device, and the processor is further configured to perform the following steps:
    判断所述电子设备与所述目标设备之间的连接质量是否满足预设的质量要求;Determining whether the connection quality between the electronic device and the target device meets a preset quality requirement;
    若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
  17. 如权利要求16所述的电子设备,其中,所述连接质量包括所述电子设备与所述目标设备之间的信号强度,所述处理器还用于执行以下步骤:The electronic device according to claim 16, wherein the connection quality includes a signal strength between the electronic device and the target device, and the processor is further configured to perform the following steps:
    判断所述电子设备与所述目标设备之间的信号强度是否大于预设阈值。Determine whether the signal strength between the electronic device and the target device is greater than a preset threshold.
  18. 如权利要求15所述的电子设备,其中,所述设备连接状态包括所述电子设备与所述目标设备之间的连接状态,所述处理器还用于执行以下步骤:The electronic device according to claim 15, wherein the device connection status includes a connection status between the electronic device and the target device, and the processor is further configured to perform the following steps:
    判断所述电子设备与所述目标设备之间是否处于连接状态;Determining whether the electronic device is in a connected state with the target device;
    若是,则降低所述声纹匹配阈值。If so, lower the voiceprint matching threshold.
  19. 如权利要求15所述的电子设备,其中,所述处理器还用于执行以下步骤:The electronic device according to claim 15, wherein the processor is further configured to perform the following steps:
    获取所述电子设备中预存的至少一个设备标识,所述设备标识为用于连接的设备在所述电子设备中预存的标识;Acquiring at least one device identifier pre-stored in the electronic device, where the device identifier is an identifier pre-stored in the electronic device for the connected device;
    根据所述设备标识确定至少一个目标设备;Determining at least one target device according to the device identification;
    其中,当存在有与所述电子设备处于连接状态的设备时,所述目标设备为处于连接状态的设备;Wherein, when there is a device in a connected state with the electronic device, the target device is a device in a connected state;
    当不存在有与所述电子设备处理连接状态的设备时,所述目标设备为预存有所述设备标识的设备。When there is no device that processes the connection state with the electronic device, the target device is a device that has the device identifier pre-stored.
  20. 如权利要求14所述的电子设备,其中,所述指令信息用于指示所述电子设备播放预设音频,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein the instruction information is used to instruct the electronic device to play a preset audio, and the processor is further configured to perform the following steps:
    控制所述电子设备播放所述预设音频。Controlling the electronic device to play the preset audio.
PCT/CN2019/084214 2018-06-19 2019-04-25 Control method and apparatus for electronic device, and storage medium and electronic device WO2019242400A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810631580.2A CN108735217B (en) 2018-06-19 2018-06-19 Electronic device control method, electronic device control device, storage medium and electronic device
CN201810631580.2 2018-06-19

Publications (1)

Publication Number Publication Date
WO2019242400A1 true WO2019242400A1 (en) 2019-12-26

Family

ID=63930158

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084214 WO2019242400A1 (en) 2018-06-19 2019-04-25 Control method and apparatus for electronic device, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN108735217B (en)
WO (1) WO2019242400A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108735217B (en) * 2018-06-19 2020-12-01 Oppo广东移动通信有限公司 Electronic device control method, electronic device control device, storage medium and electronic device
CN110246505A (en) * 2019-06-24 2019-09-17 付金龙 Method, system and the electronic equipment that sound wave controlled light bar is flashed
CN110784830B (en) * 2019-09-18 2022-07-29 华为技术有限公司 Data processing method, Bluetooth module, electronic device and readable storage medium
CN111524514A (en) * 2020-04-22 2020-08-11 海信集团有限公司 Voice control method and central control equipment
CN111899390B (en) * 2020-08-04 2021-10-22 福建爱巴士网络科技有限公司 Intelligent access control method and terminal integrating sound codes and two-dimensional codes
CN112654040B (en) * 2020-12-10 2023-07-21 广州极飞科技股份有限公司 Method, apparatus, processor and non-volatile storage medium for associating devices
CN115484347A (en) * 2021-05-31 2022-12-16 华为技术有限公司 Voice control method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104966388A (en) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 Flash lamp alarm method, mobile terminal, wearable equipment, and system
US20160173492A1 (en) * 2014-12-15 2016-06-16 Samsung Electronics Co., Ltd. Authentication method using biometric information and electronic device therefor
CN107484168A (en) * 2017-07-29 2017-12-15 广东欧珀移动通信有限公司 Bio-identification unlocking method and Related product
CN107749844A (en) * 2017-10-16 2018-03-02 维沃移动通信有限公司 Auth method and mobile terminal
CN108735217A (en) * 2018-06-19 2018-11-02 Oppo广东移动通信有限公司 Control method of electronic device, device, storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103079258A (en) * 2013-01-09 2013-05-01 广东欧珀移动通信有限公司 Method for improving speech recognition accuracy and mobile intelligent terminal
CN103646646B (en) * 2013-11-27 2018-08-31 联想(北京)有限公司 A kind of sound control method and electronic equipment
CN104090710A (en) * 2014-06-25 2014-10-08 广东欧珀移动通信有限公司 Intelligent terminal unlocking method and intelligent terminal
CN105100466B (en) * 2015-07-15 2018-06-29 广东欧珀移动通信有限公司 A kind of solution screen locking method and mobile terminal based on vocal print
CN106250751B (en) * 2016-07-18 2019-09-17 青岛海信移动通信技术股份有限公司 A kind of mobile device and the method for adjusting sign information detection threshold value
CN107666583B (en) * 2017-09-07 2020-09-11 宇龙计算机通信科技(深圳)有限公司 Call processing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160173492A1 (en) * 2014-12-15 2016-06-16 Samsung Electronics Co., Ltd. Authentication method using biometric information and electronic device therefor
CN104966388A (en) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 Flash lamp alarm method, mobile terminal, wearable equipment, and system
CN107484168A (en) * 2017-07-29 2017-12-15 广东欧珀移动通信有限公司 Bio-identification unlocking method and Related product
CN107749844A (en) * 2017-10-16 2018-03-02 维沃移动通信有限公司 Auth method and mobile terminal
CN108735217A (en) * 2018-06-19 2018-11-02 Oppo广东移动通信有限公司 Control method of electronic device, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108735217B (en) 2020-12-01
CN108735217A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
WO2019242400A1 (en) Control method and apparatus for electronic device, and storage medium and electronic device
CN107944380B (en) Identity recognition method and device and storage equipment
CN109346061B (en) Audio detection method, device and storage medium
KR102208477B1 (en) Operating Method For Microphones and Electronic Device supporting the same
US11290447B2 (en) Face verification method and device
CN111479011B (en) Power adjustment method, device, storage medium and electronic equipment
US11328044B2 (en) Dynamic recognition method and terminal device
CN109378000A (en) Voice awakening method, device, system, equipment, server and storage medium
CN108345819B (en) Method and device for sending alarm message
CN106658489B (en) Terminal application processing method and device and mobile terminal
CN106528545B (en) Voice information processing method and device
WO2019228136A1 (en) Application control method, apparatus, storage medium and electronic device
WO2016173453A1 (en) Living body identification method, information generation method and terminal
CN106548144B (en) Iris information processing method and device and mobile terminal
US20140341444A1 (en) Systems and Methods for User Login
US20190392237A1 (en) Method for Fingerprint Enrollment, Terminal, and Non-Transitory Computer Readable Storage Medium
WO2019015418A1 (en) Unlocking control method and related product
US20150212793A1 (en) Mobile terminal and image processing method thereof
WO2014183370A1 (en) Systems and methods for user login
CN109788423B (en) Voice receiving method, device and computer readable storage medium
US10671713B2 (en) Method for controlling unlocking and related products
WO2019228141A1 (en) Control method and apparatus for electronic device, and storage medium and electronic device
WO2019011108A1 (en) Iris recognition method and related product
CN108597495B (en) Method and device for processing voice data
CN108762712A (en) Control method of electronic device, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19822122

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19822122

Country of ref document: EP

Kind code of ref document: A1