Voiceprint data processing method and device, computer device and storage medium
By generating a combined identifier of the device's universal unique identification information and application information, the problem of voiceprint information confusion in Android devices is solved, and the accuracy of voiceprint verification and operation permissions is achieved.
Patent Information
- Application Number
- CN202010112886.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-24
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2040-02-24
AI Technical Summary
It is difficult to obtain the unique device identifier in Android devices, which leads to confusion and loss of voiceprint information, affecting the accuracy of voiceprint verification.
By obtaining the device's universal unique identification information and application information to generate valid device identification information, a voiceprint verification request is sent to the server to verify the consistency of the standard voiceprint, ensuring the uniqueness and accuracy of the identification information.
The accuracy of voiceprint verification and operation permissions has been improved, ensuring the consistency of voiceprint verification results across different devices and applications.
Smart Images

Figure CN111291345B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a voiceprint data processing method, apparatus, computer equipment, and storage medium. Background Art
[0002] At present, most terminal devices (such as mobile phones, tablets, etc.) can collect voiceprints. Different applications can collect different voiceprints, and the collected voiceprints can serve different functions, such as login verification voiceprints, payment verification voiceprints, etc.
[0003] Currently, the device unique identifiers commonly used in Android devices are difficult to obtain and cannot be used for unique identification. As the scale of voiceprint information increases, if the identification work is not done well, it will lead to confusion and loss of voiceprint information. Therefore, it is becoming increasingly important to perform identification extraction for specific voiceprint collection devices to provide a unique match between voiceprints and devices. Summary of the Invention
[0004] Based on this, it is necessary to provide a voiceprint data processing method, device, computer equipment and storage medium to address the above technical problems, so that the device identification information is unique for different devices and different applications, thereby ensuring the accuracy of standard voiceprints obtained on different devices and improving the accuracy of voiceprint verification.
[0005] A voiceprint data processing method, the method comprising:
[0006] Obtaining a first voiceprint collected by a first application, and locally obtaining valid device identification information corresponding to the first application, where the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, where the device universal unique identification information includes at least one of a device serial number or a mobile device identification code;
[0007] Sending a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application according to the valid device identification information, and verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result;
[0008] Receive the verification result returned by the server, and perform corresponding operations according to the verification result.
[0009] In one embodiment, the method further comprises:
[0010] Obtaining an operation instruction acting on the first application;
[0011] collecting a standard voiceprint corresponding to the first application through the first application;
[0012] Obtaining the device universal unique identification information of the device where the first application is located, and generating current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application;
[0013] When the valid device identification information corresponding to the first application does not exist locally, the current device identification information is stored locally as the valid device identification information corresponding to the first application, and the valid device identification information and the standard voiceprint are sent to the server so that the server stores the association between the valid device identification information and the standard voiceprint.
[0014] In one embodiment, obtaining an operation instruction acting on the first application, collecting a standard voiceprint corresponding to the first application through the first application, obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application includes:
[0015] Obtaining an application startup instruction for starting the first application for the first time;
[0016] Acquire a device serial number of the device where the first application is located according to the application startup instruction, and when the device serial number is normal data, combine the device serial number and the application information of the first application to generate current device identification information corresponding to the first application;
[0017] When the device serial number is abnormal data, a mobile device identification code of the device where the first application is located is obtained, and the mobile device identification code and application information of the first application are combined to generate current device identification information corresponding to the first application.
[0018] In one embodiment, storing the current device identification information locally as valid device identification information corresponding to the first application includes:
[0019] Generate a random prefix and a random suffix, and combine the random prefix, current device identification information, and the random suffix in order to generate processing device identification information;
[0020] The processed device identification information is encrypted to obtain encrypted device identification information, and the encrypted device identification information is stored locally as valid device identification information corresponding to the first application.
[0021] In one embodiment, the method further comprises:
[0022] Obtaining a current operation instruction type; when no valid device identification information corresponding to the current operation instruction type exists locally, generating valid device identification information corresponding to the current operation instruction type based on the current operation instruction type and the current device identification information, storing the information locally, and sending the valid device identification information and the standard voiceprint corresponding to the current operation instruction type to a server, so that the server stores an association between the valid device identification information and the standard voiceprint corresponding to the current operation instruction type;
[0023] Obtaining a first operation instruction acting on a first application, and determining a first operation instruction type corresponding to the first operation instruction;
[0024] Obtaining target valid device identification information corresponding to the first operation instruction type;
[0025] The voiceprint verification request includes the target valid device identification information and the first voiceprint, so that the server obtains the target standard voiceprint that matches the first operation instruction type according to the target valid device identification information, verifies the consistency between the target standard voiceprint and the first voiceprint, and obtains the verification result corresponding to the first operation instruction.
[0026] In one embodiment, the verification result includes verification results corresponding to multiple different operation instructions, and the receiving the verification result returned by the server and performing corresponding operations according to the verification result include:
[0027] Obtain the operation instruction with the verification result as passed as the target execution operation instruction;
[0028] Target operations acting on the first application are executed according to the target execution operation instructions, where the target operations include at least one of a login operation, a payment operation, and an information modification operation.
[0029] A voiceprint data processing device, comprising:
[0030] an acquisition module, configured to acquire a first voiceprint collected by a first application, and locally acquire valid device identification information corresponding to the first application, wherein the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, wherein the device universal unique identification information includes at least one of a device serial number or a mobile device identification code;
[0031] a sending module, configured to send a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application according to the valid device identification information, and verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result;
[0032] An execution module is used to receive the verification result returned by the server and perform corresponding operations according to the verification result.
[0033] In one embodiment, the apparatus further comprises:
[0034] The first preprocessing module is used to obtain operation instructions acting on the first application, collect the standard voiceprint corresponding to the first application through the first application, obtain the device universal unique identification information of the device where the first application is located, and generate the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; when the valid device identification information corresponding to the first application does not exist locally, the current device identification information is stored locally as the valid device identification information corresponding to the first application, and the valid device identification information and the standard voiceprint are sent to the server, so that the server stores the association between the valid device identification information and the standard voiceprint.
[0035] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0036] Obtaining a first voiceprint collected by a first application, and locally obtaining valid device identification information corresponding to the first application, where the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, where the device universal unique identification information includes at least one of a device serial number or a mobile device identification code;
[0037] Sending a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application according to the valid device identification information, and verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result;
[0038] Receive the verification result returned by the server, and perform corresponding operations according to the verification result.
[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0040] Obtaining a first voiceprint collected by a first application, and locally obtaining valid device identification information corresponding to the first application, where the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, where the device universal unique identification information includes at least one of a device serial number or a mobile device identification code;
[0041] Sending a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application according to the valid device identification information, and verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result;
[0042] Receive the verification result returned by the server, and perform corresponding operations according to the verification result.
[0043] The above-mentioned voiceprint data processing method, device, computer equipment and storage medium obtain the valid device identification information corresponding to the first application from the local computer. The valid device identification information is generated by the device universal unique identification information of the device where the first application is located and the application information of the first application. The server obtains the corresponding standard voiceprint based on the valid device identification information. Since the valid device identification information is unique for different devices and different applications, the accuracy of the standard voiceprint obtained on different devices is guaranteed. The consistency of the standard voiceprint and the first voiceprint is verified to obtain a verification result, thereby improving the accuracy of the voiceprint verification and ensuring the accuracy of the operation authority to perform the corresponding operation based on the voiceprint verification result. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A diagram showing an application environment of a voiceprint data processing method in one embodiment;
[0045] Figure 2 1 is a flow chart of a method for processing voiceprint data in one embodiment;
[0046] Figure 3 is a structural block diagram of a voiceprint data processing device in one embodiment;
[0047] Figure 4 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0049] The voiceprint data processing method provided in this application can be applied to Figure 1 In the application environment shown. Figure 1 FIG. 1 is a diagram showing an application environment in which a voiceprint data processing method is executed in one embodiment. Figure 1 As shown, the application environment includes a terminal 110 and a server 120. The terminal and the server communicate with each other through a network, which can be a wireless or wired communication network, such as an IP network, a cellular mobile communication network, etc., wherein the number of terminals and servers is not limited.
[0050] Among them, the terminal 110 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers. The terminal 110 obtains the first voiceprint collected by the first application, obtains the valid device identification information corresponding to the first application from the local, the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, the device universal unique identification information includes one of the device serial number or the mobile device identification code, sends a voiceprint verification request to the server 120, the voiceprint verification request includes the valid device identification information and the first voiceprint, so that the server obtains the standard voiceprint corresponding to the first application according to the valid device identification information, verifies the consistency of the standard voiceprint and the first voiceprint to obtain a verification result; receives the verification result returned by the server 120, and performs corresponding operations according to the verification result.
[0051] In one embodiment, Figure 2 As shown, a voiceprint data processing method is provided, which is applied to Figure 1 The terminal 110 in FIG. 1 is taken as an example to illustrate the process, including the following steps:
[0052] Step 210: Obtain the first voiceprint collected by the first application, and obtain the valid device identification information corresponding to the first application locally. The valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application. The device universal unique identification information includes one of the device serial number or the mobile device identification code.
[0053] The first application can be a native application on the device or a downloaded and installed application. The type of the first application is not limited and can be a login application, a payment application, a social application, a game application, etc. The first application can be one or more sub-applications within a main application. Each sub-application runs dependent on the main application and is accessed through the main application's page.
[0054] Specifically, the valid device identification information corresponding to each application can be obtained from a storage space corresponding to each application, which still exists after the application is uninstalled, and if the application is installed again after uninstallation, the application data of the application previously stored in the storage space can still be used. The data in the target storage space can be stored in the form of key-value. In an embodiment, the key is a unique name edited, for example: key = voice: print: username, and the value is the valid device identification information corresponding to the application.
[0055] The voiceprint refers to the acoustic spectrum of a speech signal, and the voiceprint has particularity and stability. Through voiceprint recognition, the user identity can be detected. The collected voice data can be extracted by a voiceprint feature extraction model to obtain voiceprint features, so as to obtain a first voiceprint according to the voiceprint features. The voiceprint features can include acoustic features, lexical features, prosodic features, language, dialect and accent information, channel information, and the like.
[0056] The serial number of the device is a unique serial number given by the device. Some devices return garbage data, so when the device cannot return a normal serial number, the mobile device identification code is used. The mobile device identification code includes an IMEI (International Mobile Equipment Identity) number, which is returned by a GSM (Global System for Mobile Communications) device, and the application will not change after being reinstalled, and the user needs to grant permission. The MEID (Mobile Equipment Identifier) / ESN (Electronic Serial Number) number is returned by a CDMA (Code Division Multiple Access) device, and the device usually supports both GSM and CDMA. Therefore, the IMEI number and the MEID / ESN number can be used to generate valid device identification information at the same time. When the serial number is extracted and garbage data is returned, the application will apply to the user to open the "read_phone_state" permission of the device. After having the permission, the IMEI number and the MEID / ESN number of the device can be extracted.
[0057] The device universal unique identification information is generated by a system of the device, and the device universal unique identification code can ensure that all elements in a distributed system have unique identification information, but there can be two same device universal unique identification information. The value of the effective device identification information is unique, and the uniqueness is further ensured by generating the effective device identification information through the device universal unique identification information and the application information of the first application. The application information of the first application is information unique to the application, which can be application identification information, application operation information, or a combination of multiple different types of application information.
[0058] In one embodiment, the effective device identification information includes identification bit information, which is used to identify the information category of the device universal unique identification information.
[0059] In one embodiment, the effective device identification information is also generated according to historical operation information acting on the first application. The historical operation information includes at least one of time operation information, space operation information, and device space state information. The time operation information includes current operation time, which can be converted into a timestamp. The space operation information includes geographic location information, which can be converted into a location code through "World Country and Region Name Code" and "National Region Code Table". The device space state can be the current space position of the device, including the tilt angle and the motion speed, which can be collected by a gyroscope. The historical operation information can also include operation object information, such as the user identification of the operating application. Multiple different types of historical operation information and the device universal unique identification code can be combined to generate the effective device identification information.
[0060] Different applications, even if belonging to the same device, have different unique effective device identification information due to different application information.
[0061] In step 220, a voiceprint verification request is sent to the server, and the voiceprint verification request includes the effective device identification information and the first voiceprint, so that the server obtains the standard voiceprint corresponding to the first application according to the effective device identification information, verifies the consistency of the standard voiceprint and the first voiceprint, and obtains a verification result.
[0062] Specifically, the voiceprint verification request is used to verify whether the currently collected voiceprint is consistent with the historical bound voiceprint, and if consistent, the user identity is verified, and the corresponding operation on the first application can be performed. If the verification fails, the user identity verification fails, and there is no operation permission on the first application. In order to obtain the standard voiceprint corresponding to the device and the application, the valid device identification information corresponding to the device and the application needs to be sent to the server to obtain the corresponding standard voiceprint. Since the valid device identification information is unique, the corresponding standard voiceprint can be uniquely determined, effectively avoiding the problem that multiple different devices and different applications have the same device identification information to obtain incorrect standard voiceprints, resulting in inaccurate verification results. Due to the uniqueness of the valid device identification information, the server only needs to store the association relationship between the valid device identification information and the standard voiceprint, so as to distinguish different devices, the same application on different devices, and different applications on the same device, thereby improving the accuracy of voiceprint verification and ensuring the effectiveness of voiceprint information management.
[0063] In step 230, the verification result returned by the server is received, and the corresponding operation is performed according to the verification result.
[0064] Specifically, if the verification is successful, the corresponding operation on the first application can be performed. When different pages and different functions of the application need to be operated, one or more voiceprint verification requests can be sent to the server at a time. If the same voiceprint is used for verification of multiple different application operation instructions, the voiceprint verification request only needs to include the same collected voiceprint. If different voiceprints are used for verification of different application operation instructions, the voiceprint verification request can include multiple first voiceprints corresponding to each application operation instruction, and multiple different verification results corresponding to the application operation instructions are obtained. Only the operation of the operation instruction with the verification result of verification pass can be executed. In this case, it is necessary to ensure that there is a corresponding standard voiceprint for each different operation instruction of the same device.
[0065] In this embodiment, the valid device identification information corresponding to the first application is obtained from the local, and the valid device identification information is generated from the device universal unique identification information of the device where the first application is located and the application information of the first application. The server obtains the corresponding standard voiceprint according to the valid device identification information. Since the valid device identification information is unique for different devices and different applications, the accuracy of obtaining the standard voiceprint on different devices is ensured, the consistency of the standard voiceprint and the first voiceprint is verified to obtain the verification result, thereby improving the accuracy of voiceprint verification and ensuring the accuracy of the operation permission of the corresponding operation according to the voiceprint verification result.
[0066] In one embodiment, the method further comprises: obtaining an operation instruction for the first application; collecting, by the first application, a standard voiceprint corresponding to the first application; obtaining device universally unique identification information of a device on which the first application is located, and generating current device identification information corresponding to the first application according to the device universally unique identification information and application information of the first application; when there is no valid device identification information corresponding to the first application locally, storing the current device identification information as the valid device identification information corresponding to the first application locally, and sending the valid device identification information and the standard voiceprint to the server, so that the server stores an association relationship between the valid device identification information and the standard voiceprint.
[0067] The operation instruction is used to perform a corresponding operation on the first application, and can be an installation operation instruction, a start operation instruction, a login operation instruction, a friend adding operation instruction, a payment operation instruction, etc. It can be understood that the operation instruction can be one or more, but as long as the valid device identification information already exists locally, the current device identification information does not need to be generated again when the operation instruction is obtained subsequently. Various operations of the same application on the same device that need to be verified by a voiceprint share the same standard voiceprint.
[0068] Specifically, the standard voiceprint can be a voiceprint of a user of the device owner, and only a user matching the standard voiceprint has the permission to operate an application on the device. Since the valid device identification information generated by different applications of the same device is different, different standard voiceprints can be set for different applications. The generated valid device identification information corresponding to each application is stored in a local private storage space corresponding to each application, thereby ensuring the convenience and accuracy of subsequent acquisition of the valid device identification information corresponding to each application, and the association relationship between the valid device identification information and the standard voiceprint is stored in the server in advance, thereby facilitating subsequent voiceprint verification.
[0069] In one embodiment, when the server stores the voiceprint of the device user, a flag bit is set for the valid device identification information. If the flag bit is "1", it indicates that the serial number SerialNumber is used when the valid device identification information of the device is generated. If the flag bit is "0", it indicates that the IMEI number or the MEID / ESN number is used when the valid device identification information of the device is generated.
[0070] In one embodiment, an operation instruction acting on the first application is obtained, a standard voiceprint corresponding to the first application is collected through the first application, the device universal unique identification information of the device where the first application is located is obtained, and the current device identification information corresponding to the first application is generated based on the device universal unique identification information and the application information of the first application, including: obtaining an application startup instruction for starting the first application for the first time; obtaining a device serial number of the device where the first application is located based on the application startup instruction, when the device serial number is normal data, combining the device serial number and the application information of the first application to generate the current device identification information corresponding to the first application; when the device serial number is abnormal data, obtaining a mobile device identification code of the device where the first application is located, and combining the mobile device identification code and the application information of the first application to generate the current device identification information corresponding to the first application.
[0071] Specifically, the device serial number SerialNumber can be obtained through the system's built-in "android.os.Build.SERIAL" code. Since this interface does not distinguish whether the device is a mobile phone or other types of devices such as tablets, the application can use the device serial number as the main identification of the device. However, using this method on some mobile phones will return garbage data and the device cannot be identified. In this case, the IMEI number and MEID / ESN number can be used as an auxiliary. These three identifications can meet the requirements of both GSM and CDMA devices, and will not cause acquisition failure due to unsupported device models. Therefore, when garbage data is returned after extracting the serial number, the application will ask the user to open the "read_phone_state" permission of the device. With this permission, the device's mobile device identification code, namely the IMEI number and / or MEID / ESN number, can be extracted.
[0072] In one embodiment, when the device serial number is used, the identification bit of the current device identification information is set to a first value; when the mobile device identification code is used, the identification bit of the current device identification information is set to a second value. If the device serial number is used, the identification bit can be set to 1; if the mobile device identification code is used, the identification bit can be set to 0.
[0073] In one embodiment, the current device identification information is stored locally as the valid device identification information corresponding to the first application. A random prefix and a random suffix are generated, and the random prefix, the current device identification information, and the random suffix are sequentially combined to generate the processed device identification information. The processed device identification information is encrypted to obtain encrypted device identification information, and the encrypted device identification information is stored locally as the valid device identification information corresponding to the first application.
[0074] Specifically, the current device identification information generated by the above method reduces the recognizability of the identification after combination, but the encryption of the current device identification information is also extremely important. Use the method of generating random numbers to add a random prefix and a random suffix to the current device identification information to obtain the processed device identification information, and then adopt an encryption algorithm, such as base62, to encode to obtain the encrypted device identification information, which can greatly increase the security of the identification code and ensure that it will not be easily cracked by attackers. In one embodiment, when the first application is started for the first time, the identification code generated by the combined encryption is stored locally as the unique identification of the device corresponding to the first application, and the value is transmitted back to the server for storage with the standard voiceprint. When matching the device identification later, it is only necessary to check whether the space corresponding to the first application in the local area of the device has a stored value. If it has been stored, the value is directly retrieved for matching and the corresponding standard voiceprint is obtained. If it is not stored, it means that the match has failed and the value generated this time is stored.
[0075] In one embodiment, the method further includes: obtaining the current operation instruction type; when the current operation instruction type does not have corresponding valid device identification information locally, generating valid device identification information corresponding to the current operation instruction type based on the current operation instruction type and the current device identification information, storing the information locally, and sending the valid device identification information and standard voiceprint corresponding to the current operation instruction type to a server, so that the server stores the association between the valid device identification information and standard voiceprint corresponding to the current operation instruction type. Obtaining a first operation instruction acting on a first application, determining the first operation instruction type corresponding to the first operation instruction; obtaining target valid device identification information corresponding to the first operation instruction type; a voiceprint verification request including the target valid device identification information and the first voiceprint, so that the server obtains a target standard voiceprint matching the first operation instruction type based on the target valid device identification information, verifies the consistency of the target standard voiceprint with the first voiceprint, and obtains a verification result corresponding to the first operation instruction.
[0076] Specifically, based on the function of the operation instruction, operation instructions with the same function can be treated as the same type of operation instructions, such as payment type operation instructions, login type operation instructions, and friend adding type operation instructions. Different types of operation instructions have different levels of priority and security, and can be verified by the voiceprints of users with different levels of identity. If the payment type requires a higher level of priority, the voiceprint of the user with a higher identity level will be used for verification. The valid device identification information corresponding to the current operation instruction type is generated based on the current operation instruction type and the current device identification information, so that different valid device identification information can be obtained according to different operation instruction types. Different types of operation instructions of the same application correspond to different valid device identification information, so that the standard voiceprint corresponding to the target operation instruction type of the target application can be obtained from the server through the valid device identification information, so that different types of operation instructions of the same application have different standard voiceprints and are verified by different user identities. Due to the uniqueness of the generated valid device identification information, the accuracy of the standard voiceprint acquisition is guaranteed.
[0077] In one embodiment, the verification result includes verification results corresponding to multiple different operation instructions. Step 230 includes: obtaining the operation instruction with the verification result of passing as the target execution operation instruction, and executing the target operation acting on the first application according to each target execution operation instruction. The target operation includes at least one of a login operation, a payment operation, and an information modification operation.
[0078] Specifically, since different types of instructions can be verified by users with different identities, they may also correspond to different verification results. Only operation instructions with passed verification results can perform the corresponding operations, and the operation permissions of multiple operation instructions can be verified in parallel at one time. Parallel verification is performed by carrying voiceprint verification requests corresponding to the operation instructions, which improves the efficiency of voiceprint verification and the convenience of permission distribution.
[0079] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0080] In one embodiment, Figure 3As shown, a voiceprint data processing device is provided, including: an acquisition module 310, a sending module 320, and an execution module 330, wherein:
[0081] The acquisition module 310 is used to obtain the first voiceprint collected by the first application, and obtain the valid device identification information corresponding to the first application from the local computer. The valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application. The device universal unique identification information includes at least one of the device serial number or the mobile device identification code.
[0082] The sending module 320 is used to send a voiceprint verification request to the server, where the voiceprint verification request includes valid device identification information and the first voiceprint, so that the server obtains the standard voiceprint corresponding to the first application based on the valid device identification information, and verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result.
[0083] The execution module 330 is used to receive the verification result returned by the server and perform corresponding operations according to the verification result.
[0084] In one embodiment, the apparatus further comprises:
[0085] The first preprocessing module 340 is used to obtain operation instructions acting on the first application, collect the standard voiceprint corresponding to the first application through the first application, obtain the device universal unique identification information of the device where the first application is located, and generate the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; when the valid device identification information corresponding to the first application does not exist locally, the current device identification information is stored locally as the valid device identification information corresponding to the first application, and the valid device identification information and the standard voiceprint are sent to the server, so that the server stores the association between the valid device identification information and the standard voiceprint.
[0086] In one embodiment, the first preprocessing module 340 is also used to obtain an application startup instruction for starting the first application for the first time; obtain the device serial number of the device where the first application is located according to the application startup instruction, and when the device serial number is normal data, combine the device serial number and the application information of the first application to generate the current device identification information corresponding to the first application; when the device serial number is abnormal data, obtain the mobile device identification code of the device where the first application is located, and combine the mobile device identification code and the application information of the first application to generate the current device identification information corresponding to the first application.
[0087] In one embodiment, the first preprocessing module 340 is also used to generate a random prefix and a random suffix, and combine the random prefix, current device identification information, and random suffix in sequence to generate processing device identification information; encrypt the processing device identification information to obtain encrypted device identification information, and store the encrypted device identification information locally as the valid device identification information corresponding to the first application.
[0088] In one embodiment, the apparatus further comprises:
[0089] The second pre-processing module 350 is configured to obtain a current operation instruction type, and when no valid device identification information corresponding to the current operation instruction type exists locally, generate valid device identification information corresponding to the current operation instruction type based on the current operation instruction type and the current device identification information, store the information locally, and send the valid device identification information and the standard voiceprint corresponding to the current operation instruction type to a server, so that the server stores the association between the valid device identification information and the standard voiceprint corresponding to the current operation instruction type;
[0090] Processing module 360 is used to obtain a first operation instruction acting on a first application, determine a first operation instruction type corresponding to the first operation instruction; obtain target valid device identification information corresponding to the first operation instruction type; the voiceprint verification request includes the target valid device identification information and the first voiceprint, so that the server obtains a target standard voiceprint matching the first operation instruction type according to the target valid device identification information, verifies the consistency of the target standard voiceprint with the first voiceprint, and obtains a verification result corresponding to the first operation instruction.
[0091] In one embodiment, the verification result includes verification results corresponding to multiple different operation instructions, and the execution module 330 is also used to obtain the operation instruction with a passed verification result as a target execution operation instruction; according to each target execution operation instruction, the target operation acting on the first application is executed, and the target operation includes at least one of a login operation, a payment operation, and an information modification operation.
[0092] The specific definition of the voiceprint data processing device can be found in the definition of the voiceprint data processing method above and will not be repeated here. The various modules in the above-mentioned voiceprint data processing device can be implemented in whole or in part through software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0093] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, a network interface, an input device, and a display screen connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to perform a voiceprint data processing method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform a data processing method. The display screen of the computer device may be a liquid crystal display or an electronic ink display. The input device of the computer device may be a touchscreen covering the display screen, buttons, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse.
[0094] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0095] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: obtaining a first voiceprint collected by a first application, obtaining valid device identification information corresponding to the first application locally, wherein the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, and the device universal unique identification information includes at least one of a device serial number and a mobile device identification code; sending a voiceprint verification request to a server, wherein the voiceprint verification request includes the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application based on the valid device identification information, verifies the consistency between the standard voiceprint and the first voiceprint, and obtains a verification result; receives the verification result returned by the server, and performs corresponding operations based on the verification result.
[0096] In one embodiment, when the processor executes the computer program, it also implements the following steps: obtaining operation instructions acting on the first application; collecting a standard voiceprint corresponding to the first application through the first application; obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; when the valid device identification information corresponding to the first application does not exist locally, storing the current device identification information as the valid device identification information corresponding to the first application locally, and sending the valid device identification information and the standard voiceprint to the server, so that the server stores the association between the valid device identification information and the standard voiceprint.
[0097] In one embodiment, the obtaining of the operation instruction acting on the first application, collecting the standard voiceprint corresponding to the first application through the first application, obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application include: obtaining the application startup instruction for starting the first application for the first time; obtaining the device serial number of the device where the first application is located based on the application startup instruction, when the device serial number is normal data, combining the device serial number and the application information of the first application to generate the current device identification information corresponding to the first application; when the device serial number is abnormal data, obtaining the mobile device identification code of the device where the first application is located, and combining the mobile device identification code and the application information of the first application to generate the current device identification information corresponding to the first application.
[0098] In one embodiment, storing the current device identification information locally as the valid device identification information corresponding to the first application includes: generating a random prefix and a random suffix, and combining the random prefix, current device identification information, and random suffix in sequence to generate processing device identification information; encrypting the processing device identification information to obtain encrypted device identification information, and storing the encrypted device identification information locally as the valid device identification information corresponding to the first application.
[0099] In one embodiment, when the processor executes the computer program, it also implements the following steps: obtaining the current operation instruction type, and when the corresponding valid device identification information of the current operation instruction type does not exist locally, generating the valid device identification information corresponding to the current operation instruction type according to the current operation instruction type and the current device identification information and storing it locally, sending the valid device identification information and standard voiceprint corresponding to the current operation instruction type to the server, so that the server stores the association relationship between the valid device identification information and the standard voiceprint corresponding to the current operation instruction type; obtaining the first operation instruction acting on the first application, and determining the first operation instruction type corresponding to the first operation instruction; obtaining the target valid device identification information corresponding to the first operation instruction type; the voiceprint verification request includes the target valid device identification information and the first voiceprint, so that the server obtains the target standard voiceprint matching the first operation instruction type according to the target valid device identification information, verifies the consistency of the target standard voiceprint with the first voiceprint, and obtains the verification result corresponding to the first operation instruction.
[0100] In one embodiment, the verification result includes verification results corresponding to multiple different operation instructions. The verification result returned by the server is received, and corresponding operations are performed according to the verification result, including: obtaining the operation instruction with a verification result of passed as a target execution operation instruction; executing a target operation acting on the first application according to each target execution operation instruction, and the target operation includes at least one of a login operation, a payment operation, and an information modification operation.
[0101] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a first voiceprint collected by a first application, obtaining valid device identification information corresponding to the first application locally, the valid device identification information being generated based on the device universal unique identification information of the device where the first application is located and the application information of the first application, the device universal unique identification information including at least one of a device serial number or a mobile device identification code; sending a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application based on the valid device identification information, verifies the consistency between the standard voiceprint and the first voiceprint to obtain a verification result; receives the verification result returned by the server, and performs corresponding operations based on the verification result.
[0102] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining operation instructions acting on the first application; collecting the standard voiceprint corresponding to the first application through the first application; obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; when the valid device identification information corresponding to the first application does not exist locally, storing the current device identification information as the valid device identification information corresponding to the first application locally, and sending the valid device identification information and the standard voiceprint to the server, so that the server stores the association between the valid device identification information and the standard voiceprint.
[0103] In one embodiment, the obtaining of the operation instruction acting on the first application, collecting the standard voiceprint corresponding to the first application through the first application, obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application include: obtaining the application startup instruction for starting the first application for the first time; obtaining the device serial number of the device where the first application is located based on the application startup instruction, when the device serial number is normal data, combining the device serial number and the application information of the first application to generate the current device identification information corresponding to the first application; when the device serial number is abnormal data, obtaining the mobile device identification code of the device where the first application is located, and combining the mobile device identification code and the application information of the first application to generate the current device identification information corresponding to the first application.
[0104] In one embodiment, storing the current device identification information locally as the valid device identification information corresponding to the first application includes: generating a random prefix and a random suffix, and combining the random prefix, current device identification information, and random suffix in sequence to generate processing device identification information; encrypting the processing device identification information to obtain encrypted device identification information, and storing the encrypted device identification information locally as the valid device identification information corresponding to the first application.
[0105] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the current operation instruction type, and when the corresponding valid device identification information of the current operation instruction type does not exist locally, generating the valid device identification information corresponding to the current operation instruction type according to the current operation instruction type and the current device identification information and storing it locally, sending the valid device identification information and standard voiceprint corresponding to the current operation instruction type to the server, so that the server stores the association relationship between the valid device identification information and the standard voiceprint corresponding to the current operation instruction type; obtaining the first operation instruction acting on the first application, and determining the first operation instruction type corresponding to the first operation instruction; obtaining the target valid device identification information corresponding to the first operation instruction type; the voiceprint verification request includes the target valid device identification information and the first voiceprint, so that the server obtains the target standard voiceprint matching the first operation instruction type according to the target valid device identification information, verifies the consistency of the target standard voiceprint with the first voiceprint, and obtains the verification result corresponding to the first operation instruction.
[0106] In one embodiment, the verification result includes verification results corresponding to multiple different operation instructions. The verification result returned by the server is received, and corresponding operations are performed according to the verification result, including: obtaining the operation instruction with a verification result of passed as a target execution operation instruction; executing a target operation acting on the first application according to each target execution operation instruction, and the target operation includes at least one of a login operation, a payment operation, and an information modification operation.
[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, databases, or other media in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0108] The technical features of the above embodiments can be combined in any way. In order to make the description simple, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist, they should be considered as the scope of the present application.
[0109] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent of the present application should be subject to the appended claims.
Claims
1. A method for processing voiceprint data, the method comprising: Obtaining a first voiceprint collected by a first application, and locally obtaining valid device identification information corresponding to the first application, where the valid device identification information is generated based on the device universal unique identification information of the device where the first application is located and application information of the first application, where the device universal unique identification information includes at least one of a device serial number or a mobile device identification code, and the valid device identification information is generated based on historical operation information acting on the first application, where the historical operation information includes at least one of time operation information, spatial operation information, and device spatial status; Sending a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application based on the valid device identification information, verifies the consistency between the standard voiceprint and the first voiceprint, and obtains a verification result. Different operation instructions of the same device may have corresponding standard voiceprints. If different application operation instructions use different voiceprints for verification, the voiceprint verification request includes multiple first voiceprints corresponding to each application operation instruction. The verification result returned by the server is received, and corresponding operations are performed according to the verification result, including: obtaining multiple different verification results corresponding to application operation instructions, and only operations of the operation instructions with verification results passing the verification can be performed.
2. The method according to claim 1, characterized in that The method also includes: Obtaining an operation instruction acting on the first application; collecting a standard voiceprint corresponding to the first application through the first application; Obtaining the device universal unique identification information of the device where the first application is located, and generating current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; When the valid device identification information corresponding to the first application does not exist locally, the current device identification information is stored locally as the valid device identification information corresponding to the first application, and the valid device identification information and the standard voiceprint are sent to the server so that the server stores the association between the valid device identification information and the standard voiceprint.
3. The method according to claim 2, characterized in that The step of obtaining an operation instruction acting on the first application, collecting a standard voiceprint corresponding to the first application through the first application, obtaining the device universal unique identification information of the device where the first application is located, and generating the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application includes: Obtaining an application startup instruction for starting the first application for the first time; Acquire a device serial number of the device where the first application is located according to the application startup instruction, and when the device serial number is normal data, combine the device serial number and the application information of the first application to generate current device identification information corresponding to the first application; When the device serial number is abnormal data, a mobile device identification code of the device where the first application is located is obtained, and the mobile device identification code and application information of the first application are combined to generate current device identification information corresponding to the first application.
4. The method according to claim 2, characterized in that The storing the current device identification information as the valid device identification information corresponding to the first application locally includes: Generate a random prefix and a random suffix, and combine the random prefix, current device identification information, and the random suffix in order to generate processing device identification information; The processed device identification information is encrypted to obtain encrypted device identification information, and the encrypted device identification information is stored locally as valid device identification information corresponding to the first application.
5. The method according to claim 2, characterized in that The method further comprises: Obtaining a current operation instruction type; when no valid device identification information corresponding to the current operation instruction type exists locally, generating valid device identification information corresponding to the current operation instruction type based on the current operation instruction type and the current device identification information, storing the information locally, and sending the valid device identification information and the standard voiceprint corresponding to the current operation instruction type to a server, so that the server stores an association between the valid device identification information and the standard voiceprint corresponding to the current operation instruction type; Obtaining a first operation instruction acting on a first application, and determining a first operation instruction type corresponding to the first operation instruction; Obtaining target valid device identification information corresponding to the first operation instruction type; The voiceprint verification request includes the target valid device identification information and the first voiceprint, so that the server obtains the target standard voiceprint that matches the first operation instruction type according to the target valid device identification information, verifies the consistency between the target standard voiceprint and the first voiceprint, and obtains the verification result corresponding to the first operation instruction.
6. The method according to claim 1, characterized in that The verification result includes verification results corresponding to a plurality of different operation instructions, and the receiving the verification result returned by the server and performing a corresponding operation according to the verification result includes: Obtain the operation instruction with the verification result as passed as the target execution operation instruction; Target operations acting on the first application are executed according to the target execution operation instructions, where the target operations include at least one of a login operation, a payment operation, and an information modification operation.
7. A voiceprint data processing device, characterized in that: The device comprises: an acquisition module, configured to acquire a first voiceprint collected by a first application, and locally acquire valid device identification information corresponding to the first application, the valid device identification information being generated based on the device universal unique identification information of the device where the first application resides and application information of the first application, the device universal unique identification information including at least one of a device serial number or a mobile device identification code, and the valid device identification information being generated based on historical operation information acting on the first application, the historical operation information including at least one of time operation information, spatial operation information, and device spatial status; a sending module, configured to send a voiceprint verification request to a server, the voiceprint verification request including the valid device identification information and the first voiceprint, so that the server obtains a standard voiceprint corresponding to the first application based on the valid device identification information, verifies the consistency between the standard voiceprint and the first voiceprint, and obtains a verification result. Different operation instructions of the same device may have corresponding standard voiceprints. If different application operation instructions use different voiceprints for verification, the voiceprint verification request may include multiple first voiceprints corresponding to each application operation instruction. The execution module is used to receive the verification result returned by the server and perform corresponding operations according to the verification result, including: obtaining multiple different verification results corresponding to the application operation instructions, and only the operations of the operation instructions with the verification results being verified can be executed.
8. The device according to claim 7, characterized in that The device further comprises: The first preprocessing module is used to obtain operation instructions acting on the first application, collect the standard voiceprint corresponding to the first application through the first application, obtain the device universal unique identification information of the device where the first application is located, and generate the current device identification information corresponding to the first application based on the device universal unique identification information and the application information of the first application; when the valid device identification information corresponding to the first application does not exist locally, the current device identification information is stored locally as the valid device identification information corresponding to the first application, and the valid device identification information and the standard voiceprint are sent to the server, so that the server stores the association between the valid device identification information and the standard voiceprint.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system providing speech recognition result
CN103594085A
Voiceprint verification method and system, voiceprint verification server and voiceprint verification client side
CN104219050A
Password protection method, mobile terminal and computer readable storage medium
CN108197461A
Identity verification method, apparatus and device
CN108319826A