CN112184861A - Lyric editing and displaying method and device and storage medium - Google Patents

Lyric editing and displaying method and device and storage medium Download PDF

Info

Publication number
CN112184861A
CN112184861A CN202011374718.9A CN202011374718A CN112184861A CN 112184861 A CN112184861 A CN 112184861A CN 202011374718 A CN202011374718 A CN 202011374718A CN 112184861 A CN112184861 A CN 112184861A
Authority
CN
China
Prior art keywords
lyric
lyrics
animation
text
song
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011374718.9A
Other languages
Chinese (zh)
Other versions
CN112184861B (en
Inventor
姚磊
唐雨
李足红
刘湘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Jimi Technology Co Ltd
Chengdu XGIMI Technology Co Ltd
Original Assignee
Chengdu Jimi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202011374718.9A priority Critical patent/CN112184861B/en
Publication of CN112184861A publication Critical patent/CN112184861A/en
Application granted granted Critical
Publication of CN112184861B publication Critical patent/CN112184861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a lyric editing and displaying method, a lyric editing and displaying device and a storage medium, and relates to the field of audio playing. The lyric editing method comprises the following steps: acquiring a lyric text; determining time information of the lyrics; carrying out text setting on the song words; carrying out animation setting on the lyrics; displaying the effect of text setting and/or animation setting of the lyrics; and generating a configuration file and a Unity3d engineering library file, wherein the configuration file and the Unity3d engineering library file are used for being integrated by a device side. In the application, designers only need to fill in lyrics in the editing device, bind animation effects (a plurality of single animations can be combined), and all the animation filling time is visual operation, so that what you see is what you get. The configuration file and the engineering library file which are output after the editing is finished are directly integrated at the equipment end, when the song is played, the animation is rendered by the Unity3D after the song name and the song lyric time are matched with the configuration file, the debugging of a sentence by using codes is not needed, and the development period is greatly shortened.

Description

Lyric editing and displaying method and device and storage medium
Technical Field
The present application relates to the field of audio playing, and in particular, to a method and an apparatus for editing and displaying lyrics, and a storage medium.
Background
In traditional Android application development, we say that animation generally refers to various UI animations: transition animations, layout animations, property animations, etc. The artistic lyrics belong to content action, and the content action refers to that action exists as a part of the content, for example, the artistic lyrics are a visual representation of the rhythm, melody and lyric content of music. The dynamic effect is usually in comparison with 'weight level', the reduction difficulty is high, the development period is long, and the requirement on the hardware performance is also high.
Disclosure of Invention
For example, when a high-reduction degree is used for realizing an artistic lyric effect, a programmer needs to control the lyric from one coordinate position of a screen to another coordinate position in a code mode, and also needs to write current animation effects such as rotation, gradual change, translation and the like. The whole song is compiled, the restoring difficulty is high, and the development period is long. In view of the above, the present application provides a lyric editing and displaying method, device and storage medium, which improve the restorability of artistic lyric effect and reduce the development period.
In a first aspect, the present application provides a lyric editing method, including:
acquiring a lyric text;
determining time information of the lyrics;
carrying out text setting on the song words;
carrying out animation setting on the lyrics;
displaying the effect of text setting and/or animation setting of the lyrics;
and generating a configuration file and a Unity3d engineering library file, wherein the configuration file and the Unity3d engineering library file are used for being integrated by a device side, and the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics.
In one possible implementation, the obtaining the lyric text comprises:
and acquiring lyrics input by a user after a first preset control key is triggered by pressing a preset condition in a preset interface range.
In one possible implementation, the obtaining the lyric text comprises:
and loading the lyric text in the existing lyric file.
In one possible implementation, the loading the lyric text in the existing lyric file comprises:
and loading the lyric text in the existing lyric file according to characters, words or sentences.
In one possible implementation, the determining the time information of the lyrics includes:
the start time, or start time and duration, or start time and end time of the lyric text is set.
In one possible implementation, the setting of the start time, or the start time and the duration, or the start time and the end time of the lyric text comprises:
acquiring the start time, or the start time and the duration, or the start time and the end time input by a user;
or acquiring time period information intercepted by a user in a time shaft area in the interface.
In one possible implementation, the determining the time information of the lyrics includes:
and analyzing the time information of the lyric text from the lyric file.
In one possible implementation, the text setting of the lyrics includes setting at least one of:
the position of the lyrics, the size of the font, and the color of the font.
In one possible implementation, setting the location of the lyrics comprises:
and acquiring a position value input by a user, or position information of a position where the user drags the lyric text in the interface, or position information of a second preset control key triggered by the user in the interface.
In one possible implementation, the animating the lyric includes:
adding one or more animations for the lyrics from the common animations and/or animation library;
the start time and duration of each animation, or the start time and end time of each animation, are set.
In one possible implementation, the setting of the start time and the duration of each animation, or the start time and the end time of each animation includes:
acquiring the starting time and the duration or the starting time and the ending time input by a user;
or acquiring time period information intercepted by a user in a time shaft area in the interface.
In one possible implementation manner, the animating the lyric further includes:
the position of each animation is set.
In one possible implementation, the setting the position of each animation includes:
and acquiring the position value input by the user, or triggering the position information of a third preset control key in the interface by the user.
In one possible implementation, the animating the lyric includes:
and selecting an animation template from the template library, binding each sentence or each word of the lyric text according to the animation sequence of the animation template, and calculating the animation duration according to the time information of the lyric text in the lyric file.
In one possible implementation, the generating the configuration file includes:
the file name of the profile is set to the song ID of the song to which the lyrics belong.
In a second aspect, the present application provides a lyric editing apparatus, comprising:
the lyric acquisition module is used for acquiring a lyric text;
the time setting module is used for determining the time information of the lyric text;
the text setting module is used for performing text setting on the lyrics;
the animation setting module is used for carrying out animation setting on the lyrics;
the previewing module is used for displaying the effect of text setting and/or animation setting of the lyrics;
and the output module is used for generating a configuration file and a Unity3d project library file, wherein the configuration file and the Unity3d project library file are used for being integrated by a device side, and the configuration file comprises a lyric text, text setting of lyrics and animation setting.
In one possible implementation, the text setting module performs text setting on the lyrics including setting at least one of:
the position of the lyrics, the size of the font, and the color of the font.
In a possible implementation manner, the lyric editing apparatus further includes an animation library, and the animation setting module performing animation setting on the lyrics includes:
adding one or more animations for the lyrics from the common animations and/or animation library;
the start time and duration of each animation, or the start time and end time of each animation, are set.
In a possible implementation manner, the lyric editing apparatus further includes a template library, and the acquiring of the lyric text by the lyric acquiring module includes:
loading a lyric text in an existing lyric file;
the animation setting module for performing animation setting on the lyrics comprises the following steps: and selecting an animation template from the template library, binding each sentence or each word of the lyric text according to the animation sequence of the animation template, and calculating the animation duration according to the time information of the lyric text in the lyric file.
In a third aspect, the present application provides a lyric display method, including:
integrating a configuration file and a Unity3d project library file, wherein the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics;
acquiring a song ID of a currently played song;
acquiring a configuration file corresponding to the currently played song according to the song ID of the currently played song;
and displaying the corresponding lyric animation according to the playing time of the currently played song and the acquired lyric configuration information in the configuration file corresponding to the currently played song.
In a possible implementation manner, the obtaining a configuration file corresponding to a currently playing song according to a song ID includes:
establishing a mapping relation between the song ID and the configuration file of each song;
traversing the song ID to find the file name of the configuration file corresponding to the currently played song;
and acquiring the configuration file corresponding to the currently played song according to the file name of the configuration file.
In a possible implementation manner, the file name of the configuration file is a song ID, and the obtaining the configuration file corresponding to the currently played song according to the song ID includes:
and acquiring a configuration file with the file name of the song ID of the currently played song.
In one possible implementation manner, the method further includes:
and if the configuration file corresponding to the currently played song is not acquired, randomly selecting the animation for displaying.
In a fourth aspect, the present application provides a lyric display apparatus comprising:
the integration module is used for integrating a configuration file and a Unity3d project library file, wherein the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics;
a song ID acquisition module for acquiring the song ID of the currently played song;
the configuration file acquisition module is used for acquiring a configuration file corresponding to the currently played song according to the song ID;
and the animation display module is used for displaying the corresponding lyric animation according to the playing time of the currently played song and the acquired lyric configuration information in the configuration file corresponding to the currently played song.
In a fifth aspect, the present application provides another lyric editing apparatus, which includes a processor and a memory, where at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the lyric editing method as described in the first aspect or possible implementation manner of the first aspect.
In a sixth aspect, the present application provides another lyric display apparatus, which includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the lyric display method as described in the third aspect or possible implementation manners of the third aspect.
In a seventh aspect, the present application provides a storage medium having at least one program code stored therein, where the at least one program code is loaded and executed by a processor to implement the method for editing lyrics as described in the first aspect or in a possible implementation manner of the first aspect, or the method for displaying lyrics as described in a possible implementation manner of the third aspect or the third aspect.
It should be noted that, in the present application, the apparatuses according to the second aspect and the fifth aspect are configured to implement the method provided by the first aspect, the apparatuses according to the fourth aspect and the sixth aspect are configured to implement the method provided by the third aspect, and the storage medium according to the seventh aspect is configured to perform the method provided by the first aspect or the third aspect, so that the same beneficial effects as the method provided by the first aspect or the third aspect can be achieved, and the embodiments of the present application are not described again.
In the application, a designer can directly design needed animations in Unity3D or an extension tool (such as Archimatix, 3D Brush, UModeler Pro and the like), and a developer imports Unity3D to realize and output an animation engineering library, so that the reduction degree can be more than 99%. And designers only need to fill in lyrics in the editing device, bind animation effects (a plurality of single animations can be combined), fill in animation duration, all visual operations are achieved. The configuration file and the engineering library file which are output after the editing is finished are directly integrated at the equipment end, when the song is played, the animation is rendered by the Unity3D after the song name and the song lyric time are matched with the configuration file, the debugging of a sentence by using codes is not needed, and the development period is greatly shortened.
Drawings
The present application will now be described by way of example only and with reference to the accompanying drawings in which:
fig. 1 is a schematic structural diagram of a lyric editing apparatus according to an embodiment of the present application;
FIG. 2 is a flowchart of a lyric editing method according to an embodiment of the present application;
fig. 3 is a flowchart of a lyric display method according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. Moreover, while the disclosure herein has been presented in terms of exemplary one or more examples, it is to be understood that each aspect of the disclosure can be utilized independently and separately from other aspects of the disclosure to provide a complete disclosure. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
In the embodiments of the present application, the words "exemplary," "for example," and the like are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term using examples is intended to present concepts in a concrete fashion.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. The use of "first," "second," and similar terms in this application do not denote any order, quantity, or importance, but rather the terms are used merely to distinguish one element from another, and the meanings of the corresponding terms may be the same or different. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
The technical solution in the present application will be described below with reference to the accompanying drawings.
There are generally three implementation approaches for "content action": API level, engine level, tool level. Each of the more advanced and convenient methods is a packaging and abstraction of the last method. Unity3D is a tool-level scheme, and the implementation of the dynamic effect has the advantages of high reduction degree and short development period. The lyric editing device provided by the embodiment of the application is a lyric editing tool based on Unity3D or an expansion tool (such as Archimatix, 3D Brush, UModeler Pro and the like), and the lyric editing device is provided with a visual operation interface, lyric characters can be added into the interface, Unity3D animation or animation combination, lyric time points and the like can be bound to the lyric characters, Unity3D engineering library files and dynamic effect configuration files can be output, and the lyric editing device can be integrated at an equipment end.
Fig. 1 is a schematic structural diagram of a lyric editing apparatus according to an embodiment of the present application. As shown in fig. 1, the lyric editing apparatus includes:
and the lyric acquisition module is used for acquiring a lyric text. Illustratively, the method of obtaining the lyric text comprises: the method comprises the steps of obtaining lyrics input by a user after a first preset control key is triggered by the user according to a preset condition in a preset interface range, for example, obtaining lyrics input by double-clicking at a random position of a preview interface by the user or lyrics directly pasted after double-clicking, wherein the user can input a plurality of lyric texts, and the lyrics input or pasted by the user each time can be a word or a sentence of lyrics. The lyric text can also be obtained by loading the lyric text in the existing lyric file, and when the lyric text is loaded, the lyric text in the existing lyric file can be loaded according to characters, words or sentences, for example, the lyrics are analyzed according to lines, and then the words or sentences are separated according to the characters or the words, and one line represents one sentence of lyrics.
And the time setting module is used for determining the time information of the lyric text. In some embodiments, only the start time of each lyric text may be set, and in this case, the start time of the next lyric text is the end time of the previous lyric text, for example, if the start time of lyric text 1 is 1:00 and the start time of lyric text 2 is 2:00, the end time of lyric text 1 is 2: 00. In other embodiments, a start time and duration, or a start time and an end time, may be set for each lyric text, in which case the start time of the next lyric text may be different from the end time of the previous lyric text. The specific setting method may include: acquiring the start time, or the start time and the duration, or the start time and the end time input by a user; or acquiring time period information intercepted by a user in a time shaft area in the interface. If the lyric text is acquired in a manner of loading the lyric text in the existing lyric file, the time information of the lyric text can be analyzed from the lyric file.
And the text setting module is used for performing text setting on the lyrics. Illustratively, text setting the song word includes setting at least one of: the position of the lyrics, the size of the font, and the color of the font. The method for setting the position of the lyrics comprises the following steps: obtaining the position value input by the user, for example, the position value input by the user: x =0, y =0, the lyrics appear in the upper left corner of the interface; or, the position information of the position where the user drags the lyric text in the interface is reached, for example, if the user drags the lyric text to the upper left corner in the interface, the lyric will appear in the upper left corner of the interface; or, the user triggers the position information of the second preset control key in the interface, for example, if the user clicks the left mouse button at a certain position in the interface, the lyric will appear at the position in the interface.
And the animation setting module is used for carrying out animation setting on the lyrics. The lyric editing device can also comprise an animation library and a template library, wherein the animation library is a plurality of single Unity3d animations which are already realized, such as rotation, gradual change, large font interval, font overturn and the like, and can be directly added to the lyrics. When animation setting is carried out on the lyrics, one or more animations can be added to the lyrics from a common animation and/or animation library; and sets a start time and a duration of each animation, or a start time and an end time of each animation. In addition, the position of each animation can also be set. Similarly to setting the time of the lyric text, setting the start time and the duration of each animation, or the start time and the end time of each animation includes: acquiring the starting time and the duration or the starting time and the ending time input by a user; or acquiring time period information intercepted by a user in a time shaft area in the interface. It should be noted that the duration of the animation cannot exceed the duration of the corresponding lyrics text. Similarly to setting the position of the lyrics, setting the position of each animation includes: and acquiring the position value input by the user or triggering the position information of a third preset control key in the interface by the user, wherein if the user clicks a right mouse button at a certain position in the interface, the animation can appear at the position in the interface. The template library is internally provided with general lyric style effects, such as jazz, rock and the like, and is a combination of a plurality of animations, for example, rock and roll uses more rapid and violent animations (zooming, interval numbering and reflection), the templates can be directly applied after the lyric text is loaded, when the templates are selected to be applied, the animation templates are selected from the template library, each sentence or word or each word of the lyric text is bound according to the animation sequence of the animation templates, and the animation time length is calculated according to the time information of the lyric text in the lyric file.
And the previewing module is used for displaying the effect of text setting and/or animation setting of the lyrics.
And the output module is used for generating a configuration file and a Unity3d project library file, wherein the configuration file and the Unity3d project library file are used for being integrated by a device side, and the configuration file comprises a lyric text, text setting of lyrics and animation setting. The configuration file is an instruction parameter file which is used for editing the lyrics and outputting the lyrics in the form of text parameters to convert visual effects into intelligibility of a machine. In some embodiments, the file name of the configuration file may be set to the song ID of the song to which the lyrics belong, thereby facilitating the device side to find the configuration file when playing the song.
Fig. 2 is a flowchart of a lyric editing method according to an embodiment of the present application. As shown in fig. 2, the lyric editing method includes: acquiring a lyric text; determining time information of the lyrics; carrying out text setting on the song words; carrying out animation setting on the lyrics; displaying the effect of text setting and/or animation setting of the lyrics; a configuration file and Unity3d project library files are generated.
The configuration file generated by the lyric editing device and the Unity3d project library file are integrated by the equipment end, and the equipment end can display the lyric movement effect when playing songs. The flow chart of the lyric display method is shown in fig. 3, and comprises the following steps: acquiring a song ID of a currently played song; acquiring a configuration file corresponding to the currently played song according to the song ID of the currently played song; and displaying the corresponding lyric animation according to the playing time of the currently played song and the acquired lyric configuration information in the configuration file corresponding to the currently played song. If the file name of the configuration file generated by the lyric editing device is not the song ID, a mapping relation needs to be established between the song ID and the configuration file of each song, when the song is played, the file name of the configuration file corresponding to the currently played song is found by traversing the song ID, and the configuration file corresponding to the currently played song is obtained according to the file name of the configuration file. If the file name of the configuration file is the song ID, the configuration file with the file name of the song ID of the currently played song can be directly obtained.
The following takes a specific application of the lyric editing device as an example to further explain the present application. In this embodiment, the lyric editing apparatus has a visual interface within which a user can operate. The visual interface comprises a text object editing interface, a time axis setting interface, a preview interface, an animation library, a template library and a toolbar.
The text object editing interface can add a plurality of text objects, one text object can be understood as a sentence of lyrics, a word or a word, and each text object can contain text setting, path setting, animation setting, more settings and the like. The mode of adding the text object can be that the text is input by double-clicking at a random position of the preview interface, or the text is pasted after double-clicking.
And the time axis setting interface is used for setting the starting time and the ending time of the lyric text, and the time period can be intercepted in the interface or the starting time and the ending time can be manually input.
And previewing an interface, displaying the current lyric text, and also adding the text by double clicking and editing the text by single clicking on the interface, and clicking to run and see the editing effect.
The animation library, which has been implemented with a plurality of single animations, can be added to the animation settings edited by the file object.
The template library is internally provided with an effect set (such as a jazz style), a lyric text is imported through a toolbar, the lyric effect of the whole song is automatically generated, and the left lyrics of each sentence can be edited on a text object editing interface.
And the tool bar comprises a preview button, a lyric text import and a play control operation and the like.
First, the designer designs the animation via the Unity3D editor or an extension tool (e.g., Archimatix, 3D Brush, UModeler Pro). The Unity3D is a research and development tool and a design tool, and after a designer designs a required animation, the research and development personnel guides the animation into the Unity3D to realize the animation and output an animation engineering library, so that the reduction degree of more than 99% can be achieved.
Secondly, the designer introduces the animation engineering library created by the research and development personnel into the lyric editing device to be used as the animation library of the lyric editing device. Then, the designer edits the lyrics by using a lyric editing device, which comprises the following contents:
1.and inputting a lyric text.
And in the visual interface, a designer inputs a certain lyric text in the interface and sets the occurrence time point of the lyric. The mode of adding the text object can be that the text is input by double-clicking at a random position of the preview interface, or the text is pasted after double-clicking. The operation is simple, and the method is very friendly to non-developers. And the traditional development mode, such as android implementation, needs to modify codes manually, and has no intuitive and simple interface.
2. The position of the lyrics, the size of the font, the color and the like are set.
In a visual interface, a designer can drag the lyric to a certain position directly in the interface, or input a numerical value, such as x =0 and y =0, so that the lyric text appears in the upper left corner of the interface, or click a left mouse button at a position where the lyric text is expected to appear.
3. And setting the animation and animation duration of the lyrics.
The animation library comprises a plurality of single animations which are well designed and developed, and designers add the animations to the lyrics according to the desired lyric effect. For example, a rotation is added and a gradual change effect is performed at the same time, and two animations of rotation and gradual change are added to the lyric. Or adding a gradual change effect to the lower right corner while rotating from the upper left corner, adding two animations of rotation and gradual change to the lyric, adding a translation animation, setting a starting coordinate point (0, 0), setting an ending coordinate point (1920,900), and setting the time length required by the animation.
4. A library of templates is used.
If the template library is used, the designer can import the lyric file without adopting the steps 1, 2 and 3 and then apply the template. Binding each lyric by the template according to the sequence of template animation, and calculating the animation duration according to the lyric file timeline. The lyric effect of the template style is generated quickly, and the state of each sentence can be seen on the text object editing interface, so that fine adjustment can be edited.
5. After the visual editing is completed, song identifiers (song names and song IDs) are input to generate configuration files and a Unity3d project library file, and the configuration files and the Unity3d project library file are integrated by the equipment side.
The configuration file is an operation of the above editing, and is output in the form of a text parameter. The text of the lyrics containing each sentence of lyrics, the point in time of occurrence, the position of occurrence, the font size, the font color, the set of animations to be performed, where to move from, etc. And converting the visual effect into an instruction parameter file capable of being interpreted by a machine.
When the device side plays the song, the animation is rendered by the Unity3D after the song name, the song ID and the song lyric time are matched with the configuration file, debugging of one sentence by using codes is not needed, and the effect seen by a designer on an editing interface is the final effect seen at the device side.
In an example, the following further explains the display of the lyrics by taking the device side as the android side as an example, and the lyric display method includes the following parts:
the method comprises the following steps that 1, Android studios (Android app development tools) import a Unity3d project library file into a project in a module form, and a configuration file is placed under an assets directory under the Android project.
2. The lyric animation show activity inherits the UnityPlayerActivity and initializes the UnityPlayer.
3. And establishing a mapping relation between the songs and the configuration files, and acquiring the configuration files according to the song IDs.
The first scheme is as follows:
the android end obtains the song ID from the music SDK, writes a json file, and establishes a mapping relation between the song ID and the configuration file of each song generated by the lyric editing device. When the songs are played, the song ID is traversed from the json file, the file name of the corresponding configuration file can be found, and the configuration file is loaded from the assets directory through the file name.
Scheme II:
the designer inputs the file name of the configuration file as the song ID in the lyric editing device, generates the configuration file in the ID. The method comprises the steps that a song ID acquired by an android terminal from a music SDK is acquired through an asset manager.list (") method to obtain all configuration files under assets, and the configuration files of corresponding songs are acquired according to the matching of file.getName () and the song ID without manual configuration.
4. When a song is played, the android terminal calls an interface (key, value) in the Unity engineering library in real time, and transmits single-sentence lyric information in a configuration file corresponding to the playing time of the current song to the Unity3D engineering library.
5. And the Unity3D engineering library acquires the lyric configuration information transmitted from the android terminal and displays the corresponding lyric animation. Unity3D and android define more comprehensive communication format information, including lyrics, font size, location information, color, animation, etc.
6. If step 3 does not find a profile, the lyrics are passed through unicyplay.
The embodiment of the present application further provides a lyric display apparatus, where the apparatus is used to implement the lyric display method according to the above embodiment, and the apparatus may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, for example, an integration module, a song ID acquisition module, a profile acquisition module, an animation display module, and the like.
The embodiment of the present application further provides a lyric editing apparatus, where the apparatus includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement the lyric editing method according to the above embodiment.
The embodiment of the present application further provides a lyric display apparatus, which includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement the lyric display method according to the above embodiment.
The embodiment of the present application further provides a storage medium, where at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the method for editing or displaying lyrics according to the above embodiment.
It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, some or all of the steps may be executed in parallel or executed sequentially, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. For example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, a network device or a terminal device, etc.) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, ROM, RAM) magnetic or optical disk, or the like.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
The word "if" or "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (27)

1.A method for editing lyrics, comprising:
acquiring a lyric text;
determining time information of the lyrics;
carrying out text setting on the song words;
carrying out animation setting on the lyrics;
displaying the effect of text setting and/or animation setting of the lyrics;
and generating a configuration file and a Unity3d engineering library file, wherein the configuration file and the Unity3d engineering library file are used for being integrated by a device side, and the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics.
2. The method of claim 1, wherein the obtaining the lyric text comprises:
and acquiring lyrics input by a user after a first preset control key is triggered by pressing a preset condition in a preset interface range.
3. The method of claim 1, wherein the obtaining the lyric text comprises:
and loading the lyric text in the existing lyric file.
4. The method of claim 3, wherein the loading the lyrics text in the existing lyrics file comprises:
and loading the lyric text in the existing lyric file according to characters, words or sentences.
5. The method of claim 1, wherein the determining the time information of the lyrics comprises:
the start time, or start time and duration, or start time and end time of the lyric text is set.
6. The lyric editing method of claim 5, wherein the setting of the start time, or the start time and the duration, or the start time and the end time of the lyric text comprises:
acquiring the start time, or the start time and the duration, or the start time and the end time input by a user;
or acquiring time period information intercepted by a user in a time shaft area in the interface.
7. The lyric editing method of claim 3, wherein said determining the time information of the lyrics comprises:
and analyzing the time information of the lyric text from the lyric file.
8. The method of claim 1, wherein the text setting of the lyrics comprises setting at least one of:
the position of the lyrics, the size of the font, and the color of the font.
9. The method of claim 8, wherein setting the location of the lyrics comprises:
and acquiring a position value input by a user, or position information of a position where the user drags the lyric text in the interface, or position information of a second preset control key triggered by the user in the interface.
10. The lyric editing method of claim 1, wherein the animating the lyrics comprises:
adding one or more animations for the lyrics from the common animations and/or animation library;
the start time and duration of each animation, or the start time and end time of each animation, are set.
11. The lyric editing method of claim 10, wherein the setting of the start time and duration of each animation, or the start time and end time of each animation comprises:
acquiring the starting time and the duration or the starting time and the ending time input by a user;
or acquiring time period information intercepted by a user in a time shaft area in the interface.
12. The method of claim 10, wherein the animating the lyrics further comprises:
the position of each animation is set.
13. The lyric editing method of claim 12, wherein said setting a position of each animation comprises:
and acquiring the position value input by the user, or triggering the position information of a third preset control key in the interface by the user.
14. The lyric editing method of claim 3, wherein the animating the lyrics comprises:
and selecting an animation template from the template library, binding each sentence or each word of the lyric text according to the animation sequence of the animation template, and calculating the animation duration according to the time information of the lyric text in the lyric file.
15. The lyric editing method of claim 1, wherein the generating a configuration file comprises:
the file name of the profile is set to the song ID of the song to which the lyrics belong.
16. A lyric editing apparatus, comprising:
the lyric acquisition module is used for acquiring a lyric text;
the time setting module is used for determining the time information of the lyric text;
the text setting module is used for performing text setting on the lyrics;
the animation setting module is used for carrying out animation setting on the lyrics;
the previewing module is used for displaying the effect of text setting and/or animation setting of the lyrics;
and the output module is used for generating a configuration file and a Unity3d project library file, wherein the configuration file and the Unity3d project library file are used for being integrated by a device side, and the configuration file comprises a lyric text, text setting of lyrics and animation setting.
17. The apparatus of claim 16, wherein the text setting module performs text setting on the lyrics, and the text setting module sets at least one of the following items:
the position of the lyrics, the size of the font, and the color of the font.
18. The apparatus of claim 16, wherein the lyric editing apparatus further comprises an animation library, and the animation setting module animates the lyrics comprises:
adding one or more animations for the lyrics from the common animations and/or animation library;
the start time and duration of each animation, or the start time and end time of each animation, are set.
19. The apparatus for editing lyrics according to claim 16, wherein the lyrics editing apparatus further comprises a template library, and the lyrics obtaining module obtains the lyrics text comprising:
loading a lyric text in an existing lyric file;
the animation setting module for performing animation setting on the lyrics comprises the following steps: and selecting an animation template from the template library, binding each sentence or each word of the lyric text according to the animation sequence of the animation template, and calculating the animation duration according to the time information of the lyric text in the lyric file.
20. A lyric display method, comprising:
integrating a configuration file and a Unity3d project library file, wherein the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics;
acquiring a song ID of a currently played song;
acquiring a configuration file corresponding to the currently played song according to the song ID of the currently played song;
and displaying the corresponding lyric animation according to the playing time of the currently played song and the acquired lyric configuration information in the configuration file corresponding to the currently played song.
21. The method of claim 20, wherein the obtaining a configuration file corresponding to a currently playing song based on the song ID comprises:
establishing a mapping relation between the song ID and the configuration file of each song;
traversing the song ID to find the file name of the configuration file corresponding to the currently played song;
and acquiring the configuration file corresponding to the currently played song according to the file name of the configuration file.
22. The lyric display method of claim 20, wherein the file name of the profile is a song ID, and the obtaining the profile corresponding to the currently playing song according to the song ID comprises:
and acquiring a configuration file with the file name of the song ID of the currently played song.
23. The lyric display method of claim 20, further comprising:
and if the configuration file corresponding to the currently played song is not acquired, randomly selecting the animation for displaying.
24. A lyric display apparatus, comprising:
the integration module is used for integrating a configuration file and a Unity3d project library file, wherein the configuration file comprises a lyric text, time information of lyrics, text setting and animation setting of the lyrics;
a song ID acquisition module for acquiring the song ID of the currently played song;
the configuration file acquisition module is used for acquiring a configuration file corresponding to the currently played song according to the song ID;
and the animation display module is used for displaying the corresponding lyric animation according to the playing time of the currently played song and the acquired lyric configuration information in the configuration file corresponding to the currently played song.
25. A lyrics editing apparatus, characterized in that the apparatus comprises a processor and a memory, wherein the memory has stored therein at least one program code, which is loaded and executed by the processor, to implement the lyrics editing method according to any one of claims 1-15.
26. A lyrics display apparatus, characterized in that the apparatus comprises a processor and a memory, wherein the memory has stored therein at least one program code, which is loaded and executed by the processor, to implement the lyrics display method according to any one of claims 20-23.
27. A storage medium having stored therein at least one program code, the at least one program code being loaded into and executed by a processor, to implement the lyrics editing method according to any one of claims 1 to 15 or the lyrics display method according to any one of claims 20 to 23.
CN202011374718.9A 2020-12-01 2020-12-01 Lyric editing and displaying method and device and storage medium Active CN112184861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011374718.9A CN112184861B (en) 2020-12-01 2020-12-01 Lyric editing and displaying method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011374718.9A CN112184861B (en) 2020-12-01 2020-12-01 Lyric editing and displaying method and device and storage medium

Publications (2)

Publication Number Publication Date
CN112184861A true CN112184861A (en) 2021-01-05
CN112184861B CN112184861B (en) 2021-07-30

Family

ID=73918285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011374718.9A Active CN112184861B (en) 2020-12-01 2020-12-01 Lyric editing and displaying method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112184861B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112991214A (en) * 2021-03-18 2021-06-18 成都极米科技股份有限公司 Image processing method, image rendering device and image equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040266337A1 (en) * 2003-06-25 2004-12-30 Microsoft Corporation Method and apparatus for synchronizing lyrics
CN101540847A (en) * 2008-03-21 2009-09-23 株式会社康巴思 Caption producing system and caption producing method
CN102088568A (en) * 2009-12-08 2011-06-08 新奥特(北京)视频技术有限公司 Subtitle making system
CN102708906A (en) * 2012-05-24 2012-10-03 武汉诚迈科技有限公司 Method for editing lyric time on mobile terminal with touch screen
CN106652983A (en) * 2016-09-18 2017-05-10 福建网龙计算机网络信息技术有限公司 Subtitling method and subtitling system
US20180004740A1 (en) * 2015-11-27 2018-01-04 Tencent Technology (Shenzhen) Company Limited Lyric page generation method and lyric page generation apparatus
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device
US20180374461A1 (en) * 2014-08-22 2018-12-27 Zya, Inc, System and method for automatically generating media
CN109543064A (en) * 2018-11-30 2019-03-29 北京微播视界科技有限公司 Lyrics display processing method, device, electronic equipment and computer storage medium
CN109815363A (en) * 2018-12-12 2019-05-28 平安科技(深圳)有限公司 Generation method, device, terminal and the storage medium of lyrics content
CN110362696A (en) * 2019-06-11 2019-10-22 平安科技(深圳)有限公司 Lyrics generation method, system, computer equipment and computer readable storage medium
CN111316350A (en) * 2017-06-26 2020-06-19 爵亚公司 System and method for automatically generating media

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040266337A1 (en) * 2003-06-25 2004-12-30 Microsoft Corporation Method and apparatus for synchronizing lyrics
CN101540847A (en) * 2008-03-21 2009-09-23 株式会社康巴思 Caption producing system and caption producing method
CN102088568A (en) * 2009-12-08 2011-06-08 新奥特(北京)视频技术有限公司 Subtitle making system
CN102708906A (en) * 2012-05-24 2012-10-03 武汉诚迈科技有限公司 Method for editing lyric time on mobile terminal with touch screen
US20180374461A1 (en) * 2014-08-22 2018-12-27 Zya, Inc, System and method for automatically generating media
US20180004740A1 (en) * 2015-11-27 2018-01-04 Tencent Technology (Shenzhen) Company Limited Lyric page generation method and lyric page generation apparatus
CN106652983A (en) * 2016-09-18 2017-05-10 福建网龙计算机网络信息技术有限公司 Subtitling method and subtitling system
CN111316350A (en) * 2017-06-26 2020-06-19 爵亚公司 System and method for automatically generating media
CN108039184A (en) * 2017-12-28 2018-05-15 腾讯音乐娱乐科技(深圳)有限公司 Lyrics adding method and device
CN109543064A (en) * 2018-11-30 2019-03-29 北京微播视界科技有限公司 Lyrics display processing method, device, electronic equipment and computer storage medium
CN109815363A (en) * 2018-12-12 2019-05-28 平安科技(深圳)有限公司 Generation method, device, terminal and the storage medium of lyrics content
CN110362696A (en) * 2019-06-11 2019-10-22 平安科技(深圳)有限公司 Lyrics generation method, system, computer equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112991214A (en) * 2021-03-18 2021-06-18 成都极米科技股份有限公司 Image processing method, image rendering device and image equipment
CN112991214B (en) * 2021-03-18 2024-03-08 成都极米科技股份有限公司 Image processing method, image rendering method, image processing device and shadow equipment

Also Published As

Publication number Publication date
CN112184861B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN106250128B (en) Display processing method and device of user interface
US8417728B1 (en) User interfaces, methods, and systems for developing computer applications using artwork
Lipp et al. Interactive visual editing of grammars for procedural architecture
KR101130494B1 (en) Blended object attribute keyframing model
EP4130978A1 (en) System and method for streamlining user interface development
JPH08505719A (en) Menu state system
JPH08505721A (en) Object-oriented framework system
JPH08505720A (en) Command system
JPH08501401A (en) Object-oriented notification framework system
JPH08504980A (en) Atomic command system
JPH08505968A (en) How to run a dialog box on a computer system
CN112506502B (en) Visual programming method, device, equipment and storage medium based on man-machine interaction
CN101359285B (en) Apparatus and method for inserting control into document
Dörner et al. Content creation and authoring challenges for virtual environments: from user interfaces to autonomous virtual characters
CN112685025A (en) Method and system for quickly building front-end page
CN112184861B (en) Lyric editing and displaying method and device and storage medium
JP2009163609A (en) Program and device for generating test data
CN111488102A (en) Modular editing method, terminal, server and system for graphic animation
CN107491311B (en) Method and system for generating page file and computer equipment
Borras et al. Building user interfaces for database applications: The O2 experience
CN109814857B (en) Method and device for customizing primitive linkage
Yuan et al. Virtual reality platform based on open sourced graphics toolkit openscenegraph
KR20150101064A (en) System for making cartoon character
Berinstein et al. Game development tool essentials
US20210334293A1 (en) Progressive renderer of complex domain models

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant