Audio synthesis method, device, storage medium and computer equipment

By obtaining the melody information of the target text and target song, and using the melody control model to synthesize homemade songs, it solves the problem of users having difficulty finding songs that meet their expectations, and improves the audio playback effect and video recording efficiency.

CN110189741BActive Publication Date: 2024-09-06TENCENT DIGITAL TIANJIN
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN201810730283.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-07-05
Publication Date
2024-09-06
Estimated Expiration
2039-04-24

AI Technical Summary

Technical Problem

When users choose songs, due to copyright and other issues, the number of available songs is limited and it is difficult to find songs that meet their expectations, resulting in poor audio playback effects.

Method used

By obtaining the melody information of the target text and target song, and using the trained melody control model to synthesize homemade songs, users can independently select lyrics and melody, and customize songs that meet their expectations.

Benefits of technology

The effect of audio playback is greatly improved, users can customize songs according to their own needs, enrich the sources of background audio, and improve the efficiency of video recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110189741B
    Figure CN110189741B
Patent Text Reader

Abstract

The present invention relates to an audio synthesis method, device, storage medium and computer equipment, the method comprising: obtaining a target text; determining a target song selected by a selection instruction; obtaining a self-made song synthesized according to a trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics; and playing the self-made song. The solution provided by the present application improves the effect of audio playback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an audio synthesis method, device, storage medium and computer equipment. Background Art

[0002] With the development of computer technology, more and more computer devices have audio playback functions, such as smart phones and tablet computers, etc. In order to relieve the tense work mood and increase the fun of life, users increasingly choose to listen to songs in their spare time, or use songs to shoot videos, etc.

[0003] Currently, users usually select songs from a song library to play. However, due to copyright and other issues, the number of songs available in the song library is limited, and it is difficult for users to select songs that meet their expectations from these songs to play, resulting in poor audio playback effects. Summary of the invention

[0004] Based on this, it is necessary to provide an audio synthesis method, device, storage medium and computer equipment to address the problem of poor audio playback effect at present.

[0005] An audio synthesis method, comprising:

[0006] Get the target text;

[0007] determining a target song selected by a selection command;

[0008] Acquire a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics;

[0009] Play said homemade song.

[0010] An audio synthesis device, comprising:

[0011] An acquisition module is used to acquire the target text;

[0012] A determination module, used for determining the target song selected by the selection instruction;

[0013] The acquisition module is also used to acquire a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics;

[0014] The playing module is used for playing the self-made song.

[0015] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to perform the following steps:

[0016] Get the target text;

[0017] determining a target song selected by a selection command;

[0018] Acquire a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics;

[0019] Play said homemade song.

[0020] A computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor performs the following steps:

[0021] Get the target text;

[0022] determining a target song selected by a selection command;

[0023] Acquire a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics;

[0024] Play said homemade song.

[0025] The above audio synthesis method, device, storage medium and computer device, after obtaining the target text and determining the target song selected by the selection instruction, can obtain the target text as lyrics through the melody control model, and synthesize the self-made song in combination with the melody information of the target song. In this way, the user can independently select lyrics and melody, customize songs that meet their expectations, and play songs that meet their expectations, which greatly improves the effect of audio playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A diagram showing an application environment of an audio synthesis method in an embodiment;

[0027] Figure 2 is a schematic flow chart of an audio synthesis method in one embodiment;

[0028] Figure 3 A schematic diagram of an interface for obtaining a target text in an embodiment;

[0029] Figure 4 A block diagram of the principle of synthesizing a self-made song in one embodiment;

[0030] Figure 5 A schematic diagram of an interface for recording a video in one embodiment;

[0031] Figure 6 A schematic diagram of an interface providing an interactive entrance in an embodiment;

[0032] Figure 7 A schematic diagram of an interface simulating a video call in an embodiment;

[0033] Figure 8 is a module structure diagram of an audio synthesis device in one embodiment;

[0034] Fig. 9 is a module structure diagram of an audio synthesis device in another embodiment;

[0035] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0037] Figure 1 FIG. 1 is an application environment diagram of an audio synthesis method in an embodiment. Figure 1 The audio synthesis method is applied to an audio synthesis system. The audio synthesis system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network. The terminal 110 can be a desktop terminal or a mobile terminal, and the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server 120 can be an independent server or a server cluster composed of multiple independent servers.

[0038] Terminal 110 can be used to execute the audio synthesis method. Specifically, terminal 110 can obtain the target text and determine the target song selected by the selection instruction; then synthesize a homemade song locally according to the trained melody control model, the target text and the melody information of the target song; wherein the homemade song uses the acquired target text as lyrics. Terminal 110 can play the homemade song, and can also configure the homemade song as background audio, and record a video based on the background audio. The melody control model here can be sent to terminal 110 after the server 120 completes the training, or it can be obtained by the terminal 110 through local training. Terminal 110 can also send the target text and the song identifier of the target song to server 120, and server 120 synthesizes the homemade song according to the trained melody control model, the target text and the melody information of the target song and then feeds it back to terminal 110.

[0039] Figure 2 FIG. 1 is a flow chart of an audio synthesis method in an embodiment. Figure 1 The terminal 110 in FIG. Figure 2 , the method specifically comprises the following steps:

[0040] S202, obtaining target text.

[0041] The target text is the text to be used as lyrics for synthesizing a new song. Specifically, the target text can be text input by a user through a text input box provided by the terminal, or text selected by a user from a text template list provided by the terminal through a selection instruction, or text transmitted by other computer devices. Of course, the target text can also be text from other sources, and the source and acquisition method of the target text are not limited in the embodiments of the present invention.

[0042] For example, Figure 3 FIG. 1 shows a schematic diagram of an interface for obtaining a target text in an embodiment. Figure 3 , the interface includes a text input box 310 and a text template list 320. The user can enter text 311 in the text input box 310, and the terminal thereby obtains the text 311 entered by the user in the text input box 310 as the target text. The user can also select text in the text template list 320, and the terminal thereby obtains the text 321 selected by the user from the text template list 320 as the target text.

[0043] S204, determining the target song selected by the selection instruction.

[0044] The target song is the song from which the melody of the new song to be synthesized is selected. For example, if the user wants to synthesize a song using the melody of the song "I Love Beijing Tiananmen" as the melody of the new song, then "I Love Beijing Tiananmen" is the target song. For another example, if the user wants to synthesize a song using the melody of the song "Two Tigers" as the melody of the new song, then "Two Tigers" is the target song.

[0045] In one embodiment, the terminal may provide candidate songs and receive a selection instruction from a user for the candidate songs, thereby acquiring the candidate songs selected by the selection instruction as target songs.

[0046] Specifically, the terminal may display candidate songs on the interface, and then detect a predefined trigger operation for the displayed candidate songs, and trigger a corresponding selection instruction when the trigger operation is detected. The trigger operation may be a touch operation or a cursor click operation on the candidate songs displayed in the interface. The trigger operation may also be a click on a predefined physical button, or a shaking operation triggered when the candidate songs are displayed one by one.

[0047] In another embodiment, the terminal may also randomly select a song from the candidate songs as the target song. The terminal may also select a song that matches the target text from the candidate songs as the target song.

[0048] For example, see Figure 3 The interface also includes a candidate song list 330. The user can select songs in the candidate song list 330, and the terminal thereby obtains the song 331 selected by the user from the candidate song list 330 as the target song.

[0049] S206, obtaining a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics.

[0050] Among them, the melody control model is a machine learning model that has the ability to control the melody after training. The full name of machine learning in English is Machine Learning, abbreviated as ML. The machine learning model can have the ability to control the melody through sample learning. The machine learning model can adopt a neural network model, a support vector machine or a logistic regression model. Neural network models such as convolutional neural networks, back propagation neural networks, feedback neural networks, radial basis neural networks or self-organizing neural networks. In the embodiments of the present invention, the type of machine learning model is not limited, and any machine learning model that can realize the melody control function is available.

[0051] The melody information is data that can reflect the trend of the pitch of the song over time. There are two basic elements of the melody, namely melody (or pitch) and rhythm. The terminal can represent the melody information through a series of correspondences between pitches and corresponding time information. The time information here is used to reflect the rhythm, such as the start time of the pitch, or the duration of the pitch, or the pause duration between different pitches. One pitch represents a note. The acoustic parameters of a note include fundamental frequency and intensity.

[0052] It can be understood that a song is an artistic expression form that combines lyrics and melody. The target song is the audio data obtained by the song singer singing according to the lyrics and melody created by the song composer. In this embodiment, the melody of the target song is kept unchanged, and the lyrics are changed to synthesize a homemade song with the same melody. Of course, in the embodiment of the present invention, the melody of the target song can also be adjusted according to the changed lyrics to synthesize a homemade song.

[0053] Among them, the self-made song is a song with customized lyrics. The melody of the self-made song follows the melody of the existing song. Of course, the self-made song can also have a customized melody. The terminal synthesizes the self-made song according to the original lyrics and the customized melody, or synthesizes the self-made song according to the customized lyrics and the customized melody. The self-made song synthesized according to the customized lyrics and the customized melody is an original song.

[0054] In one embodiment, the melody information of the target song can be data extracted from the song file of the target song. For example, a MIDI (Musical Instrument Digital Interface) file is extracted from the song file of the target song as the melody information of the target song. It can be understood that since the MIDI file itself includes pitch and corresponding time information, and the melody information can be represented by a series of corresponding relationships between pitch and corresponding time information, the pitch and corresponding time information included in the MIDI file itself can constitute the melody information.

[0055] In one embodiment, the melody information of the target song is extracted from the audio data sung by the song singer. The audio data sung by the song singer can be audio data with background accompaniment, or can be audio data of a cappella singing. The a cappella singing audio data is data that records the singing voice of the song singer but without background music. The terminal can record the audio data sung by the song singer corresponding to the target song, and then extract the melody information from it. Among them, the melody information can be extracted through a constructed model. Of course, the melody information of the target song can also be obtained by other means, which is not limited in the embodiments of the present invention.

[0056] Specifically, after determining the target song selected by the selection instruction, the terminal can query the melody information of the selected target song, and then input the target text and the queried melody information into the melody control model, so as to output a self-made song with the target text as lyrics and the melody of the target song as the melody through the melody control model.

[0057] In one embodiment, S206 includes: sending the target text and the song identifier of the target song to the server; the target text and the song identifier are used to instruct the server to synthesize a self-made song according to the trained melody control model, the target text and the melody information after finding the melody information corresponding to the song identifier; and receiving the self-made song fed back by the server.

[0058] The song identifier is used to uniquely identify a song. Specifically, after the terminal determines the target song selected by the selection instruction, it can send the song identifier of the target song and the obtained target text to the server. In this way, after receiving the song identifier, the server searches for the melody information corresponding to the song identifier, inputs the melody information and the target text into the melody control model, and outputs a self-made song with the target text as lyrics and the same melody as the target song through the melody control model. The server can then feed back the self-made song to the terminal.

[0059] The self-made song may be a self-made a cappella song or a self-made song with background accompaniment. When the self-made song is a self-made a cappella song, the server directly feeds back the self-made a cappella song to the terminal, or feeds back the self-made song obtained by mixing the self-made a cappella song with the background accompaniment to the terminal, or feeds back both to the terminal for the terminal to display to the user for selection.

[0060] In this embodiment, the step of implementing audio synthesis on the server side utilizes the powerful and high-speed computing capability of the server to improve the efficiency of audio synthesis.

[0061] S208, playing a self-made song.

[0062] Specifically, after synthesizing a homemade song or receiving a homemade song fed back by the server, the terminal can play the homemade song, and the user can judge whether the homemade song meets his expectations by listening to the played homemade song, and perform subsequent operations when the homemade song meets his expectations.

[0063] The above audio synthesis method, after obtaining the target text and determining the target song selected by the selection instruction, can obtain the target text as lyrics through the melody control model, and synthesize the self-made song in combination with the melody information of the target song. In this way, the user can independently select lyrics and melody, customize songs that meet their expectations, and play songs that meet their expectations, which greatly improves the effect of audio playback.

[0064] In one embodiment, the audio synthesis method further includes: configuring the self-made song as background audio, and recording a video based on the background audio.

[0065] Specifically, after synthesizing a self-made song or receiving a self-made song fed back by a server, the terminal can automatically configure the self-made song as background audio and call a local image acquisition device to prepare for recording a video. The terminal can also configure the synthesized self-made song as background audio according to an instruction triggered by the user, and then call a local image acquisition device to prepare for recording a video. In this way, the terminal can record a video with the synthesized self-made song as background audio.

[0066] In a specific embodiment, a video recording application is installed on the terminal. The terminal can run the video recording application according to the user instruction, and continue to enter the background audio configuration interface according to the user instruction (for example, it can be as follows Figure 3 The terminal can then obtain the target text input by the user and the target song selected by the user, and then determine the melody information of the target song, use the target text as lyrics, and combine the determined melody information to synthesize a self-made song. The terminal can then configure the synthesized self-made song as background audio, enter the video recording page, and play the configured background audio and capture images to record video according to user instructions.

[0067] In this embodiment, the user independently selects lyrics and tunes, customizes songs that meet their expectations, and then uses the customized songs as background audio to record the video, which greatly enriches the source of background audio and improves the efficiency of video recording.

[0068] In one embodiment, S206 includes: querying the melody information matching the target song; inputting the target text and the melody information into the melody control model, and determining the corresponding melody features of each character in the target text according to the melody information through the hidden layer of the melody control model; and outputting the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features through the output layer of the melody control model.

[0069] Specifically, after the terminal determines the target song selected by the selection instruction, it queries the melody information of the target song obtained in advance, and then inputs the target text and the melody information into the trained melody control model, and performs melody matching on each character in the target text through the hidden layer of the melody control model, determines the corresponding melody features of each character in the target text, and then outputs the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features through the output layer of the melody control model.

[0070] In one embodiment, the audio synthesis method further includes the step of training a melody control model. Training the melody control model includes: collecting candidate song audio corresponding to the candidate songs; determining the candidate song melody corresponding to each candidate song based on the collected candidate song audio; obtaining text samples; and training the melody control model based on the text samples and the candidate song melody.

[0071] Specifically, the terminal can record the audio data of the singer of each candidate song, annotate the audio data with melody features, and obtain the melody information of the corresponding candidate song; or obtain the MIDI file of each candidate song as the melody information of the corresponding candidate song. The terminal can then randomly select a character string as a text sample, use the text sample and the melody information of the candidate song together as a training sample of the melody control model, and process the text sample and the candidate song through each layer in the melody control model to output a song sample with the text sample as the lyrics and the melody conforming to the input melody information. The terminal can then adjust the model parameters of the melody control model and the melody information of the candidate song as the input according to the difference between the output song sample and the expected result. After adjusting the parameters, the terminal can continue training until the melody control model training is completed. After the melody control model is trained, the terminal can save the melody control model locally to obtain and use it when the melody control model is needed.

[0072] In one embodiment, the difference between the song sample output by the melody control model and the expected result can be manually judged. The melody control model is a common model for each candidate song.

[0073] In one embodiment, the model training process may also be performed on the server. After the server completes the training of the melody control model, it sends the melody control model to the terminal for use.

[0074] In the above embodiment, the ability of melody control is learned through the powerful learning ability of the machine learning model, and speech synthesis is performed through the trained melody control model. Compared with the traditional speech synthesis method, the speech synthesis efficiency is improved and the accuracy of speech synthesis is improved.

[0075] In one embodiment, the audio synthesis method further includes: determining a target speaker. S206 includes: querying a melody control model corresponding to the target speaker; synthesizing a self-made song according to the queried melody control model, the target text and the melody information of the target song; the timbre of the self-made song conforms to the target speaker.

[0076] The target speaking object is the object to which the target timbre belongs. The target timbre is the sound feature of a self-made song or self-made voice that the user intends to synthesize. The target speaking object can be a virtual object or a real object. A virtual object can be a virtual character in a game or a virtual character in an animation. A real object can be a singer or an actor in a real scene.

[0077] It is understandable that different sound-producing bodies have different timbres due to different materials or structures. For example, the timbres of pianos, violins and people are different, and the sounds they produce are also different. The timbre of each person is also different. Timbre is the characteristic of sound. Different timbres are different even at the same pitch and the same sound intensity.

[0078] It should be noted that the melody control model corresponding to the target speaker is a melody control model trained based on the audio data sung by the target speaker, so that the timbre of the self-made song output by the melody control model trained in this way conforms to the target speaker. The melody control model mentioned in the above embodiment does not limit the singer of the audio data used for training, so there is no limitation on the timbre.

[0079] Specifically, the terminal can determine the target speaker selected by the selection instruction, and the terminal can also obtain the singer of the target song as the target speaker. Further, the terminal inputs the target text and the melody information of the target song into the melody control model corresponding to the target speaker to synthesize the self-made song.

[0080] It can be understood that the melody control model corresponding to the target speaking object is a melody control model that matches the timbre information of the target speaking object. The terminal inputs the target text and the melody information into the trained melody control model that matches the timbre information of the target speaking object, and performs melody matching on each character in the target text through the hidden layer of the melody control model to determine the corresponding melody features of each character. Through the output layer of the melody control model, a self-made song that is obtained by speech synthesis of each character in the target text according to the corresponding melody features and conforms to the timbre of the target speaking object is output.

[0081] Of course, when the terminal implements this process through the model, it can achieve end-to-end conversion (from target text to self-made song) through one model, or it can be achieved through multiple models, with each model working together to achieve a function. For example, the target text is first converted into a self-made voice with a timbre that matches the target speaker through the timbre control model, and then the self-made voice is converted into a self-made song with a melody that matches the target song through the melody control model. The timbre control model here can be referred to in the following description. The input data for the melody control model training here is no longer the target text and melody information, but the self-made voice and melody information output by the timbre control model.

[0082] It is understandable that this embodiment can synthesize a song with user-defined lyrics sung by a voice selected by the user, such as a celebrity's voice singing a user-made song to complete the song creation.

[0083] In one embodiment, the terminal can also perform a security check on the acquired target text, and if the target text meets the requirements, continue the subsequent operation; if the target text does not meet the requirements, an error message is fed back. The security check step of the target text can also be performed by the server.

[0084] For example, Figure 4 A block diagram of the principle of synthesizing a self-made song in one embodiment is shown. Figure 4 The server (or terminal) may collect sound materials (audio data of candidate speakers) in advance, annotate the collected sound materials (phonemes, fundamental frequency, sound intensity, and time information, etc.), and train the model based on the collected sound materials and annotated data. The model here may be a timbre control model, or a general melody control model, or a melody control model corresponding to each candidate speaker, etc.; different models may be trained according to the data selected from the sound materials as model input and the annotated data. The server (or terminal) may save the trained model for future use, and the server may also send the model to the terminal for use.

[0085] After obtaining the target text, the terminal can upload the target text to the server, and the terminal can also upload the identifier of the target song or target speaker selected by the user to the server. The server performs a security check on the target text. After the security check passes, when the user selects the target speaker, the trained timbre control model obtains the self-made voice corresponding to the target text according to the phoneme sequence of the target text; or when the user selects the target song, the trained melody control model obtains the self-made song with the target text as the lyrics according to the melody information of the target song, or when the user selects the target song and the target speaker, the trained melody control model obtains the self-made song with the target text as the lyrics according to the phoneme sequence of the target text and the melody information of the target song. After obtaining the self-made song or self-made voice through the model, the server sends it to the terminal, or mixes the self-made song or self-made voice with the accompaniment and then sends it to the terminal. The terminal can also complete the above process locally.

[0086] In the above embodiment, users can independently select lyrics, tunes and timbre, customize songs that meet their expectations, and then use the customized songs as background audio to record videos, which greatly enriches the source of background audio and improves the efficiency of video recording.

[0087] In one embodiment, the audio synthesis method further includes: receiving a selection instruction; when the selection instruction selects a target song, performing the step of obtaining a self-made song synthesized according to the trained tune control model, the target text, and the tune information of the target song; when the selection instruction selects a target speaking object, obtaining a self-made audio synthesized according to the trained voice color control model and the target text; the voice color control model matches the target speaking object.

[0088] Among them, the selection instruction is a computer-readable instruction triggered according to a user operation. The selection instruction is used to select a target. The target can be a target song or a target speaking object. The voice color control model is a machine learning model with voice color control ability after training.

[0089] Specifically, the terminal can provide a candidate song list or a candidate speaking object list on the interface, and then detect a predefined trigger operation for the displayed candidate song or candidate speaking object. When the trigger operation is detected, the corresponding selection instruction is triggered. After the terminal determines that the target song is pointed to by the selection instruction, it performs the step of obtaining a self-made song synthesized according to the trained tune control model, the target text, and the tune information of the target song.

[0090] After the terminal determines that the target speaking object is pointed to by the selection instruction, it obtains a self-made audio synthesized according to the trained voice color control model and the target text; among them, the voice color control model matches the target speaking object. It can be understood that in this embodiment, the user can choose to say what they want to say through the voice of a certain virtual character or real person.

[0091] In one embodiment, obtaining the self-made audio synthesized according to the trained voice color control model and the target text includes: querying the voice color control model that matches the target speaking object; determining the phoneme sequence corresponding to the target text; synthesizing self-made speech through the voice color control model according to the phoneme sequence; synthesizing the self-made audio according to the self-made speech and the background accompaniment.

[0092] Among them, the voice color control model that matches the target speaking object is a voice color control model trained according to the audio data of the target speaking object, and the voice color of the voice output by this voice color control model is consistent with the voice color of the target speaking object.

[0093] A phoneme is the smallest speech unit divided according to the natural attributes of speech. Taking Chinese syllables as an example: ā (ah) has only one phoneme, ài (love) has two phonemes, dāi (stupid) has three phonemes, etc. The corresponding relationship between characters and phonemes can be stored in the terminal.

[0094] Specifically, after obtaining the target text, the terminal can determine the phoneme sequence corresponding to the target text according to the correspondence between characters and phonemes. The terminal can then input the phoneme sequence corresponding to the target text into the trained timbre control model, and determine the acoustic parameters corresponding to each phoneme through the hidden layer of the timbre control model. Then, the hidden layer of the timbre control model determines the speech waveform unit corresponding to each phoneme according to the acoustic parameters corresponding to each phoneme, and then the output layer of the timbre control model outputs the speech waveform corresponding to the target text according to the speech waveform units corresponding to each phoneme to obtain the self-made speech.

[0095] Among them, the self-made voice output by the timbre control model is the speaking voice of the target speaker without background accompaniment. The terminal can mix the self-made voice and the background accompaniment to obtain self-made audio.

[0096] In this embodiment, the ability of timbre control is learned through the powerful learning ability of the machine learning model, and speech synthesis is performed through the trained timbre control model. Compared with traditional speech synthesis methods, the efficiency of speech synthesis is improved, and the accuracy of speech synthesis is improved.

[0097] In one embodiment, the audio synthesis method further includes the steps of training a timbre control model matching each candidate speaker; the target speaker selects a candidate speaker; and the timbre control model matching each candidate speaker includes: collecting audio materials corresponding to each candidate speaker; determining a phoneme material sequence corresponding to the corresponding candidate speaker based on each audio material; and using the phoneme material sequence corresponding to each candidate speaker to train a timbre control model matching each candidate speaker.

[0098] Specifically, the terminal may collect audio materials corresponding to each candidate speaker. For each candidate speaker, the audio material corresponding to the candidate speaker is segmented to obtain a phoneme sequence sample corresponding to the audio material, and the phoneme sequence sample is used as input data to train the timbre control model to output audio that matches the timbre of the candidate speaker. The terminal may then adjust the model parameters of the timbre control model according to the difference between the output audio and the audio material from which the input phoneme sequence sample comes. After adjusting the parameters, the terminal may continue training until the timbre control model training is completed. In this way, the terminal has trained a matching timbre control model for each candidate speaker.

[0099] After the terminal obtains the timbre control model through training, it can save the timbre control model locally so that it can be obtained and used when the timbre control model is needed. The timbre control model training process can also be performed on the server. After the server completes the training of the timbre control model, it sends the timbre control model to the terminal for use.

[0100] In one embodiment, the terminal can divide the self-made speech into syllables, and usually one syllable represents one character. In this way, the terminal can adjust the time information of each syllable, such as the start time, duration, and pause duration between different syllables, so that the rhythm of the self-made speech conforms to the melody information; the terminal can further adjust the pitch of each syllable, such as the fundamental frequency and sound intensity, so that the melody of the self-made speech conforms to the melody information; thus, a self-made song with the target text as the lyrics, the melody consistent with the target song, and the timbre consistent with the target speaker is obtained.

[0101] In the above-mentioned embodiment, the user can independently select lyrics and tunes, customize songs that meet their expectations, and then use the customized songs as background audio to record videos; or independently select the target timbre to obtain voice that matches the timbre they selected.

[0102] In one embodiment, receiving a selection instruction includes: receiving a selection instruction corresponding to a virtual object additional element; determining a target speaking object corresponding to the virtual object additional element selected by the selection instruction. The audio synthesis method also includes: configuring the self-made audio as background audio; superimposing the virtual object additional element on the captured image to obtain a video frame; and generating a recorded video based on the background audio and the superimposed video frame.

[0103] The virtual object additional element is data whose visual content is the image of the virtual object. The virtual object additional element can be used to be added to the image to modify the image content, such as a virtual object pendant. The virtual object additional element can be dynamic data, such as a dynamic picture, or static data, such as a static picture.

[0104] Specifically, the terminal may provide a list of virtual object additional elements on the interface, and then detect a predefined trigger operation for the displayed virtual object additional elements, trigger a corresponding selection instruction when the trigger operation is detected, and select the virtual object additional element pointed to by the selection instruction. The terminal then uses the virtual object corresponding to the selected virtual object additional element as the target speaking object. Furthermore, the terminal may obtain the target text, convert the target text into self-made audio according to the timbre control model matched by the target speaking object, and then collect images through an image collection device, and superimpose the virtual object additional elements on the collected images to obtain video frames. The terminal may also render the obtained video frames to form a preview screen and record video based on the self-made audio.

[0105] For example, Figure 5 FIG. 1 shows a schematic diagram of an interface for recording a video in an embodiment. Figure 5In the left figure, the interface includes a virtual object additional element list 510 and a text input box entry 520. The user can select from the virtual object additional element list 510, and the terminal obtains the virtual object additional element 511 selected by the user from the virtual object additional element list 510, and uses the virtual object corresponding to the virtual object additional element as the target speaking object. The user can open the text input box 530 through the text input box entry 520, such as Figure 5 As shown in the middle figure, enter the target text in the text input box, or Figure 5 As shown in the right figure, select the target text in the candidate text template.

[0106] In specific scenarios, the terminal can provide a game hero widget on the shooting interface of the video recording application, and allow users to customize a text, and then use the hero's voice to read out the user-defined text, so that the user can directly command the game hero to say what he wants to say. After synthesizing the self-made voice, when recording a video with the self-made voice as the background audio, the user can perform lip syncing, from multiple aspects such as dress, voice and lip shape, to achieve the effect of imitation.

[0107] In one embodiment, receiving a selection instruction includes: receiving a selection instruction for conducting a simulated video call; determining a picture corresponding to a target speaking object selected by the selection instruction. The audio synthesis method also includes: configuring the self-made audio as background audio; generating a call video frame according to the picture and the captured image; and generating a recorded video based on the background audio and the generated call video frame.

[0108] Specifically, the terminal may provide an interactive entrance in the video playback interface. The terminal may perform an interactive interface through the interactive entrance according to user instructions. The terminal may provide a simulated video call entrance in the interactive interface and, after receiving a selection instruction acting on the simulated video call entrance, determine that the target speaking object selected by the selection instruction is the object in the currently playing video, or the user who published the video; then determine the picture corresponding to the target speaking object, generate a call video frame according to the determined picture and the collected image, and generate a video of a video call with the target speaking object based on the background audio and the generated call video frame.

[0109] The terminal can also provide a text input box in the interactive interface, obtain the input target text, convert the target text into a self-made voice according to the timbre information of the determined target speaker, and generate a recorded video with the self-made voice and the generated call video frame. In this way, the user can directly control the call video object to say what the user wants the video call object to say to him.

[0110] For example, Figure 6 FIG. 1 shows a schematic diagram of an interface providing an interactive portal in an embodiment. Figure 6In the left figure, the interface includes a video frame 610 of the currently playing video and an interactive portal 620. The terminal can perform the following operations according to the user's instructions through the interactive portal 620: Figure 6 The interactive interface shown in the right figure. The interactive interface includes a text input box 631 and a simulated video call entry 632. The user can simulate a video call with the object in the video frame 610 through the simulated video call entry 632. The user can enter text through the text input box 631, and the terminal obtains the text entered by the user as the target text to synthesize a self-made voice, and plays the self-made voice during the simulated video call as the simulated video call content.

[0111] Figure 7 FIG. 1 shows a schematic diagram of an interface for simulating a video call in an embodiment. Figure 7 The left picture shows the video call invitation interface. The video call invitation interface includes an image 711 corresponding to the target speaking party. The user can make a simulated video call through the video call answering portal. The terminal can also enter the video call interface after rendering the video call invitation interface for a preset time. Figure 7 The right picture is a video call interface, which includes a picture 721 corresponding to the target speaking object (video object) and a captured image 722, simulating a scene of a video call with the target speaking object.

[0112] In specific scenarios, the terminal can provide the "star says your name" gameplay in the video recording application. When the user is watching a video, a pop-up window will appear to guide the user to enter the name. According to the instructions, you can enter a text of 2-4 characters. The entered text will first be given to the server for security identification. If the text meets the regulations, the text entered by the user and the star corpus will be processed for speech synthesis. The synthesized self-made voice is returned to the terminal. The terminal responds to the jump behavior, jumps to the shooting page, and loads the material of the star's call (video call invitation interface). After the material is loaded successfully, you can see the page of the star's call. The star will read the text just entered in the video (that is, play the self-made voice). At the same time, the user will appear in the upper right corner of the shooting interface in the form of a small window, achieving the effect of being on the same screen with the star. Press the shooting button to get a unique star on the same screen video.

[0113] It should be understood that, although each step in the flow chart of the above-mentioned embodiments is shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a part of the steps in the above-mentioned embodiments may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0114] like Figure 8 As shown, in one embodiment, an audio synthesis device 800 is provided. Figure 8 The audio synthesis device 800 includes: an acquisition module 801, a determination module 802 and a playback module 803.

[0115] The acquisition module 801 is used to acquire the target text.

[0116] The determination module 802 is used to determine the target song selected by the selection instruction.

[0117] The acquisition module 801 is also used to acquire a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics.

[0118] The playing module 803 is used to play self-made songs.

[0119] In one embodiment, the acquisition module 801 is also used to send the target text and the song identifier of the target song to the server; the target text and the song identifier are used to instruct the server to synthesize a self-made song according to the trained melody control model, the target text and the melody information after finding the melody information corresponding to the song identifier; and receive the self-made song fed back by the server.

[0120] In one embodiment, the acquisition module 801 is also used to query the melody information matching the target song; the target text and the melody information are input into the melody control model, and the melody features corresponding to each character in the target text are determined according to the melody information through the hidden layer of the melody control model; and the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features is output through the output layer of the melody control model.

[0121] In one embodiment, the audio synthesis device 800 further includes a training module 804 for training a melody control model; specifically for collecting candidate song audios corresponding to the candidate songs; determining the candidate song melody corresponding to each candidate song based on the collected candidate song audios; obtaining text samples; and training the melody control model based on the text samples and the candidate song melody. The target song is selected from the candidate songs.

[0122] In one embodiment, the determination module 802 is also used to determine the target speaking object; the acquisition module 801 is also used to query the melody control model corresponding to the target speaking object; a homemade song is synthesized based on the queried melody control model, the target text and the melody information of the target song; the timbre of the homemade song conforms to the target speaking object.

[0123] like Fig. 9 As shown, in one embodiment, the audio synthesis device 800 further includes a training module 804 and a recording module 805 .

[0124] The recording module 805 is used to configure the self-made song as the background audio; and record the video based on the background audio.

[0125] In one embodiment, the acquisition module 801 is also used to receive a selection instruction; when the selection instruction selects a target song, the acquisition module 801 is also used to acquire a homemade song synthesized according to the trained melody control model, the target text and the melody information of the target song; when the selection instruction selects a target speaking object, the acquisition module 801 is also used to acquire a homemade audio synthesized according to the trained timbre control model and the target text; the timbre control model matches the target speaking object.

[0126] In one embodiment, the training module 804 is also used to train the timbre control model matching each candidate speaker; specifically, to collect audio materials corresponding to each candidate speaker; determine the phoneme material sequence corresponding to the corresponding candidate speaker according to each audio material; and use the phoneme material sequence corresponding to each candidate speaker to train the timbre control model matching each candidate speaker. The target speaker is selected from the candidate speaker.

[0127] In one embodiment, the acquisition module 801 is also used to query the timbre control model that matches the target speaker; determine the phoneme sequence corresponding to the target text; synthesize the self-made speech according to the phoneme sequence through the timbre control model; and synthesize the self-made audio according to the self-made speech and background accompaniment.

[0128] In one embodiment, the acquisition module 801 is further used to receive a selection instruction corresponding to the virtual object additional element; determine the target speaking object corresponding to the virtual object additional element selected by the selection instruction. The recording module 805 is further used to configure the self-made audio as background audio; superimpose the virtual object additional element on the captured image to obtain a video frame; and generate a recorded video based on the background audio and the superimposed video frame.

[0129] In one embodiment, the acquisition module 801 is further used to receive a selection instruction for making a simulated video call; determine the picture corresponding to the target speaking object selected by the selection instruction. The recording module 805 is further used to configure the self-made audio as background audio; generate a call video frame according to the picture and the collected image; and generate a recorded video based on the background audio and the generated call video frame.

[0130] Fig.10 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The terminal 110 in FIG. Fig.10 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected via a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement an audio synthesis method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute an audio synthesis method. The display screen of the computer device may be a liquid crystal display or an electronic ink display, etc. The input device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc. Those skilled in the art will appreciate that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0131] In one embodiment, the audio synthesis device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.10 The non-volatile storage medium of the computer device can store various program modules constituting the audio synthesis device, for example, Figure 8The acquisition module 801, determination module 802, synthesis module 803, configuration module 804 and recording module 805 are shown. The computer program composed of various program modules enables the processor to execute the steps of the audio synthesis method of each embodiment of the present application described in this specification.

[0132] For example, Fig.10 The computer device shown can be Figure 8 The acquisition module 801 in the audio synthesis device 800 shown acquires the target text. The target song selected by the selection instruction is determined by the determination module 802. The acquisition module 801 acquires a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics. The self-made song is played by the playing module 803.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the following steps: obtaining a target text; determining a target song selected by a selection instruction; obtaining a self-made song synthesized according to a trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics; and playing the self-made song.

[0134] In one embodiment, a self-made song synthesized according to a trained melody control model, a target text, and the melody information of a target song is obtained, including: sending the target text and the song identifier of the target song to a server; the target text and the song identifier are used to instruct the server to synthesize the self-made song according to the trained melody control model, the target text, and the melody information after finding the melody information corresponding to the song identifier; and receiving the self-made song fed back by the server.

[0135] In one embodiment, a self-made song synthesized according to a trained melody control model, a target text, and the melody information of a target song is obtained, including: querying the melody information matching the target song; inputting the target text and the melody information into the melody control model, and determining the melody features corresponding to each character in the target text according to the melody information through the hidden layer of the melody control model; and outputting the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features through the output layer of the melody control model.

[0136] In one embodiment, the computer program further causes the processor to perform the following steps: training a melody control model; wherein the target song is selected from the candidate songs. Training the melody control model includes: collecting candidate song audio corresponding to the candidate songs; determining the candidate song melody corresponding to each candidate song based on the collected candidate song audio; obtaining text samples; and training the melody control model based on the text samples and the candidate song melody.

[0137] In one embodiment, the computer program further causes the processor to perform the following steps: determining a target speaker. Obtaining a self-made song synthesized according to the trained tune control model, the target text, and the tune information of the target song, including: querying the tune control model corresponding to the target speaker; synthesizing the self-made song according to the queried tune control model, the target text, and the tune information of the target song; the timbre of the self-made song conforms to the target speaker.

[0138] In one embodiment, the computer program further causes the processor to perform the following steps: configuring the self-made song as background audio; and recording a video based on the background audio.

[0139] In one embodiment, the computer program also causes the processor to perform the following steps: receiving a selection instruction; when the selection instruction selects a target song, executing the step of obtaining a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; when the selection instruction selects a target speaking object, obtaining a self-made audio synthesized according to the trained timbre control model and the target text; and matching the timbre control model with the target speaking object.

[0140] In one embodiment, the computer program further causes the processor to perform the following steps: training a timbre control model matching each candidate speaker; wherein the target speaker is selected from the candidate speaker. Training a timbre control model matching each candidate speaker includes: collecting audio materials corresponding to each candidate speaker; determining a phoneme material sequence corresponding to the corresponding candidate speaker according to each audio material; and using the phoneme material sequence corresponding to each candidate speaker to train a timbre control model matching each candidate speaker.

[0141] In one embodiment, obtaining a self-made audio synthesized according to a trained timbre control model and a target text includes: querying a timbre control model that matches a target speaker; determining a phoneme sequence corresponding to the target text; synthesizing a self-made voice according to the phoneme sequence through the timbre control model; and synthesizing a self-made audio according to the self-made voice and background accompaniment.

[0142] In one embodiment, receiving a selection instruction includes: receiving a selection instruction corresponding to a virtual object additional element; determining a target speaking object corresponding to the virtual object additional element selected by the selection instruction. The computer program also causes the processor to perform the following steps: configuring the self-made audio as background audio; superimposing the virtual object additional element on the captured image to obtain a video frame; and generating a recorded video based on the background audio and the superimposed video frame.

[0143] In one embodiment, receiving a selection instruction includes: receiving a selection instruction for conducting a simulated video call; determining a picture corresponding to a target speaking object selected by the selection instruction. The computer program also causes the processor to perform the following steps: configuring the self-made audio as background audio; generating a call video frame based on the picture and the captured image; and generating a recorded video based on the background audio and the generated call video frame.

[0144] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the following steps: obtaining a target text; determining a target song selected by a selection instruction; obtaining a self-made song synthesized according to a trained melody control model, the target text and the melody information of the target song; the self-made song uses the target text as lyrics; and playing the self-made song.

[0145] In one embodiment, a self-made song synthesized according to a trained melody control model, a target text, and the melody information of a target song is obtained, including: sending the target text and the song identifier of the target song to a server; the target text and the song identifier are used to instruct the server to synthesize the self-made song according to the trained melody control model, the target text, and the melody information after finding the melody information corresponding to the song identifier; and receiving the self-made song fed back by the server.

[0146] In one embodiment, a self-made song synthesized according to a trained melody control model, a target text, and the melody information of a target song is obtained, including: querying the melody information matching the target song; inputting the target text and the melody information into the melody control model, and determining the melody features corresponding to each character in the target text according to the melody information through the hidden layer of the melody control model; and outputting the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features through the output layer of the melody control model.

[0147] In one embodiment, the computer program further causes the processor to perform the following steps: training a melody control model; wherein the target song is selected from the candidate songs. Training the melody control model includes: collecting candidate song audio corresponding to the candidate songs; determining the candidate song melody corresponding to each candidate song based on the collected candidate song audio; obtaining text samples; and training the melody control model based on the text samples and the candidate song melody.

[0148] In one embodiment, the computer program further causes the processor to perform the following steps: determining a target speaker. Obtaining a self-made song synthesized according to the trained tune control model, the target text, and the tune information of the target song, including: querying the tune control model corresponding to the target speaker; synthesizing the self-made song according to the queried tune control model, the target text, and the tune information of the target song; the timbre of the self-made song conforms to the target speaker.

[0149] In one embodiment, the computer program further causes the processor to perform the following steps: configuring the self-made song as background audio; and recording a video based on the background audio.

[0150] In one embodiment, the computer program also causes the processor to perform the following steps: receiving a selection instruction; when the selection instruction selects a target song, executing the step of obtaining a self-made song synthesized according to the trained melody control model, the target text and the melody information of the target song; when the selection instruction selects a target speaking object, obtaining a self-made audio synthesized according to the trained timbre control model and the target text; and matching the timbre control model with the target speaking object.

[0151] In one embodiment, the computer program further causes the processor to perform the following steps: training a timbre control model matching each candidate speaker; wherein the target speaker is selected from the candidate speaker. Training a timbre control model matching each candidate speaker includes: collecting audio materials corresponding to each candidate speaker; determining a phoneme material sequence corresponding to the corresponding candidate speaker according to each audio material; and using the phoneme material sequence corresponding to each candidate speaker to train a timbre control model matching each candidate speaker.

[0152] In one embodiment, obtaining a self-made audio synthesized according to a trained timbre control model and a target text includes: querying a timbre control model that matches a target speaker; determining a phoneme sequence corresponding to the target text; synthesizing a self-made voice according to the phoneme sequence through the timbre control model; and synthesizing a self-made audio according to the self-made voice and background accompaniment.

[0153] In one embodiment, receiving a selection instruction includes: receiving a selection instruction corresponding to a virtual object additional element; determining a target speaking object corresponding to the virtual object additional element selected by the selection instruction. The computer program also causes the processor to perform the following steps: configuring the self-made audio as background audio; superimposing the virtual object additional element on the captured image to obtain a video frame; and generating a recorded video based on the background audio and the superimposed video frame.

[0154] In one embodiment, receiving a selection instruction includes: receiving a selection instruction for conducting a simulated video call; determining a picture corresponding to a target speaking object selected by the selection instruction. The computer program also causes the processor to perform the following steps: configuring the self-made audio as background audio; generating a call video frame based on the picture and the captured image; and generating a recorded video based on the background audio and the generated call video frame.

[0155] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0157] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.

Claims

1. An audio synthesis method, include: Displaying a background audio configuration interface of a video recording application in response to a user instruction; On the background audio configuration interface, a text input box, a text template list and candidate songs are displayed; Acquire the target text input through the text input box, or acquire the target text selected from the text template list; determine the target song selected from the candidate songs through the selection instruction; receiving a selection instruction; When the target song is selected by the selection instruction, the target text and the melody information of the target song are input into the trained melody control model; the melody matching is performed on each character in the target text through the hidden layer of the melody control model to determine the corresponding melody features of each character; and the self-made song obtained by performing speech synthesis on each character in the target text according to the corresponding melody features is output through the output layer of the melody control model; the self-made song uses the target text as lyrics; playing the self-made song; When the target speaker is selected by the selection instruction, a self-made audio synthesized according to the trained timbre control model and the target text is obtained; The timbre control model is matched with the target speaker; configuring the self-made song or the self-made audio as background audio; Display the video recording page; play the background audio and capture images to record the video in response to user instructions.

2. The method according to claim 1, It is characterized in that The method further comprises: Sending the target text and the song identifier of the target song to a server; Searching for melody information corresponding to the song identifier through the server; The method comprises: inputting the melody information of the target text and the target song into a trained melody control model; performing melody matching on each character in the target text through a hidden layer of the melody control model to determine the melody features corresponding to each character; and outputting a self-made song obtained by performing speech synthesis on each character in the target text according to the corresponding melody features through an output layer of the melody control model, including: The target text and the melody information are input into the trained melody control model through the server; the melody matching is performed on each character in the target text through the hidden layer of the melody control model to determine the corresponding melody features of each character; and the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features is output through the output layer of the melody control model; and the self-made song fed back by the server is received.

3. The method according to claim 1, It is characterized in that The method further comprises the step of training a tune control model; the target song is selected from candidate songs; The training tune control model comprises: Collect candidate song audios corresponding to the candidate songs; Determine the candidate song tune corresponding to each candidate song according to the collected candidate song audio; Get a sample of text; The melody control model is obtained by training according to the text sample and the candidate song melody.

4. The method according to claim 1, It is characterized in that The method further comprises the step of training a timbre control model matching each candidate speaker; the target speaker is selected from the candidate speaker; The training of the timbre control model matching each candidate speaker includes: Collecting audio materials corresponding to each candidate speaker; Determine the phoneme material sequence corresponding to the corresponding candidate speaker according to each audio material; The phoneme material sequence corresponding to each candidate speaker is used to train a timbre control model matching each candidate speaker.

5. The method according to claim 1, It is characterized in that The step of obtaining the self-made audio synthesized according to the trained timbre control model and the target text comprises: Querying a timbre control model that matches the target speaker; Determining a phoneme sequence corresponding to the target text; synthesizing self-made speech according to the phoneme sequence by means of the timbre control model; A self-made audio is synthesized according to the self-made voice and the background accompaniment.

6. The method according to claim 1, It is characterized in that The receiving selection instruction comprises: receiving a selection instruction corresponding to an additional element of the virtual object; Determining a target speaking object corresponding to the virtual object additional element selected by the selection instruction; The method further comprises: configuring the self-made audio as background audio; Superimposing the virtual object additional elements onto the captured image to obtain a video frame; A recorded video is generated based on the background audio and the superimposed video frames.

7. The method according to claim 1, It is characterized in that The receiving selection instruction comprises: receiving a selection instruction for making a simulated video call; Determine the picture corresponding to the target speaking object selected by the selection instruction; The method further comprises: configuring the self-made audio as background audio; generating a call video frame according to the picture and the collected image; A recorded video is generated based on the background audio and the generated call video frame.

8. An audio synthesis device, include: An acquisition module, configured to display a background audio configuration interface of a video recording application in response to a user instruction; On the background audio configuration interface, a text input box, a text template list and candidate songs are displayed; a target text input through the text input box is obtained, or a target text selected from the text template list is obtained; A determination module, used for determining a target song selected from the candidate songs by a selection instruction; The acquisition module is also used to receive a selection instruction; when the selection instruction selects a target song, the target text and the melody information of the target song are input into a trained melody control model; the melody matching is performed on each character in the target text through the hidden layer of the melody control model to determine the corresponding melody features of each character, and the self-made song obtained by performing speech synthesis on each character in the target text according to the corresponding melody features is output through the output layer of the melody control model; the self-made song uses the target text as lyrics; A playing module, used for playing the self-made song; The acquisition module is further used to acquire the self-made audio synthesized according to the trained timbre control model and the target text when the selection instruction selects the target speaker; The timbre control model is matched with the target speaker; A recording module, used for configuring the self-made song or the self-made audio as background audio; Display the video recording page; In response to user instructions, the background audio is played and images are captured and video is recorded.

9. The device according to claim 8, It is characterized in that The acquisition module is also used for: The target text and the song identifier of the target song are sent to a server; the melody information corresponding to the song identifier is searched through the server; the target text and the melody information are input into a trained melody control model through the server; the melody matching is performed on each character in the target text through the hidden layer of the melody control model to determine the corresponding melody features of each character, and the self-made song obtained by speech synthesis of each character in the target text according to the corresponding melody features is output through the output layer of the melody control model; and the self-made song fed back by the server is received.

10. The device according to claim 8, It is characterized in that The device also includes a training module for: training a melody control model; The training module is also used to: Collect candidate song audios corresponding to the candidate songs; Determine the candidate song tune corresponding to each candidate song according to the collected candidate song audio; Get text samples; The melody control model is obtained by training according to the text sample and the melody of the candidate song; wherein the target song is selected from the candidate song.

11. The device according to claim 8, It is characterized in that The device also includes a training module for training a timbre control model that matches each candidate speaker; The training module is also used to: Collecting audio materials corresponding to each candidate speaker; Determine the phoneme material sequence corresponding to the corresponding candidate speaker according to each audio material; The phoneme material sequences corresponding to the candidate speakers are used to train the timbre control models matching the candidate speakers, wherein the target speaker is selected from the candidate speakers.

12. The device according to claim 8, It is characterized in that The acquisition module is also used for: Query a timbre control model that matches the target speaker; determine a phoneme sequence corresponding to the target text; synthesize a self-made voice according to the phoneme sequence through the timbre control model; and synthesize a self-made audio according to the self-made voice and background accompaniment.

13. The device according to claim 8, It is characterized in that The acquisition module is further used for: receiving a selection instruction corresponding to an additional element of the virtual object; Determining a target speaking object corresponding to the virtual object additional element selected by the selection instruction; The recording module is also used for: configuring the self-made audio as background audio; Superimposing the virtual object additional elements onto the captured image to obtain a video frame; A recorded video is generated based on the background audio and the superimposed video frames.

14. The device according to claim 8, It is characterized in that The acquisition module is also used for: receiving a selection instruction for making a simulated video call; Determine the picture corresponding to the target speaking object selected by the selection instruction; The recording module is also used for: configuring the self-made audio as background audio; generating a call video frame according to the picture and the collected image; A recorded video is generated based on the background audio and the generated call video frame.

15. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor is caused to execute the steps of the method according to any one of claims 1 to 7.

16. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Music generation method, music generation apparatus and computer-readable storage medium

    US12567395B2