Voice data desensitization method, electronic device and computer-readable storage medium
Sensitive information in voice data is processed through voice recognition and preset desensitization rules to generate desensitized voice data, which solves the problem of exposure of sensitive information in voice data and achieves the protection of information security and data integrity.
Patent Information
- Application Number
- CN202110340269.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-03-30
AI Technical Summary
Speech data contains a large amount of sensitive information, and direct storage and utilization poses privacy and security risks, making it difficult to effectively protect the speaker's personal private information.
Convert voice data into text content through speech recognition processing, determine and process sensitive text content according to preset desensitization rules, and generate desensitized voice data to ensure information security.
It achieves the goal of not exposing the speaker's personal private information when using desensitized voice data, ensuring information security, avoiding errors and information transmission errors introduced by voice transcription, and retaining the speech speed and emotional information in the original voice to the greatest extent.
Smart Images

Figure CN113051902B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voice data processing, and in particular to a voice data desensitization method, an electronic device and a computer-readable storage medium. Background Art
[0002] With the development of intelligent voice technology, voice data or audio information in audio and video has become an important data source that can be directly applied in medical, financial, government, and enterprise fields. For example, the important original information of the conversation recording between the bank telephone customer service and the customer can be transcribed through voice recognition technology. The conversation recording can also be used for customer service quality inspection. Quantitative quality inspection includes judging whether there are irregular terms. Qualitative quality inspection includes whether the enthusiastic service attitude is maintained and whether the user is satisfied. Emotion recognition technology is used for qualitative quality inspection. In addition, intelligent voice technology can also analyze the topic of the conversation, the duration of the conversation, etc., and can be used for customer service training and other applications. Therefore, the original voice has important application value. However, the voice content contains a lot of sensitive information. For example, the conversation content between the bank telephone customer service and the customer often includes sensitive information such as the user's identity information and user account information. If it is directly stored and used, there will be great privacy and security risks. Summary of the invention
[0003] The embodiments of the present invention provide a voice data desensitization method, an electronic device and a computer-readable storage medium, which are used to solve at least one of the above-mentioned technical problems.
[0004] In a first aspect, an embodiment of the present invention provides a voice data desensitization method, comprising:
[0005] Performing speech recognition processing on the speech data to obtain recognized text content;
[0006] Determine the sensitive text content in the identified text content according to a preset desensitization rule;
[0007] Desensitizing the sensitive text content in the identified text content;
[0008] Desensitized speech data is generated at least according to the desensitization processing result.
[0009] In a second aspect, an embodiment of the present invention provides a computer-readable storage medium, in which one or more programs including execution instructions are stored, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute any of the above-mentioned voice data desensitization methods of the present invention.
[0010] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the above-mentioned voice data desensitization methods of the present invention.
[0011] In a fourth aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program stored on a storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes any one of the above-mentioned voice data desensitization methods.
[0012] The embodiment of the present invention recognizes voice data as text content, detects sensitive text content according to preset desensitization rules, and performs desensitization processing, and finally generates desensitized voice data based on the desensitization processing result, thereby ensuring that the speaker's personal privacy information will not be exposed when using the desensitized voice data, thereby achieving the speaker's information security. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0014] Figure 1 A flowchart of an embodiment of a voice data desensitization method of the present invention;
[0015] Figure 2 A flowchart of another embodiment of the voice data desensitization method of the present invention;
[0016] Figure 3 A flowchart of another embodiment of the voice data desensitization method of the present invention;
[0017] Figure 4 A flowchart of another embodiment of the voice data desensitization method of the present invention;
[0018] Figure 5 A flowchart of another embodiment of the voice data desensitization method of the present invention;
[0019] Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0021] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0022] In the present invention, "module", "device", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, etc. In detail, for example, an element can be, but is not limited to, a process, a processor, an object, an executable element, an execution thread, a program and / or a computer running on a processor. In addition, an application or script program running on a server, a server can all be an element. One or more elements can be in an execution process and / or thread, and an element can be localized on a computer and / or distributed between two or more computers, and can be operated by various computer-readable media. An element can also communicate through local and / or remote processes according to a signal with one or more data packets, for example, a signal from a data that interacts with another element in a local system, a distributed system, and / or a network on the Internet through a signal to interact with other systems.
[0023] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.
[0024] like Figure 1 As shown, an embodiment of the present invention provides a voice data desensitization method, comprising:
[0025] S110, performing speech recognition processing on the speech data to obtain recognized text content.
[0026] Exemplarily, the voice data may be the voice data of one person or the voice data of multiple persons. When the voice data includes the voices of multiple speakers, the performing of voice recognition processing on the voice data to obtain the recognized text content includes: separating multiple voice data corresponding to the multiple speakers from the voice data; and performing voice recognition processing on the multiple voice data to obtain multiple recognized text contents.
[0027] S120: Determine sensitive text content in the identified text content according to preset desensitization rules.
[0028] Exemplarily, the preset desensitization rule may be sensitive field detection. For example, "My name is", "Identity number is", "Mobile phone number is", "Home address is", and "Age is", etc. After the above sensitive fields are detected, the corresponding content is determined as sensitive text content.
[0029] S130: Desensitizing the sensitive text content in the identified text content.
[0030] Exemplarily, the desensitization process includes at least one of a replacement process and a deletion process. The desensitization process for the sensitive text content in the identified text content includes: performing a replacement process or a deletion process on the sensitive text content in the identified text content. The replacement process may be to replace the sensitive text content with a preset string (for example, XXX or other strings, which are not limited in the present invention). For example, for "the identity number is 111", after the replacement process, "the identity number is XXX" is obtained. When the desensitized voice data is generated, the audio corresponding to the preset string may be a preset beep or any other sound of any frequency or tone. The deletion process may be to directly delete the sensitive text content. For example, for the identity number is "111", after the deletion process, "the identity number is" is obtained. When the desensitized voice data is generated, the deleted part may be set to mute.
[0031] S140: Generate desensitized speech data at least according to the desensitization processing result.
[0032] Exemplarily, the desensitized voice data is the desensitized voice data corresponding to the voice data, and the original sensitive content part in the desensitized voice data is replaced with the desensitized audio content.
[0033] This embodiment recognizes voice data as text content, detects sensitive text content according to preset desensitization rules, and performs desensitization processing, and finally generates desensitized voice data based on the desensitization processing result, thereby ensuring that the speaker's personal privacy information will not be exposed when using the desensitized voice data, thereby achieving the speaker's information security.
[0034] like Figure 2 The flowchart of another embodiment of the voice data desensitization method of the present invention is shown. In this embodiment, desensitized voice data is generated at least according to the desensitization processing result, including:
[0035] S141. Determine the content of the desensitized recognized text according to the desensitization processing result.
[0036] Exemplarily, the desensitization processing result can be a preset string corresponding to the sensitive text content (corresponding to the replacement processing), or an empty string corresponding to the sensitive text content (corresponding to the deletion processing). When the replacement processing is used for desensitization, determining the desensitized recognition text content according to the desensitization processing result includes: replacing the sensitive text content in the recognition text content with the preset string to obtain the desensitized recognition text content. When the deletion processing is used for desensitization, determining the desensitized recognition text content according to the desensitization processing result includes: replacing the sensitive text content in the recognition text content with the empty string to obtain the desensitized recognition text content.
[0037] S142: synthesizing desensitized voice data corresponding to the desensitized recognized text content.
[0038] Exemplarily, speech synthesis technology is used to synthesize desensitized speech data corresponding to the desensitized recognized text content. A preset audio segment can be synthesized for a preset string or an empty string contained in the desensitized recognized text content. For example, for a preset string, the preset audio segment can be an audio of a preset frequency or timbre; for an empty string, the preset audio segment can be a silent segment. The present invention is not limited to this.
[0039] In this embodiment, after the sensitive text content is desensitized, desensitized recognition text content is generated based on the desensitized content, and desensitized voice data corresponding to the desensitized recognition text content is further synthesized through a speech synthesis algorithm. The overall synthesized desensitized voice data is smooth and natural.
[0040] In some embodiments, the speech data desensitization method of the present invention also includes: generating a speech synthesis model corresponding to the speaker in the speech data; the synthesis of desensitized speech data corresponding to the desensitized recognized text content includes: using the speech synthesis model to synthesize the desensitized speech data corresponding to the desensitized recognized text content.
[0041] Exemplarily, the audio of each independent speaker can obtain the speaker speech synthesis model corresponding to each speaker through voiceprint replication. Voiceprint replication uses transfer learning technology, voiceprint encoder, speech synthesizer and sound generator to achieve, and the present invention does not limit this.
[0042] In this embodiment, a speech synthesis model corresponding to the speaker is generated to synthesize desensitized speech data so that the obtained desensitized speech data still sounds like the original speaker's speech, thereby improving the user experience.
[0043] In the process of implementing the present invention, the inventors found that the voice data desensitization method described in the aforementioned embodiment first obtains text information through voice transcription. Then, according to the predefined desensitization rules and algorithms, the sensitive content is replaced or deleted. After obtaining the desensitized text, the speaker's speech synthesis model is used to generate voice data. Different speakers use different speech synthesis models. The advantage of this scheme is that the generated desensitized voice data is smooth and natural, with good consistency. However, this scheme has the following problems: the errors introduced by voice transcription will be transmitted to the generated voice, causing errors in information transmission; the comprehensive information such as speech speed and emotion in the original voice is lost.
[0044] like Figure 3 The flowchart of another embodiment of the voice data desensitization method of the present invention is shown. In this embodiment, desensitized voice data is generated at least according to the desensitization processing result, including:
[0045] S141′, generating a desensitized audio segment corresponding to the desensitization processing result.
[0046] Exemplarily, the desensitization process includes at least one of a replacement process and a deletion process. The desensitization process for the sensitive text content in the identified text content includes: performing a replacement process or a deletion process on the sensitive text content in the identified text content. The replacement process may be to replace the sensitive text content with a preset character string (for example, XXX or other character strings, which are not limited in the present invention). For example, for "the identity number is 111", after the replacement process, "the identity number is XXX" is obtained, and a desensitized audio segment corresponding to "XXX" is generated accordingly, such as a preset beep segment or a sound segment of any other frequency or tone; the deletion process may be to directly delete the sensitive text content, for example, for "the identity number is 111", after the deletion process, "the identity number is" is obtained, and a silent segment is generated as a desensitized audio segment.
[0047] S142': Process the voice data according to the desensitized audio segment to obtain desensitized voice data. Exemplarily, some audio segments containing sensitive content in the voice data are replaced with the desensitized audio segment.
[0048] In this embodiment, the sensitive text content that needs to be desensitized is desensitized, a desensitized audio clip corresponding to the desensitization result is generated, and the voice data is processed according to the desensitized audio clip to obtain desensitized voice data, without converting the entire voice data into text content, generating desensitized text content corresponding to the voice data, and then synthesizing desensitized voice data corresponding to the desensitized text content. It avoids the error of information transmission caused by the conversion between a large amount of voice data to text content, and then from text content to voice data, and reduces the potential error rate. At the same time, since the voice data other than sensitive information has not been changed, the comprehensive information such as speech speed and emotion in the original voice is retained to the greatest extent.
[0049] In some embodiments, the voice data desensitization method of the present invention also includes: determining the sensitive position information of the sensitive audio segment in the voice data corresponding to the sensitive text content; processing the voice data according to the desensitized audio segment to obtain desensitized voice data, including: replacing the voice segment in the voice data corresponding to the sensitive position information with the desensitized audio segment to obtain desensitized voice data.
[0050] Exemplarily, the recognized text content obtained by performing speech recognition on voice data is "OK, my identity number is 111", and the predefined desensitized field is "identity number". Through natural language processing technology based on named entity recognition, the identity number content is identified as "111". At the same time, according to the results of speech recognition, the boundary of the content is located in the audio as (3.556s, 7.566s), which is the sensitive position information of the sensitive audio segment.
[0051] In this embodiment, the sensitive position information of the sensitive audio clip is accurately located, so that the desensitized voice data obtained by splicing the desensitized audio clip to the voice data is smoother, ensuring the integrity of the non-sensitive audio in the voice data except the sensitive audio clip.
[0052] like Figure 4 The flowchart of another embodiment of the voice data desensitization method of the present invention is shown, and in this embodiment, it also includes:
[0053] S210: Perform voice recognition processing on the desensitized voice data to obtain desensitized recognition text content.
[0054] S220, calculating the text similarity between the desensitized recognized text content and the recognized text content, wherein the larger the text similarity value, the stronger the content consistency of the voice data before and after the desensitization process, that is, the smaller the impact of the desensitization process on the content recognition result.
[0055] S230: When the text similarity is greater than a preset threshold, it is determined that the desensitized voice data is available.
[0056] In the embodiment of the present invention, the recognition text information of the speaker's voice data before and after desensitization processing is compared, and a preset threshold is set to limit the desensitization processing to a sufficiently consistent level before the recognition text information of the speaker's voice data before and after desensitization processing. This ensures the availability of new voice data (i.e., desensitized voice data) after the voice data is desensitized.
[0057] like Figure 5 The flowchart of another embodiment of the voice data desensitization method of the present invention is shown, and in this embodiment, it also includes:
[0058] 1. Speaker separation: The original audio first passes through the speaker separation module to classify the audio of multiple speakers from the single-channel audio. The following algorithms are available for speaker separation: 1) Speech separation methods based on frequency domain, including a) deep clustering algorithm (DC), b) permutation invariant training criterion (PIT), c) speech separation method based on deep embedded features and discriminative learning (DEF-DL); 2) Speech separation methods based on time domain, including a) Conv-TasNet, b) Dual-Path RNN (DPRNN), c) speech separation method based on deep attention fusion features and end-to-end post-filtering (E2EPF).
[0059] 2-3. Voiceprint replication: The audio of each independent speaker passes through the voiceprint replication module to obtain the speaker speech synthesis model corresponding to each speaker. Voiceprint replication can be achieved by using transfer learning technology, using voiceprint encoder, speech synthesizer and voice generator.
[0060] 4. Speech recognition: Each speaker’s independent audio passes through the speech recognition module to obtain text information of the speech content.
[0061] 5. Desensitized content recognition: The text information of the voice content is identified through the desensitized content recognition module, which locates the position of sensitive information in the text of the voice content according to the predefined desensitized fields.
[0062] 6. Obtaining the boundary information of desensitized content: While locating the position of sensitive information in the text of the voice content, obtain the boundary information of the voice audio corresponding to the sensitive information. For example, the text information of the voice content is "OK, my ID number is 111", and the predefined desensitized field is "ID number". We use natural language processing technology based on named entity recognition to identify the ID number content as "111". At the same time, according to the results of voice recognition, the boundary of the content is located in the audio as (3.556s, 7.566s).
[0063] 7. Desensitized content replacement: The desensitized content replacement module replaces or deletes sensitive content according to predefined desensitization rules and algorithms. The desensitization rules and algorithms defined by this module ensure the key content desensitization quality requirements such as diversity, consistency and algorithm irreversibility of the desensitized content. The content segment replaced by the module data. The speaker speech synthesis model converts the replacement content segment output by the desensitized content replacement module into an audio segment. If the sensitive content replacement module instructs to delete sensitive content, an empty audio segment is generated.
[0064] 8. Voice segment replacement: The voice segment replacement module replaces the sensitive content audio segment in the original speaker's audio with the audio segment obtained in the previous step according to the record of the desensitized content boundary information. If the audio obtained in the previous step is empty audio, the module deletes the sensitive content audio segment in the original audio to complete the desensitization of the speaker's voice content.
[0065] 9. Audio merging: further merge the audios after desensitizing the speech content of multiple speakers to complete the desensitization operation of the overall speech content.
[0066] 10. Comparison of speech recognition results: In order to verify the usability of speech content desensitization, the output of the speech segment replacement module, that is, the desensitized audio of the speech content of a single speaker, is passed through the speech recognition module to obtain the text information of the speech content, which is used to compare with the text information of the original speech content. The comparison results are evaluated by word error rate. The calculation of word error rate does not take into account the sensitive content that is replaced or deleted, that is, the information recorded in combination with the boundary information of the desensitized information.
[0067] The present invention solves at least two core voice data desensitization problems: 1) removing / replacing sensitive content in voice; 2) maintaining the availability of voice data.
[0068] Specifically, if multiple speakers are involved in the speech, it is necessary to first apply the speaker separation algorithm. For the audio of a single speaker, the voiceprint replication technology is used to obtain the speech synthesis model of (each) speaker. Then, speech transcription is performed to obtain the text content. According to the definition of desensitized content, natural language understanding technology is used to identify sensitive content in the text content; according to the established desensitization rules and algorithms, sensitive content is removed or alternative information is generated. Using the speech synthesis model of the speaker that has been obtained, a speech segment corresponding to the replacement information is generated to replace the content corresponding to the original speech. In this way, the removal or coverage of sensitive information is completed, and the availability of voice data is guaranteed at the same time. The process of speech transcription and replacement requires detailed records of the content and speech boundaries of the original sensitive information segment and the content and speech boundaries of the replacement information for the retrieval and management of desensitized information.
[0069] The embodiment of the present invention desensitizes voice data to increase data flow and sharing. Public data sets can better and more widely support scientific research base stations. It can be used to establish a national acoustic data center. Private cloud environments often do not have large-scale / ultra-large-scale computing power. Desensitizing voice data can make full use of shared computing resources. For example, after the voice content is desensitized, the audio can be used in a public cloud environment for content-independent speech analysis, such as emotion recognition.
[0070] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of combined actions, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention. In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0071] In some embodiments, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the voice data desensitization method described in any of the aforementioned embodiments.
[0072] In some embodiments, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the voice data desensitization method described in any of the aforementioned embodiments.
[0073] In some embodiments, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any one of the above-mentioned voice data desensitization methods.
[0074] Figure 6 is a schematic diagram of the hardware structure of an electronic device for executing a voice data desensitization method provided by another embodiment of the present invention, such as Figure 6 As shown, the device includes: one or more processors 610 and a memory 620, Figure 6 A processor 610 is taken as an example.
[0075] The device for performing the voice data desensitization method may further include: an input device 630 and an output device 640. The processor 610, the memory 620, the input device 630 and the output device 640 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0076] The memory 620, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the voice data desensitization method in the embodiment of the present invention. The processor 610 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 620, that is, the voice data desensitization method in the above method embodiment is implemented.
[0077] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the voice data desensitization device, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the voice data desensitization device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0078] The input device 630 can receive input digital or character information and generate signals related to user settings and function control of the voice data desensitization device. The output device 640 can include display devices such as a display screen.
[0079] The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, the voice data desensitization method in any of the above method embodiments is executed.
[0080] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0081] The electronic devices of the embodiments of the present invention exist in various forms, including but not limited to:
[0082] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0083] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0084] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0085] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0086] (5) Other electronic devices with data interaction functions.
[0087] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A voice data desensitization method, comprising: Performing speech recognition processing on the speech data to obtain recognized text content; Determine the sensitive text content in the identified text content according to a preset desensitization rule; Desensitizing the sensitive text content in the identified text content; Generating desensitized voice data at least according to the desensitization processing result, including: determining the desensitized recognition text content according to the desensitization processing result; synthesizing the desensitized voice data corresponding to the desensitized recognition text content; Performing speech recognition processing on the desensitized speech data to obtain desensitized recognition text content; Calculating the text similarity between the desensitized recognized text content and the recognized text content; wherein, the greater the text similarity value, the greater the content consistency of the voice data before and after the desensitization process, that is, the smaller the impact of the desensitization process on the content recognition result; When the text similarity is greater than a preset threshold, it is determined that the desensitized voice data is available.
2. The method according to claim 1, characterized in that: Also includes: generating a speech synthesis model corresponding to a speaker in the speech data; The synthesizing the desensitized voice data corresponding to the desensitized recognized text content includes: using the voice synthesis model to synthesize the desensitized voice data corresponding to the desensitized recognized text content.
3. The method according to claim 1, characterized in that The generating of desensitized voice data at least according to the desensitization processing result includes: Generate a desensitized audio segment corresponding to the desensitization processing result; The voice data is processed according to the desensitized audio segment to obtain desensitized voice data.
4. The method according to claim 3, characterized in that Also includes: Determining sensitive position information of a sensitive audio segment corresponding to the sensitive text content in the voice data; The voice data is processed according to the desensitized audio segment to obtain desensitized voice data, including: replacing the voice segment corresponding to the sensitive position information in the voice data with the desensitized audio segment to obtain the desensitized voice data.
5. The method according to any one of claims 1 to 4, characterized in that The desensitization process includes at least one of a replacement process and a deletion process.
6. The method according to any one of claims 1 to 4, characterized in that When the voice data includes voices of multiple speakers, the voice data is subjected to voice recognition processing to obtain recognized text content, including: Separating a plurality of speech data corresponding to a plurality of speakers from the speech data; Performing speech recognition processing on the multiple voice data to obtain multiple recognized text contents.
7. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the voice data desensitization method described in any one of claims 1-6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the voice data desensitization method described in any one of claims 1 to 6 is implemented.
