Audio processing method and apparatus, device and storage medium

By extracting features of audio and object information and performing fusion processing, the problem in the existing technology that timbre conversion cannot achieve non-specific timbre conversion is solved, and diverse audio transformation is achieved.

WO2024193434A1PCT designated stage expired Publication Date: 2024-09-26VIVO MOBILE COMM CO LTD

Patent Information

Application Number
PCT/CN2024/081679
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-14
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

The existing technology cannot convert source audio into audio of non-specific timbre during timbre conversion, which limits the possibility of audio transformation.

Method used

By obtaining audio and object information, the content recognition model is used to extract audio content features, the timbre recognition model is used to extract timbre features, and the timbre conversion model is used for fusion processing to realize the conversion of any audio to any non-specific timbre.

Benefits of technology

It realizes the conversion of any audio into any other non-specific timbre audio, enriching the possibilities and effects of timbre conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081679_26092024_PF_FP
    Figure CN2024081679_26092024_PF_FP
Patent Text Reader

Abstract

The present application relates to the technical field of artificial intelligence, and discloses an audio processing method and apparatus, a device and a storage medium. The audio processing method comprises: acquiring a first audio corresponding to a first object and object information corresponding to a second object; performing audio content extraction on the first audio by using a content recognition model, and obtaining content features corresponding to the first audio; performing tone extraction on the object information by using a tone recognition model, and obtaining tone features corresponding to the second object; and performing fusion processing on the content features and the tone features by using a tone conversion model, and obtaining a second audio having tone features.
Need to check novelty before this filing date? Find Prior Art

Description

Audio processing method, device, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application 202310267828.2, filed on March 17, 2023, entitled “Audio processing method, apparatus, device and storage medium,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of artificial intelligence technology, and specifically relates to an audio processing method, apparatus, device and storage medium. Background Art

[0004] Voice conversion is a speech synthesis technology that has become increasingly popular in recent years and is often used in entertainment and dubbing scenarios. Voice conversion typically involves pitch conversion and timbre conversion.

[0005] In the related art, when performing timbre conversion, the source audio can usually only be converted into audio of a preset specific timbre, and cannot be converted into audio of other non-specific timbre.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide an audio processing method, apparatus, device and storage medium that can convert any audio into any other audio with any non-specific timbre.

[0008] In a first aspect, an embodiment of the present application provides an audio processing method, the method comprising:

[0009] Acquire the first audio corresponding to the first object and the object information corresponding to the second object;

[0010] Extracting audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio;

[0011] Using a timbre recognition model to extract timbre from the object information to obtain a timbre feature corresponding to the second object;

[0012] The content feature and the timbre feature are fused using a timbre conversion model to obtain a second audio with the timbre feature.

[0013] In a second aspect, an embodiment of the present application provides an audio processing device, the device comprising:

[0014] An information acquisition module, configured to acquire a first audio corresponding to a first object and object information corresponding to a second object;

[0015] a content extraction module, configured to extract audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio;

[0016] a timbre extraction module, configured to extract timbre from the object information using a timbre recognition model to obtain a timbre feature corresponding to the second object;

[0017] The fusion processing module is used to use the timbre conversion model to fuse the content feature and the timbre feature to obtain a second audio with the timbre feature.

[0018] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0021] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0022] In an embodiment of the present application, by performing timbre conversion on the first audio corresponding to the first object, timbre extraction is performed on the object information corresponding to any non-specific second object, and then the content features extracted from the first audio are fused with the timbre features extracted from the object information of the second object, so that a second audio having the timbre features of any second object can be obtained, thereby realizing the conversion of any audio into any other audio of any non-specific timbre. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a flowchart of an audio processing method provided by an embodiment of the present application;

[0024] FIG2 is a schematic diagram of a model architecture adapted by the audio processing method provided in an embodiment of the present application;

[0025] FIG3 is a schematic diagram of the network structure of the residual layer provided in an embodiment of the present application;

[0026] FIG4 is a schematic diagram of the network structure of the fundamental frequency feature extraction model provided in an embodiment of the present application;

[0027] FIG5 is a schematic diagram of the network structure of the object classification model provided in an embodiment of the present application;

[0028] FIG6 is a structural block diagram of an audio processing device provided by an embodiment of the present application;

[0029] FIG7 is a structural block diagram of an electronic device provided by an embodiment of the present application;

[0030] FIG8 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0033] The audio processing method, apparatus, device, and storage medium provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0034] The audio processing method provided in this application can be applied to timbre conversion scenarios. The audio processing method provided in the embodiment of this application is described in detail below in conjunction with Figures 1 to 5. It should be noted that the audio processing method provided in the embodiment of this application can be executed by an audio processing device. In the embodiment of this application, the audio processing method provided in the embodiment of this application is illustrated by taking an audio processing device executing the audio processing method as an example.

[0035] FIG1 is a flow chart of a control method provided by an embodiment of the present application.

[0036] As shown in FIG1 , the audio processing method may include steps S110 - S140 , which are described in detail below.

[0037] S110: Acquire first audio corresponding to a first object and object information corresponding to a second object.

[0038] In the embodiment of the present application, the first object and the second object can be any object that can make a sound, such as a person, an animal, a musical instrument, etc. For example, the first object can be user A, and the second object can be user B.

[0039] The first audio may be audio corresponding to the first object that needs to be converted into timbre, wherein the method of obtaining the first audio may include obtaining it online by recording with a microphone, obtaining it from a file uploaded by the user locally or in the cloud, or obtaining it from an audio file address link on the Internet input by the user, etc., which is not limited here.

[0040] The object information may be information corresponding to the second object used to extract the timbre, and may specifically include audio information, image information, or other information representative of the second object's characteristics, such as audio information obtained by recording the second object's voice, or image information obtained by capturing the second object's face. Object information may be obtained online using microphone recording or camera photography, from files uploaded locally or via the cloud by the user, or from a file link on the internet input by the user, without limitation.

[0041] S120: Extract audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio.

[0042] Here, the content recognition model may be a model for extracting audio content, and the content recognition model may be a trained neural network model. The audio content may include information describing the audio content, such as text content, fundamental frequency content, and pitch content. Accordingly, the obtained content features may include fundamental frequency features, text features, and other features describing the audio content.

[0043] For example, after obtaining the first audio corresponding to the first object, the audio waveform signal corresponding to the first audio can be preprocessed, and the feature information obtained after the preprocessing is then input into the content recognition model, which then extracts the audio content and outputs content features corresponding to the first audio. The preprocessing may specifically include sampling rate conversion, pre-emphasis, framing, and windowing, as well as frequency domain conversion, filtering, and other processes.

[0044] In some embodiments, as shown in FIG2 , the network structure of the content recognition model 10 may specifically be a network structure consisting of n fifth convolutional layers 11 and fourth residual layers 12, wherein n is an integer greater than 1, for example, n=3. The fifth convolutional layer 11 may be a two-dimensional convolutional layer, and its function may be to extract useful information from the audio features corresponding to the first audio. The function of the fourth residual layer 12 is mainly to solve the network degradation problem of deep neural networks, because as the depth increases, the accuracy tends to saturate and then rapidly decays, which is not conducive to model training. When the fourth residual layer 12 is forward propagating, the input signal can be directly transmitted from any low layer to the high layer. Since the fourth residual layer 12 contains a natural identity mapping, the fourth residual layer 12 can solve the network degradation problem to a certain extent. In addition, the fourth residual layer 12 may be a network structure consisting of a shortcut module and a residual module, such as the network structure shown in FIG3 .

[0045] S130 , performing timbre extraction on the object information using a timbre recognition model to obtain a timbre feature corresponding to the second object.

[0046] In the embodiment of the present application, the main difficulty in converting any audio into any other audio of any non-specific timbre lies in how to reasonably and effectively extract the timbre characteristics of the non-specific object.

[0047] Here, the timbre characteristics of any non-specific object are extracted primarily through the use of a timbre recognition model. The timbre recognition model can be a model for extracting timbre, or it can be a trained neural network model. The model can be trained independently or in conjunction with a timbre conversion model. Different timbre recognition models with different structures can employ different training methods.

[0048] For example, when the object information is audio information, after obtaining the object information corresponding to the second object, the audio waveform signal corresponding to the audio information can be preprocessed, and the feature information obtained after the preprocessing is input into the timbre recognition model, which then performs timbre extraction and outputs the timbre features corresponding to the audio information. The preprocessing may specifically include sampling rate conversion, pre-emphasis, framing, and windowing, as well as frequency domain conversion, filtering, and other processes.

[0049] In addition, when the object information is image information, the timbre extraction can also be performed in the above manner, and the audio information can be replaced by the image information, which will not be described in detail here.

[0050] S140: Using a timbre conversion model, the content feature and the timbre feature are fused to obtain a second audio with timbre features.

[0051] Here, the timbre conversion model can be a model for feature fusion, or a trained neural network model. The model training method can be independent training or combined training with the timbre recognition model, which is not limited here.

[0052] Exemplarily, the content features and timbre features may be input into a timbre conversion model, which performs feature fusion processing on the content features and timbre features to output a second audio having the timbre features of the second object.

[0053] Furthermore, the timbre conversion model may output the frequency domain features of the second audio obtained after timbre conversion. Based on this, to enable playback of the second audio, the frequency domain features of the second audio may be input into a first vocoder to convert the low-dimensional frequency domain features into waveform features that can be played by an audio player. The first vocoder may be any effective model capable of converting frequency domain features into waveform features, such as a HiFi-GAN model.

[0054] Therefore, by performing timbre conversion on the first audio corresponding to the first object, timbre extraction is performed on the object information corresponding to any non-specific second object, and then the content features extracted from the first audio are fused with the timbre features extracted from the object information of the second object, so that a second audio having the timbre features of any second object can be obtained, thereby realizing the conversion of any audio into any other audio of any non-specific timbre.

[0055] In addition, during the process of extracting content from the first audio, the fundamental frequency information in the first audio may be extracted first, and then content extraction may be performed based on the extracted fundamental frequency features and the first audio features corresponding to the first audio. Based on this, in some embodiments, the above S120 may specifically include:

[0056] Performing frequency domain feature extraction on the first audio to obtain a first audio feature;

[0057] Extracting fundamental frequency information from the first audio feature using a fundamental frequency feature extraction model to obtain a fundamental frequency feature corresponding to the first audio;

[0058] The content recognition model is used to perform content extraction on the first audio feature and the fundamental frequency feature to obtain content features corresponding to the first audio.

[0059] Here, the fundamental frequency is the frequency of the fundamental tone, which is closely related to the pitch. In the embodiment of the present application, during the process of timbre conversion, the effect of timbre conversion can be effectively improved by additionally inputting the fundamental frequency feature.

[0060] Exemplarily, the process of extracting frequency domain features of the first audio may be to perform sampling rate conversion, pre-emphasis, framing and windowing on the audio waveform signal corresponding to the first audio, then perform a short-time Fourier transform operation on the signal of each frame to obtain a short-time amplitude spectrum, and finally input it into a filter group to obtain the frequency domain features corresponding to the first audio, and use the frequency domain features as the extracted first audio features.

[0061] In addition, the process of extracting fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model may include inputting the first audio feature into the fundamental frequency feature extraction model, extracting fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model, and outputting fundamental frequency features corresponding to the first audio. The process of extracting content from the first audio feature and fundamental frequency feature using the content recognition model may include inputting the first audio feature and fundamental frequency feature into the content recognition model, extracting content from the first audio feature and fundamental frequency feature using the content recognition model, and outputting content features corresponding to the first audio.

[0062] It should be noted that, in other implementations, a content recognition model can also be used to extract content from the first audio feature to obtain the content feature, and then a timbre conversion model can be used to perform feature fusion processing on the content feature corresponding to the first audio, the fundamental frequency feature corresponding to the first audio, and the timbre feature extracted from the object information to obtain the second audio after timbre conversion.

[0063] In this way, by extracting the fundamental frequency feature from the first audio feature and additionally inputting the fundamental frequency feature when extracting the first audio content, the converted second audio can have the pitch of the first audio, thereby effectively improving the effect of timbre conversion.

[0064] In addition, in some embodiments, as shown in FIG4 , the fundamental frequency feature extraction model may specifically include a step-by-step optimized recurrent network 41 , a third convolutional layer 42 , and a second residual layer 43 .

[0065] Based on this, the step of extracting fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model to obtain the fundamental frequency feature corresponding to the first audio may specifically include:

[0066] Inputting the first audio feature into the stepwise optimization recurrent network 41, performing linear transformation and feature mapping on the first audio feature using the stepwise optimization recurrent network 41, and outputting a sixth feature;

[0067] Input the sixth feature to the third convolutional layer 42, use the third convolutional layer 42 to extract information from the sixth feature, and output a seventh feature;

[0068] The seventh feature is input to the second residual layer 43, and the fundamental frequency feature corresponding to the first audio is output.

[0069] Here, the role of the gradually optimized recurrent network 41 can be linear transformation and feature mapping. The role of the third convolutional layer 42 can be modeling from abstract representations and extracting useful information. The role of the second residual layer 43 is the same as that of the fourth residual layer 12 in the content recognition model 10, and will not be repeated here. In addition, the second residual layer 43 can also be a network structure composed of a shortcut module and a residual module, such as the network structure shown in Figure 3.

[0070] Exemplarily, the first audio feature can be input into the fundamental frequency feature extraction model by the step-by-step optimized recurrent network 41. After layer-by-layer processing of the step-by-layer optimized recurrent network 41, the third convolutional layer 42 and the second residual layer 43 in the fundamental frequency feature extraction model, the fundamental frequency feature corresponding to the first audio can be output.

[0071] In addition, before using the fundamental frequency feature extraction model, it is necessary to first train the fundamental frequency feature extraction model. Based on this, in some embodiments, before the step of using the fundamental frequency feature extraction model to extract fundamental frequency information from the first audio feature to obtain the fundamental frequency feature corresponding to the first audio, the audio processing method provided in the embodiment of the present application may further include:

[0072] Obtaining audio samples corresponding to the L first sample objects respectively;

[0073] Extracting fundamental frequency information from the audio sample using a vocoder to obtain target fundamental frequency features corresponding to the audio sample;

[0074] Extracting the fundamental frequency information from the audio sample using the initial fundamental frequency feature extraction model to obtain the predicted fundamental frequency feature corresponding to the audio sample;

[0075] Determining a fourth loss function value based on the predicted fundamental frequency feature and the target fundamental frequency feature;

[0076] The model parameters of the initial fundamental frequency feature extraction model are adjusted according to the fourth loss function value, and the fundamental frequency feature extraction model is obtained by training.

[0077] Here, the initial fundamental frequency feature extraction model may be an untrained fundamental frequency feature extraction model, and its model structure is the same as the model structure of the fundamental frequency feature extraction model.

[0078] For example, suppose there are L first sample objects, where L is an integer greater than 1. Each first sample object may correspond to M sample data, i.e., audio samples. Then, the audio features of each audio sample after feature extraction can be expressed as a ij Indicates that, where 1≤i≤L, 1≤j≤M, a ij The feature vector obtained after feature extraction of the j-th audio sample of the i-th first sample object, that is, the audio feature.

[0079] will a ij Input into the initial fundamental frequency feature extraction model, and the predicted fundamental frequency feature Predicted (F0 ij )=f(a ij ; w1), where w1 is the parameter of each layer in the initial fundamental frequency feature extraction model, that is, the model parameter.

[0080] How to extract the true fundamental frequency features from the audio sample when training the fundamental frequency feature extraction model is the key to improving the training effect. Different from the general fundamental frequency extraction algorithm (for example, using traditional signal methods such as DIO to extract fundamental frequency features), the embodiment of the present application uses a vocoder to extract the true fundamental frequency feature F0 real The vocoder can be any vocoder based on source-filter theory (such as GlottDNN). By directly inputting the audio sample into this type of vocoder, the true fundamental frequency feature F0 of the audio sample can be directly derived. real .

[0081] In addition, it should be noted that, although the above-mentioned vocoder can be used as a tool to extract the true fundamental frequency characteristics of the audio sample, this type of vocoder cannot be used directly to extract the fundamental frequency information in the first audio in the above-mentioned scheme. This is because the essential function of the vocoder is to convert the frequency domain characteristics into an audio waveform signal, and predicting the fundamental frequency information is not its main function, which will bring additional unnecessary calculations and parameters in the application deployment stage. In addition, the fundamental frequency feature extraction model trained separately can add data enhancement and other methods to improve the robustness of the model to high-noise input extraction, and can also arbitrarily transform the input features (for example, extracting fundamental frequency characteristics from frequency domain characteristics), while the vocoder can generally only extract fundamental frequency characteristics from the waveform time domain characteristics, and cannot use data enhancement, and has poor flexibility. In addition, because the fundamental frequency feature itself is a predicted feature and does not have a completely correct and true value, the embodiment of the present application uses a vocoder to extract the true fundamental frequency feature F0 of each audio sample. real As the model learning goal, we learn the mapping from frequency domain features to fundamental frequency features. Experience shows that the fundamental frequency features predicted by the trained fundamental frequency feature extraction model are usually better than F0. real More accurate and robust.

[0082] After obtaining the predicted fundamental frequency features and the true fundamental frequency features corresponding to each audio sample, the fourth loss function value can be calculated according to the following formula (1). Loss = BCEWithLogits(F0 real ,F0 predicted ) (1)

[0083] Among them, F0 real The predicted fundamental frequency feature output by the initial fundamental frequency feature extraction model, F0predicted To utilize the true fundamental frequency characteristics of the vocoder output. The above formula (1) is a loss function that mixes sigmoid and BCELoss.

[0084] In addition, in the process of timbre extraction of object information, in order to improve the accuracy of timbre extraction, the embodiment of the present application provides two timbre recognition models, one of which is a timbre recognition model that needs to be trained separately, and the other is a timbre recognition model that is jointly trained with a timbre conversion model.

[0085] For a timbre recognition model that requires separate training, in some embodiments, as shown in FIG2 , the timbre recognition model 31 may specifically include a first convolutional layer 311 , a first linear layer 312 , and a first activation function layer 313 .

[0086] Based on this, the above S130 may specifically include:

[0087] Extract features from object information to obtain object features;

[0088] Input the object feature to the first convolutional layer 311, use the first convolutional layer 311 to extract information from the object feature, and output a first feature;

[0089] Input the first feature to the first linear layer 312, use the first linear layer 312 to perform a linear transformation on the first feature, and output a second feature;

[0090] Input the second feature to the first activation function layer 313, use the first activation function layer 313 to add a nonlinear factor to the second feature, and output a third feature;

[0091] Regularization is performed on the third feature to obtain a timbre feature corresponding to the second object.

[0092] Here, when the object information is audio information, feature extraction can be performed on the audio information to obtain audio features; when the object information is image information, feature extraction can be performed on the image information to obtain image features.

[0093] Taking audio information as an example of object information, the specific process of feature extraction of audio information can be to perform sampling rate conversion, pre-emphasis, framing and windowing on the audio waveform signal corresponding to the audio information, and then perform a short-time Fourier transform operation on the signal of each frame to obtain a short-time amplitude spectrum, and finally input it into the filter group to obtain the frequency domain features corresponding to the audio information, and use the frequency domain features as the extracted audio features.

[0094] In addition, the number of first convolutional layers 311 can be one or more, for example, two convolutional layers. The first convolutional layer 311 is used to extract useful information, the first linear layer 312 is used for linear transformation, and the first activation function layer 313 is used to add nonlinear factors to the model to enhance its expressiveness.

[0095] For example, after the object features are processed layer by layer through the first convolutional layer 311, the first linear layer 312, and the first activation function layer 313, a third feature output by the timbre recognition model can be obtained. Based on this third feature, the third feature can be regularized according to the following L2 regularization formula (2), and ultimately a timbre feature corresponding to the second object is obtained.

[0096] Among them, V is the timbre feature, and w2 is the parameter of the convolution layer, linear layer and activation function layer in the timbre conversion model.

[0097] Based on this, when the above-mentioned timbre recognition model is trained separately, in order to cluster the features of the same timbre as much as possible to improve the accuracy of timbre extraction of the timbre recognition model, in some embodiments, before the above-mentioned S130, the audio processing method provided in the embodiment of the present application may further include:

[0098] Obtain object information samples corresponding to N second sample objects, respectively, where one second sample object corresponds to M object information samples, and both N and M are integers greater than 1;

[0099] Perform feature extraction on the object information sample to obtain the sample object features;

[0100] Extracting timbre information from the sample object features using the initial timbre recognition model to obtain M predicted timbre features corresponding to each of the N second sample objects;

[0101] Determining a central feature corresponding to each second sample object based on the M predicted timbre features;

[0102] Determining a first loss function value according to a similarity between each of the M predicted timbre features and the N central features corresponding to the N second sample objects;

[0103] The model parameters of the initial timbre recognition model are adjusted according to the first loss function value, and the timbre recognition model is obtained through training.

[0104] Here, when the object information is an image, the object information samples used in model training may be image samples; and when the object information is audio, the object information samples used in model training may be audio samples.

[0105] It should be noted that, since the timbre recognition model in the embodiment of the present application can extract timbre from object information of any object, the second object when using the timbre recognition model may not be the sample object used when training the timbre recognition model.

[0106] In addition, the initial timbre recognition model may be an untrained timbre recognition model, and its model structure is the same as that of the timbre recognition model.

[0107] For example, in order to obtain as rich object features as possible, the timbre recognition model requires a large number of different second sample objects for training. The second sample objects and the aforementioned first sample objects can be objects separated from a training set or can be independently set sample objects, which is not limited here.

[0108] Based on this, in the training phase, assuming that there are N second sample objects, each second sample object can collect M sample data, that is, object information samples, then the sample object features of each object information sample after feature extraction can be expressed as a ij Indicates that, where 1≤i≤N, 1≤j≤M, a ij The feature vector obtained after feature extraction of the j-th object information sample of the i-th second sample object is represented, that is, the sample object feature.

[0109] will a ij Input to each convolution layer in the initial timbre recognition model, and then through the linear transformation of the linear layer and the activation function layer, the feature f(a) output by the initial timbre recognition model can be obtained. ij ; w3), where w3 can represent the parameters of the convolution layer, linear layer and activation function layer in the initial timbre recognition model, that is, the model parameters. According to the following L2 regularization formula (3), the feature f(a ij ; w3) perform regularization processing to obtain a ij Embedded code V ij , that is, the predicted timbre feature corresponding to the j-th object information sample of the i-th second sample object.

[0110] Among them, f(a ij ; w3) is a ij The output feature after inputting into the initial timbre recognition model, V ij is the predicted timbre feature corresponding to the j-th object information sample of the i-th second sample object.

[0111] Based on this, according to the M predicted timbre features corresponding to each second sample object, the central feature corresponding to each second sample object is determined. Specifically, the central feature corresponding to each second sample object can be calculated according to the following formula (4).

[0112] Among them, A k is the central feature of the M object information samples corresponding to the kth second sample object, V kj is the predicted timbre feature corresponding to the j-th object information sample of the k-th second sample object.

[0113] In this way, each predicted timbre feature V can be calculated according to the following formula (5): ij The similarity between the N central features corresponding to the N second sample objects. ij,k =cos(V ij ,A k )×x+b (5)

[0114] Among them, S ij,k The predicted timbre feature V corresponding to the jth object information sample of the i-th second sample object is represented by ij , the central feature A corresponding to the k-th second sample object k In addition, x and b are both learnable parameters, and x>0.

[0115] During the model training process, in order to make all the predicted timbre features V from the same second sample object ij The distances in space are as close as possible, and the predicted timbre features V between different second sample objects are ij The distance in space is as far as possible, and the following formula (6) can be used to calculate the first loss function value.

[0116] Among them, 1≤k≤N, Loss(V ij ) is the first loss function value corresponding to the j-th object information sample of the i-th second sample object, S ij,i is the predicted timbre feature V corresponding to the jth object information sample of the i-th second sample object ij , the central feature A corresponding to the i-th second sample object i The similarity between them.

[0117] The above formula (6) can "compress" a K-dimensional vector z containing any real number into another K-dimensional real vector, so that each element is within the range of (0,1). This formula (6) combined with a neural network has multi-classification capabilities, which restricts the first loss function value to 1 when and only when i = k, otherwise the first loss function value is 0. In this way, the predicted timbre features corresponding to each object information sample belonging to the same second sample object can be close to the central feature, while the predicted timbre features corresponding to object information samples that do not belong to a second sample object can be far away from the central feature of the second sample object.

[0118] According to the first loss function value corresponding to each object information sample obtained above, the model parameters in the initial timbre recognition model are adjusted until the model converges, thereby completing the training process of the initial timbre recognition model and obtaining the trained timbre recognition model.

[0119] In this way, the timbre recognition model trained by the above training method can place the timbre features extracted from the object information of the same object closer in the high-dimensional space, while the timbre features extracted from the object information of different objects are farther apart in the high-dimensional space, thereby improving the accuracy of timbre extraction of the timbre recognition model.

[0120] In addition, for a timbre recognition model that needs to be jointly trained with a timbre conversion model, in other embodiments, as shown in FIG2 , the timbre recognition model 32 may specifically include a second convolutional layer 321 , a first residual layer 322 , and a second linear layer 323 .

[0121] Based on this, the above S130 may specifically include:

[0122] Extract features from object information to obtain object features;

[0123] Input the object feature to the second convolutional layer 321, use the second convolutional layer 321 to extract information from the object feature, and output a fourth feature;

[0124] The object feature is input to the first residual layer 322, and the fifth feature is obtained as the output;

[0125] The fifth feature is input to the second linear layer 323 , and the second linear layer 323 is used to perform a linear transformation on the fifth feature to obtain a timbre feature corresponding to the second object.

[0126] Here, the method of extracting features from object information is the same as the aforementioned method of feature extraction, which will not be repeated here. In addition, the second convolutional layer 321 can be a two-dimensional convolutional layer, and the function of the first residual layer 322 is the same as that of the fourth residual layer 12 in the content recognition model 10, and can also be a network structure composed of a shortcut module and a residual module, such as the network structure shown in Figure 3.

[0127] Exemplarily, after the object features are processed layer by layer by the second convolutional layer 321 , the first residual layer 322 , and the second linear layer 323 , a timbre feature corresponding to the second object can be obtained.

[0128] In addition, it should be noted that the network structure of the timbre recognition model is not limited to the above two structures, and an LSTM (Long short-term memory) network structure may also be used, which is not limited here.

[0129] The following is an introduction to the timbre conversion model.

[0130] In some embodiments, as shown in FIG. 2 , the timbre conversion model 20 may specifically include a third linear layer 21 , a fourth convolutional layer 22 , a third residual layer 23 , and a fourth linear layer 24 .

[0131] Based on this, the above S140 may specifically include:

[0132] Input the timbre feature into the third linear layer 21, and use the third linear layer 21 to perform affine transformation on the timbre feature to obtain affine parameters;

[0133] The content feature and the affine parameter are input into the fourth convolution layer 22, and the fourth convolution layer 22 is used to extract information from the content feature according to the affine parameter to obtain the eighth feature;

[0134] Input the eighth feature into the third residual layer 23 to obtain the ninth feature;

[0135] The ninth feature is input to the fourth linear layer 24, and the fourth linear layer 24 is used to perform linear transformation on the ninth feature to obtain a second audio with timbre characteristics.

[0136] Here, the third linear layer 21 can function as an affine transformation. The fourth linear layer 24 can function as a linear transformation. The fourth convolutional layer 22 can be a one-dimensional convolutional layer, which can be used to extract useful information. The third residual layer 23 functions similarly to the fourth residual layer 12 in the content recognition model 10 and will not be further described here. Alternatively, the third residual layer 23 can be a network structure composed of a shortcut module and a residual module, such as the network structure shown in FIG3 .

[0137] For example, the timbre features of the second object can be input into the third linear layer 21, where, after affine transformation, the affine parameter γ can be obtained. Furthermore, the content features of the first object are input into a one-dimensional convolutional layer, namely the fourth convolutional layer 22. Here, the kernel of the fourth convolutional layer 22 is a learnable parameter w5 = w4 * γ, where w4 is a model parameter of the content recognition model. In this way, by stripping and fusing feature information, the timbre conversion effect is effectively improved.

[0138] The intermediate features output by the fourth convolutional layer 22 are further input to the third residual layer 23 and the fourth linear layer 24 to output the audio after timbre conversion, that is, the second audio with the timbre features of the second object.

[0139] In this way, through the above structure, the fusion process of content features and timbre features can be realized, thereby achieving timbre conversion.

[0140] In addition, for a timbre recognition model that requires joint training, when jointly training the timbre recognition model and the timbre conversion model, in order to improve the accuracy of the trained timbre recognition model, in some embodiments, before the above S130, the audio processing method provided in the embodiment of the present application may further include:

[0141] Obtain audio samples and sample object labels corresponding to L first sample objects, and object information samples and sample object labels corresponding to N second sample objects, where L is an integer greater than 1, one first sample object corresponds to M audio samples, and one second sample object corresponds to M object information samples;

[0142] Extracting audio content from the audio sample using the initial content recognition model to obtain predicted content features corresponding to the audio sample;

[0143] Using the initial timbre recognition model to extract the timbre of the object information sample, and obtaining the predicted timbre features corresponding to the object information sample;

[0144] The predicted content features and the predicted timbre features are fused using the initial timbre conversion model to obtain predicted audio with the predicted timbre features;

[0145] Using the object classification model to classify the predicted audio, and determine the predicted sample object corresponding to the predicted audio;

[0146] Determining a second loss function value according to the sample object label corresponding to the predicted sample object and the sample object label corresponding to the object information sample;

[0147] The model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model are adjusted according to the target loss function value to obtain the content recognition model, the timbre recognition model and the timbre conversion model through training, wherein the target loss function value includes the second loss function value.

[0148] Here, the initial content recognition model may be an untrained content recognition model, the initial timbre recognition model may be an untrained timbre recognition model, and the initial timbre conversion model may be an untrained timbre conversion model.

[0149] For example, assuming there are L first sample objects and N second sample objects, each first sample object can correspond to the collection of M audio samples, and each second sample object can correspond to the collection of M object information samples, and each of the above audio samples and object information samples is added with a sample object label corresponding to the sample object to which it belongs to mark its source.

[0150] By performing feature extraction on each sample, we can obtain the sample features corresponding to each sample, such as audio features corresponding to audio samples and object features corresponding to object information samples. We then perform fundamental frequency information extraction on the audio features to obtain fundamental frequency features.

[0151] The audio features and fundamental frequency features corresponding to each audio sample are input into the initial content recognition model to output the predicted content features. The object features corresponding to each object information sample are input into the initial timbre recognition model to output the predicted timbre features.

[0152] The predicted content features and the predicted timbre features are input into the initial timbre conversion model, and the predicted audio after timbre conversion can be output.

[0153] The audio features corresponding to the predicted audio are input into the object classification model to determine the sample object to which the predicted audio belongs, i.e., the predicted sample object. The network structure of the object classification model can be, for example, the network structure shown in FIG5 , which can specifically include a fifth residual layer 51, a second activation function layer 52, a sixth convolutional layer 53, a pooling layer 54, a seventh convolutional layer 55, and a fifth linear layer 56. The number of fifth residual layers 51 can be two, and the sixth and seventh convolutional layers can be two-dimensional convolutional layers.

[0154] Through the above object classification model, it can be determined during the training process whether the predicted audio after timbre conversion output by the initial timbre conversion model can be correctly classified as the second sample object with the timbre.

[0155] In some examples, the second loss function value may be calculated according to the following formula (7): Loss = CrossEntropy(Classifier(X′, T)) (7)

[0156] Here, X′ is the audio feature corresponding to the predicted audio obtained by performing timbre conversion on the timbre feature of the second sample object with the sample object label T, which is output by the initial timbre conversion model.

[0157] In this way, the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model can be adjusted through the value of the second loss function, and these models can be trained jointly until the model converges, and finally the content recognition model, the timbre recognition model and the timbre conversion model can be obtained.

[0158] Therefore, through the above-mentioned joint training process, the accuracy of each model including the timbre recognition model can be further improved, thereby improving the model training effect.

[0159] In addition, to further improve the training effect of the timbre conversion model, adversarial training can be performed in conjunction with the discriminant model during the training process. Based on this, in some embodiments, before the steps of adjusting the model parameters of the initial content recognition model, the initial timbre recognition model, and the initial timbre conversion model according to the target loss function value and training the content recognition model, the timbre recognition model, and the timbre conversion model, the audio processing method provided in the embodiment of the present application can also include:

[0160] Use the discriminant model to judge the authenticity of the predicted audio and obtain the discrimination result;

[0161] According to the discrimination result, a third loss function value is generated, and the target loss function value also includes the third loss function value.

[0162] Here, the discriminant model used in the embodiment of the present application can be a universal discriminator in any effective form, which is used to determine whether the predicted audio generated by the initial timbre conversion model is close to the audio of the real sample object.

[0163] For example, the initial timbre conversion model outputs an audio sample of a first sample object (e.g., the sample object label is S) as the source audio and an object information sample of a second sample object (e.g., the sample object label is T) as the timbre conversion target, and obtains the predicted audio X'. X' is input into the discriminant model D, thereby obtaining the adversarial loss function shown in the following formula (8), and then the third loss function value can be calculated using the formula (8). Loss = E[logD(X',S)] + E[log(1-D(X',T))] (8)

[0164] Wherein, S is the sample object label of the source audio sample, and T is the sample object label of the object information sample used to extract timbre features as the timbre conversion target.

[0165] Therefore, by combining the discriminant model for adversarial training, the third loss function value can be used to constrain the model to predict audio that is as close to the real sound as possible, thereby further improving the model training effect.

[0166] In addition, in order to further improve the timbre conversion effect, the emotion degree coefficient of the first audio can also be added during feature fusion. Based on this, in some embodiments, the above S140 can specifically include:

[0167] Obtaining an emotion degree coefficient from the first audio;

[0168] The timbre conversion model is used to fuse the content features and the timbre features according to the emotion degree coefficient to obtain a second audio with timbre features.

[0169] Here, the embodiment of the present application proposes a method for calculating the sentiment coefficient, which is the first time to use the wide-margin ranking function in web page ranking in the field of sentiment estimation.

[0170] For example, the method of obtaining the emotion degree coefficient from the first audio may specifically include: calculating the similarity between the audio features of the current audio (such as happy emotion) and other neutral emotion audio features, so as to quantify the emotion degree of the current audio. For example, the emotion degree coefficient can be calculated by the following formula (9): X 程度系数 =f(X,X 中性 )=ωX t (9)

[0171] Among them, X 程度系数 is the emotion degree coefficient, X is the audio feature of the current audio, X 中性 It is a neutral emotional audio feature.

[0172] Assume that there is a data set T = {t}, and the acoustic features are represented by {X t}. N represents neutral data, and H represents happy data. T is the union of N and H, meaning that the T dataset includes data from both categories N and H.

[0173] To learn X 程度系数 , the following constraints need to be met:

[0174] First, ωX i >ωX j , where i and j belong to set A. To create set A, we can select features i and j from the happy dataset H and the neutral dataset N to form a feature pair {i, j}. Here, we can assume that the happiness coefficient corresponding to feature i in the happy dataset is greater than the happiness coefficients corresponding to each feature in the neutral dataset.

[0175] Second, ωX k =ωX h , where k and h belong to set B, features k and h can be selected from the happy dataset H (or neutral dataset N) to form a feature pair {k, h}.

[0176] With the above constraints, any existing neural network model can be used to obtain the emotion coefficient of the current audio.

[0177] It should be noted that the above constraints are essentially an NP-hard problem, but they can be approximated using the wide-margin ranking function similar to the SVM (Support Vector Machine) used in the search engine's web page ranking mentioned above. This ranking function is an existing formula and will not be described in detail here.

[0178] Based on this, the emotional degree coefficient of the first audio can be obtained through the above method, and then the emotional degree coefficient and the content characteristics corresponding to the first audio and the timbre characteristics of the second object are input into the timbre conversion model, so that the first audio can be converted into a second audio with the emotional color of the first audio and the timbre characteristics of the second object.

[0179] By incorporating the emotion level coefficient of the first audio into the feature fusion process, the emotion of the output audio can be controlled. This can, on the one hand, make the timbre conversion more emotionally rich; on the other hand, controlling the emotion level coefficient can also control the emotion level of the converted second audio. For example, adding 20% ​​emotion level to the original first audio level will be reflected in the converted second audio.

[0180] In summary, the embodiments of this application, through the newly designed content recognition model, timbre recognition model, and timbre conversion model, enrich the user's timbre conversion usage based on the structure of each model. If the user is not satisfied with the target timbre provided by the system, they can choose to upload their own images, audio, etc., or they can upload their own image of the target timbre, and then change their voice to the timbre that the image, audio, etc. may have, thus realizing the conversion of any audio into any other audio with any non-specific timbre.

[0181] In addition, it should be noted that the application scenarios described in the above-mentioned embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. Ordinary technicians in this field can know that with the emergence of new application scenarios, such as singing conversion scenarios and privacy protection scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0182] Based on the same inventive concept, the present application further provides an audio processing device. The audio processing device provided in the embodiment of the present application is described in detail below with reference to FIG6 .

[0183] FIG6 is a structural block diagram of a control device provided in one embodiment of the present application.

[0184] As shown in FIG6 , the audio processing apparatus 600 may include:

[0185] An information acquisition module 601 is configured to acquire a first audio signal corresponding to a first object and object information corresponding to a second object;

[0186] A content extraction module 602 is configured to extract audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio;

[0187] a timbre extraction module 603 for performing timbre extraction on the object information using a timbre recognition model to obtain a timbre feature corresponding to the second object;

[0188] The fusion processing module 604 is used to use a timbre conversion model to fuse the content feature and the timbre feature to obtain a second audio with the timbre feature.

[0189] The audio processing device 600 is described in detail below.

[0190] In some embodiments, the timbre recognition model includes a first convolutional layer, a first linear layer, and a first activation function layer;

[0191] The timbre extraction module 603 may specifically include:

[0192] A first extraction submodule is used to extract features from the object information to obtain object features;

[0193] a first processing submodule, configured to input the object feature into the first convolutional layer, extract information from the object feature using the first convolutional layer, and output a first feature;

[0194] a second processing submodule, configured to input the first feature into the first linear layer, perform a linear transformation on the first feature using the first linear layer, and output a second feature;

[0195] a third processing submodule, configured to input the second feature into the first activation function layer, add a nonlinear factor to the second feature using the first activation function layer, and output a third feature;

[0196] The regularization processing submodule is used to perform regularization processing on the third feature to obtain a timbre feature corresponding to the second object.

[0197] In some embodiments, the audio processing apparatus 600 may further include:

[0198] a first acquisition module, configured to acquire object information samples corresponding to N second sample objects respectively before performing timbre extraction on the object information using a timbre recognition model to obtain timbre features corresponding to the second object, wherein one second sample object corresponds to M object information samples, and N and M are both integers greater than 1;

[0199] A first extraction module is used to extract features from the object information sample to obtain sample object features;

[0200] A second extraction module is configured to extract timbre information from the sample object features using an initial timbre recognition model to obtain M predicted timbre features corresponding to each of the N second sample objects;

[0201] A first determining module, configured to determine a central feature corresponding to each of the second sample objects based on the M predicted timbre features;

[0202] A second determining module is configured to determine a first loss function value based on a similarity between each of the M predicted timbre features and the N central features corresponding to the N second sample objects;

[0203] The first adjustment module is used to adjust the model parameters of the initial timbre recognition model according to the first loss function value to train the timbre recognition model.

[0204] In some embodiments, the timbre recognition model includes a second convolutional layer, a first residual layer, and a second linear layer;

[0205] The timbre extraction module 603 may specifically include:

[0206] A second extraction submodule is used to extract features from the object information to obtain object features;

[0207] a fourth processing submodule, configured to input the object features into the second convolutional layer, extract information from the object features using the second convolutional layer, and output a fourth feature;

[0208] a fifth processing submodule, configured to input the object feature into the first residual layer and output a fifth feature;

[0209] The sixth processing submodule is configured to input the fifth feature into the second linear layer, perform a linear transformation on the fifth feature using the second linear layer, and obtain a timbre feature corresponding to the second object.

[0210] In some embodiments, the audio processing apparatus 600 may further include:

[0211] a second acquisition module, configured to acquire audio samples and sample object labels corresponding to L first sample objects, and object information samples and sample object labels corresponding to N second sample objects, before extracting audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio, where L is an integer greater than 1, one first sample object corresponds to M audio samples, and one second sample object corresponds to M object information samples;

[0212] a third extraction module, configured to extract audio content from the audio sample using an initial content recognition model to obtain predicted content features corresponding to the audio sample;

[0213] a fourth extraction module, configured to perform timbre extraction on the object information sample using an initial timbre recognition model to obtain a predicted timbre feature corresponding to the object information sample;

[0214] a first fusion module, configured to fuse the predicted content features and the predicted timbre features using an initial timbre conversion model to obtain predicted audio with the predicted timbre features;

[0215] A first classification module, configured to classify the predicted audio using an object classification model and determine a predicted sample object corresponding to the predicted audio;

[0216] a third determining module, configured to determine a second loss function value according to a sample object label corresponding to the predicted sample object and a sample object label corresponding to the object information sample;

[0217] The second adjustment module is used to adjust the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model according to the target loss function value, and train the content recognition model, the timbre recognition model and the timbre conversion model, wherein the target loss function value includes the second loss function value.

[0218] In some embodiments, the audio processing apparatus 600 may further include:

[0219] a first discrimination module, configured to, before adjusting model parameters of the initial content recognition model, the initial timbre recognition model, and the initial timbre conversion model according to a target loss function value to obtain the content recognition model, the timbre recognition model, and the timbre conversion model through training, perform authenticity discrimination on the predicted audio using a discrimination model to obtain a discrimination result;

[0220] The first generating module is used to generate a third loss function value according to the discrimination result, and the target loss function value also includes the third loss function value.

[0221] In some embodiments, the content extraction module 602 may specifically include:

[0222] a third extraction submodule, configured to perform frequency domain feature extraction on the first audio to obtain a first audio feature;

[0223] a fourth extraction submodule, configured to extract fundamental frequency information from the first audio feature using a fundamental frequency feature extraction model to obtain a fundamental frequency feature corresponding to the first audio;

[0224] A fifth extraction submodule is configured to perform content extraction on the first audio feature and the fundamental frequency feature using the content recognition model to obtain content features corresponding to the first audio.

[0225] In some embodiments, the fundamental frequency feature extraction model includes a step-by-step optimized recurrent network, a third convolutional layer, and a second residual layer;

[0226] The fourth extraction submodule may specifically include:

[0227] a first processing unit, configured to input the first audio feature into the stepwise optimization recurrent network, perform linear transformation and feature mapping on the first audio feature using the stepwise optimization recurrent network, and output a sixth feature;

[0228] a second processing unit, configured to input the sixth feature into the third convolutional layer, extract information from the sixth feature using the third convolutional layer, and output a seventh feature;

[0229] The third processing unit is configured to input the seventh feature into the second residual layer, and output a fundamental frequency feature corresponding to the first audio.

[0230] In some embodiments, the content extraction module 602 may further include:

[0231] A first acquisition submodule is configured to obtain audio samples corresponding to the L first sample objects respectively before extracting the fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model to obtain the fundamental frequency feature corresponding to the first audio;

[0232] a sixth extraction submodule, configured to extract fundamental frequency information from the audio sample using a vocoder to obtain a target fundamental frequency feature corresponding to the audio sample;

[0233] a seventh extraction submodule, configured to extract fundamental frequency information from the audio sample using an initial fundamental frequency feature extraction model to obtain a predicted fundamental frequency feature corresponding to the audio sample;

[0234] A first determining submodule, configured to determine a fourth loss function value according to the predicted fundamental frequency feature and the target fundamental frequency feature;

[0235] The first adjustment submodule is used to adjust the model parameters of the initial fundamental frequency feature extraction model according to the fourth loss function value, and train to obtain the fundamental frequency feature extraction model.

[0236] In some embodiments, the timbre conversion model includes a third linear layer, a fourth convolutional layer, a third residual layer, and a fourth linear layer;

[0237] The fusion processing module 604 may specifically include:

[0238] A first transformation submodule is configured to input the timbre feature into the third linear layer, and perform an affine transformation on the timbre feature using the third linear layer to obtain an affine parameter;

[0239] an eighth extraction submodule, configured to input the content feature and the affine parameter into the fourth convolutional layer, and use the fourth convolutional layer to extract information from the content feature according to the affine parameter to obtain an eighth feature;

[0240] a seventh processing submodule, configured to input the eighth feature into the third residual layer to obtain a ninth feature;

[0241] An eighth processing submodule is configured to input the ninth feature into the fourth linear layer, and perform a linear transformation on the ninth feature using the fourth linear layer to obtain a second audio having the timbre feature.

[0242] In some embodiments, the fusion processing module 604 may specifically include:

[0243] A second acquisition submodule, configured to acquire an emotion degree coefficient from the first audio;

[0244] The feature fusion submodule is used to use the timbre conversion model to fuse the content feature and the timbre feature according to the emotion degree coefficient to obtain a second audio with the timbre feature.

[0245] Therefore, by performing timbre conversion on the first audio corresponding to the first object, timbre extraction is performed on the object information corresponding to any non-specific second object, and then the content features extracted from the first audio are fused with the timbre features extracted from the object information of the second object, so that a second audio having the timbre features of any second object can be obtained, thereby realizing the conversion of any audio into any other audio of any non-specific timbre.

[0246] The audio processing device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0247] The audio processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0248] The audio processing device provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 1 to 5. To avoid repetition, they are not described here.

[0249] Optionally, as shown in Figure 7, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be run on the processor 701. When the program or instructions are executed by the processor 701, the various steps of the above-mentioned audio processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

[0250] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0251] FIG8 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0252] The electronic device 800 includes but is not limited to components such as a radio frequency unit 801 , a network module 802 , an audio output unit 803 , an input unit 804 , a sensor 805 , a display unit 806 , a user input unit 807 , an interface unit 808 , a memory 809 , and a processor 810 .

[0253] Those skilled in the art will appreciate that the electronic device 800 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 810 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG8 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0254] Among them, the processor 810 is used to obtain the first audio corresponding to the first object and the object information corresponding to the second object; use the content recognition model to extract the audio content of the first audio to obtain the content features corresponding to the first audio; use the timbre recognition model to extract the timbre of the object information to obtain the timbre features corresponding to the second object; use the timbre conversion model to fuse the content features and the timbre features to obtain the second audio with the timbre features.

[0255] Therefore, by performing timbre conversion on the first audio corresponding to the first object, timbre extraction is performed on the object information corresponding to any non-specific second object, and then the content features extracted from the first audio are fused with the timbre features extracted from the object information of the second object, so that a second audio having the timbre features of any second object can be obtained, thereby realizing the conversion of any audio into any other audio of any non-specific timbre.

[0256] Optionally, the processor 810 is also used to perform feature extraction on the object information to obtain object features; input the object features into the first convolution layer, use the first convolution layer to extract information from the object features, and output a first feature; input the first feature into the first linear layer, use the first linear layer to perform a linear transformation on the first feature, and output a second feature; input the second feature into the first activation function layer, use the first activation function layer to add a nonlinear factor to the second feature, and output a third feature; perform regularization processing on the third feature to obtain a timbre feature corresponding to the second object.

[0257] Optionally, the processor 810 is also used to obtain object information samples corresponding to N second sample objects, wherein one second sample object corresponds to M object information samples, and N and M are both integers greater than 1; perform feature extraction on the object information samples to obtain sample object features; use the initial timbre recognition model to extract timbre information from the sample object features to obtain M predicted timbre features corresponding to each second sample object in the N second sample objects; determine the central feature corresponding to each second sample object based on the M predicted timbre features; determine a first loss function value based on the similarity between each predicted timbre feature in the M predicted timbre features and the N central features corresponding to the N second sample objects; adjust the model parameters of the initial timbre recognition model based on the first loss function value, and train to obtain the timbre recognition model.

[0258] Optionally, the processor 810 is also used to perform feature extraction on the object information to obtain object features; input the object features into the second convolutional layer, use the second convolutional layer to extract information on the object features, and output a fourth feature; input the object features into the first residual layer, and output a fifth feature; input the fifth feature into the second linear layer, use the second linear layer to perform a linear transformation on the fifth feature, and obtain a timbre feature corresponding to the second object.

[0259] Optionally, the processor 810 is further configured to obtain audio samples and sample object labels corresponding to L first sample objects, and object information samples and sample object labels corresponding to N second sample objects, wherein L is an integer greater than 1, one first sample object corresponds to M audio samples, and one second sample object corresponds to M object information samples; perform audio content extraction on the audio samples using the initial content recognition model to obtain predicted content features corresponding to the audio samples; perform timbre extraction on the object information samples using the initial timbre recognition model to obtain predicted timbre features corresponding to the object information samples; and perform timbre conversion on the predicted content using the initial timbre conversion model. The features and the predicted timbre features are fused to obtain predicted audio with the predicted timbre features; the predicted audio is classified by using an object classification model to determine the predicted sample object corresponding to the predicted audio; the second loss function value is determined according to the sample object label corresponding to the predicted sample object and the sample object label corresponding to the object information sample; the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model are adjusted according to the target loss function value, and the content recognition model, the timbre recognition model and the timbre conversion model are trained, wherein the target loss function value includes the second loss function value.

[0260] Optionally, the processor 810 is further configured to perform authenticity discrimination on the predicted audio using a discriminant model to obtain a discrimination result; and generate a third loss function value based on the discrimination result, wherein the target loss function value also includes the third loss function value.

[0261] Optionally, the processor 810 is further used to perform frequency domain feature extraction on the first audio to obtain a first audio feature; use a fundamental frequency feature extraction model to extract fundamental frequency information from the first audio feature to obtain a fundamental frequency feature corresponding to the first audio; and use the content recognition model to perform content extraction on the first audio feature and the fundamental frequency feature to obtain a content feature corresponding to the first audio.

[0262] Optionally, the processor 810 is also used to input the first audio feature into the step-by-step optimization recurrent network, use the step-by-step optimization recurrent network to perform linear transformation and feature mapping on the first audio feature, and output a sixth feature; input the sixth feature into the third convolutional layer, use the third convolutional layer to extract information from the sixth feature, and output a seventh feature; input the seventh feature into the second residual layer, and output a fundamental frequency feature corresponding to the first audio.

[0263] Optionally, the processor 810 is further used to obtain audio samples corresponding to L first sample objects respectively; use a vocoder to extract fundamental frequency information from the audio samples to obtain target fundamental frequency features corresponding to the audio samples; use an initial fundamental frequency feature extraction model to extract fundamental frequency information from the audio samples to obtain predicted fundamental frequency features corresponding to the audio samples; determine a fourth loss function value based on the predicted fundamental frequency features and the target fundamental frequency features; adjust the model parameters of the initial fundamental frequency feature extraction model based on the fourth loss function value, and train to obtain the fundamental frequency feature extraction model.

[0264] Optionally, the processor 810 is further used to input the timbre feature into the third linear layer, use the third linear layer to perform an affine transformation on the timbre feature to obtain affine parameters; input the content feature and the affine parameters into the fourth convolutional layer, use the fourth convolutional layer to extract information from the content feature according to the affine parameters to obtain an eighth feature; input the eighth feature into the third residual layer to obtain a ninth feature; input the ninth feature into the fourth linear layer, use the fourth linear layer to perform a linear transformation on the ninth feature to obtain a second audio having the timbre feature.

[0265] Optionally, the processor 810 is further configured to obtain an emotion degree coefficient from the first audio; and utilize the timbre conversion model to fuse the content features and the timbre features according to the emotion degree coefficient to obtain a second audio having the timbre features.

[0266] By incorporating the emotion level coefficient of the first audio into the feature fusion process, the emotion of the output audio can be controlled. This can, on the one hand, make the timbre conversion more emotionally rich; on the other hand, controlling the emotion level coefficient can also control the emotion level of the converted second audio. For example, adding 20% ​​emotion level to the original first audio level will be reflected in the converted second audio.

[0267] In summary, the embodiments of this application, through the newly designed content recognition model, timbre recognition model, and timbre conversion model, enrich the user's timbre conversion usage based on the structure of each model. If the user is not satisfied with the target timbre provided by the system, they can choose to upload their own images, audio, etc., or they can upload their own image of the target timbre, and then change their voice to the timbre that the image, audio, etc. may have, thus realizing the conversion of any audio into any other audio with any non-specific timbre.

[0268] It should be understood that in an embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0269] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0270] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.

[0271] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned audio processing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0272] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0273] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0274] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0275] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned audio processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0276] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0277] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0278] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An audio processing method, comprising: Acquire the first audio corresponding to the first object and the object information corresponding to the second object; Extracting audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio; Using a timbre recognition model to extract timbre from the object information, and obtain timbre features corresponding to the second object; The content feature and the timbre feature are fused using a timbre conversion model to obtain a second audio with the timbre feature.

2. The method according to claim 1, wherein: The timbre recognition model includes a first convolutional layer, a first linear layer and a first activation function layer; The step of extracting the timbre of the object information by using the timbre recognition model to obtain the timbre feature corresponding to the second object includes: Extracting features from the object information to obtain object features; Inputting the object feature into the first convolutional layer, extracting information from the object feature using the first convolutional layer, and outputting a first feature; Inputting the first feature into the first linear layer, performing a linear transformation on the first feature using the first linear layer, and outputting a second feature; Inputting the second feature into the first activation function layer, adding a nonlinear factor to the second feature using the first activation function layer, and outputting a third feature; Regularization is performed on the third feature to obtain a timbre feature corresponding to the second object.

3. The method according to claim 2, wherein: Before extracting the timbre of the object information by using the timbre recognition model to obtain the timbre feature corresponding to the second object, the method further includes: Obtain object information samples corresponding to N second sample objects respectively, wherein one second sample object corresponds to M object information samples, and both N and M are integers greater than 1; Extracting features from the object information sample to obtain sample object features; The initial timbre recognition model is used to extract timbre information from the sample object features to obtain M predicted timbre features corresponding to each second sample object in the N second sample objects; Determining a central feature corresponding to each of the second sample objects according to the M predicted timbre features; Determining a first loss function value according to the similarity between each of the M predicted timbre features and the N central features corresponding to the N second sample objects; The model parameters of the initial timbre recognition model are adjusted according to the first loss function value, and the timbre recognition model is obtained through training.

4. The method according to claim 1, wherein: The timbre recognition model includes a second convolutional layer, a first residual layer, and a second linear layer; The step of extracting the timbre of the object information by using the timbre recognition model to obtain the timbre feature corresponding to the second object includes: Extracting features from the object information to obtain object features; Inputting the object feature into the second convolutional layer, extracting information from the object feature using the second convolutional layer, and outputting a fourth feature; Inputting the object feature into the first residual layer, and outputting a fifth feature; The fifth feature is input into the second linear layer, and the second linear layer is used to perform a linear transformation on the fifth feature to obtain a timbre feature corresponding to the second object.

5. The method according to claim 4, wherein: Before extracting audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio, the method further includes: Obtaining audio samples and sample object labels corresponding to L first sample objects, and object information samples and sample object labels corresponding to N second sample objects, where L is an integer greater than 1, one first sample object corresponds to M audio samples, and one second sample object corresponds to M object information samples; Extracting audio content from the audio sample using an initial content recognition model to obtain predicted content features corresponding to the audio sample; Using an initial timbre recognition model to extract timbre from the object information sample, and obtain a predicted timbre feature corresponding to the object information sample; The predicted content features and the predicted timbre features are converted using an initial timbre conversion model. Fusion processing to obtain predicted audio with the predicted timbre features; Classifying the predicted audio using an object classification model to determine a predicted sample object corresponding to the predicted audio; Determining a second loss function value according to a sample object label corresponding to the predicted sample object and a sample object label corresponding to the object information sample; The model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model are adjusted according to the target loss function value to obtain the content recognition model, the timbre recognition model and the timbre conversion model through training, wherein the target loss function value includes the second loss function value.

6. The method according to claim 5, wherein: Before adjusting the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model according to the target loss function value to obtain the content recognition model, the timbre recognition model and the timbre conversion model through training, the method further includes: Using a discriminant model to discriminate the authenticity of the predicted audio to obtain a discriminant result; A third loss function value is generated according to the discrimination result, and the target loss function value also includes the third loss function value.

7. The method according to claim 1, wherein: The extracting audio content from the first audio by using the content recognition model to obtain content features corresponding to the first audio includes: Performing frequency domain feature extraction on the first audio to obtain a first audio feature; Extracting fundamental frequency information from the first audio feature using a fundamental frequency feature extraction model to obtain a fundamental frequency feature corresponding to the first audio; The content recognition model is used to perform content extraction on the first audio feature and the fundamental frequency feature to obtain content features corresponding to the first audio.

8. The method according to claim 7, wherein: The base frequency feature extraction model includes a step-by-step optimized recurrent network, a third convolutional layer, and a second residual layer; The extracting fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model to obtain the fundamental frequency feature corresponding to the first audio includes: The first audio feature is input into the stepwise optimization cyclic network, and the first audio feature is linearly transformed and feature mapped using the stepwise optimization cyclic network, and the sixth audio feature is output. feature; Inputting the sixth feature into the third convolutional layer, extracting information from the sixth feature using the third convolutional layer, and outputting a seventh feature; The seventh feature is input into the second residual layer, and a fundamental frequency feature corresponding to the first audio is output.

9. The method according to claim 7, wherein: Before extracting fundamental frequency information from the first audio feature using the fundamental frequency feature extraction model to obtain the fundamental frequency feature corresponding to the first audio, the method further includes: Obtaining audio samples corresponding to the L first sample objects respectively; Extracting fundamental frequency information from the audio sample using a vocoder to obtain a target fundamental frequency feature corresponding to the audio sample; Extracting fundamental frequency information from the audio sample using an initial fundamental frequency feature extraction model to obtain a predicted fundamental frequency feature corresponding to the audio sample; Determining a fourth loss function value according to the predicted fundamental frequency feature and the target fundamental frequency feature; The model parameters of the initial fundamental frequency feature extraction model are adjusted according to the fourth loss function value, and the fundamental frequency feature extraction model is obtained by training.

10. The method according to claim 1, wherein: The timbre conversion model includes a third linear layer, a fourth convolutional layer, a third residual layer and a fourth linear layer; The method of fusing the content feature and the timbre feature using a timbre conversion model to obtain a second audio with the timbre feature includes: Inputting the timbre feature into the third linear layer, and performing an affine transformation on the timbre feature using the third linear layer to obtain an affine parameter; Inputting the content feature and the affine parameter into the fourth convolution layer, and using the fourth convolution layer to extract information from the content feature according to the affine parameter to obtain an eighth feature; Inputting the eighth feature into the third residual layer to obtain a ninth feature; The ninth feature is input into the fourth linear layer, and the ninth feature is linearly transformed by using the fourth linear layer to obtain a second audio with the timbre feature.

11. The method according to claim 1, wherein: The method of fusing the content feature and the timbre feature using a timbre conversion model to obtain a second audio with the timbre feature includes: Acquire an emotion degree coefficient from the first audio; The timbre conversion model is used to fuse the content feature and the timbre feature according to the emotion degree coefficient to obtain a second audio with the timbre feature.

12. An audio processing device, comprising: An information acquisition module, used to acquire a first audio corresponding to a first object and object information corresponding to a second object; A content extraction module, configured to extract audio content from the first audio using a content recognition model to obtain content features corresponding to the first audio; A timbre extraction module, used to extract timbre from the object information using a timbre recognition model to obtain a timbre feature corresponding to the second object; The fusion processing module is used to use the timbre conversion model to perform fusion processing on the content feature and the timbre feature to obtain a second audio with the timbre feature.

13. The device according to claim 12, wherein: The timbre recognition model includes a first convolutional layer, a first linear layer and a first activation function layer; The timbre extraction module comprises: A first extraction submodule is used to extract features from the object information to obtain object features; A first processing submodule, configured to input the object feature into the first convolution layer, extract information from the object feature using the first convolution layer, and output a first feature; A second processing submodule, configured to input the first feature into the first linear layer, perform a linear transformation on the first feature using the first linear layer, and output a second feature; A third processing submodule, configured to input the second feature into the first activation function layer, add a nonlinear factor to the second feature using the first activation function layer, and output a third feature; The regularization processing submodule is used to perform regularization processing on the third feature to obtain a timbre feature corresponding to the second object.

14. The apparatus according to claim 13, further comprising: The first acquisition module is used to obtain N second sample objects before using the timbre recognition model to extract the timbre of the object information to obtain the timbre features corresponding to the second object. The corresponding object information samples are respectively, wherein one second sample object corresponds to M object information samples, and N and M are both integers greater than 1; A first extraction module, used to extract features from the object information sample to obtain sample object features; A second extraction module, configured to extract timbre information from the sample object features using an initial timbre recognition model, and obtain M predicted timbre features corresponding to each of the N second sample objects; A first determination module, configured to determine a central feature corresponding to each of the second sample objects according to the M predicted timbre features; A second determination module is used to determine a first loss function value according to the similarity between each of the M predicted timbre features and the N central features corresponding to the N second sample objects; The first adjustment module is used to adjust the model parameters of the initial timbre recognition model according to the first loss function value, and train the timbre recognition model.

15. The device according to claim 12, wherein: The timbre recognition model includes a second convolutional layer, a first residual layer, and a second linear layer; The timbre extraction module comprises: A second extraction submodule is used to extract features from the object information to obtain object features; a fourth processing submodule, configured to input the object feature into the second convolutional layer, extract information from the object feature using the second convolutional layer, and output a fourth feature; a fifth processing submodule, configured to input the object feature into the first residual layer and output a fifth feature; The sixth processing submodule is used to input the fifth feature into the second linear layer, and use the second linear layer to perform a linear transformation on the fifth feature to obtain a timbre feature corresponding to the second object.

16. The apparatus according to claim 15, further comprising: The second acquisition module is used to obtain audio samples and sample object labels corresponding to the L first sample objects, and audio samples and sample object labels corresponding to the N second sample objects, before extracting the audio content of the first audio using the content recognition model to obtain the content features corresponding to the first audio. corresponding object information samples and sample object labels, where L is an integer greater than 1, one first sample object corresponds to M audio samples, and one second sample object corresponds to M object information samples; A third extraction module, configured to extract audio content from the audio sample using an initial content recognition model to obtain a predicted content feature corresponding to the audio sample; A fourth extraction module, configured to perform timbre extraction on the object information sample using an initial timbre recognition model to obtain a predicted timbre feature corresponding to the object information sample; A first fusion module, configured to fuse the predicted content feature and the predicted timbre feature using an initial timbre conversion model to obtain a predicted audio with the predicted timbre feature; A first classification module, used to classify the predicted audio using an object classification model to determine a predicted sample object corresponding to the predicted audio; A third determination module, configured to determine a second loss function value according to a sample object label corresponding to the predicted sample object and a sample object label corresponding to the object information sample; The second adjustment module is used to adjust the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model according to the target loss function value, and train the content recognition model, the timbre recognition model and the timbre conversion model, wherein the target loss function value includes the second loss function value.

17. The apparatus according to claim 16, further comprising: A first discrimination module is used for, before adjusting the model parameters of the initial content recognition model, the initial timbre recognition model and the initial timbre conversion model according to the target loss function value and training the content recognition model, the timbre recognition model and the timbre conversion model, using a discrimination model to discriminate the authenticity of the predicted audio to obtain a discrimination result; The first generating module is used to generate a third loss function value according to the discrimination result, and the target loss function value also includes the third loss function value.

18. The device according to claim 12, wherein: The content extraction module comprises: A third extraction submodule, configured to perform frequency domain feature extraction on the first audio to obtain a first audio feature; A fourth extraction submodule, configured to extract fundamental frequency information from the first audio feature by using a fundamental frequency feature extraction model to obtain a fundamental frequency feature corresponding to the first audio; The fifth extraction submodule is used to use the content recognition model to perform content extraction on the first audio feature and the fundamental frequency feature to obtain content features corresponding to the first audio.

19. The device according to claim 18, wherein: The base frequency feature extraction model includes a step-by-step optimized recurrent network, a third convolutional layer, and a second residual layer; The fourth extraction submodule comprises: A first processing unit, configured to input the first audio feature into the stepwise optimization recurrent network, perform linear transformation and feature mapping on the first audio feature using the stepwise optimization recurrent network, and output a sixth feature; a second processing unit, configured to input the sixth feature into the third convolutional layer, extract information from the sixth feature using the third convolutional layer, and output a seventh feature; The third processing unit is used to input the seventh feature into the second residual layer, and output a fundamental frequency feature corresponding to the first audio.

20. The device according to claim 18, wherein The content extraction module also includes: A first acquisition submodule, configured to acquire audio samples corresponding to L first sample objects respectively before extracting fundamental frequency information from the first audio feature using a fundamental frequency feature extraction model to obtain fundamental frequency features corresponding to the first audio; A sixth extraction submodule, configured to extract fundamental frequency information from the audio sample using a vocoder to obtain a target fundamental frequency feature corresponding to the audio sample; a seventh extraction submodule, configured to extract fundamental frequency information from the audio sample using an initial fundamental frequency feature extraction model to obtain a predicted fundamental frequency feature corresponding to the audio sample; A first determining submodule, configured to determine a fourth loss function value according to the predicted fundamental frequency feature and the target fundamental frequency feature; The first adjustment submodule is used to adjust the model parameters of the initial fundamental frequency feature extraction model according to the fourth loss function value, and train to obtain the fundamental frequency feature extraction model.

21. The device according to claim 12, wherein: The timbre conversion model includes a third linear layer, a fourth convolutional layer, a third residual layer and a fourth linear layer; The fusion processing module includes: A first transformation submodule, configured to input the timbre feature into the third linear layer, and perform an affine transformation on the timbre feature using the third linear layer to obtain an affine parameter; an eighth extraction submodule, configured to input the content feature and the affine parameter into the fourth convolutional layer, and use the fourth convolutional layer to extract information from the content feature according to the affine parameter to obtain an eighth feature; a seventh processing submodule, configured to input the eighth feature into the third residual layer to obtain a ninth feature; The eighth processing submodule is used to input the ninth feature into the fourth linear layer, and use the fourth linear layer to perform a linear transformation on the ninth feature to obtain a second audio with the timbre feature.

22. The device according to claim 12, wherein: The fusion processing module includes: A second acquisition submodule, used to acquire an emotion degree coefficient from the first audio; The feature fusion submodule is used to use the timbre conversion model to fuse the content feature and the timbre feature according to the emotion degree coefficient to obtain a second audio with the timbre feature.

23. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the audio processing method according to any one of claims 1 to 11 are implemented.

24. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the audio processing method according to any one of claims 1 to 11.

25. An electronic device, used to execute the steps of the card reader activation method according to any one of claims 1 to 11.

26. A computer program product, wherein the computer program product is executed by at least one processor to implement the steps of the card reader activation method according to any one of claims 1 to 11.

27. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the card reader activation method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Voice timbre conversion method and related equipment

    CN112037766A

  • Tone conversion method and device, electronic equipment and storage medium

    CN113782052A

  • Microphone-connected live broadcast method and related equipment

    CN113784163A

  • Voice conversion method and device, storage medium and electronic equipment

    CN114023342A

  • Audio processing method and device, equipment and storage medium

    CN116343820A

Cited By

  • Singing feature conversion method, electronic equipment and storage medium

    CN119517054A