Method for adding source speaker watermark in converted voice
By extracting and embedding the potential representation of the source speaker as a watermark in speech conversion, the problems of low watermark adding efficiency and poor speech quality in the existing technology are solved, and an efficient and adaptable speech conversion method is realized, which is directly applicable to the terminal. End-to-end mainstream speech conversion model.
Patent Information
- Application Number
- CN202410897118.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-05
AI Technical Summary
Existing speech conversion methods have low efficiency when adding watermarks, poor quality of reconstructed speech waveforms, poor adaptability to end-to-end mainstream speech conversion methods, and the need to retrain the vocoder, resulting in a waste of computing resources and a decrease in speech conversion quality.
By obtaining the spectrum of the converted speech and the identity characteristics of the source speaker, extracting the latent representation and adding it as a watermark to the converted speech, using the carrier encoding network and the identity encoding network for encoding and decoding, it is implemented in the end-to-end speech conversion method Directly embed source speaker watermarks to avoid retraining the vocoder.
It improves the efficiency of adding watermarks and the quality of speech conversion. It has high robustness and adaptability and can be used directly in mainstream speech conversion methods without rebuilding the speech conversion model. The speech quality after adding watermarks is higher and interpretable. sex.
Smart Images

Figure CN118629424A
Abstract
Description
Technical Field
[0001] The invention relates to a method for adding a source speaker watermark in converted speech, belonging to the technical field of speech signal processing. Background Art
[0002] Through generative AI technology, we can create realistic voice content through voice conversion. Voice conversion is a technology that converts source voice into target voice, that is, the content of the source voice remains unchanged, while the voice style of the source speaker is converted into the style of the target speaker. Currently, a variety of voice conversion methods have been proposed that are widely used in the fields of personalized speech synthesis, singing voice conversion, and voice disguise. However, the converted voice obtained by voice conversion is ultimately a fake voice, which may be used for harmful activities such as online spoofs, malicious editing, and fraud.
[0003] Therefore, the voice conversion provider should add identification information to the converted voice, that is, an implicit watermark that cannot be directly perceived by humans but can be extracted from the content through technical means. Actively adding traceable identification information is more convenient and easier than directly conducting authentication and tracing methods, and is more in line with the requirements of generated voice.
[0004] The DPAS speech steganography method commonly used in the industry (Reference: Chen K, Zhou H, Zhao H, et al. Distribution-Preserving Steganography Based on Text-to-Speech Generative Models [J]. IEEE Transactions on Dependable and Secure Computing, 2022, 19(5): 3343-3356.) can map the source speaker identity to a binary embedded speech method, which can well embed the source speaker identity into the speech, but it will damage the quality of the generated speech, and the identity watermark is not highly recognizable. The industry will also adopt VoxTracer's traceable VC framework (Reference: Ren Y, Zhu H, Zhai L, et al. Who is SpeakingActually? Robust and Versatile Speaker Traceability for Voice Conversion[C] / / Proceedings of the 31st ACM International Conference on Multimedia. New York,NY, USA: Association for Computing Machinery, 2023: 8674-8685.) to embed the source speaker identity into the converted speech. However, the watermarking method currently used in the industry is to embed the source speaker's identity into the speech generation process. However, the mainstream end-to-end speech conversion method is to directly generate the converted speech. The watermarking method currently used in the industry cannot be directly embedded into the trained end-to-end mainstream speech conversion method. It can only be achieved by retraining the vocoder and embedding the watermarking method currently used in the industry. Obviously, retraining the vocoder is cumbersome and time-consuming, and the vocoder embedded with the source speaker's identity is different from the vocoder used for speech conversion before adding the watermark. This vocoder mismatch will also reduce the quality of the speech waveform reconstructed by speech conversion.
[0005] Therefore, the existing method of adding watermarks to the reconverted speech has low efficiency and poor quality of the reconstructed speech waveform, and has poor adaptability to the mainstream end-to-end speech conversion method. Summary of the invention
[0006] The purpose of the present application is to overcome the deficiencies in the prior art and to provide a method for adding a source speaker watermark to converted speech, which has high efficiency, high quality of reconstructed speech waveform, and strong adaptability to end-to-end mainstream speech conversion methods.
[0007] In order to achieve the above objectives, this application is implemented by adopting the following technical solutions:
[0008] In a first aspect, the present application provides a method for adding a source speaker watermark in a converted speech, comprising:
[0009] Acquire a spectrum of the converted speech, and extract a potential representation of the converted speech from the spectrum of the converted speech;
[0010] Acquire the identity feature of the source speaker, and extract the latent representation of the source speaker feature from the identity feature of the source speaker;
[0011] Using the latent representation of the source speaker's characteristics as a source speaker watermark, and adding it to the latent representation of the converted speech, to obtain a encrypted latent representation of the converted speech;
[0012] The encrypted converted speech latent representation is decoded to obtain the converted speech with the source speaker watermark added.
[0013] In some embodiments of the first aspect, acquiring a spectrum of the converted speech and extracting a potential representation of the converted speech from the spectrum of the converted speech includes:
[0014] Get the converted voice;
[0015] Performing short-time Fourier transform on the converted speech to obtain a spectrum of the converted speech;
[0016] A carrier coding network module is used to encode the spectrum of the converted speech to obtain a potential representation of the converted speech; wherein the carrier coding network module is mainly composed of a three-layer gated convolutional neural network.
[0017] In some embodiments of the first aspect, the obtaining of the identity feature of the source speaker and extracting the latent representation of the source speaker feature from the identity feature of the source speaker includes:
[0018] Get the source voice;
[0019] Encoding the source speech using a pre-trained speaker identity encoder to obtain identity features of the source speaker;
[0020] Performing dimension expansion processing on the identity feature of the source speaker to obtain a dimensionally expanded feature vector;
[0021] A source speaker identity encoding network module is used to encode the dimensionally expanded feature vector to obtain a potential representation of the source speaker feature; wherein the source speaker identity encoding network module is mainly composed of a three-layer gated convolutional neural network.
[0022] In some embodiments of the first aspect, the step of adding the latent representation of the source speaker feature as a source speaker watermark to the latent representation of the converted speech to obtain the encrypted latent representation of the converted speech includes:
[0023] The latent representation of the source speaker characteristics is added to the latent representation of the converted speech in the form of a residual to obtain a dense latent representation of the converted speech;
[0024] The decoding of the encrypted converted speech latent representation to obtain the converted speech with the source speaker watermark added includes:
[0025] The latent representation of the encrypted converted speech is decoded by a encrypted converted speech decoding network module to obtain a spectrum of the encrypted converted speech; wherein the encrypted converted speech decoding network module is mainly composed of a four-layer gated convolutional neural network;
[0026] The spectrum of the encrypted converted speech is subjected to inverse short-time Fourier transform to obtain a waveform of the encrypted converted speech, and the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto, thereby achieving the addition of the source speaker watermark in the converted speech.
[0027] In some embodiments of the first aspect, the waveform of the encrypted converted speech is obtained, and the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added, including:
[0028] Performing a short-time Fourier transform on the waveform of the encrypted converted speech to obtain a spectrum of the encrypted converted speech;
[0029] Inputting the encrypted converted speech spectrum into a source speaker identity decoding module for decoding to obtain reconstructed source speaker identity features; wherein the source speaker identity decoding module is mainly composed of a four-layer gated convolutional neural network and a layer of adaptive average pooling;
[0030] The cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature is verified and compared, and in response to the cosine similarity value being greater than a first threshold, the waveform of the encrypted converted speech is output as the waveform of the converted speech with the source speaker watermark added.
[0031] In some embodiments of the first aspect, the waveform of the encrypted converted speech is obtained, and the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added, including:
[0032] Performing a short-time Fourier transform on the waveform of the encrypted converted speech to obtain a spectrum of the encrypted converted speech;
[0033] Inputting the encrypted converted speech spectrum into a source speaker identity decoding module for decoding to obtain reconstructed source speaker identity features; wherein the source speaker identity decoding module is mainly composed of a four-layer gated convolutional neural network and a layer of adaptive average pooling;
[0034] Verifying and comparing the cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature, and in response to the cosine similarity value being greater than a first threshold, inputting the reconstructed source speaker identity feature and the waveform of the encrypted converted speech into a speech conversion module to obtain the reconstructed source speech;
[0035] The source speech is obtained, and a speech similarity value between the reconstructed source speech and the source speech is verified and compared. In response to the speech similarity value being greater than a second threshold, the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto.
[0036] In some embodiments of the first aspect, after decoding the encrypted converted speech latent representation to obtain the converted speech with the source speaker watermark added,
[0037] Get the converted voice;
[0038] A loss function is constructed by using the spectrum difference between the converted speech and the converted speech with the source speaker watermark added thereto, and the loss function is used to optimize the training carrier encoding network module, the source speaker identity encoding network module and / or the encrypted converted speech decoding network module.
[0039] In a second aspect, the present application further provides a computer device, comprising a processor and a memory connected to the processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the method for adding a source speaker watermark to the converted speech as described in any embodiment of the first aspect are performed.
[0040] In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for adding a source speaker watermark to converted speech as described in any one of the embodiments of the first aspect.
[0041] In a fourth aspect, the present application further provides a computer program product, comprising a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the method for adding a source speaker watermark to the converted speech as described in any embodiment of the first aspect are implemented.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The method for adding a source speaker watermark to a converted speech provided by the present application retains the latent representation of the converted speech, and adds the latent representation of the source speaker's features on the basis of the latent representation of the converted speech. Such a watermark adding method not only has a small amount of calculation and a lightweight scale, but also does not damage the original converted speech. Thus, the converted speech with the source speaker watermark added obtained after the latent representation of the encrypted converted speech is decoded is similar to the original converted speech. The converted speech with the watermark added has high quality and is interpretable. Therefore, the source speaker watermark can be directly embedded into the converted speech generated by the end-to-end mainstream speech conversion method. In addition, the converted speech with the watermark added has strong robustness against common noise attacks. The method for adding a source speaker watermark to the converted speech can be directly used as a supplementary part of the speech conversion model without the need to retrain an additional speech conversion model, and has wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 is a flowchart of the steps of the method for adding a source speaker watermark to the converted speech provided by this embodiment;
[0046] Figure 2 is a data flow chart of a method for adding a source speaker watermark to a converted speech provided by this embodiment;
[0047] Figure 3 yes Figure 2 A schematic diagram of the process of embedding the source speaker identity and reconstructing the source speaker identity;
[0048] Figure 4 The speech quality comparison result diagram of the converted speech with the source speaker watermark added by the DPAS method and the converted speech without the addition in the comparative experiment provided in this embodiment;
[0049] Figure 5 This is a comparison result diagram of the speech quality of the converted speech with the source speaker watermark added by VoxTracer and the converted speech without the source speaker watermark added in the comparative experiment provided in this embodiment;
[0050] Figure 6 It is a comparison result diagram of the speech quality of the converted speech with the source speaker watermark added and the converted speech without the source speaker watermark added in the comparative experiment provided in the present embodiment by the method of adding the source speaker watermark in the converted speech provided in the present embodiment;
[0051] Figure 7 Cross-compatibility score diagram based on SNR, PESQ and MCS tests in the comparative experiment provided in this embodiment;
[0052] Figure 8 In the comparative experiment provided in this embodiment, the regenerated source speech is respectively compared with the source speech and the score graph of the reconstructed source speech;
[0053] Fig. 9 It is a schematic block diagram of the principles of the computer device provided in this embodiment. DETAILED DESCRIPTION
[0054] It should be noted that: the source speaker is the speaker of the source speech, the target speaker is the speaker that is to be simulated after the speech conversion, and the speech conversion model converts the source speech into the converted speech with the voice characteristics of the target speaker, so that the converted speech sounds like the voice of the target speaker, while keeping the speech content information unchanged compared with the source speech; the voice characteristics of the target speaker also include spectrum distribution, pitch, timbre, speaking speed, etc., but they are different from those of the source speaker. For "source speaker", "target speaker" and "source speech", there are words with the same meaning but different expressions recorded in other technical documents
[0055] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0056] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0057] For FreeVC (Reference: Li J, Tu W, Xiao L. Freevc: Towards High-Quality Text-Free One-Shot Voice Conversion[C] / / ICASSP 2023 - 2023 IEEEInternational Conference on Acoustics, Speech and Signal Processing (ICASSP).2023: 1-5.) and ConsistencyVC (Reference: Guo H, Liu C, Ishi CT, et al. Usingjoint training speaker encoder with consistency loss to achieve cross-lingualvoice conversion and expressive voice conversion[M]. arXiv, 2023.) is a voice conversion module constructed based on the mainstream end-to-end voice conversion method represented by
[14] . The existing mainstream voice conversion watermarking method represented by the DPAS voice steganography method and the VoxTracer traceable VC framework cannot directly add the source speaker's watermark to the converted voice output by the end-to-end voice conversion module. The existing solution is to reconstruct a voice conversion module, embed the voice watermarking method module in the new voice conversion module, and then input the converted voice to reconstruct the new converted voice as the converted voice with the watermark added.
[0058] It is not difficult for technical personnel in this field to see that, firstly, reconstructing the speech conversion module is time-consuming and labor-intensive, and wastes computing resources. Secondly, the reconstructed speech conversion module is different from the original speech conversion module, resulting in a large gap between the newly converted speech and the original converted speech, and the quality of the newly converted speech is poor.
[0059] Embodiment 1:
[0060] Figure 1 This is a flow chart of a method for adding a source speaker watermark to a converted speech in the first embodiment of the present invention. This flow chart only shows the logical sequence of the method described in this embodiment. In other possible embodiments of the present invention, different methods may be used without conflict. Figure 1 The steps shown or described are accomplished in the order shown.
[0061] The method for adding a source speaker watermark to the converted speech provided in this embodiment can be applied to a terminal and can be executed by a speech conversion device, which can be implemented by software and / or hardware, and can be integrated in a terminal, for example: any smart phone, tablet computer or computer device with communication function. Figure 1 The method of this implementation specifically includes the following steps:
[0062] Acquire a spectrum of the converted speech, and extract a potential representation of the converted speech from the spectrum of the converted speech; wherein the spectrum of the converted speech can be directly acquired, or the spectrum of the converted speech can be acquired by collecting the converted speech and processing the converted speech into a spectrum through Fourier transform and its variants, and the converted speech is obtained by performing speech conversion on the source speech through a speech conversion model (also known as a vocoder).
[0063] The identity features of the source speaker are obtained, and the potential representation of the source speaker features is extracted from the identity features of the source speaker. The identity features of the source speaker can be directly obtained, or the identity features of the source speaker can be extracted from the source speech using voiceprint recognition technology. The voiceprint recognition technology is mainly used to encode the voice characteristics of the speaker into a vector of fixed length.
[0064] Using the latent representation of the source speaker's characteristics as a source speaker watermark, and adding it to the latent representation of the converted speech, to obtain a encrypted latent representation of the converted speech;
[0065] The encrypted converted speech latent representation is decoded to obtain the converted speech with the source speaker watermark added, thereby embedding the source speaker identity. Optionally, after decoding the encrypted converted speech latent representation, the waveform of the converted speech with the source speaker watermark added is obtained, and the waveform of the converted speech with the source speaker watermark added can be used to generate the converted speech with the source speaker watermark added.
[0066] It is not difficult for a person skilled in the art to see that, compared with the mainstream method of adding watermarks to converted speech, the method of adding source speaker watermarks to converted speech provided in this embodiment extracts the latent representation of source speaker features and the latent representation of converted speech respectively, and then obtains the intrinsic representation form that can reflect speech characteristics and information hidden behind the source speech and converted speech signals, including the essential features and structure of the deep level of speech, and fuses the two latent representations into the latent representation of the encrypted converted speech. By decoding the latent representation of the encrypted converted speech, the waveform of the encrypted converted speech is obtained, and the representation of the source speaker is added to the converted speech; the speech played according to the waveform of the encrypted converted speech mainly uses the latent features of the source speaker's features as watermarks, and is also added to the converted speech by adding and fusing between the latent representations. After these latent representations are sent in the form of speech, it is difficult for the human ear to detect them and they have strong imperceptibility. Therefore, the waveform difference between the converted speech with the source speaker watermark added and the original converted speech without the addition is small, and the quality of the converted speech with the source speaker watermark added is higher.
[0067] At the same time, since the method for adding the source speaker watermark to the converted speech provided by this embodiment realizes the addition of the watermark by extracting and fusing the latent representation, the watermark is directly added based on the original output of the speech conversion model, without the need to reconstruct the speech conversion model, thus avoiding the problem of a large gap between the converted speech output of the new speech conversion model and the original converted speech waveform. At the same time, compared with the traditional watermark adding method of reconstructing the speech conversion model, the method for adding the source speaker watermark to the converted speech provided by this embodiment is relatively lightweight, and in some embodiments, the volume does not exceed 2Mbs.
[0068] It is not difficult to see that for the speech conversion module constructed by the end-to-end mainstream speech conversion method, the method for adding the source speaker watermark in the converted speech provided by this embodiment can be used as a subsequent additional supplementary module of the speech conversion module and has strong adaptability.
[0069] It is worth noting that the method for adding a source speaker watermark to the converted speech provided in this embodiment is not only applicable to the speech conversion module constructed by the end-to-end mainstream speech conversion method, but also to the speech conversion modules constructed in other forms. In view of the same principle, it will not be repeated here.
[0070] It is also worth noting that in the process of adding the latent representation of the source speaker features as the source speaker watermark to the latent representation of the converted speech, the embedding position of the latent representation of the source speaker features is flexibly adjustable, and the watermark can be added at a position that is not easily noticed by the listener, thereby improving imperceptibility.
[0071] Embodiment 2:
[0072] This embodiment provides a method for adding a source speaker watermark to converted speech. This embodiment is optimized on the basis of the first embodiment to improve the technical effect and refine the technical solution. For details not fully described in this embodiment, please refer to the first embodiment.
[0073] Embodiment 1 mentions that a spectrum of the converted speech is obtained, and a potential representation of the converted speech is extracted from the spectrum of the converted speech. Optionally, in a further but non-limiting embodiment of the present application, the converted speech is obtained, that is, the output result of the conversion of the source speech by the speech conversion module;
[0074] Perform a short-time Fourier transform on the converted speech to obtain a spectrum of the converted speech; optionally, the short-time Fourier transform formula is as follows:
[0075] ,
[0076] In the formula, To convert the spectrum of speech, is the short-time Fourier transform operation, represents the converted speech waveform, which can be directly obtained from the converted speech;
[0077] The carrier coding network module is used to encode the spectrum of the converted speech to obtain the potential representation of the converted speech; wherein the carrier coding network module is mainly composed of three layers of gated convolutional neural networks. The gated convolutional neural network can capture the potential representation in a nonlinear mode, is suitable for audio feature extraction, and has efficient parallel computing capabilities. Optionally, the encoding formula of the carrier coding network module is as follows:
[0078] ,
[0079] In the formula, Encoding operations for carrier encoding network modules, The latent representation for the converted speech.
[0080] Embodiment 1 mentions obtaining the identity features of the source speaker, and extracting the potential representation of the source speaker features from the identity features of the source speaker, as one embodiment thereof, including:
[0081] Obtaining source speech emitted by a source speaker;
[0082] Encode the source speech using a pre-trained speaker identity encoder to obtain the identity features of the source speaker;
[0083] The identity features of the source speaker are dimensionally expanded to obtain a feature vector after dimension expansion. The feature vector after dimension expansion has strong expression ability and is easy to process and analyze. Optionally, the dimension expansion processing formula is as follows:
[0084] ,
[0085] In the formula, is the identity feature of the source speaker, For dimension expansion operations, is the feature vector after dimension expansion;
[0086] The source speaker identity encoding network module is used to encode the feature vector after the dimension expansion to obtain the potential representation of the source speaker feature; wherein the source speaker identity encoding network module is mainly composed of a three-layer gated convolutional neural network. Optionally, the encoding formula of the source speaker identity encoding network module is as follows:
[0087] ,
[0088] In the formula, The encoding operation of the source speaker identity encoding network module, is the latent representation of the source speaker's characteristics.
[0089] Optionally, the speaker identity encoder may select a method based on traditional machine learning, or a method based on deep learning such as DeepSpeaker or x-vector.
[0090] Embodiment 1 mentions that the latent representation of the source speaker's features is used as the source speaker watermark, added to the latent representation of the converted speech, and the encrypted converted speech latent representation is obtained. Optionally, in a further but non-limiting embodiment of the present application, the following is included:
[0091] The latent representation of the source speaker characteristics is added to the latent representation of the converted speech in the form of a residual to obtain a dense latent representation of the converted speech;
[0092] The decoding of the encrypted converted speech potential representation mentioned in the first embodiment to obtain the converted speech with the source speaker watermark added thereto, as one embodiment thereof, includes:
[0093] The latent representation of the encrypted converted speech is decoded through the encrypted converted speech decoding network module to obtain the spectrum of the encrypted converted speech; wherein the encrypted converted speech decoding network module is mainly composed of a four-layer gated convolutional neural network;
[0094] The spectrum of the encrypted converted speech is subjected to an inverse short-time Fourier transform to obtain the waveform of the encrypted converted speech, and the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added, so as to add the source speaker watermark to the converted speech. Optionally, the inverse short-time Fourier transform formula is as follows:
[0095] ,
[0096] In the formula, is the decoding operation of the encrypted conversion speech decoding network, is the inverse short-time Fourier transform operation, The waveform of the encrypted converted speech.
[0097] In order to improve the accuracy of watermark identification of the source speaker, the waveform of the encrypted converted speech is obtained as the waveform of the converted speech with the source speaker watermark added, and further includes:
[0098] Performing short-time Fourier transformation on the waveform of the encrypted converted speech to obtain the encrypted converted speech spectrum;
[0099] The encrypted converted speech spectrum is input into the source speaker identity decoding module for decoding to obtain the reconstructed source speaker identity feature; wherein the reconstructed source speaker identity decoding module is mainly composed of a four-layer gated convolutional neural network and a layer of adaptive average pooling; optionally, the reconstruction decoding formula of the reconstructed source speaker identity feature is as follows:
[0100] ,
[0101] In the formula, To reconstruct the source speaker’s identity features, is a decoding operation of a source speaker identity decoding module;
[0102] Verify and compare the cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature. In response to the cosine similarity value being greater than the first threshold, the reconstructed source speaker identity feature and the source speaker identity feature are accurately consistent, and the waveform of the encrypted converted speech is output as the waveform of the converted speech with the source speaker watermark added. As an intuitive and easy-to-understand similarity measurement method, cosine similarity does not require in-depth mathematical theoretical knowledge and can effectively measure the degree of proximity between two vectors in direction. In the field of voiceprint recognition, this measurement method is particularly suitable for processing speaker identity features in speech data. The reconstructed source speaker identity feature can be used to extract the source speaker identity.
[0103] In addition, the reconstructed source speaker identity feature can be used to directly extract the source speaker identity and directly verify the accuracy of the watermark identification of the source speaker, and can also be further used to reconstruct the source speech. Specifically, different from the above direct use of the reconstructed source speaker identity feature for verification and comparison, as another embodiment, the cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature is verified and compared, and in response to the cosine similarity value being greater than a first threshold, the reconstructed source speaker identity feature and the waveform of the encrypted converted speech are input into the speech conversion module to obtain the reconstructed source speech.
[0104] In addition to extracting the identity of the source speaker, reconstructing the source speech can also be used to interpretably verify whether the characteristics of the source speaker in the encrypted converted speech are accurate and whether the source speaker can be identified through the added watermark:
[0105] The source speech is obtained, and the speech similarity value between the reconstructed source speech and the source speech is verified and compared. In response to the speech similarity value being greater than a second threshold, the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added.
[0106] The method for adding a source speaker watermark to the converted speech provided in this embodiment uses multiple encoding network modules and decoding network modules, which can be optimized and trained during use. Therefore, as one embodiment, after decoding the latent representation of the encrypted converted speech and obtaining the converted speech with the source speaker watermark added,
[0107] Get the converted voice;
[0108] The loss function is constructed by the spectrum difference between the converted speech and the converted speech with the source speaker watermark added, and the loss function is used to optimize the training carrier encoding network module, the source speaker identity encoding network module or / and the encrypted converted speech decoding network module. Specifically, the loss function constructed based on the spectrum difference can replace / integrate into the original loss function in the above network module.
[0109] In order to evaluate the effectiveness of this application, a comparative experiment was conducted by comparing with the prior art:
[0110] In the converted speech obtained by three speech conversion modules, namely VQMIVC (Reference: Wang D, Deng L, Yeung YT,et al. VQMIVC: Vector Quantization and Mutual Information-Based UnsupervisedSpeech Representation Disentanglement for One-Shot Voice Conversion[C] / / Proc.Interspeech 2021. 2021: 1344-1348.), FreeVC and ConsistencyVC, the source speaker identity watermark is embedded and verified and the source speech is reconstructed. All experiments were conducted on the VCTK corpus (reference: JYamagishi, C Veaux, K MacDonald, et al., “Cstr vctk corpus: English multi-speaker corpus for cstr voice cloning toolkit (version 0.92),” 2019.), with a total of 109 English speakers. The official pre-trained model on the VCTK corpus was used to randomly generate 10,000 converted speech, which were randomly divided into 9,000, 1,000 and 1,000 as training sets, validation sets and test sets. It should be emphasized that there is no overlap between any speakers (source or target) in the training set and the test set. The official pre-trained model on the VCTK corpus is used to obtain the source speaker identity.
[0111] The method for adding a source speaker watermark to the converted speech provided in this embodiment is compared with the most advanced speech steganography model DPAS, speech digital watermark model WavMark (reference: Chen G, Wu Y, Liu S, et al. WavMark: Watermarking for Audio Generation [M]. arXiv, 2023.) and speaker identity tracing model VoxTracer on the same data set. Referring to Tables 1 to 3, it is shown that the method for adding a source speaker watermark to the converted speech provided in this embodiment is effective in actively embedding and extracting the source speaker identity in the converted speech.
[0112] The converted speech and the source speaker identity are input, and the signal-to-noise ratio (SNR), perceptual evaluation of speech quality (PESQ), mean opinion score (MOS), and speaker similarity mean opinion score (MOS-S) are used to characterize the imperceptibility of the watermark in the converted speech with the source speaker watermark added, and to indicate the effect of embedding the source speaker identity. NR and PESQ are objective evaluation indicators of speech quality. The PESQ score range is [-0.5, 4.5]. A value greater than 4.0 is considered to have good auditory quality. A larger SNR indicates better imperceptibility. MOS and MOS-S are subjective evaluation indicators of speech quality. The score range is [0, 5]. A value greater than 3.5 is considered to have good speech quality.
[0113]
[0114] In addition, the MOSNet model (reference: Lo CC, Fu SW, Huang WC, et al. MOSNet: Deep Learning-Based Objective Assessment for Voice Conversion[C] / / Proc. Interspeech 2019. 2019: 1541-1545.) is used to objectively evaluate the speech quality before and after the source speaker watermark is embedded in the converted speech, and the difference and correlation between the two are calculated by the linear correlation coefficient (Linear Correlation Coefficient, LCC), Spearman Rank Correlation Coefficien (Spearman Rank Correlation Coefficien, SRCC) and Mean Square Error (Mean Square Error, MSE). For DPAS, VoxTracer and the method of adding source speaker watermarks to the converted speech provided in this embodiment, MOSnet is used to compare the speech quality of the converted speech with and without the source speaker watermark. Figure 4 , Figure 5 and Figure 6 (from Figures 4 to 6 DPAS, VoxTracer and the method for adding source speaker watermark in converted speech provided by this embodiment are shown in sequence. The horizontal axis is the converted speech MOS, and the vertical axis is the encrypted converted speech MOS (i.e. the converted speech with the source speaker watermark added). It is not difficult to see that the method for adding source speaker watermark in converted speech provided by this embodiment has considerable consistency in the speech quality before and after the source speaker watermark is embedded in the converted speech, while the consistency of the speech quality before and after DPAS and VoxTracer is poor.
[0115] For the source speaker tracking task, the performance of the speaker verification system EER (the lower the better), the average cosine similarity MCS between the reconstructed source speaker identity and the original source speaker identity (the higher the better), and the proportion of the number of consistent sources between the reconstructed source speaker identity and the original source speaker identity ACC (the higher the better) are used to compare the source speaker tracing results of other methods with those of the method provided in this implementation. The speech length of all methods is based on the minimum speech length required for embedding. The experimental results are shown in Table 2.
[0116]
[0117] It can be seen from Table 1 and Table 2 that the method for adding a source speaker watermark to a converted speech provided in this embodiment can well embed the source speaker identity as a watermark into the converted speech, and the source speaker identity can also be well extracted again from the converted speech to which the source speaker watermark is added for verification.
[0118] For the measurement of the robustness of the encrypted converted speech, the converted speech under the framework of the ConsistencyVC method is used, and the method for adding the source speaker watermark to the converted speech provided in this embodiment is used to process the converted speech with the source speaker watermark added. The following common noise attack types are considered to test the robustness of the converted speech with the source speaker watermark added under different attacks:
[0119] 1. Noise: Add Gaussian noise with a coefficient of 0.001 and speckle noise signals with coefficients of 0.1 and 0.01 to the speech.
[0120] 2. Resampling (RS): Convert the speech sampling rate containing the source speaker identity information to other common sampling rates (8000, 22050, 44100), and then convert it back to the original sampling rate.
[0121] 3. Low-pass filter (LP): Use 4kHz and 5kHz cutoff frequencies to remove high-frequency components in speech.
[0122] 4. Amplitude Scaling (AS): Reduces the speech amplitude to 90% of the original amplitude.
[0123] 5. Lossy Compression (LC): compresses voice into MP3 format at 32kbps and 64kbps and then converts back.
[0124]
[0125] According to Table 3, and with reference to the corresponding scores in Table 1 and Table 2, it is not difficult to see that the converted speech under the framework of the ConsistencyVC method, after adding the source speaker watermark by the method of adding the source speaker watermark in the converted speech provided by this embodiment, has good robustness against different types of attacks; the robustness test under the framework of the remaining speech conversion modules is not repeated here in view of the same principle.
[0126] The method for adding a source speaker watermark to the converted speech provided in the present application is combined with different speech conversion modules respectively, and has a measure of cross-versatility. The embedding and extraction models trained by FreeVC and ConsistencyVC are cross-applied, that is, the converted speech output by one of the speech conversion modules is used to train the method for adding a source speaker watermark to the converted speech provided in the present embodiment, and the trained method for adding a source speaker watermark to the converted speech is used to add the source speaker watermark to the converted speech output by another speech conversion module, and the applicability is tested; the present embodiment determines the imperceptibility by two test methods, SNR and PESQ, and determines the effect of extracting the source speaker identity by MCS test, such as Figure 7 As shown, Figure 7 Here, "original" represents the test score of the converted speech with the source speaker watermark added, which is obtained by training the method for adding the source speaker watermark in the converted speech provided in this embodiment with the converted speech output by FreeVC, and "cross" represents the test score of the converted speech with the source speaker watermark added, which is obtained by adding the source speaker watermark in the converted speech output by ConsistencyVC using the method for adding the source speaker watermark in the converted speech trained with the converted speech output by FreeVC.
[0127] It is not difficult for those skilled in the art to see that the method for adding a source speaker watermark to converted speech provided in this embodiment has strong cross-applicability.
[0128] The method of adding the source speaker watermark to the converted speech provided in this embodiment to obtain the quality measurement of the reconstructed source speech is conducive to Mosnet's comparison of the source speech and the reconstructed source speech. It should be noted that, considering that the speech conversion module VC may not be completely decoupled during the speech conversion process, the quality of the reconstructed original speech is not high. Therefore, Figure 8 As shown (from the left "1" the horizontal axis is Mosnet's score for the source speech, the vertical axis is Mosnet's score for the regenerated source speech, the middle "2" the horizontal axis is Mosnet's score for the source speech, the vertical axis is Mosnet's score for the reconstructed source speech, the right "3" the horizontal axis is Mosnet's score for the reconstructed source speech, the vertical axis is Mosnet's score for the regenerated source speech), a full comparative experiment was set up using FreeVC, that is, the regenerated source speech introduced with FreeVC was compared with the source speech and the reconstructed source speech respectively, and the waveform of the encrypted converted speech and the speaker identity features extracted from the source speech were input into the speech conversion module VC to regenerate the source speech. It is worth pointing out that the speech conversion module VC may have the problem of incomplete decoupling, which reduces the quality of the reconstructed source speech, which is related to Figure 8 The performance is consistent, that is, the regenerated source speech is not completely equivalent to the source speech, refer to Figure 8 The scores of the regenerated source speech, the source speech, and the reconstructed source speech have similar data distributions, which indicates that the quality loss of the reconstructed source speech compared with the source speech is mainly caused by the speech conversion module, rather than the method of adding the source speaker watermark in the converted speech provided in this embodiment.
[0129] In terms of usage, the method of adding the source speaker watermark in the converted speech provided in this embodiment is only a supplementary part of VC, which does not bring extra burden to VC, and can quickly verify the source speaker identity information during the tracking process, and use it to restore the source speech. Therefore, this embodiment also compares the method of adding the source speaker watermark in the converted speech with other methods in terms of model size and time spent, and the results are shown in Table 4.
[0130]
[0131] In summary, it is not difficult to see that since both DAPS and VoxTracer methods use WaveGlow vocoders, the model size of DAPS and VoxTracer methods is relatively large. Although it does not bring too much burden to the two-stage VC, it only needs to map the secret information to the Gaussian distribution, but for the end-to-end VC, the vocoder needs to be used again, resulting in a larger model. The method for adding a source speaker watermark to the converted speech provided in this embodiment embeds the source speaker identity information in the converted speech, and the model size of embedding and extracting the source speaker identity information is <1M, which does not add additional burden to any VC method.
[0132] Similarly, the DAPS and VoxTracer methods require Mel conversion and WaveGlow vocoder to regenerate speech waveforms for end-to-end VC, which adds extra time. The method for adding source speaker watermarks to converted speech provided in this embodiment takes almost negligible time to embed and extract source speaker identity information, and does not bring additional burden to VC. It is undeniable that the Wavmark method is also embedded directly in the process of converting speech, and only requires a very short carrier speech, but its carrier speech has a fixed time of 1s, while the method for adding source speaker watermarks to converted speech provided in this embodiment only takes 0.5s.
[0133] In summary, the method for adding a source speaker watermark to a converted speech provided by this embodiment has the advantages of small size, fast speed, high quality, high interpretability, strong robustness, and the intermediate product can be used to reconstruct the source speech, compared with the traditional method of adding a source speaker watermark to a converted speech.
[0134] Embodiment three:
[0135] This embodiment provides a computer device, including a processor and a memory connected to the processor, wherein a computer program is stored in the memory. When the computer program is executed by the processor, the steps of the method for adding a source speaker watermark to converted speech provided in Embodiment 1 or 2 are performed.
[0136] The computer device may be a server or an electronic terminal. As one embodiment, refer to Fig. 9The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data obtained and generated in the method for adding a source speaker watermark to the converted speech. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the method for adding a source speaker watermark to the converted speech provided in the first or second embodiment is implemented.
[0137] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0138] The computer device provided in this embodiment has the same technical effects as those in Embodiment 1 or 2, which will not be described in detail here.
[0139] Embodiment 4:
[0140] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method for adding a source speaker watermark to converted speech provided in the first or second embodiment are implemented.
[0141] The computer-readable storage medium provided in this embodiment has the same technical effects as those in Embodiment 1 or 2, and will not be described in detail here.
[0142] Embodiment five:
[0143] This embodiment provides a computer program product, on which a computer program is stored, and when the program is executed by a processor, the steps of the method for adding a source speaker watermark to a converted speech provided in Embodiment 1 or Embodiment 2 are implemented. The computer program product provided in this embodiment can be transmitted, distributed and downloaded in the form of a signal via the Internet.
[0144] The computer program product provided in this embodiment has the same technical effects as those in Embodiment 1 or 2, and will not be described in detail here.
[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for adding a source speaker watermark to a converted speech, characterized in that: include, Acquire a spectrum of the converted speech, and extract a potential representation of the converted speech from the spectrum of the converted speech; Acquire the identity feature of the source speaker, and extract the latent representation of the source speaker feature from the identity feature of the source speaker; Using the latent representation of the source speaker feature as a source speaker watermark, and adding it to the latent representation of the converted speech, to obtain a encrypted latent representation of the converted speech; The encrypted converted speech latent representation is decoded to obtain the converted speech with the source speaker watermark added.
2. The method for adding a source speaker watermark to converted speech according to claim 1, characterized in that: The obtaining of the spectrum of the converted speech and extracting the potential representation of the converted speech from the spectrum of the converted speech include: Get the converted voice; Performing short-time Fourier transform on the converted speech to obtain a spectrum of the converted speech; A carrier coding network module is used to encode the spectrum of the converted speech to obtain a potential representation of the converted speech; wherein the carrier coding network module is mainly composed of a three-layer gated convolutional neural network.
3. The method for adding a source speaker watermark to converted speech according to claim 1, characterized in that: The step of obtaining the identity feature of the source speaker and extracting the potential representation of the source speaker feature from the identity feature of the source speaker includes: Get the source voice; Encoding the source speech using a pre-trained speaker identity encoder to obtain identity features of the source speaker; Performing dimension expansion processing on the identity feature of the source speaker to obtain a dimensionally expanded feature vector; A source speaker identity encoding network module is used to encode the dimensionally expanded feature vector to obtain a potential representation of the source speaker feature; wherein the source speaker identity encoding network module is mainly composed of a three-layer gated convolutional neural network.
4. The method for adding a source speaker watermark to a converted speech according to claim 1, characterized in that: The method of adding the latent representation of the source speaker feature as a source speaker watermark to the latent representation of the converted speech to obtain the encrypted latent representation of the converted speech includes: The latent representation of the source speaker characteristics is added to the latent representation of the converted speech in the form of a residual to obtain a dense latent representation of the converted speech; The decoding of the encrypted converted speech latent representation to obtain the converted speech with the source speaker watermark added includes: The latent representation of the encrypted converted speech is decoded by a encrypted converted speech decoding network module to obtain a spectrum of the encrypted converted speech; wherein the encrypted converted speech decoding network module is mainly composed of a four-layer gated convolutional neural network; The spectrum of the encrypted converted speech is subjected to inverse short-time Fourier transform to obtain a waveform of the encrypted converted speech, and the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto, thereby achieving the addition of the source speaker watermark in the converted speech.
5. The method for adding a source speaker watermark to a converted speech according to claim 4, characterized in that: The step of obtaining the waveform of the encrypted converted speech, wherein the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto, comprises: Performing a short-time Fourier transform on the waveform of the encrypted converted speech to obtain a spectrum of the encrypted converted speech; Input the encrypted converted speech spectrum into the source speaker identity decoding module for decoding to obtain the reconstructed source speaker identity features; wherein the source speaker identity decoding module is mainly composed of a four-layer gated convolutional neural network and a layer of adaptive average pooling; The cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature is verified and compared, and in response to the cosine similarity value being greater than a first threshold, the waveform of the encrypted converted speech is output as the waveform of the converted speech with the source speaker watermark added.
6. The method of adding a source speaker watermark to a converted speech according to claim 4, characterized in that: The step of obtaining the waveform of the encrypted converted speech, wherein the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto, comprises: Performing a short-time Fourier transform on the waveform of the encrypted converted speech to obtain a spectrum of the encrypted converted speech; Inputting the encrypted converted speech spectrum into a source speaker identity decoding module for decoding to obtain reconstructed source speaker identity features; wherein the source speaker identity decoding module is mainly composed of a four-layer gated convolutional neural network and a layer of adaptive average pooling; Verifying and comparing the cosine similarity value between the reconstructed source speaker identity feature and the source speaker identity feature, and in response to the cosine similarity value being greater than a first threshold, inputting the reconstructed source speaker identity feature and the waveform of the encrypted converted speech into a speech conversion module to obtain the reconstructed source speech; The source speech is obtained, and a speech similarity value between the reconstructed source speech and the source speech is verified and compared. In response to the speech similarity value being greater than a second threshold, the waveform of the encrypted converted speech is used as the waveform of the converted speech with the source speaker watermark added thereto.
7. The method for adding a source speaker watermark to converted speech according to claim 1, characterized in that: After decoding the encrypted converted speech latent representation to obtain the converted speech with the source speaker watermark added, Get the converted voice; A loss function is constructed by using the spectrum difference between the converted speech and the converted speech with the source speaker watermark added thereto, and the loss function is used to optimize the training carrier encoding network module, the source speaker identity encoding network module and / or the encrypted converted speech decoding network module.
8. A computer device, characterized in that: The method comprises a processor and a memory connected to the processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the method for adding a source speaker watermark to converted speech as claimed in any one of claims 1 to 7 are executed.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for adding a source speaker watermark to converted speech as described in any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method for adding a source speaker watermark to converted speech as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Watermark-embedded voice authentication system and method thereof
CN115398535A
Audio hidden watermark adding and extracting method and system
CN115985329A
Voice conversion speaker tracing method and device
CN116665687A
Source speaker tracing method and device in voice conversion deep counterfeiting, and storage medium
CN118197330A
Identifying transponder hardware or waveform in wireless network via machine learning module
US20240185053A1
Cited By
Audio watermark model training method and device and audio watermark embedding method and device
CN122177138A
