Method and device for dynamically displaying lyrics, equipment and medium

By replacing the lyric text with an animation configuration file and generating dynamic effects, the problem of repeated editing when dynamically displaying lyrics in the prior art is solved, and the reuse and efficient utilization of lyric dynamic effects are achieved.

CN119597959APending Publication Date: 2025-03-11GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411706646.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

When the prior art shows lyrics dynamically, the editor can only edit the corresponding lyric dynamic effects based on one lyric text at a time, and cannot be reused directly, resulting in repeated editing when there are multiple lyric texts, which increases the workload.

Method used

By obtaining the animation configuration file, the file includes the template lyric text and the corresponding lyric animation configuration, replace the template lyric text as the target lyric text, and generate the lyric dynamic effect of the target lyric text based on the animation configuration.

Benefits of technology

It realizes the application of the same lyric dynamic effect to different lyric texts, which improves the utilization rate of lyric dynamic effect and reduces the workload of editors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597959A_ABST
    Figure CN119597959A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for dynamically displaying lyrics, equipment and a medium, and belongs to the technical field of audio playing. The method comprises the steps that an animation configuration file is obtained, a target lyric text is obtained, the animation configuration file is used for generating a lyric dynamic effect for at least two lyric texts, and the animation configuration file comprises a template lyric text and lyric animation configuration corresponding to the template lyric text, the target lyric text is a lyric of which the lyric dynamic effect is to be generated; replacing the template lyric text in the animation configuration file with the target lyric text; and based on the lyric animation configuration corresponding to the template lyric text, generating a lyric dynamic effect of the target lyric text, and displaying the lyric dynamic effect of the target lyric text. According to the scheme, the same lyric dynamic effect can be generated for different lyric texts through one animation configuration file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the field of audio playback technology, and in particular, relate to a method, device, equipment and medium for dynamically displaying lyrics. Background Art

[0002] With the rise of short videos, users have a growing demand for music visualization. In related technologies, by using an editor that can edit lyrics to obtain dynamic effects, it is possible to dynamically display lyrics. This can not only provide users with the necessary lyrics content information, but also provide users with a more visually impactful and immersive experience.

[0003] However, in the above-mentioned method of dynamically displaying lyrics, the editor can only edit one lyric text at a time to obtain the corresponding lyric dynamic effect. When there are multiple lyric texts that need to be edited to obtain the lyric dynamic effect, the editing needs to be repeated multiple times. For example, n lyric texts will correspond to n editing processes. Even if the lyric dynamic effects expected by n lyric texts are the same, they cannot be directly reused. Summary of the invention

[0004] The present application provides a method, device, equipment and medium for dynamically displaying lyrics. The technical solution is as follows:

[0005] According to one aspect of the present application, a method for dynamically displaying lyrics is provided, the method comprising:

[0006] Obtaining an animation configuration file and a target lyric text, wherein the animation configuration file is used to generate a lyric dynamic effect for at least two lyric texts, the animation configuration file includes: a template lyric text, and a lyric animation configuration corresponding to the template lyric text, and the target lyric text is a lyric for which a lyric dynamic effect is to be generated;

[0007] Replacing the template lyrics text in the animation configuration file with the target lyrics text; and generating lyrics dynamic effects of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text;

[0008] Display the lyrics dynamic effect of the target lyrics text.

[0009] According to another aspect of the present application, a device for dynamically displaying lyrics is provided, the device comprising:

[0010] An acquisition module is used to acquire an animation configuration file and a target lyric text, wherein the animation configuration file is used to generate a lyric dynamic effect for at least two lyric texts, and the animation configuration file includes: a template lyric text and a lyric animation configuration corresponding to the template lyric text, and the target lyric text is a lyric for which a lyric dynamic effect is to be generated;

[0011] A generating module, used to replace the template lyrics text in the animation configuration file with the target lyrics text; and, based on the lyrics animation configuration corresponding to the template lyrics text, generate lyrics dynamic effects of the target lyrics text;

[0012] The display module is used to display the dynamic effects of the lyrics of the target lyrics text.

[0013] According to one aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for dynamically displaying lyrics as described above.

[0014] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for dynamically displaying lyrics as described above.

[0015] According to another aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for dynamically displaying lyrics provided in the above aspect.

[0016] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0017] By using the same animation configuration file to replace the template lyric text with any target lyric text, it is possible to apply the same lyric dynamic effect to different lyric texts. Since the animation configuration file can be used to generate lyric dynamic effects for at least two lyric texts, the same lyric dynamic effect can be reused on different lyric texts, which is beneficial to improving the utilization rate of the lyric dynamic effects and also beneficial to reducing the workload of the editor of the lyric dynamic effects. For example, when there are n lyric texts whose desired lyric dynamic effects are all the lyric dynamic effects corresponding to the animation configuration file, there is no need to repeat the editing n times. That is, it is possible to design once and apply repeatedly. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 A structural block diagram of a computer system provided by an exemplary embodiment of the present application is shown;

[0020] Figure 2 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0021] Figure 3 A flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0022] Figure 4 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0023] Figure 5 A flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0024] Figure 6 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0025] Figure 7 A flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0026] Figure 8 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0027] Fig. 9 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0028] Fig.10 A flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0029] Fig.11 A flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0030] Fig.12 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0031] Fig.13 A schematic diagram showing a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0032] Fig.14 A structural block diagram of a device for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown;

[0033] Fig.15A structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0035] It should be understood that the "several" mentioned in this article refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0036] First, the nouns involved in the embodiments of the present application are briefly introduced:

[0037] Animation configuration file: refers to a file used to record dynamic information corresponding to the dynamic effects of lyrics. Generally, it is implemented in code form.

[0038] Lyrics text: Optionally, it can be understood as a word or multiple consecutive words in a line of lyrics, or as a line of lyrics, or as all the lyrics of a song. In the embodiment of the present application, the lyrics text is taken as an example of a line of lyrics.

[0039] Lyrics animation configuration: refers to the configuration in the animation configuration file for generating lyrics dynamic effects, including dynamic elements corresponding to lyrics text and lyrics dynamic effects. For example, assuming that the first lyrics text corresponds to the first lyrics dynamic effect, the lyrics animation configuration corresponding to the first lyrics text includes the dynamic elements corresponding to the first lyrics dynamic effect. Optionally, the dynamic elements include at least one of color, transparency, rotation, position, and scaling. Exemplarily, assuming that the first lyrics text is "I love you". The color element in the dynamic element is used to indicate the color corresponding to the lyrics text. For example, the color element is used to indicate that "I" is yellow, "love" is red, and "you" is blue. The transparency element in the dynamic element is used to indicate the transparency corresponding to the lyrics text, or is understood as indicating the transmittance corresponding to the lyrics text. For example, the transparency element is used to indicate that the transparency of "I" is 0.5. The rotation element in the dynamic element is used to indicate the rotation angle and / or rotation timing corresponding to the lyrics text. For example, the rotation element is used to indicate that "I" rotates 180° at the first moment. The position element in the dynamic element is used to indicate the position of the lyrics text at the target moment, or to indicate the relative position between different lyrics units in the lyrics text. For example, the position element is used to indicate that the position of "I" is to the upper left of the position of "love". The scaling element in the dynamic element is used to indicate the size of the lyrics text. For example, "I" is reduced by half and "love" is enlarged by two times.

[0040] Lyrics dynamic effect: refers to the effect of dynamic changes in visual elements (such as text, images, videos) as the music rhythm or lyrics content changes during music playback. This effect can enhance the appreciation and interactivity of music and improve user experience.

[0041] Figure 1 The structure block diagram of a computer system provided by an exemplary embodiment of the present application is shown. The computer system 100 includes: a terminal 120 and a server 140 .

[0042] In some embodiments, the terminal 120 is installed and runs a display platform that supports dynamic display of lyrics. Exemplarily, the terminal 120 is installed and runs a music platform that supports dynamic display of lyrics. In some embodiments, a first listener account corresponding to the first listener is logged in on the display platform, and the first listener can perform operations such as likes, comments, collections, and sharing on the display platform. Or it can be understood that the terminal 120 is a terminal used by the first listener, and the first listener can install and run a display platform that supports display of multimedia information on the terminal 120, and perform human-computer interaction on the display platform.

[0043] The terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0044] The server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, the server 140 includes a processor 144 and a memory 142, and the memory 142 includes a receiving module 1421, an adjustment module 1422, and a sending module 1423. The receiving module 1421 is used to receive a request sent by the display platform; the adjustment module 1422 is used to control the stable operation of the display platform; and the sending module 1423 is used to send a response to the display platform. In some possible embodiments, the receiving module 1421 and the sending module 1423 can also be combined and implemented as a transceiver module.

[0045] The server 140 is used to provide background services for the display platform supporting the display of multimedia information. Optionally, the server 140 undertakes the main computing work and the terminal 120 undertakes the secondary computing work; or, the server 140 undertakes the secondary computing work and the terminal 120 undertakes the main computing work; or, the server 140 and the terminal 120 undertake the computing work in a collaborative manner.

[0046] In some embodiments, the device type of the terminal 120 includes at least one of a smart phone, a smart watch, a vehicle-mounted terminal, a wearable device, a smart TV, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. The following embodiments are illustrated by taking the terminal including a smart phone as an example.

[0047] Those skilled in the art will appreciate that the number of the above terminals may be more or less. For example, the above terminal may be only one, or the above terminals may be dozens or hundreds, or more. The embodiment of the present application does not limit the number of terminals and device types.

[0048] In some embodiments, for any lyric text, the editor of the lyric dynamic effect can edit the required lyric dynamic effect in advance by using the dynamic effect editor, and then export it as a video or sequence frame when it is necessary to display the corresponding lyric dynamic effect, and directly play it on the display platform that supports dynamic display of lyrics. Figure 2 As shown, assuming that for "When the Breeze is Free", the editor of the lyrics dynamic effects can use the AE editor to edit the lyrics dynamic effects corresponding to "When the Breeze is Free", and then export it as a video or sequence frame and play it directly when it needs to be displayed.

[0049] However, when there are a large number of lyrics texts that require corresponding lyrics dynamic effects, the above method requires the editor of lyrics dynamic effects to edit one by one. For example, for n lyrics texts, n edits are required. Even if the lyrics dynamic effect corresponding to the i-th lyrics text is the same as the lyrics dynamic effect corresponding to the j-th lyrics text, it still needs to be edited twice. When the number of lyrics texts is large enough, this will cause the editor of lyrics dynamic effects to waste a lot of time on repeated editing.

[0050] Based on this, an embodiment of the present application provides a method for dynamically displaying lyrics, which can realize the reuse of the same lyrics dynamic effect for different lyrics texts. Figure 3 is a flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application. Figure 1 Taking the terminal 120 as an example, the method includes:

[0051] Step 220: Obtain an animation configuration file and obtain target lyrics text;

[0052] In some embodiments, the animation configuration file is used to generate lyrics dynamic effects for at least two lyrics texts. For example, assuming that {lyrics text 1, lyrics text 2, lyrics text 3} need to generate lyrics dynamic effects, then based on the animation configuration file, corresponding lyrics dynamic effects can be generated for {lyrics text 1, lyrics text 2, lyrics text 3} respectively. Optionally, the animation configuration file is a json (JavaScript Object Notation) file.

[0053] JSON is a lightweight data exchange format that is easy for users to read and write, and is also easy for machines to parse and generate. JSON is based on a subset of JavaScript, but JSON is a language-independent text format, and many programming languages ​​support the generation and parsing of JSON format data.

[0054] A json file usually contains key-value pairs, where the key is a string and the value can be a string, number, Boolean, array, object or null. For example, the structure of a json file is as follows:

[0055]

[0056] In this example, key1, key2, key3, key4, key5, and key6 are the keys, and "value1", 123, true, null, [1,2,3], and {"nestedKey1":"nestedValue1","nestedKey2":"nestedValue2"} are the values ​​corresponding to each key.

[0057] json files can be used in a variety of programming environments, such as JavaScript, Python, Java, C#, etc.

[0058] In some embodiments, the animation configuration file corresponds to a lyric dynamic effect. Or it can be understood that the animation configuration file is used to generate the same lyric dynamic effect for at least two lyric texts. For example, assuming that a first dynamic effect is generated for a first lyric text based on the animation configuration file, and a second dynamic effect is generated for a second lyric text based on the animation configuration file, the first dynamic effect and the second dynamic effect are the same dynamic effect.

[0059] In some embodiments, the animation configuration file is used to generate a lyric dynamic effect for any lyric text. That is, the animation configuration file can be applied to any lyric text. The animation configuration file includes: a template lyric text, and a lyric animation configuration corresponding to the template lyric text.

[0060] In some embodiments, the template lyrics text can be any lyrics text. This is not limited in the embodiments of the present application. The template lyrics text is any song, or the template lyrics text is a line of lyrics in any song, or the template lyrics text is a word in a line of lyrics in any song.

[0061] In some embodiments, the template lyrics text includes at least one lyrics unit. A lyrics unit is a word; or, a lyrics unit is a sentence; or, a lyrics unit is a song. For example, assuming that the template lyrics text is a song and a lyrics unit is a sentence, then when the template lyrics text includes 3 lyrics, the template lyrics text includes 3 lyrics units.

[0062] In some embodiments, the lyrics animation configuration corresponding to the template lyrics text is used to generate lyrics dynamic effects of the template lyrics text. Optionally, the lyrics animation configuration corresponding to the template lyrics text includes: dynamic elements corresponding to the template lyrics text, or dynamic elements corresponding to the template lyrics unit. Optionally, the dynamic elements include at least one of color, transparency, rotation, position, and scaling.

[0063] It should be understood that the dynamic element can be one, in which case the dynamic element corresponds to the template lyric text. The dynamic element can also be multiple, or understood as a set including at least one dynamic sub-element. At this time, the dynamic element is based on the lyric unit granularity. A lyric text includes at least one lyric unit. Exemplarily, it is assumed that the template lyric text includes 3 lyric units {lyric unit 1, lyric unit 2, lyric unit 3}. One possible situation is that each lyric unit corresponds to the same dynamic element. Another possible situation is that each lyric unit corresponds to its own dynamic element. For example, lyric unit 1 corresponds to dynamic sub-element 1, lyric unit 2 corresponds to dynamic sub-element 2, and lyric unit 3 corresponds to dynamic sub-element 3. Different dynamic sub-elements can be the same or different. When two dynamic sub-elements are the same, it means that the dynamic effects of the lyrics of the two lyric units corresponding to the two dynamic sub-elements are consistent. When the two dynamic sub-elements are different, it means that the dynamic effects of the lyrics of the two lyric units corresponding to the two dynamic sub-elements are different.

[0064] In some embodiments, the target lyric text is a lyric text different from the template lyric text.

[0065] In some embodiments, the target lyrics text is any song, or the target lyrics text is a line of lyrics in any song, or the target lyrics text is a word in a line of lyrics in any song.

[0066] In some embodiments, the target lyrics text includes at least one lyrics unit. A lyrics unit is a word; or, a lyrics unit is a sentence; or, a lyrics unit is a song. For example, assuming that the target lyrics text is a song and a lyrics unit is a sentence, then if the target lyrics text includes 5 lyrics, the target lyrics text includes 5 lyrics units.

[0067] Optionally, the number of lyrics units in the target lyrics text is equal to the number of lyrics units in the template lyrics text. Alternatively, the number of lyrics units in the target lyrics text is not equal to the number of lyrics units in the template lyrics text.

[0068] Optionally, the granularity of the lyrics unit in the target lyrics text is consistent with the granularity of the lyrics unit in the template lyrics text. For example, a lyrics unit in the target lyrics text is a word, and a lyrics unit in the template lyrics text is also a word.

[0069] Optionally, the granularity of the lyrics units in the target lyrics text is inconsistent with the granularity of the lyrics units in the template lyrics text. For example, a lyrics unit in the target lyrics text is a word, and a lyrics unit in the template lyrics text is a sentence. However, when the granularity of the lyrics units in the target lyrics text is inconsistent with the granularity of the lyrics units in the template lyrics text, the lyrics units with large granularity can be divided into lyrics units with small granularity through secondary segmentation, so that the granularity of the lyrics units in the target lyrics text is consistent with the granularity of the lyrics units in the template lyrics text. For example, in the case where a lyrics unit in the target lyrics text is a word and a lyrics unit in the template lyrics text is a sentence, a sentence in the template lyrics text can be divided into at least one word through secondary segmentation.

[0070] Optionally, the target lyrics text and the template lyrics text are from the same song. For example, the target lyrics text and the template lyrics text are different sentences in the same song. Or, the target lyrics text and the template lyrics text are different words in the same sentence. Or, the target lyrics text and the template lyrics text are different words in different sentences in the same song.

[0071] Optionally, the target lyrics text and the template lyrics text are from different songs.

[0072] Step 240: replacing the template lyrics text in the animation configuration file with the target lyrics text; and generating lyrics dynamic effects of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text;

[0073] In some embodiments, the lyrics units corresponding to the template lyrics text in the animation configuration file are replaced with the lyrics units corresponding to the target lyrics text; and based on the sub-animation configuration corresponding to each lyrics unit in the template lyrics text, the lyrics dynamic effect of the target lyrics text is generated.

[0074] Step 260: Display the lyrics dynamic effect of the target lyrics text.

[0075] In some embodiments, the target lyrics text is the lyrics text currently being played, or the target lyrics text is the lyrics text to be played soon. Then, based on the animation configuration file, the lyrics dynamic effect of the target lyrics text can be displayed in real time.

[0076] For example, Figure 4 As shown, assuming that the template lyrics text in the animation configuration file is "When the breeze is casual", and the target lyrics text is "The sparrow outside the window". After replacing the template lyrics text in the animation configuration file with the target lyrics text, based on the lyrics animation configuration corresponding to "When the breeze is casual", the lyrics dynamic effect of "The sparrow outside the window" can be generated. Among them, the lyrics dynamic effect of "The sparrow outside the window" is consistent with that of "When the breeze is casual".

[0077] In summary, the solution provided by the embodiment of the present application, by using the same animation configuration file, replaces the template lyric text with any target lyric text, thereby being able to apply the same lyric dynamic effect to different lyric texts. Since the animation configuration file can be used to generate lyric dynamic effects for at least two lyric texts, the same lyric dynamic effect can be reused on different lyric texts, which is beneficial to improving the utilization rate of the lyric dynamic effects and also beneficial to reducing the workload of the editor of the lyric dynamic effects. For example, when there are n lyric texts whose desired lyric dynamic effects are all the lyric dynamic effects corresponding to the animation configuration file, there is no need to repeat the editing n times. That is, it is possible to design once and apply repeatedly.

[0078] In some embodiments, the lyrics dynamic effects of the template lyrics text are edited based on a dynamic editor. The dynamic editor is an editor for editing lyrics dynamic effects. In some embodiments, the lyrics dynamic effects of any lyrics text can be edited based on the dynamic editor.

[0079] Optionally, the dynamic editor is AE Editor. AE Editor is an industry standard software developed by Adobe for motion graphics design, video synthesis and animation, which is widely used in the production of television, film, video and web content, allowing users to animate text and graphics, design title sequences and dynamic graphics, perform three-dimensional rendering, etc.

[0080] Figure 5 is a flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application. Figure 1 Taking the execution of the terminal 120 as an example, the "obtaining animation configuration file" in the above step 220 can be replaced by the following sub-steps:

[0081] Step 221: Edit the dynamic effect of the lyrics of the template lyrics text;

[0082] In some embodiments, the dynamic effects of the lyrics of the template lyrics text are obtained by editing based on the dynamic editor. The dynamic editor is an editing software used to edit and obtain the dynamic effects of the lyrics.

[0083] In some embodiments, the dynamic editor includes at least one editing component, and each editing component in the at least one editing component corresponds to a dynamic effect. For example, assuming that the dynamic editor includes {editing component 1, editing component 2, editing component 3}, where editing component 1 corresponds to a rotation effect, editing component 2 corresponds to a scaling effect, and editing component 3 corresponds to a color effect.

[0084] In some embodiments, by editing the attribute information of the i-th editing component, the dynamic effect of the lyrics is edited. For example, assuming that the lyrics text to be edited is "I love you", the dynamic editor includes {editing component 1, editing component 2, editing component 3}, where editing component 1 corresponds to the rotation effect, editing component 2 corresponds to the scaling effect, and editing component 3 corresponds to the color effect. By setting the attribute information of editing component 1 to 90°, setting the attribute information of editing component 2 to reduce by 1 times, and setting the attribute information of editing component 3 to red, the dynamic effect of the lyrics corresponding to the lyrics text "I love you" is {rotate 90°, reduce by 1 times, red}.

[0085] In some embodiments, when the template lyrics text includes at least one template lyrics unit, the dynamic sub-effect of at least one template lyrics unit is edited. Or it can be understood that the dynamic sub-effect of each lyrics unit is edited with the lyrics unit as the granularity. Then the dynamic sub-effects of each lyrics unit are spliced ​​in sequence to obtain the lyrics dynamic effect of the lyrics text. For example, Figure 6 As shown, assuming that the lyrics text includes three lyrics units {lyrics unit 1, lyrics unit 2, lyrics unit 3}, the dynamic sub-effect 1 corresponding to lyrics unit 1, the dynamic sub-effect 2 corresponding to lyrics unit 2, and the dynamic sub-effect 3 corresponding to lyrics unit 3 are edited based on the dynamic editor. Then {dynamic sub-effect 1, dynamic sub-effect 2, dynamic sub-effect 3} are spliced ​​in order to obtain the complete lyrics dynamic effect of the lyrics text.

[0086] In some embodiments, the number of lyrics units in the template lyrics text is greater than or equal to a first quantity threshold. The first quantity threshold is preset. By making the number of lyrics units in the template lyrics text sufficiently large, it is helpful to make the lyrics dynamic effects of the template lyrics text better applicable to other lyrics texts. For example, assuming that the template lyrics text has only one lyrics unit, and the target lyrics text has ten lyrics units, then when the lyrics dynamic effects of the target lyrics text are subsequently generated, it can only be repeatedly expanded and applied based on one lyrics unit of the template lyrics text, and the effect is not good. However, if the template lyrics text also has multiple lyrics units, then when the lyrics dynamic effects of the target lyrics text are subsequently generated, it can be better applied.

[0087] Step 222: Based on the export plug-in of the dynamic editor, the dynamic effects of the lyrics of the template lyrics text are exported as an animation configuration file.

[0088] In some embodiments, the export plug-in of the dynamic editor is used to export the lyrics dynamic effects edited in the dynamic editor as an animation configuration file.

[0089] In some embodiments, when the dynamic editor is an AE editor, the export plug-in of the dynamic editor includes a bodymovin plug-in of the AE editor. In some embodiments, based on the bodymovin plug-in of the AE editor, the lyrics dynamic effect of the template lyrics text is exported as a json file.

[0090] The bodymovin plugin is a plugin designed for the AE editor. It can export the dynamic lyrics effects created in the AE editor as a json file. The json file exported based on the bodymovin plugin can be played on multiple platforms. Or, it can be understood that the json file exported based on the bodymovin plugin can be applied to multiple platforms. Or, it can be understood that the json file exported based on the bodymovin plugin is very universal.

[0091] In summary, the solution provided by the embodiment of the present application can realize the use of the animation configuration file to save the edited lyrics dynamic effects by exporting the lyrics dynamic effects of the template lyrics text as an animation configuration file. Furthermore, by using the animation configuration file to apply the same lyrics dynamic effects to different lyrics texts, it is helpful to reduce the workload of the editor of the lyrics dynamic effects.

[0092] In some embodiments, the template lyrics text includes n template lyrics units. The value of n is a positive integer. The lyrics animation configuration corresponding to the template lyrics text includes: n sub-animation configurations corresponding to the n template lyrics units. The n template lyrics units correspond to the n sub-animation configurations one by one.

[0093] In some embodiments, the target lyrics text includes m target lyrics units, where the value of m is a positive integer.

[0094] In the embodiment of the present application, the granularity of the template lyrics unit and the target lyrics unit is consistent as an example for explanation.

[0095] In some embodiments, Figure 7 As shown, the "replace the template lyrics text in the animation configuration file with the target lyrics text" in the above step 240 can be replaced by the following sub-steps:

[0096] Step 240-1: Replace the i-th template lyrics unit in the template lyrics text in the animation configuration file with the i-th target lyrics unit in the target lyrics text;

[0097] In some embodiments, with lyrics units as the granularity, n template lyrics units in the animation configuration file are replaced with m target lyrics units.

[0098] In some embodiments, starting from the first template lyrics unit, the i-th template lyrics unit is replaced with the i-th target lyrics unit in sequence until all n template lyrics units are replaced, or until all m target lyrics units are replaced. Or, starting from the last template lyrics unit (in this case, the n-th template lyrics unit should be understood as the first template lyrics unit), the i-th template lyrics unit is replaced with the i-th target lyrics unit in reverse order until all n template lyrics units are replaced, or until all m target lyrics units are replaced. Or, starting from the j-th template lyrics unit (in this case, the j-th template lyrics unit should be understood as the first template lyrics unit), the i-th template lyrics unit is replaced with the i-th target lyrics unit until all n template lyrics units are replaced, or until all m target lyrics units are replaced.

[0099] In some embodiments, when the number of template lyrics units is equal to the number of target lyrics units, they can be replaced in sequence. Figure 8 As shown, template lyrics unit 1 is replaced by target lyrics unit 1, template lyrics unit 2 is replaced by target lyrics unit 2, and so on until template lyrics unit n is replaced by target lyrics unit m.

[0100] In some embodiments, when the number of template lyrics units is equal to the number of target lyrics units, based on the music style of each template lyrics unit and the music style of each target lyrics unit, the template lyrics units and target lyrics units with similar or close music styles are replaced. Exemplarily, assume that the template lyrics text includes {template lyrics unit 1, template lyrics unit 2, template lyrics unit 3}, and the target lyrics text includes {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}. If the music styles of template lyrics unit 1 and target lyrics unit 2 are similar or close, then template lyrics unit 1 is replaced with target lyrics unit 2. If the music styles of template lyrics unit 2 and target lyrics unit 3 are similar or close, then template lyrics unit 2 is replaced with target lyrics unit 3. It should be understood that in this case, the order of the template lyrics units does not need to be considered. However, in either case, it is necessary to ensure that the target lyrics units are arranged in order. Exemplarily, such as Fig. 9 As shown, the order of the n template lyrics units is shuffled to match the target lyrics units with similar or close music styles, but the order of the m target lyrics units should remain unchanged.

[0101] In some embodiments, when n is equal to m, it means that the number of template lyrics units in the template lyrics text is equal to the number of target lyrics units in the target lyrics text. Then, when n is equal to m, n template lyrics units can be directly replaced with m target lyrics units.

[0102] In some embodiments, when n is greater than m, it means that the number of template lyrics units in the template lyrics text is greater than the number of target lyrics units in the target lyrics text. Then, when n is greater than m, the m template lyrics units in the template lyrics text are replaced with the m target lyrics units in the target lyrics text, and the remaining nm template lyrics units in the n template lyrics units are deleted or ignored. Among them, there are no corresponding target lyrics units for the remaining nm template lyrics units. For example, assume that the template lyrics text includes 10 template lyrics units and the target lyrics text includes 8 target lyrics units. Then, the 8 template lyrics units in the template lyrics text are replaced with 8 target lyrics units, and the remaining 2 template lyrics units in the 10 template lyrics units are deleted or ignored.

[0103] In some embodiments, when n is greater than m, the m template lyrics units used for replacement are the m template lyrics units starting from the first template lyrics unit among the n template lyrics units. Or, the m template lyrics units used for replacement are the last m template lyrics units among the n template lyrics units. Or, the m template lyrics units used for replacement are the middle m template lyrics units among the n template lyrics units. Or, the m template lyrics units used for replacement are any m template lyrics units among the n template lyrics units.

[0104] In some embodiments, the m template lyrics units used for replacement are the first m template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the styles of the m template lyrics units used for replacement and the styles of the m target lyrics units is greater than or equal to a first similarity threshold. Optionally, the first similarity threshold is preset.

[0105] In some embodiments, the m template lyrics units for replacement are determined based on a first artificial intelligence (AI) model. The first AI model is used to select m template lyrics units from n template lyrics units according to a first target rule. Optionally, the first target rule includes: the m template lyrics units are the first m template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the style of the m template lyrics units and the style of the m target lyrics units is greater than or equal to the first similarity threshold. Or, the ath template lyrics unit among the m template lyrics units for replacement is the one that best matches the target lyrics unit to be replaced among the n template lyrics units. The value of a is a positive integer. The input of the first AI model is n template lyrics units, and the output of the first AI model is m template lyrics units.

[0106] In some embodiments, the first AI model is pre-trained. The sample training set of the first AI model includes at least two sample template lyrics units, and after multiple trainings, for example, after 10,000 sample trainings or when the model converges, a trained first AI model capable of outputting accurate m template lyrics units is obtained.

[0107] This is beneficial in that when replacing target lyrics units based on template lyrics units, all target lyrics units can be completely replaced, thereby ensuring the integrity of the lyrics dynamic effects of the subsequently generated target lyrics text.

[0108] In some embodiments, when n is less than m, it means that the number of template lyrics units in the template lyrics text is less than the number of target lyrics units in the target lyrics text. Then, when n is less than m, the n template lyrics units are expanded to m template lyrics units, and the m template lyrics units are replaced with the m target lyrics units in the target lyrics text. For example, assuming that the template lyrics text includes 8 template lyrics units and the target lyrics text includes 10 target lyrics units. Then, the 8 template lyrics units in the template lyrics text are expanded to 10 template lyrics units, and the 10 template lyrics units are replaced with 10 target lyrics units.

[0109] In some embodiments, when n is less than m, mn template lyrics units among the n template lyrics units are added after the n template lyrics units.

[0110] In some embodiments, the added mn template lyrics units are the mn template lyrics units starting from the first template lyrics unit in the n template lyrics units. Or, the added mn template lyrics units are the last mn template lyrics units in the n template lyrics units. Or, the added mn template lyrics units are the middle mn template lyrics units in the n template lyrics units. Or, the added mn template lyrics units are any mn template lyrics units in the n template lyrics units.

[0111] In some embodiments, the added mn template lyrics units are the first mn template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the styles of the added mn template lyrics units and the styles of the m target lyrics units is greater than or equal to a second similarity threshold. Optionally, the second similarity threshold is preset.

[0112] In some embodiments, the added mn template lyrics units are determined based on the second AI model. The second AI model is used to select mn template lyrics units from n template lyrics units according to a second target rule. Optionally, the second target rule includes: the mn template lyrics units are the first mn template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the style of the mn template lyrics units and the style of the m target lyrics units is greater than or equal to the second similarity threshold. Or, the bth template lyrics unit among the mn template lyrics units is the one among the n template lyrics units that best matches the target lyrics unit that needs to be replaced. The value of b is a positive integer.

[0113] In some embodiments, the second AI model is pre-trained. The sample training set of the second AI model includes at least two sample template lyrics units. After multiple trainings, for example, after 10,000 sample trainings or when the model converges, a trained second AI model capable of outputting accurate mn template lyrics units is obtained. The input of the second AI model is n template lyrics units, and the output of the second AI model is mn template lyrics units.

[0114] When the number of template lyrics units in the template lyrics text is not equal to the number of target lyrics units in the target lyrics text, through screening or expansion and other schemes, when replacing the target lyrics units based on the template lyrics units, all the target lyrics units can be completely replaced, which is beneficial to ensure the integrity of the lyrics dynamic effects of the subsequently generated target lyrics text.

[0115] In some embodiments, Fig.10 As shown, the "generating the lyrics dynamic effect of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text" in the above step 240 can be replaced by the following sub-steps:

[0116] Step 241-1: Generate a sub-dynamic effect of the i-th target lyrics unit based on the i-th sub-animation configuration corresponding to the i-th template lyrics unit;

[0117] In some embodiments, when n is equal to m, the sub-dynamic effects of the m target lyrics units are generated directly based on the n sub-animation configurations corresponding to the n template lyrics units in the template lyrics text. For example, assuming that the template lyrics text includes 3 template lyrics units {template lyrics unit 1, template lyrics unit 2, template lyrics unit 3}, and the target lyrics text includes 3 target lyrics units {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}, wherein template lyrics unit 1 is used to replace target lyrics unit 1, template lyrics unit 2 is used to replace target lyrics unit 2, and template lyrics unit 3 is used to replace target lyrics unit 3. Then, the sub-dynamic effect of target lyrics unit 1 can be generated based on the sub-animation configuration corresponding to template lyrics unit 1, the sub-dynamic effect of target lyrics unit 2 can be generated based on the sub-animation configuration corresponding to template lyrics unit 1, the sub-dynamic effect of target lyrics unit 2 can be generated based on the sub-animation configuration corresponding to template lyrics unit 2, and the sub-dynamic effect of target lyrics unit 3 can be generated based on the sub-animation configuration corresponding to template lyrics unit 3.

[0118] In some embodiments, when n is greater than m, sub-dynamic effects of m target lyrics units are generated based on m sub-animation configurations corresponding to m template lyrics units in the template lyrics text. For example, assuming that the template lyrics text includes 10 template lyrics units and the target lyrics text includes 8 target lyrics units. Based on 8 sub-animation configurations corresponding to 8 template lyrics units in the template lyrics text, sub-dynamic effects of 8 target lyrics units are generated.

[0119] In some embodiments, when n is less than m, the sub-dynamic effects of n target lyrics units are generated based on the n sub-animation configurations corresponding to the n template lyrics units in the template lyrics text. And the sub-dynamic effects of mn target lyrics units are generated based on the mn sub-animation configurations corresponding to the expanded mn template lyrics units. The sub-dynamic effects of n target lyrics units and the sub-dynamic effects of mn target lyrics units are spliced.

[0120] Step 241 - 2: splice the sub-dynamic effects of m target lyrics units to obtain the lyrics animation effect of the target lyrics text.

[0121] In some embodiments, the sub-dynamic effects of m target lyrics units are spliced ​​in order to obtain the lyrics animation effect of the target lyrics text. For example, assuming that the target lyrics text is "I love you", the target lyrics text includes {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}, wherein target lyrics unit 1 corresponds to "I", target lyrics unit 2 corresponds to "love", and target lyrics unit 3 corresponds to "you", then it is necessary to splice the sub-dynamic effects corresponding to {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3} in order. For example, after the sub-dynamic effect 1 corresponding to the target lyrics unit 1, the sub-dynamic effect 2 corresponding to the target lyrics unit 2 is spliced, and after the sub-dynamic effect 2 corresponding to the target lyrics unit 2, the sub-dynamic effect 3 corresponding to the target lyrics unit 3 is spliced.

[0122] In summary, the solution provided by the embodiment of the present application obtains the lyrics animation effect of the target lyrics text by splicing the sub-dynamic effects of m target lyrics units, so as to apply the same lyrics dynamic effect to different lyrics texts based on the granularity of the lyrics unit. Utilizing the sub-dynamic effects of each lyrics unit at a smaller granularity is conducive to further improving the reuse rate of the lyrics dynamic effects.

[0123] In some embodiments, since the lyrics dynamic effects corresponding to the animation configuration file are for the template lyrics text, the time length of the lyrics dynamic effects generated based on the animation configuration file is consistent with the time length of the template lyrics text. In this case, when the time length of the target lyrics text is inconsistent with the time length of the template lyrics text, the time length of the lyrics dynamic effects of the target lyrics text generated based on the animation configuration file is also inconsistent with the time length of the target lyrics text. Or it can be understood that the lyrics dynamic effects of the target lyrics text generated based on the animation configuration file cannot be adapted to the target lyrics text in terms of time length.

[0124] Fig.11 is a flowchart of a method for dynamically displaying lyrics provided by an exemplary embodiment of the present application. Figure 1 Taking the terminal 120 as an example, the method further includes:

[0125] Step 320: Compare the first time length and the second time length;

[0126] In some embodiments, the first time length is the time length of the sub-dynamic effect of the i-th target lyrics unit. Optionally, the start time of the first time length is the start time of playing the sub-dynamic effect of the i-th target lyrics unit. The end time of the first time length is the end time of playing the sub-dynamic effect of the i-th target lyrics unit.

[0127] In some embodiments, the second time length is the time length of the i-th target lyrics unit. Optionally, the start time of the second time length is the start time of playing the music corresponding to the i-th target lyrics unit. The end time of the second time length is the end time of playing the music corresponding to the i-th target lyrics unit.

[0128] In some embodiments, the target lyrics unit is used as a granularity to compare the duration of each target lyrics unit with the duration of the sub-dynamic effect.

[0129] In some embodiments, when the first time length and the second time length are consistent, the first time length is kept unchanged.

[0130] In some embodiments, when the first time length and the second time length are inconsistent, step 340 is continued.

[0131] Step 340: When the first time length and the second time length are inconsistent, adjust the first time length to make the first time length consistent with the second time length.

[0132] In some embodiments, the playing speed of the sub-dynamic effect of the i-th target lyrics unit is inversely proportional to the first time length. That is, the first time length can be adjusted based on the playing speed of the sub-dynamic effect of the i-th target lyrics unit. The playing speed of the sub-dynamic effect of the i-th target lyrics unit can be adapted to the playing speed of the music corresponding to the i-th target lyrics unit.

[0133] In some embodiments, when the first time length and the second time length are inconsistent, the playing speed of the sub-dynamic effect of the i-th target lyrics unit is adjusted, including: when the first time length is greater than the second time length, increasing the playing speed of the sub-dynamic effect of the i-th target lyrics unit; or, when the first time length is less than the second time length, slowing down the playing speed of the sub-dynamic effect of the i-th target lyrics unit.

[0134] For example, assuming that the time length of the i-th target lyrics unit is 1 second and the time length of the sub-dynamic effect of the i-th target lyrics unit is 2 seconds, the playback speed of the sub-dynamic effect of the i-th target lyrics unit is doubled so that the time length of the sub-dynamic effect of the i-th target lyrics unit is shortened by half.

[0135] For example, assuming that the time length of the i-th target lyrics unit is 2 seconds and the time length of the sub-dynamic effect of the i-th target lyrics unit is 1 second, the playback speed of the sub-dynamic effect of the i-th target lyrics unit is slowed down by half so that the time length of the sub-dynamic effect of the i-th target lyrics unit is doubled.

[0136] In some embodiments, when the first time length is greater than the second time length, the first time length is cut to be consistent with the second time length. For example, assuming that the time length of the i-th target lyrics unit is 1 second and the time length of the sub-dynamic effect of the i-th target lyrics unit is 2 seconds, the 2-second sub-dynamic effect is cut to 1 second.

[0137] In some embodiments, when the first time length is greater than the second time length, the first time length is cut to be consistent with the second time length starting from the start time of the first time length. Fig.12 As shown in part (a) of .

[0138] In some embodiments, when the first time length is greater than the second time length, a time length that is consistent with the second time length is cut from the end of the first time length. Fig.12 As shown in part (b) of .

[0139] In some embodiments, when the first time length is greater than the second time length, any time length that is consistent with the second time length is cut out from the first time length. Fig.12 As shown in part (c) of .

[0140] In some embodiments, when the first time length is greater than the second time length, the second time length cut out from the first time length is a section of the first time length that includes more dynamic information, which is beneficial for retaining the dynamic information in the first time length and also for deleting the redundant part in the first time length.

[0141] In some embodiments, when the first time length is less than the second time length, the first time length is extended to be consistent with the second time length. For example, assuming that the time length of the i-th target lyrics unit is 2 seconds and the time length of the sub-dynamic effect of the i-th target lyrics unit is 1 second, the 1-second sub-dynamic effect is extended to 2 seconds.

[0142] In some embodiments, when the first time length is less than the second time length, all or part of the sub-dynamic effects of the i-th target lyrics unit are repeated at the end of the first time length until it is consistent with the second time length. By reusing all or part of the sub-dynamic effects of the i-th target lyrics unit, the sub-dynamic effects that adapt to the time length of the i-th target lyrics unit can be expanded in the simplest and fastest way. The style is also more matching, which can avoid the situation where the splicing of other sub-dynamic effects leads to different styles of the two.

[0143] In some embodiments, when the first time length is shorter than the second time length, a third time length is extended at the end of the first time length. Fig.13 As shown, the sum of the first time length and the third time length is equal to the second time length. The end time of the first time length coincides with the start time of the third time length.

[0144] In summary, the solution provided in the embodiment of the present application adjusts the first time length to make the first time length consistent with the second time length, thereby making the time length of the lyrics dynamic effect of the target lyrics text adapt to the time length of the target lyrics text.

[0145] Fig.14 A structural block diagram of a device for dynamically displaying lyrics provided by an exemplary embodiment of the present application is shown, and the device includes:

[0146] The acquisition module 910 is used to acquire the animation configuration file and the target lyrics text.

[0147] In some embodiments, the animation configuration file is used to generate lyrics dynamic effects for at least two lyrics texts. For example, assuming that {lyrics text 1, lyrics text 2, lyrics text 3} need to generate lyrics dynamic effects, then based on the animation configuration file, corresponding lyrics dynamic effects can be generated for {lyrics text 1, lyrics text 2, lyrics text 3} respectively. Optionally, the animation configuration file is a json file.

[0148] In some embodiments, the animation configuration file corresponds to a lyric dynamic effect. Or it can be understood that the animation configuration file is used to generate the same lyric dynamic effect for at least two lyric texts. For example, assuming that a first dynamic effect is generated for a first lyric text based on the animation configuration file, and a second dynamic effect is generated for a second lyric text based on the animation configuration file, the first dynamic effect and the second dynamic effect are the same dynamic effect.

[0149] In some embodiments, the animation configuration file is used to generate a lyric dynamic effect for any lyric text. That is, the animation configuration file can be applied to any lyric text. The animation configuration file includes: a template lyric text, and a lyric animation configuration corresponding to the template lyric text.

[0150] In some embodiments, the template lyrics text can be any lyrics text. This is not limited in the embodiments of the present application. The template lyrics text is any song, or the template lyrics text is a line of lyrics in any song, or the template lyrics text is a word in a line of lyrics in any song.

[0151] In some embodiments, the template lyrics text includes at least one lyrics unit. A lyrics unit is a word; or, a lyrics unit is a sentence; or, a lyrics unit is a song. For example, assuming that the template lyrics text is a song and a lyrics unit is a sentence, then when the template lyrics text includes 3 lyrics, the template lyrics text includes 3 lyrics units.

[0152] In some embodiments, the lyrics animation configuration corresponding to the template lyrics text is used to generate lyrics dynamic effects of the template lyrics text. Optionally, the lyrics animation configuration corresponding to the template lyrics text includes: dynamic elements corresponding to the template lyrics text, or dynamic elements corresponding to the template lyrics unit. Optionally, the dynamic elements include at least one of color, transparency, rotation, position, and scaling.

[0153] It should be understood that the dynamic element can be one, in which case the dynamic element corresponds to the template lyric text. The dynamic element can also be multiple, or understood as a set including at least one dynamic sub-element. At this time, the dynamic element is based on the lyric unit granularity. A lyric text includes at least one lyric unit. Exemplarily, it is assumed that the template lyric text includes 3 lyric units {lyric unit 1, lyric unit 2, lyric unit 3}. One possible situation is that each lyric unit corresponds to the same dynamic element. Another possible situation is that each lyric unit corresponds to its own dynamic element. For example, lyric unit 1 corresponds to dynamic sub-element 1, lyric unit 2 corresponds to dynamic sub-element 2, and lyric unit 3 corresponds to dynamic sub-element 3. Different dynamic sub-elements can be the same or different. When two dynamic sub-elements are the same, it means that the dynamic effects of the lyrics of the two lyric units corresponding to the two dynamic sub-elements are consistent. When the two dynamic sub-elements are different, it means that the dynamic effects of the lyrics of the two lyric units corresponding to the two dynamic sub-elements are different.

[0154] In some embodiments, the target lyric text is a lyric text different from the template lyric text.

[0155] In some embodiments, the target lyrics text is any song, or the target lyrics text is a line of lyrics in any song, or the target lyrics text is a word in a line of lyrics in any song.

[0156] In some embodiments, the target lyrics text includes at least one lyrics unit. A lyrics unit is a word; or, a lyrics unit is a sentence; or, a lyrics unit is a song. For example, assuming that the target lyrics text is a song and a lyrics unit is a sentence, then if the target lyrics text includes 5 lyrics, the target lyrics text includes 5 lyrics units.

[0157] Optionally, the number of lyrics units in the target lyrics text is equal to the number of lyrics units in the template lyrics text. Alternatively, the number of lyrics units in the target lyrics text is not equal to the number of lyrics units in the template lyrics text.

[0158] Optionally, the granularity of the lyrics unit in the target lyrics text is consistent with the granularity of the lyrics unit in the template lyrics text. For example, a lyrics unit in the target lyrics text is a word, and a lyrics unit in the template lyrics text is also a word.

[0159] Optionally, the granularity of the lyrics units in the target lyrics text is inconsistent with the granularity of the lyrics units in the template lyrics text. For example, a lyrics unit in the target lyrics text is a word, and a lyrics unit in the template lyrics text is a sentence. However, when the granularity of the lyrics units in the target lyrics text is inconsistent with the granularity of the lyrics units in the template lyrics text, the lyrics units with large granularity can be divided into lyrics units with small granularity through secondary segmentation, so that the granularity of the lyrics units in the target lyrics text is consistent with the granularity of the lyrics units in the template lyrics text. For example, in the case where a lyrics unit in the target lyrics text is a word and a lyrics unit in the template lyrics text is a sentence, a sentence in the template lyrics text can be divided into at least one word through secondary segmentation.

[0160] Optionally, the target lyrics text and the template lyrics text are from the same song. For example, the target lyrics text and the template lyrics text are different sentences in the same song. Or, the target lyrics text and the template lyrics text are different words in the same sentence. Or, the target lyrics text and the template lyrics text are different words in different sentences in the same song.

[0161] Optionally, the target lyrics text and the template lyrics text are from different songs.

[0162] The generation module 920 is used to replace the template lyrics text in the animation configuration file with the target lyrics text; and to generate lyrics dynamic effects of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text.

[0163] In some embodiments, the lyrics units corresponding to the template lyrics text in the animation configuration file are replaced with the lyrics units corresponding to the target lyrics text; and based on the sub-animation configuration corresponding to each lyrics unit in the template lyrics text, the lyrics dynamic effect of the target lyrics text is generated.

[0164] The display module 930 is used to display the dynamic effect of the lyrics of the target lyrics text.

[0165] In some embodiments, the target lyrics text is the lyrics text currently being played, or the target lyrics text is the lyrics text to be played soon. Then, based on the animation configuration file, the lyrics dynamic effect of the target lyrics text can be displayed in real time.

[0166] In some embodiments, the lyrics dynamic effects of the template lyrics text are edited based on a dynamic editor. The dynamic editor is an editor for editing lyrics dynamic effects. In some embodiments, the lyrics dynamic effects of any lyrics text can be edited based on the dynamic editor.

[0167] Optionally, the dynamic editor is AE Editor. AE Editor is an industry standard software developed by Adobe for motion graphics design, video synthesis and animation, which is widely used in the production of television, film, video and web content, allowing users to animate text and graphics, design title sequences and dynamic graphics, perform three-dimensional rendering, etc.

[0168] The acquisition module 910 is also used to edit the dynamic effects of the lyrics of the template lyrics text.

[0169] In some embodiments, the dynamic effects of the lyrics of the template lyrics text are obtained by editing based on the dynamic editor. The dynamic editor is an editing software used to edit and obtain the dynamic effects of the lyrics.

[0170] In some embodiments, the dynamic editor includes at least one editing component, and each editing component in the at least one editing component corresponds to a dynamic effect. For example, assuming that the dynamic editor includes {editing component 1, editing component 2, editing component 3}, where editing component 1 corresponds to a rotation effect, editing component 2 corresponds to a scaling effect, and editing component 3 corresponds to a color effect.

[0171] In some embodiments, by editing the attribute information of the i-th editing component, the dynamic effect of the lyrics is edited. For example, assuming that the lyrics text to be edited is "I love you", the dynamic editor includes {editing component 1, editing component 2, editing component 3}, where editing component 1 corresponds to the rotation effect, editing component 2 corresponds to the scaling effect, and editing component 3 corresponds to the color effect. By setting the attribute information of editing component 1 to 90°, setting the attribute information of editing component 2 to reduce by 1 times, and setting the attribute information of editing component 3 to red, the dynamic effect of the lyrics corresponding to the lyrics text "I love you" is {rotate 90°, reduce by 1 times, red}.

[0172] In some embodiments, when the template lyrics text includes at least one template lyrics unit, the dynamic sub-effect of at least one template lyrics unit is edited. Or it can be understood that the dynamic sub-effect of each lyrics unit is edited with the lyrics unit as the granularity. Then the dynamic sub-effects of each lyrics unit are spliced ​​in sequence to obtain the lyrics dynamic effect of the lyrics text. For example, Figure 6 As shown, assuming that the lyrics text includes three lyrics units {lyrics unit 1, lyrics unit 2, lyrics unit 3}, the dynamic sub-effect 1 corresponding to lyrics unit 1, the dynamic sub-effect 2 corresponding to lyrics unit 2, and the dynamic sub-effect 3 corresponding to lyrics unit 3 are edited based on the dynamic editor. Then {dynamic sub-effect 1, dynamic sub-effect 2, dynamic sub-effect 3} are spliced ​​in order to obtain the complete lyrics dynamic effect of the lyrics text.

[0173] In some embodiments, the number of lyrics units in the template lyrics text is greater than or equal to a first quantity threshold. The first quantity threshold is preset. By making the number of lyrics units in the template lyrics text sufficiently large, it is helpful to make the lyrics dynamic effects of the template lyrics text better applicable to other lyrics texts. For example, assuming that the template lyrics text has only one lyrics unit, and the target lyrics text has ten lyrics units, then when the lyrics dynamic effects of the target lyrics text are subsequently generated, it can only be repeatedly expanded and applied based on one lyrics unit of the template lyrics text, and the effect is not good. However, if the template lyrics text also has multiple lyrics units, then when the lyrics dynamic effects of the target lyrics text are subsequently generated, it can be better applied.

[0174] The acquisition module 910 is also used to export the lyrics dynamic effects of the template lyrics text as an animation configuration file based on the export plug-in of the dynamic editor.

[0175] In some embodiments, the export plug-in of the dynamic editor is used to export the lyrics dynamic effects edited in the dynamic editor as an animation configuration file.

[0176] In some embodiments, when the dynamic editor is an AE editor, the export plug-in of the dynamic editor includes a bodymovin plug-in of the AE editor. In some embodiments, based on the bodymovin plug-in of the AE editor, the lyrics dynamic effect of the template lyrics text is exported as a json file.

[0177] In some embodiments, the template lyrics text includes n template lyrics units. The value of n is a positive integer. The lyrics animation configuration corresponding to the template lyrics text includes: n sub-animation configurations corresponding to the n template lyrics units. The n template lyrics units correspond to the n sub-animation configurations one by one.

[0178] In some embodiments, the target lyrics text includes m target lyrics units, where the value of m is a positive integer.

[0179] In the embodiment of the present application, the granularity of the template lyrics unit and the target lyrics unit is consistent as an example for explanation.

[0180] The generating module 920 is further used to replace the i-th template lyrics unit in the template lyrics text in the animation configuration file with the i-th target lyrics unit in the target lyrics text.

[0181] In some embodiments, with lyrics units as the granularity, n template lyrics units in the animation configuration file are replaced with m target lyrics units.

[0182] In some embodiments, starting from the first template lyrics unit, the i-th template lyrics unit is replaced with the i-th target lyrics unit in sequence until all n template lyrics units are replaced, or until all m target lyrics units are replaced. Or, starting from the last template lyrics unit (in this case, the n-th template lyrics unit should be understood as the first template lyrics unit), the i-th template lyrics unit is replaced with the i-th target lyrics unit in reverse order until all n template lyrics units are replaced, or until all m target lyrics units are replaced. Or, starting from the j-th template lyrics unit (in this case, the j-th template lyrics unit should be understood as the first template lyrics unit), the i-th template lyrics unit is replaced with the i-th target lyrics unit until all n template lyrics units are replaced, or until all m target lyrics units are replaced.

[0183] In some embodiments, when the number of template lyrics units is equal to the number of target lyrics units, they can be replaced in sequence.

[0184] In some embodiments, when the number of template lyrics units is equal to the number of target lyrics units, based on the music style of each template lyrics unit and the music style of each target lyrics unit, the template lyrics units and target lyrics units with similar or close music styles are replaced. Exemplarily, assume that the template lyrics text includes {template lyrics unit 1, template lyrics unit 2, template lyrics unit 3}, and the target lyrics text includes {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}. If the music styles of template lyrics unit 1 and target lyrics unit 2 are similar or close, then template lyrics unit 1 is replaced with target lyrics unit 2. If the music styles of template lyrics unit 2 and target lyrics unit 3 are similar or close, then template lyrics unit 2 is replaced with target lyrics unit 3. It should be understood that in this case, the order of the template lyrics units does not need to be considered. However, in either case, it is necessary to ensure that the target lyrics units are arranged in order. Exemplarily, such as Fig. 9 As shown, the order of the n template lyrics units is shuffled to match the target lyrics units with similar or close music styles, but the order of the m target lyrics units should remain unchanged.

[0185] In some embodiments, when n is equal to m, it means that the number of template lyrics units in the template lyrics text is equal to the number of target lyrics units in the target lyrics text. Then, when n is equal to m, n template lyrics units can be directly replaced with m target lyrics units.

[0186] In some embodiments, when n is greater than m, it means that the number of template lyrics units in the template lyrics text is greater than the number of target lyrics units in the target lyrics text. Then, when n is greater than m, the m template lyrics units in the template lyrics text are replaced with the m target lyrics units in the target lyrics text, and the remaining nm template lyrics units in the n template lyrics units are deleted or ignored. Among them, there are no corresponding target lyrics units for the remaining nm template lyrics units. For example, assume that the template lyrics text includes 10 template lyrics units and the target lyrics text includes 8 target lyrics units. Then, the 8 template lyrics units in the template lyrics text are replaced with 8 target lyrics units, and the remaining 2 template lyrics units in the 10 template lyrics units are deleted or ignored.

[0187] In some embodiments, when n is greater than m, the m template lyrics units used for replacement are the m template lyrics units starting from the first template lyrics unit among the n template lyrics units. Or, the m template lyrics units used for replacement are the last m template lyrics units among the n template lyrics units. Or, the m template lyrics units used for replacement are the middle m template lyrics units among the n template lyrics units. Or, the m template lyrics units used for replacement are any m template lyrics units among the n template lyrics units.

[0188] In some embodiments, the m template lyrics units used for replacement are the first m template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the styles of the m template lyrics units used for replacement and the styles of the m target lyrics units is greater than or equal to a first similarity threshold. Optionally, the first similarity threshold is preset.

[0189] In some embodiments, the m template lyrics units for replacement are determined based on a first artificial intelligence (AI) model. The first AI model is used to select m template lyrics units from n template lyrics units according to a first target rule. Optionally, the first target rule includes: the m template lyrics units are the first m template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the style of the m template lyrics units and the style of the m target lyrics units is greater than or equal to the first similarity threshold. Or, the ath template lyrics unit among the m template lyrics units for replacement is the one that best matches the target lyrics unit to be replaced among the n template lyrics units. The value of a is a positive integer. The input of the first AI model is n template lyrics units, and the output of the first AI model is m template lyrics units.

[0190] In some embodiments, the first AI model is pre-trained. The sample training set of the first AI model includes at least two sample template lyrics units, and after multiple trainings, for example, after 10,000 sample trainings or when the model converges, a trained first AI model capable of outputting accurate m template lyrics units is obtained.

[0191] In some embodiments, when n is less than m, it means that the number of template lyrics units in the template lyrics text is less than the number of target lyrics units in the target lyrics text. Then, when n is less than m, the n template lyrics units are expanded to m template lyrics units, and the m template lyrics units are replaced with the m target lyrics units in the target lyrics text. For example, assuming that the template lyrics text includes 8 template lyrics units and the target lyrics text includes 10 target lyrics units. Then, the 8 template lyrics units in the template lyrics text are expanded to 10 template lyrics units, and the 10 template lyrics units are replaced with 10 target lyrics units.

[0192] In some embodiments, when n is less than m, mn template lyrics units among the n template lyrics units are added after the n template lyrics units.

[0193] In some embodiments, the added mn template lyrics units are the mn template lyrics units starting from the first template lyrics unit in the n template lyrics units. Or, the added mn template lyrics units are the last mn template lyrics units in the n template lyrics units. Or, the added mn template lyrics units are the middle mn template lyrics units in the n template lyrics units. Or, the added mn template lyrics units are any mn template lyrics units in the n template lyrics units.

[0194] In some embodiments, the added mn template lyrics units are the first mn template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the styles of the added mn template lyrics units and the styles of the m target lyrics units is greater than or equal to a second similarity threshold. Optionally, the second similarity threshold is preset.

[0195] In some embodiments, the added mn template lyrics units are determined based on the second AI model. The second AI model is used to select mn template lyrics units from n template lyrics units according to a second target rule. Optionally, the second target rule includes: the mn template lyrics units are the first mn template lyrics units among the n template lyrics units that are similar or close in style to the m target lyrics units. Or, the similarity between the style of the mn template lyrics units and the style of the m target lyrics units is greater than or equal to the second similarity threshold. Or, the bth template lyrics unit among the mn template lyrics units is the one among the n template lyrics units that best matches the target lyrics unit that needs to be replaced. The value of a is a positive integer.

[0196] In some embodiments, the second AI model is pre-trained. The sample training set of the second AI model includes at least two sample template lyrics units. After multiple trainings, for example, after 10,000 sample trainings or when the model converges, a trained second AI model capable of outputting accurate mn template lyrics units is obtained. The input of the second AI model is n template lyrics units, and the output of the second AI model is mn template lyrics units.

[0197] The generating module 920 is further used to generate the sub-dynamic effect of the i-th target lyrics unit based on the i-th sub-animation configuration corresponding to the i-th template lyrics unit.

[0198] In some embodiments, when n is equal to m, the sub-dynamic effects of the m target lyrics units are generated directly based on the n sub-animation configurations corresponding to the n template lyrics units in the template lyrics text. For example, assuming that the template lyrics text includes 3 template lyrics units {template lyrics unit 1, template lyrics unit 2, template lyrics unit 3}, and the target lyrics text includes 3 target lyrics units {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}, wherein template lyrics unit 1 is used to replace target lyrics unit 1, template lyrics unit 2 is used to replace target lyrics unit 2, and template lyrics unit 3 is used to replace target lyrics unit 3. Then, the sub-dynamic effect of target lyrics unit 1 can be generated based on the sub-animation configuration corresponding to template lyrics unit 1, the sub-dynamic effect of target lyrics unit 2 can be generated based on the sub-animation configuration corresponding to template lyrics unit 1, the sub-dynamic effect of target lyrics unit 2 can be generated based on the sub-animation configuration corresponding to template lyrics unit 2, and the sub-dynamic effect of target lyrics unit 3 can be generated based on the sub-animation configuration corresponding to template lyrics unit 3.

[0199] In some embodiments, when n is greater than m, sub-dynamic effects of m target lyrics units are generated based on m sub-animation configurations corresponding to m template lyrics units in the template lyrics text. For example, assuming that the template lyrics text includes 10 template lyrics units and the target lyrics text includes 8 target lyrics units. Based on 8 sub-animation configurations corresponding to 8 template lyrics units in the template lyrics text, sub-dynamic effects of 8 target lyrics units are generated.

[0200] In some embodiments, when n is less than m, the sub-dynamic effects of n target lyrics units are generated based on the n sub-animation configurations corresponding to the n template lyrics units in the template lyrics text. And the sub-dynamic effects of mn target lyrics units are generated based on the mn sub-animation configurations corresponding to the expanded mn template lyrics units. The sub-dynamic effects of n target lyrics units and the sub-dynamic effects of mn target lyrics units are spliced.

[0201] The generation module 920 is also used to splice the sub-dynamic effects of the m target lyrics units to obtain the lyrics animation effect of the target lyrics text.

[0202] In some embodiments, the sub-dynamic effects of m target lyrics units are spliced ​​in order to obtain the lyrics animation effect of the target lyrics text. For example, assuming that the target lyrics text is "I love you", the target lyrics text includes {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3}, wherein target lyrics unit 1 corresponds to "I", target lyrics unit 2 corresponds to "love", and target lyrics unit 3 corresponds to "you", then it is necessary to splice the sub-dynamic effects corresponding to {target lyrics unit 1, target lyrics unit 2, target lyrics unit 3} in order. For example, after the sub-dynamic effect 1 corresponding to the target lyrics unit 1, the sub-dynamic effect 2 corresponding to the target lyrics unit 2 is spliced, and after the sub-dynamic effect 2 corresponding to the target lyrics unit 2, the sub-dynamic effect 3 corresponding to the target lyrics unit 3 is spliced.

[0203] In some embodiments, since the lyrics dynamic effects corresponding to the animation configuration file are for the template lyrics text, the time length of the lyrics dynamic effects generated based on the animation configuration file is consistent with the time length of the template lyrics text. In this case, when the time length of the target lyrics text is inconsistent with the time length of the template lyrics text, the time length of the lyrics dynamic effects of the target lyrics text generated based on the animation configuration file is also inconsistent with the time length of the target lyrics text. Or it can be understood that the lyrics dynamic effects of the target lyrics text generated based on the animation configuration file cannot be adapted to the target lyrics text in terms of time length.

[0204] The generating module 920 is further configured to compare the first time length and the second time length.

[0205] In some embodiments, the first time length is the time length of the sub-dynamic effect of the i-th target lyrics unit. Optionally, the start time of the first time length is the start time of playing the sub-dynamic effect of the i-th target lyrics unit. The end time of the first time length is the end time of playing the sub-dynamic effect of the i-th target lyrics unit.

[0206] In some embodiments, the second time length is the time length of the i-th target lyrics unit. Optionally, the start time of the second time length is the start time of playing the music corresponding to the i-th target lyrics unit. The end time of the second time length is the end time of playing the music corresponding to the i-th target lyrics unit.

[0207] In some embodiments, the target lyrics unit is used as a granularity to compare the duration of each target lyrics unit with the duration of the sub-dynamic effect.

[0208] In some embodiments, when the first time length and the second time length are consistent, the first time length is kept unchanged.

[0209] The generating module 920 is further configured to adjust the first time length to make the first time length consistent with the second time length when the first time length and the second time length are inconsistent.

[0210] In some embodiments, the playing speed of the sub-dynamic effect of the i-th target lyrics unit is inversely proportional to the first time length. That is, the first time length can be adjusted based on the playing speed of the sub-dynamic effect of the i-th target lyrics unit.

[0211] In some embodiments, when the first time length and the second time length are inconsistent, the playing speed of the sub-dynamic effect of the i-th target lyrics unit is adjusted, including: when the first time length is greater than the second time length, increasing the playing speed of the sub-dynamic effect of the i-th target lyrics unit; or, when the first time length is less than the second time length, slowing down the playing speed of the sub-dynamic effect of the i-th target lyrics unit.

[0212] For example, assuming that the time length of the i-th target lyrics unit is 1 second and the time length of the sub-dynamic effect of the i-th target lyrics unit is 2 seconds, the playback speed of the sub-dynamic effect of the i-th target lyrics unit is doubled so that the time length of the sub-dynamic effect of the i-th target lyrics unit is shortened by half.

[0213] For example, assuming that the time length of the i-th target lyrics unit is 2 seconds and the time length of the sub-dynamic effect of the i-th target lyrics unit is 1 second, the playback speed of the sub-dynamic effect of the i-th target lyrics unit is slowed down by half so that the time length of the sub-dynamic effect of the i-th target lyrics unit is doubled.

[0214] In some embodiments, when the first time length is greater than the second time length, the first time length is cut to be consistent with the second time length. For example, assuming that the time length of the i-th target lyrics unit is 1 second and the time length of the sub-dynamic effect of the i-th target lyrics unit is 2 seconds, the 2-second sub-dynamic effect is cut to 1 second.

[0215] In some embodiments, when the first time length is greater than the second time length, the first time length is cut to be consistent with the second time length starting from the start time of the first time length. Fig.12 As shown in part (a) of .

[0216] In some embodiments, when the first time length is greater than the second time length, a time length that is consistent with the second time length is cut from the end of the first time length. Fig.12 As shown in part (b) of .

[0217] In some embodiments, when the first time length is greater than the second time length, any time length that is consistent with the second time length is cut out from the first time length. Fig.12 As shown in part (c) of .

[0218] In some embodiments, when the first time length is greater than the second time length, the second time length cut out from the first time length is a section of the first time length that includes a larger amount of dynamic information.

[0219] In some embodiments, when the first time length is less than the second time length, the first time length is extended to be consistent with the second time length. For example, assuming that the time length of the i-th target lyrics unit is 2 seconds and the time length of the sub-dynamic effect of the i-th target lyrics unit is 1 second, the 1-second sub-dynamic effect is extended to 2 seconds.

[0220] In some embodiments, when the first time length is shorter than the second time length, all or part of the sub-dynamic effect of the i-th target lyrics unit is repeated at the end of the first time length until it matches the second time length.

[0221] In some embodiments, when the first time length is less than the second time length, a third time length is extended at the end of the first time length, and the sum of the first time length and the third time length is equal to the second time length. Fig.13 shown.

[0222] Please refer to Fig.15 , which shows a block diagram of a computer device 1200 provided by an exemplary embodiment of the present application. The computer device 1200 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1200 may also be called a listener device, a portable terminal, or other names.

[0223] Typically, the computer device 1200 includes a processor 1201 and a memory 1202 .

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

[0225] The memory 1202 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction, which is used to be executed by the processor 1201 to implement the method for dynamically displaying lyrics provided in the embodiments of the present application.

[0226] In some embodiments, the computer device 1200 may further include: a peripheral device interface 1203 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1204 , a touch display screen 1205 , a camera assembly 1206 , an audio circuit 1207 and a power supply 1208 .

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

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

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

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

[0231] The audio circuit 1207 is used to provide an audio interface between the audience and the computer device 1200. The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the audience and the environment, and convert the sound waves into electrical signals and input them into the processor 1201 for processing, or input them into the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1200. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1207 may also include a headphone jack.

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

[0233] In some embodiments, the computer device 1200 further includes one or more sensors 1209 , including but not limited to: an acceleration sensor 1210 , a gyroscope sensor 1211 , a pressure sensor 1212 , an optical sensor 1213 , and a proximity sensor 1214 .

[0234] The acceleration sensor 1210 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1200. For example, the acceleration sensor 1210 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1201 can control the touch display screen 1205 to display the audience interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1210. The acceleration sensor 1210 can also be used to collect motion data of games or audiences.

[0235] The gyro sensor 1211 can detect the body direction and rotation angle of the computer device 1200, and the gyro sensor 1211 can cooperate with the acceleration sensor 1210 to collect the 3D actions of the audience on the computer device 1200. The processor 1201 can implement the following functions based on the data collected by the gyro sensor 1211: motion sensing (such as changing the UI according to the tilt operation of the audience), image stabilization during shooting, game control, and inertial navigation.

[0236] The pressure sensor 1212 can be set on the side frame of the computer device 1200 and / or the lower layer of the touch display screen 1205. When the pressure sensor 1212 is set on the side frame of the computer device 1200, it can detect the audience's holding signal of the computer device 1200, and perform left and right hand recognition or shortcut operation according to the holding signal. When the pressure sensor 1212 is set on the lower layer of the touch display screen 1205, it can control the operability controls on the UI interface according to the pressure operation of the audience on the touch display screen 1205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

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

[0238] The proximity sensor 1214, also called a distance sensor, is usually arranged on the front of the computer device 1200. The proximity sensor 1214 is used to collect the distance between the audience and the front of the computer device 1200. In one embodiment, when the proximity sensor 1214 detects that the distance between the audience and the front of the computer device 1200 is gradually decreasing, the processor 1201 controls the touch display screen 1205 to switch from the screen-on state to the screen-off state; when the proximity sensor 1214 detects that the distance between the audience and the front of the computer device 1200 is gradually increasing, the processor 1201 controls the touch display screen 1205 to switch from the screen-off state to the screen-on state.

[0239] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the computer device 1200, and the computer device 1200 may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.

[0240] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method of dynamically displaying lyrics provided in the above-mentioned method embodiments.

[0241] The present application also provides a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set. The at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the method for dynamically displaying lyrics provided by the above method embodiment.

[0242] The present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for dynamically displaying lyrics provided by the above method embodiment.

[0243] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

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

[0245] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for dynamically displaying lyrics, characterized in that: The method comprises: Obtaining an animation configuration file and a target lyric text, wherein the animation configuration file is used to generate a lyric dynamic effect for at least two lyric texts, the animation configuration file includes: a template lyric text, and a lyric animation configuration corresponding to the template lyric text, and the target lyric text is a lyric for which a lyric dynamic effect is to be generated; Replacing the template lyrics text in the animation configuration file with the target lyrics text; and generating lyrics dynamic effects of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text; Display the lyrics dynamic effect of the target lyrics text.

2. The method according to claim 1, characterized in that The template lyrics text includes n template lyrics units, the lyrics animation configuration includes n sub-animation configurations corresponding to the n template lyrics units, and the target lyrics text includes m target lyrics units; The step of replacing the template lyrics text in the animation configuration file with the target lyrics text comprises: Replace the i-th template lyrics unit in the template lyrics text in the animation configuration file with the i-th target lyrics unit in the target lyrics text; The generating of the dynamic effect of the target lyrics text based on the lyrics animation configuration corresponding to the template lyrics text comprises: Based on the i-th sub-animation configuration corresponding to the i-th template lyrics unit, generate a sub-dynamic effect of the i-th target lyrics unit; Splicing the sub-dynamic effects of the m target lyrics units to obtain the lyrics animation effect of the target lyrics text; Among them, the value of n is a positive integer, the value of m is a positive integer, and the value of i is a positive integer.

3. The method according to claim 2, characterized in that The method further comprises: Compare the first time length and the second time length, the first time length is the time length of the sub-dynamic effect of the i-th target lyrics unit, and the second time length is the time length of the i-th target lyrics unit; When the first time length is inconsistent with the second time length, the first time length is adjusted to make the first time length consistent with the second time length.

4. The method according to claim 3, characterized in that When the first time length is inconsistent with the second time length, adjusting the first time length includes: When the first time length and the second time length are inconsistent, the playback speed of the sub-dynamic effect of the i-th target lyrics unit is adjusted, and the playback speed of the sub-dynamic effect of the i-th target lyrics unit is inversely proportional to the first time length.

5. The method according to claim 4, characterized in that When the first time length and the second time length are inconsistent, adjusting the playing speed of the sub-dynamic effect of the i-th target lyrics unit includes: When the first time length is greater than the second time length, increasing the playing speed of the sub-dynamic effect of the i-th target lyrics unit; or, When the first time length is shorter than the second time length, the playing speed of the sub-dynamic effect of the i-th target lyrics unit is slowed down.

6. The method according to claim 3, characterized in that When the first time length is inconsistent with the second time length, adjusting the first time length includes: When the first time length is greater than the second time length, the first time length is cut to be consistent with the second time length; or, When the first time length is shorter than the second time length, the first time length is extended to be consistent with the second time length.

7. The method according to claim 6, characterized in that When the first time length is shorter than the second time length, extending the first time length to be consistent with the second time length includes: When the first time length is shorter than the second time length, all or part of the sub-dynamic effect of the i-th target lyrics unit is repeated at the end of the first time length until it matches the second time length.

8. The method according to any one of claims 2 to 7, characterized in that: The method further comprises: In the case where n is greater than m, the remaining nm template lyrics units among the n template lyrics units are deleted or ignored, and the remaining nm template lyrics units do not have corresponding target lyrics units; or, When n is smaller than m, the n template lyrics units are expanded into m template lyrics units.

9. The method according to claim 8, characterized in that When n is less than m, the n template lyrics units are expanded into m template lyrics units, comprising: In the case that n is less than m, mn template lyrics units among the n template lyrics units are added after the n template lyrics units.

10. The method according to any one of claims 2 to 9, characterized in that: A lyric unit is a word; or, A lyric unit is a sentence; or, A lyric unit is a song.

11. The method according to any one of claims 1 to 10, characterized in that: The lyrics dynamic effect is obtained by editing based on the dynamic editor, and the animation configuration file is obtained, including: Edit the dynamic effect of the lyrics of the template lyrics text; Based on the export plug-in of the dynamic editor, the lyrics dynamic effect of the template lyrics text is exported as the animation configuration file; Wherein, the dynamic editor is an editor used to edit the dynamic effects of lyrics.

12. A device for dynamically displaying lyrics, characterized in that: The device comprises: An acquisition module is used to acquire an animation configuration file and a target lyric text, wherein the animation configuration file is used to generate a lyric dynamic effect for at least two lyric texts, and the animation configuration file includes: a template lyric text and a lyric animation configuration corresponding to the template lyric text, and the target lyric text is a lyric for which a lyric dynamic effect is to be generated; A generating module, used to replace the template lyrics text in the animation configuration file with the target lyrics text; and, based on the lyrics animation configuration corresponding to the template lyrics text, generate lyrics dynamic effects of the target lyrics text; The display module is used to display the dynamic effects of the lyrics of the target lyrics text.

13. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the method for dynamically displaying lyrics as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the method for dynamically displaying lyrics as described in any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the method for dynamically displaying lyrics as described in any one of claims 1 to 11.