Audio synthesis method, device, equipment and storage medium
By obtaining the characteristics of the audio to be synthesized and the target audio, and combining the acoustic features for audio synthesis, the problems of slow audio synthesis speed and low accuracy in the existing technology are solved, and fast and accurate audio conversion is achieved.
Patent Information
- Application Number
- CN202011270710.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-11-13
AI Technical Summary
Existing audio synthesis technology is slow and inaccurate, and cannot quickly and accurately convert the audio to be synthesized into the audio of the target timbre.
By obtaining the audio to be synthesized and the target audio, its linguistic features and timbre characteristics are determined, combined with the acoustic features for synthesis, and the pre-trained model is used for audio conversion to generate the audio of the target timbre.
It achieves fast and accurate synthesis of audio with target timbre, simplifies the audio synthesis process, and improves the accuracy of audio synthesis for specific timbres.
Smart Images

Figure CN112382274B
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech synthesis, specifically the fields of natural language processing, computer technology, artificial intelligence, and deep learning technology, and in particular to audio synthesis methods, devices, equipment, and storage media. Background Art
[0002] In recent years, due to the rapid development of online education and online learning, audio synthesis technology has received extensive research and attention. Audio synthesis aims to synthesize a user's audio into audio with different accents or different timbres, or both different accents and different timbres. Audio synthesis technology also has great application prospects in entertainment. The existing audio synthesis technology is slow to perform audio synthesis and the audio synthesis results are often inaccurate. Summary of the invention
[0003] The present disclosure provides an audio synthesis method, apparatus, device and storage medium.
[0004] According to one aspect of the present disclosure, there is provided an audio synthesis method, comprising: obtaining audio to be synthesized and target audio; determining corresponding linguistic features based on the audio to be synthesized; determining a target timbre based on the target audio; determining acoustic features based on the audio to be synthesized, the linguistic features and the target timbre; synthesizing the target timbre audio based on the acoustic features, and outputting it.
[0005] According to another aspect of the present disclosure, there is provided an audio synthesis device, comprising: an acquisition unit, configured to acquire audio to be synthesized and target audio; a linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized; a target timbre determination unit, configured to determine a target timbre based on the target audio; an acoustic feature determination unit, configured to determine acoustic features based on the audio to be synthesized, linguistic features and target timbre; and a synthesis unit, configured to synthesize the target timbre audio based on the acoustic features, and output it.
[0006] According to another aspect of the present disclosure, there is provided an audio synthesis electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the audio synthesis method as described above.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to enable a computer to execute the audio synthesis method as described above.
[0008] The technology according to the present application solves the problem of being unable to perform audio synthesis accurately and quickly. By determining the linguistic features of the audio to be synthesized and the target timbre according to the target audio, audio with the target timbre corresponding to the audio to be synthesized can be accurately and quickly synthesized, simplifying the audio synthesis process and improving the accuracy of audio synthesis for a specific timbre.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0011] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0012] Figure 2 is a flow chart of an embodiment of an audio synthesis method according to the present application;
[0013] Figure 3 is a schematic diagram of an application scenario of the audio synthesis method according to the present application;
[0014] Figure 4 is a flowchart of another embodiment of the audio synthesis method according to the present application;
[0015] Figure 5 is a structural schematic diagram of an embodiment of an audio synthesis device according to the present application;
[0016] Figure 6 It is a block diagram of an electronic device used to implement the audio synthesis method of an embodiment of the present application. DETAILED DESCRIPTION
[0017] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] Figure 1An exemplary system architecture 100 is shown to which an embodiment of the audio synthesis method or audio synthesis apparatus of the present application can be applied.
[0020] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0021] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications, such as speech synthesis applications, can be installed on the terminal devices 101, 102, 103.
[0022] The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices, including but not limited to smart phones, tablet computers, car computers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0023] The server 105 may be a server that provides various services, such as a background server that processes the audio to be synthesized and the target audio collected by the terminal devices 101, 102, and 103. The background server may obtain the audio to be synthesized and the target audio, and determine the corresponding linguistic features based on the audio to be synthesized; determine the target timbre based on the target audio; determine the acoustic features based on the audio to be synthesized, the linguistic features, and the target timbre; synthesize the target timbre audio based on the acoustic features, and output it.
[0024] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. No specific limitation is made here.
[0025] It should be noted that the audio synthesis method provided in the embodiment of the present application is generally executed by the server 105. Accordingly, the audio synthesis device is generally disposed in the server 105.
[0026] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0027] Continue to refer Figure 2 , shows a process 200 of an embodiment of an audio synthesis method according to the present application. The audio synthesis method of this embodiment includes the following steps:
[0028] Step 201, obtaining the audio to be synthesized and the target audio.
[0029] In this embodiment, the execution subject of the audio synthesis method (for example Figure 1 The server 105 in the example can obtain the audio to be synthesized locally, or obtain the audio to be synthesized collected by the terminal device through audio recording by wired connection or wireless connection. Specifically, the audio to be synthesized can be any sentence said by the user or a song sung by the user, and the present application does not specifically limit the content of the synthesized audio. The audio to be synthesized can be in MP3 format or MP4 format, and the present application does not limit the storage format of the synthesized audio. The target audio can be the audio corresponding to the timbre to be converted. For example, it can be an audio recording of the voice of classmate Xiao A, or it can be an audio recording of the voice of classmate Xiao B, and the present application does not specifically limit the timbre of the target audio. The target audio can be in MP3 format or MP4 format, and the present application does not limit the storage format of the target audio. It can be understood that the target audio can be the audio of a person, or it can be the audio of other creatures in nature, and the present application does not specifically limit the source of the target audio. The audio to be synthesized can be a dry singing voice. The target audio can also be a dry singing voice. The dry singing voice can be a pure human voice without music without post-processing, and of course it can also be a pure voice without music of other creatures. The audio to be synthesized may be language statement audio / speech audio, or music audio / singing audio.
[0030] Step 202: Determine corresponding linguistic features based on the audio to be synthesized.
[0031] After obtaining the audio to be synthesized, the execution subject can determine the corresponding linguistic features based on the audio to be synthesized. Specifically, the linguistic features can include prosodic features, syntax, discourse structure, information structure, etc. Among them, the prosodic features can be super-sound quality features or super-segmental features, which are a kind of phonological structure of language. Prosodic features can be divided into three main aspects: intonation, time domain distribution and stress, which are realized by super-segmental features. Super-segmental features include pitch, intensity and time characteristics, which are carried by phonemes or phoneme groups. Prosody is a typical feature of human natural language and has many common characteristics across languages, such as: pitch downslope, stress, pauses, etc. are commonly found in different languages. Prosodic features are one of the important forms of language and emotional expression. Specifically, the execution subject can obtain historical synthesized audio and the linguistic features corresponding to the historical synthesized audio. The execution subject can compare the audio to be synthesized with the historical synthesized audio, and determine the linguistic features corresponding to the historical synthesized audio whose similarity with the audio to be synthesized is greater than a preset value as the linguistic features corresponding to the audio to be synthesized. When calculating the similarity between the audio to be synthesized and the historical synthesized audio, the execution entity may compare the audio to be synthesized with each phoneme in the historical synthesized audio. In response to determining that the probability of the two having the same phoneme is greater than a preset value, that is, determining that the similarity between the two is greater than the preset value, the linguistic features corresponding to the historical synthesized audio participating in the similarity comparison may be determined as the linguistic features of the audio to be synthesized.
[0032] Step 203: determine a target timbre based on the target audio.
[0033] After obtaining the target audio, the execution entity can determine the target timbre based on the target audio. The audio contains multiple phonemes. A phoneme is the smallest speech unit divided according to the natural attributes of speech. Analyzing based on the pronunciation actions in a syllable, one action constitutes one phoneme. Phonemes are divided into two major categories: vowels and consonants. For example, in the Chinese syllable "ā", there is only one phoneme, in "ài" there are two phonemes, and in "dài" there are three phonemes, etc. In [ma - mi], the two [m] have the same pronunciation action and are the same phoneme, while [a] and [i] have different pronunciation actions and are different phonemes. Timbre is the characteristic that different sounds always have in terms of waveform. Different object vibrations have different characteristics. Different sound - producing bodies have different timbres because of their different materials and structures. For example, the sounds of a piano, a violin, and a person are different, and the sounds of each person are also different. Therefore, timbre can be understood as the characteristic of sound. Timbre is one of the attributes of sound (i.e., loudness, pitch, timbre), mainly determined by its overtones. The difference between each person's voice and the sounds produced by various musical instruments is caused by different timbres. The vibration of the sound - producing body consists of multiple overtones, including the fundamental tone and overtones. Different overtones determine a specific timbre. In addition to a 'fundamental tone', a sound naturally adds many different 'frequencies' (the number of vibrations of a vibrating object per second) intertwined with overtones, which determines different timbres, enabling people to distinguish different sounds after listening. Specifically, the execution entity can determine the identifiers corresponding to each phoneme in the target audio according to the target audio and a pre - trained classification model, where the pre - trained classification model is used to represent the correspondence between phonemes and identifiers; determine the fundamental tone and overtones in the target audio according to the determined identifiers corresponding to each phoneme; and determine the target timbre according to the determined fundamental tone and overtones in the target audio. Specifically, the execution entity can input the determined fundamental tone and overtones in the target audio into a pre - trained timbre conversion model and output the timbre corresponding to the fundamental tone and overtones, where the pre - trained timbre conversion model is used to represent the correspondence between the fundamental tone, overtones, and timbre. Exemplarily, the timbre conversion model can be a pre - trained Convolutional Neural Networks (CNN).
[0034] Step 204: Determine the acoustic features based on the audio to be synthesized, linguistic features, and target timbre.
[0035] After obtaining the linguistic features, the execution entity can determine the acoustic features based on the audio to be synthesized, linguistic features, and target timbre. Specifically, the execution entity can input the audio to be synthesized, linguistic features, and target timbre into a pre - trained conversion model and output the corresponding acoustic features. The pre - trained conversion model is used to represent the correspondence between audio, linguistic features, timbre, and acoustic features.
[0036] Step 205: synthesize the target timbre audio based on the acoustic features and output it.
[0037] After obtaining the acoustic features, the execution subject can synthesize the target audio based on the acoustic features and output it. Specifically, the execution subject can synthesize the target audio based on the acoustic features and in combination with the corresponding audio to be synthesized and the preset acoustic features, the corresponding relationship between the audio to be synthesized and the audio with the target timbre, and output it through the audio playback device.
[0038] Continue to refer Figure 3 , which shows a schematic diagram of an application scenario of the audio synthesis method according to the present application. Figure 3 In the application scenario of, the server 304 obtains the audio to be synthesized 301 and the target audio 302 through the network 303. The server 304 determines the corresponding linguistic feature 305 based on the audio to be synthesized 301. The server 304 determines the target timbre 306 based on the target audio 302. The server 304 determines the acoustic feature 307 based on the audio to be synthesized 302, the linguistic feature 305 and the target timbre 306. The server 304 synthesizes the target timbre audio 308 based on the acoustic feature 307 and outputs it.
[0039] This embodiment can accurately and quickly synthesize audio with the target timbre corresponding to the audio to be synthesized by determining the linguistic features of the audio to be synthesized and the target timbre according to the target audio, simplify the audio synthesis process, and improve the accuracy of audio synthesis of a specific timbre.
[0040] Continue to refer Figure 4 , which shows a process 400 according to another embodiment of the audio synthesis method of the present application. Figure 4 As shown, the audio synthesis method of this embodiment may include the following steps:
[0041] Step 401, obtaining the audio to be synthesized and the target audio.
[0042] Step 402: Determine corresponding linguistic features based on the audio to be synthesized.
[0043] The principles of step 401 to step 402 are similar to those of step 201 to step 202 and will not be described in detail here.
[0044] Specifically, step 402 can be implemented by step 4021:
[0045] Step 4021, determining the linguistic features corresponding to the audio to be synthesized based on the audio to be synthesized and the pre-trained recognition model.
[0046] In this embodiment, the pre-trained recognition model is used to characterize the correspondence between audio and linguistic features. After obtaining the audio to be synthesized, the execution subject can determine the linguistic features corresponding to the audio to be synthesized according to the audio to be synthesized and the pre-trained recognition model. Specifically, the execution subject can input the audio to be synthesized into the pre-trained recognition model, and output the linguistic features corresponding to the audio to be synthesized. Linguistic features can include prosodic features, syntax, discourse structure, information structure, etc. Among them, prosodic features can be super-sound quality features or super-segmental features, which are a kind of phonological structure of language. Prosodic features can be divided into three main aspects: intonation, time domain distribution and stress, which are realized by super-segmental features. Super-segmental features include pitch, intensity and time characteristics, which are loaded by phonemes or phoneme groups. Prosody is a typical feature of human natural language, with many common features across languages, such as: pitch downslope, stress, pauses, etc. are commonly found in different languages. Prosodic features are one of the important forms of language and emotional expression. For the training of the recognition model, specifically, the initial neural network model may be first obtained; a training sample set is obtained, wherein the training samples in the training sample set include various audios and linguistic features corresponding to each annotated audio; the audios of the training samples in the training sample set are used as inputs of the initial neural network model, and the linguistic features corresponding to the input audios are used as expected outputs to train the initial neural network model; and the trained initial neural network model is determined as the above-mentioned recognition model.
[0047] This embodiment can accurately obtain the linguistic features corresponding to the audio to be synthesized based on the audio to be synthesized and the pre-trained recognition model, thereby improving the quality of the audio synthesized with a specific timbre.
[0048] In some optional implementations of this embodiment, the execution subject may also determine the category identifier corresponding to each phoneme in the audio to be synthesized according to the audio to be synthesized and the pre-trained recognition model, wherein the pre-trained recognition model in this implementation can be used to characterize the correspondence between each phoneme in the audio and the category identifier. The obtained category identifier may be an identifier used to characterize the category of each phoneme in the audio to be synthesized, for example, each phoneme in the audio to be synthesized may be an intonation phoneme, a time domain distribution phoneme, a stress phoneme, a pitch phoneme, a stressed phoneme, and a pause phoneme, for example, which may be represented by identifiers 1, 2, 3, 4, 5, 6, and 7, respectively. Then, the execution subject may determine the acoustic features for synthesizing the audio with the target timbre according to the corresponding relationship between each phoneme corresponding to each identifier obtained in the feature to be identified and the preset identifier, the phoneme and the acoustic feature. The acoustic feature may be a Mel spectrum corresponding to each phoneme required for generating the target timbre. The execution subject may determine the audio with the target timbre corresponding to the audio to be synthesized based on the acoustic feature, and output the audio. This implementation method can enrich the Mel spectrum required for synthesizing the audio of the target timbre and improve the accuracy of synthesizing the audio of the target timbre.
[0049] Step 403: determine a target timbre based on the target audio.
[0050] The principle of step 403 is similar to that of step 203 and will not be described again here.
[0051] Specifically, step 403 can be implemented through steps 4031 to 4032:
[0052] Step 4031, determining the identity vector corresponding to the target audio based on the target audio and the pre-trained identity authentication model.
[0053] Among them, the pre-trained identity authentication model is used to characterize the correspondence between audio and identity vector. After obtaining the target audio, the execution subject can determine the identity vector corresponding to the target audio based on the target audio and the pre-trained identity authentication model. Specifically, the execution subject can input the target audio into the pre-trained identity authentication model and output the identity vector corresponding to the target audio. Specifically, the identity vector corresponding to the output target audio can be a set of multi-dimensional data, which can be used to identify the timbre information of the speaker corresponding to the target audio. For example, the identity vector can be a vector corresponding to a data sequence such as [0.3, 0.3, 0.5, 0.6, ...], and a combination of one or more data in the data sequence can be used to characterize a unique timbre.
[0054] Step 4032, determine the target timbre according to the identity vector.
[0055] After determining the identity vector corresponding to the target audio, the execution subject can determine the target timbre according to the identity vector. Specifically, the execution subject can determine the target timbre corresponding to the identity vector according to the correspondence between the identity vector and the preset identity vector and timbre. As another implementation method, the execution subject can also determine the timbre vector corresponding to the identity vector according to the similarity between the identity vector and each existing timbre vector, and determine the timbre corresponding to the timbre vector as the target timbre. Specifically, in response to determining that the similarity between the identity vector and the corresponding timbre vector is greater than a preset threshold, the execution subject determines the timbre corresponding to the timbre vector corresponding to the identity vector as the target timbre. This application does not limit the preset threshold.
[0056] This embodiment determines the target timbre by the identity vector obtained by the identity authentication model, and is not limited by the training sample set of the timbre conversion model. The audio to be synthesized can be synthesized into any desired timbre, that is, the timbre that is not in the training set of the timbre conversion model can also be freely and accurately converted, thereby increasing the flexibility of the timbre conversion of the audio to be synthesized and improving the user experience. In addition, it should be noted that this application is a conversion of any audio (or dry sound) to any audio (dry sound) of any timbre, not a conversion of text to any audio of any timbre.
[0057] Step 404, determining acoustic features based on the audio to be synthesized, linguistic features and target timbre.
[0058] The principle of step 404 is similar to that of step 204 and will not be described in detail here.
[0059] Specifically, step 404 can be implemented through steps 4041 to 4042:
[0060] Step 4041, determining the text corresponding to the audio to be synthesized based on the audio to be synthesized and the pre-trained recognition model.
[0061] In this embodiment, the pre-trained recognition model can also be used to characterize the correspondence between audio and text. After obtaining the linguistic features, the execution subject can determine the text corresponding to the audio to be synthesized based on the audio to be synthesized and the pre-trained recognition model. Specifically, the execution subject can input the audio to be synthesized into the pre-trained recognition model and output the text corresponding to the audio to be synthesized. The training of the recognition model can also be carried out through the following steps: obtaining an initial neural network model; obtaining a training sample set, wherein the training samples in the training sample set include audio and text corresponding to the annotated audio; using the audio as the input of the initial neural network model, and the text corresponding to the input audio as the expected output, and training the initial neural network model; determining the trained initial neural network model as the recognition model.
[0062] Step 4042, determining the acoustic features corresponding to the audio to be synthesized based on the text, linguistic features, target timbre and the pre-trained conversion model.
[0063] Among them, the pre-trained conversion model is used to characterize the correspondence between text, linguistic features, timbre and acoustic features. After obtaining the text corresponding to the audio to be synthesized, the execution subject can determine the acoustic features corresponding to the audio to be synthesized based on the text, linguistic features, target timbre and the pre-trained conversion model. Specifically, the execution subject can input the text and linguistic features into the pre-trained conversion model to obtain the acoustic features corresponding to the audio to be synthesized. Specifically, the obtained acoustic features can be the Mel spectrum corresponding to each phoneme required for synthesizing the target timbre audio.
[0064] This embodiment obtains the acoustic features required for synthesizing the target timbre audio based on the text, linguistic features, target timbre and pre-trained conversion model, improves the Mel-spectrogram features required for generating the target timbre audio, and improves the accuracy of generating audio with the target timbre.
[0065] Step 405: synthesize the target timbre audio based on the acoustic features and output it.
[0066] The principle of step 405 is similar to that of step 205 and will not be described in detail here.
[0067] Specifically, step 405 can be performed by Figure 4 The following steps not shown in 4051 are implemented:
[0068] Step 4051, synthesizing the target timbre audio according to the acoustic features and the correspondence between the preset acoustic features and the audio.
[0069] After obtaining the acoustic features, the execution subject can synthesize the target timbre audio according to the acoustic features and the preset corresponding relationship between the acoustic features and the audio. Specifically, the execution subject can input the acoustic features into the vocoder, and the vocoder can be provided with the corresponding relationship between the acoustic features and the audio synthesis. The acoustic features are converted by the vocoder to obtain the target timbre audio with the target timbre. The vocoder encodes and encrypts the received acoustic features at its transmitting end to obtain the match with the channel, and transmits them to the receiving end of the vocoder through the information channel, analyzes the received features in the frequency domain, distinguishes the unvoiced and voiced sounds, determines the voiced fundamental frequency, and then selects the unvoiced-voiced judgment, the voiced fundamental frequency and the spectrum envelope as the feature parameters for transmission. Of course, the analysis can also be carried out in the time domain, using its periodicity to extract some acoustic features for linear prediction, and generate audio with the target timbre corresponding to the acoustic features. Specifically, the above-mentioned vocoder may include a channel vocoder, a formant vocoder, a pattern vocoder, a linear prediction vocoder, a correlation vocoder and an orthogonal function vocoder. The present application does not specifically limit the type of the vocoder.
[0070] This embodiment can improve the accuracy of audio synthesis by synthesizing the target timbre audio according to the acoustic features and the correspondence between preset acoustic features and audio, and can conveniently synthesize audio of any timbre required by the user, thereby improving the interest of audio synthesis and improving the user experience.
[0071] In some optional implementations of this embodiment, the audio synthesis method further includes Figure 4 The following model training steps not shown in the figure: obtaining an initial neural network model; obtaining a training sample set, wherein the training samples in the training sample set include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, linguistic features, and timbre; using the text, linguistic features, and timbre of the training samples in the training sample set as inputs to the initial neural network model, and using the acoustic features corresponding to the input text, linguistic features, and timbre as expected outputs to train the initial neural network model; and determining the trained initial neural network model as a conversion model.
[0072] In this embodiment, the execution subject may obtain the initial neural network model through a wired connection or a wireless connection. The initial neural network model may include various artificial neural networks (ANN) including hidden layers. In this embodiment, the execution subject may also obtain the pre-stored initial model locally, or obtain the initial model from an electronic device connected to the communication, which is not limited here.
[0073] In this embodiment, the execution subject can obtain the training sample set in various ways. Specifically, the training samples in the training sample set may include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, linguistic features, and timbre. Among them, the acoustic features corresponding to the text, linguistic features, and timbre annotated in the training samples may be obtained from a local or communication-connected electronic device through a wired or wireless connection, or may be manually annotated in real time, or may be obtained by first automatically annotating and then manually supplementing and modifying to correct the annotation errors. This application does not make specific restrictions on this. The text in the training sample may be obtained from a local or communication-connected electronic device. The linguistic features in the training sample may be extracted in real time, or may be obtained from a local or communication-connected electronic device through a wired or wireless connection. The timbre in the training sample may be extracted in real time, or may be obtained from a local or communication-connected electronic device through a wired or wireless connection.
[0074] In this embodiment, it can be understood that the target timbre obtained based on the target audio and the pre-trained identity authentication model may not be in the training sample set of the above-mentioned initial neural network model. In this way, the conversion model obtained after training may not be able to synthesize any timbre. This requires extracting the target timbre in the acquired target audio through the identity authentication model, and then inputting the target timbre into the conversion model obtained after training, so that any timbre that is not in the training sample set of the initial neural network model can be synthesized, and audio with any timbre can be synthesized conveniently and accurately. In this embodiment, the target timbre is not included in the training sample set used to train the conversion model.
[0075] This embodiment obtains a training sample set to train the initial neural network model, and can obtain a conversion model that is capable of generating corresponding acoustic features based on text and linguistic features. By using the trained conversion model, it is possible to achieve the conversion of any singing audio to singing audio with any target timbre, and can improve the quality of the synthesized audio with the target timbre, enhance the fun of audio synthesis, and enhance the user experience.
[0076] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio, and the target timbre audio includes singing audio with a target timbre corresponding to the singing audio.
[0077] Specifically, the conversion of singing can be achieved based on this implementation. When the execution subject converts the singing with the target timbre, the first audio to be synthesized obtained can be the singing audio, for example, it can be a song sung by any person: "Fifty-six nationalities, fifty-six flowers, fifty-six brothers and sisters are one family". Then, the execution subject determines the corresponding linguistic features based on the singing audio; determines the target timbre based on the target audio; determines the acoustic features based on the singing audio, linguistic features and target timbre; finally, the target timbre audio synthesized based on the determined acoustic features can be the singing audio with the target timbre corresponding to the singing audio ("Fifty-six nationalities, fifty-six flowers, fifty-six brothers and sisters are one family"). The target timbre can be the timbre of any star, and this application does not specifically limit the target timbre.
[0078] This implementation method realizes the conversion from singing of any speaker to singing of any target timbre, enriches the form of audio synthesis, enhances the fun, and improves the user experience.
[0079] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio in a first language, and the target timbre audio includes singing audio in a second language with a target timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0080] Specifically, based on this implementation, any speaker can sing multiple languages with target timbre. When the execution subject performs the singing conversion between the language and the target timbre, the first audio to be synthesized can be the singing audio of the first language, and the first language can be any language, for example, Chinese, English, French, etc. Assuming that the first language is Chinese, the singing audio of the first language can be a Chinese song sung by any person: "Fifty-six ethnic groups, fifty-six flowers, fifty-six brothers and sisters are one family". Then, the execution subject can determine the corresponding singing audio of the second language based on the singing audio of the first language and the pre-installed translation software; the execution subject can determine the corresponding linguistic features according to the singing audio of the second language; determine the target timbre based on the target audio; determine the acoustic features based on the singing audio, linguistic features and target timbre of the second language; finally, the target timbre audio synthesized based on the determined acoustic features can be the singing audio of the second language with the target timbre corresponding to the Chinese singing audio ("Fifty-six ethnic groups, fifty-six flowers, fifty-six brothers and sisters are one family"). The target timbre can be the timbre of any star or any animal, and the present application does not specifically limit the target timbre. The second language can be a user-specified language different from the first language, or it can be the same language as the first language. For example, when the first language is Chinese, the second language can be Chinese, or it can be English or French, etc., and the present application does not specifically limit the types of the first language and the second language.
[0081] Of course, it is understandable that in this implementation, after determining the acoustic features based on the singing audio, linguistic features and target timbre in the first language, the acoustic features with (or carrying) the target timbre can be translated into the corresponding second language, and the singing audio in the second language with the target timbre can be synthesized based on the acoustic features corresponding to the second language. The present application does not specifically limit the timing of the conversion from the first language to the second language.
[0082] This implementation method realizes the conversion from singing in the first language of any speaker to singing in the second language of any target timbre, and realizes any speaker singing multiple languages with a target timbre (the target timbre is not among the timbres in the training set of the conversion model), enriching the form of audio synthesis, enhancing interest, and improving user experience.
[0083] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an audio synthesis device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0084] like Figure 5As shown, the audio synthesis device 500 of this embodiment includes: an acquisition unit 501, a linguistic feature determination unit 502, a target timbre determination unit 503, an acoustic feature determination unit 504 and a synthesis unit 505.
[0085] The acquisition unit 501 is configured to acquire the audio to be synthesized and the target audio.
[0086] The linguistic feature determination unit 502 is configured to determine corresponding linguistic features based on the audio to be synthesized.
[0087] The target timbre determination unit 503 is configured to determine a target timbre based on the target audio.
[0088] The acoustic feature determination unit 504 is configured to determine the acoustic feature based on the audio to be synthesized, the linguistic feature and the target timbre.
[0089] The synthesis unit 505 is configured to synthesize the target timbre audio based on the acoustic features and output it.
[0090] In some optional implementations of this embodiment, the linguistic feature determination unit 502 is further configured to: determine the linguistic features corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the linguistic features.
[0091] In some optional implementations of this embodiment, the target timbre determination unit 503 is further configured to: determine an identity vector corresponding to the target audio based on the target audio and a pre-trained identity authentication model, wherein the pre-trained identity authentication model is used to characterize the correspondence between the audio and the identity vector; and determine the target timbre based on the identity vector.
[0092] In some optional implementations of this embodiment, the acoustic feature determination unit 503 is further configured to: determine the text corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the text; determine the acoustic features based on the text, linguistic features, target timbre and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text, linguistic features and acoustic features.
[0093] In some optional implementations of this embodiment, the synthesis unit 505 is further configured to: synthesize the target audio according to the acoustic feature and the corresponding relationship between the preset acoustic feature and the audio.
[0094] In some optional implementations of this embodiment, the device further includes Figure 5The training unit not shown in the figure is configured to: obtain an initial neural network model; obtain a training sample set, wherein the training samples in the training sample set include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, linguistic features, and timbre; use the text, linguistic features, and timbre of the training samples in the training sample set as inputs to the initial neural network model, use the acoustic features corresponding to the input text, linguistic features, and timbre as expected outputs, and train the initial neural network model; and determine the trained initial neural network model as a conversion model.
[0095] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio, and the target timbre audio includes singing audio with a target timbre corresponding to the singing audio.
[0096] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio in a first language, and the target timbre audio includes singing audio in a second language with a target timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0097] It should be understood that the units 501 to 505 described in the audio synthesis device 500 are respectively the same as those described in the reference Figure 2 Therefore, the operations and features described above for the audio synthesis method are also applicable to the device 500 and the units contained therein, and will not be described in detail here.
[0098] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0099] like Figure 6 , is a block diagram of an electronic device according to an audio synthesis method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0100] like Figure 6As shown, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses 605, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses 605 can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0101] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the audio synthesis method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the audio synthesis method provided in the present application.
[0102] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and units, such as program instructions / units corresponding to the audio synthesis method in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the audio synthesis method in the above method embodiment is implemented.
[0103] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the audio synthesis electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the audio synthesis electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0104] The audio synthesis electronic device may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus 605 or other means. Figure 6 The connection via bus 605 is taken as an example.
[0105] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the audio synthesis electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0106] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0108] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0109] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0110] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0111] According to the technical solution of the embodiment of the present disclosure, the acoustic features in the audio to be synthesized are used as the basis for audio synthesis, and audio with a target timbre is synthesized based on the acoustic features, thereby simplifying the audio synthesis process and improving the accuracy of audio synthesis for a specific timbre.
[0112] According to one or more embodiments of the present disclosure, the present disclosure provides an audio synthesis method, including: obtaining audio to be synthesized and target audio; determining corresponding linguistic features based on the audio to be synthesized; determining a target timbre based on the target audio; determining acoustic features based on the audio to be synthesized, the linguistic features and the target timbre; synthesizing the target timbre audio based on the acoustic features, and outputting it.
[0113] According to one or more embodiments of the present disclosure, determining corresponding linguistic features based on the audio to be synthesized includes: determining the linguistic features corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the linguistic features.
[0114] According to one or more embodiments of the present disclosure, determining a target timbre based on a target audio includes: determining an identity vector corresponding to the target audio based on the target audio and a pre-trained identity authentication model, wherein the pre-trained identity authentication model is used to characterize the correspondence between the audio and the identity vector; determining the target timbre based on the identity vector.
[0115] According to one or more embodiments of the present disclosure, acoustic features are determined based on the audio to be synthesized, linguistic features and target timbre, including: determining the text corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between audio and text; determining acoustic features based on the text, linguistic features, target timbre and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between text, linguistic features, timbre and acoustic features.
[0116] According to one or more embodiments of the present disclosure, the audio synthesis method further includes: obtaining an initial neural network model; obtaining a training sample set, wherein the training samples in the training sample set include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, linguistic features, and timbre; using the text, linguistic features, and timbre of the training samples in the training sample set as inputs to the initial neural network model, and using the acoustic features corresponding to the input text, linguistic features, and timbre as expected outputs, to train the initial neural network model; and determining the trained initial neural network model as a conversion model.
[0117] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio, and the target timbre audio includes singing audio with a target timbre corresponding to the singing audio.
[0118] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio in a first language, and the target timbre audio includes singing audio in a second language with a target timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0119] According to one or more embodiments of the present disclosure, the present disclosure provides an audio synthesis device, including: an acquisition unit, configured to acquire audio to be synthesized and target audio; a linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized; a target timbre determination unit, configured to determine a target timbre based on the target audio; an acoustic feature determination unit, configured to determine acoustic features based on the audio to be synthesized, linguistic features and target timbre; and a synthesis unit, configured to synthesize the target timbre audio based on the acoustic features, and output it.
[0120] According to one or more embodiments of the present disclosure, the linguistic feature determination unit is further configured to: determine the linguistic features corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the linguistic features.
[0121] According to one or more embodiments of the present disclosure, the target timbre determination unit is further configured to: determine an identity vector corresponding to the target audio based on the target audio and a pre-trained identity authentication model, wherein the pre-trained identity authentication model is used to characterize the correspondence between the audio and the identity vector; and determine the target timbre based on the identity vector.
[0122] According to one or more embodiments of the present disclosure, the acoustic feature determination unit is further configured to: determine the text corresponding to the audio to be synthesized based on the audio to be synthesized and a pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the text; determine the acoustic features based on the text, linguistic features, target timbre and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text, linguistic features, timbre and acoustic features.
[0123] According to one or more embodiments of the present disclosure, the audio synthesis device further includes a training unit configured to: obtain an initial neural network model; obtain a training sample set, wherein the training samples in the training sample set include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, linguistic features, and timbre; use the text, linguistic features, and timbre of the training samples in the training sample set as inputs to the initial neural network model, and use the acoustic features corresponding to the input text, linguistic features, and timbre as expected outputs to train the initial neural network model; and determine the trained initial neural network model as a conversion model.
[0124] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio, and the target timbre audio includes singing audio with a target timbre corresponding to the singing audio.
[0125] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio in a first language, and the target timbre audio includes singing audio in a second language with a target timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0126] It should be understood that the above embodiments are only exemplary embodiments, but are not limited thereto, and also include other audio synthesis methods known in the art that can be implemented. The various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit them here.
[0127] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An audio synthesis method, comprising: Get the audio to be synthesized and the target audio; Based on the audio to be synthesized, determining corresponding linguistic features, wherein the linguistic features include prosodic features, syntax, discourse structure or information structure; Based on the target audio, determining a target timbre; Determining acoustic features based on the audio to be synthesized, the linguistic features, and the target timbre; Based on the acoustic features, synthesize the target timbre audio and output it; The step of determining the acoustic feature based on the audio to be synthesized, the linguistic feature and the target timbre includes: Determining the text corresponding to the audio to be synthesized according to the audio to be synthesized and the pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the text; Acoustic features are determined based on the text, the linguistic features, the target timbre and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text, the linguistic features, the timbre and the acoustic features.
2. The method according to claim 1, wherein: The determining corresponding linguistic features based on the audio to be synthesized includes: According to the audio to be synthesized and a pre-trained recognition model, linguistic features corresponding to the audio to be synthesized are determined, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the linguistic features.
3. The method according to claim 1, wherein: The step of determining a target timbre based on the target audio comprises: Determine an identity vector corresponding to the target audio according to the target audio and a pre-trained identity authentication model, wherein the pre-trained identity authentication model is used to characterize the correspondence between the audio and the identity vector; According to the identity vector, a target timbre is determined.
4. The method according to claim 1, wherein: The method further comprises: Get the initial neural network model; Acquire a training sample set, wherein the training samples in the training sample set include text, linguistic features, timbre, and annotated acoustic features corresponding to the text, the linguistic features, and the timbre; Taking the text, linguistic features, and timbre of the training samples in the training sample set as inputs to the initial neural network model, taking the acoustic features corresponding to the input text, linguistic features, and timbre as expected outputs, and training the initial neural network model; The trained initial neural network model is determined as the conversion model.
5. The method according to any one of claims 1 to 4, wherein: The audio to be synthesized includes singing audio, and the target timbre audio includes singing audio with a target timbre corresponding to the singing audio.
6. The method according to any one of claims 1 to 4, wherein: The audio to be synthesized includes singing audio in a first language, and the target timbre audio includes singing audio in a second language with a target timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
7. An audio synthesis device, comprising: An acquisition unit, configured to acquire the audio to be synthesized and the target audio; A linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized, wherein the linguistic features include prosodic features, syntax, discourse structure or information structure; A target timbre determination unit, configured to determine a target timbre based on the target audio; an acoustic feature determination unit, configured to determine an acoustic feature based on the audio to be synthesized, the linguistic feature and the target timbre; A synthesis unit, configured to synthesize target timbre audio based on the acoustic features and output the synthesized audio; The acoustic feature determination unit is further configured to: Determining the text corresponding to the audio to be synthesized according to the audio to be synthesized and the pre-trained recognition model, wherein the pre-trained recognition model is used to characterize the correspondence between the audio and the text; Acoustic features are determined based on the text, the linguistic features, the target timbre and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text, the linguistic features, the timbre and the acoustic features.
8. An audio synthesis electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Song generation method and device
CN111161695A
A method for voice conversion
KR1020020049061A
