Audio synthesis method, device, equipment and storage medium
By obtaining the acoustic characteristics of the audio to be synthesized and synthesizing the target audio based on the characteristics, the problem of slow and inaccurate audio synthesis in the existing technology is solved, fast and accurate audio synthesis is achieved, and the accuracy and user experience of audio synthesis are improved. .
Patent Information
- Application Number
- CN202011270755.5
- 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 audio into different accents or timbres.
By obtaining the acoustic features of the audio to be synthesized and synthesizing the target audio based on these features, the audio synthesis process is simplified and the accuracy of audio synthesis is improved.
It achieves fast and accurate synthesis of audio with preset timbres, improving the accuracy and user experience of audio synthesis.
Smart Images

Figure CN112382269B
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; determining corresponding linguistic features based on the audio to be synthesized; determining acoustic features based on the audio to be synthesized and the linguistic features; synthesizing target audio based on the acoustic features, and outputting the audio.
[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; a linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized; an acoustic feature determination unit, configured to determine acoustic features based on the audio to be synthesized and the linguistic features; and a synthesis unit, configured to synthesize the target 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 taking the acoustic features in the audio to be synthesized as the basis for audio synthesis, and synthesizing audio with a preset timbre based on the acoustic features, thereby simplifying the synthesis process of the audio with a preset timbre and improving the accuracy of the audio synthesis of the preset 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 1 An 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 1As 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 collected by the terminal devices 101, 102, and 103. The background server may obtain the audio to be synthesized, and determine the corresponding linguistic features based on the audio to be synthesized; determine the acoustic features based on the audio to be synthesized and the linguistic features; synthesize the target 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 1 The 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 audio to be synthesized.
[0029] In this embodiment, the execution subject of the audio synthesis method (for example Figure 1 The server 105 in the embodiment can obtain the audio to be synthesized locally, or can obtain the audio to be synthesized collected by the terminal device through audio recording through a wired connection or a 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 audio to be synthesized. 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 audio to be synthesized. The audio to be synthesized can be a language statement audio or a 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 acoustic features based on the audio to be synthesized and linguistic features.
[0033] After obtaining the linguistic features, the execution subject can determine the acoustic features based on the audio to be synthesized and the linguistic features. Specifically, the execution subject can input the audio to be synthesized and the linguistic features into a pre-trained conversion model, and output the acoustic features corresponding to the audio to be synthesized. The pre-trained conversion model is used to characterize the correspondence between the audio, linguistic features and acoustic features.
[0034] Step 204: synthesize the target audio based on the acoustic features and output it.
[0035] 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 preset timbre, and output it through the audio playback device.
[0036] 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, the server 303 obtains the audio to be synthesized 301 through the network 302. The server 303 determines the corresponding linguistic feature 304 based on the audio to be synthesized 301. The server 303 determines the acoustic feature 305 based on the audio to be synthesized 301 and the linguistic feature 304. The server 303 synthesizes the target audio 306 based on the acoustic feature 305 and outputs it.
[0037] This embodiment uses the obtained acoustic features in the audio to be synthesized as the basis for audio synthesis, synthesizes audio with a preset timbre based on the acoustic features, simplifies the synthesis process of the audio with the preset timbre, and improves the accuracy of the audio synthesis with the preset timbre.
[0038] 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:
[0039] Step 401, obtaining the audio to be synthesized.
[0040] Step 402: Determine corresponding linguistic features based on the audio to be synthesized.
[0041] 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.
[0042] Specifically, step 402 can be implemented by step 4021:
[0043] 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.
[0044] 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.
[0045] This embodiment can accurately obtain 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 the preset timbre.
[0046] 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 is 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 preset timbre according to the corresponding relationship between each phoneme corresponding to each identifier in the feature to be identified and the preset identifier, phoneme and acoustic features. The acoustic feature may be a Mel spectrum corresponding to each phoneme required for generating the preset timbre. The execution subject may determine the audio with the preset 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 preset timbre and improve the accuracy of synthesizing the audio of the preset timbre.
[0047] Step 403: Determine acoustic features based on the audio to be synthesized and linguistic features.
[0048] The principle of step 403 is similar to that of step 203 and will not be described again here.
[0049] Specifically, step 403 can be implemented through steps 4031 to 4032:
[0050] Step 4031, determining the text corresponding to the audio to be synthesized based on the audio to be synthesized and the pre-trained recognition model.
[0051] 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.
[0052] Step 4032, determine acoustic features based on the text, linguistic features and the pre-trained conversion model.
[0053] Among them, the pre-trained conversion model is used to characterize the correspondence between text, linguistic features 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 and video to be synthesized based on the text, linguistic features 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 required for synthesizing the target audio. Specifically, the acoustic features can be the Mel spectrum corresponding to each phoneme required for synthesizing audio with a preset timbre.
[0054] This embodiment obtains the acoustic features required for synthesizing the target audio based on text, linguistic features and a pre-trained conversion model, improves the required Mel-spectrogram features for generating audio with a preset timbre, and improves the accuracy of generating audio with a preset timbre.
[0055] Step 404: synthesize the target audio based on the acoustic features and output it.
[0056] The principle of step 404 is similar to that of step 204 and will not be described in detail here.
[0057] Specifically, step 404 can be implemented by step 4041:
[0058] Step 4041, synthesizing the target audio according to the acoustic features and the correspondence between the preset acoustic features and the audio.
[0059] After obtaining the acoustic features, the execution subject can synthesize the target audio according to the acoustic features and the corresponding relationship between the preset 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 audio with the preset 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 a preset 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.
[0060] This embodiment can improve the accuracy of audio synthesis by synthesizing the target audio according to the acoustic features and the correspondence between the preset acoustic features and the audio, and can synthesize the audio with the timbre required by the user, thereby improving the interest of the audio synthesis and the user experience.
[0061] 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, preset timbre, and annotated acoustic features corresponding to the text, linguistic features, and preset timbre; using the text, linguistic features, and preset 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 preset timbre as expected outputs to train the initial neural network model; determining the trained initial neural network model as a conversion model.
[0062] 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.
[0063] 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, and annotated acoustic features corresponding to the text and linguistic features. Among them, the acoustic features corresponding to the text and linguistic features 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 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 can be obtained from a local or communication-connected electronic device. The linguistic features in the training sample can be extracted in real time, or can be obtained from a local or communication-connected electronic device through a wired or wireless connection.
[0064] The present application can actually be a conversion of any audio (or any singing audio) to an audio (or singing audio) of a preset timbre (or a specific timbre). The preset timbre has been set in the training set of the training conversion model, and the acoustic features determined based on the pre-trained conversion model are the acoustic features corresponding to the preset timbre. When synthesizing the target audio later, only the audio (or singing audio) with the preset timbre can be synthesized.
[0065] This embodiment trains the initial neural network model by a training sample set including a preset timbre, and can obtain a conversion model that is capable of generating acoustic features corresponding to the preset timbre based on text, linguistic features and the preset timbre. By using the trained conversion model, it is possible to realize the conversion of any singing audio to singing audio with a preset timbre, and improve the quality of the synthesized audio with a preset timbre (or singing audio), enhance the fun of audio (or singing audio) synthesis, and enhance the user experience.
[0066] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio, and the target audio includes singing audio with a preset timbre corresponding to the singing audio.
[0067] Specifically, the conversion of singing can be achieved based on this implementation. When the execution subject converts singing with a preset timbre, the first audio to be synthesized obtained can be a 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 acoustic features based on the singing audio, linguistic features and preset timbre; finally, the target audio synthesized based on the determined acoustic features with preset timbre can be a singing audio with a preset timbre corresponding to the singing audio ("Fifty-six nationalities, fifty-six flowers, fifty-six brothers and sisters are one family"). The preset timbre can be a pre-set timbre for training a conversion model, so that based on the conversion model completed by training, any singing audio can be converted into a singing audio with the preset timbre. The present application does not specifically limit the preset timbre.
[0068] This implementation method realizes the conversion from the singing of any speaker to the singing of a specific preset timbre, enriches the form of audio synthesis, enhances the fun, and improves the user experience.
[0069] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio in a first language, and the target audio includes singing audio in a second language with a preset timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0070] Specifically, based on this implementation, any speaker can sing multiple languages with preset timbres. When the execution subject performs the singing conversion between the language and the preset 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", assuming that the second language is English. 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 based on the singing audio of the second language; determine the acoustic features based on the singing audio of the second language, the linguistic features and the preset timbre; finally, the target audio synthesized based on the determined acoustic features of the corresponding preset timbre can be the singing audio of English (second language) with the preset timbre corresponding to the Chinese (first language) singing audio ("Fifty-six ethnic groups, fifty-six flowers, fifty-six brothers and sisters are one family"). In the present application, the preset timbre can be the timbre of any star or any animal. The preset timbre can be a pre-set timbre for training a conversion model, so that the conversion model based on the training can convert any singing audio into a singing audio with the preset timbre. The present application does not specifically limit the preset 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, English, French, etc. The present application does not specifically limit the types of the first language and the second language.
[0071] Of course, it is understandable that in this implementation, after determining the acoustic features based on the singing audio, linguistic features and preset timbre in the first language, the acoustic features corresponding to the preset timbre can be translated into the corresponding second language, and the singing audio in the second language with the preset timbre can be synthesized based on the acoustic features corresponding to the second language and the preset timbre. The present application does not specifically limit the timing of the conversion from the first language to the second language.
[0072] This implementation method realizes the conversion from singing in the first language of any speaker to singing in the second language with a specific preset timbre, and realizes any speaker singing multiple languages with preset timbre (the preset timbre is in the training set of the conversion model), enriching the form of audio synthesis, enhancing interest, and improving user experience.
[0073] 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 2Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0074] like Figure 5 As shown, the audio synthesis device 500 of this embodiment includes: an acquisition unit 501, a linguistic feature determination unit 502, an acoustic feature determination unit 503 and a synthesis unit 504.
[0075] The acquisition unit 501 is configured to acquire the audio to be synthesized.
[0076] The linguistic feature determination unit 502 is configured to determine corresponding linguistic features based on the audio to be synthesized.
[0077] The acoustic feature determination unit 503 is configured to determine the acoustic feature based on the audio to be synthesized and the linguistic feature.
[0078] The synthesis unit 504 is configured to synthesize the target audio based on the acoustic features and output the synthesized target audio.
[0079] 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.
[0080] 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 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.
[0081] In some optional implementations of this embodiment, the synthesis unit 504 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.
[0082] In some optional implementations of this embodiment, the audio synthesis 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, preset timbre and annotated acoustic features corresponding to the text, linguistic features and preset timbre; use the text, linguistic features and preset timbre of the training samples in the training sample set as input of the initial neural network model, use the acoustic features corresponding to the input text, linguistic features and preset timbre as expected output, and train the initial neural network model; determine the trained initial neural network model as a conversion model.
[0083] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio, and the target audio includes singing audio with a preset timbre corresponding to the singing audio.
[0084] In some optional implementations of this embodiment, the audio to be synthesized includes singing audio in a first language, and the target audio includes singing audio in a second language with a preset timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0085] It should be understood that the units 501 to 504 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.
[0086] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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).
[0097] 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.
[0098] 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.
[0099] According to the technical solution of the embodiment of the present application, the acoustic features in the audio to be synthesized are used as the basis for audio synthesis, and audio with a preset timbre is synthesized based on the acoustic features, thereby simplifying the audio synthesis process and improving the accuracy of audio synthesis with a preset timbre.
[0100] According to one or more embodiments of the present disclosure, the present disclosure provides an audio synthesis method, including: obtaining audio to be synthesized; determining corresponding linguistic features based on the audio to be synthesized; determining acoustic features based on the audio to be synthesized and the linguistic features; synthesizing target audio based on the acoustic features, and outputting it.
[0101] According to one or more embodiments of the present disclosure, corresponding linguistic features are determined based on the audio to be synthesized, including: 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.
[0102] According to one or more embodiments of the present disclosure, acoustic features are determined based on the audio to be synthesized and linguistic features, 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 the audio and the text; determining the acoustic features based on the text, linguistic features 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.
[0103] According to one or more embodiments of the present disclosure, synthesizing target audio based on acoustic features includes: synthesizing the target audio according to the acoustic features and a correspondence between preset acoustic features and audio.
[0104] According to one or more embodiments of the present disclosure, the audio synthesis method also 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, preset timbre, and annotated acoustic features corresponding to the text, linguistic features, and preset timbre; using the text, linguistic features, and preset 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 preset timbre as expected outputs, to train the initial neural network model; and determining the trained initial neural network model as a conversion model.
[0105] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio, and the target audio includes singing audio with a preset timbre corresponding to the singing audio.
[0106] 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 audio includes singing audio in a second language with a preset timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0107] 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; a linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized; an acoustic feature determination unit, configured to determine acoustic features based on the audio to be synthesized and linguistic features; and a synthesis unit, configured to synthesize target audio based on the acoustic features and output it.
[0108] 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.
[0109] 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 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.
[0110] According to one or more embodiments of the present disclosure, the synthesis unit 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.
[0111] According to one or more embodiments of the present disclosure, the audio synthesis device further includes Figure 5 The 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, preset timbre, and annotated acoustic features corresponding to the text, linguistic features, and preset timbre; use the text, linguistic features, and preset timbre of the training samples in the training sample set as inputs of the initial neural network model, use the acoustic features corresponding to the input text, linguistic features, and preset timbre as expected outputs, and train the initial neural network model; determine the trained initial neural network model as a conversion model.
[0112] According to one or more embodiments of the present disclosure, the audio to be synthesized includes singing audio, and the target audio includes singing audio with a preset timbre corresponding to the singing audio.
[0113] 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 audio includes singing audio in a second language with a preset timbre corresponding to the singing audio in the first language, wherein the second language includes the first language.
[0114] 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.
[0115] 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; Based on the audio to be synthesized, determining corresponding linguistic features; Determining acoustic features based on the audio to be synthesized and the linguistic features, wherein the acoustic features are used to synthesize audio with a preset timbre; Based on the acoustic features, synthesize the target audio and output it; The determining of acoustic features based on the audio to be synthesized and the linguistic features includes: determining a text corresponding to the audio to be synthesized according to 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 according to the text, the linguistic features and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between text, linguistic features and 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 synthesizing target audio based on the acoustic features comprises: The target audio is synthesized according to the acoustic feature and the correspondence between the preset acoustic feature and the audio.
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, preset timbre, and annotated acoustic features corresponding to the text, the linguistic features, and the preset timbre; Taking the text, linguistic features and preset timbre of the training samples in the training sample set as inputs of the initial neural network model, taking the acoustic features corresponding to the input text, linguistic features and preset 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 audio includes singing audio with a preset 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 audio includes singing audio in a second language with a preset 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; A linguistic feature determination unit, configured to determine corresponding linguistic features based on the audio to be synthesized; an acoustic feature determination unit, configured to determine an acoustic feature based on the audio to be synthesized and the linguistic feature, wherein the acoustic feature is used to synthesize audio with a preset timbre; A synthesis unit, configured to synthesize the target audio based on the acoustic features and output the synthesized target audio; 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 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.
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
