Acoustic feature extraction method, device, equipment and storage medium

By performing frame processing and synthesis on audio clips, and extracting pitch, phoneme and phoneme position information for encoding and decoding, the problem of poor acoustic feature extraction in the existing technology is solved and more accurate acoustic feature extraction is achieved.

CN113035228BActive Publication Date: 2024-08-23GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110310466.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-08-23
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

In the existing technology, the effect of extracting acoustic features from audio clips based on deep learning models is not good and cannot accurately and comprehensively reflect the relevant characteristics of the audio.

Method used

By dividing the audio clip into frames, extracting pitch, phoneme and phoneme position information, performing synthesis and encoding and decoding to obtain acoustic features.

Benefits of technology

The accuracy of acoustic feature extraction is improved, and phoneme, pitch and phoneme position information are taken into account, making the final extracted acoustic features more accurate and stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113035228B
    Figure CN113035228B
Patent Text Reader

Abstract

The present application discloses an acoustic feature extraction method, device, equipment and storage medium, and relates to the field of artificial intelligence technology. The method comprises: performing frame processing on a target audio segment to obtain multiple audio frames; extracting the pitch and phoneme corresponding to each audio frame to obtain the pitch sequence information, phoneme sequence information and phoneme position information of the target audio segment; synthesizing the pitch sequence information, phoneme sequence information and phoneme position information to obtain the synthetic attribute information of the target audio segment; encoding and decoding the synthetic attribute information to obtain the acoustic features of the target audio segment. When performing acoustic feature extraction, the present application not only considers basic features such as phonemes and pitches, but also considers the phoneme position information, so that the acoustic features finally extracted are more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to an acoustic feature extraction method, device, equipment and storage medium. Background Art

[0002] Acoustic features refer to physical quantities that represent the acoustic characteristics of speech, and are also a general term for the acoustic performance of various elements of sound, such as the energy concentration area, formant frequency, formant intensity and bandwidth that represent timbre, as well as the duration, fundamental frequency, and average voice power that represent the rhythmic characteristics of speech.

[0003] In the related art, a solution for extracting acoustic features from audio clips based on a deep learning model is provided. However, the acoustic features extracted by the existing solution are not effective and cannot accurately and comprehensively reflect the relevant characteristics of the audio. Summary of the invention

[0004] The embodiment of the present application provides an acoustic feature extraction method, device, equipment and storage medium. The technical solution is as follows:

[0005] According to one aspect of an embodiment of the present application, a method for extracting acoustic features is provided, the method comprising:

[0006] Performing frame processing on the target audio segment to obtain multiple audio frames;

[0007] Extracting the pitch and phoneme corresponding to each of the audio frames, respectively, to obtain pitch sequence information, phoneme sequence information and phoneme position information of the target audio segment; wherein the pitch sequence information includes the pitch corresponding to each of the audio frames, the phoneme sequence information includes the phoneme corresponding to each of the audio frames, and the phoneme position information includes the position code of the phoneme corresponding to each of the audio frames in the target audio segment;

[0008] Performing synthesis processing on the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesis attribute information of the target audio segment;

[0009] The synthesized attribute information is encoded and decoded to obtain the acoustic features of the target audio segment.

[0010] According to one aspect of an embodiment of the present application, a method for training an acoustic feature extraction model is provided, the method comprising:

[0011] Acquire a training sample, wherein the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment;

[0012] Extracting pitch sequence information, phoneme sequence information and phoneme position information of the sample audio segment; wherein the pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, the phoneme sequence information includes the phoneme corresponding to each audio frame, and the phoneme position information includes the position code of the phoneme corresponding to each audio frame in the sample audio segment;

[0013] Performing synthesis processing on the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesis attribute information of the sample audio segment;

[0014] Performing encoding and decoding processing on the synthetic attribute information through the acoustic feature extraction model to obtain predicted acoustic features of the sample audio segment;

[0015] Calculating a loss function value of the acoustic feature extraction model based on the predicted acoustic feature and the target acoustic feature;

[0016] The parameters of the acoustic feature extraction model are adjusted based on the loss function value.

[0017] According to one aspect of an embodiment of the present application, there is provided an acoustic feature extraction device, the device comprising:

[0018] A frame processing module, used for performing frame processing on the target audio segment to obtain multiple audio frames;

[0019] an attribute extraction module, configured to extract the pitch and phoneme corresponding to each of the audio frames, and obtain the pitch sequence information, phoneme sequence information and phoneme position information of the target audio segment; wherein the pitch sequence information includes the pitch corresponding to each of the audio frames, the phoneme sequence information includes the phoneme corresponding to each of the audio frames, and the phoneme position information includes the position code of the phoneme corresponding to each of the audio frames in the target audio segment;

[0020] An attribute synthesis module, used for synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the target audio segment;

[0021] The feature extraction module is used to perform encoding and decoding processing on the synthetic attribute information to obtain the acoustic features of the target audio segment.

[0022] According to one aspect of an embodiment of the present application, a training device for an acoustic feature extraction model is provided, the device comprising:

[0023] A sample acquisition module, used to acquire a training sample, wherein the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment;

[0024] an attribute extraction module, configured to extract pitch sequence information, phoneme sequence information and phoneme position information of the sample audio segment; wherein the pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, the phoneme sequence information includes the phoneme corresponding to each audio frame, and the phoneme position information includes the position code of the phoneme corresponding to each audio frame in the sample audio segment;

[0025] An attribute synthesis module, used for synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the sample audio segment;

[0026] A feature extraction module, configured to perform encoding and decoding processing on the synthetic attribute information through the acoustic feature extraction model to obtain predicted acoustic features of the sample audio segment;

[0027] A loss calculation module, used to calculate the loss function value of the acoustic feature extraction model based on the predicted acoustic feature and the target acoustic feature;

[0028] A parameter adjustment module is used to adjust the parameters of the acoustic feature extraction model based on the loss function value.

[0029] According to one aspect of an embodiment of the present application, a computer device is provided, which includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned acoustic feature extraction method, or the above-mentioned acoustic feature extraction model training method.

[0030] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned acoustic feature extraction method, or the above-mentioned acoustic feature extraction model training method.

[0031] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned acoustic feature extraction method, or the above-mentioned acoustic feature extraction model training method.

[0032] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:

[0033] The acoustic features of the target audio clip are obtained by acquiring the pitch sequence information, phoneme sequence information and phoneme position information of the target audio clip, and then encoding and decoding the synthetic attribute information obtained after synthesis processing based on the above information. When extracting acoustic features, in addition to considering basic features such as phonemes and pitches, the phoneme position information is also considered, so that the acoustic features finally extracted are more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0035] Figure 2 is a flow chart of an acoustic feature extraction method provided by an embodiment of the present application;

[0036] Figure 3 is a flow chart of an acoustic feature extraction method provided by another embodiment of the present application;

[0037] Figure 4 is an architecture diagram of an acoustic feature extraction method provided by an embodiment of the present application;

[0038] Figure 5 is a flow chart of a method for training an acoustic feature extraction model provided in one embodiment of the present application;

[0039] Figure 6 is a block diagram of an acoustic feature extraction device provided by an embodiment of the present application;

[0040] Figure 7 is a block diagram of a training device for an acoustic feature extraction model provided in one embodiment of the present application;

[0041] Figure 8 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0043] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include a model training device 10 and a model using device 20.

[0044] The model training device 10 can be a computer device such as a computer or a server, and is used to train the acoustic feature extraction model. In the embodiment of the present application, the acoustic feature extraction model is a neural network model for extracting acoustic features from an audio clip. The model training device 10 can train the acoustic feature extraction model in a machine learning manner so that it has better acoustic feature extraction performance.

[0045] The trained acoustic feature extraction model can be deployed in the model using device 20 for use. The model using device 20 can be a terminal device such as a mobile phone, a tablet computer, a PC (Personal Computer), a smart TV, a multimedia playback device, or a server. When it is necessary to extract the acoustic features of a target audio segment, the model using device 20 can extract the acoustic features of the target audio segment through the acoustic feature extraction model.

[0046] The acoustic features extracted from the audio clips can be used in a variety of scenarios. For example, in a speech recognition scenario, by extracting acoustic features from the target audio clip and matching the acoustic features with the acoustic features of some preset users, the pronunciation user of the target audio clip can be determined. For another example, in a singing synthesis scenario, by extracting acoustic features from the target audio clip, and then using a vocoder to synthesize the corresponding song singing audio based on the acoustic features, product functions such as virtual singers can be realized. Of course, the above two application scenarios are only exemplary and explanatory, and acoustic features can also be applied in many other scenarios, which is not limited in this application.

[0047] Please refer to Figure 2 , which shows a flow chart of an acoustic feature extraction method provided by an embodiment of the present application. The execution subject of each step of the method can be a terminal device such as a mobile phone, a tablet computer, a PC, or a server. The method can include the following steps (210-240):

[0048] Step 210: perform frame processing on the target audio segment to obtain multiple audio frames.

[0049] The target audio segment may be an audio segment of a speaker saying a sentence or a paragraph, or may be an audio segment of a speaker singing a line of lyrics or a song.

[0050] Optionally, the target audio segment is framed in the time domain, and each audio frame is a set duration (such as 10ms). In one example, assuming that the duration of the target audio segment is 5s, it is framed at 10ms per frame, and 500 audio frames can be obtained.

[0051] Step 220 , extracting the pitch and phoneme corresponding to each audio frame, and obtaining the pitch sequence information, phoneme sequence information and phoneme position information of the target audio segment.

[0052] The pitch sequence information includes the pitch corresponding to each audio frame. Pitch is a basic feature of sound, that is, the height of the sound. The essence of sound is mechanical waves, so the height of the sound is determined by the frequency of the mechanical wave. When the speed of sound is constant, it is also related to the wavelength. If the frequency is high and the wavelength is short, the sound is "high"; conversely, if the frequency is low and the wavelength is long, the sound is "low".

[0053] The phoneme sequence information includes the phonemes corresponding to each audio frame. Phonemes are the smallest speech units divided according to the natural properties of speech. They are analyzed based on the pronunciation actions in the syllable, and one action constitutes one phoneme.

[0054] Continuing with the above example, assume that the target audio clip is divided into 500 audio frames, and extract the pitch and phoneme corresponding to each audio frame. It should be noted that one audio frame corresponds to one pitch and one phoneme. 500 audio frames can obtain 500 pitches, and these 500 pitches are arranged in the order of audio frames to constitute pitch sequence information. Similarly, 500 audio frames can obtain 500 phonemes, and these 500 phonemes are arranged in the order of audio frames to constitute phoneme sequence information. In the embodiment of the present application, the method for extracting pitches and phonemes is not specifically limited.

[0055] The phoneme position information includes the position code of the phonemes corresponding to each audio frame in the target audio segment. The position code is the representation information of the position to realize the numerical expression of the position. For the same phoneme, its acoustic features in different audio frames may also be different and will be affected by contextual information. Therefore, when extracting acoustic features, in addition to considering the phoneme itself (that is, the above-mentioned phoneme sequence information), the present application also considers the phoneme position information, so that the acoustic features finally extracted are more accurate.

[0056] Exemplarily, the phoneme position information is obtained in the following manner:

[0057] 1. For each audio frame, obtain the position information of the audio frame in the same phoneme continuous frame sequence, where the same phoneme continuous frame sequence refers to a sequence formed by multiple audio frames that have the same phoneme as the audio frame and are continuous;

[0058] For example, the first 50 audio frames of the target audio segment correspond to the same phoneme, which is phoneme 1; the 51st to 70th audio frames correspond to the same phoneme, which is phoneme 2. Then for the first audio frame of the target audio segment, its corresponding continuous frame sequence of the same phoneme is the 1st to 50th frames, and the position information of the first audio frame is the position information of the first audio frame in the 1st to 50th frames, such as the 1st frame position in the group of the same phoneme continuous frame sequence of frames 1 to 50. For the fifth audio frame of the target audio segment, its corresponding continuous frame sequence of the same phoneme is also the 1st to 50th frames, and the position information of the fifth audio frame is the position information of the fifth audio frame in the 1st to 50th frames, such as the 5th frame position in the group of the same phoneme continuous frame sequence of frames 1 to 50. For another example, for the 52nd audio frame of the target audio segment, its corresponding continuous frame sequence of the same phoneme is frames 51 to 70, and the position information of the 52nd audio frame is the position information of the 52nd audio frame in frames 51 to 70, such as the second frame position in a group of continuous frame sequence of the same phoneme from frames 51 to 70.

[0059] 2. Based on the position information, generate the position code of the phoneme corresponding to the audio frame;

[0060] After obtaining the position information of the audio frame in the continuous frame sequence of the same phoneme, the position information is numerically encoded to obtain the position code of the phoneme corresponding to the audio frame.

[0061] Optionally, based on the position information and the number of audio frames included in a continuous frame sequence of the same phoneme, a meta-parameter of the position coding is determined; and based on the meta-parameter, a position coding of the phoneme corresponding to the audio frame is generated, where the position coding is a vector including multiple elements.

[0062] For example, the position encoding of the phoneme corresponding to the audio frame is: [f1(x),f2(x),f3(x)]; where,

[0063] f1(x)=x

[0064] f2(x)=0.5-abs(0.5-x)

[0065] f3(x)=1-x

[0066] Wherein, x is a meta-parameter of position coding, which is used to indicate the position information of the audio frame in the same phoneme continuous frame sequence, and abs() indicates taking the absolute value. For example, x=n / N, n indicates the position of the audio frame in the same phoneme continuous frame sequence, and N indicates the number of audio frames contained in the same phoneme continuous frame sequence.

[0067] Continuing with the above example, for the first audio frame of the target audio segment, the meta-parameter x of the position encoding is 1 / 50=0.02, and the position encoding of the phoneme corresponding to the first audio frame is [0.02, 0.02, 0.98]. For the fifth audio frame of the target audio segment, the meta-parameter x of the position encoding is 5 / 50=0.10, and the position encoding of the phoneme corresponding to the fifth audio frame is [0.10, 0.10, 0.90]. For the 52nd audio frame of the target audio segment, the meta-parameter x of the position encoding is 2 / 20=0.10, and the position encoding of the phoneme corresponding to the 52nd audio frame is [0.10, 0.10, 0.90].

[0068] In the above example, the position code of the phoneme corresponding to the audio frame is a 3-dimensional vector. In some other embodiments, the position code may also be a 2-dimensional, 4-dimensional or other dimensional vector, or may also be a one-dimensional value (such as a value between 0 and 1). In practical applications, an appropriate representation method of the position code may be selected through experiments and other means to maximize the effect of acoustic feature extraction, including a balance of efficiency, accuracy and other factors.

[0069] In addition, through experiments, it is found that using continuous values ​​to represent positional encoding can better learn pronunciation (especially the pronunciation of long tones in singing) and make pronunciation more natural, compared with using discrete expressions such as embedding vectors. In addition, using 3D vectors as positional encoding can make feature learning more complete and achieve faster convergence speed than one-dimensional continuous values.

[0070] 3. Merge the position codes of the phonemes corresponding to each audio frame to obtain the phoneme position information.

[0071] After obtaining the position codes of the phonemes corresponding to each audio frame, a simple concatenation and merging process is performed on them to obtain the phoneme position information.

[0072] Step 230 , synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthetic attribute information of the target audio segment.

[0073] The synthesis processing refers to integrating the above-mentioned multiple aspects of information to obtain synthetic attribute information containing the above-mentioned multiple aspects of information.

[0074] In an exemplary embodiment, this step includes the following sub-steps:

[0075] 1. Obtain the embedding vector of the pitch corresponding to each audio frame to obtain a first embedding vector sequence;

[0076] In one example, each pitch in the pitch sequence information is converted into an embedding vector to obtain a first embedding vector sequence, and then the first embedding vector sequence is synthesized with other information.

[0077] Optionally, the pitches corresponding to each audio frame are numerically converted to obtain converted pitch values ​​corresponding to each audio frame; the converted pitch values ​​corresponding to each audio frame are rounded to obtain rounded values ​​corresponding to each audio frame; based on the rounded values ​​corresponding to each audio frame, the embedded vectors of the pitches corresponding to each audio frame are determined; and the embedded vectors of the pitches corresponding to each audio frame are merged to obtain a first embedded vector sequence.

[0078] Optionally, the above-mentioned numerical conversion process can be to convert the original pitch value to the log domain to obtain the converted pitch value. Then, the converted pitch value is rounded, and the rounding process here can be rounding up, rounding down or rounding up, etc., which is not limited in this application. Afterwards, the first embedded vector query table is queried based on the rounded value to obtain the corresponding embedded vector. The first embedded vector query table is a table for providing an embedded vector of the pitch, which includes a correspondence between several groups of numerical values ​​(such as integer values ​​1, 2, 3, etc.) and embedded vectors. For a certain audio frame, assuming that the pitch corresponding to the audio frame is numerically converted and rounded by the above method, the rounded value obtained is 5, then the embedded vector corresponding to 5 is queried from the first embedded vector query table as the embedded vector of the pitch corresponding to the audio frame. By analogy, after obtaining the embedded vectors of the pitch corresponding to each audio frame, they are merged to obtain the first embedded vector sequence.

[0079] Exemplarily, the above conversion of the original pitch value into the log domain may adopt the following formula:

[0080] f0 log =64×log2(x / 80)

[0081] Among them, x represents the pitch corresponding to the audio frame (that is, the original pitch value), f0 log Represents the pitch value after conversion.

[0082] Since the original pitch value usually ranges from 80 to 1100 (unit: Hz), if the corresponding embedded vector is directly obtained based on the original pitch value lookup table, it is necessary to obtain a large number of correspondences between pitch values ​​and embedded vectors in advance to construct a lookup table, and the acoustic features between adjacent pitch values ​​are not very different, so there is no need to map them to different embedded vectors. In an embodiment of the present application, by performing numerical conversion and rounding processing on the original pitch value, and then looking up the table to obtain the corresponding embedded vector, on the one hand, the number of embedded vectors required to be included in the lookup table can be fully reduced, which helps to improve the query efficiency of the embedded vector and reduce storage requirements. On the other hand, adjacent pitch values ​​can be mapped to the same embedded vector, which is more in line with the characteristics of acoustic features and makes the pitch more stable.

[0083] In addition, in the embodiment of the present application, by using the actual pitch value extracted from the audio as the input information for acoustic feature extraction, more fine-grained pitch information can be obtained compared to using musical notes to represent pitch, which helps to improve the stability and sound quality of the acoustic features finally synthesized. In addition, experiments have also verified that using the pitch in the form of an embedded vector as input rather than directly using a continuous value as input can obtain clearer audio.

[0084] 2. Obtain the embedding vector of the phoneme corresponding to each audio frame to obtain a second embedding vector sequence;

[0085] In one example, each phoneme in the phoneme sequence information is converted into an embedding vector to obtain a second embedding vector sequence, and then the second embedding vector sequence is synthesized with other information.

[0086] Optionally, identification information of phonemes corresponding to each audio frame is obtained; based on the identification information of phonemes corresponding to each audio frame, embedding vectors of phonemes corresponding to each audio frame are determined; and the embedding vectors of phonemes corresponding to each audio frame are merged to obtain a second embedding vector sequence.

[0087] After obtaining the identification information of the phoneme, the second embedding vector query table can be queried to obtain the corresponding embedding vector. The second embedding vector query table is a table for providing the embedding vector of the phoneme, which includes the correspondence between several groups of identification information (such as 1, 2, 3 and other numerical values) and the embedding vector. For a certain audio frame, assuming that the identification information of the phoneme corresponding to the audio frame is 7, then the embedding vector corresponding to 7 is queried from the second embedding vector query table as the embedding vector of the phoneme corresponding to the audio frame. Similarly, after obtaining the embedding vectors of the phonemes corresponding to each audio frame, they are merged to obtain a second embedding vector sequence.

[0088] It should be noted that the first embedding vector query table and the second embedding vector query table introduced above are two different tables. The first embedding vector query table is used to provide the embedding vector corresponding to the pitch, and the second embedding vector query table is used to provide the embedding vector corresponding to the phoneme. In addition, this application does not limit the execution order of the above two steps of generating the first embedding vector sequence and the second embedding vector sequence. The two steps can be executed one after the other or simultaneously.

[0089] 3. Perform linear transformation on the phoneme position information to obtain processed phoneme position information;

[0090] Optionally, the phoneme position information is subjected to a linear transformation process to convert the low-dimensional features into high-dimensional features, thereby obtaining the processed phoneme position information. The above linear transformation process can be implemented by one or more fully connected layers, which is not limited in this application.

[0091] 4. Perform synthesis processing on the first embedding vector sequence, the second embedding vector sequence and the processed phoneme position information to obtain synthesized attribute information.

[0092] Finally, the first embedding vector sequence, the second embedding vector sequence and the processed phoneme position information are simply concatenated and synthesized to obtain the synthesized attribute information.

[0093] Optionally, the synthesized attribute information also includes an embedding vector corresponding to the speaker identification of the target audio segment. Taking the target audio segment as a song segment as an example, its speaker identification is the singer identification. In an exemplary embodiment, a third embedding vector query table is constructed, and the third embedding vector query table includes a correspondence between multiple groups of speaker identifications and embedding vectors. The embedding vector corresponding to the speaker identification of the target audio segment can be queried from the third embedding vector query table. Afterwards, the embedding vector corresponding to the speaker identification of the target audio segment, the first embedding vector sequence, the second embedding vector sequence and the processed phoneme position information are synthesized to obtain the synthesized attribute information.

[0094] Optionally, the second embedding vector sequence does not directly participate in the synthesis, but is converted and then synthesized with other information to obtain synthetic attribute information. Optionally, the second embedding vector sequence is converted using a phoneme feature conversion network to obtain a converted second embedding vector sequence; wherein the phoneme feature conversion network is used to remove the speaker information during the conversion process of the second embedding vector sequence. The converted second embedding vector sequence is used to generate synthetic attribute information. The phoneme feature conversion network can be a convolutional neural network. When training the phoneme feature conversion network, GRL (Gradient Reversal Layer) is used to maximize the objective function, so that the phoneme feature conversion network cannot effectively distinguish the information of different speakers, thereby achieving the purpose of removing the speaker information.

[0095] In the above manner, the speaker information in the second embedded vector sequence is removed, and the speaker identifier provides accurate speaker information, so that the final synthesized attribute information includes accurate speaker information, which helps to improve the accuracy of the acoustic features finally obtained.

[0096] It should be noted that in this application, the execution order of the above steps of generating the first embedding vector sequence, generating the second embedding vector sequence, and generating the processed phoneme position information is not limited, and they can be executed in sequence or synchronously. For example, the above steps 1, 2, 3, and 4 can be executed in sequence; the above steps 3, 1, 2, and 4 can also be executed in sequence; 1, 2, and 3 can also be executed synchronously, and step 4 can be executed last; 1 and 2 can also be executed synchronously, then step 3, and finally step 4, and so on. In short, the execution order between the steps can be reasonably set by those skilled in the art based on actual conditions and needs, and this application does not limit this.

[0097] Step 240: perform encoding and decoding processing on the synthesized attribute information to obtain the acoustic features of the target audio segment.

[0098] The encoding and decoding process in this step can be performed by a pre-trained acoustic feature extraction model. The acoustic feature extraction model is a machine learning model for extracting acoustic features, which can be a neural network model of an encoding and decoding structure, such as including an encoding network and a decoding network. The encoding network is used to encode the synthetic attribute information to obtain an encoding feature vector, and then the decoding network is used to decode the encoding feature vector to obtain the acoustic feature.

[0099] Optionally, the acoustic feature may be a mel-spectrogram or may be represented in other forms, which is not limited in this application.

[0100] To summarize, the technical solution provided in the embodiment of the present application obtains the pitch sequence information, phoneme sequence information and phoneme position information of the target audio clip, and then encodes and decodes the synthetic attribute information obtained after synthesis processing based on the above information to obtain the acoustic features of the target audio clip. When extracting acoustic features, in addition to considering basic features such as phonemes and pitches, the phoneme position information is also considered, so that the acoustic features finally extracted are more accurate.

[0101] In addition, the position encoding of phonemes is represented by continuous values, which can better learn pronunciation (especially the pronunciation of long sounds in singing) compared to discrete expressions such as embedded vectors. In addition, using multi-dimensional vectors as position encoding can make feature learning more comprehensive and achieve faster convergence speed than one-dimensional continuous values.

[0102] In addition, by performing numerical conversion and rounding processing on the original pitch value and then looking up the table to obtain the corresponding embedded vector, on the one hand, the number of embedded vectors required to be included in the query table can be fully reduced, which helps to improve the query efficiency of the embedded vector and reduce storage requirements. On the other hand, adjacent pitch values ​​can be mapped to the same embedded vector, which is more in line with the characteristics of acoustic features and makes the pitch more stable.

[0103] In addition, by removing the speaker information in the second embedded vector sequence, the speaker identifier provides accurate speaker information, so that the final synthesized attribute information includes accurate speaker information, which helps to improve the accuracy of the acoustic features finally obtained.

[0104] Next, combine Figure 3 , a method flow of using an acoustic feature extraction model (the model includes an encoding network and a decoding network) to encode and decode the synthetic attribute information of a target audio segment to obtain the acoustic features of the target audio segment is described. Figure 3 As shown, the process may include the following steps (310-340):

[0105] Step 310: Use a coding network to encode the synthetic attribute information to obtain a coding feature vector.

[0106] For the specific process of obtaining the synthesis attribute information of the target audio segment, please refer to the description in the above embodiment, which will not be repeated here.

[0107] Since the synthetic attribute information contains some sequence information, RNN (Recurrent Neural Network) has a good feature extraction capability for sequence information and can learn the context information of sequence information. Therefore, the encoding network can be implemented using RNN.

[0108] In one example, the encoding network includes an LSTM (Long Short-Term Memory) network and a CNN (Convolutional Neural Network). For example, the encoding network can be composed of a 2-layer bidirectional LSTM network and a 3-layer CNN network cascaded in sequence. Since the LSTM network can learn long dependencies compared to ordinary RNNs, and the bidirectional LSTM can effectively learn context information, the bidirectional LSTM network is used to encode the synthetic attribute information, which can fully consider the long-term and short-term context information, so that the acoustic features finally extracted are more coherent.

[0109] Step 320, down-sample the encoded feature vector to obtain a down-sampled encoded feature vector.

[0110] The downsampling process is used to reduce the dimension of the encoded feature vector, thereby reducing the amount of calculation required for subsequent decoding processing and improving decoding efficiency. The downsampling process can be implemented using CNN, which is not limited in this application. It should be noted that in some embodiments, the downsampling process is not necessary, and the encoded feature vector can also be directly sent to the following feature recombination process step, or directly sent to the decoding process step.

[0111] Step 330: Use the attention mechanism to perform feature reorganization processing on the downsampled encoded feature vector to obtain a reorganized encoded feature vector.

[0112] In order to further improve the acoustic feature extraction performance and focus on extracting information from some important features, this application introduces an attention mechanism between the encoding network and the decoding network. By using the attention mechanism, the downsampled encoding feature vector is reorganized to obtain the reorganized encoding feature vector.

[0113] Optionally, an attention mechanism based on GMM (Gaussian Mixed Model) is used to perform feature recombination processing on the downsampled encoded feature vector. When GMM is used to recombine features, the variance and mean of the features need to be calculated. The usual method is to use a neural network to estimate the above variance and mean. In this embodiment, the mean parameter is determined by known time information (such as the timestamp of the audio frame corresponding to the feature), which can not only ensure the stability of acoustic feature synthesis, but also retain the flexibility of the attention mechanism and improve the synthesis quality.

[0114] Step 340: Use a decoding network to decode the reorganized encoded feature vector to obtain the acoustic features of the target audio segment.

[0115] The decoding network also uses the RNN structure, such as the LSTM network. The recursive neural network used to generate acoustic features can fully consider the context information of the sequence information and improve the accuracy of acoustic feature extraction.

[0116] In some embodiments, the acoustic features of the target audio segment obtained by the decoding network are the acoustic features finally extracted. The acoustic features can be post-processed accordingly in combination with the needs of the actual application. For example, in a speech recognition scenario, by extracting acoustic features from the target audio segment and matching the acoustic features with the acoustic features of some preset users, the pronunciation user of the target audio segment can be determined. For another example, in a singing synthesis scenario, by extracting acoustic features from the target audio segment, and then using a vocoder to synthesize the corresponding song singing audio based on the acoustic features, product functions such as virtual singers can be realized.

[0117] In some embodiments, in order to further improve the accuracy of acoustic features, such as Figure 3 As shown, after step 340, the following steps 350 to 360 may also be included:

[0118] Step 350: Use a residual estimation network to perform residual estimation processing on the acoustic features of the target audio segment obtained by the decoding network to obtain residual information.

[0119] Step 360: Modify the acoustic features of the target audio segment based on the residual information to obtain modified acoustic features.

[0120] The residual prediction network can be a pre-trained convolutional neural network, and the residual prediction network is used to determine the residual information between the acoustic features output by the decoding network and the real acoustic features. By correcting the acoustic features output by the decoding network based on the residual information output by the residual prediction network, acoustic features that are closer to the real ones can be obtained. In this application, there is no limit on the number of convolutional layers of the convolutional neural network, such as 5 layers or other numbers, which can be set and adjusted according to actual conditions.

[0121] In one example, the residual information is added to the acoustic features of the target audio segment obtained by the decoding network to obtain the modified acoustic features.

[0122] Combination Figure 4, the acoustic feature extraction method provided by the present application is introduced and explained. After extracting the speaker identification, pitch sequence information, phoneme sequence information and phoneme position information of the audio clip, the speaker identification, pitch sequence information and phoneme sequence information are respectively converted into embedding vectors, the phoneme position information is subjected to linear transformation processing, and then synthesized to obtain synthetic attribute information and input into the encoding network. Optionally, the embedding vector sequence corresponding to the phoneme sequence information will be subjected to the phoneme feature conversion network to remove the speaker information, and then synthesized with other information. The encoding network encodes the synthetic attribute information to obtain an encoding feature vector. The encoding feature vector is then downsampled to obtain a downsampled encoding feature vector. The encoding feature vector is subjected to feature reorganization processing based on the GMM attention mechanism to obtain a reorganized encoding feature vector. Finally, the reorganized encoding feature vector is decoded by a decoding network to obtain the acoustic features of the audio clip. Optionally, in order to further improve the accuracy of the acoustic features, a residual prediction network can be used to perform residual prediction processing on the acoustic features obtained by the decoding network to obtain residual information, and then the acoustic features obtained by the decoding network are corrected based on the residual information to obtain corrected acoustic features, which are used as the final output results. In this application, both the encoding network and the decoding network can be constructed using an LSTM network to fully consider the contextual information of the sequence information and improve the accuracy of acoustic feature extraction.

[0123] In summary, the technical solution provided in the embodiment of the present application obtains the acoustic features of the target audio segment by encoding and decoding the synthetic attribute information of the target audio segment using an acoustic feature extraction model, and provides a solution for extracting acoustic features from audio segments based on a deep learning model. Since the synthetic attribute information includes multiple information such as pitch sequence information, phoneme sequence information, and phoneme position information, the acoustic feature extraction model is used to extract acoustic features based on the synthetic attribute information, so that the acoustic features finally extracted can be more accurate.

[0124] In addition, an attention mechanism is introduced between the encoding network and the decoding network of the acoustic feature extraction model to focus on extracting information from some important features and further improve the extraction performance of acoustic features.

[0125] In addition, by downsampling the encoded feature vector, the amount of calculation required for subsequent decoding processing can be reduced, thereby improving decoding efficiency.

[0126] In addition, the residual information between the acoustic features output by the decoding network and the real acoustic features is determined through the residual prediction network. The acoustic features output by the decoding network are corrected based on the residual information output by the residual prediction network, so that acoustic features that are closer to the real ones can be obtained.

[0127] Below, the training process of the acoustic feature extraction model is introduced and explained through an embodiment. The contents involved in the use of the acoustic feature extraction model and the contents involved in the training process correspond to each other, and the two are interconnected. If one side is not explained in detail, you can refer to the description on the other side.

[0128] Please refer to Figure 5 , which shows a flow chart of a method for training an acoustic feature extraction model provided by an embodiment of the present application. The execution subject of each step of the method can be a computer device such as a computer or a server. The method can include the following steps (510-560):

[0129] Step 510: Obtain a training sample, where the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment.

[0130] The number of training samples is usually multiple. Each training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment. The target acoustic feature is used as label information of the model to guide the training of the model.

[0131] Step 520: extract the pitch sequence information, phoneme sequence information and phoneme position information of the sample audio segment.

[0132] The pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, the phoneme sequence information includes the phoneme corresponding to each audio frame, and the phoneme position information includes the position code of the phoneme corresponding to each audio frame in the sample audio segment.

[0133] Similarly, the sample audio segment can be framed to obtain multiple audio frames, and then the pitch and phoneme corresponding to each audio frame can be extracted to obtain the pitch sequence information, phoneme sequence information and phoneme position information of the sample audio segment.

[0134] Step 530 , synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the sample audio segment.

[0135] The method for generating the synthetic attribute information of the sample audio segment is the same as the method for generating the synthetic attribute information of the target audio segment described above. For details, please refer to the description in the above embodiment, which will not be repeated here.

[0136] Step 540: Encode and decode the synthesized attribute information using an acoustic feature extraction model to obtain predicted acoustic features of the sample audio segment.

[0137] The acoustic feature extraction model can be found above Figure 3 and Figure 4Description of the embodiments. The acoustic feature extraction model may include an encoding network and a decoding network. Optionally, the encoding network is used to encode the synthetic attribute information of the sample audio segment to obtain an encoding feature vector; the encoding feature vector is downsampled to obtain a downsampled encoding feature vector; the attention mechanism is used to perform feature recombination on the downsampled encoding feature vector to obtain a recombined encoding feature vector; the decoding network is used to decode the recombined encoding feature vector to obtain the predicted acoustic features of the sample audio segment. In this embodiment, the acoustic features output by the acoustic feature extraction model are called predicted acoustic features to distinguish them from target acoustic features.

[0138] Step 550, calculating the loss function value of the acoustic feature extraction model based on the predicted acoustic features and the target acoustic features.

[0139] Step 560: Adjust the parameters of the acoustic feature extraction model based on the loss function value.

[0140] The loss function of the model is used to measure the difference between the predicted acoustic features and the target acoustic features. Optionally, the optimization goal is to minimize the loss function value, and the parameters of the acoustic feature extraction model (including the encoding network and the decoding network) are adjusted to minimize the loss function value as much as possible. When the loss function value meets the preset conditions (such as less than a threshold value), the model training is completed.

[0141] Optionally, if the acoustic feature extraction model also includes a residual prediction network, the residual prediction network can be used to perform residual prediction processing on the predicted acoustic features obtained by the decoding network to obtain residual information, and then the predicted acoustic features are corrected based on the residual information to obtain the corrected predicted acoustic features, and then the loss function value of the acoustic feature extraction model is calculated based on the corrected predicted acoustic features and the target acoustic features. In this case, the parameters of the residual prediction network can also be adjusted based on the loss function value. Of course, in some other embodiments, the residual prediction network can also be a pre-trained model, that is, during the training process of the acoustic feature extraction model, it is not necessary to optimize and adjust the parameters of the residual prediction network, and only the parameters of the encoding network and the decoding network need to be optimized and adjusted.

[0142] In summary, the technical solution provided in the embodiment of the present application provides a solution for extracting acoustic features from audio clips based on an acoustic feature extraction model by training an acoustic feature extraction model. Since the synthetic attribute information includes multiple information such as pitch sequence information, phoneme sequence information, and phoneme position information, the acoustic feature extraction model is used to extract acoustic features based on the synthetic attribute information, so that the acoustic features finally extracted can be more accurate.

[0143] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0144] Please refer to Figure 6 , which shows a block diagram of an acoustic feature extraction device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned acoustic feature extraction method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or it can be set in a computer device. The device 600 may include: a frame processing module 610, an attribute extraction module 620, an attribute synthesis module 630 and a feature extraction module 640.

[0145] A frame processing module 610, configured to perform frame processing on the target audio segment to obtain multiple audio frames;

[0146] The attribute extraction module 620 is used to extract the pitch and phoneme corresponding to each of the audio frames, and obtain the pitch sequence information, phoneme sequence information and phoneme position information of the target audio segment; wherein the pitch sequence information includes the pitch corresponding to each of the audio frames, the phoneme sequence information includes the phoneme corresponding to each of the audio frames, and the phoneme position information includes the position code of the phoneme corresponding to each of the audio frames in the target audio segment;

[0147] An attribute synthesis module 630 is used to synthesize the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the target audio segment;

[0148] The feature extraction module 640 is used to perform encoding and decoding processing on the synthetic attribute information to obtain the acoustic features of the target audio segment.

[0149] In an exemplary embodiment, the attribute synthesis module 630 is used to:

[0150] Obtaining an embedding vector of a pitch corresponding to each of the audio frames to obtain a first embedding vector sequence;

[0151] Obtaining an embedding vector of a phoneme corresponding to each of the audio frames to obtain a second embedding vector sequence;

[0152] Performing linear transformation processing on the phoneme position information to obtain processed phoneme position information;

[0153] The first embedding vector sequence, the second embedding vector sequence and the processed phoneme position information are synthesized to obtain the synthesized attribute information.

[0154] In an exemplary embodiment, the attribute synthesis module 630 is used to:

[0155] Performing numerical conversion processing on the pitch corresponding to each of the audio frames to obtain a converted pitch value corresponding to each of the audio frames;

[0156] Performing rounding processing on the converted pitch values ​​corresponding to each of the audio frames to obtain rounded values ​​corresponding to each of the audio frames;

[0157] Determine, based on the rounded values ​​corresponding to the respective audio frames, an embedding vector of the pitch corresponding to the respective audio frames;

[0158] The pitch embedding vectors corresponding to the respective audio frames are merged to obtain the first embedding vector sequence.

[0159] In an exemplary embodiment, the synthesis attribute information further includes an embedding vector corresponding to a speaker identification of the target audio segment;

[0160] The attribute synthesis module 630 is further used to convert the second embedding vector sequence using a phoneme feature conversion network to obtain a converted second embedding vector sequence; wherein the phoneme feature conversion network is used to remove speaker information during the conversion process of the second embedding vector sequence;

[0161] The converted second embedding vector sequence is used to generate the synthetic attribute information.

[0162] In an exemplary embodiment, the attribute extraction module 620 is used to:

[0163] For each of the audio frames, obtaining position information of the audio frame in a sequence of continuous frames with the same phoneme, where the sequence of continuous frames with the same phoneme refers to a sequence formed by a plurality of continuous audio frames that have the same phoneme as the audio frame;

[0164] Based on the position information, generating a position code of the phoneme corresponding to the audio frame;

[0165] The position codes of the phonemes corresponding to the audio frames are combined to obtain the phoneme position information.

[0166] In an exemplary embodiment, the attribute extraction module 620 is used to:

[0167] Determine the meta-parameters of the position encoding based on the position information and the number of audio frames included in the continuous frame sequence of the same phoneme;

[0168] A position code of the phoneme corresponding to the audio frame is generated based on the meta-parameter, where the position code is a vector including multiple elements.

[0169] In an exemplary embodiment, the encoding and decoding process is performed by an acoustic feature extraction model, which includes an encoding network and a decoding network;

[0170] The feature extraction module 640 is used to:

[0171] Using the encoding network to encode the synthetic attribute information to obtain an encoding feature vector;

[0172] Downsampling the encoded feature vector to obtain a downsampled encoded feature vector;

[0173] Using an attention mechanism to perform feature reorganization processing on the downsampled encoded feature vector to obtain a reorganized encoded feature vector;

[0174] The decoding network is used to decode the reorganized encoded feature vector to obtain the acoustic features of the target audio segment.

[0175] In an exemplary embodiment, the feature extraction module 640 is further configured to:

[0176] Using a residual estimation network to perform residual estimation processing on the acoustic features of the target audio segment obtained by the decoding network to obtain residual information;

[0177] The acoustic features of the target audio segment are modified based on the residual information to obtain modified acoustic features.

[0178] To summarize, the technical solution provided in the embodiment of the present application obtains the pitch sequence information, phoneme sequence information and phoneme position information of the target audio clip, and then encodes and decodes the synthetic attribute information obtained after synthesis processing based on the above information to obtain the acoustic features of the target audio clip. When extracting acoustic features, in addition to considering basic features such as phonemes and pitches, the phoneme position information is also considered, so that the acoustic features finally extracted are more accurate.

[0179] Please refer to Figure 7 , which shows a block diagram of a training device for an acoustic feature extraction model provided by an embodiment of the present application. The device has the function of implementing the training method of the above-mentioned acoustic feature extraction model, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or it can be set in a computer device. The device 700 may include: a sample acquisition module 710, an attribute extraction module 720, an attribute synthesis module 730, a feature extraction module 740, a loss calculation module 750 and a parameter adjustment module 760.

[0180] The sample acquisition module 710 is used to acquire a training sample, where the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment.

[0181] The attribute extraction module 720 is used to extract the pitch sequence information, phoneme sequence information and phoneme position information of the sample audio segment; wherein the pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, the phoneme sequence information includes the phonemes corresponding to each of the audio frames, and the phoneme position information includes the position code of the phonemes corresponding to each of the audio frames in the sample audio segment.

[0182] The attribute synthesis module 730 is used to synthesize the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the sample audio segment.

[0183] The feature extraction module 740 is used to perform encoding and decoding processing on the synthetic attribute information through the acoustic feature extraction model to obtain the predicted acoustic features of the sample audio segment.

[0184] The loss calculation module 750 is used to calculate the loss function value of the acoustic feature extraction model based on the predicted acoustic feature and the target acoustic feature.

[0185] The parameter adjustment module 760 is used to adjust the parameters of the acoustic feature extraction model based on the loss function value.

[0186] In summary, the technical solution provided in the embodiment of the present application provides a solution for extracting acoustic features from audio clips based on an acoustic feature extraction model by training an acoustic feature extraction model. Since the synthetic attribute information includes multiple information such as pitch sequence information, phoneme sequence information, and phoneme position information, the acoustic feature extraction model is used to extract acoustic features based on the synthetic attribute information, so that the acoustic features finally extracted can be more accurate.

[0187] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0188] Please refer to Figure 8, which shows a schematic diagram of the structure of a computer device provided in one embodiment of the present application. The computer device can be any electronic device with data calculation, processing and storage functions, such as a mobile phone, a tablet computer, a PC (Personal Computer) or a server. The computer device is used to implement the acoustic feature extraction method or the acoustic feature extraction model training method provided in the above embodiment. Specifically:

[0189] The computer device 800 includes a central processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and an FPGA (Field Programmable Gate Array)) 801, a system memory 804 including a RAM (Random-Access Memory) 802 and a ROM (Read-Only Memory) 803, and a system bus 805 connecting the system memory 804 and the central processing unit 801. The computer device 800 also includes a basic input / output system (Input Output System, I / O system) 806 that helps various devices in the server to transmit information, and a large-capacity storage device 807 for storing an operating system 813, application programs 814 and other program modules 815.

[0190] The basic input / output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse and a keyboard for user inputting information. The display 808 and the input device 809 are connected to the central processing unit 801 via an input / output controller 810 connected to the system bus 805. The basic input / output system 806 may also include an input / output controller 810 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 810 also provides output to a display screen, a printer, or other types of output devices.

[0191] The mass storage device 807 is connected to the central processing unit 801 via a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer readable medium provide non-volatile storage for the computer device 800. That is, the mass storage device 807 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.

[0192] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 804 and mass storage device 807 can be collectively referred to as memory.

[0193] According to the embodiment of the present application, the computer device 800 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 800 can be connected to the network 812 through the network interface unit 811 connected to the system bus 805, or the network interface unit 811 can be used to connect to other types of networks or remote computer systems (not shown).

[0194] The memory also includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above-mentioned acoustic feature extraction method or acoustic feature extraction model training method.

[0195] In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor of a computer device, the computer program implements the above-mentioned acoustic feature extraction method or acoustic feature extraction model training method.

[0196] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0197] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned acoustic feature extraction method or acoustic feature extraction model training method.

[0198] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0199] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An acoustic feature extraction method, characterized in that: The method comprises: Performing frame processing on the target audio segment to obtain multiple audio frames; Extracting the pitch and phoneme corresponding to each of the audio frames, respectively, to obtain pitch sequence information and phoneme sequence information of the target audio segment; wherein the pitch sequence information includes the pitch corresponding to each of the audio frames, and the phoneme sequence information includes the phoneme corresponding to each of the audio frames; For each of the audio frames, obtaining position information of the audio frame in a sequence of continuous frames with the same phoneme, where the sequence of continuous frames with the same phoneme refers to a sequence formed by a plurality of continuous audio frames that have the same phoneme as the audio frame; Dividing the position information by the number of audio frames included in the same phoneme continuous frame sequence to obtain a meta-parameter of the position encoding; Generate a position code of the phoneme corresponding to the audio frame based on the meta-parameter, wherein the position code is represented by a continuous value and is a vector including 3 elements; wherein the first element is the meta-parameter of the position code, the second element is the difference between 0.5 and the absolute value of the difference between the meta-parameter of the position code and 0.5, and the third element is the difference between 1 and the meta-parameter of the position code; Merging the position codes of the phonemes corresponding to the audio frames to obtain phoneme position information, wherein the phoneme position information includes the position codes of the phonemes corresponding to the audio frames in the target audio segment; Performing synthesis processing on the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesis attribute information of the target audio segment; The synthesized attribute information is encoded and decoded to obtain the acoustic features of the target audio segment.

2. The method according to claim 1, characterized in that The synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain the synthesized attribute information of the target audio segment includes: Obtaining an embedding vector of a pitch corresponding to each of the audio frames to obtain a first embedding vector sequence; Obtaining an embedding vector of a phoneme corresponding to each of the audio frames to obtain a second embedding vector sequence; Performing linear transformation processing on the phoneme position information to obtain processed phoneme position information; The first embedding vector sequence, the second embedding vector sequence and the processed phoneme position information are synthesized to obtain the synthesized attribute information.

3. The method according to claim 2, characterized in that The acquiring the embedding vector of the pitch corresponding to each of the audio frames to obtain a first embedding vector sequence includes: Performing numerical conversion processing on the pitch corresponding to each of the audio frames to obtain a converted pitch value corresponding to each of the audio frames; The converted pitch values ​​corresponding to the respective audio frames are rounded to obtain rounded values ​​corresponding to the respective audio frames; Determine, based on the rounded values ​​corresponding to the respective audio frames, an embedding vector of the pitch corresponding to the respective audio frames; The pitch embedding vectors corresponding to the respective audio frames are merged to obtain the first embedding vector sequence.

4. The method according to claim 2, characterized in that: The synthesis attribute information also includes an embedding vector corresponding to the speaker identifier of the target audio segment; After acquiring the embedding vectors of the phonemes corresponding to the respective audio frames to obtain a second embedding vector sequence, the method further includes: The second embedding vector sequence is converted by using a phoneme feature conversion network to obtain a converted second embedding vector sequence; wherein the phoneme feature conversion network is used to remove speaker information during the conversion process of the second embedding vector sequence; The converted second embedding vector sequence is used to generate the synthetic attribute information.

5. The method according to any one of claims 1 to 4, characterized in that: The encoding and decoding process is performed by an acoustic feature extraction model, and the acoustic feature extraction model includes an encoding network and a decoding network; The encoding and decoding of the synthesized attribute information to obtain the acoustic features of the target audio segment includes: Using the encoding network to encode the synthetic attribute information to obtain an encoding feature vector; Downsampling the encoded feature vector to obtain a downsampled encoded feature vector; Using an attention mechanism to perform feature reorganization processing on the downsampled encoded feature vector to obtain a reorganized encoded feature vector; The decoding network is used to decode the reorganized encoded feature vector to obtain the acoustic features of the target audio segment.

6. The method according to claim 5, characterized in that After the decoding network is used to decode the reorganized encoding feature vector to obtain the acoustic features of the target audio segment, the method further includes: Using a residual estimation network to perform residual estimation processing on the acoustic features of the target audio segment obtained by the decoding network to obtain residual information; The acoustic features of the target audio segment are modified based on the residual information to obtain modified acoustic features.

7. A training method for an acoustic feature extraction model, characterized in that: The method comprises: Acquire a training sample, wherein the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment; Extracting pitch sequence information and phoneme sequence information of the sample audio segment; wherein the pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, and the phoneme sequence information includes the phonemes corresponding to each audio frame; For each of the audio frames, obtaining position information of the audio frame in a sequence of continuous frames with the same phoneme, where the sequence of continuous frames with the same phoneme refers to a sequence formed by a plurality of continuous audio frames that have the same phoneme as the audio frame; Dividing the position information by the number of audio frames included in the same phoneme continuous frame sequence to obtain a meta-parameter of the position encoding; Generate a position code of the phoneme corresponding to the audio frame based on the meta-parameter, wherein the position code is represented by a continuous value and is a vector including 3 elements; wherein the first element is the meta-parameter of the position code, the second element is the difference between 0.5 and the absolute value of the difference between the meta-parameter of the position code and 0.5, and the third element is the difference between 1 and the meta-parameter of the position code; Merging the position codes of the phonemes corresponding to the audio frames to obtain phoneme position information, wherein the phoneme position information includes the position codes of the phonemes corresponding to the audio frames in the sample audio segment; Performing synthesis processing on the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesis attribute information of the sample audio segment; Performing encoding and decoding processing on the synthetic attribute information through the acoustic feature extraction model to obtain predicted acoustic features of the sample audio segment; Calculating a loss function value of the acoustic feature extraction model based on the predicted acoustic feature and the target acoustic feature; The parameters of the acoustic feature extraction model are adjusted based on the loss function value.

8. An acoustic feature extraction device, characterized in that: The device comprises: A frame processing module, used for performing frame processing on the target audio segment to obtain multiple audio frames; The attribute extraction module is used to extract the pitch and phoneme corresponding to each of the audio frames, and obtain the pitch sequence information and phoneme sequence information of the target audio segment; wherein the pitch sequence information includes the pitch corresponding to each of the audio frames, and the phoneme sequence information includes the phoneme corresponding to each of the audio frames; for each of the audio frames, obtain the position information of the audio frame in the same phoneme continuous frame sequence, and the same phoneme continuous frame sequence refers to a sequence formed by multiple audio frames that have the same phoneme as the audio frame and are continuous; divide the position information by the number of audio frames contained in the same phoneme continuous frame sequence to obtain the position code ; generating a position code of the phoneme corresponding to the audio frame based on the meta-parameter, wherein the position code is represented by a continuous value and is a vector including three elements; wherein the first element is the meta-parameter of the position code, the second element is the difference between 0.5 and the absolute value of the difference between the meta-parameter of the position code, and the third element is the difference between 1 and the meta-parameter of the position code; merging the position codes of the phonemes corresponding to the respective audio frames to obtain phoneme position information, wherein the phoneme position information includes the position codes of the phonemes corresponding to the respective audio frames in the target audio segment; an attribute synthesis module, configured to synthesize the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the target audio segment; The feature extraction module is used to perform encoding and decoding processing on the synthetic attribute information to obtain the acoustic features of the target audio segment.

9. A training device for an acoustic feature extraction model, characterized in that: The device comprises: A sample acquisition module, used to acquire a training sample, wherein the training sample includes a sample audio segment and a target acoustic feature corresponding to the sample audio segment; The attribute extraction module is used to extract the pitch sequence information and phoneme sequence information of the sample audio segment; wherein the pitch sequence information includes the pitch corresponding to each audio frame in the sample audio segment, and the phoneme sequence information includes the phoneme corresponding to each audio frame; for each of the audio frames, obtain the position information of the audio frame in the same phoneme continuous frame sequence, the same phoneme continuous frame sequence refers to a sequence formed by multiple audio frames that have the same phoneme as the audio frame and are continuous; divide the position information by the number of audio frames included in the same phoneme continuous frame sequence to obtain the meta-parameter of the position encoding; based on Generate a position code of the phoneme corresponding to the audio frame based on the meta-parameter, wherein the position code is represented by a continuous value and is a vector including 3 elements; wherein the first element is the meta-parameter of the position code, the second element is the difference between 0.5 and the absolute value of the difference between the meta-parameter of the position code, and the third element is the difference between 1 and the meta-parameter of the position code; merge the position codes of the phonemes corresponding to the respective audio frames to obtain phoneme position information, wherein the phoneme position information includes the position codes of the phonemes corresponding to the respective audio frames in the sample audio segment; An attribute synthesis module, used for synthesizing the pitch sequence information, the phoneme sequence information and the phoneme position information to obtain synthesized attribute information of the sample audio segment; A feature extraction module, configured to perform encoding and decoding processing on the synthetic attribute information through the acoustic feature extraction model to obtain predicted acoustic features of the sample audio segment; A loss calculation module, used to calculate the loss function value of the acoustic feature extraction model based on the predicted acoustic feature and the target acoustic feature; A parameter adjustment module is used to adjust the parameters of the acoustic feature extraction model based on the loss function value.

10. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the acoustic feature extraction method as described in any one of claims 1 to 6, or to implement the training method of the acoustic feature extraction model as described in claim 7.

11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the acoustic feature extraction method as described in any one of claims 1 to 6, or to implement the training method of the acoustic feature extraction model as described in claim 7.

12. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the acoustic feature extraction method as described in any one of claims 1 to 6, or to implement the training method of the acoustic feature extraction model as described in claim 7.

Citation Information

Patent Citations

  • Audio generation method and device, computer readable storage medium and computing equipment

    CN110992927A

  • Audio generation method and device, computer readable storage medium and computing equipment

    CN111028823A

  • Speech synthesis model training method and device, computer equipment and storage medium

    CN111133506A

  • Voice synthesis method and device, computer readable medium and electronic equipment

    CN111292719A

  • Song synthesis method and device, readable medium and electronic equipment

    CN111583900A