WO2022142772A1 - Lyric processing method and apparatus - Google Patents

Lyric processing method and apparatus Download PDF

Info

Publication number
WO2022142772A1
WO2022142772A1 PCT/CN2021/130404 CN2021130404W WO2022142772A1 WO 2022142772 A1 WO2022142772 A1 WO 2022142772A1 CN 2021130404 W CN2021130404 W CN 2021130404W WO 2022142772 A1 WO2022142772 A1 WO 2022142772A1
Authority
WO
WIPO (PCT)
Prior art keywords
lyrics
edited
characters
editing
words
Prior art date
Application number
PCT/CN2021/130404
Other languages
French (fr)
Chinese (zh)
Inventor
陈纯
马小坤
张馨予
Original Assignee
北京达佳互联信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京达佳互联信息技术有限公司 filed Critical 北京达佳互联信息技术有限公司
Publication of WO2022142772A1 publication Critical patent/WO2022142772A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities

Definitions

  • the present disclosure relates to the field of Internet technologies, and in particular, to a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing lyrics.
  • Songwriting includes lyrics and melody.
  • the user can customize the lyrics based on the melody of an existing song in the application program to obtain a new song.
  • a new song is obtained by randomly matching lyrics based on the accompaniment of an existing song by the system. After the system generates the lyrics, the user can re-edit the obtained lyrics.
  • the present disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing lyrics.
  • the technical solutions of the present disclosure are as follows:
  • a method for processing lyrics including:
  • the target phrase is added to the lyric text in response to an editing completion instruction.
  • the method further includes:
  • the target phrase and the phrase melody are played.
  • the method further includes:
  • the character number prompt information is in a display state that meets the word number requirement.
  • the method further includes:
  • the prompt information of the number of characters is in a display state that does not meet the requirement of the number of characters.
  • the method further includes:
  • the display state of the character number prompting mark is changed according to the number of edited characters.
  • the method before the responding to the editing completion instruction, the method further includes:
  • the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
  • the method further includes:
  • the lyrics editing page is displayed in response to a triggering operation on the lyrics editing control.
  • the adding the target phrase to the lyrics text in response to the editing completion instruction includes:
  • the target phrase is added to the lyric text.
  • the method further includes:
  • a lyrics processing device characterized in that it includes:
  • the first display module is configured to display the lyrics text in the lyrics editing page
  • the first word and sentence acquisition module is configured to obtain the words and sentences to be edited selected from the lyrics text
  • the second word and sentence obtaining module is configured to obtain the target word and sentence obtained after editing the to-be-edited word and sentence;
  • An adding module is configured to add the target phrase to the lyric text in response to an editing completion instruction.
  • the apparatus further includes:
  • the melody acquisition module is configured to respond to the trigger operation of the audition control in the lyrics editing page, and acquire the melody corresponding to the target phrase;
  • the playing module is configured to play the target phrase and the phrase melody.
  • the apparatus further includes:
  • a third obtaining module configured to obtain the character threshold corresponding to the words and sentences to be edited
  • the second display module is configured to display the character number prompt information of the words and phrases to be edited on the lyrics editing page;
  • the third display module is configured to, when the number of edited characters of the to-be-edited word and sentence is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of words.
  • the third display module is configured to, when the number of edited characters of the to-be-edited word and sentence is inconsistent with the threshold of the number of characters, the prompt information of the number of characters is in a state where the number of characters does not meet the requirement of the number of characters display status.
  • the apparatus further includes:
  • the fourth display module is configured to display a character number prompting mark on the lyrics editing page, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
  • the first changing module is configured to change the display state of the character number prompting mark according to the number of edited characters.
  • the apparatus further includes:
  • the activation module is configured to change the state of the editing completion control in the lyrics editing page from an inactive state to an active state in response to the fact that the number of edited characters is consistent with the threshold of the number of characters corresponding to the words and sentences to be edited.
  • the apparatus further includes: a response module configured to display the lyrics editing page in response to a triggering operation on the lyrics editing control.
  • the adding module includes:
  • a detection unit configured to obtain a sensitive word detection result obtained by detecting the target word and sentence in response to the editing completion instruction
  • the adding unit is configured to add the target phrase to the lyrics text in response to the sensitive word detection result being a pass.
  • the apparatus further includes:
  • a return module configured to return to the lyrics editing page in response to the sensitive word detection result being a failure
  • the second changing module is configured to acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
  • an electronic device comprising:
  • a memory for storing the processor-executable instructions
  • the processor is configured to execute the instructions to implement the lyrics processing method according to any embodiment of the first aspect.
  • a computer-readable storage medium wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can be executed The lyrics processing method according to any one of the embodiments of the first aspect.
  • a computer program product including a computer program, wherein the computer program implements the lyrics processing method according to any one of the embodiments of the first aspect when the computer program is executed by a processor.
  • lyrics text on the lyrics editing page; obtain the words and phrases to be edited selected from the lyrics text; obtain the target words and sentences obtained after editing the words to be edited; add the target words to the lyrics text after the editing is completed.
  • lyrics editing page users are supported to individually customize and re-edit the words and phrases in the lyrics text, which makes lyrics creation easier to operate and improves the efficiency of lyrics creation.
  • FIG. 1 is an application environment diagram of a method for processing lyrics according to an exemplary embodiment.
  • Fig. 2 is a flowchart of a method for processing lyrics according to an exemplary embodiment.
  • Fig. 3 is a schematic diagram of displaying a lyrics editing page according to an exemplary embodiment.
  • Fig. 4 is a flow chart of prompting information for changing the number of characters according to an exemplary embodiment.
  • Fig. 5 is a schematic diagram of displaying prompt information of the number of characters according to an exemplary embodiment.
  • FIG. 6 is a schematic diagram illustrating a sensitive word detection according to an exemplary embodiment.
  • Fig. 7 is a flow chart of a method for processing lyrics according to an exemplary embodiment.
  • Fig. 8 is a schematic diagram of acquiring lyric text and song melody according to an exemplary embodiment.
  • Fig. 9 is a block diagram of an apparatus for processing lyrics according to an exemplary embodiment.
  • Fig. 10 is an internal structure diagram of an electronic device according to an exemplary embodiment.
  • the lyrics processing method provided by the present disclosure can be applied to the application environment shown in FIG. 1 .
  • the terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices.
  • the terminal 110 may be installed with an application program supporting the function of editing lyrics.
  • the application may be a social application, a short video application, an instant messaging application, a music creation application, and the like.
  • the lyrics editing function can be deployed in these applications through plug-ins, applets, etc.
  • the terminal 110 may provide the user with a lyrics editing page through an application program, so that the user can edit the lyrics text through the lyrics editing page.
  • the terminal 110 displays the lyrics text in the lyrics editing page; obtains the words and phrases to be edited selected from the lyrics text; obtains the target words and sentences obtained after editing the words and phrases to be edited; in response to the editing completion instruction, adds the target words and sentences into the lyric text.
  • the lyrics processing method provided by the present disclosure can be applied to an application environment including a terminal and a server.
  • the terminal and the server interact through the network.
  • the terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server can be implemented as an independent server or a server cluster composed of multiple servers.
  • Intelligent lyrics generation logic can be deployed in the server.
  • the lyrics generation logic can be implemented based on deep learning models, search algorithms, etc.
  • the deep learning model can be any model that can be used to generate lyrics, such as linear models, neural network models, support vector machines, etc.
  • the search algorithm can be sequential search, binary search, etc.
  • the terminal acquires the lyrics text generated by the server based on the intelligent lyrics generation logic, and displays the lyrics text on the lyrics editing page.
  • the terminal acquires the words and phrases to be edited selected from the lyrics text; and acquires the target words and sentences obtained after editing the words and phrases to be edited.
  • the target phrase is added to the lyric text.
  • FIG. 2 is a flowchart of a method for processing lyrics according to an exemplary embodiment. As shown in FIG. 2 , the method for processing lyrics is used in a terminal, and includes the following steps.
  • step S210 the lyrics text is displayed on the lyrics editing page.
  • the lyrics editing page supports the user to edit the text in the lyrics text to obtain new lyrics text.
  • the lyrics editing page can display the lyrics text to be edited, related controls, editing prompt information, etc.
  • the lyric text can be the lyric text in an existing song, which can be stored in a local database or pre-fixed in the server.
  • the client can provide a lyric text upload function, so as to obtain the lyric text uploaded by the user through the upload function. Lyric text that needs to be edited.
  • the lyrics text can also be the text created by the user.
  • the client can provide a lyrics creation page for the user to create lyrics. For example, provide a lyrics creation page for the user to edit the lyrics text independently, or provide lyrics.
  • the authoring page is for users to define song attribute information, so that the client or server can intelligently generate lyrics text based on the song attribute information.
  • step S220 the words and phrases to be edited selected from the lyrics text are acquired.
  • the words and sentences to be edited may be any sentence or multiple sentences in the lyrics text, or may be any words, characters, etc. in the lyrics text.
  • the terminal may acquire the selected words and sentences to be edited in response to the user's operation of selecting words and sentences on the lyrics text.
  • the word and sentence selection operation may be a long-press operation, a drag operation, a single-click operation, a double-click operation, and the like.
  • an operation menu is displayed, and the operation menu includes a selection word selection option.
  • the selection cursor is displayed, so that the user can select the word and sentence to be edited by moving the cursor position.
  • the clicked words and sentences are used as the words and sentences to be edited.
  • the default state of the lyrics text displayed in the lyrics editing page may be an editable state. In this way, the user can edit any words and sentences in the lyrics text without selecting the words and sentences to be edited.
  • step S230 the target words and sentences obtained after editing the words and sentences to be edited are obtained.
  • step S240 in response to the editing completion instruction, the target phrase is added to the lyrics text.
  • the target words and sentences may be words and sentences used to replace the words and sentences to be edited after the words and sentences to be edited are edited.
  • Editing completion commands can be obtained by triggering operations on preset controls, detecting voice commands, and detecting preset gestures.
  • the client terminal may display a text input box, so that the user can input the target phrase through the text input box.
  • the client can change the to-be-edited phrase from an uneditable state to an editable state, so that the user can edit the to-be-edited phrase, such as deleting characters, adding characters, and the like.
  • the client obtains the input target words and sentences, and replaces the words and sentences to be edited in the lyrics text with the target words and sentences.
  • the user can also add new words and phrases in the lyrics text without modifying the original words and phrases in the lyrics text.
  • the lyrics text is displayed on the lyrics editing page; the words and sentences to be edited selected from the lyrics text are obtained; the target words and sentences obtained after editing the words and sentences to be edited are obtained; after the editing is completed, the target words and sentences are added to the lyrics text .
  • lyrics editing page users are supported to individually customize and re-edit the words and phrases in the lyrics text, which makes lyrics creation easier to operate and improves the efficiency of lyrics creation.
  • the lyrics editing page is displayed by the client in response to a triggering operation on the lyrics editing control.
  • the lyric editing control is an object that the user can interact with to trigger editing based on the lyric text.
  • the lyrics editing controls are not limited to be displayed at any position on the lyrics editing page in the form of fixed controls; or flexibly presented in the lyrics editing page by means of floating buttons or the like.
  • a song editing page may be displayed.
  • the song editing page supports users to edit the lyric text and song melody in the song to get a new song.
  • the song editing page can display lyrics editing controls, melody editing controls, play buttons, lyric text, song duration, etc., so that users can preview the lyric text, listen to the song, and modify the lyric text and/or melody through the song editing page. Edit again. If the client detects a trigger operation on the lyrics editing control, it displays the lyrics editing page, and displays the lyrics text on the lyrics editing page.
  • FIG. 3 exemplarily shows a schematic diagram of a song editing page and a lyrics editing page.
  • a song editing page 310 may be displayed.
  • the song editing page 310 includes a lyric editing control (the "change word" control in FIG. 3 ), a singing control, and the like. If the client detects a triggering operation on the lyrics editing control, it displays the lyrics editing page 320 and displays the lyrics text in the lyrics editing page 320 .
  • the lyrics editing control by deploying the lyrics editing control, users can choose whether to enter the lyrics editing page according to their own needs, so that the lyrics editing has flexibility; User convenience.
  • the method further includes: in response to a triggering operation on the audition control on the lyrics editing page, acquiring a phrase melody corresponding to the target phrase; playing the target phrase and phrase melody.
  • the audition control is an object that the user can interact with to trigger the playback of the target phrase and phrase melody.
  • the client while acquiring the lyrics text, can also acquire the melody of the song.
  • the song melody can be the melody in an existing song, and can be stored in a local database or pre-solidified in the server.
  • the client can provide a song melody upload function to obtain the song melody uploaded by the user through the upload function.
  • the song melody can also be a melody created by the user.
  • the client can provide a song melody creation page for the user to create a song melody.
  • a song melody creation page is provided for the user to edit the song melody independently. , or provide a song melody creation page for the user to define the melody attribute information, so that the client or the server can intelligently generate the song melody based on the melody attribute information.
  • the client After obtaining the lyrics text and the song melody, the client can obtain the correspondence between the pronunciation time of the characters in the lyrics text and the playing time of the song melody. Based on the corresponding relationship, the word melody corresponding to the target word is located from the song melody. In the process of editing the words to be edited, the user can control the client to play the edited target words and the corresponding word melody by triggering the audition control.
  • the lyrics editing page 320 includes an audition control 322 .
  • the client can play the target phrase and phrase melody or pause playing the target phrase and phrase melody in response to the triggering operation on the audition control 322 .
  • the user can listen to the song effect synthesized by the words and the melody by triggering the audition control, thereby assisting the user in combining the melody.
  • the audition control improves the quality and efficiency of lyrics creation.
  • prompt information of the number of characters of the words and phrases to be edited may also be displayed on the lyrics editing page.
  • the method further includes:
  • step S410 a threshold of the number of characters corresponding to the words and sentences to be edited is obtained.
  • the character number threshold is used to control the maximum and/or minimum number of characters that can be input for editing the words to be edited.
  • the threshold of the number of characters may be obtained by the client automatically detecting the lyrics text after acquiring the lyrics text.
  • the client can detect the lyric text through the character number detection logic, obtain the number of characters corresponding to each sentence and sentence in the lyric text, and use the character number as the character number threshold.
  • the character number detection logic can be obtained by a Len function (a function for returning the number of characters in a text string) or the like.
  • the character number threshold may also be a value obtained by analyzing and processing the melody of the song.
  • the melody is an organized and rhythmic sequence of several musical tones formed through artistic conception, and is organically combined from many basic elements of music, such as mode, rhythm, tempo, dynamics, and timbre performance methods.
  • the threshold of the number of characters of the phrase to be edited can be obtained based on the beat in the melody.
  • the number of characters corresponding to one beat may be pre-defined, for example, the number of characters corresponding to one beat is defined.
  • the client After the client locates the phrase melody corresponding to the phrase to be edited based on the correspondence between the pronunciation time of the character in the lyric text and the playing time of the song melody, the number of beats in the phrase melody can be obtained. According to the number of beats and the number of characters corresponding to one beat, the threshold of the number of characters corresponding to the words and sentences to be edited is calculated.
  • step S420 prompt information of the number of characters of the words and phrases to be edited is displayed on the lyrics editing page.
  • step S430 when the number of edited characters of the word and sentence to be edited is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of characters.
  • the client may generate corresponding character count prompt information, and display the character count prompt information of the to-be-edited words and phrases on the lyrics editing page. For example, if the threshold of the number of characters of the word and sentence to be edited is 6, then the prompt information of the number of characters of "this sentence is limited to 6 characters" can be generated accordingly.
  • the client obtains the number of edited characters obtained by editing the words to be edited in real time. Compare the number of edited characters to the threshold of characters for the phrase to be edited. If the number of edited characters is consistent with the threshold of the number of characters of the word and sentence to be edited, the prompt message of the number of characters is displayed in a display state that meets the requirement of the number of characters.
  • the prompt message of the number of characters is displayed in a display state that does not meet the requirement of the number of characters.
  • the display status that meets the word count requirement is different from the display status that does not meet the word count requirement. For example, the display status that meets the word count requirement is gray, and the display status that does not meet the word count requirement is colored.
  • the client can also obtain the actual number of characters of each sentence in the lyrics text and the corresponding threshold of the number of characters. Compare the actual character count of each sentence to the corresponding character count threshold. According to the comparison result, the words and sentences whose actual number of characters is inconsistent with the corresponding threshold of the number of characters are displayed in a display state that does not meet the requirement of the number of characters;
  • FIG. 5 exemplarily shows a schematic diagram of displaying character number prompt information.
  • a lyrics editing area 512 is provided in the lyrics editing page 510 . It can be configured to display the first sentence in the lyrics text in the lyrics editing area 512 by default.
  • the user can also perform a drag operation on the lyrics text, and drag the words and phrases to be edited to be edited to the lyrics editing area 512;
  • the words and phrases to be edited are displayed in the lyrics editing area 512 .
  • the client obtains the words and sentences to be edited in the lyrics editing area 512 and the corresponding character threshold. Displays the prompt information of the number of characters of the words and sentences to be edited, such as "This sentence is limited to 7 characters" in Figure 5.
  • the number of edited characters in the lyrics editing area 512 is acquired in real time, and the number of edited characters is compared with the threshold of the number of characters. If they are consistent, the character number prompt information will be displayed in a display state that meets the requirements of the number of characters; otherwise, it will be displayed in a display state that does not meet the requirements of the number of characters. Referring to FIG. 5 , the number of edited characters "I will give you the moon" in the lyrics editing page 510 is consistent with the character number threshold, then the character number prompt information is displayed as light gray; in the lyrics editing page 520 and the lyrics editing page 530, the number of characters has been If the number of edited characters is inconsistent with the threshold of the number of characters, the prompt information of the number of characters will be displayed in bold font style.
  • the user by obtaining the character count threshold of the words and sentences to be edited, and displaying clear character count prompt information on the lyrics editing page, the user can be given a clear professional lyrics modification guidance, thereby improving the quality and efficiency of lyrics modification. .
  • an editing completion control is also displayed in the lyrics editing page.
  • the editing completion instruction may be obtained in response to the triggering operation of the editing completion control.
  • the editing completion control is an object that the user can interact with to trigger the editing completion instruction.
  • the state of the edit complete control can be controlled according to the result of comparing the number of edited characters with the corresponding threshold of the number of characters.
  • the client obtains in real time the number of edited characters obtained by editing the phrase to be edited. Compare the number of edited characters to the threshold of characters for the phrase to be edited. If the number of edited characters is consistent with the threshold of the number of characters of the words and phrases to be edited, the control editing completion control is activated. At this point, the edit complete control is in a state that can interact with the user. If the number of edited characters is inconsistent with the threshold of the number of characters to be edited, the control editing completion control is in an inactive state. At this point, the edit completion control is in a state where the user cannot interact.
  • the editing completion control is controlled to be in an active state, and the editing completion control can also be presented as an active state. Display style. If the number of edited characters in the lyrics editing page 520 and the lyrics editing page 530 is inconsistent with the threshold of the number of characters, the editing completion control is controlled to be in an inactive state, and the editing completion control can also be displayed as a display style in an inactive state.
  • the user by controlling the activation state of the editing completion control based on the comparison result between the number of edited characters and the threshold of the number of characters to be edited, the user can be given a clear lyrics modification guide and assist the user to realize more professional lyrics modification.
  • the lyric editing page also displays a character number prompt indicator.
  • the number of character number prompt signs is consistent with the character number threshold corresponding to the words and sentences to be edited, and the display state of the character number prompt signs can be changed according to the number of edited characters.
  • the character number prompting mark may be displayed at a preset position on the lyrics editing page in a preset style.
  • the preset styles can be any shape, such as circle, square, star, etc.
  • the preset position may be any position on the lyrics editing page, for example, a position at the top, the bottom of the lyrics editing page, above the words to be edited, and the like.
  • the number of characters hints can be arranged in sequence.
  • the client terminal changes the number of characters corresponding to the edited characters in real time to prompt the status of the identification. For example, if the obtained edited characters are 4, the display state of the 4-character number prompt flag is correspondingly changed.
  • the change order of the number of characters prompting signs can be configured to sequentially change the display state of the number of characters prompting signs from left to right; when the number of characters prompting signs is arranged vertically. , can be configured to change the display state of the character number prompt logo in sequence from top to bottom.
  • the number of characters prompt signs are displayed in the lyrics editing area 512 , and the number is the same as the threshold value of the number of characters.
  • the default display state of the character count indicator is a hollow dot. The client can change the same number of character count prompts to black filled dots based on the number of edited characters. As shown in FIG. 5
  • the number of edited characters in the lyrics editing page 510 is 7, the 7 characters indicating the number of characters are displayed as dots filled with black; in the lyrics editing page 520, the number of edited characters is 0, then the number of characters
  • the prompt marks are displayed as hollow dots; if the number of edited characters on the lyrics editing page 530 is 3, the prompt marks of the first three characters are displayed as black filled dots.
  • the user by displaying the number of characters prompting signs that are the same as the number of characters threshold, and changing the display state of the prompting signs of the number of characters correspondingly with the number of edited characters, the user can be given clear prompt information, and the usage is improved. convenience.
  • step S240 in response to the editing completion instruction, adding the target phrase to the lyrics text includes: in response to the editing completion instruction, acquiring a sensitive word detection result obtained by detecting the target phrase; responding If the detection result of sensitive words is passed, the target words and sentences are added to the lyrics text.
  • the client may detect the target word based on the sensitive word detection algorithm and the preset sensitive word database, and obtain a detection result of whether there is a sensitive word in it.
  • the sensitive word detection algorithm may adopt any one of the prefix tree algorithm, the AC automaton (Aho-Corasick Automation), and the DFA (Deterministic Finite Automaton, deterministic finite automaton) algorithm. If the client obtains that there are no sensitive words in the target words and sentences, it can continue to replace the words and sentences to be edited in the lyrics text with the target words and sentences.
  • the client can return to the lyrics editing page, obtain the content of the sensitive word in the target sentence, and change the display status of the content of the sensitive word, for example, highlight the content of the sensitive word and increase the font size Wait.
  • FIG. 6 exemplarily shows a schematic diagram of displaying sensitive words.
  • a saving prompt page 620 is displayed.
  • the save prompt page 620 includes prompt information "whether to save the word modification", a save button and a discard button. If the client detects the triggering operation of the save button, the target word can be detected by the sensitive word detection algorithm, and the detection result of whether there is a sensitive word in the target word can be obtained. If it exists, the client can return to the lyrics editing page 630 and change the display state of the content of the sensitive word in the target phrase ("waiting for you" in FIG. 6 is a sensitive word).
  • the client terminal may also display prompt information that the sensitive word detection fails, such as "The lyrics contain unsuitable text, please modify" in the lyrics editing page 630, to prompt the user why the target words and sentences cannot be saved.
  • the client terminal may also display character number prompt information, such as "please complete the modification according to the number of words in the lyrics” on the lyrics editing page 640, to prompt the user to modify according to the word number requirement.
  • the lyrics can be saved only when the detection is passed, which can effectively prevent the generation of illegal and illegal lyrics texts, thereby effectively reducing the inconsistency of lyrics creation. compliance risk.
  • Fig. 7 is a flowchart of a method for processing lyrics according to an exemplary embodiment. As shown in Fig. 7 , the method for processing lyrics is used in a terminal and includes the following steps.
  • step S702 lyric text and song melody are acquired. Display lyric text on the song edit page.
  • the lyric text may be intelligently generated based on a user-selected target song theme.
  • the song theme can be used to reflect the genre to which the lyric text belongs, eg, youth, humor, love, praise, school, etc. themes.
  • Multi-level song themes can be predefined.
  • the first-level song themes include youth, wit, love, praise, school.
  • the first-level song theme "Youth" can also include second-level song themes such as the girl next door, post-70s, post-80s, etc.
  • the target song theme can be used to reflect the user's expectation on the core content of the lyrics, and the number can be at least one.
  • the client can display the song theme configuration page.
  • the target song theme is obtained by responding to the adding operation of the song theme through the song theme configuration page.
  • the operation of adding a song theme is not limited to a single-click operation, a double-click operation, a long-press operation, a sliding operation, a gesture operation, an operation on a preset operation control, and the like.
  • deploy the add theme control in the song theme page to enable the user to trigger the add operation of the song theme by clicking on the control; or, in response to the user's long-press operation, display the action menu so that the user can trigger the song from the action menu Add operation of theme; or, deploy an input prompt box of song theme on the page, so that the user can trigger the add operation of song theme by clicking on the input prompt box.
  • the client may display a theme adding page of the song theme in response to the adding operation of the song theme.
  • the theme adding page may include one or more of a theme input area, a theme recommendation area, a history record area, and a material upload area. The user can enter the theme of the song through any of these fields.
  • the subject input area displays a text input box.
  • the user can manually input text information through the text input box, so that the client can determine the target song theme from a plurality of predefined song themes based on the text information.
  • the client may search for a song theme containing main text information from predefined song themes based on a search algorithm as a target song theme.
  • the topic recommendation area can display multiple recommended topics.
  • the recommended topic may be obtained by recommending the recommendation system based on the recommendation logic.
  • the recommendation logic can be deployed based on the similarity between the user account and the song theme, the search popularity of the song theme, etc., for example, it can be a song theme with a large search volume or high popularity, a song theme that more closely matches the behavior data of the user account, etc. .
  • the client may respond to a triggering operation on any one or more recommended themes in the theme recommendation area, and use the triggered recommended theme as the target song theme.
  • the history area displays the history topics that have been searched by the user account.
  • the client can respond to the triggering operation on any one or more historical themes in the history record area, and use the triggered historical theme as the target song theme.
  • the material upload area can include material upload controls.
  • the client can respond to the trigger operation of the material upload control to obtain the material uploaded by the user.
  • the material can be pictures, videos, music, etc.
  • the client can intelligently identify the material uploaded by the user based on the deep learning model and other methods, and obtain the theme of the target song. It can be understood that the deep learning model in the embodiment of the present disclosure has been trained using several material samples, and has the ability to detect and identify the material uploaded by the user.
  • the client can respond to the lyrics generation instruction and send a lyrics generation request to the server, and the lyrics generation request carries the target song theme.
  • the server is configured with a corresponding relationship between song theme and lyric text. After the server receives the lyrics generation request, at least one lyrics text matching the target song theme is retrieved based on the corresponding relationship between the song theme and the lyrics text.
  • the correspondence between the song theme and the lyric text may be obtained by the following manner: obtaining several lyric texts in advance.
  • Several lyric texts can be obtained by one or more of collecting lyrics in existing songs, lyrics created by users themselves, and combination of lyrics and phrases through a deep learning model.
  • each lyric text is analyzed and processed, and the song theme of each lyric text is obtained.
  • Create a lyric library corresponding to the song theme and store the lyric text in the lyric library corresponding to the song theme; or, label each lyric text with a corresponding song theme tag, thereby forming a corresponding relationship between the song theme and the lyric text.
  • the above-mentioned lyric text matching the theme of the target song can also be obtained by executing the client.
  • the lyric text is determined by the server and the client. The difference between the two is only the difference in the execution body, and the implementation principle and implementation process are similar.
  • the song melody may be intelligently generated based on the target melody attribute information selected by the user.
  • the client can display the song melody configuration page.
  • the user can configure the desired melody attribute information through the song melody configuration page.
  • the song melody configuration page may include any one or more of a melody attribute selection area, a melody attribute input area, a melody attribute recommendation area, a history record area, a material upload area, and the like.
  • the user can input target melody attribute information through any of the fields. Exemplarily, at least one melody attribute and attribute information corresponding to the melody attribute may be displayed in the melody attribute selection area.
  • the attribute information of each melody attribute can be presented in the form of a list, a control, etc., so that the user can configure the target melody attribute information by means of a drop-down menu of the list, clicking a button, and the like.
  • the client When the configuration of the target melody attribute information is completed, the client sends a melody generation request to the server in response to the melody generation instruction.
  • the melody generation request carries the target melody attribute information to request the server to generate at least one song matching the target melody attribute information. melody.
  • At least one song melody that matches the target melody attribute information may be obtained by the following manner: a corresponding relationship between the melody attribute information and the song melody is configured in the server. After the server receives the melody generation request, at least one song melody matching the target melody attribute information is retrieved based on the corresponding relationship between the melody attribute information and the song melody.
  • the correspondence between the melody attribute information and the song melody may be obtained by the following manner: acquiring several song melody segments in advance.
  • Several melody segments may be obtained by one or more of the methods, such as being obtained from an existing melody of a song, obtained from a melody created by the user, or by splicing an existing melody.
  • Each song melody segment can be analyzed and processed based on the deep learning model, and the melody attribute information of each song melody segment can be obtained.
  • FIG. 8 exemplarily shows a schematic diagram of composing lyric text and song melody.
  • song theme configuration page 812 and song melody configuration page 814 may be displayed together in song configuration page 810 .
  • the song theme configuration page 812 includes a theme adding control, so that the client can acquire the target song theme in response to a triggering operation on the theme adding control.
  • Song melody configuration page 814 includes attribute selection controls corresponding to each melody attribute. The client can respond to the triggering operation on the attribute selection control to obtain the attribute information of the target melody.
  • the lyrics generation instruction and the melody generation instruction may be obtained in response to a trigger operation of the key 816 .
  • the song selection page 820 is displayed.
  • the song selection page 820 includes at least one candidate song, and each candidate song includes a lyric text matching the theme of the target song and a song melody matching the attribute information of the target melody.
  • the client detects the triggering operation of the button 822 on the song selection page 820 , it acquires the currently displayed candidate songs, and displays the song editing page 830 .
  • Song edit page 830 includes lyrics edit controls.
  • step S704 in response to the triggering operation on the lyrics editing control, the lyrics editing page is displayed, and the lyrics text is displayed in the lyrics editing page. Editing completion controls and audition controls are also displayed on the lyrics editing page.
  • step S706 the words and phrases to be edited selected from the lyrics text are acquired.
  • the specific selection method for obtaining the words and sentences to be edited may refer to the above-mentioned embodiments, which will not be described in detail here.
  • step S708 a threshold value of the number of characters corresponding to the words and sentences to be edited is obtained, and prompt information of the number of characters of the words and sentences to be edited is displayed on the lyrics editing page.
  • the specific implementation manner of acquiring the character number threshold and the character number prompt information may refer to the foregoing embodiments, which will not be described in detail here.
  • step S710 according to the comparison result between the number of edited characters and the threshold value of the number of characters of the words and sentences to be edited, the prompt information of the number of characters is displayed in a display state corresponding to the comparison result.
  • the specific way of acquiring the number of edited characters and the specific implementation way of adjusting the display state of the prompt information of the number of characters according to the comparison result may refer to the above-mentioned embodiments, and will not be described in detail here.
  • step S712 in response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words and phrases to be edited, the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
  • step S714 in response to the triggering operation on the editing completion control, a sensitive word detection result obtained by detecting the target word and sentence is acquired. If the sensitive word detection result is passed, go to step S716; otherwise, go to step S718.
  • step S716 return to the song editing page, and replace the words to be edited in the lyrics text in the song editing page with the target words and sentences.
  • step S718 return to the lyrics editing page, acquire the content of the sensitive word in the target phrase, and change the display state of the content of the sensitive word.
  • the specific implementation manner of changing the display state of the content of the sensitive word may refer to the above-mentioned embodiments, which will not be described in detail here.
  • the sentence melody corresponding to the target sentence and sentence can be obtained from the song melody, and the target sentence and sentence melody can be played.
  • FIG. 9 is a block diagram of an apparatus 900 for processing lyrics according to an exemplary embodiment.
  • the apparatus includes a first display module 902 , a first word and sentence acquisition module 904 , a second word and sentence acquisition module 906 and an adding module 908 .
  • the first display module 902 is configured to display the lyrics text in the lyrics editing page; the first phrase acquisition module 904 is configured to acquire the words and phrases to be edited selected from the lyrics text; the second phrase acquisition module 906 is configured to acquire The target phrase obtained after editing the phrase to be edited; the adding module 908 is configured to add the target phrase to the lyrics text in response to the editing completion instruction.
  • the apparatus 900 further includes: a melody acquisition module, configured to respond to the trigger operation of the audition control in the lyrics editing page, to acquire the melody corresponding to the target phrase; a playback module, configured to play the target phrase Melody with words.
  • the apparatus 900 further includes: a third obtaining module, configured to obtain a threshold of the number of characters corresponding to the phrase to be edited; a second display module, configured to display the number of characters of the phrase to be edited on the lyrics editing page Prompt information; the third display module is configured to display the character number prompt information in a display state that meets the word number requirement when the number of edited characters of the words and sentences to be edited is consistent with the character number threshold.
  • the third display module is configured to display the character number prompt information that does not meet the word number requirement when the number of edited characters of the phrase to be edited is inconsistent with the character number threshold.
  • the apparatus 900 further includes: a fourth display module configured to display a character number prompting mark on the lyrics editing page, the number of the character number prompting mark being consistent with the character number threshold corresponding to the words and sentences to be edited; the first The changing module is configured to change the display state of the character number prompt sign according to the number of edited characters.
  • the apparatus 900 further includes: an activation module configured to, in response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words to be edited, change the state of the editing completion control in the lyrics editing page to an inactive state Change to active state.
  • the apparatus 900 further includes a response module configured to display a lyrics editing page in response to a triggering operation on the lyrics editing control.
  • the adding module 908 includes: a detecting unit, configured to obtain a sensitive word detection result obtained by detecting the target phrase in response to the editing completion instruction; an adding unit, configured to respond to the sensitive word detection result To pass, add the target phrase to the lyric text.
  • the apparatus 900 further includes: a return module, configured to return to the lyrics editing page in response to the detection result of the sensitive word being failed; a second change module, configured to obtain the sensitive content in the target phrase to change the display state of sensitive content.
  • Fig. 10 is a block diagram of an electronic device Z00 for processing lyrics according to an exemplary embodiment.
  • electronic device Z00 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
  • an electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power supply component Z06, a multimedia component Z08, an audio component Z10, an input/output (I/O) interface Z12, a sensor component Z14 and the communication component Z16.
  • the processing component Z02 generally controls the overall operation of the electronic device Z00, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component Z02 may include one or more processors Z20 to execute instructions to perform all or some of the steps of the method described above.
  • processing component Z02 may include one or more modules to facilitate interaction between processing component Z02 and other components.
  • processing component Z02 may include a multimedia module to facilitate interaction between multimedia component Z08 and processing component Z02.
  • the memory Z04 is configured to store various types of data to support operation at the electronic device Z00. Examples of such data include instructions for any application or method operating on electronic device Z00, contact data, phonebook data, messages, pictures, videos, and the like.
  • the memory Z04 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power supply assembly Z06 provides power to various components of electronic device Z00.
  • Power component Z06 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device Z00.
  • the multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component Z08 includes a front-facing camera and/or a rear-facing camera. When the electronic device Z00 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component Z10 is configured to output and/or input audio signals.
  • audio assembly Z10 includes a microphone (MIC) that is configured to receive external audio signals when electronic device Z00 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in the memory Z04 or transmitted via the communication component Z16.
  • audio assembly Z10 also includes a speaker for outputting audio signals.
  • the I/O interface Z12 provides an interface between the processing component Z02 and a peripheral interface module, and the above-mentioned peripheral interface module can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
  • Sensor assembly Z14 includes one or more sensors for providing various aspects of status assessment for electronic device Z00.
  • the sensor assembly Z14 can detect the open/closed state of the electronic device Z00, the relative positioning of the components, for example, the components are the display and the keypad of the electronic device Z00, and the sensor assembly Z14 can also detect the electronic device Z00 or one of the electronic devices Z00 Changes in the position of components, presence or absence of user contact with the electronic device Z00, electronic device Z00 orientation or acceleration/deceleration and temperature changes in the electronic device Z00.
  • Sensor assembly Z14 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component Z16 is configured to facilitate wired or wireless communication between electronic device Z00 and other devices.
  • the electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof.
  • the communication component Z16 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component Z16 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device Z00 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmed gate array
  • controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • non-transitory computer-readable storage medium including instructions, such as a memory Z04 including instructions, which are executable by the processor Z20 of the electronic device Z00 to perform the above method.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • a computer program product including a computer program, which, when executed by a processor, implements the lyrics processing method described in any one of the foregoing embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

A lyric processing method and apparatus, and an electronic device, a computer-readable storage medium and a computer program product, which relate to the technical field of the Internet. The method comprises: displaying lyric text in a lyric editing page (S210); acquiring words and phrases to be edited that are selected from the lyric text (S220); acquiring target words and phrases obtained after editing the words and phrases to be edited (S230); and in response to an editing completion instruction, adding the target words and phrases to the lyric text (S240).

Description

歌词处理方法及装置Lyric processing method and device
交叉引用cross reference
本申请基于申请号为202011628575.X、申请日为2020年12月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with the application number 202011628575.X and the filing date on December 30, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is incorporated herein by reference.
技术领域technical field
本公开涉及互联网技术领域,尤其涉及一种歌词处理方法、装置、电子设备、计算机可读存储介质及计算机程序产品。The present disclosure relates to the field of Internet technologies, and in particular, to a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing lyrics.
背景技术Background technique
随着互联网技术的发展,出现了越来越多的应用程序支持用户进行创作歌曲。歌曲的创作包括歌词创作和旋律创作。With the development of Internet technology, more and more applications appear to support users to compose songs. Songwriting includes lyrics and melody.
相关技术中,用户可以在应用程序中基于一首现有歌曲的旋律自定义填写歌词,得到一首新的词曲。或者,通过系统基于一首现有歌曲的伴奏随机进行配词,得到一首新的词曲。在系统生成词曲后,用户可以对所得到的歌词进行再编辑。In the related art, the user can customize the lyrics based on the melody of an existing song in the application program to obtain a new song. Or, a new song is obtained by randomly matching lyrics based on the accompaniment of an existing song by the system. After the system generates the lyrics, the user can re-edit the obtained lyrics.
发明内容SUMMARY OF THE INVENTION
本公开提供一种歌词处理方法、装置、电子设备、计算机可读存储介质及计算机程序产品。本公开的技术方案如下:The present disclosure provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing lyrics. The technical solutions of the present disclosure are as follows:
根据本公开实施例的第一方面,提供一种歌词处理方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for processing lyrics, including:
在歌词编辑页面中显示歌词文本;Display lyrics text in the lyrics editing page;
获取从所述歌词文本中选择的待编辑词句;Obtain the words and phrases to be edited selected from the lyrics text;
获取对所述待编辑词句进行编辑后得到的目标词句;Obtain the target words and sentences obtained after editing the words and sentences to be edited;
响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。The target phrase is added to the lyric text in response to an editing completion instruction.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
响应对所述歌词编辑页面中试听控件的触发操作,获取与所述目标词句对应的词句旋律;In response to the trigger operation of the audition control in the lyrics editing page, obtain the phrase melody corresponding to the target phrase;
播放所述目标词句与所述词句旋律。The target phrase and the phrase melody are played.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
获取所述待编辑词句对应的字符数阈值;Obtain the character threshold corresponding to the words and sentences to be edited;
在所述歌词编辑页面显示所述待编辑词句的字符数提示信息;Display the character number prompt information of the to-be-edited phrase on the lyrics editing page;
在所述待编辑词句的已编辑字符数与所述字符数阈值一致的情况下,所述字符数提示信息处于符合字数要求的显示状态。When the number of edited characters of the to-be-edited phrase is consistent with the character number threshold, the character number prompt information is in a display state that meets the word number requirement.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
在所述待编辑词句的已编辑字符数与所述字符数阈值不一致的情况下,所述字符数提示信息处于不符合字数要求的显示状态。In the case that the number of edited characters of the to-be-edited phrase is inconsistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that does not meet the requirement of the number of characters.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
在所述歌词编辑页面显示字符数提示标识,所述字符数提示标识的数量与所述待编辑词句对应的字符数阈值一致;On the lyrics editing page, display a character number prompting mark, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
根据已编辑字符数改变所述字符数提示标识的显示状态。The display state of the character number prompting mark is changed according to the number of edited characters.
在其中一个实施例中,在所述响应于编辑完成指令之前,还包括:In one of the embodiments, before the responding to the editing completion instruction, the method further includes:
响应于所述已编辑字符数与所述待编辑词句对应的字符数阈值一致,将所述歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。In response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words and sentences to be edited, the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
响应于对歌词编辑控件的触发操作,显示所述歌词编辑页面。The lyrics editing page is displayed in response to a triggering operation on the lyrics editing control.
在其中一个实施例中,所述响应于编辑完成指令,将所述目标词句添加到所述歌词文本中,包括:In one embodiment, the adding the target phrase to the lyrics text in response to the editing completion instruction includes:
响应于所述编辑完成指令,获取对所述目标词句进行检测得到的敏感词检测结果;In response to the editing completion instruction, acquiring a sensitive word detection result obtained by detecting the target word and sentence;
响应于所述敏感词检测结果为通过,将所述目标词句添加到所述歌词文本中。In response to the sensitive word detection result being a pass, the target phrase is added to the lyric text.
在其中一个实施例中,所述方法还包括:In one embodiment, the method further includes:
响应于所述敏感词检测结果为未通过,返回至所述歌词编辑页面;In response to the detection result of the sensitive word being failed, returning to the lyrics editing page;
获取所述目标词句中的敏感内容,变更所述敏感内容的显示状态。Acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
根据本公开实施例的第二方面,提供一种歌词处理装置,其特征在于,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a lyrics processing device, characterized in that it includes:
第一显示模块,被配置为在歌词编辑页面中显示歌词文本;The first display module is configured to display the lyrics text in the lyrics editing page;
第一词句获取模块,被配置为获取从所述歌词文本中选择的待编辑词句;The first word and sentence acquisition module is configured to obtain the words and sentences to be edited selected from the lyrics text;
第二词句获取模块,被配置为获取对所述待编辑词句进行编辑后得到的目标词句;The second word and sentence obtaining module is configured to obtain the target word and sentence obtained after editing the to-be-edited word and sentence;
添加模块,被配置为响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。An adding module is configured to add the target phrase to the lyric text in response to an editing completion instruction.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
旋律获取模块,被配置为响应对所述歌词编辑页面中试听控件的触发操作,获取与所述目标词句对应的词句旋律;The melody acquisition module is configured to respond to the trigger operation of the audition control in the lyrics editing page, and acquire the melody corresponding to the target phrase;
播放模块,被配置为播放所述目标词句与所述词句旋律。The playing module is configured to play the target phrase and the phrase melody.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
第三获取模块,被配置为获取所述待编辑词句对应的字符数阈值;A third obtaining module, configured to obtain the character threshold corresponding to the words and sentences to be edited;
第二显示模块,被配置为在所述歌词编辑页面显示所述待编辑词句的字符数提示信息;The second display module is configured to display the character number prompt information of the words and phrases to be edited on the lyrics editing page;
第三显示模块,被配置为在所述待编辑词句的已编辑字符数与所述字符数阈值一致的情况下,所述字符数提示信息处于符合字数要求的显示状态。The third display module is configured to, when the number of edited characters of the to-be-edited word and sentence is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of words.
在其中一个实施例中,所述第三显示模块,被配置为在所述待编辑词句的已编辑字符数与所述字符数阈值不一致的情况下,所述字符数提示信息处于不符合字数要求的显示状态。In one embodiment, the third display module is configured to, when the number of edited characters of the to-be-edited word and sentence is inconsistent with the threshold of the number of characters, the prompt information of the number of characters is in a state where the number of characters does not meet the requirement of the number of characters display status.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
第四显示模块,被配置为在所述歌词编辑页面显示字符数提示标识,所述字符数提示标识的数量与所述待编辑词句对应的字符数阈值一致;The fourth display module is configured to display a character number prompting mark on the lyrics editing page, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
第一变更模块,被配置为根据已编辑字符数改变所述字符数提示标识的显示状态。The first changing module is configured to change the display state of the character number prompting mark according to the number of edited characters.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
激活模块,被配置为响应于所述已编辑字符数与所述待编辑词句对应的字符数阈值一致,将所述歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。The activation module is configured to change the state of the editing completion control in the lyrics editing page from an inactive state to an active state in response to the fact that the number of edited characters is consistent with the threshold of the number of characters corresponding to the words and sentences to be edited.
在其中一个实施例中,所述装置还包括:响应模块,被配置为响应于对歌词编辑控件的触发操作,显示所述歌词编辑页面。In one of the embodiments, the apparatus further includes: a response module configured to display the lyrics editing page in response to a triggering operation on the lyrics editing control.
在其中一个实施例中,所述添加模块,包括:In one embodiment, the adding module includes:
检测单元,被配置为响应于所述编辑完成指令,获取对所述目标词句进行检测得到的敏感词检测结果;a detection unit, configured to obtain a sensitive word detection result obtained by detecting the target word and sentence in response to the editing completion instruction;
添加单元,被配置为响应于所述敏感词检测结果为通过,将所述目标词句添加到所述 歌词文本中。The adding unit is configured to add the target phrase to the lyrics text in response to the sensitive word detection result being a pass.
在其中一个实施例中,所述装置还包括:In one embodiment, the apparatus further includes:
返回模块,被配置为响应于所述敏感词检测结果为未通过,返回至所述歌词编辑页面;A return module, configured to return to the lyrics editing page in response to the sensitive word detection result being a failure;
第二变更模块,被配置为获取所述目标词句中的敏感内容,变更所述敏感内容的显示状态。The second changing module is configured to acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising:
处理器;processor;
用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;
其中,所述处理器被配置为执行所述指令,以实现如第一方面任一项实施例所述的歌词处理方法。Wherein, the processor is configured to execute the instructions to implement the lyrics processing method according to any embodiment of the first aspect.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其特征在于,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如第一方面任一项实施例所述的歌词处理方法。According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can be executed The lyrics processing method according to any one of the embodiments of the first aspect.
根据本公开实施例的第四方面,提供一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现第一方面任一项实施例所述的歌词处理方法。According to a fourth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the lyrics processing method according to any one of the embodiments of the first aspect when the computer program is executed by a processor.
在歌词编辑页面中显示歌词文本;获取从歌词文本中选择的待编辑词句;获取对待编辑词句进行编辑后得到的目标词句;在编辑完成后将目标词句添加到歌词文本中。通过部署歌词编辑页面,支持用户对歌词文本中的词句进行单独的自定义再编辑,使歌词创作更易于操作,提高了歌词创作的效率。Display the lyrics text on the lyrics editing page; obtain the words and phrases to be edited selected from the lyrics text; obtain the target words and sentences obtained after editing the words to be edited; add the target words to the lyrics text after the editing is completed. By deploying the lyrics editing page, users are supported to individually customize and re-edit the words and phrases in the lyrics text, which makes lyrics creation easier to operate and improves the efficiency of lyrics creation.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理,并不构成对本公开的不当限定。The accompanying drawings, which are incorporated into and constitute a part of this specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure and do not unduly limit the present disclosure.
图1是根据一示例性实施例示出的一种歌词处理方法的应用环境图。FIG. 1 is an application environment diagram of a method for processing lyrics according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种歌词处理方法的流程图。Fig. 2 is a flowchart of a method for processing lyrics according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种显示歌词编辑页面的示意图。Fig. 3 is a schematic diagram of displaying a lyrics editing page according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种变更字符数提示信息的流程图。Fig. 4 is a flow chart of prompting information for changing the number of characters according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种显示字符数提示信息的示意图。Fig. 5 is a schematic diagram of displaying prompt information of the number of characters according to an exemplary embodiment.
图6是根据一示例性实施例示出一种敏感词检测的示意图。FIG. 6 is a schematic diagram illustrating a sensitive word detection according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种歌词处理方法的流程图。Fig. 7 is a flow chart of a method for processing lyrics according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种获取歌词文本和歌曲旋律的示意图。Fig. 8 is a schematic diagram of acquiring lyric text and song melody according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种歌词处理装置的框图。Fig. 9 is a block diagram of an apparatus for processing lyrics according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种电子设备的内部结构图。Fig. 10 is an internal structure diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图,对本公开实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本公开相 一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
在一示例性实施例中,本公开所提供的歌词处理方法,可以应用于如图1所示的应用环境中。其中,终端110可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。终端110中可以安装有支持歌词编辑功能的应用程序。应用程序可以是社交类应用程序、短视频类应用程序、即时通信类应用程序、音乐创作类应用程序等。歌词编辑功能可以通过插件、小程序等形式部署在这些应用程序中。终端110可以通过应用程序向用户提供歌词编辑页面,使用户能够通过歌词编辑页面对歌词文本进行编辑。在一些实施例中,终端110在歌词编辑页面中显示歌词文本;获取从歌词文本中选择的待编辑词句;获取对待编辑词句进行编辑后得到的目标词句;响应于编辑完成指令,将目标词句添加到歌词文本中。In an exemplary embodiment, the lyrics processing method provided by the present disclosure can be applied to the application environment shown in FIG. 1 . Wherein, the terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The terminal 110 may be installed with an application program supporting the function of editing lyrics. The application may be a social application, a short video application, an instant messaging application, a music creation application, and the like. The lyrics editing function can be deployed in these applications through plug-ins, applets, etc. The terminal 110 may provide the user with a lyrics editing page through an application program, so that the user can edit the lyrics text through the lyrics editing page. In some embodiments, the terminal 110 displays the lyrics text in the lyrics editing page; obtains the words and phrases to be edited selected from the lyrics text; obtains the target words and sentences obtained after editing the words and phrases to be edited; in response to the editing completion instruction, adds the target words and sentences into the lyric text.
在另一示例性实施例中,本公开所提供的歌词处理方法可以应用于包括终端和服务器的应用环境中。其中,终端和服务器通过网络进行交互。终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。服务器中可以部署有智能化的歌词生成逻辑。歌词生成逻辑可以基于深度学习模型、查找算法等实现。深度学习模型可以是任一种能够用于生成歌词的模型,例如,线性模型、神经网络模型、支持向量机等。查找算法可以是顺序查找、二分查找等。终端获取服务器基于智能化的歌词生成逻辑生成的歌词文本,在歌词编辑页面中显示歌词文本。终端获取从歌词文本中选择的待编辑词句;获取对待编辑词句进行编辑后得到的目标词句。响应于编辑完成指令,将目标词句添加到歌词文本中。In another exemplary embodiment, the lyrics processing method provided by the present disclosure can be applied to an application environment including a terminal and a server. Among them, the terminal and the server interact through the network. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented as an independent server or a server cluster composed of multiple servers. Intelligent lyrics generation logic can be deployed in the server. The lyrics generation logic can be implemented based on deep learning models, search algorithms, etc. The deep learning model can be any model that can be used to generate lyrics, such as linear models, neural network models, support vector machines, etc. The search algorithm can be sequential search, binary search, etc. The terminal acquires the lyrics text generated by the server based on the intelligent lyrics generation logic, and displays the lyrics text on the lyrics editing page. The terminal acquires the words and phrases to be edited selected from the lyrics text; and acquires the target words and sentences obtained after editing the words and phrases to be edited. In response to the editing completion instruction, the target phrase is added to the lyric text.
图2是根据一示例性实施例示出的一种歌词处理方法的流程图,如图2所示,歌词处理方法用于终端中,包括以下步骤。FIG. 2 is a flowchart of a method for processing lyrics according to an exemplary embodiment. As shown in FIG. 2 , the method for processing lyrics is used in a terminal, and includes the following steps.
在步骤S210中,在歌词编辑页面中显示歌词文本。In step S210, the lyrics text is displayed on the lyrics editing page.
其中,歌词编辑页面支持用户对歌词文本中的文字进行编辑,得到新的歌词文本。歌词编辑页面中可以显示有待编辑的歌词文本、相关控件、编辑提示信息等内容。The lyrics editing page supports the user to edit the text in the lyrics text to obtain new lyrics text. The lyrics editing page can display the lyrics text to be edited, related controls, editing prompt information, etc.
其中,歌词文本可以是现有歌曲中的歌词文本,可以存储在本地数据库或者预先固化在服务器中,在这种情况下,客户端可以提供歌词文本上传功能,以通过该上传功能获取用户上传的需要编辑的歌词文本。歌词文本也可以是用户自主创作得到的文本,在这种情况下,客户端可以提供歌词创作页面,以供用户进行歌词创作,例如,提供歌词创作页面供用户自主编辑得到歌词文本,或者提供歌词创作页面供用户定义歌曲属性信息,以供客户端或者服务器基于歌曲属性信息智能化生成歌词文本。The lyric text can be the lyric text in an existing song, which can be stored in a local database or pre-fixed in the server. In this case, the client can provide a lyric text upload function, so as to obtain the lyric text uploaded by the user through the upload function. Lyric text that needs to be edited. The lyrics text can also be the text created by the user. In this case, the client can provide a lyrics creation page for the user to create lyrics. For example, provide a lyrics creation page for the user to edit the lyrics text independently, or provide lyrics. The authoring page is for users to define song attribute information, so that the client or server can intelligently generate lyrics text based on the song attribute information.
在步骤S220中,获取从歌词文本中选择的待编辑词句。In step S220, the words and phrases to be edited selected from the lyrics text are acquired.
其中,待编辑词句可以是歌词文本中的任一句或多句词句,也可以是歌词文本中的任意词汇、字符等内容。The words and sentences to be edited may be any sentence or multiple sentences in the lyrics text, or may be any words, characters, etc. in the lyrics text.
在一些实施例中,终端可以响应用户对歌词文本的词句选择操作,获取选择的待编辑词句。其中,词句选择操作可以是长按操作、拖动操作、单击操作、双击操作等。例如,响应对歌词文本中任意位置的长按操作,显示操作菜单,操作菜单中包括选择词句选择选项。响应对词句选择选项的触发操作,显示选择光标,以使用户能够通过移动光标位置选择待编辑词句。或者,响应用户对词句的点击操作,将被点击的词句作为待编辑词句。In some embodiments, the terminal may acquire the selected words and sentences to be edited in response to the user's operation of selecting words and sentences on the lyrics text. The word and sentence selection operation may be a long-press operation, a drag operation, a single-click operation, a double-click operation, and the like. For example, in response to a long-pressing operation on any position in the lyrics text, an operation menu is displayed, and the operation menu includes a selection word selection option. In response to the triggering operation of the word and sentence selection option, the selection cursor is displayed, so that the user can select the word and sentence to be edited by moving the cursor position. Or, in response to the user's click operation on the words and sentences, the clicked words and sentences are used as the words and sentences to be edited.
在一个可能性实施例中,显示于歌词编辑页面中歌词文本的默认状态可以为可编辑状态。这样,用户无需选择待编辑词句,便可对歌词文本中的任意词句进行编辑。In a possible embodiment, the default state of the lyrics text displayed in the lyrics editing page may be an editable state. In this way, the user can edit any words and sentences in the lyrics text without selecting the words and sentences to be edited.
在步骤S230中,获取对待编辑词句进行编辑后得到的目标词句。In step S230, the target words and sentences obtained after editing the words and sentences to be edited are obtained.
在步骤S240中,响应于编辑完成指令,将目标词句添加到歌词文本中。In step S240, in response to the editing completion instruction, the target phrase is added to the lyrics text.
其中,目标词句可以是对待编辑词句进行编辑后,用于替换待编辑词句的词句。编辑 完成指令可以通过对预设控件的触发操作、检测语音指令、检测预设手势等方式获取。The target words and sentences may be words and sentences used to replace the words and sentences to be edited after the words and sentences to be edited are edited. Editing completion commands can be obtained by triggering operations on preset controls, detecting voice commands, and detecting preset gestures.
在一些实施例中,客户端在获取待编辑词句后,可以显示文本输入框,以使用户能够通过文本输入框输入目标词句。或者,客户端可以将待编辑词句从不可编辑状态变更为可编辑状态,以使用户能够在待编辑词句的基础上进行编辑,例如进行删除字符、添加字符等操作。客户端在获取道编辑完成指令后,获取已输入的目标词句,并将歌词文本中的待编辑词句替换为目标词句。In some embodiments, after acquiring the phrase to be edited, the client terminal may display a text input box, so that the user can input the target phrase through the text input box. Alternatively, the client can change the to-be-edited phrase from an uneditable state to an editable state, so that the user can edit the to-be-edited phrase, such as deleting characters, adding characters, and the like. After obtaining the editing completion instruction, the client obtains the input target words and sentences, and replaces the words and sentences to be edited in the lyrics text with the target words and sentences.
在一些可能性实施例中,用户还可以在不修改歌词文本中原有词句的基础上,在歌词文本中添加新的词句。In some possible embodiments, the user can also add new words and phrases in the lyrics text without modifying the original words and phrases in the lyrics text.
上述歌词处理方法中,在歌词编辑页面中显示歌词文本;获取从歌词文本中选择的待编辑词句;获取对待编辑词句进行编辑后得到的目标词句;在编辑完成后将目标词句添加到歌词文本中。通过部署歌词编辑页面,支持用户对歌词文本中的词句进行单独的自定义再编辑,使歌词创作更易于操作,提高了歌词创作的效率。In the above lyrics processing method, the lyrics text is displayed on the lyrics editing page; the words and sentences to be edited selected from the lyrics text are obtained; the target words and sentences obtained after editing the words and sentences to be edited are obtained; after the editing is completed, the target words and sentences are added to the lyrics text . By deploying the lyrics editing page, users are supported to individually customize and re-edit the words and phrases in the lyrics text, which makes lyrics creation easier to operate and improves the efficiency of lyrics creation.
在一示例性实施例中,歌词编辑页面是客户端响应于对歌词编辑控件的触发操作显示的。In an exemplary embodiment, the lyrics editing page is displayed by the client in response to a triggering operation on the lyrics editing control.
其中,歌词编辑控件是用户可与之交互,以触发基于对歌词文本进行编辑的对象。歌词编辑控件不限于以固定控件的方式显示在歌词编辑页面的任意位置处;或者以悬浮按钮等方式灵活呈现在歌词编辑页面中。The lyric editing control is an object that the user can interact with to trigger editing based on the lyric text. The lyrics editing controls are not limited to be displayed at any position on the lyrics editing page in the form of fixed controls; or flexibly presented in the lyrics editing page by means of floating buttons or the like.
在一些实施例中,在客户端获取歌词文本后,可以显示歌曲编辑页面。歌曲编辑页面支持用户对歌曲中的歌词文本和歌曲旋律进行编辑,得到新的歌曲。歌曲编辑页面中可以显示有歌词编辑控件、旋律编辑控件、播放按键、歌词文本、歌曲时长等内容,以使用户能够通过歌曲编辑页面进行预览歌词文本、试听歌曲、对歌词文本和/或旋律进行再编辑。若客户端检测到对歌词编辑控件的触发操作,则显示歌词编辑页面,并在歌词编辑页面中显示歌词文本。In some embodiments, after the client obtains the lyrics text, a song editing page may be displayed. The song editing page supports users to edit the lyric text and song melody in the song to get a new song. The song editing page can display lyrics editing controls, melody editing controls, play buttons, lyric text, song duration, etc., so that users can preview the lyric text, listen to the song, and modify the lyric text and/or melody through the song editing page. Edit again. If the client detects a trigger operation on the lyrics editing control, it displays the lyrics editing page, and displays the lyrics text on the lyrics editing page.
图3示例性示出了一种歌曲编辑页面和歌词编辑页面的示意图。如图3所示,在客户端获取歌词文本后,可以显示歌曲编辑页面310。歌曲编辑页面310中包括歌词编辑控件(图3中的“改词”控件)、演唱控件等。若客户端检测到对歌词编辑控件的触发操作,则显示歌词编辑页面320,并在歌词编辑页面320中显示歌词文本。FIG. 3 exemplarily shows a schematic diagram of a song editing page and a lyrics editing page. As shown in FIG. 3 , after the client obtains the lyrics text, a song editing page 310 may be displayed. The song editing page 310 includes a lyric editing control (the "change word" control in FIG. 3 ), a singing control, and the like. If the client detects a triggering operation on the lyrics editing control, it displays the lyrics editing page 320 and displays the lyrics text in the lyrics editing page 320 .
本公开的实施例中,通过部署歌词编辑控件,使用户能够依自身需求选择是否进入歌词编辑页面,从而使歌词编辑具备灵活性;通过部署歌词编辑控件,还可以给予用户明显的视觉提醒,提升用户使用的便捷性。In the embodiment of the present disclosure, by deploying the lyrics editing control, users can choose whether to enter the lyrics editing page according to their own needs, so that the lyrics editing has flexibility; User convenience.
在一示例性实施例中,如图3所示,所述方法还包括:响应对歌词编辑页面中试听控件的触发操作,获取与目标词句对应的词句旋律;播放目标词句与词句旋律。In an exemplary embodiment, as shown in FIG. 3 , the method further includes: in response to a triggering operation on the audition control on the lyrics editing page, acquiring a phrase melody corresponding to the target phrase; playing the target phrase and phrase melody.
其中,试听控件是用户可与之交互,以触发播放目标词句和词句旋律的对象。The audition control is an object that the user can interact with to trigger the playback of the target phrase and phrase melody.
在一些实施例中,在获取歌词文本的同时,客户端还可以获取歌曲旋律。歌曲旋律可以是现有歌曲中的旋律,可以存储在本地数据库或者预先固化在服务器中,在这种情况下,客户端可以提供歌曲旋律上传功能,以通过该上传功能获取用户上传的歌曲旋律。歌曲旋律也可以是用户自主创作得到的旋律,在这种情况下,客户端可以提供歌曲旋律创作页面,以供用户进行歌曲旋律的创作,例如,提供歌曲旋律创作页面供用户自主编辑得到歌曲旋律,或者提供歌曲旋律创作页面供用户定义旋律属性信息,以供客户端或者服务器基于旋律属性信息智能化生成歌曲旋律。In some embodiments, while acquiring the lyrics text, the client can also acquire the melody of the song. The song melody can be the melody in an existing song, and can be stored in a local database or pre-solidified in the server. In this case, the client can provide a song melody upload function to obtain the song melody uploaded by the user through the upload function. The song melody can also be a melody created by the user. In this case, the client can provide a song melody creation page for the user to create a song melody. For example, a song melody creation page is provided for the user to edit the song melody independently. , or provide a song melody creation page for the user to define the melody attribute information, so that the client or the server can intelligently generate the song melody based on the melody attribute information.
客户端在获取歌词文本和歌曲旋律后,可以获取歌词文本中字符的发音时刻与歌曲旋律的播放时刻的对应关系。基于该对应关系从歌曲旋律中定位到与目标词句对应的词句旋律。在用户对待编辑词句进行编辑的过程中,可以通过触发试听控件控制客户端播放已编辑得到的目标词句和对应的词句旋律。After obtaining the lyrics text and the song melody, the client can obtain the correspondence between the pronunciation time of the characters in the lyrics text and the playing time of the song melody. Based on the corresponding relationship, the word melody corresponding to the target word is located from the song melody. In the process of editing the words to be edited, the user can control the client to play the edited target words and the corresponding word melody by triggering the audition control.
以图3中示出的歌词编辑页面320为例,如图3所示,歌词编辑页面320中包括试听控件322。客户端可以响应于对试听控件322的触发操作,播放目标词句和词句旋律或者暂停播放目标词句和词句旋律。Taking the lyrics editing page 320 shown in FIG. 3 as an example, as shown in FIG. 3 , the lyrics editing page 320 includes an audition control 322 . The client can play the target phrase and phrase melody or pause playing the target phrase and phrase melody in response to the triggering operation on the audition control 322 .
本公开的实施例中,通过在歌词编辑页面部署试听控件,使用户在对待编辑词句进行编辑的过程中,通过触发试听控件便可试听词句和旋律合成的歌曲效果,从而可以辅助用户在结合旋律的情况下更好地调整词句,提升歌词创作的质量和效率。In the embodiment of the present disclosure, by deploying the audition control on the lyrics editing page, in the process of editing the words to be edited, the user can listen to the song effect synthesized by the words and the melody by triggering the audition control, thereby assisting the user in combining the melody. In the case of better adjustment of words and phrases, improve the quality and efficiency of lyrics creation.
在一示例性实施例中,歌词编辑页面中还可以显示待编辑词句的字符数提示信息。如图4所示,所述方法还包括:In an exemplary embodiment, prompt information of the number of characters of the words and phrases to be edited may also be displayed on the lyrics editing page. As shown in Figure 4, the method further includes:
在步骤S410中,获取待编辑词句对应的字符数阈值。In step S410, a threshold of the number of characters corresponding to the words and sentences to be edited is obtained.
其中,字符数阈值用于控制对待编辑词句进行编辑能够输入的最多和/或最少的字符数。Wherein, the character number threshold is used to control the maximum and/or minimum number of characters that can be input for editing the words to be edited.
在一些可能性实施例中,字符数阈值可以是客户端在获取歌词文本后,对歌词文本进行自动检测得到的。在一些实施例中,客户端在获取歌词文本后,可以通过字符数检测逻辑对歌词文本进行检测,得到歌词文本中每句词句对应的字符数量,将该字符数量作为字符数阈值。其中,字符数检测逻辑可以通过Len函数(一种用于返回文本字符串中的字符数的函数)等方式得到。In some possible embodiments, the threshold of the number of characters may be obtained by the client automatically detecting the lyrics text after acquiring the lyrics text. In some embodiments, after acquiring the lyric text, the client can detect the lyric text through the character number detection logic, obtain the number of characters corresponding to each sentence and sentence in the lyric text, and use the character number as the character number threshold. Wherein, the character number detection logic can be obtained by a Len function (a function for returning the number of characters in a text string) or the like.
在一些可能性实施例中,若客户端还获取了歌曲旋律,那么字符数阈值还可以是对歌曲旋律进行分析处理得到的值。在一些实施例中,旋律是若干乐音经过艺术构思而形成的有组织、节奏的序列,是由许多音乐基本要素,如调式、节奏、节拍、力度、音色表演方法方式等有机地结合而成。示例性地,可以基于旋律中的节拍得到待编辑词句的字符数阈值。在一些实施例中,可以预先定义一个节拍对应的字符数,例如,定义一个节拍对应一个字符数。在客户端基于歌词文本中字符的发音时刻与歌曲旋律的播放时刻的对应关系定位到待编辑词句对应的词句旋律后,可以获取词句旋律中的节拍数。根据节拍数以及一个节拍对应的字符数计算得到待编辑词句对应的字符数阈值。In some possible embodiments, if the client also obtains the melody of the song, the character number threshold may also be a value obtained by analyzing and processing the melody of the song. In some embodiments, the melody is an organized and rhythmic sequence of several musical tones formed through artistic conception, and is organically combined from many basic elements of music, such as mode, rhythm, tempo, dynamics, and timbre performance methods. Exemplarily, the threshold of the number of characters of the phrase to be edited can be obtained based on the beat in the melody. In some embodiments, the number of characters corresponding to one beat may be pre-defined, for example, the number of characters corresponding to one beat is defined. After the client locates the phrase melody corresponding to the phrase to be edited based on the correspondence between the pronunciation time of the character in the lyric text and the playing time of the song melody, the number of beats in the phrase melody can be obtained. According to the number of beats and the number of characters corresponding to one beat, the threshold of the number of characters corresponding to the words and sentences to be edited is calculated.
在步骤S420中,在歌词编辑页面显示待编辑词句的字符数提示信息。In step S420, prompt information of the number of characters of the words and phrases to be edited is displayed on the lyrics editing page.
在步骤S430中,在待编辑词句的已编辑字符数与字符数阈值一致的情况下,字符数提示信息处于符合字数要求的显示状态。In step S430, when the number of edited characters of the word and sentence to be edited is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of characters.
在一些实施例中,客户端在获取待编辑词句的字符数阈值后,可以生成相对应的字符数提示信息,并在歌词编辑页面中显示待编辑词句的字符数提示信息。例如,待编辑词句的字符数阈值为6,那么可以相应地生成“本句限定6个字”的字符数提示信息。客户端实时获取对待编辑词句进行编辑已得到的已编辑字符数。将已编辑字符数与待编辑词句的字符数阈值进行比较。若已编辑字符数与待编辑词句的字符数阈值一致,则将字符数提示信息显示成符合字数要求的显示状态。若已编辑字符数与待编辑词句的字符数阈值不一致,则将字符数提示信息显示成不符合字数要求的显示状态。可以理解的是,符合字数要求的显示状态与不符合字数要求的显示状态不同,例如,符合字数要求的显示状态为灰色,不符合字数要求的显示状态为彩色。In some embodiments, after acquiring the character count threshold of the words and phrases to be edited, the client may generate corresponding character count prompt information, and display the character count prompt information of the to-be-edited words and phrases on the lyrics editing page. For example, if the threshold of the number of characters of the word and sentence to be edited is 6, then the prompt information of the number of characters of "this sentence is limited to 6 characters" can be generated accordingly. The client obtains the number of edited characters obtained by editing the words to be edited in real time. Compare the number of edited characters to the threshold of characters for the phrase to be edited. If the number of edited characters is consistent with the threshold of the number of characters of the word and sentence to be edited, the prompt message of the number of characters is displayed in a display state that meets the requirement of the number of characters. If the number of edited characters is inconsistent with the threshold of the number of characters of the word and sentence to be edited, the prompt message of the number of characters is displayed in a display state that does not meet the requirement of the number of characters. It can be understood that the display status that meets the word count requirement is different from the display status that does not meet the word count requirement. For example, the display status that meets the word count requirement is gray, and the display status that does not meet the word count requirement is colored.
进一步地,客户端还可以获取歌词文本中每句词句的实际字符数以及对应的字符数阈值。将每句词句的实际字符数与对应的字符数阈值进行比较。根据比较结果,将实际字符数与对应的字符数阈值不一致的词句显示成不符合字数要求的显示状态;将实际字符数与对应的字符数阈值一致的词句显示成符合字数要求的显示状态。Further, the client can also obtain the actual number of characters of each sentence in the lyrics text and the corresponding threshold of the number of characters. Compare the actual character count of each sentence to the corresponding character count threshold. According to the comparison result, the words and sentences whose actual number of characters is inconsistent with the corresponding threshold of the number of characters are displayed in a display state that does not meet the requirement of the number of characters;
图5示例性示出了一种显示字符数提示信息的示意图。如图5所示,歌词编辑页面510中设置有歌词编辑区512。可以配置默认状态下将歌词文本中的第一句显示在歌词编辑区512。另外,用户还可以对歌词文本实施拖动操作,将所要编辑的待编辑词句拖动至歌词编辑区512;或者对歌词文本中的待编辑词句实施点击操作,以使客户端响应该点击 操作,将待编辑词句显示在歌词编辑区512。客户端获取歌词编辑区512中的待编辑词句以及对应的字符数阈值。显示待编辑词句的字符数提示信息,如图5中的“本句限定7个字”。实时获取歌词编辑区512中的已编辑字符数,将已编辑字符数与字符数阈值进行比较。若一致,则将字符数提示信息显示为符合字数要求的显示状态;否则,显示为不符合字数要求的显示状态。参照图5,歌词编辑页面510中已编辑字符数“我把月亮送给你”与字符数阈值一致,则将字符数提示信息显示为浅灰色;歌词编辑页面520和歌词编辑页面530中,已编辑字符数与字符数阈值不一致,则将字符数提示信息显示为字体加粗样式。FIG. 5 exemplarily shows a schematic diagram of displaying character number prompt information. As shown in FIG. 5 , a lyrics editing area 512 is provided in the lyrics editing page 510 . It can be configured to display the first sentence in the lyrics text in the lyrics editing area 512 by default. In addition, the user can also perform a drag operation on the lyrics text, and drag the words and phrases to be edited to be edited to the lyrics editing area 512; The words and phrases to be edited are displayed in the lyrics editing area 512 . The client obtains the words and sentences to be edited in the lyrics editing area 512 and the corresponding character threshold. Displays the prompt information of the number of characters of the words and sentences to be edited, such as "This sentence is limited to 7 characters" in Figure 5. The number of edited characters in the lyrics editing area 512 is acquired in real time, and the number of edited characters is compared with the threshold of the number of characters. If they are consistent, the character number prompt information will be displayed in a display state that meets the requirements of the number of characters; otherwise, it will be displayed in a display state that does not meet the requirements of the number of characters. Referring to FIG. 5 , the number of edited characters "I will give you the moon" in the lyrics editing page 510 is consistent with the character number threshold, then the character number prompt information is displayed as light gray; in the lyrics editing page 520 and the lyrics editing page 530, the number of characters has been If the number of edited characters is inconsistent with the threshold of the number of characters, the prompt information of the number of characters will be displayed in bold font style.
本公开的实施例中,通过获取待编辑词句的字符数阈值,在歌词编辑页面中显示明确的字符数提示信息,可以给予用户清晰的专业性歌词修改导向,从而提高了歌词修改的质量和效率。In the embodiment of the present disclosure, by obtaining the character count threshold of the words and sentences to be edited, and displaying clear character count prompt information on the lyrics editing page, the user can be given a clear professional lyrics modification guidance, thereby improving the quality and efficiency of lyrics modification. .
在一示例性实施例中,歌词编辑页面中还显示有编辑完成控件。编辑完成指令可以是响应编辑完成控件的触发操作获取的。In an exemplary embodiment, an editing completion control is also displayed in the lyrics editing page. The editing completion instruction may be obtained in response to the triggering operation of the editing completion control.
其中,编辑完成控件是用户可与之交互,以触发编辑完成指令的对象。可以根据已编辑字符数与对应的字符数阈值的比较结果控制编辑完成控件的状态。The editing completion control is an object that the user can interact with to trigger the editing completion instruction. The state of the edit complete control can be controlled according to the result of comparing the number of edited characters with the corresponding threshold of the number of characters.
在一些实施例中,客户端实时获取对待编辑词句进行编辑所得到的已编辑字符数。将已编辑字符数与待编辑词句的字符数阈值进行比较。若已编辑字符数与待编辑词句的字符数阈值一致,则控制编辑完成控件为激活状态。此时,编辑完成控件为可与用户进行交互的状态。若已编辑字符数与待编辑词句的字符数阈值不一致,则控制编辑完成控件为未激活状态。此时,编辑完成控件为不可与用户交互的状态。In some embodiments, the client obtains in real time the number of edited characters obtained by editing the phrase to be edited. Compare the number of edited characters to the threshold of characters for the phrase to be edited. If the number of edited characters is consistent with the threshold of the number of characters of the words and phrases to be edited, the control editing completion control is activated. At this point, the edit complete control is in a state that can interact with the user. If the number of edited characters is inconsistent with the threshold of the number of characters to be edited, the control editing completion control is in an inactive state. At this point, the edit completion control is in a state where the user cannot interact.
进一步地,可以配置编辑完成控件在激活状态和未激活状态下的显示样式。例如,将激活状态下的编辑完成控件渲染为彩色,将未激活状态下的编辑完成控件渲染为灰色。通过为编辑完成控件配置不同的显示样式,可以给予用户明显的视觉提醒。Further, you can configure the display style of the edit completion control in the activated state and the inactive state. For example, render an edit completion control in an active state in color, and render an edit completion control in an inactive state in gray. By configuring different display styles for the edit completion control, you can give the user a clear visual reminder.
继续参照图5,歌词编辑页面510中已编辑字符数“我把月亮送给你”与字符数阈值一致,则控制编辑完成控件为激活状态,同时还可以将编辑完成控件呈现为激活状态下的显示样式。歌词编辑页面520和歌词编辑页面530中已编辑字符数与字符数阈值不一致,则控制编辑完成控件为未激活状态,同时还可以将编辑完成控件呈现为未激活状态下的显示样式。Continue to refer to FIG. 5 , the number of edited characters “I will give you the moon” in the lyrics editing page 510 is consistent with the threshold of the number of characters, then the editing completion control is controlled to be in an active state, and the editing completion control can also be presented as an active state. Display style. If the number of edited characters in the lyrics editing page 520 and the lyrics editing page 530 is inconsistent with the threshold of the number of characters, the editing completion control is controlled to be in an inactive state, and the editing completion control can also be displayed as a display style in an inactive state.
本公开的实施例中,通过基于已编辑字符数与待编辑词句的字符数阈值的比较结果控制编辑完成控件的激活状态,可以给予用户明确的歌词修改导向,辅助用户实现更加专业的歌词修改。In the embodiments of the present disclosure, by controlling the activation state of the editing completion control based on the comparison result between the number of edited characters and the threshold of the number of characters to be edited, the user can be given a clear lyrics modification guide and assist the user to realize more professional lyrics modification.
在一示例性实施例中,歌词编辑页面还显示字符数提示标识。字符数提示标识的数量与待编辑词句对应的字符数阈值一致,且可以根据已编辑字符数改变字符数提示标识的显示状态。In an exemplary embodiment, the lyric editing page also displays a character number prompt indicator. The number of character number prompt signs is consistent with the character number threshold corresponding to the words and sentences to be edited, and the display state of the character number prompt signs can be changed according to the number of edited characters.
在一些实施例中,字符数提示标识可以以预设样式显示在歌词编辑页面的预设位置处。预设样式可以是任意形状,例如,圆形、方形、星形等。预设位置可以是在歌词编辑页面的任意位置,例如,歌词编辑页面的顶部、底部、待编辑词句的上方等位置。字符数提示标识可以依次排列。客户端实时按照已编辑字符相应的改变字符数提示标识的状态。例如,若获取已编辑字符为4个,则相应的改变4个字符数提示标识的显示状态。In some embodiments, the character number prompting mark may be displayed at a preset position on the lyrics editing page in a preset style. The preset styles can be any shape, such as circle, square, star, etc. The preset position may be any position on the lyrics editing page, for example, a position at the top, the bottom of the lyrics editing page, above the words to be edited, and the like. The number of characters hints can be arranged in sequence. The client terminal changes the number of characters corresponding to the edited characters in real time to prompt the status of the identification. For example, if the obtained edited characters are 4, the display state of the 4-character number prompt flag is correspondingly changed.
进一步地,还可以配置字符数提示标识的改变顺序,例如,字符数提示标识为水平排列时,可配置从左向右依次改变字符数提示标识的显示状态;字符数提示标识为竖直排列时,可配置从上向下依次改变字符数提示标识的显示状态。Further, it is also possible to configure the change order of the number of characters prompting signs. For example, when the number of characters prompting signs is arranged horizontally, it can be configured to sequentially change the display state of the number of characters prompting signs from left to right; when the number of characters prompting signs is arranged vertically. , can be configured to change the display state of the character number prompt logo in sequence from top to bottom.
继续参照图5,字符数提示标识(如图5中的七个圆点)显示在歌词编辑区512中,数量与字符数阈值相同。字符数提示标识的默认显示状态为空心圆点。客户端可以根据已编辑字符数将相同数量的字符数提示标识改变为黑色填充的圆点。如图5所示,歌词编辑 页面510中已编辑字符数为7,则7个字符数提示标识都显示为黑色填充的圆点;歌词编辑页面520中已编辑字符数为0,则将字符数提示标识显示为空心圆点;歌词编辑页面530中已编辑字符数为3,则将前3个字符数提示标识显示为黑色填充的圆点。Continuing to refer to FIG. 5 , the number of characters prompt signs (seven dots in FIG. 5 ) are displayed in the lyrics editing area 512 , and the number is the same as the threshold value of the number of characters. The default display state of the character count indicator is a hollow dot. The client can change the same number of character count prompts to black filled dots based on the number of edited characters. As shown in FIG. 5 , if the number of edited characters in the lyrics editing page 510 is 7, the 7 characters indicating the number of characters are displayed as dots filled with black; in the lyrics editing page 520, the number of edited characters is 0, then the number of characters The prompt marks are displayed as hollow dots; if the number of edited characters on the lyrics editing page 530 is 3, the prompt marks of the first three characters are displayed as black filled dots.
本公开的实施例中,通过显示与字符数阈值相同数量的字符数提示标识,并随着已编辑字符数相应地改变字符数提示标识的显示状态,可以给予用户明确的提示信息,提高了使用的便捷性。In the embodiments of the present disclosure, by displaying the number of characters prompting signs that are the same as the number of characters threshold, and changing the display state of the prompting signs of the number of characters correspondingly with the number of edited characters, the user can be given clear prompt information, and the usage is improved. convenience.
在一示例性实施例中,在步骤S240中,响应于编辑完成指令,将目标词句添加到歌词文本中,包括:响应于编辑完成指令,获取对目标词句进行检测得到的敏感词检测结果;响应于敏感词检测结果为通过,将目标词句添加到歌词文本中。In an exemplary embodiment, in step S240, in response to the editing completion instruction, adding the target phrase to the lyrics text includes: in response to the editing completion instruction, acquiring a sensitive word detection result obtained by detecting the target phrase; responding If the detection result of sensitive words is passed, the target words and sentences are added to the lyrics text.
在一些实施例中,在客户端获取到编辑完成指令后,客户端可以基于敏感词检测算法以及预先设置的敏感词库对目标词句进行检测,得到其中是否存在敏感词的检测结果。其中,敏感词检测算法可以采用前缀树算法、AC自动机(Aho-Corasick Automation)、DFA(Deterministic Finite Automaton,确定有穷自动机)算法等其中的任一种。若客户端获取目标词句中不存在敏感词,则可以继续将歌词文本中的待编辑词句替换为目标词句。若检测目标词句中存在敏感词,则客户端可以返回歌词编辑页面,获取目标词句中的敏感词内容,并变更敏感词内容的显示状态,例如,对敏感词内容进行高亮显示、加大字号等。In some embodiments, after the client obtains the editing completion instruction, the client may detect the target word based on the sensitive word detection algorithm and the preset sensitive word database, and obtain a detection result of whether there is a sensitive word in it. The sensitive word detection algorithm may adopt any one of the prefix tree algorithm, the AC automaton (Aho-Corasick Automation), and the DFA (Deterministic Finite Automaton, deterministic finite automaton) algorithm. If the client obtains that there are no sensitive words in the target words and sentences, it can continue to replace the words and sentences to be edited in the lyrics text with the target words and sentences. If it is detected that there are sensitive words in the target sentence, the client can return to the lyrics editing page, obtain the content of the sensitive word in the target sentence, and change the display status of the content of the sensitive word, for example, highlight the content of the sensitive word and increase the font size Wait.
图6示例性示出了一种显示敏感词的示意图。如图6所示,在客户端检测到对歌词编辑页面610中编辑完成控件612的触发操作后,显示保存提示页面620。保存提示页面620中包括提示信息“是否保存单词修改”、保存按键和放弃按键。若客户端检测到对保存按键的触发操作,则可以通过敏感词检测算法对目标词句进行检测,得到目标词句中是否存在敏感词的检测结果。若存在,那么客户端可以返回至歌词编辑页面630,并变更目标词句中敏感词内容的显示状态(如图6中的“等你”为敏感词)。同时,客户端还可以显示敏感词检测不通过的提示信息,如歌词编辑页面630中的“歌词包含不适合文本,请修改”,以提示用户目标词句不能被保存的原因。在用户对目标词句进行修改的过程中,客户端还可以显示字符数提示信息,如歌词编辑页面640中的“请按歌词字数完成修改”,以提示用户按照字数要求进行修改。FIG. 6 exemplarily shows a schematic diagram of displaying sensitive words. As shown in FIG. 6 , after the client detects the triggering operation on the editing completion control 612 in the lyrics editing page 610, a saving prompt page 620 is displayed. The save prompt page 620 includes prompt information "whether to save the word modification", a save button and a discard button. If the client detects the triggering operation of the save button, the target word can be detected by the sensitive word detection algorithm, and the detection result of whether there is a sensitive word in the target word can be obtained. If it exists, the client can return to the lyrics editing page 630 and change the display state of the content of the sensitive word in the target phrase ("waiting for you" in FIG. 6 is a sensitive word). At the same time, the client terminal may also display prompt information that the sensitive word detection fails, such as "The lyrics contain unsuitable text, please modify" in the lyrics editing page 630, to prompt the user why the target words and sentences cannot be saved. During the process of the user modifying the target phrase, the client terminal may also display character number prompt information, such as "please complete the modification according to the number of words in the lyrics" on the lyrics editing page 640, to prompt the user to modify according to the word number requirement.
本公开的实施例中,通过对用户自定义的词句部分进行敏感词检测,在检测通过时方可进行保存歌词,可以有效防止不合规不合法的歌词文本产生,从而有效降低歌词创作的不合规风险。In the embodiment of the present disclosure, by performing sensitive word detection on user-defined words and sentences, the lyrics can be saved only when the detection is passed, which can effectively prevent the generation of illegal and illegal lyrics texts, thereby effectively reducing the inconsistency of lyrics creation. compliance risk.
图7是根据一示例性实施例示出的一种歌词处理方法的流程图,如图7所示,歌词处理方法用于终端中,包括以下步骤。Fig. 7 is a flowchart of a method for processing lyrics according to an exemplary embodiment. As shown in Fig. 7 , the method for processing lyrics is used in a terminal and includes the following steps.
在步骤S702中,获取歌词文本和歌曲旋律。将歌词文本显示在歌曲编辑页。In step S702, lyric text and song melody are acquired. Display lyric text on the song edit page.
在一些实施例中,歌词文本可以是基于用户选择的目标歌曲主题智能生成的。歌曲主题可以用于反映歌词文本所属的类型,例如,青春、诙谐、爱情、赞颂、校园等主题。可以预先定义多级歌曲主题。例如,一级歌曲主题包括青春、诙谐、爱情、赞颂、校园。一级歌曲主题“青春”下还可以包括邻家女孩、70后、80后等二级歌曲主题。目标歌曲主题可以用于反映用户对歌词核心内容的期望,数量可以为至少一个。In some embodiments, the lyric text may be intelligently generated based on a user-selected target song theme. The song theme can be used to reflect the genre to which the lyric text belongs, eg, youth, humor, love, praise, school, etc. themes. Multi-level song themes can be predefined. For example, the first-level song themes include youth, wit, love, praise, school. The first-level song theme "Youth" can also include second-level song themes such as the girl next door, post-70s, post-80s, etc. The target song theme can be used to reflect the user's expectation on the core content of the lyrics, and the number can be at least one.
客户端可以显示歌曲主题配置页面。通过歌曲主题配置页面响应歌曲主题的添加操作,获取目标歌曲主题。歌曲主题的添加操作不限于是单击操作、双击操作、长按操作、滑动操作、手势操作、对预设操作控件的操作等。例如,在歌曲主题页面中部署添加主题控件,以使用户能够通过点击该控件触发歌曲主题的添加操作;或者,响应用户的长按操作,显示操作菜单,以使用户能够从操作菜单中触发歌曲主题的添加操作;或者,在页面中部署歌曲主题的输入提示框,以使用户通过点击该输入提示框触发歌曲主题的添加操作。The client can display the song theme configuration page. The target song theme is obtained by responding to the adding operation of the song theme through the song theme configuration page. The operation of adding a song theme is not limited to a single-click operation, a double-click operation, a long-press operation, a sliding operation, a gesture operation, an operation on a preset operation control, and the like. For example, deploy the add theme control in the song theme page to enable the user to trigger the add operation of the song theme by clicking on the control; or, in response to the user's long-press operation, display the action menu so that the user can trigger the song from the action menu Add operation of theme; or, deploy an input prompt box of song theme on the page, so that the user can trigger the add operation of song theme by clicking on the input prompt box.
客户端响应于歌曲主题的添加操作,可以显示歌曲主题的主题添加页面。主题添加页面中可以包括主题输入区、主题推荐区、历史记录区、素材上传区等其中的一个或者多个。用户可以通过其中的任一个区输入歌曲主题。The client may display a theme adding page of the song theme in response to the adding operation of the song theme. The theme adding page may include one or more of a theme input area, a theme recommendation area, a history record area, and a material upload area. The user can enter the theme of the song through any of these fields.
示例性地,主题输入区显示有文本输入框。用户可以通过文本输入框手动输入文本信息,使客户端基于文本信息从预先定义的多个歌曲主题中确定目标歌曲主题。例如,客户端可以基于查找算法从预先定义的歌曲主题中查找包含主文本信息的歌曲主题,作为目标歌曲主题。Illustratively, the subject input area displays a text input box. The user can manually input text information through the text input box, so that the client can determine the target song theme from a plurality of predefined song themes based on the text information. For example, the client may search for a song theme containing main text information from predefined song themes based on a search algorithm as a target song theme.
主题推荐区可以显示有多个推荐主题。其中,推荐主题可以是推荐系统基于推荐逻辑进行推荐得到的。推荐逻辑可以基于用户账户和歌曲主题的相似度、歌曲主题的搜索热度等部署,例如,可以是搜索量较大或者热度较高的歌曲主题、与用户账户的行为数据更为匹配的歌曲主题等。客户端可以响应对主题推荐区中任一个或多个推荐主题的触发操作,将被触发的推荐主题作为目标歌曲主题。The topic recommendation area can display multiple recommended topics. Wherein, the recommended topic may be obtained by recommending the recommendation system based on the recommendation logic. The recommendation logic can be deployed based on the similarity between the user account and the song theme, the search popularity of the song theme, etc., for example, it can be a song theme with a large search volume or high popularity, a song theme that more closely matches the behavior data of the user account, etc. . The client may respond to a triggering operation on any one or more recommended themes in the theme recommendation area, and use the triggered recommended theme as the target song theme.
历史记录区显示有用户账户曾经搜索过的历史主题记录。客户端可以响应对历史记录区中任一个或多个历史主题的触发操作,将被触发的历史主题作为目标歌曲主题。The history area displays the history topics that have been searched by the user account. The client can respond to the triggering operation on any one or more historical themes in the history record area, and use the triggered historical theme as the target song theme.
素材上传区中可以包括素材上传控件。客户端可以响应对素材上传控件的触发操作,获取用户上传的素材。其中,素材可以是图片、视频、音乐等。客户端可以基于深度学习模型等方式对用户上传的素材进行智能识别,得到目标歌曲主题。可以理解的是,本公开的实施例中的深度学习模型已使用若干素材样本进行训练,具备对用户上传的素材进行检测识别的能力。The material upload area can include material upload controls. The client can respond to the trigger operation of the material upload control to obtain the material uploaded by the user. The material can be pictures, videos, music, etc. The client can intelligently identify the material uploaded by the user based on the deep learning model and other methods, and obtain the theme of the target song. It can be understood that the deep learning model in the embodiment of the present disclosure has been trained using several material samples, and has the ability to detect and identify the material uploaded by the user.
在目标歌曲主题添加完毕的情况下,客户端可以响应歌词生成指令,向服务器发送歌词生成请求,歌词生成请求中携带目标歌曲主题。服务器中配置有歌曲主题和歌词文本的对应关系。在服务器接收歌词生成请求后,基于歌曲主题和歌词文本的对应关系检索得到与目标歌曲主题匹配的至少一个歌词文本。When the target song theme is added, the client can respond to the lyrics generation instruction and send a lyrics generation request to the server, and the lyrics generation request carries the target song theme. The server is configured with a corresponding relationship between song theme and lyric text. After the server receives the lyrics generation request, at least one lyrics text matching the target song theme is retrieved based on the corresponding relationship between the song theme and the lyrics text.
在一些可能性实施例中,歌曲主题和歌词文本的对应关系可以通过以下方式得到:预先获取若干歌词文本。若干歌词文本可以通过收集已有歌曲中的歌词、用户自主创作的歌词、通过深度学习模型对歌词词句进行组合等其中的一种或者多种方式得到。基于文本主题模型对每个歌词文本进行分析处理,得到每个歌词文本的歌曲主题。创建与歌曲主题对应的歌词库,将歌词文本存储至对应歌曲主题的歌词库中;或者,对每个歌词文本标注对应的歌曲主题标签,从而形成歌曲主题和歌词文本的对应关系。In some possible embodiments, the correspondence between the song theme and the lyric text may be obtained by the following manner: obtaining several lyric texts in advance. Several lyric texts can be obtained by one or more of collecting lyrics in existing songs, lyrics created by users themselves, and combination of lyrics and phrases through a deep learning model. Based on the text topic model, each lyric text is analyzed and processed, and the song theme of each lyric text is obtained. Create a lyric library corresponding to the song theme, and store the lyric text in the lyric library corresponding to the song theme; or, label each lyric text with a corresponding song theme tag, thereby forming a corresponding relationship between the song theme and the lyric text.
当然,上述与目标歌曲主题匹配的歌词文本还可以通过客户端执行得到。由服务器和客户端确定歌词文本,两者的区别只是执行主体的不同,而实现原理和实施过程类似。Of course, the above-mentioned lyric text matching the theme of the target song can also be obtained by executing the client. The lyric text is determined by the server and the client. The difference between the two is only the difference in the execution body, and the implementation principle and implementation process are similar.
在一些实施例中,歌曲旋律可以是基于用户选择的目标旋律属性信息智能生成的。客户端可以显示歌曲旋律配置页面。用户可以通过歌曲旋律配置页面对期望的旋律属性信息进行配置。In some embodiments, the song melody may be intelligently generated based on the target melody attribute information selected by the user. The client can display the song melody configuration page. The user can configure the desired melody attribute information through the song melody configuration page.
歌曲旋律配置页面可以包括旋律属性选择区、旋律属性输入区、旋律属性推荐区、历史记录区、素材上传区等其中的任一个或多个。用户可以通过其中的任一个区输入目标旋律属性信息。示例性地,旋律属性选择区中可以显示有至少一个旋律属性以及与旋律属性对应的属性信息。每个旋律属性的属性信息可以以列表、控件等形式呈现,以使用户能够通过列表的下拉菜单、点击按键等方式配置目标旋律属性信息。针对旋律属性输入区、旋律属性推荐区、历史记录区、素材上传区的实现方式,可以参照上述主题输入区、主题推荐区、历史记录区、素材上传区的说明,在此不作具体阐述。The song melody configuration page may include any one or more of a melody attribute selection area, a melody attribute input area, a melody attribute recommendation area, a history record area, a material upload area, and the like. The user can input target melody attribute information through any of the fields. Exemplarily, at least one melody attribute and attribute information corresponding to the melody attribute may be displayed in the melody attribute selection area. The attribute information of each melody attribute can be presented in the form of a list, a control, etc., so that the user can configure the target melody attribute information by means of a drop-down menu of the list, clicking a button, and the like. For the implementation of the melody attribute input area, the melody attribute recommendation area, the history record area, and the material upload area, you can refer to the above descriptions of the theme input area, theme recommendation area, history record area, and material upload area, and will not be elaborated here.
在目标旋律属性信息配置完成的情况下,客户端响应于旋律生成指令,向服务器发送旋律生成请求,旋律生成请求中携带目标旋律属性信息,以请求服务器生成与目标旋律属性信息匹配的至少一个歌曲旋律。When the configuration of the target melody attribute information is completed, the client sends a melody generation request to the server in response to the melody generation instruction. The melody generation request carries the target melody attribute information to request the server to generate at least one song matching the target melody attribute information. melody.
在一些可能性实施例中,与目标旋律属性信息匹配的至少一个歌曲旋律可以通过以下方式得到:服务器中配置有旋律属性信息和歌曲旋律的对应关系。在服务器接收旋律生成请求后,基于旋律属性信息和歌曲旋律的对应关系检索得到与目标旋律属性信息匹配的至少一个歌曲旋律。In some possible embodiments, at least one song melody that matches the target melody attribute information may be obtained by the following manner: a corresponding relationship between the melody attribute information and the song melody is configured in the server. After the server receives the melody generation request, at least one song melody matching the target melody attribute information is retrieved based on the corresponding relationship between the melody attribute information and the song melody.
在一些可能性实施例中,旋律属性信息和歌曲旋律的对应关系可以通过以下方式得到:预先获取若干歌曲旋律片段。若干旋律片段可以通过从已有的歌曲旋律中得到、从用户自主创作的旋律中得到、通过对已有的旋律进行拼接等其中的一种或者多种方式得到。可以基于深度学习模型对每个歌曲旋律片段进行分析处理,得到每个歌曲旋律片段的旋律属性信息。创建与和旋律属性信息对应的旋律库;或者,对每个歌曲旋律片段标注对应的旋律属性信息标签,从而形成旋律属性信息和歌曲旋律的对应关系。In some possible embodiments, the correspondence between the melody attribute information and the song melody may be obtained by the following manner: acquiring several song melody segments in advance. Several melody segments may be obtained by one or more of the methods, such as being obtained from an existing melody of a song, obtained from a melody created by the user, or by splicing an existing melody. Each song melody segment can be analyzed and processed based on the deep learning model, and the melody attribute information of each song melody segment can be obtained. Create a melody library corresponding to the melody attribute information; or, label each song melody segment with a corresponding melody attribute information label, thereby forming a corresponding relationship between the melody attribute information and the song melody.
图8示例性示出了创作歌词文本和歌曲旋律的示意图。如图8所示,歌曲主题配置页面812和歌曲旋律配置页面814可以共同显示在歌曲配置页面810中。歌曲主题配置页面812包括主题添加控件,以使客户端能够响应对主题添加控件的触发操作,获取目标歌曲主题。歌曲旋律配置页面814包括与每个旋律属性对应的属性选择控件。客户端可以响应对属性选择控件的触发操作,获取目标旋律属性信息。FIG. 8 exemplarily shows a schematic diagram of composing lyric text and song melody. As shown in FIG. 8 , song theme configuration page 812 and song melody configuration page 814 may be displayed together in song configuration page 810 . The song theme configuration page 812 includes a theme adding control, so that the client can acquire the target song theme in response to a triggering operation on the theme adding control. Song melody configuration page 814 includes attribute selection controls corresponding to each melody attribute. The client can respond to the triggering operation on the attribute selection control to obtain the attribute information of the target melody.
歌词生成指令和旋律生成指令可以是响应于对按键816的触发操作获取的。在客户端检测到对按键816的触发操作后,显示歌曲选择页面820。歌曲选择页面820中包括至少一个候选歌曲,每个候选歌曲包括一个与目标歌曲主题匹配的歌词文本以及一个与目标旋律属性信息匹配的歌曲旋律。在客户端检测到对歌曲选择页面820中按键822的触发操作后,获取当前显示的候选歌曲,并显示歌曲编辑页面830。歌曲编辑页面830中包括歌词编辑控件。The lyrics generation instruction and the melody generation instruction may be obtained in response to a trigger operation of the key 816 . After the client detects the trigger operation on the key 816, the song selection page 820 is displayed. The song selection page 820 includes at least one candidate song, and each candidate song includes a lyric text matching the theme of the target song and a song melody matching the attribute information of the target melody. After the client detects the triggering operation of the button 822 on the song selection page 820 , it acquires the currently displayed candidate songs, and displays the song editing page 830 . Song edit page 830 includes lyrics edit controls.
在步骤S704中,响应于对歌词编辑控件的触发操作,显示歌词编辑页面,并在歌词编辑页面中显示歌词文本。歌词编辑页面中还显示有编辑完成控件和试听控件。In step S704, in response to the triggering operation on the lyrics editing control, the lyrics editing page is displayed, and the lyrics text is displayed in the lyrics editing page. Editing completion controls and audition controls are also displayed on the lyrics editing page.
在步骤S706中,获取从歌词文本中选择的待编辑词句。其中,获取待编辑词句的具体选择方式可以参照上述实施例,在此不做具体阐述。In step S706, the words and phrases to be edited selected from the lyrics text are acquired. The specific selection method for obtaining the words and sentences to be edited may refer to the above-mentioned embodiments, which will not be described in detail here.
在步骤S708中,获取待编辑词句对应的字符数阈值,并在歌词编辑页面显示待编辑词句的字符数提示信息。其中,获取字符数阈值以及字符数提示信息的具体实现方式可以参照上述实施例,在此不做具体阐述。In step S708, a threshold value of the number of characters corresponding to the words and sentences to be edited is obtained, and prompt information of the number of characters of the words and sentences to be edited is displayed on the lyrics editing page. The specific implementation manner of acquiring the character number threshold and the character number prompt information may refer to the foregoing embodiments, which will not be described in detail here.
在步骤S710中,根据已编辑字符数与待编辑词句的字符数阈值的比较结果,将字符数提示信息显示为与比较结果对应的显示状态。其中,已编辑字符数的具体获取方式,以及根据比较结果调整字符数提示信息的显示状态的具体实现方式可以参照上述实施例,在此不做具体阐述。In step S710, according to the comparison result between the number of edited characters and the threshold value of the number of characters of the words and sentences to be edited, the prompt information of the number of characters is displayed in a display state corresponding to the comparison result. The specific way of acquiring the number of edited characters and the specific implementation way of adjusting the display state of the prompt information of the number of characters according to the comparison result may refer to the above-mentioned embodiments, and will not be described in detail here.
在步骤S712中,响应于已编辑字符数与待编辑词句对应的字符数阈值一致,将歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。In step S712, in response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words and phrases to be edited, the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
在步骤S714中,响应于对编辑完成控件的触发操作,获取对目标词句进行检测得到的敏感词检测结果。若敏感词检测结果为通过,则继续步骤S716;否则继续步骤S718。In step S714, in response to the triggering operation on the editing completion control, a sensitive word detection result obtained by detecting the target word and sentence is acquired. If the sensitive word detection result is passed, go to step S716; otherwise, go to step S718.
在步骤S716中,返回至歌曲编辑页面,将歌曲编辑页面中歌词文本的待编辑词句替换为目标词句。In step S716, return to the song editing page, and replace the words to be edited in the lyrics text in the song editing page with the target words and sentences.
在步骤S718中,返回至歌词编辑页面,获取目标词句中的敏感词内容,并变更敏感词内容的显示状态。其中,变更敏感词内容的显示状态的具体实现方式可以参照上述实施例,在此不做具体阐述。In step S718, return to the lyrics editing page, acquire the content of the sensitive word in the target phrase, and change the display state of the content of the sensitive word. The specific implementation manner of changing the display state of the content of the sensitive word may refer to the above-mentioned embodiments, which will not be described in detail here.
此外,在对待编辑词句进行编辑的过程中,若检测到对试听控件的触发操作,则可以从歌曲旋律中获取与目标词句对应的词句旋律,并播放目标词句与词句旋律。In addition, in the process of editing the words and sentences to be edited, if the triggering operation of the audition control is detected, the sentence melody corresponding to the target sentence and sentence can be obtained from the song melody, and the target sentence and sentence melody can be played.
应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步 骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the above flow chart are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution sequence of these steps or stages It is also not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of a step or phase within the other steps.
图9是根据一示例性实施例示出的一种歌词处理装置900框图。参照图9,该装置包括第一显示模块902、第一词句获取模块904、第二词句获取模块906和添加模块908。FIG. 9 is a block diagram of an apparatus 900 for processing lyrics according to an exemplary embodiment. Referring to FIG. 9 , the apparatus includes a first display module 902 , a first word and sentence acquisition module 904 , a second word and sentence acquisition module 906 and an adding module 908 .
第一显示模块902,被配置为在歌词编辑页面中显示歌词文本;第一词句获取模块904,被配置为获取从歌词文本中选择的待编辑词句;第二词句获取模块906,被配置为获取对待编辑词句进行编辑后得到的目标词句;添加模块908,被配置为响应于编辑完成指令,将目标词句添加到歌词文本中。The first display module 902 is configured to display the lyrics text in the lyrics editing page; the first phrase acquisition module 904 is configured to acquire the words and phrases to be edited selected from the lyrics text; the second phrase acquisition module 906 is configured to acquire The target phrase obtained after editing the phrase to be edited; the adding module 908 is configured to add the target phrase to the lyrics text in response to the editing completion instruction.
在一示例性实施例中,装置900还包括:旋律获取模块,被配置为响应对歌词编辑页面中试听控件的触发操作,获取与目标词句对应的词句旋律;播放模块,被配置为播放目标词句与词句旋律。In an exemplary embodiment, the apparatus 900 further includes: a melody acquisition module, configured to respond to the trigger operation of the audition control in the lyrics editing page, to acquire the melody corresponding to the target phrase; a playback module, configured to play the target phrase Melody with words.
在一示例性实施例中,装置900还包括:第三获取模块,被配置为获取待编辑词句对应的字符数阈值;第二显示模块,被配置为在歌词编辑页面显示待编辑词句的字符数提示信息;第三显示模块,被配置为在待编辑词句的已编辑字符数与字符数阈值一致的情况下,字符数提示信息处于符合字数要求的显示状态。In an exemplary embodiment, the apparatus 900 further includes: a third obtaining module, configured to obtain a threshold of the number of characters corresponding to the phrase to be edited; a second display module, configured to display the number of characters of the phrase to be edited on the lyrics editing page Prompt information; the third display module is configured to display the character number prompt information in a display state that meets the word number requirement when the number of edited characters of the words and sentences to be edited is consistent with the character number threshold.
在一示例性实施例中,第三显示模块,被配置为在待编辑词句的已编辑字符数与字符数阈值不一致的情况下,字符数提示信息处于不符合字数要求的显示状态。In an exemplary embodiment, the third display module is configured to display the character number prompt information that does not meet the word number requirement when the number of edited characters of the phrase to be edited is inconsistent with the character number threshold.
在一示例性实施例中,装置900还包括:第四显示模块,被配置为在歌词编辑页面显示字符数提示标识,字符数提示标识的数量与待编辑词句对应的字符数阈值一致;第一变更模块,被配置为根据已编辑字符数改变字符数提示标识的显示状态。In an exemplary embodiment, the apparatus 900 further includes: a fourth display module configured to display a character number prompting mark on the lyrics editing page, the number of the character number prompting mark being consistent with the character number threshold corresponding to the words and sentences to be edited; the first The changing module is configured to change the display state of the character number prompt sign according to the number of edited characters.
在一示例性实施例中,装置900还包括:激活模块,被配置为响应于已编辑字符数与待编辑词句对应的字符数阈值一致,将歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。In an exemplary embodiment, the apparatus 900 further includes: an activation module configured to, in response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words to be edited, change the state of the editing completion control in the lyrics editing page to an inactive state Change to active state.
在一示例性实施例中,装置900还包括:响应模块,被配置为响应于对歌词编辑控件的触发操作,显示歌词编辑页面。In an exemplary embodiment, the apparatus 900 further includes a response module configured to display a lyrics editing page in response to a triggering operation on the lyrics editing control.
在一示例性实施例中,添加模块908包括:检测单元,被配置为响应于编辑完成指令,获取对目标词句进行检测得到的敏感词检测结果;添加单元,被配置为响应于敏感词检测结果为通过,将目标词句添加到歌词文本中。In an exemplary embodiment, the adding module 908 includes: a detecting unit, configured to obtain a sensitive word detection result obtained by detecting the target phrase in response to the editing completion instruction; an adding unit, configured to respond to the sensitive word detection result To pass, add the target phrase to the lyric text.
在一示例性实施例中,装置900还包括:返回模块,被配置为响应于敏感词检测结果为未通过,返回至歌词编辑页面;第二变更模块,被配置为获取目标词句中的敏感内容,变更敏感内容的显示状态。In an exemplary embodiment, the apparatus 900 further includes: a return module, configured to return to the lyrics editing page in response to the detection result of the sensitive word being failed; a second change module, configured to obtain the sensitive content in the target phrase to change the display state of sensitive content.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图10是根据一示例性实施例示出的一种用于歌词处理的电子设备Z00的框图。例如,电子设备Z00可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。Fig. 10 is a block diagram of an electronic device Z00 for processing lyrics according to an exemplary embodiment. For example, electronic device Z00 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
参照图10,电子设备Z00可以包括以下一个或多个组件:处理组件Z02、存储器Z04、电源组件Z06、多媒体组件Z08、音频组件Z10、输入/输出(I/O)的接口Z12、传感器组件Z14以及通信组件Z16。10, an electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power supply component Z06, a multimedia component Z08, an audio component Z10, an input/output (I/O) interface Z12, a sensor component Z14 and the communication component Z16.
处理组件Z02通常控制电子设备Z00的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件Z02可以包括一个或多个处理器Z20来执行 指令,以完成上述的方法的全部或部分步骤。此外,处理组件Z02可以包括一个或多个模块,便于处理组件Z02和其他组件之间的交互。例如,处理组件Z02可以包括多媒体模块,以方便多媒体组件Z08和处理组件Z02之间的交互。The processing component Z02 generally controls the overall operation of the electronic device Z00, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component Z02 may include one or more processors Z20 to execute instructions to perform all or some of the steps of the method described above. Additionally, processing component Z02 may include one or more modules to facilitate interaction between processing component Z02 and other components. For example, processing component Z02 may include a multimedia module to facilitate interaction between multimedia component Z08 and processing component Z02.
存储器Z04被配置为存储各种类型的数据以支持在电子设备Z00的操作。这些数据的示例包括用于在电子设备Z00上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器Z04可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。The memory Z04 is configured to store various types of data to support operation at the electronic device Z00. Examples of such data include instructions for any application or method operating on electronic device Z00, contact data, phonebook data, messages, pictures, videos, and the like. The memory Z04 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件Z06为电子设备Z00的各种组件提供电力。电源组件Z06可以包括电源管理系统,一个或多个电源,及其他与为电子设备Z00生成、管理和分配电力相关联的组件。Power supply assembly Z06 provides power to various components of electronic device Z00. Power component Z06 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device Z00.
多媒体组件Z08包括在所述电子设备Z00和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件Z08包括一个前置摄像头和/或后置摄像头。当电子设备Z00处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component Z08 includes a front-facing camera and/or a rear-facing camera. When the electronic device Z00 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件Z10被配置为输出和/或输入音频信号。例如,音频组件Z10包括一个麦克风(MIC),当电子设备Z00处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器Z04或经由通信组件Z16发送。在一些实施例中,音频组件Z10还包括一个扬声器,用于输出音频信号。Audio component Z10 is configured to output and/or input audio signals. For example, audio assembly Z10 includes a microphone (MIC) that is configured to receive external audio signals when electronic device Z00 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in the memory Z04 or transmitted via the communication component Z16. In some embodiments, audio assembly Z10 also includes a speaker for outputting audio signals.
I/O接口Z12为处理组件Z02和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface Z12 provides an interface between the processing component Z02 and a peripheral interface module, and the above-mentioned peripheral interface module can be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件Z14包括一个或多个传感器,用于为电子设备Z00提供各个方面的状态评估。例如,传感器组件Z14可以检测到电子设备Z00的打开/关闭状态,组件的相对定位,例如所述组件为电子设备Z00的显示器和小键盘,传感器组件Z14还可以检测电子设备Z00或电子设备Z00一个组件的位置改变,用户与电子设备Z00接触的存在或不存在,电子设备Z00方位或加速/减速和电子设备Z00的温度变化。传感器组件Z14可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件Z14还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件Z14还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。Sensor assembly Z14 includes one or more sensors for providing various aspects of status assessment for electronic device Z00. For example, the sensor assembly Z14 can detect the open/closed state of the electronic device Z00, the relative positioning of the components, for example, the components are the display and the keypad of the electronic device Z00, and the sensor assembly Z14 can also detect the electronic device Z00 or one of the electronic devices Z00 Changes in the position of components, presence or absence of user contact with the electronic device Z00, electronic device Z00 orientation or acceleration/deceleration and temperature changes in the electronic device Z00. Sensor assembly Z14 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly Z14 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly Z14 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件Z16被配置为便于电子设备Z00和其他设备之间有线或无线方式的通信。电子设备Z00可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件Z16经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件Z16还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component Z16 is configured to facilitate wired or wireless communication between electronic device Z00 and other devices. The electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In one exemplary embodiment, the communication component Z16 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component Z16 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备Z00可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device Z00 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器Z04,上述指令可由电子设备Z00的处理器Z20执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory Z04 including instructions, which are executable by the processor Z20 of the electronic device Z00 to perform the above method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
在示例性实施例中,还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任一项实施例所述的歌词处理方法。In an exemplary embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the lyrics processing method described in any one of the foregoing embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common general knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
本公开所有实施例均可以单独被执行,也可以与其他实施例相结合被执行,均视为本公开要求保护的范围。All the embodiments of the present disclosure may be implemented independently or in combination with other embodiments, which are all regarded as the scope of protection of the present disclosure.

Claims (29)

  1. 一种歌词处理方法,包括:A method of processing lyrics, including:
    在歌词编辑页面中显示歌词文本;Display lyrics text in the lyrics editing page;
    获取从所述歌词文本中选择的待编辑词句;Obtain the words and phrases to be edited selected from the lyrics text;
    获取对所述待编辑词句进行编辑后得到的目标词句;Obtain the target words and sentences obtained after editing the words and sentences to be edited;
    响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。The target phrase is added to the lyric text in response to an editing completion instruction.
  2. 根据权利要求1所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 1, further comprising:
    响应对所述歌词编辑页面中试听控件的触发操作,获取与所述目标词句对应的词句旋律;In response to the trigger operation of the audition control in the lyrics editing page, obtain the phrase melody corresponding to the target phrase;
    播放所述目标词句与所述词句旋律。The target phrase and the phrase melody are played.
  3. 根据权利要求1所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 1, further comprising:
    获取所述待编辑词句对应的字符数阈值;Obtain the character threshold corresponding to the words and sentences to be edited;
    在所述歌词编辑页面显示所述待编辑词句的字符数提示信息;Display the character number prompt information of the to-be-edited phrase on the lyrics editing page;
    在所述待编辑词句的已编辑字符数与所述字符数阈值一致的情况下,所述字符数提示信息处于符合字数要求的显示状态。When the number of edited characters of the to-be-edited phrase is consistent with the character number threshold, the character number prompt information is in a display state that meets the word number requirement.
  4. 根据权利要求3所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 3, further comprising:
    在所述待编辑词句的已编辑字符数与所述字符数阈值不一致的情况下,所述字符数提示信息处于不符合字数要求的显示状态。In the case that the number of edited characters of the to-be-edited phrase is inconsistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that does not meet the requirement of the number of characters.
  5. 根据权利要求3所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 3, further comprising:
    在所述歌词编辑页面显示字符数提示标识,所述字符数提示标识的数量与所述待编辑词句对应的字符数阈值一致;On the lyrics editing page, display a character number prompting mark, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
    根据已编辑字符数改变所述字符数提示标识的显示状态。The display state of the character number prompting mark is changed according to the number of edited characters.
  6. 根据权利要求3所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 3, further comprising:
    响应于所述已编辑字符数与所述待编辑词句对应的字符数阈值一致,将所述歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。In response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words and sentences to be edited, the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
  7. 根据权利要求1所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 1, further comprising:
    响应于对歌词编辑控件的触发操作,显示所述歌词编辑页面。The lyrics editing page is displayed in response to a triggering operation on the lyrics editing control.
  8. 根据权利要求1所述的歌词处理方法,其中,所述响应于编辑完成指令,将所述目标词句添加到所述歌词文本中,包括:The lyrics processing method according to claim 1, wherein, in response to an editing completion instruction, adding the target phrase to the lyrics text comprises:
    响应于所述编辑完成指令,获取对所述目标词句进行检测得到的敏感词检测结果;In response to the editing completion instruction, acquiring a sensitive word detection result obtained by detecting the target word and sentence;
    响应于所述敏感词检测结果为通过,将所述目标词句添加到所述歌词文本中。In response to the sensitive word detection result being a pass, the target phrase is added to the lyric text.
  9. 根据权利要求8所述的歌词处理方法,所述方法还包括:The lyrics processing method according to claim 8, further comprising:
    响应于所述敏感词检测结果为未通过,返回至所述歌词编辑页面;In response to the detection result of the sensitive word being failed, returning to the lyrics editing page;
    获取所述目标词句中的敏感内容,变更所述敏感内容的显示状态。Acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
  10. 一种歌词处理装置,包括:A lyrics processing device, comprising:
    第一显示模块,被配置为在歌词编辑页面中显示歌词文本;The first display module is configured to display the lyrics text in the lyrics editing page;
    第一词句获取模块,被配置为获取从所述歌词文本中选择的待编辑词句;The first word and sentence acquisition module is configured to obtain the words and sentences to be edited selected from the lyrics text;
    第二词句获取模块,被配置为获取对所述待编辑词句进行编辑后得到的目标词句;The second word and sentence obtaining module is configured to obtain the target word and sentence obtained after editing the to-be-edited word and sentence;
    添加模块,被配置为响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。An adding module is configured to add the target phrase to the lyric text in response to an editing completion instruction.
  11. 根据权利要求10所述的歌词处理装置,所述装置还包括:The lyrics processing device according to claim 10, further comprising:
    旋律获取模块,被配置为响应对所述歌词编辑页面中试听控件的触发操作,获取与所述目标词句对应的词句旋律;The melody acquisition module is configured to respond to the trigger operation of the audition control in the lyrics editing page, and acquire the melody corresponding to the target phrase;
    播放模块,被配置为播放所述目标词句与所述词句旋律。The playing module is configured to play the target phrase and the phrase melody.
  12. 根据权利要求10所述的歌词处理装置,所述装置还包括:The lyrics processing device according to claim 10, further comprising:
    第三获取模块,被配置为获取所述待编辑词句对应的字符数阈值;A third obtaining module, configured to obtain the character threshold corresponding to the words and sentences to be edited;
    第二显示模块,被配置为在所述歌词编辑页面显示所述待编辑词句的字符数提示信息;The second display module is configured to display the character number prompt information of the words and phrases to be edited on the lyrics editing page;
    第三显示模块,被配置为在所述待编辑词句的已编辑字符数与所述字符数阈值一致的情况下,所述字符数提示信息处于符合字数要求的显示状态。The third display module is configured to, when the number of edited characters of the to-be-edited word and sentence is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of words.
  13. 根据权利要求12所述的歌词处理装置,其中,所述第三显示模块,被配置为在所述待编辑词句的已编辑字符数与所述字符数阈值不一致的情况下,所述字符数提示信息处于不符合字数要求的显示状态。The lyrics processing apparatus according to claim 12, wherein the third display module is configured to prompt the number of characters when the number of edited characters of the phrase to be edited is inconsistent with the threshold of the number of characters The message is in a display state that does not meet the word count requirement.
  14. 根据权利要求12所述的歌词处理装置,所述装置还包括:The lyrics processing device according to claim 12, further comprising:
    第四显示模块,被配置为在所述歌词编辑页面显示字符数提示标识,所述字符数提示标识的数量与所述待编辑词句对应的字符数阈值一致;The fourth display module is configured to display a character number prompting mark on the lyrics editing page, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
    第一变更模块,被配置为根据已编辑字符数改变所述字符数提示标识的显示状态。The first changing module is configured to change the display state of the character number prompting mark according to the number of edited characters.
  15. 根据权利要求12所述的歌词处理装置,所述装置还包括:The lyrics processing device according to claim 12, further comprising:
    激活模块,被配置为响应于所述已编辑字符数与所述待编辑词句对应的字符数阈值一致,将所述歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。The activation module is configured to change the state of the editing completion control in the lyrics editing page from an inactive state to an active state in response to the fact that the number of edited characters is consistent with the threshold of the number of characters corresponding to the words and sentences to be edited.
  16. 根据权利要求10所述的歌词处理装置,所述装置还包括:响应模块,被配置为响应于对歌词编辑控件的触发操作,显示所述歌词编辑页面。The lyrics processing apparatus according to claim 10, further comprising: a response module configured to display the lyrics editing page in response to a triggering operation on a lyrics editing control.
  17. 根据权利要求10所述的歌词处理装置,其中,所述添加模块,包括:The lyrics processing device according to claim 10, wherein the adding module comprises:
    检测单元,被配置为响应于所述编辑完成指令,获取对所述目标词句进行检测得到的敏感词检测结果;a detection unit, configured to obtain a sensitive word detection result obtained by detecting the target word and sentence in response to the editing completion instruction;
    添加单元,被配置为响应于所述敏感词检测结果为通过,将所述目标词句添加到所述歌词文本中。The adding unit is configured to add the target phrase to the lyrics text in response to the sensitive word detection result being a pass.
  18. 根据权利要求17所述的歌词处理装置,所述装置还包括:The lyrics processing device according to claim 17, further comprising:
    返回模块,被配置为响应于所述敏感词检测结果为未通过,返回至所述歌词编辑页面;A return module, configured to return to the lyrics editing page in response to the sensitive word detection result being a failure;
    第二变更模块,被配置为获取所述目标词句中的敏感内容,变更所述敏感内容的显示状态。The second changing module is configured to acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
  19. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    处理器;processor;
    用于存储所述处理器可执行指令的存储器;memory for storing instructions executable by the processor;
    其中,所述处理器被配置为执行所述指令,以实现如下步骤:Wherein, the processor is configured to execute the instructions to achieve the following steps:
    在歌词编辑页面中显示歌词文本;Display lyrics text in the lyrics editing page;
    获取从所述歌词文本中选择的待编辑词句;Obtain the words and phrases to be edited selected from the lyrics text;
    获取对所述待编辑词句进行编辑后得到的目标词句;Obtain the target words and sentences obtained after editing the words and sentences to be edited;
    响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。The target phrase is added to the lyric text in response to an editing completion instruction.
  20. 根据权利要求19所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:The electronic device of claim 19, wherein the processor is configured to execute the instructions to implement the steps of:
    响应对所述歌词编辑页面中试听控件的触发操作,获取与所述目标词句对应的词句旋律;In response to the trigger operation of the audition control in the lyrics editing page, obtain the phrase melody corresponding to the target phrase;
    播放所述目标词句与所述词句旋律。The target phrase and the phrase melody are played.
  21. 根据权利要求19所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:The electronic device of claim 19, wherein the processor is configured to execute the instructions to implement the steps of:
    获取所述待编辑词句对应的字符数阈值;Obtain the character threshold corresponding to the words and sentences to be edited;
    在所述歌词编辑页面显示所述待编辑词句的字符数提示信息;Display the character number prompt information of the to-be-edited phrase on the lyrics editing page;
    在所述待编辑词句的已编辑字符数与所述字符数阈值一致的情况下,所述字符数提示 信息处于符合字数要求的显示状态。In the case that the number of edited characters of the word and sentence to be edited is consistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that meets the requirement of the number of characters.
  22. 根据权利要求21所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:21. The electronic device of claim 21, wherein the processor is configured to execute the instructions to implement the steps of:
    在所述待编辑词句的已编辑字符数与所述字符数阈值不一致的情况下,所述字符数提示信息处于不符合字数要求的显示状态。In the case where the number of edited characters of the to-be-edited phrase is inconsistent with the threshold of the number of characters, the prompt information of the number of characters is in a display state that does not meet the requirement of the number of characters.
  23. 根据权利要求21所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:21. The electronic device of claim 21, wherein the processor is configured to execute the instructions to implement the steps of:
    在所述歌词编辑页面显示字符数提示标识,所述字符数提示标识的数量与所述待编辑词句对应的字符数阈值一致;On the lyrics editing page, display a character number prompting mark, and the number of the character number prompting mark is consistent with the character number threshold corresponding to the words and sentences to be edited;
    根据已编辑字符数改变所述字符数提示标识的显示状态。The display state of the character number prompting mark is changed according to the number of edited characters.
  24. 根据权利要求21所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:21. The electronic device of claim 21, wherein the processor is configured to execute the instructions to implement the steps of:
    响应于所述已编辑字符数与所述待编辑词句对应的字符数阈值一致,将所述歌词编辑页面中编辑完成控件的状态从未激活状态变更为激活状态。In response to the number of edited characters being consistent with the threshold of the number of characters corresponding to the words and sentences to be edited, the state of the editing completion control in the lyrics editing page is changed from an inactive state to an active state.
  25. 根据权利要求19所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:The electronic device of claim 19, wherein the processor is configured to execute the instructions to implement the steps of:
    响应于对歌词编辑控件的触发操作,显示所述歌词编辑页面。The lyrics editing page is displayed in response to a triggering operation on the lyrics editing control.
  26. 根据权利要求19所述的电子设备,其特征在于,所述响应于编辑完成指令,将所述目标词句添加到所述歌词文本中,包括:The electronic device according to claim 19, wherein, in response to an editing completion instruction, adding the target phrase to the lyrics text comprises:
    响应于所述编辑完成指令,获取对所述目标词句进行检测得到的敏感词检测结果;In response to the editing completion instruction, acquiring a sensitive word detection result obtained by detecting the target word and sentence;
    响应于所述敏感词检测结果为通过,将所述目标词句添加到所述歌词文本中。In response to the sensitive word detection result being a pass, the target phrase is added to the lyric text.
  27. 根据权利要求26所述的电子设备,其特征在于,所述处理器被配置为执行所述指令,以实现如下步骤:The electronic device of claim 26, wherein the processor is configured to execute the instructions to implement the steps of:
    响应于所述敏感词检测结果为未通过,返回至所述歌词编辑页面;In response to the detection result of the sensitive word being failed, returning to the lyrics editing page;
    获取所述目标词句中的敏感内容,变更所述敏感内容的显示状态。Acquire the sensitive content in the target word and sentence, and change the display state of the sensitive content.
  28. 一种计算机可读存储介质,其中,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够实现以下步骤:A computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to implement the following steps:
    在歌词编辑页面中显示歌词文本;Display lyrics text in the lyrics editing page;
    获取从所述歌词文本中选择的待编辑词句;Obtain the words and phrases to be edited selected from the lyrics text;
    获取对所述待编辑词句进行编辑后得到的目标词句;Obtain the target words and sentences obtained after editing the words and sentences to be edited;
    响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。The target phrase is added to the lyric text in response to an editing completion instruction.
  29. 一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现以下步骤:A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the following steps are implemented:
    在歌词编辑页面中显示歌词文本;Display lyrics text in the lyrics editing page;
    获取从所述歌词文本中选择的待编辑词句;Obtain the words and phrases to be edited selected from the lyrics text;
    获取对所述待编辑词句进行编辑后得到的目标词句;Obtain the target words and sentences obtained after editing the words and sentences to be edited;
    响应于编辑完成指令,将所述目标词句添加到所述歌词文本中。The target phrase is added to the lyric text in response to an editing completion instruction.
PCT/CN2021/130404 2020-12-30 2021-11-12 Lyric processing method and apparatus WO2022142772A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011628575.XA CN112632327A (en) 2020-12-30 2020-12-30 Lyric processing method, device, electronic equipment and computer readable storage medium
CN202011628575.X 2020-12-30

Publications (1)

Publication Number Publication Date
WO2022142772A1 true WO2022142772A1 (en) 2022-07-07

Family

ID=75290260

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130404 WO2022142772A1 (en) 2020-12-30 2021-11-12 Lyric processing method and apparatus

Country Status (2)

Country Link
CN (1) CN112632327A (en)
WO (1) WO2022142772A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112632327A (en) * 2020-12-30 2021-04-09 北京达佳互联信息技术有限公司 Lyric processing method, device, electronic equipment and computer readable storage medium
CN112988018B (en) * 2021-04-13 2023-02-07 杭州网易云音乐科技有限公司 Multimedia file output method, device, equipment and computer readable storage medium
CN113611268B (en) * 2021-06-29 2024-04-16 广州酷狗计算机科技有限公司 Musical composition generating and synthesizing method and device, equipment, medium and product thereof
CN113486643A (en) * 2021-07-27 2021-10-08 咪咕音乐有限公司 Lyric synthesis method, terminal device and readable storage medium
CN115065840A (en) * 2022-06-07 2022-09-16 北京达佳互联信息技术有限公司 Information processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device
CN108319712A (en) * 2018-02-08 2018-07-24 广州酷狗计算机科技有限公司 The method and apparatus for obtaining lyrics data
CN111476003A (en) * 2020-03-12 2020-07-31 支付宝(杭州)信息技术有限公司 Lyric rewriting method and device
CN111510786A (en) * 2020-04-20 2020-08-07 杭州趣维科技有限公司 Method for automatically adding lyrics in video editing of mobile terminal
CN112632327A (en) * 2020-12-30 2021-04-09 北京达佳互联信息技术有限公司 Lyric processing method, device, electronic equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815230B (en) * 2015-11-27 2019-05-14 腾讯科技(深圳)有限公司 Lyrics page generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device
CN108319712A (en) * 2018-02-08 2018-07-24 广州酷狗计算机科技有限公司 The method and apparatus for obtaining lyrics data
CN111476003A (en) * 2020-03-12 2020-07-31 支付宝(杭州)信息技术有限公司 Lyric rewriting method and device
CN111510786A (en) * 2020-04-20 2020-08-07 杭州趣维科技有限公司 Method for automatically adding lyrics in video editing of mobile terminal
CN112632327A (en) * 2020-12-30 2021-04-09 北京达佳互联信息技术有限公司 Lyric processing method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112632327A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
WO2022142772A1 (en) Lyric processing method and apparatus
CN110555126B (en) Automatic generation of melodies
US9031493B2 (en) Custom narration of electronic books
CN106098060A (en) The correction processing method of voice and device, the device of correction process for voice
WO2022142946A1 (en) Lyric generation method and apparatus
US8856120B2 (en) Method and apparatus for updating prototypes
KR20170019242A (en) Method and apparatus for providing user interface in an electronic device
US20120096354A1 (en) Mobile terminal and control method thereof
JP2014206981A (en) Digital jukebox device with improved user interfaces, and associated methods
US20160247542A1 (en) Voice retrieval apparatus, voice retrieval method, and non-transitory recording medium
CN112445395B (en) Music piece selection method, device, equipment and storage medium
CN109657236A (en) Guidance information acquisition methods, device, electronic device and storage medium
WO2022198934A1 (en) Method and apparatus for generating video synchronized to beat of music
US20150326708A1 (en) System for wireless network messaging using emoticons
KR20170039379A (en) Electronic device and method for controlling the electronic device thereof
US20220208156A1 (en) Method for generating song melody and electronic device
US20210375246A1 (en) Method, device, and storage medium for generating vocal file
CN112269898A (en) Background music obtaining method and device, electronic equipment and readable storage medium
CN114205447B (en) Shortcut setting method and device of electronic equipment, storage medium and electronic equipment
CN113407275A (en) Audio editing method, device, equipment and readable storage medium
CN107402756A (en) For drawing the method, apparatus and terminal of the page
CN112699269A (en) Lyric display method, device, electronic equipment and computer readable storage medium
CN113923517B (en) Background music generation method and device and electronic equipment
CN109977390A (en) A kind of method and device generating text
CN113297414B (en) Music gift management method and device, medium and computing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913515

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 17/10/2023)