Audio production method, device, equipment and storage medium

By receiving user lyrics editing operations on the audio editing interface, and using the target timbre and acoustic model to generate new vocal audio, it solves the complex audio editing problems in the existing technology, achieves rapid generation of new songs, and improves editing efficiency.

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

Patent Information

Application Number
CN202010753002.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-30
Publication Date
2024-08-23
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

In the existing technology, users need to have professional audio editing capabilities, and the audio production steps are complicated, making it difficult to simply and quickly modify song lyrics and generate new songs.

Method used

Provides an audio production method that receives the user's lyrics editing operation on the audio editing interface, generates adapted songs based on the changed lyrics and original songs, simplifies the operation steps, and uses the target timbre and acoustic model to generate new vocal audio, Synthesize new audio.

Benefits of technology

Users can modify song lyrics with one click to quickly generate new songs, which simplifies the audio editing process, improves the efficiency of audio editing, and reduces the requirements for professional audio editing skills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111899706B
    Figure CN111899706B
Patent Text Reader

Abstract

The present application discloses an audio production method, device, equipment and storage medium, belonging to the field of audio processing technology. The method comprises: displaying an audio editing interface of a first audio, the audio editing interface comprising at least one line of lyrics and a lyrics editing control of the first audio, the at least one line of lyrics comprising the first lyrics; receiving a lyrics editing operation on the first lyrics on the lyrics editing control, the lyrics editing operation comprising inputting a second lyrics; replacing the first lyrics in the first audio with the second lyrics, generating a second audio, the second audio comprising a human voice audio generated according to the second lyrics. The method can simplify the steps of producing audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of multimedia technology, and in particular to an audio production method, device, equipment and storage medium. Background Art

[0002] When a user hears a song they like on an audio software, they may want to create something based on the song, for example, by changing the lyrics of the song to create their own music.

[0003] In the related art, if a user wants to re-create a song, he needs to use professional audio editing software, separate the accompaniment and vocals of the song according to professional audio editing methods, then re-edit the accompaniment or vocals, and then synthesize the edited vocals and accompaniment to get a new song.

[0004] The song production method in the related art requires the user to have professional audio editing capabilities, and the steps of audio production are too complicated. Summary of the invention

[0005] The embodiment of the present invention provides an audio production method, device, equipment and storage medium, which can simplify the audio production steps. The technical solution is as follows:

[0006] In one aspect, a method for producing an audio file is provided, the method comprising:

[0007] Displaying an audio editing interface of a first audio, wherein the audio editing interface includes at least one line of lyrics of the first audio and a lyrics editing control, wherein the at least one line of lyrics includes the first lyrics;

[0008] Receiving a lyrics editing operation on the first lyrics on the lyrics editing control, the lyrics editing operation comprising inputting a second lyric;

[0009] The first lyrics in the first audio are replaced with the second lyrics to generate second audio, where the second audio includes vocal audio generated according to the second lyrics.

[0010] Optionally, the method further comprises:

[0011] Acquire a target timbre, wherein the target timbre is used to generate the vocal audio;

[0012] The step of replacing the first lyrics in the first audio with the second lyrics to generate a second audio comprises:

[0013] The first lyrics in the first audio are replaced with the second lyrics according to the target timbre to generate the second audio.

[0014] Optionally, the replacing the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio includes:

[0015] generating the vocal audio including the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio;

[0016] Acquire a template audio of the first audio, wherein the template audio includes at least one of an accompaniment audio and a main melody audio;

[0017] The second audio is generated according to the template audio and the human voice audio.

[0018] Optionally, generating the vocal audio including the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio includes:

[0019] Inputting the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into an acoustic model to obtain a mel spectrum;

[0020] A vocoder is called to convert the Mel spectrum into the human voice audio.

[0021] Optionally, the second audio includes:

[0022] The duration of the audio is shorter than that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0023] or,

[0024] The duration of the audio is equal to that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0025] or,

[0026] The duration of the audio is shorter than that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre;

[0027] or,

[0028] The audio duration is equal to the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre.

[0029] Optionally, the method further comprises:

[0030] Acquire training data, the training data comprising at least one of: phonemes of training lyrics, notes of the training lyrics, phoneme position information of the training lyrics, note position information of the training lyrics, timbre identification of training audio, and mel spectrum of the training audio;

[0031] The acoustic model is obtained by training an initial model according to the training data.

[0032] Optionally, the method further comprises:

[0033] Display an audio playback interface of the second audio, wherein the audio playback interface includes a playback control;

[0034] In response to receiving a play operation that triggers the play control, the second audio is played.

[0035] Optionally, obtaining the target timbre includes:

[0036] Displaying a timbre selection interface, wherein the timbre selection interface includes at least one candidate timbre and a selection control;

[0037] In response to receiving a selection operation that triggers the selection control, determining the target timbre from the candidate timbre according to the selection operation;

[0038] After replacing the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio including the second lyrics, the method further includes:

[0039] Play the second audio.

[0040] In another aspect, an audio production device is provided, the device comprising:

[0041] A display module, configured to display an audio editing interface of a first audio, wherein the audio editing interface includes at least one line of lyrics of the first audio and a lyrics editing control, wherein the at least one line of lyrics includes the first lyrics;

[0042] An interactive module, configured to receive a lyrics editing operation on the first lyrics on the lyrics editing control, wherein the lyrics editing operation includes inputting a second lyrics;

[0043] A generation module is used to replace the first lyrics in the first audio with the second lyrics to generate a second audio, wherein the second audio includes a vocal audio generated according to the second lyrics.

[0044] Optionally, the device further comprises:

[0045] An acquisition module, used for acquiring a target timbre, wherein the target timbre is used for generating the human voice audio;

[0046] The generating module is further used to replace the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio.

[0047] Optionally, the generating module is further used to generate the vocal audio containing the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio;

[0048] The acquisition module is further used to acquire a template audio of the first audio, wherein the template audio includes at least one of an accompaniment audio and a main melody audio;

[0049] The generation module is also used to generate the second audio according to the template audio and the human voice audio.

[0050] Optionally, the generating module includes:

[0051] A model submodule, for inputting the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into an acoustic model to obtain a Mel spectrum;

[0052] The vocoder submodule is used to call the vocoder to convert the Mel spectrum into the human voice audio.

[0053] Optionally, the second audio includes:

[0054] The duration of the audio is shorter than that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0055] or,

[0056] The duration of the audio is equal to that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0057] or,

[0058] The duration of the audio is shorter than that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre;

[0059] or,

[0060] The audio duration is equal to the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre.

[0061] Optionally, the device further comprises:

[0062] The acquisition module is further used to acquire training data, wherein the training data includes at least one of: phonemes of training lyrics, notes of the training lyrics, phoneme position information of the training lyrics, note position information of the training lyrics, timbre identification of training audio, and Mel spectrum of the training audio;

[0063] A training module is used to train an initial model according to the training data to obtain the acoustic model.

[0064] Optionally, the device further comprises:

[0065] The display module is further used to display an audio playback interface of the second audio, wherein the audio playback interface includes a playback control;

[0066] The interaction module is further used to receive a play operation that triggers the play control;

[0067] A playing module is used to play the second audio in response to receiving a playing operation that triggers the playing control.

[0068] Optionally, the device further comprises:

[0069] The display module is further used to display a timbre selection interface, wherein the timbre selection interface includes at least one candidate timbre and a selection control;

[0070] The interaction module is further used to receive a selection operation that triggers the selection control;

[0071] The acquisition module is further configured to, in response to receiving a selection operation that triggers the selection control, determine the target timbre from the candidate timbre according to the selection operation.

[0072] A playing module is used to play the second audio.

[0073] On the other hand, a computer device is provided, comprising: a processor and a memory, wherein instructions are stored in the memory, and when the instructions are executed by the processor, the above-mentioned audio production method is implemented.

[0074] On the other hand, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, the above-mentioned audio production method is implemented.

[0075] On the other hand, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to perform the above audio production method.

[0076] The technical solution provided by the embodiment of the present invention has the following beneficial effects:

[0077] By receiving changes to song lyrics from users in the audio editing interface and generating an adapted song based on the user's changed lyrics and the original song, users can quickly generate new songs by modifying the lyrics of a song with one click, simplifying the steps for users to generate audio and improving the efficiency of audio editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0079] Figure 1 is a structural block diagram of a computer system according to an exemplary embodiment;

[0080] Figure 2 is a flow chart of an audio production method according to another exemplary embodiment;

[0081] Figure 3 is a schematic diagram of an audio editing interface according to another exemplary embodiment;

[0082] Figure 4 is a flow chart of an audio production method according to another exemplary embodiment;

[0083] Figure 5 is a schematic diagram of a tone selection interface according to another exemplary embodiment;

[0084] Figure 6 is a flow chart of an audio production method according to another exemplary embodiment;

[0085] Figure 7 is a flow chart of an audio production method according to another exemplary embodiment;

[0086] Figure 8 is a flow chart of an acoustic model training method according to another exemplary embodiment;

[0087] Fig. 9 is a structural schematic diagram of an audio production device according to another exemplary embodiment;

[0088] Fig.10 is a schematic structural diagram of a terminal according to another exemplary embodiment. DETAILED DESCRIPTION

[0089] To make the objectives, technical solutions, and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0090] Before introducing the embodiments of the present invention in detail, the application scenarios and implementation environments related to the embodiments of the present invention will be briefly introduced.

[0091] First, a brief explanation of the terms related to the embodiments of the present invention will be given.

[0092] User Interface (UI) controls are any visible controls or elements that can be seen on the user interface of an application, such as pictures, input boxes, text boxes, buttons, labels, and other controls. Some of these UI controls respond to user operations. For example, when a user triggers an editing control, text can be input. The UI controls involved in the embodiments of this application include, but are not limited to, lyric editing controls, playback controls, and selection controls.

[0093] Phoneme: The smallest speech unit divided according to the natural attributes of speech. Analyzing based on the pronunciation actions in a syllable, one action constitutes one phoneme. Phonemes are divided into two major categories: vowels and consonants. For example, the Chinese syllable "ā" has only one phoneme, "ài" has two phonemes, and "dài" has three phonemes, etc. A phoneme is the smallest unit or the smallest speech segment that constitutes a syllable, and it is the smallest linear speech unit divided from the perspective of speech quality. A phoneme is a specific physical phenomenon. The phonetic symbols of the International Phonetic Alphabet (developed by the International Phonetic Association to uniformly mark the phonetic sounds of various countries, also known as the "International Phonetic Alphabet" or the "Universal Phonetic Alphabet") correspond one-to-one with the phonemes of all human languages. Phonemes are generally marked with the International Phonetic Alphabet (IPA). The International Phonetic Alphabet is a commonly used phonetic notation internationally. It was developed and published by the International Phonetic Association in 1888 and has been revised many times. When using the International Phonetic Alphabet to mark the details of phonemes in terms of pronunciation, [ ] is used, and / / is used to mark phonemes. Phonemes are generally divided into two major categories: vowels and consonants.

[0094] Then, the real-time environment related to the embodiments of the present invention will be briefly introduced.

[0095] Refer to Figure 1 , which shows a schematic structural diagram of a computer system provided by an exemplary embodiment of the present application. The computer system includes a terminal 120 and a server 140. The terminal 120 and the server 140 are connected to each other through a wired or wireless network.

[0096] Optionally, the terminal 120 may be at least one of a laptop computer, a desktop computer, a smart phone, a tablet computer, a smart speaker, and a smart robot.

[0097] The terminal 120 includes a first memory and a first processor. A first program is stored in the first memory; the first program is called and executed by the first processor to implement the audio production method. The first memory may include but is not limited to the following: Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electric Erasable Programmable Read-Only Memory (EEPROM).

[0098] The first processor may be composed of one or more integrated circuit chips. Optionally, the first processor may be a general-purpose processor, such as a central processing unit (CPU) or a network processor (NP). Optionally, the first processor may implement the audio production method or acoustic model training method provided in the present application.

[0099] The server 140 includes a second memory and a second processor. A second program is stored in the second memory, and the second program is called by the second processor to implement the audio production method provided in the present application. Exemplarily, a second program is stored in the second memory; the second program is called and executed by the second processor to implement the audio production method. Optionally, the second memory may include but is not limited to the following: RAM, ROM, PROM, EPROM, EEPROM. Optionally, the second processor may be a general-purpose processor, such as a CPU or NP.

[0100] Illustratively, the audio production method provided in this application can be applied to scenarios such as song adaptation, song production, and song preview.

[0101] The audio production method provided in the embodiment of the present invention can be executed by a terminal, or by a terminal and a server; the terminal has an audio production function, and further, the terminal also has an audio playback function. In some embodiments, the terminal can be a mobile phone, a tablet computer, a desktop computer, a portable computer, etc., which is not limited in the embodiment of the present invention.

[0102] Figure 2FIG. 1 is a flowchart of an audio production method according to another exemplary embodiment. This embodiment is described by taking the audio production method applied to a terminal as an example. The audio production method may include the following steps:

[0103] Step 210, displaying an audio editing interface of the first audio, the audio editing interface including at least one line of lyrics of the first audio and a lyrics editing control, the at least one line of lyrics including the first lyrics.

[0104] The audio editing interface is used to edit the first audio. Exemplarily, an audio selection interface may be included before the audio editing interface, and the audio selection interface is used to determine the target audio that needs to be edited. Exemplarily, in this embodiment, the user selects to edit the first audio as an example for explanation.

[0105] Exemplarily, the audio editing interface is used to display the audio information of the first audio. The audio information includes at least one of the lyrics of the first audio, MV (Music Video), audio track, music score, pitch map (used to identify the pitch of the main melody), time domain signal, frequency domain signal, audio producer information, related pictures (album cover, singer picture, etc.), playback progress bar, and audio duration.

[0106] Exemplarily, the audio editing interface further includes editing controls for editing the first audio. The editing controls include at least one of lyrics editing controls, pitch editing controls, music score editing controls, reset controls, audition controls, completion controls, save controls, timbre selection controls, sharing controls, and clipping controls (selection controls).

[0107] Exemplarily, the lyrics editing control is used to edit the lyrics of the first audio. Optionally, the lyrics editing control is used to display a lyrics editing interface after being triggered, in which the user can enter lyrics, and the client receives the lyrics entered by the user in the lyrics editing interface. Exemplarily, the lyrics editing interface can be a new user interface, or it can refer to an editing interface located above the audio editing interface; the lyrics editing interface includes an editing box, and the editing box is used to receive text information entered by the user. Exemplarily, each sentence of the lyrics of the first audio corresponds to a lyrics editing control. After receiving the trigger operation on the lyrics editing control, the client displays the lyrics editing interface of the corresponding lyrics. Exemplarily, a section of the lyrics of the first audio corresponds to a lyrics editing control. After receiving the trigger operation on the lyrics editing control, the client displays the lyrics editing interface of the corresponding paragraph of lyrics, in which the user can edit the lyrics. Exemplarily, there can also be only one lyrics editing control. After receiving the trigger operation on the lyrics editing control, the client displays the lyrics editing interface of the entire first audio, in which the user can edit all the lyrics of the first audio. Exemplarily, the lyrics editing control can be an invisible UI control set on the audio editing interface and bound to the lyrics. The user can trigger the lyrics editing control corresponding to the lyrics by clicking, double-clicking, or long pressing the lyrics or the area corresponding to the lyrics, and enter the lyrics editing interface of the lyrics. Exemplarily, the lyrics editing control can also be a visible icon on the audio editing interface, and the user can trigger the lyrics editing control by clicking, double-clicking, or long pressing, and enter the lyrics editing interface.

[0108] Exemplarily, the tone editing control is used to edit the tone of the first audio, for example, to adjust the pitch of the human voice audio corresponding to a certain line of lyrics in the first audio. Exemplarily, the score editing control is used to edit the main melody score or accompaniment score or human voice tone of the first audio. The timbre selection control is used to select the timbre of the human voice for generating the second audio. Exemplarily, the client provides the user with the timbre of different singers, from which the user can select the favorite timbre to generate a new song. For example, the timbre of the singer includes: youth voice, loli voice, royal sister voice, uncle voice, etc. Exemplarily, the reset control is used to clear the user's historical editing operations on the first audio, so that the user can re-edit the first audio. The audition control is used to play the second audio obtained according to the user's modification of the first audio. The completion control is used to complete this audio editing and generate the second audio. The save control is used to save the generated second audio. The share control is used to share the second audio. The clip control user selects a part of the audio clip from the first audio and generates the second audio based on the audio clip.

[0109] Exemplarily, the first audio is the audio of a song. Exemplarily, the first audio includes at least one of vocal audio, main melody audio, and accompaniment audio. The vocal audio is the audio of the lyrics of the first audio. The main melody audio is the audio of the main melody tone of the first audio. Exemplarily, the first audio is the audio synthesized by at least two of the vocal audio, main melody audio, and accompaniment audio. Exemplarily, the first audio corresponds to at least one line of lyrics, and the lyrics refer to the text information sung by the first audio.

[0110] For example, Figure 3 As shown, an audio editing interface for a first audio is provided, in which the lyrics 301 of the first audio and a lyrics editing control 302 corresponding to the first lyrics are displayed. When the client receives a trigger operation on the lyrics editing control 302, a lyrics editing interface 303 of the first lyrics is displayed, and the user can enter the second lyrics on the lyrics editing interface 303 to replace the first lyrics.

[0111] Step 230, receiving a lyrics editing operation on the first lyrics on the lyrics editing control, the lyrics editing operation including inputting a second lyric.

[0112] Exemplarily, the client receives a lyric editing operation of a user on a lyric editing control for a first lyric. Exemplarily, the user calls out a lyric editing interface for the first lyric through the lyric editing control, and the client receives a second lyric input by the user in the lyric editing interface.

[0113] Exemplarily, the number of words in the second lyrics may be the same as or different from the first lyrics. Exemplarily, in order to ensure the audio effect of the second audio generated according to the second lyrics, the number of words in the second lyrics input by the user may be limited, for example, the number of words in the second lyrics may be limited to five words above or below the number of words in the first lyrics.

[0114] Exemplarily, the first lyrics may be at least one line of lyrics in the first audio, and correspondingly, the second lyrics may be at least one line of lyrics corresponding to the first lyrics.

[0115] Step 250, replace the first lyrics in the first audio with the second lyrics to generate the second audio, wherein the second audio includes the vocal audio generated according to the second lyrics.

[0116] The client replaces the vocal audio segment corresponding to the first lyrics in the first audio with the vocal audio segment of the second lyrics according to the second lyrics input by the user, thereby obtaining the second audio. That is, the second audio is an audio synthesized from the accompaniment audio and / or the main melody audio of the first audio and the vocal audio of the second lyrics.

[0117] Exemplarily, the audio duration of the second audio is not greater than that of the first audio. That is, the audio duration of the second audio may be equal to that of the first audio, or the audio duration of the second audio is less than that of the first audio. For example, if the audio duration of the second audio is equal to that of the first audio, then the second audio is an audio synthesized based on all the accompaniment audio or all the main melody audio of the first audio, the vocal audio corresponding to the other lyrics of the first audio except the first lyrics, and the vocal audio corresponding to the second lyrics. For another example, if the audio duration of the second audio is less than that of the first audio, then the second audio is an audio generated based on an audio segment cut out from the first audio, and the audio segment of the first audio has the same audio duration as that of the second audio, then the second audio is an audio synthesized based on the accompaniment audio or main melody audio of the audio segment, the vocal audio corresponding to the other lyrics of the audio segment except the first lyrics, and the vocal audio corresponding to the second lyrics.

[0118] Exemplarily, the step of generating the second audio may be completed by a client on the terminal, or may be completed by a server, and after generating the second audio, the server sends the second audio to the client.

[0119] Exemplarily, the vocal audio of the second lyrics is audio generated by a computer according to the timbre selected by the user. Figure 4 As shown, step 250 also includes step 240 before step 250, and step 250 also includes step 251.

[0120] Step 240, obtaining a target timbre, where the target timbre is used to generate human voice audio.

[0121] The target timbre is used to enable the client to generate vocal audio according to the sound characteristics of the target timbre.

[0122] For example, the target timbre can be a default timbre of the client, or a timbre selected by the user from multiple candidate timbres. For example, a timbre represents a human voice feature, and the client can use virtual singers to represent different timbres. For example, virtual singer A represents a child's voice, and virtual singer B represents an adult male's voice.

[0123] For example, the client may display a timbre selection interface, which includes at least one candidate timbre and a selection control; in response to receiving a selection operation that triggers the selection control, the client determines a target timbre from the candidate timbre according to the selection operation. Exemplarily, the client may generate a second audio in real time according to the timbre selected by the user, and play the second audio.

[0124] For example, Figure 5As shown, it is a timbre selection interface, which includes two candidate timbres, Diva A and Diva B, and a selection control 401. The user can select one of Diva A and Diva B as a target timbre to generate a second audio. For example, the currently selected timbre is Diva A, and the client is playing the second audio generated according to the timbre of Diva A. If the user wants to use the timbre of Diva B to generate the second audio, the user can click Diva B and then click the selection control 401 to change the target timbre to Diva B.

[0125] Exemplarily, the vocal audio of the second audio may be generated entirely with the target timbre, or only the second lyrics may be generated with the target timbre, or only a portion of the second lyrics may be generated with the target timbre. That is, the vocal audio of the second audio may include one timbre: the target timbre. The vocal audio of the second audio may also include two timbres: the target timbre and the original timbre of the vocal audio of the first audio.

[0126] Then, the second audio includes: an audio whose duration is shorter than that of the first audio, and the vocal audio segments of the second lyrics are generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the original sound timbre of the first audio; or, an audio whose duration is equal to that of the first audio, and the vocal audio segments of the second lyrics are generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the original sound timbre of the first audio; or, an audio whose duration is shorter than that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre; or, an audio whose duration is equal to that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre, any one of the above.

[0127] Step 251, replacing the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio.

[0128] Exemplarily, the client replaces the vocal audio of the first lyrics in the first audio with the vocal audio of the second lyrics generated using the target timbre, and synthesizes the second audio using the accompaniment audio and / or the main melody audio of the first audio.

[0129] Exemplarily, a method for generating human voice audio using a target timbre is provided, such as Figure 6 As shown, step 251 also includes steps 2511 to 2513.

[0130] Step 2511, generating vocal audio containing the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio.

[0131] The client generates the vocal audio of the second lyrics using the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio. If the vocal audio of other lyrics in the second audio is also generated using the target timbre, the vocal audio of other lyrics also needs to be generated using the target timbre, the phonemes of other lyrics, and the notes corresponding to other lyrics in the first audio. If the vocal audio of other lyrics in the second audio uses the vocal audio of the first audio, the vocal audio of the first audio can be cut and then spliced ​​with the vocal audio of the second lyrics to obtain the complete vocal audio of the second audio.

[0132] Exemplarily, the synthesis of vocal audio also requires phoneme position information, note position information, etc. The phoneme position information is used to mark the position of the phoneme in the audio. For example, the first phoneme occupies the position from the 1st frame to the 100th frame in the audio, the second phoneme occupies the position from the 101st frame to the 200th frame in the audio, etc. The note position information is used to mark the position of the note in the audio, for example, the first note occupies the position from the 50th frame to the 200th frame in the audio. Exemplarily, based on the above position relationship, the phoneme and note information corresponding to each frame of the audio can be obtained.

[0133] Step 2512, obtaining a template audio of the first audio, the template audio including at least one of an accompaniment audio and a main melody audio.

[0134] Exemplarily, the client obtains a template audio of the first audio, where the template audio is the audio other than the human voice audio in the first audio. Exemplarily, the template audio includes at least one of an accompaniment audio and a main melody audio.

[0135] Exemplarily, for each song, it is necessary to prepare a template audio of the song in advance. The steps for preparing the template audio include the following steps: 1. Obtain the accompaniment audio of the song. Exemplarily, the song accompaniment can be separated from the audio of the original song, or the accompaniment audio of the song can be directly obtained. Exemplarily, some songs will also edit the accompaniment, for example, edit out the chorus part of the song. 2. Manually transcribe the score to make a MIDI (Musical Instrument Digital Interface) file of the main melody audio. 3. Make a template audio, align and synthesize the accompaniment audio and the main melody audio to obtain the template audio.

[0136] Step 2513, generating a second audio based on the template audio and the human voice audio.

[0137] The client synthesizes the second audio according to the template audio of the first audio and the vocal audio containing the second lyrics.

[0138] The second audio has the same melody and tone as the first audio but has different lyrics.

[0139] Exemplarily, after obtaining the second audio, the client can also play the second audio. Figure 4 As shown, after step 250, step 260 and step 270 are also included.

[0140] Step 260: display an audio playback interface of the second audio, where the audio playback interface includes playback controls.

[0141] Exemplarily, the audio playing interface and the audio editing interface may be the same interface. That is, after generating the second audio, the client immediately plays the second audio, so that the user can preview the generated second audio in the audio editing interface.

[0142] Exemplarily, the audio playback interface and the audio editing interface may also be different interfaces. That is, after the client generates the second audio, the user can click the completion control to jump to the audio playback interface to play, save or share the second audio.

[0143] Step 270, in response to receiving a play operation that triggers the play control, play the second audio.

[0144] To sum up, the method provided in this embodiment receives the user's changes to the lyrics of a song in an audio editing interface, and generates an adapted song based on the user's changed lyrics and the original song, so that the user can quickly generate a new song by modifying the lyrics of a song with one click, simplifying the operating steps for the user to generate audio, and improving the efficiency of audio editing.

[0145] In the method provided in this embodiment, after changing the lyrics, the user needs to select a singer, and use the singer's voice to generate human voice audio from the lyrics adapted by the user, and replace the human voice audio of the original lyrics in the original song with the human voice audio to obtain a new song. The user can select different singers to sing the adapted lyrics, and then obtain different new songs, which enriches the user's editability of the song, simplifies the operation steps of the user to generate audio, and improves editing efficiency.

[0146] The method provided in this embodiment first uses the singer's timbre, the phonemes of the user's adapted lyrics, and the notes of the original lyrics to generate vocal audio that uses the original lyrics to sing the adapted lyrics, and then uses the accompaniment of the original song and the newly generated vocal audio to synthesize a new song, thereby achieving one-click replacement of song lyrics, generating new songs, and simplifying the operation of user-generated audio.

[0147] According to the method provided in this embodiment, the new song can be a part of the original song or the whole song. The new song can be sung with only the lyrics changed and the voice of the singer specified by the user, or the whole song can be sung with the voice of the specified singer.

[0148] The method provided in this embodiment generates a new song based on the selected singer after the user selects the singer, and then plays the new song immediately, so that the user can preview the song generated based on the current singer in real time. If the user is not satisfied with the song effect, the singer can be changed in real time.

[0149] The method provided in this embodiment can display a preview and playback interface of the new song after generating a new song, allowing the user to preview the generated new song.

[0150] Exemplarily, this embodiment provides a method for obtaining human voice audio using a neural network model. Figure 7 It is a flowchart of an audio production method according to another exemplary embodiment. This embodiment is illustrated by applying the audio production method in a terminal. The above step 2511 also includes steps 2511-1 to 2511-2.

[0151] Step 2511 - 1 , input the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into the acoustic model to obtain the Mel spectrum.

[0152] Exemplarily, the acoustic model is a deep neural network acoustic model. The acoustic model is used to generate a mel spectrum (mel spectrum) according to the input two-dimensional text information. Exemplarily, the acoustic model is a neural network model using a long short-term memory network (Long Short-Term Memory, LSTM) structure.

[0153] Mel spectrum uses Mel scale to mark the frequency domain features of audio. By dividing the time domain waveform of the audio signal into frames, adding windows, and performing Fourier transform, the frequency domain signal of the audio signal in each frame can be obtained. By stacking the frequency domain signals of each frame, the spectrogram of the audio signal can be obtained. By marking the frequencies in the spectrogram using Mel scale, the Mel spectrum of the audio signal can be obtained. Similarly, the audio signal can be restored according to the Mel spectrum of the audio signal. Mel scale was named by Stevens, Volkmann and Newman in 1937. The unit of frequency is Hertz (Hz). The frequency range that the human ear can hear is 20-20000Hz, but the human ear does not have a linear perception relationship with the scale unit of Hz. For example, if people are adapted to a 1000Hz tone and then the tone frequency is increased to 2000Hz, the human ear can only perceive that the frequency has increased a little bit, and cannot perceive that the frequency has doubled at all. If the ordinary frequency scale is converted to the Mel frequency scale, the human ear's perception of frequency becomes a linear relationship. That is to say, under the Mel scale, if the Mel frequencies of two speech segments differ by two times, the pitch that the human ear can perceive will also differ by two times. The mapping relationship between the Mel scale and the frequency scale is shown in the following formula:

[0154]

[0155] Where mel(f) is the Mel scale and f is the frequency.

[0156] Exemplarily, the timbre identifier of the target timbre, the phonemes of the second lyrics, the position information of the phonemes, the notes corresponding to the first lyrics in the first audio, and the position information of the notes are input into the acoustic model to obtain the Mel spectrum.

[0157] Among them, the position information of the phonemes of the second lyrics can be determined based on the position information of the phonemes of the first lyrics. When the second lyrics have the same number of words as the first lyrics, the grapheme (the position of each word) of the second lyrics can be determined based on the grapheme of the first lyrics, and then the position of the phoneme is determined based on the grapheme. When the second lyrics have different numbers of words from the first lyrics, a variety of grapheme positions can be designed in advance for the first lyrics. For example, the first lyrics originally have 5 words, corresponding to 5 grapheme positions, then the distribution of 6 grapheme positions when the second lyrics have 6 lyrics, and the distribution of 8 grapheme positions when the second lyrics have 8 words can be preset and designed, and then the position of each word of the second lyrics is determined in turn according to the preset grapheme distribution, thereby determining the position of the phoneme of the second lyrics. It is also possible to select the word with the longest duration from the first lyric, divide the duration occupied by this word equally according to the first word number, obtain the equal division result of the increased word position of the same equal division duration, fill the increased word position in the word position of the first lyric according to the equal division result, obtain the word position that meets the word number of the second lyric, and then fill the second lyric into the word position in sequence to determine the position of each word, and then determine the position of the phoneme; the first word number is equal to the number of words that the second lyric has more than the first lyric plus one. For example, the first lyric includes three words "ABC", and the second lyric includes five words "12345", wherein A of the first lyric lasts for 3 seconds, B lasts for 1 second, and C lasts for 1 second, then the duration of A is equally divided according to the difference in the number of words between the first lyric and the second lyric, that is, divide 3 seconds into 3 equal parts to obtain one word position in the first second, one word position in the second second, and one word position in the third second, so that two more word positions can be obtained, and five word positions can be obtained by filling the original word positions of the first lyric, and the five words of the second lyric are respectively filled into the five word positions, so that the position of each word can be determined, and then the position of the phoneme can be determined.

[0158] Alternatively, the above method can also be used to directly determine the position of the phonemes in the second lyric based on the position of the phonemes in the first lyric. When the number of phonemes in the first lyric and the second lyric are not equal, the above method can be used to add new vacancies in the original phoneme positions of the first lyric, so that the extra phonemes in the second lyric can be filled in the vacancies.

[0159] Exemplarily, the acoustic model includes a plurality of acoustic models corresponding to different timbres respectively. The client calls the acoustic model corresponding to the timbre identifier according to the input timbre identifier of the target timbre to obtain the mel spectrum.

[0160] Step 2511 - 2, calling the vocoder to convert the Mel spectrum into human voice audio.

[0161] The client calls a vocoder to convert the Mel spectrum to obtain human voice audio. Exemplarily, the vocoder can use a WaveRNN vocoder or a WaveGlow vocoder.

[0162] To summarize, the method provided in this embodiment, for obtaining human voice audio, first uses an acoustic model to obtain the Mel spectrum of the human voice audio, the acoustic model is a deep neural network acoustic model, which is used to generate the Mel spectrum of the audio according to the input two-dimensional text information, and after obtaining the Mel spectrum, uses a vocoder to convert the Mel spectrum into human voice audio, thereby obtaining the audio of the human voice a cappella generated using the voice of the specified singer.

[0163] Illustratively, this embodiment provides a method for training an acoustic model. Figure 8 It is a flowchart of an acoustic model training method according to another exemplary embodiment. This embodiment is illustrated by applying the method in a terminal. The method includes the following steps.

[0164] Step 310, obtaining training data, the training data including at least one of: phonemes of training lyrics, notes of training lyrics, phoneme position information of training lyrics, note position information of training lyrics, timbre identification of training audio, and mel spectrum of training audio.

[0165] Exemplarily, the training audio includes a cappella audio (a cappella data), and the training lyrics are the lyrics of the a cappella audio. Exemplarily, the client obtains a cappella data as training data, and the a cappella data only includes human voice audio, and then manually annotates the a cappella data with phonemes, notes, phoneme position information, note position information, timbre identification, etc., and generates a Mel spectrum of the a cappella data based on the a cappella data, thereby obtaining a set of training data (phonemes, notes, phoneme position information, note position information, timbre identification, and Mel spectrum) corresponding to the a cappella data. Exemplarily, the client obtains multiple sets of training data corresponding to multiple a cappella data.

[0166] Step 320: Train the initial model according to the training data to obtain the acoustic model.

[0167] The client uses the Mel spectrum as expectation, inputs the phonemes, notes, phoneme position information, and note position information into the initialization model, trains the initialization model, and obtains the acoustic model.

[0168] To sum up, the method provided in this embodiment, by training the acoustic model, enables the client to use the acoustic model to obtain the Mel spectrum, and obtain the human voice audio according to the Mel spectrum, thereby simplifying the operation steps of the user to edit the audio, and using the deep neural network model to complete this step, which can not only improve the audio editing efficiency but also reduce the requirements of the audio editing operation on the user's professionalism, so that the user can generate the song he wants through simple operations, thereby improving the user's audio editing ability.

[0169] Fig. 9 1 is a schematic diagram of the structure of an audio production device according to an exemplary embodiment. The audio production device can be implemented by software, hardware, or a combination of both. The audio production device may include:

[0170] Display module 901, used to display an audio editing interface of a first audio, wherein the audio editing interface includes at least one line of lyrics of the first audio and a lyrics editing control, wherein the at least one line of lyrics includes the first lyrics;

[0171] An interaction module 902 is used to receive a lyrics editing operation on the first lyrics on the lyrics editing control, wherein the lyrics editing operation includes inputting a second lyrics;

[0172] The generating module 903 is used to replace the first lyrics in the first audio with the second lyrics to generate a second audio, wherein the second audio includes a vocal audio generated according to the second lyrics.

[0173] Optionally, the device further comprises:

[0174] An acquisition module 904 is used to acquire a target timbre, and the target timbre is used to generate the human voice audio;

[0175] The generating module 903 is further configured to replace the first lyrics in the first audio with the second lyrics according to the target timbre, so as to generate the second audio.

[0176] Optionally, the generating module 903 is further configured to generate the vocal audio including the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio;

[0177] The acquisition module 904 is further used to acquire a template audio of the first audio, wherein the template audio includes at least one of an accompaniment audio and a main melody audio;

[0178] The generating module 903 is further configured to generate the second audio according to the template audio and the human voice audio.

[0179] Optionally, the generating module 903 includes:

[0180] A model submodule 905 is used to input the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into an acoustic model to obtain a mel spectrum;

[0181] The vocoder submodule 906 is used to call a vocoder to convert the Mel spectrum into the human voice audio.

[0182] Optionally, the second audio includes:

[0183] The duration of the audio is shorter than that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0184] or,

[0185] The duration of the audio is equal to that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio;

[0186] or,

[0187] The duration of the audio is shorter than that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre;

[0188] or,

[0189] The audio duration is equal to the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre.

[0190] Optionally, the device further comprises:

[0191] The acquisition module 904 is further used to acquire training data, wherein the training data includes at least one of: phonemes of training lyrics, notes of the training lyrics, phoneme position information of the training lyrics, note position information of the training lyrics, timbre identification of training audio, and Mel spectrum of the training audio;

[0192] The training module 907 is used to train the initial model according to the training data to obtain the acoustic model.

[0193] Optionally, the device further comprises:

[0194] The display module 901 is further used to display an audio playback interface of the second audio, wherein the audio playback interface includes a playback control;

[0195] The interaction module 902 is further used to receive a play operation that triggers the play control;

[0196] The playing module 908 is used to play the second audio in response to receiving a play operation that triggers the play control.

[0197] Optionally, the device further comprises:

[0198] The display module 901 is also used to display a timbre selection interface, wherein the timbre selection interface includes at least one candidate timbre and a selection control;

[0199] The interaction module 902 is further configured to receive a selection operation that triggers the selection control;

[0200] The acquisition module 904 is further configured to, in response to receiving a selection operation that triggers the selection control, determine the target timbre from the candidate timbre according to the selection operation.

[0201] The playing module 908 is used to play the second audio.

[0202] It should be noted that: the audio production device provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when implementing the audio production method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the audio production device provided in the above embodiment belongs to the same concept as the audio production method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0203] Fig.10 The structure block diagram of a terminal 1000 provided by an exemplary embodiment of the present invention is shown. The terminal 1000 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a notebook computer or a desktop computer. The terminal 1000 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0204] Typically, the terminal 1000 includes a processor 1001 and a memory 1002 .

[0205] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0206] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the audio production method provided in the method embodiment of the present application.

[0207] In some embodiments, the terminal 1000 may also optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface 1003 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1003 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004, a touch display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008 and a power supply 1009.

[0208] The peripheral device interface 1003 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0209] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0210] The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the display screen 1005. The touch signal can be input as a control signal to the processor 1001 for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1005 can be one, and the front panel of the terminal 1000 is set; in other embodiments, the display screen 1005 can be at least two, which are respectively set on different surfaces of the terminal 1000 or are folded; in some other embodiments, the display screen 1005 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1000. Even, the display screen 1005 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0211] The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0212] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0213] The positioning component 1008 is used to locate the current geographical location of the terminal 1000 to implement navigation or LBS (Location Based Service). The positioning component 1008 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.

[0214] The power supply 1009 is used to power various components in the terminal 1000. The power supply 1009 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0215] In some embodiments, the terminal 1000 further includes one or more sensors 1010 , including but not limited to: an acceleration sensor 1011 , a gyroscope sensor 1012 , a pressure sensor 1013 , a fingerprint sensor 1014 , an optical sensor 1015 , and a proximity sensor 1016 .

[0216] The acceleration sensor 1011 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1000. For example, the acceleration sensor 1011 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used for collecting game or user motion data.

[0217] The gyro sensor 1012 can detect the body direction and rotation angle of the terminal 1000, and the gyro sensor 1012 can cooperate with the acceleration sensor 1011 to collect the user's 3D actions on the terminal 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1012: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0218] The pressure sensor 1013 can be set on the side frame of the terminal 1000 and / or the lower layer of the touch display screen 1005. When the pressure sensor 1013 is set on the side frame of the terminal 1000, the user's holding signal of the terminal 1000 can be detected, and the processor 1001 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is set on the lower layer of the touch display screen 1005, the processor 1001 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0219] The fingerprint sensor 1014 is used to collect the user's fingerprint, and the processor 1001 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1014 can be set on the front, back, or side of the terminal 1000. When a physical button or a manufacturer logo is set on the terminal 1000, the fingerprint sensor 1014 can be integrated with the physical button or the manufacturer logo.

[0220] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1015.

[0221] The proximity sensor 1016, also called a distance sensor, is usually arranged on the front panel of the terminal 1000. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.

[0222] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the terminal 1000, and the terminal 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0223] An embodiment of the present application further provides a computer device, which includes: a processor and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the audio production method provided in the above-mentioned embodiment is implemented.

[0224] The embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the audio production method provided in the above-mentioned embodiment.

[0225] An embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the audio production method provided in the above embodiment.

[0226] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0227] The above descriptions are only some embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An audio production method, characterized in that: The method comprises: Displaying an audio editing interface of a first audio, wherein the audio editing interface includes at least one line of lyrics of the first audio and a lyrics editing control, wherein the at least one line of lyrics includes the first lyrics; Receiving a lyrics editing operation on the first lyrics on the lyrics editing control, the lyrics editing operation comprising inputting a second lyric; Acquire a target timbre, wherein the target timbre is used to generate human voice audio; According to the target timbre, the phonemes of the second lyrics, the position information of the phonemes, the notes corresponding to the first lyrics in the first audio, and the position information of the notes, the first lyrics in the first audio are replaced with the second lyrics to generate a second audio, wherein the second audio includes a vocal audio generated according to the second lyrics; wherein the position information of the phonemes of the second lyrics is determined according to the position information of the phonemes of the first lyrics; When the number of words in the second lyric is different from that in the first lyric, the word that occupies the longest time is selected from the first lyric, and the time occupied by the word is equally divided according to the first number of words to obtain an equal division result of increased word positions with the same equal division time, and the increased word positions are filled in the word positions of the first lyric according to the equal division result to obtain word positions that meet the number of words in the second lyric, and the second lyric is filled in the word positions in turn to determine the position of each word, and then determine the position of the phonemes of the second lyric; the first number of words is equal to the number of words in the second lyric that is more than the first lyric plus one.

2. The method according to claim 1, characterized in that Replacing the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio includes: generating the vocal audio including the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio; Acquire a template audio of the first audio, wherein the template audio includes at least one of an accompaniment audio and a main melody audio; The second audio is generated according to the template audio and the human voice audio.

3. The method according to claim 2, characterized in that The step of generating the vocal audio including the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio includes: Inputting the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into an acoustic model to obtain a mel spectrum; A vocoder is called to convert the Mel spectrum into the human voice audio.

4. The method according to any one of claims 1 to 3, characterized in that: The second audio includes: The duration of the audio is shorter than that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio; or, The duration of the audio is equal to that of the first audio, and the vocal audio segment of the second lyrics is generated according to the target timbre, and the vocal audio segments of the lyrics other than the second lyrics use the audio of the original timbre of the first audio; or, The duration of the audio is shorter than that of the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre; or, The audio duration is equal to the first audio, and the vocal audio of all lyrics is audio generated according to the target timbre.

5. The method according to claim 3, characterized in that The method further comprises: Acquire training data, the training data including: phonemes of training lyrics, notes of the training lyrics, phoneme position information of the training lyrics, note position information of the training lyrics, timbre identifier of training audio, and Mel spectrum of the training audio; The acoustic model is obtained by training an initial model according to the training data.

6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Display an audio playback interface of the second audio, wherein the audio playback interface includes a playback control; In response to receiving a play operation that triggers the play control, the second audio is played.

7. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the target timbre comprises: Displaying a timbre selection interface, wherein the timbre selection interface includes at least one candidate timbre and a selection control; In response to receiving a selection operation that triggers the selection control, determining the target timbre from the candidate timbre according to the selection operation; After replacing the first lyrics in the first audio with the second lyrics according to the target timbre to generate the second audio including the second lyrics, the method further includes: Play the second audio.

8. An audio production device, characterized in that: The device comprises: A display module, configured to display an audio editing interface of a first audio, wherein the audio editing interface includes at least one line of lyrics of the first audio and a lyrics editing control, wherein the at least one line of lyrics includes the first lyrics; An interactive module, configured to receive a lyrics editing operation on the first lyrics on the lyrics editing control, wherein the lyrics editing operation includes inputting a second lyrics; An acquisition module, used to acquire a target timbre, wherein the target timbre is used to generate human voice audio; a generating module, configured to replace the first lyrics in the first audio with the second lyrics according to the target timbre, the phonemes of the second lyrics, the position information of the phonemes, the notes corresponding to the first lyrics in the first audio, and the position information of the notes, to generate a second audio, wherein the second audio includes a vocal audio generated according to the second lyrics; wherein the position information of the phonemes of the second lyrics is determined according to the position information of the phonemes of the first lyrics; When the number of words in the second lyric is different from that in the first lyric, the word that occupies the longest time is selected from the first lyric, and the time occupied by the word is equally divided according to the first number of words to obtain an equal division result with increased word positions of the same equally divided time, and the word positions of the first lyric are filled in according to the equal division result to obtain word positions that meet the number of words in the second lyric, and the second lyric is filled in the word positions in turn to determine the position of each word, and then determine the position of the phonemes of the second lyric; the first number of words is equal to the number of words in the second lyric that is more than the first lyric plus one.

9. The device according to claim 8, characterized in that The generating module is further used to generate the vocal audio containing the second lyrics according to the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio; The acquisition module is further used to acquire a template audio of the first audio, wherein the template audio includes at least one of an accompaniment audio and a main melody audio; The generation module is also used to generate the second audio according to the template audio and the human voice audio.

10. The device according to claim 9, characterized in that The generating module comprises: A model submodule, for inputting the timbre identifier of the target timbre, the phonemes of the second lyrics, and the notes corresponding to the first lyrics in the first audio into an acoustic model to obtain a Mel spectrum; The vocoder submodule is used to call the vocoder to convert the Mel spectrum into the human voice audio.

11. A computer device, comprising: A processor and a memory, wherein the memory stores instructions, wherein the instructions, when executed by the processor, implement the steps of any one of the methods of claims 1-7.

12. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of any method of claims 1-7 are implemented.

Citation Information

Cited By

  • Ai song editing method and apparatus, electronic device, and storage medium

    EP4756790A1