WO2020107626A1 - 歌词显示处理方法、装置、电子设备及计算机可读存储介质 - Google Patents

歌词显示处理方法、装置、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2020107626A1
WO2020107626A1 PCT/CN2018/125416 CN2018125416W WO2020107626A1 WO 2020107626 A1 WO2020107626 A1 WO 2020107626A1 CN 2018125416 W CN2018125416 W CN 2018125416W WO 2020107626 A1 WO2020107626 A1 WO 2020107626A1
Authority
WO
WIPO (PCT)
Prior art keywords
lyrics
information
song
display
target
Prior art date
Application number
PCT/CN2018/125416
Other languages
English (en)
French (fr)
Inventor
刘德平
Original Assignee
北京微播视界科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京微播视界科技有限公司 filed Critical 北京微播视界科技有限公司
Publication of WO2020107626A1 publication Critical patent/WO2020107626A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying

Definitions

  • the present application relates to the technical field of audio processing. Specifically, the present application relates to a lyrics display processing method, device, electronic device, and computer-readable storage medium.
  • the lyrics of the playing songs are also displayed.
  • the lyrics display method supported by the current lyrics format all the lyrics of the song to be played are simply displayed.
  • the lyric format supported by this lyric format is too singular, resulting in the inability to more synchronously display the corresponding lyric according to the current song playback progress, resulting in a poor user experience.
  • a method for processing lyrics display including:
  • the preset lyrics format includes the identification information portion and the lyrics main body portion;
  • the target lyrics information corresponding to the current playback time is displayed synchronously according to the current playback time of the song information.
  • the identification information part includes identification display information and identification parameters
  • the logo display information includes at least one of the following: song title, song singer or song singing combination, song upload author and song length;
  • Identification parameters include at least one of the following: song identification, song hash value, lyrics delay value, and total number of lyrics lines;
  • the main part of the lyrics includes lyrics and lyrics parameters
  • the lyrics parameters include at least one of the following: the singer ID of each sentence lyrics, the start time and duration of each sentence lyrics, the start time and duration of each word in each lyrics, and the display color of each sentence lyrics.
  • the song information is allowed to be played.
  • parsing the original lyrics information based on the preset lyrics format includes:
  • synchronously displaying the target lyrics information corresponding to the current playing time according to the current playing time of the song information when the playing song information is detected includes:
  • displaying the target lyrics information corresponding to the current playing time synchronously according to the current playing time of the song information includes:
  • the target lyrics are displayed.
  • displaying the target lyrics according to the display mode includes at least one of the following:
  • the display color of each word in the target lyrics is dynamically adjusted according to the display color of the target lyrics and the start time and duration of each word in the target lyrics.
  • a lyrics display processing device including:
  • the acquisition module is used to acquire the song information and original lyrics information of the track to be played;
  • the parsing module is used to parse the original lyrics information based on the preset lyrics format to obtain target lyrics information that conforms to the preset lyrics format.
  • the preset lyrics format includes an identification information part and a lyrics main part;
  • the display module is used to synchronously display the target lyrics information corresponding to the current playing time according to the current playing time of the song information when the playing song information is detected.
  • the target lyrics information conforming to the preset lyrics format includes an identification information part and a lyrics main part;
  • the identification information part includes identification display information and identification parameters
  • the logo display information includes at least one of the following: song title, song singer or song singing combination, song upload author and song length;
  • Identification parameters include at least one of the following: song identification, song hash value, lyrics delay value, and total number of lyrics lines;
  • the main part of the lyrics includes lyrics and lyrics parameters
  • the lyrics parameters include at least one of the following: the singer ID of each sentence lyrics, the start time and duration of each sentence lyrics, the start time and duration of each word in each sentence lyrics, and the display color of each sentence lyrics.
  • the device further includes a calculation module and a detection module,
  • the calculation module is used to calculate the first hash value of the song information according to a predetermined hash algorithm
  • the detection module is used to detect whether the first hash value is the same as the song hash value, and when the same, it is allowed to play the song information.
  • the parsing module includes a first determining sub-module and a parsing sub-module
  • the first determining submodule is used to determine the corresponding regular expression according to the preset lyrics format
  • the parsing submodule is used to parse the original lyrics information according to the regular expression to obtain target lyrics information including the identification information part and the lyrics body.
  • the display module is configured to display the identification display information and the lyrics when the playback instruction of the song information is detected.
  • the display module includes a second determination submodule and a display submodule
  • the second determining submodule is used to determine the display mode of the target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyrics parameters;
  • the display sub-module is used to display the target lyrics according to the display mode.
  • the display sub-module is configured to: display the singer's identity of the target lyrics; and/or to dynamically adjust the target lyrics according to the display color of the target lyrics and the start time and duration of each word in the target lyrics The display color of each word in.
  • an electronic device which includes a memory and a processor.
  • a computer program is stored on the memory.
  • the processor implements the computer program to implement the foregoing lyrics display processing method.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the above-mentioned lyrics display processing method is realized.
  • the song information and original lyrics information of the track to be played are acquired, which lays a foundation for subsequent adjustment of the lyrics information of the played track; based on the preset lyrics format, the original lyrics information is parsed to obtain the preset lyrics format
  • the target lyrics information, the preset lyrics format includes the identification information part and the lyrics main body part, so that the original lyrics information obtained is adjusted according to the preset lyrics format to obtain the target lyrics information that can better meet the diversified needs of the user, which is the subsequent lyrics Provides prerequisite guarantees;
  • the target lyrics information corresponding to the current playing time is displayed synchronously, so that while playing the song information, it can not only play according to the current song.
  • the progress is more diverse and the corresponding lyrics are displayed synchronously and personally, and the lyrics can be accurately dyed and displayed in the corresponding colors according to the playback progress of the song, improving the user experience.
  • FIG. 1 is a schematic flowchart of a lyrics display processing method according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a preset lyrics format according to an embodiment of this application.
  • FIG. 3 is a schematic diagram of a basic structure of a lyrics display processing device according to an embodiment of the present application.
  • FIG. 4 is a detailed schematic structural diagram of a lyrics display processing device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of this application.
  • An embodiment of the present application provides a lyrics display processing method, as shown in FIG. 1, including:
  • Step S110 Acquire song information and original lyrics information of the track to be played.
  • the user can play music through various clients.
  • a certain music such as track A
  • the client needs to access the corresponding server from the client first. Download and cache the relevant information of track A.
  • the client has already cached the relevant information of track A.
  • the relevant information of track A can be obtained from the cache data of the client.
  • the relevant information of track A Including music scores (that is, the above-mentioned song information), lyrics (that is, the above-mentioned original lyrics information), etc., that is, acquiring song information and original lyrics information of the track to be played.
  • Step S120 Analyze the original lyrics information based on the preset lyrics format to obtain target lyrics information that conforms to the preset lyrics format.
  • the preset lyrics format includes an identification information portion and a lyrics body portion.
  • the original lyrics information may be parsed based on the preset lyrics format to obtain target lyrics information conforming to the preset lyrics format, so that the acquired lyrics
  • the original lyrics information is adjusted to obtain target lyrics information that can better meet the diversified needs of users, and provides a prerequisite guarantee for subsequent lyrics display.
  • step S130 when the song information is detected, the target lyrics information corresponding to the current playing time is displayed synchronously according to the current playing time of the song information.
  • the track can be played by triggering the “start” touch button of the track, where, when playing the track, the song information of the track is actually played, that is, the customer
  • the terminal can play the song information, so the client can detect the playback of the song information.
  • the target lyrics information corresponding to the current playing time can be displayed synchronously according to the current playing time of the song information, so that At the same time as the song information, it can accurately display the corresponding lyrics according to the playback progress of the song, which improves the accuracy of the synchronization of the song and the lyrics, and improves the user experience.
  • the lyrics display processing method obtains song information and original lyrics information of the track to be played, which lays a foundation for subsequent adjustment of the lyrics information of the played track; based on the preset lyrics format, the The original lyrics information is analyzed to obtain the target lyrics information that conforms to the preset lyrics format.
  • the preset lyrics format includes the identification information part and the lyrics main body part, so that the obtained original lyrics information is adjusted according to the preset lyrics format to be more satisfied
  • the target lyrics information of the diversified needs of users provides a prerequisite guarantee for the subsequent display of the lyrics; when the playback song information is detected, the target lyrics information corresponding to the current playback time is displayed synchronously according to the current playback time of the song information, so that during playback At the same time of the song information, not only can the corresponding song lyrics be displayed more diversely and personally according to the current song playback progress, but also the color of the lyrics can be accurately displayed word by word according to the song playback progress, which improves the user Experience.
  • the identification information part includes identification display information and identification parameters
  • the logo display information includes at least one of the following: song title, song singer or song singing combination, song upload author and song length;
  • Identification parameters include at least one of the following: song identification, song hash value, lyrics delay value, and total number of lyrics lines;
  • the main part of the lyrics includes lyrics and lyrics parameters
  • the lyrics parameters include at least one of the following: the singer ID of each sentence lyrics, the start time and duration of each sentence lyrics, the start time and duration of each word in each sentence lyrics, and the display color of each sentence lyrics.
  • the target lyrics information that conforms to the preset lyrics format can be divided into an identification information part and a lyrics main body part, where the identification information part can be further divided into identification display information and identification parameters, and the identification display information is information of the song being played (ie, music score )
  • the identification display information is information of the song being played (ie, music score )
  • the identification parameters are not synchronized when playing the song
  • the displayed information is some characterization parameters carried by the song itself, such as song identification, song hash value, lyrics delay value, total number of lyrics lines, and so on.
  • lyrics and lyrics parameters where the lyrics are the corresponding text displayed during the song information playback, and the lyrics parameters are used to adjust the display and display of the lyrics during the song information playback
  • the color is also used to assist the accurate synchronization of song information and lyrics.
  • Lyric parameters include but are not limited to the singer ID of each sentence lyrics, the start time and duration of each sentence lyrics, the beginning of each word in each sentence lyrics The start time and duration and the display color of the lyrics of each sentence.
  • the preset lyrics format actually includes two parts of the identification information part and the main body part of the lyrics
  • the identification display information part includes the song name, the song singer or song singing combination, the uploading author of the song, Song length, song identification, song hash value, lyrics delay value and total number of lyrics lines, etc.
  • the main body of the lyrics includes lyrics, the singer identification of each sentence lyrics, the start time and duration of each sentence lyrics, each sentence lyrics The start time and duration of each word and the display color of the lyrics of the sentence, etc.
  • the preset lyrics format is shown in Figure 2.
  • “W” in the main part of the lyrics in Figure 2 is the singer's logo of the lyrics, which means female voice.
  • 2000 means the start time of the lyrics of the sentence
  • 500 means the duration of the lyrics of the sentence
  • 2000 before the word "Cang” means the start time of the words "Cang” in the lyrics of the sentence
  • “Cang” The first 100 indicates the duration of the word “cang” in the lyrics of the sentence
  • the 2100 before the word "mang” indicates the starting time of the word "meng” in the lyrics of the sentence
  • the 100 before the word “mang” indicates the words "in the lyrics”
  • the duration of the word “meng”, the 2200 before the word “” means the starting time of the word "” in the sentence
  • the 100 before the word “de” means the duration of the word "” in the sentence.
  • the target lyrics information that conforms to the preset lyrics format is obtained, so that while playing the song information, it can not only be based on the progress of the song and the duration of each word
  • Time-by-word coloring improves the synchronization of song playback progress and lyrics coloring progress, and can dynamically adjust the display color of each lyrics.
  • the logo information meets the diverse needs of users and enhances the user experience.
  • step S130 it also includes step S121 (not marked in the figure) and step S122 (not marked in the figure).
  • Step S121 Calculate the first hash value of the song information according to a predetermined hash algorithm
  • Step S122 Detect whether the first hash value and the song hash value are the same, and if they are the same, allow the song information to be played.
  • parsing the original lyrics information based on the preset lyrics format includes:
  • the target lyrics information corresponding to the current playing time is synchronously displayed, including:
  • the target lyrics information corresponding to the current playing time is synchronously displayed, including:
  • the target lyrics are displayed.
  • displaying the target lyrics according to the display mode includes at least one of the following:
  • the display color of each word in the target lyrics is dynamically adjusted according to the display color of the target lyrics and the start time and duration of each word in the target lyrics.
  • the first hash value of the acquired song information is calculated according to a predetermined hash algorithm, and then the first hash value is detected and the original Whether the hash values of the songs obtained by analyzing the lyrics information are the same. If they are the same, it means that the complete song information of the track to be played is obtained. At this time, the song information can be played. If they are not the same, the acquired tracks to be played The song information is not complete, and the song information cannot be played at this time, which is equivalent to performing integrity check on the acquired song information of the song to be played.
  • a matching model can be generated according to the corresponding regular expression, and the original lyrics information can be analyzed by the matching model, that is, the obtained original lyrics information
  • the parsed song ID is assigned to the song ID in the preset lyrics format
  • the parsed song name is assigned to the preset lyrics format
  • the title of the song in the original song has been parsed until all the original lyric information has been parsed, so as to obtain the target lyric information that conforms to the preset lyric format, that is, the song to be played Song name, song singer or song combination, song upload author, song length, song identification, song hash value, lyrics delay value, total number of lyrics lines, lyrics, singer identification of each sentence lyrics, beginning of each sentence lyrics
  • the target lyrics information that conforms to the preset lyrics format is displayed, that is Display logo display information and lyrics, in other words, once the playback instruction of the song information is detected, immediately display the corresponding song name, song singer or song singing combination, song upload author and song length and other logo display information and lyrics.
  • the user when the user plays the song information of the track by triggering the “start” touch button of the track, the user can according to the current playing time of the song information, the singer identification of each lyrics, and the beginning of each lyrics Lyric parameters such as time and duration, start time and duration of each word in each sentence lyrics, display color of each sentence lyrics, etc., determine the display mode of the target lyrics corresponding to the current playing time, and according to the display mode, Display the target lyrics, for example, display the singer's logo of the target lyrics (such as W, M, C, etc.), dynamically adjust the target lyrics according to the display color of the target lyrics and the start time and duration of each word in the target lyrics The display color of each word (such as red, blue, green, etc.), etc.
  • the integrity of the acquired song information of the track to be played is ensured, on the other hand, not only can the corresponding lyrics be dyed verbatim according to the playback progress of the song information, but also each sentence can be dynamically adjusted Display color improves user experience.
  • FIG. 3 is a schematic structural diagram of a lyrics display processing device provided by an embodiment of the present application.
  • the device 30 may include an acquisition module 31, an analysis module 32, and a display module 33, wherein,
  • the obtaining module 31 is used to obtain song information and original lyrics information of the track to be played;
  • the parsing module 32 is used to parse the original lyrics information based on the preset lyrics format to obtain target lyrics information that conforms to the preset lyrics format.
  • the preset lyrics format includes an identification information part and a lyrics body part;
  • the display module 33 is used to synchronously display the target lyrics information corresponding to the current playing time according to the current playing time of the song information when the playing song information is detected.
  • the identification information part includes identification display information and identification parameters
  • the logo display information includes at least one of the following: song title, song singer or song singing combination, song upload author and song length;
  • Identification parameters include at least one of the following: song identification, song hash value, lyrics delay value, and total number of lyrics lines;
  • the main part of the lyrics includes lyrics and lyrics parameters
  • the lyrics parameters include at least one of the following: the singer ID of each sentence lyrics, the start time and duration of each sentence lyrics, the start time and duration of each word in each sentence lyrics, and the display color of each sentence lyrics.
  • the device further includes a calculation module 34 and a detection module 35, as shown in FIG. 4, wherein,
  • the calculation module 34 is used to calculate the first hash value of the song information according to a predetermined hash algorithm
  • the detection module 35 is used to detect whether the first hash value and the song hash value are the same, and when the same, allow the song information to be played.
  • the parsing module 32 includes a first determining sub-module 321 and a parsing sub-module 322, as shown in FIG. 4, wherein,
  • the first determining submodule 321 is used to determine the corresponding regular expression according to the preset lyrics format
  • the parsing sub-module 322 is used to parse the original lyrics information according to the regular expression to obtain target lyrics information including the identification information part and the lyrics body.
  • the display module 33 is configured to display the identification display information and the lyrics when the playback instruction of the song information is detected.
  • the display module 33 includes a second determination submodule 331 and a display submodule 332, as shown in FIG. 4, wherein,
  • the second determining submodule 331 is used to determine the display mode of the target lyrics corresponding to the current playing time according to the current playing time of the song information and the lyrics parameters;
  • the display submodule 332 is used to display the target lyrics according to the display mode.
  • the display sub-module 332 is configured to: display the singer's identity of the target lyrics; and/or to dynamically adjust the target according to the display color of the target lyrics and the start time and duration of each word in the target lyrics The display color of each word in the lyrics.
  • FIG. 5 shows a schematic structural diagram of an electronic device 500 suitable for implementing embodiments of the present disclosure.
  • the terminal devices in the embodiments of the present application may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle-mounted terminals
  • PDAs personal digital assistants
  • PADs tablet computers
  • PMPs portable multimedia players
  • vehicle-mounted terminals For example, mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, and so on.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the functions and use scope of the embodiments of the present application.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random storage according to a program stored in a read-only memory (ROM) 502 or from the storage device 508
  • ROM read-only memory
  • RAM random storage
  • the program in the memory (RAM) 503 is fetched to perform various appropriate actions and processes.
  • various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speaker, vibration
  • input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.
  • An output device 507 such as a storage device; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present application include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or from the storage device 508, or from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiments of the present application are executed.
  • the above-mentioned computer-readable medium in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device is caused to: obtain the song information and original lyrics information of the track to be played; then based on the preset lyrics format , Analyze the original lyrics information to get the target lyrics information that conforms to the preset lyrics format, the preset lyrics format includes the identification information part and the main body of the lyrics; then when the playback song information is detected, according to the current playback time of the song information, synchronization Display the target lyrics information corresponding to the current playing time.
  • the computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof.
  • the above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, as well as conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, through an Internet service provider Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider Internet connection for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
  • each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented with dedicated hardware-based systems that perform specified functions or operations Or, it can be realized by a combination of dedicated hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种歌词显示处理方法、装置(30)、电子设备(500)及计算机可读存储介质。该歌词显示处理方法包括:获取待播放曲目的歌曲信息与原始歌词信息(S110);基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分(S120);当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息(S130)。根据上述方法,在播放歌曲信息的同时,不仅能够根据当前歌曲的播放进度更加多样性、个性化地同步显示相应的歌词,而且能够准确地根据歌曲的播放进度逐字地对歌词进行相应颜色的染色显示,提升了用户体验。

Description

歌词显示处理方法、装置、电子设备及计算机可读存储介质
相关申请的交叉引用
本申请要求2018年11月30日在中国知识产权局提交的中国专利申请No.201811457975.1的优先权,通过引用将其全文并入本文。
技术领域
本申请涉及音频处理技术领域,具体而言,本申请涉及一种歌词显示处理方法、装置、电子设备及计算机可读存储介质。
背景技术
近年来,随着科技水平和经济的发展,人们对精神生活的要求也越来越高。作为多媒体技术的代表,音乐一直以来都被全世界的人们所喜爱。传统的音乐多来自于电脑、MP3播放器等,随着智能终端的普及,越来越多的人倾向于通过智能终端来播放音乐。
为了提供更优化的服务,在播放歌曲的同时,也对播放歌曲的歌词进行显示。根据目前的歌词格式所支持的歌词显示方式,只是简单地将待播放歌曲的歌词全部显示出来。这种歌词格式所支持的歌词显示方式过于单一,导致无法根据当前歌曲的播放进度更加多样性地同步显示相应的歌词,造成不佳的用户体验。
发明内容
第一方面,提供了一种歌词显示处理方法,其包括:
获取待播放曲目的歌曲信息与原始歌词信息;
基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分;
当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
具体地,标识信息部分包括标识显示信息及标识参数;
标识显示信息包括以下至少一项:歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者和歌曲长度;
标识参数包括以下至少一项:歌曲标识、歌曲哈希值、歌词延迟值和歌词总行数;
歌词主体部分包括歌词及歌词参数;
歌词参数包括以下至少一项:各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、以及各句歌词的显示颜色。
进一步地,在播放歌曲信息之前,
根据预定哈希算法,计算歌曲信息的第一哈希值;
检测第一哈希值与歌曲哈希值是否相同;
如果相同,则允许对歌曲信息进行播放。
进一步地,基于预设歌词格式对原始歌词信息进行解析包括:
根据预设歌词格式,确定相应的正则表达式;
根据正则表达式对原始歌词信息进行解析,以获取包括标识信息部分与歌词主体的目标歌词信息。
进一步地,当检测到播放歌曲信息时根据歌曲信息的当前播放时间同步显示与当前播放时间相对应的目标歌词信息包括:
当检测到歌曲信息的播放指令时,显示标识显示信息以及歌词。
进一步地,当检测到播放歌曲信息时,根据歌曲信息的当前播放时间同步显示与当前播放时间相对应的目标歌词信息包括:
根据歌曲信息的当前播放时间以及歌词参数,确定与当前播放时间相对应的目标歌词的显示方式;
根据显示方式,对目标歌词进行显示。
进一步地,根据显示方式对目标歌词进行显示包括以下至少一项:
显示目标歌词的演唱者标识;
根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色。
第二方面,提供了一种歌词显示处理装置,包括:
获取模块,用于获取待播放曲目的歌曲信息与原始歌词信息;
解析模块,用于基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分;
显示模块,用于当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
具体地,符合预设歌词格式的目标歌词信息包括标识信息部分与歌词主体部分;
标识信息部分包括标识显示信息及标识参数;
标识显示信息包括以下至少一项:歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者和歌曲长度;
标识参数包括以下至少一项:歌曲标识、歌曲哈希值、歌词延迟值和歌词总行数;
歌词主体部分包括歌词及歌词参数;
歌词参数包括以下至少一项:各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、以及各句歌词的显示颜色。
进一步地,该装置还包括计算模块与检测模块,
计算模块用于根据预定哈希算法,计算歌曲信息的第一哈希值;
检测模块用于检测第一哈希值与歌曲哈希值是否相同,并当相同时,允许对歌曲信息进行播放。
进一步地,解析模块包括第一确定子模块与解析子模块,
第一确定子模块用于根据预设歌词格式,确定相应的正则表达式;
解析子模块用于根据正则表达式对原始歌词信息进行解析,以获取包括标识信息部分与歌词主体的目标歌词信息。
进一步地,显示模块被配置成:当检测到歌曲信息的播放指令时,显 示标识显示信息以及歌词。
进一步地,显示模块包括第二确定子模块与显示子模块,
第二确定子模块用于根据歌曲信息的当前播放时间以及歌词参数,确定与当前播放时间相对应的目标歌词的显示方式;
显示子模块用于根据显示方式,对目标歌词进行显示。
进一步地,显示子模块被配置成:显示目标歌词的演唱者标识;和/或,用于根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色。
第三方面,提供了一种电子设备,包括存储器和处理器,该存储器上存储有计算机程序,该处理器执行该计算机程序时实现上述的歌词显示处理方法。
第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被计算机执行时实现上述的歌词显示处理方法。
根据本申请实施例,获取待播放曲目的歌曲信息与原始歌词信息,为后续对播放曲目的歌词信息进行调整奠定基础;基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分,从而根据预设歌词格式对获取到的原始歌词信息进行调整,得到更能满足用户多样化需求的目标歌词信息,为后续歌词的显示提供前提保障;当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息,使得在播放歌曲信息的同时,不仅能够根据当前歌曲的播放进度更加多样性、个性化地同步显示相应的歌词,而且能够准确地根据歌曲的播放进度逐字地对歌词进行相应颜色的染色显示,提升了用户体验。
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描 述中将变得明显和容易理解,其中:
图1为本申请实施例的歌词显示处理方法的流程示意图;
图2为本申请实施例的预设歌词格式的示意图;
图3为本申请实施例的歌词显示处理装置的基本结构示意图;
图4为本申请实施例的歌词显示处理装置的详细结构示意图;
图5为本申请实施例的电子设备的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。
实施例一
本申请实施例提供了一种歌词显示处理方法,如图1所示,包括:
步骤S110,获取待播放曲目的歌曲信息与原始歌词信息。
具体地,用户可以通过各种客户端进行音乐的播放,其中,在通过客户端播放某个音乐(例如曲目A)的过程中,尤其是首次播放时,需要先通过客户端从对应的服务器中下载并缓存曲目A的相关信息,当非首次播放时,客户端中已经缓存了曲目A的相关信息,此时可以从客户端的缓存数据中获取曲目A的相关信息,其中,曲目A的相关信息包括曲谱(即上述的歌曲信息)、歌词(即上述的原始歌词信息)等,即获取待播放曲目的歌曲信息与原始歌词信息。
步骤S120,基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分。
具体地,在获取到待播放曲目的原始歌词信息后,可以基于预设歌词格式对该原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,从而根据预设歌词格式对获取到的原始歌词信息进行调整,得到更能满足用户多样化需求的目标歌词信息,为后续歌词的显示提供前提保障。
步骤S130,当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
具体地,当用户需要播放该曲目时,可以通过触发该曲目的“开始”触控按键对该曲目进行播放,其中,在对曲目进行播放时,实际上是播放该曲目的歌曲信息,即客户端播放歌曲信息,于是客户端可以检测到歌曲信息的播放,当检测到播放歌曲信息时,可以根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息,从而使得在播放歌曲信息的同时,能够准确地根据歌曲的播放进度逐字地对相应的歌词进行染色显示,提高了歌曲与歌词同步的准确性,提升了用户体验。
本申请实施例提供的歌词显示处理方法,与现有技术相比,获取待播放曲目的歌曲信息与原始歌词信息,为后续对播放曲目的歌词信息进行调 整奠定基础;基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分,从而根据预设歌词格式对获取到的原始歌词信息进行调整,得到更能满足用户多样化需求的目标歌词信息,为后续歌词的显示提供前提保障;当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息,使得在播放歌曲信息的同时,不仅能够根据当前歌曲的播放进度更加多样性、个性化地同步显示相应的歌词,而且能够准确地根据歌曲的播放进度逐字地对歌词进行相应颜色的染色显示,提升了用户体验。
本申请实施例提供了另一种可能的实现方式,其中,
标识信息部分包括标识显示信息及标识参数;
标识显示信息包括以下至少一项:歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者和歌曲长度;
标识参数包括以下至少一项:歌曲标识、歌曲哈希值、歌词延迟值和歌词总行数;
歌词主体部分包括歌词及歌词参数;
歌词参数包括以下至少一项:各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、以及各句歌词的显示颜色。
具体地,符合预设歌词格式的目标歌词信息可以分为标识信息部分与歌词主体部分,其中,标识信息部分又可以分为标识显示信息及标识参数,标识显示信息为在播放歌曲信息(即曲谱)的过程中能够同步显示的信息,例如在播放歌曲信息的同时显示歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者、歌曲长度等信息;标识参数是在播放歌曲时并不会同步显示的信息,而是歌曲本身携带的一些表征参数,例如歌曲标识、歌曲哈希值、歌词延迟值、歌词总行数等等。
进一步地,歌词主体部分也可以分为两部分:歌词与歌词参数,其中,歌词是在歌曲信息播放过程中对应显示的文字,歌词参数是用来调整歌曲信息播放过程中歌词的显示方式、显示颜色的,同时也用来协助歌曲信息 与歌词的准确同步,歌词参数包括但不限于各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间及各句歌词的显示颜色。
进一步地,根据上述描述可以看出,实际上预设歌词格式是包括标识信息部分与歌词主体部分两部分的,标识显示信息部分包括歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者、歌曲长度、歌曲标识、歌曲哈希值、歌词延迟值及歌词总行数等等,歌词主体部分包括歌词、各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间及各句歌词的显示颜色等等,其中,预设歌词格式如图2所示。
其中,图2中歌词主体部分的“W”为本句歌词的演唱者标识,表示女声,此处也可以直接使用演唱者名字作为演唱者标识,还可以使用“M”表示男声,还可以使用“C”表示合唱;2000表示本句歌词的起始时间,500表示本句歌词的持续时间,“苍”字前面的2000表示本句歌词中“苍”字的起始时间,“苍”字前面的100表示本句歌词中“苍”字的持续时间,“茫”字前面的2100表示本句歌词中“茫”字的起始时间,“茫”字前面的100表示本句歌词中“茫”字的持续时间,“的”字前面的2200表示本句歌词中“的”字的起始时间,“的”字前面的100表示本句歌词中“的”字的持续时间,本句歌词最后的“RGB”表示本句歌词的显示颜色,该“RGB”也可以省略,如果省略表示本句歌词的显示颜色与前一句歌词的显示颜色相同。
对于本实现方式,通过基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,使得在播放歌曲信息的同时,不仅能够根据歌曲的进度以及每个字的持续时间逐字染色,提高歌曲播放进度与歌词染色进度的同步性,而且能够动态地调整每句歌词的显示颜色,另外,还可以个性化地在每句歌词前面对应显示歌曲演唱者或歌曲演唱组合的标识信息,满足了用户的多样化需求,提升了用户体验。
本申请实施例提供了另一种可能的实现方式,其中,
在步骤S130之前还包括步骤S121(图中未标注)、步骤S122(图中 未标注)其中,
步骤S121:根据预定哈希算法,计算歌曲信息的第一哈希值;
步骤S122:检测第一哈希值与歌曲哈希值是否相同,如果相同,则允许对歌曲信息进行播放。
具体地,基于预设歌词格式对原始歌词信息进行解析包括:
根据预设歌词格式,确定相应的正则表达式;
根据正则表达式对原始歌词信息进行解析,以获取包括标识信息部分与歌词主体的目标歌词信息。
进一步地,当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息,包括:
当检测到歌曲信息的播放指令时,显示标识显示信息以及歌词。
进一步地,当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息,包括:
根据歌曲信息的当前播放时间以及歌词参数,确定与当前播放时间相对应的目标歌词的显示方式;
根据显示方式,对目标歌词进行显示。
进一步地,根据显示方式对目标歌词进行显示包括以下至少一项:
显示目标歌词的演唱者标识;
根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色。
下面对本实现方式中的歌词显示处理方法进行详细介绍:
具体地,在获取到待播放曲目的歌曲信息之后,根据预定哈希算法,计算该获取到的歌曲信息的第一哈希值,接着检测该第一哈希值与基于预设歌词格式对原始歌词信息进行解析得到的歌曲哈希值是否相同,如果相同,则说明获取到了待播放曲目的完整歌曲信息,此时可以对该歌曲信息进行播放,如果不相同,则说明获取到的待播放曲目的歌曲信息不完整,此时不能对该歌曲信息进行播放,即相当于对获取到的待播放曲目的歌曲信息进行完整性校验。
进一步地,在基于预设歌词格式对原始歌词信息进行解析的过程中, 可以根据相应的正则表达式生成一个匹配模型,通过该匹配模型对原始歌词信息进行解析,即从获取到的原始歌词信息的原始句开始,当解析到歌曲标识时,将该解析到的歌曲标识赋值给预设歌词格式中的歌曲标识,当解析到歌曲名称时,将该解析到的歌曲名称赋值给预设歌词格式中的歌曲名称,按照这种解析、赋值的逻辑,一直对原始歌词信息进行解析,直至完成全部的原始歌词信息的解析,从而得到符合预设歌词格式的目标歌词信息,即得到待播放歌曲的歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者、歌曲长度、歌曲标识、歌曲哈希值、歌词延迟值、歌词总行数、歌词、各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间及各句歌词的显示颜色等。
进一步地,当用户通过触发该曲目的“开始”触控按键对该曲目的歌曲信息进行播放时,即客户端检测到歌曲信息的播放指令时,显示符合预设歌词格式的目标歌词信息,即显示标识显示信息以及歌词,换言之,一旦检测到歌曲信息的播放指令,即刻显示相应的歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者及歌曲长度等标识显示信息与歌词。
进一步地,当用户通过触发该曲目的“开始”触控按键对该曲目的歌曲信息进行播放时,可以根据该歌曲信息的当前播放时间以及各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、各句歌词的显示颜色等歌词参数,确定与当前播放时间相对应的目标歌词的显示方式,并根据该显示方式,对目标歌词进行显示,例如显示目标歌词的演唱者标识(比如W、M、C等)、根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色(比如红色、蓝色、绿色等)等。
对于本实现方式,一方面,确保了获取到的待播放曲目的歌曲信息的完整性,另一方面,不仅可以根据歌曲信息的播放进度对相应歌词逐字染色,而且能够动态地调整每句歌词的显示颜色,提升了用户体验。
实施例二
图3为本申请实施例提供的一种歌词显示处理装置的结构示意图,如 图3所示,该装置30可以包括获取模块31、解析模块32与显示模块33,其中,
获取模块31用于获取待播放曲目的歌曲信息与原始歌词信息;
解析模块32用于基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分;
显示模块33用于当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
具体地,标识信息部分包括标识显示信息及标识参数;
标识显示信息包括以下至少一项:歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者和歌曲长度;
标识参数包括以下至少一项:歌曲标识、歌曲哈希值、歌词延迟值和歌词总行数;
歌词主体部分包括歌词及歌词参数;
歌词参数包括以下至少一项:各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、以及各句歌词的显示颜色。
进一步地,该装置还包括计算模块34与检测模块35,如图4所示,其中,
计算模块34用于根据预定哈希算法,计算歌曲信息的第一哈希值;
检测模块35用于检测第一哈希值与歌曲哈希值是否相同,并当相同时,允许对歌曲信息进行播放。
进一步地,解析模块32包括第一确定子模块321与解析子模块322,如图4所示,其中,
第一确定子模块321用于根据预设歌词格式,确定相应的正则表达式;
解析子模块322用于根据正则表达式对原始歌词信息进行解析,以获取包括标识信息部分与歌词主体的目标歌词信息。
进一步地,显示模块33被配置成:当检测到歌曲信息的播放指令时,显示标识显示信息以及歌词。
进一步地,显示模块33包括第二确定子模块331与显示子模块332,如图4所示,其中,
第二确定子模块331用于根据歌曲信息的当前播放时间以及歌词参数,确定与当前播放时间相对应的目标歌词的显示方式;
显示子模块332用于根据显示方式,对目标歌词进行显示。
进一步地,显示子模块332被配置成:显示目标歌词的演唱者标识;和/或,用于根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色。
实施例三
下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图。本申请实施例中的终端设备可以包括但不限于诸如移动电话机、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机存取存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或 具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本申请实施例的方法中限定的上述功能。
需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个 程序被该电子设备执行时,使得该电子设备:获取待播放曲目的歌曲信息与原始歌词信息;接着基于预设歌词格式,对原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,预设歌词格式包括标识信息部分与歌词主体部分;接着当检测到播放歌曲信息时,根据歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方 案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
本申请实施例提供的计算机可读存储介质适用于上述方法的任一实施例。在此不再赘述。
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干修改和润饰,这些修改和润饰也应视为在本申请的范围内。

Claims (10)

  1. 一种歌词显示处理方法,包括:
    获取待播放曲目的歌曲信息与原始歌词信息;
    基于预设歌词格式,对所述原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,所述预设歌词格式包括标识信息部分与歌词主体部分;
    当检测到播放所述歌曲信息时,根据所述歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
  2. 根据权利要求1所述的歌词显示处理方法,其中,所述标识信息部分包括标识显示信息及标识参数;
    所述标识显示信息包括以下至少一项:歌曲名称、歌曲演唱者或歌曲演唱组合、歌曲的上传作者和歌曲长度;
    所述标识参数包括以下至少一项:歌曲标识、歌曲哈希值、歌词延迟值和歌词总行数;
    所述歌词主体部分包括歌词及歌词参数;
    所述歌词参数包括以下至少一项:各句歌词的演唱者标识、各句歌词的起始时间与持续时间、各句歌词中每个字的起始时间与持续时间、以及各句歌词的显示颜色。
  3. 根据权利要求2所述的歌词显示处理方法,其中,在播放所述歌曲信息之前,
    根据预定哈希算法,计算所述歌曲信息的第一哈希值;
    检测所述第一哈希值与所述歌曲哈希值是否相同;
    如果相同,则允许对所述歌曲信息进行播放。
  4. 根据权利要求2所述的歌词显示处理方法,其中,基于预设歌词格式对所述原始歌词信息进行解析包括:
    根据所述预设歌词格式,确定相应的正则表达式;
    根据所述正则表达式对所述原始歌词信息进行解析,以获取包括标识信息部分与歌词主体的目标歌词信息。
  5. 根据权利要求2所述的歌词显示处理方法,其中,当检测到播放所述歌曲信息时根据所述歌曲信息的当前播放时间同步显示与当前播放时间相对应的目标歌词信息包括:
    当检测到所述歌曲信息的播放指令时,显示所述标识显示信息以及所述歌词。
  6. 根据权利要求2所述的歌词显示处理方法,其中,当检测到播放所述歌曲信息时根据所述歌曲信息的当前播放时间同步显示与当前播放时间相对应的目标歌词信息包括:
    根据所述歌曲信息的当前播放时间以及所述歌词参数,确定与当前播放时间相对应的目标歌词的显示方式;
    根据所述显示方式,对所述目标歌词进行显示。
  7. 根据权利要求6所述的歌词显示处理方法,其中,所述根据所述显示方式对所述目标歌词进行显示包括以下至少一项:
    显示目标歌词的演唱者标识;
    根据目标歌词的显示颜色以及目标歌词中每个字的起始时间与持续时间,动态地调整目标歌词中各个字的显示颜色。
  8. 一种歌词显示处理装置,包括:
    获取模块,用于获取待播放曲目的歌曲信息与原始歌词信息;
    解析模块,用于基于预设歌词格式,对所述原始歌词信息进行解析,得到符合预设歌词格式的目标歌词信息,所述预设歌词格式包括标识信息部分与歌词主体部分;
    显示模块,用于当检测到播放所述歌曲信息时,根据所述歌曲信息的当前播放时间,同步显示与当前播放时间相对应的目标歌词信息。
  9. 一种电子设备,包括存储器和处理器,所述存储器上存储有计算机程序,所述处理器执行所述计算机程序时实现权利要求1-7中任一项所述的歌词显示处理方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被计算机执行时实现权利要求1-7中任一项所述的歌词显示处理方法。
PCT/CN2018/125416 2018-11-30 2018-12-29 歌词显示处理方法、装置、电子设备及计算机可读存储介质 WO2020107626A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811457975.1 2018-11-30
CN201811457975.1A CN109543064B (zh) 2018-11-30 2018-11-30 歌词显示处理方法、装置、电子设备及计算机存储介质

Publications (1)

Publication Number Publication Date
WO2020107626A1 true WO2020107626A1 (zh) 2020-06-04

Family

ID=65851894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125416 WO2020107626A1 (zh) 2018-11-30 2018-12-29 歌词显示处理方法、装置、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN109543064B (zh)
WO (1) WO2020107626A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024084049A2 (en) 2022-10-20 2024-04-25 Cysbio Aps Genetically modified host cells producing l-serine

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087122A (zh) * 2019-05-06 2019-08-02 北京字节跳动网络技术有限公司 用于处理信息的系统、方法和装置
CN110232135B (zh) * 2019-06-13 2023-08-11 广州酷狗计算机科技有限公司 歌曲播放方法及装置、终端、存储介质
CN111107383B (zh) * 2019-12-03 2023-02-17 广州方硅信息技术有限公司 视频处理方法、装置、设备及存储介质
CN111309964A (zh) * 2020-01-20 2020-06-19 福建凯米网络科技有限公司 一种实时替换歌词的方法、装置和介质
CN111339350B (zh) * 2020-03-27 2023-11-28 腾讯音乐娱乐科技(深圳)有限公司 数据处理方法、装置、存储介质及电子设备
CN111859014A (zh) * 2020-06-29 2020-10-30 维沃移动通信有限公司 数据标注方法及装置
CN112037741A (zh) * 2020-08-27 2020-12-04 深圳创维-Rgb电子有限公司 K歌方法、装置、设备及存储介质
CN112347298A (zh) * 2020-11-13 2021-02-09 广州酷狗计算机科技有限公司 文字信息显示方法、装置、终端及存储介质
CN112380378B (zh) * 2020-11-17 2022-09-02 北京字跳网络技术有限公司 歌词特效展示方法、装置、电子设备及计算机可读介质
CN112423107B (zh) * 2020-11-18 2022-05-17 北京字跳网络技术有限公司 歌词视频展示方法、装置、电子设备及计算机可读介质
CN112184861B (zh) * 2020-12-01 2021-07-30 成都极米科技股份有限公司 歌词编辑、显示方法、装置及存储介质
CN112699269A (zh) * 2020-12-30 2021-04-23 北京达佳互联信息技术有限公司 歌词显示方法、装置、电子设备、计算机可读存储介质
CN112866224B (zh) * 2021-01-12 2022-10-14 广州橙行智动汽车科技有限公司 一种数据处理方法和装置
CN114296667A (zh) * 2021-03-11 2022-04-08 海信视像科技股份有限公司 一种显示设备
CN114339081A (zh) * 2021-12-22 2022-04-12 腾讯音乐娱乐科技(深圳)有限公司 一种字幕生成方法、电子设备及计算机可读存储介质
CN115167966A (zh) * 2022-07-19 2022-10-11 北京字跳网络技术有限公司 基于歌词的信息提示方法、装置、设备、介质及产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127210A (zh) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 实现歌曲播放过程中歌词同步的方法和装置
CN102013265A (zh) * 2010-08-19 2011-04-13 上海酷吧信息技术有限公司 一种解析歌词并使其与歌曲同步播放的装置及方法
CN103137167A (zh) * 2013-01-21 2013-06-05 青岛海信宽带多媒体技术有限公司 播放音乐的方法及音乐播放器
CN104267903A (zh) * 2014-09-24 2015-01-07 广州酷狗计算机科技有限公司 多媒体歌词信息显示方法及装置
US9305530B1 (en) * 2014-09-30 2016-04-05 Amazon Technologies, Inc. Text synchronization with audio

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071422B (zh) * 2006-06-15 2010-10-13 腾讯科技(深圳)有限公司 一种音乐文件搜索处理系统及方法
CN101206900B (zh) * 2007-11-23 2010-06-09 深圳市同洲电子股份有限公司 一种歌词显示的方法及系统
CN101984490B (zh) * 2010-11-23 2012-06-27 亿览在线网络技术(北京)有限公司 一种逐字同步的歌词文件的生成方法及系统
US20140074663A1 (en) * 2012-09-09 2014-03-13 Apple Inc. Integrating purchase history and metadata across devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127210A (zh) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 实现歌曲播放过程中歌词同步的方法和装置
CN102013265A (zh) * 2010-08-19 2011-04-13 上海酷吧信息技术有限公司 一种解析歌词并使其与歌曲同步播放的装置及方法
CN103137167A (zh) * 2013-01-21 2013-06-05 青岛海信宽带多媒体技术有限公司 播放音乐的方法及音乐播放器
CN104267903A (zh) * 2014-09-24 2015-01-07 广州酷狗计算机科技有限公司 多媒体歌词信息显示方法及装置
US9305530B1 (en) * 2014-09-30 2016-04-05 Amazon Technologies, Inc. Text synchronization with audio

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024084049A2 (en) 2022-10-20 2024-04-25 Cysbio Aps Genetically modified host cells producing l-serine

Also Published As

Publication number Publication date
CN109543064A (zh) 2019-03-29
CN109543064B (zh) 2020-12-18

Similar Documents

Publication Publication Date Title
WO2020107626A1 (zh) 歌词显示处理方法、装置、电子设备及计算机可读存储介质
WO2020253806A1 (zh) 展示视频的生成方法、装置、设备及存储介质
CN107871500B (zh) 一种播放多媒体的方法和装置
KR20220091500A (ko) 음악 포인트를 표시하는 방법 및 장치, 전자 장치 및 매체
WO2022095475A1 (zh) 音频播放方法、装置、电子设备及存储介质
WO2020259133A1 (zh) 录制热门片段方法、装置、电子设备和可读介质
WO2016188211A1 (zh) 音频处理方法、装置及系统
US11511200B2 (en) Game playing method and system based on a multimedia file
CN111292717B (zh) 语音合成方法、装置、存储介质和电子设备
CN111798821B (zh) 声音转换方法、装置、可读存储介质及电子设备
JP7046134B2 (ja) 情報を出力するための方法および装置
JP2015510602A (ja) 補助情報の再生の管理
WO2022257797A1 (zh) 目标内容的显示方法、装置、设备、可读存储介质及产品
US20230396573A1 (en) Systems and methods for media content communication
WO2021259300A1 (zh) 音效添加方法和装置、存储介质和电子设备
WO2020259130A1 (zh) 精选片段处理方法、装置、电子设备及可读介质
WO2022127620A1 (zh) 语音唤醒方法、装置、电子设备及存储介质
WO2021057740A1 (zh) 视频生成方法、装置、电子设备和计算机可读介质
US9286943B2 (en) Enhancing karaoke systems utilizing audience sentiment feedback and audio watermarking
US11886484B2 (en) Music playing method and apparatus based on user interaction, and device and storage medium
WO2023051246A1 (zh) 视频录制方法、装置、设备及存储介质
US20230307004A1 (en) Audio data processing method and apparatus, and device and storage medium
WO2020224294A1 (zh) 用于处理信息的系统、方法和装置
US20160255025A1 (en) Systems, methods and computer readable media for communicating in a network using a multimedia file
WO2020233143A1 (zh) 播放进度显示方法、装置、电子设备和存储介质

Legal Events

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

Ref document number: 18941776

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/09/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18941776

Country of ref document: EP

Kind code of ref document: A1