Method and device for voice data encryption, electronic device, and readable storage medium
Through voiceprint recognition and voice sensitivity database matching, voice data is encrypted in a targeted manner, which solves the problem that the prior art cannot encrypt voice data based on identity information, and improves the security of voice data.
Patent Information
- Application Number
- CN202110848195.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-07-27
AI Technical Summary
The prior art cannot encrypt voice data based on the speaker's identity information, and cannot effectively protect sensitive information of voice data.
Voiceprint characteristics and identity information are obtained through voiceprint recognition, match the voice sensitivity information in the voice sensitivity database, and encrypt the audio data segments according to the high or low sensitivity to achieve targeted encryption.
The voice data is encrypted according to the speaker's identity information, which improves the security of voice data and protects sensitive information.
Smart Images

Figure CN113571068B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data encryption, for example, to a method and device for voice data encryption, an electronic device, and a readable storage medium. Background Art
[0002] At present, with the rapid development of recording equipment, many fields need to use recording equipment to record workplaces, back up voice data to avoid missing messages, and evaluate employees' services through the collected voice data. Since voice data corresponds to the voiceprint characteristics of different speakers, and thus involves sensitive data such as the speaker's identity and privacy, with the popularization of recording in life and work, users are paying more and more attention to the security of voice data.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0004] The existing technology adopts a method of overall encryption for voice data, and is unable to perform targeted encryption on the voice data according to the identity information of the speaker. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiments of the present disclosure provide a method and device for voice data encryption, an electronic device, and a readable storage medium to perform targeted encryption on voice data.
[0007] In some embodiments, a method for encrypting voice data includes: obtaining audio data to be encrypted; performing voiceprint recognition on the audio data to be encrypted to obtain a number of voiceprint features and audio data segments corresponding to each voiceprint feature; obtaining identity information corresponding to each of the voiceprint features; matching the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the correspondence between the identity information and the voice sensitivity information; and when the voice sensitivity information corresponding to the identity information has a high sensitivity, encrypting the audio data segment corresponding to the identity information.
[0008] In some embodiments, a device for encrypting voice data includes: a voice data acquisition module, configured to acquire audio data to be encrypted; a voiceprint recognition module, configured to perform voiceprint recognition on the audio data to be encrypted to obtain a number of voiceprint features and audio data segments corresponding to each voiceprint feature; an identity information acquisition module, configured to acquire identity information corresponding to each of the voiceprint features; a voice sensitivity acquisition module, configured to match the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the correspondence between identity information and voice sensitivity information; an encryption module, configured to encrypt the audio data segment corresponding to the identity information when the voice sensitivity information corresponding to the identity information is of high sensitivity.
[0009] In some embodiments, the electronic device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for voice data encryption when running the program instructions.
[0010] In some embodiments, the readable storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for voice data encryption is executed.
[0011] The method and device, electronic device, and readable storage medium for voice data encryption provided by the embodiments of the present disclosure can achieve the following technical effects: by obtaining the voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtaining the voice sensitivity information corresponding to each identity information, when the voice sensitivity information corresponding to the identity information is high in sensitivity, the audio data segment corresponding to the identity information is encrypted. In this way, the audio data to be encrypted is encrypted in a targeted manner according to the identity information of the speaker.
[0012] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0014] Figure 1 is a schematic diagram of a method for voice data encryption provided by an embodiment of the present disclosure;
[0015] Figure 2 is a schematic diagram of another method for voice data encryption provided by an embodiment of the present disclosure;
[0016] Figure 3is a schematic diagram of a device for voice data encryption provided by an embodiment of the present disclosure;
[0017] Figure 4 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0019] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0020] Unless otherwise stated, the term "plurality" means two or more.
[0021] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0022] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0023] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0024] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for encrypting voice data, including:
[0025] Step S101, obtaining audio data to be encrypted;
[0026] Step S102, performing voiceprint recognition on the audio data to be encrypted to obtain a number of voiceprint features and audio data segments corresponding to each voiceprint feature;
[0027] Step S103, obtaining identity information corresponding to each voiceprint feature;
[0028] Step S104, matching the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the corresponding relationship between the identity information and the voice sensitivity information;
[0029] Step S105: When the voice sensitivity information corresponding to the identity information is high in sensitivity, encrypt the audio data segment corresponding to the identity information.
[0030] The disclosed embodiment provides a method for encrypting voice data, which obtains voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtains voice sensitivity information corresponding to each identity information. When the voice sensitivity information corresponding to the identity information is high in sensitivity, the audio data segment corresponding to the identity information is encrypted. In this way, the audio data to be encrypted is encrypted in a targeted manner according to the identity information of the speaker.
[0031] Optionally, before obtaining the audio data to be encrypted, it also includes: obtaining the user information of the user; matching the key pair corresponding to the user information in a preset encryption key database, and storing the matched key pair; the key pair includes a public key and a private key; the encryption key database stores the correspondence between the user information and the key pair. Optionally, the user information is a user ID or an identity tag. In some embodiments, when a user registers or logs into a user account, the user ID entered by the user is obtained. Optionally, the matched key pair is uploaded to the server. In some embodiments, when a user registers or logs into a user account, the identity tag corresponding to the user account is matched in a preset identity tag library.
[0032] Optionally, obtaining the audio data to be encrypted includes: recording through an audio acquisition device to obtain recording data; and performing data processing on the recording data to obtain the audio data to be encrypted.
[0033] In some embodiments, the audio acquisition device is a badge-type recording device with one or more microphone arrays built in and an algorithm noise reduction function, and the recording is performed through the microphone array to obtain recording data. In addition, the audio acquisition device can obtain the position information of the speaker in the recording data through the microphone arrays, and then distinguish the speakers in the recording data according to the position information and obtain the recording data segments corresponding to each speaker.
[0034] Optionally, data processing is performed on the recording data, including: deleting preset recording data segments, increasing the volume, decreasing the volume, removing noise, etc. from the recording data.
[0035] Optionally, data processing is performed on the recording data, including: deleting the recording data segment corresponding to the speaker in the recording data, enhancing the volume, reducing the volume, removing noise, etc.
[0036] In some embodiments, the obtained recording data contains four speakers, including speaker A, speaker B, speaker C and speaker D; in the recording data, the recording data segment corresponding to speaker A is deleted, the volume of the recording data segment corresponding to speaker B is enhanced, the volume of the recording data segment corresponding to speaker C is reduced, and the recording data segment corresponding to speaker D is denoised, so as to process the recording data and obtain audio data to be encrypted.
[0037] Optionally, obtaining identity information corresponding to each voiceprint feature includes: searching for an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature in a preset alternative voiceprint feature library; the alternative voiceprint feature library stores alternative voiceprint features with identity information tags; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is found, determining the identity information tag of the alternative voiceprint feature as the identity information corresponding to the voiceprint feature; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is not found, determining that the identity information corresponding to the voiceprint feature is an unknown identity.
[0038] Optionally, the candidate voiceprint feature library is obtained by: obtaining the candidate voiceprint feature and obtaining the candidate identity information; using the candidate identity information as the identity information tag of the candidate voiceprint feature; and storing the voiceprint feature with the identity information tag in a preset candidate voiceprint feature library. Optionally, obtaining the candidate voiceprint feature includes: obtaining sample recording information of a user reading a preset conversation, and determining the sample recording information as the candidate voiceprint feature. Optionally, obtaining the candidate identity information includes: obtaining identity information input by the user, and determining the identity information input by the user as the candidate identity information.
[0039] Optionally, the voice sensitivity information includes high sensitivity or low sensitivity. When the voice sensitivity information corresponding to the identity information is high sensitivity, the audio data segment corresponding to the identity information is encrypted, including: when the voice sensitivity information corresponding to the identity information is high sensitivity, the audio data segment corresponding to the identity information is encrypted according to a preset encryption algorithm to obtain an encrypted audio data segment.
[0040] Optionally, encrypting the audio data segment corresponding to the identity information according to a preset encryption algorithm includes: encrypting the audio data segment corresponding to the identity information according to a public key in a key pair corresponding to the user information.
[0041] Optionally, when the voice sensitivity information corresponding to the identity information is of high sensitivity, the method further includes: replacing the audio data segment corresponding to the identity information of high sensitivity with preset audio data.
[0042] Optionally, the preset audio data is white noise audio data.
[0043] Optionally, the audio data to be encrypted after replacing the preset audio data is determined as desensitized voice data; and the desensitized voice data is stored.
[0044] In some embodiments, the user's identity information is that of a service personnel. When the user logs into a user account, the user ID input by the user is obtained, and a key pair corresponding to the user ID is matched in an encryption key database. In a scenario where a service staff is providing service to a customer, the conversation between the user and the customer is recorded by an audio acquisition device, and the obtained recording data is processed to obtain audio data to be encrypted; voiceprint recognition is performed on the audio data to be encrypted to obtain two voiceprint features, namely voiceprint feature A and voiceprint feature B; an alternative voiceprint feature representing the same voiceprint as voiceprint feature A is found in the alternative voiceprint feature library, and the identity information tag of the alternative voiceprint feature is determined as the identity information corresponding to the voiceprint feature; an alternative voiceprint feature representing the same voiceprint as voiceprint feature B is not found in the alternative voiceprint feature library, and the identity information corresponding to voiceprint feature B is determined to be an unknown identity, that is, the unknown identity is the customer; in a preset voice sensitivity database, the voice sensitivity information corresponding to the service staff is matched to be low in sensitivity, and the voice sensitivity information corresponding to the unknown identity is matched to be high in sensitivity; the audio data segment corresponding to the unknown identity is encrypted by the public key of the key pair corresponding to the user ID; and the audio data segment corresponding to the unknown identity in the audio data to be encrypted is replaced with white noise audio data to obtain desensitized voice data. In this way, by obtaining the voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtaining the voice sensitivity information corresponding to each identity information, when the voice sensitivity information corresponding to the identity information is highly sensitive, the audio data segment corresponding to the identity information is encrypted, thereby achieving targeted encryption of the encrypted audio data according to the identity information of the speaker, and when playing the desensitized voice data, the audio data segment corresponding to the customer is replaced by white noise, and only the audio data segment of the service staff is played, thereby protecting the customer's conversation privacy, and evaluating the service quality of the service staff through the audio data segment of the service staff.
[0045] Optionally, after encrypting the audio data segment corresponding to the identity information, it also includes: obtaining the user's authentication information; authenticating the authentication information to obtain an authentication result; when the authentication result is successful, decrypting the encrypted audio data segment to obtain a decrypted audio data segment.
[0046] Optionally, obtaining authentication information of the user includes: obtaining a character segment input by the user, and determining the character segment input by the user as the authentication information of the user.
[0047] Optionally, the authentication information is authenticated to obtain an authentication result, including: comparing the character segment input by the user with a preset character segment; when the character segment input by the user is the same as the preset character segment, determining the authentication result to be a successful authentication; when the character segment input by the user is different from the preset character segment, determining the authentication result to be a failed authentication.
[0048] Optionally, decrypting the encrypted audio data segment includes: decrypting the encrypted audio data segment according to a preset decryption algorithm.
[0049] Optionally, decrypting the encrypted audio data segment according to a preset decryption algorithm includes: decrypting the encrypted audio data segment according to a private key in a key pair corresponding to the user information.
[0050] Optionally, after encrypting the audio data segment corresponding to the identity information, the method includes: obtaining time information of the encrypted audio data segment; establishing a correspondence between the encrypted audio data segment, the identity information corresponding to the encrypted audio data segment, and the time information of the encrypted audio data segment; and storing the correspondence in a preset encrypted voice database. Optionally, the time information is used to characterize the time period position of the encrypted audio data segment in the audio data to be encrypted, for example, from 2 minutes and 53 seconds to 3 minutes and 42 seconds in the audio data to be encrypted.
[0051] Optionally, after decrypting the encrypted audio data segment, it also includes: matching the time information corresponding to the encrypted audio data segment corresponding to the decrypted audio data segment in the encrypted voice database; replacing the preset audio data in the desensitized voice data with the decrypted audio data segment according to the time information, and obtaining the audio data to be played.
[0052] Optionally, after replacing the preset audio data in the desensitized voice data with the decrypted audio data segment according to the time information, it also includes: playing the audio data to be played.
[0053] In some embodiments, the time information corresponding to the encrypted audio data segment corresponding to the decrypted audio data segment is matched in the encrypted voice database as the 2nd minute 53 seconds to the 3rd minute 42 seconds in the desensitized voice data, and the preset audio data from the 2nd minute 53 seconds to the 3rd minute 42 seconds in the desensitized voice data is replaced with the decrypted audio data segment to obtain the audio data to be played, and the audio data to be played is played. The encrypted audio data segment and the desensitized voice data that replaced the encrypted audio data segment are stored separately. When it is necessary to play the audio data to be encrypted, the encrypted audio data segment is decrypted, and the time information of the encrypted audio data segment is obtained in the encrypted voice database. According to the time information, the decrypted encrypted audio data segment is correspondingly replaced with the preset audio data in the desensitized voice data to obtain the audio data to be played. The audio data to be played is the audio data to be encrypted, which not only realizes the targeted encryption of the encrypted audio data according to the identity information of the speaker, but also facilitates the playback of the encrypted audio data.
[0054] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for encrypting voice data, including:
[0055] Step S201, obtaining user information of the user; matching a key pair corresponding to the user information in a preset encryption key database, and storing the matched key pair; the key pair includes a public key and a private key; the encryption key database stores the corresponding relationship between the user information and the key pair;
[0056] Step S202, obtaining candidate voiceprint features and candidate identity information; establishing a correspondence between the candidate voiceprint features and the candidate identity information; and storing the correspondence in a preset candidate voiceprint feature library;
[0057] Step S203, obtaining audio data to be encrypted;
[0058] Step S204, performing voiceprint recognition on the audio data to be encrypted to obtain a number of voiceprint features and audio data segments corresponding to each voiceprint feature;
[0059] Step S205, obtaining identity information corresponding to each voiceprint feature according to the candidate voiceprint feature library;
[0060] Step S206, matching the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the corresponding relationship between the identity information and the voice sensitivity information;
[0061] Step S207, when the voice sensitivity information corresponding to the identity information is high in sensitivity, encrypt the audio data segment corresponding to the identity information according to the public key in the matched key pair to obtain an encrypted audio data segment, and replace the audio data segment corresponding to the identity information with preset audio data to obtain desensitized voice data;
[0062] Step S208, obtaining the user's authentication information; authenticating the authentication information to obtain an authentication result; if the authentication result is successful, decrypting the encrypted audio data segment according to the private key in the matched key pair to obtain a decrypted audio data segment;
[0063] Step S209, obtaining time information of the encrypted audio data segment; the time information is used to represent the time period position of the encrypted audio data segment in the audio data to be encrypted;
[0064] Step S210, replacing the preset audio data in the desensitized voice data with the decrypted audio data segment according to the time information to obtain the audio data to be played;
[0065] Step S211, playing the audio data to be played.
[0066] The disclosed embodiment provides a method for encrypting voice data, by obtaining the voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtaining the voice sensitivity information corresponding to each identity information, and when the voice sensitivity information corresponding to the identity information is highly sensitive, encrypting the audio data segment corresponding to the identity information. In this way, the audio data to be encrypted is encrypted in a targeted manner according to the identity information of the speaker. In addition, the disclosed embodiment is applied to privacy computing technology, and the corresponding encryption key is obtained through user information. Each user corresponds to a unique key pair, and the user has the decryption authority of the encrypted voice data, so that the user can decide whether to decrypt the encrypted voice data through the private key of the key pair, thereby improving the security of the encrypted data.
[0067] Combination Figure 3As shown, the embodiment of the present disclosure provides a device for voice data encryption, including a voice data acquisition module 301, a voiceprint recognition module 302, an identity information acquisition module 303, a voice sensitivity acquisition module 304 and an encryption module 305. The voice data acquisition module 301 is configured to acquire audio data to be encrypted. The voiceprint recognition module 302 is configured to perform voiceprint recognition on the audio data to be encrypted, and obtain a number of voiceprint features and audio data segments corresponding to each voiceprint feature. The identity information acquisition module 303 is configured to acquire identity information corresponding to each voiceprint feature. The voice sensitivity acquisition module 304 is configured to match the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the corresponding relationship between the identity information and the voice sensitivity information. The encryption module 305 is configured to encrypt the audio data segment corresponding to the identity information when the voice sensitivity information corresponding to the identity information is of high sensitivity.
[0068] The disclosed embodiment provides a device for voice data encryption, which obtains voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtains voice sensitivity information corresponding to each identity information, and encrypts the audio data segment corresponding to the identity information when the voice sensitivity information corresponding to the identity information is high in sensitivity. In this way, the audio data to be encrypted is encrypted in a targeted manner according to the identity information of the speaker.
[0069] Optionally, the voice data acquisition module acquires the audio data to be encrypted in the following manner: recording through an audio acquisition device to obtain recording data; performing data processing on the recording data to obtain the audio data to be encrypted.
[0070] Optionally, the identity information acquisition module is configured to obtain the identity information corresponding to each voiceprint feature in the following manner: searching for an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature in a preset alternative voiceprint feature library; the alternative voiceprint feature library stores alternative voiceprint features with identity information tags; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is found, the identity information tag of the alternative voiceprint feature is determined as the identity information corresponding to the voiceprint feature; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is not found, determining that the identity information corresponding to the voiceprint feature is an unknown identity.
[0071] Optionally, the encryption module is further configured to: when the voice sensitivity information corresponding to the identity information is of high sensitivity, replace the audio data segment corresponding to the identity information with preset audio data.
[0072] Optionally, the device for encrypting voice data also includes a decryption module, which is configured to: obtain user authentication information; authenticate the authentication information to obtain an authentication result; and when the authentication result is successful, decrypt the encrypted audio data segment to obtain a decrypted audio data segment.
[0073] Combination Figure 4 As shown, an embodiment of the present disclosure provides an electronic device, including a processor (processor) 400 and a memory (memory) 401. Optionally, the electronic device may also include a communication interface (Communication Interface) 402 and a bus 403. Among them, the processor 400, the communication interface 402, and the memory 401 can communicate with each other through the bus 403. The communication interface 402 can be used for information transmission. The processor 400 can call the logic instructions in the memory 401 to execute the method for voice data encryption of the above embodiment.
[0074] In addition, the logic instructions in the memory 401 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0075] The memory 401 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 400 executes the function application and data processing by running the program instructions / modules stored in the memory 401, that is, the method for voice data encryption in the above embodiment is implemented.
[0076] The memory 401 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 401 may include a high-speed random access memory and may also include a non-volatile memory.
[0077] The electronic device obtains the voiceprint features in the audio data to be encrypted and the identity information corresponding to each voiceprint feature, and obtains the voice sensitivity information corresponding to each identity information, and encrypts the audio data segment corresponding to the identity information when the voice sensitivity information corresponding to the identity information is high in sensitivity. In this way, the audio data to be encrypted is encrypted in a targeted manner according to the identity information of the speaker.
[0078] Optionally, the electronic device is an audio acquisition device with sufficient computing power and a key generation function, such as a smart phone, a tablet computer, a badge-type recording device, etc.
[0079] Optionally, the electronic device is a computer or a server. Optionally, when the electronic device is a computer or a server, the audio data to be encrypted is obtained by recording through a smart phone, a tablet computer or a work badge recording device. Furthermore, the electronic device sends the audio data to be played to the smart phone, the tablet computer or the work badge recording device for playback.
[0080] An embodiment of the present disclosure provides a readable storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the above-mentioned method for encrypting voice data.
[0081] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned method for voice data encryption.
[0082] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0083] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0084] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0085] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0086] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0087] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for encrypting voice data, characterized in that: include: Obtain the audio data to be encrypted; Performing voiceprint recognition on the audio data to be encrypted to obtain a plurality of voiceprint features and audio data segments corresponding to each voiceprint feature; Obtaining identity information corresponding to each of the voiceprint features; Matching the voice sensitivity information corresponding to the identity information in a preset voice sensitivity database; the voice sensitivity database stores the corresponding relationship between the identity information and the voice sensitivity information; When the voice sensitivity information corresponding to the identity information is high in sensitivity, encrypting the audio data segment corresponding to the identity information; Before obtaining the audio data to be encrypted, the method further includes: obtaining user information of the user; Acquiring identity information corresponding to each voiceprint feature, comprising: searching a preset candidate voiceprint feature library for a candidate voiceprint feature that represents the same voiceprint as the voiceprint feature; the candidate voiceprint feature library stores candidate voiceprint features with identity information tags; when a candidate voiceprint feature that represents the same voiceprint as the voiceprint feature is found, determining the identity information tag of the candidate voiceprint feature as the identity information corresponding to the voiceprint feature; when no candidate voiceprint feature that represents the same voiceprint as the voiceprint feature is found, determining that the identity information corresponding to the voiceprint feature is an unknown identity; the identity information corresponding to the voiceprint feature is a service personnel; the unknown identity is a customer; In the preset voice sensitivity database, it is matched that the voice sensitivity information corresponding to the service personnel is low in sensitivity, and the voice sensitivity information corresponding to the unknown identity is high in sensitivity; Encrypting the audio data segment corresponding to the identity information, including: when the voice sensitivity information corresponding to the identity information is high in sensitivity, encrypting the audio data segment corresponding to the unknown identity according to the public key in the key pair corresponding to the user information to obtain an encrypted audio data segment; When the voice sensitivity information corresponding to the identity information is high in sensitivity, the method further includes: replacing the audio data segment corresponding to the unknown identity in the audio data to be encrypted with white noise audio data to obtain desensitized voice data; After encrypting the audio data segment corresponding to the identity information, the method includes: obtaining time information of the encrypted audio data segment; establishing a correspondence between the encrypted audio data segment, the identity information corresponding to the encrypted audio data segment, and the time information of the encrypted audio data segment; storing the correspondence in a preset encrypted voice database; the time information is used to characterize the time period position of the encrypted audio data segment in the audio data to be encrypted; After decrypting the encrypted audio data segment, it includes: matching the time information corresponding to the encrypted audio data segment corresponding to the decrypted audio data segment in the encrypted voice database; replacing the white noise audio data in the desensitized voice data with the decrypted audio data segment according to the time information, and obtaining the audio data to be played.
2. The method according to claim 1, characterized in that Get the audio data to be encrypted, including: Recording is performed through an audio acquisition device to obtain recording data; The recorded data is processed to obtain audio data to be encrypted.
3. The method according to claim 1, characterized in that In the case where the voice sensitivity information corresponding to the identity information is high in sensitivity, the method further includes: The audio data segment corresponding to the identity information is replaced with preset audio data.
4. The method according to any one of claims 1 to 3, characterized in that: After encrypting the audio data segment corresponding to the identity information, the method further includes: Get the user's authentication information; Authenticating the authentication information to obtain an authentication result; When the authentication result is successful, the encrypted audio data segment is decrypted to obtain the decrypted audio data segment.
5. A device for encrypting voice data, characterized in that: include: A voice data acquisition module is configured to acquire audio data to be encrypted; A voiceprint recognition module is configured to perform voiceprint recognition on the audio data to be encrypted to obtain a plurality of voiceprint features and audio data segments corresponding to each voiceprint feature; An identity information acquisition module, configured to acquire identity information corresponding to each of the voiceprint features; A speech sensitivity acquisition module, configured to match speech sensitivity information corresponding to the identity information in a preset speech sensitivity database; The speech sensitivity database stores a correspondence between identity information and speech sensitivity information; an encryption module, configured to encrypt the audio data segment corresponding to the identity information when the voice sensitivity information corresponding to the identity information is high in sensitivity; Before obtaining the audio data to be encrypted, the method further includes: obtaining user information of the user; The identity information acquisition module is configured to acquire the identity information corresponding to each voiceprint feature in the following manner: searching for an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature in a preset alternative voiceprint feature library; the alternative voiceprint feature library stores alternative voiceprint features with identity information tags; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is found, determining the identity information tag of the alternative voiceprint feature as the identity information corresponding to the voiceprint feature; when an alternative voiceprint feature that represents the same voiceprint as the voiceprint feature is not found, determining that the identity information corresponding to the voiceprint feature is an unknown identity; the identity information corresponding to the voiceprint feature is a service personnel; the unknown identity is a customer; In the preset voice sensitivity database, it is matched that the voice sensitivity information corresponding to the service personnel is low in sensitivity, and the voice sensitivity information corresponding to the unknown identity is high in sensitivity; Encrypting the audio data segment corresponding to the identity information, including: when the voice sensitivity information corresponding to the identity information is high in sensitivity, encrypting the audio data segment corresponding to the unknown identity according to the public key in the key pair corresponding to the user information to obtain an encrypted audio data segment; When the voice sensitivity information corresponding to the identity information is high in sensitivity, the method further includes: replacing the audio data segment corresponding to the unknown identity in the audio data to be encrypted with white noise audio data to obtain desensitized voice data; After encrypting the audio data segment corresponding to the identity information, the method includes: obtaining time information of the encrypted audio data segment; establishing a correspondence between the encrypted audio data segment, the identity information corresponding to the encrypted audio data segment, and the time information of the encrypted audio data segment; storing the correspondence in a preset encrypted voice database; the time information is used to characterize the time period position of the encrypted audio data segment in the audio data to be encrypted; After decrypting the encrypted audio data segment, it includes: matching the time information corresponding to the encrypted audio data segment corresponding to the decrypted audio data segment in the encrypted voice database; replacing the white noise audio data in the desensitized voice data with the decrypted audio data segment according to the time information, and obtaining the audio data to be played.
6. The device according to claim 5, characterized in that The voice data acquisition module acquires the audio data to be encrypted in the following manner: Recording is performed through an audio acquisition device to obtain recording data; The recorded data is processed to obtain audio data to be encrypted.
7. The device according to claim 5, characterized in that The cryptographic module is also configured to: When the voice sensitivity information corresponding to the identity information is high in sensitivity, the audio data segment corresponding to the identity information is replaced with preset audio data.
8. The device according to any one of claims 5 to 7, characterized in that The device also includes a decryption module, which is configured to: Get the user's authentication information; Authenticating the authentication information to obtain an authentication result; When the authentication result is successful, the encrypted audio data segment is decrypted to obtain the decrypted audio data segment.
9. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for voice data encryption according to any one of claims 1 to 4 when running the program instructions.
10. A readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for voice data encryption according to any one of claims 1 to 4 is executed.
