CN111092991A - Lyric display method and device and computer storage medium - Google Patents

Lyric display method and device and computer storage medium Download PDF

Info

Publication number
CN111092991A
CN111092991A CN201911326202.4A CN201911326202A CN111092991A CN 111092991 A CN111092991 A CN 111092991A CN 201911326202 A CN201911326202 A CN 201911326202A CN 111092991 A CN111092991 A CN 111092991A
Authority
CN
China
Prior art keywords
original
timestamp
lyrics
display
multimedia stream
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
CN201911326202.4A
Other languages
Chinese (zh)
Other versions
CN111092991B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911326202.4A priority Critical patent/CN111092991B/en
Publication of CN111092991A publication Critical patent/CN111092991A/en
Application granted granted Critical
Publication of CN111092991B publication Critical patent/CN111092991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files

Abstract

The application discloses a lyric display method and device and a computer storage medium, and belongs to the technical field of electronics. The method comprises the following steps: acquiring a lyric file corresponding to a multimedia stream, wherein the lyric file comprises lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing speed, and the multimedia stream comprises at least one of an audio stream and a video stream; determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream; and displaying the lyrics according to the target display time stamp. The method and the device realize synchronous display of the dynamic lyrics and the multimedia stream, and improve playing flexibility of a player on the terminal.

Description

Lyric display method and device and computer storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a lyric display method and apparatus, and a computer storage medium.
Background
With the development of electronic technology, the playing functions of various players on the terminal are more and more abundant. The existing player can provide an audio and video playing function, a function of displaying dynamic lyrics in combination with audio and video, and a playing speed doubling adjusting function of the audio and video.
However, when the terminal displays the audio and video and the dynamic lyrics in combination through the player, the synchronous display of the dynamic lyrics and the audio and video can be realized only when the player plays the audio and video at the original playing speed, so that the playing flexibility of the player is low.
Disclosure of Invention
The application provides a lyric display method and device and a computer storage medium, which can solve the problem of low playing flexibility of a player in the related art. The technical scheme is as follows:
in a first aspect, a lyric display method is provided, the method comprising:
acquiring a lyric file corresponding to a multimedia stream, wherein the lyric file comprises lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing speed, and the multimedia stream comprises at least one of an audio stream and a video stream;
determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream;
and displaying the lyrics according to the target display time stamp.
Optionally, the determining, according to the current playback multiple speed and the original playback multiple speed of the multimedia stream, a target display timestamp of the lyric based on the original display timestamp includes:
determining the playing multiple of the multimedia stream, wherein the playing multiple is equal to the ratio of the original playing multiple speed to the current playing multiple speed;
and determining the target display time stamp according to the playing multiple and the original display time stamp.
Optionally, the determining the target display timestamp according to the playing multiple and the original display timestamp includes:
determining a product of the playback multiple and the original start timestamp as the target start timestamp;
determining a product of the playback multiple and the original end timestamp as the target end timestamp.
Optionally, the determining, according to the current playback multiple speed and the original playback multiple speed of the multimedia stream, a target display timestamp of the lyric based on the original display timestamp includes:
and when the current playing double speed is different from the original playing double speed, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed of the multimedia stream and the original playing double speed.
In a second aspect, there is provided a lyrics display apparatus, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a lyric file corresponding to a multimedia stream, the lyric file comprises lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing double speed, and the multimedia stream comprises at least one of an audio stream and a video stream;
the determining module is used for determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream;
and the display module is used for displaying the lyrics according to the target display time stamp.
Optionally, the determining module includes:
a first determining submodule, configured to determine a play multiple of the multimedia stream, where the play multiple is equal to a ratio of the original play multiple speed to the current play multiple speed;
and the second determining submodule is used for determining the target display time stamp according to the playing multiple and the original display time stamp.
Optionally, the original display timestamp comprises an original start timestamp and an original end timestamp of the lyric, the target display timestamp comprises a target start timestamp and a target end timestamp of the lyric, and the second determining submodule is configured to:
determining a product of the playback multiple and the original start timestamp as the target start timestamp;
determining a product of the playback multiple and the original end timestamp as the target end timestamp.
Optionally, the determining module is configured to:
and when the current playing double speed is different from the original playing double speed, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed of the multimedia stream and the original playing double speed.
In a third aspect, there is provided a lyric display apparatus comprising: a processor and a memory;
the memory for storing a computer program, the computer program comprising program instructions;
the processor is configured to invoke the computer program to implement the lyric display method according to any one of the first aspect.
In a fourth aspect, a computer storage medium is provided, the computer storage medium having stored thereon instructions that, when executed by a processor, implement the lyric display method according to any one of the first aspects.
The beneficial effect that technical scheme that this application provided brought includes:
after the terminal acquires the lyric file corresponding to the multimedia stream, the terminal can determine a target display time stamp of the lyrics based on the original display time stamp of the lyrics according to the current playing speed multiple and the original playing speed multiple of the multimedia stream, and then display the lyrics according to the target display time stamp. When the current playing speed of the multimedia stream is different from the original playing speed, the terminal can display the lyrics according to the target display time stamp of the lyrics matched with the current playing speed, so that the synchronous display of the dynamic lyrics and the multimedia stream is realized, and the playing flexibility of a player on the terminal is improved.
Drawings
Fig. 1 is a schematic flowchart of a lyric display method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating another lyric display method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface for displaying lyrics according to an original display timestamp provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for displaying lyrics according to a target display timestamp, according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a lyric display apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a determination module provided in an embodiment of the present application;
fig. 7 is a block diagram of a structure of a lyric display apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a lyric display method according to an embodiment of the present application. The method can be applied to a terminal. As shown in fig. 1, the method includes:
step 101, a lyric file corresponding to a multimedia stream is obtained, wherein the lyric file comprises lyrics and an original display time stamp corresponding to the lyrics when the multimedia stream is played at an original playing double speed, and the multimedia stream comprises at least one of an audio stream and a video stream.
And 102, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream.
And 103, displaying the lyrics according to the target display time stamp.
To sum up, according to the lyric display method provided by the embodiment of the application, after the terminal acquires the lyric file corresponding to the multimedia stream, the terminal can determine the target display timestamp of the lyric based on the original display timestamp of the lyric according to the current playing multiple speed and the original playing multiple speed of the multimedia stream, and then display the lyric according to the target display timestamp. When the current playing speed of the multimedia stream is different from the original playing speed, the terminal can display the lyrics according to the target display time stamp of the lyrics matched with the current playing speed, so that the synchronous display of the dynamic lyrics and the multimedia stream is realized, and the playing flexibility of a player on the terminal is improved.
Fig. 2 is a schematic flow chart of another lyric display method according to an embodiment of the present application. The method can be applied to a terminal. As shown in fig. 2, the method includes:
step 201, obtaining a multimedia stream, where the multimedia stream includes at least one of an audio stream and a video stream.
Alternatively, the terminal may download the multimedia stream from a web page or a client, for example, the terminal may download the multimedia stream from an audio-video website or music application software, etc. Alternatively, the terminal may receive the multimedia stream transmitted to the terminal by other terminals. Alternatively, the terminal may record the multimedia stream, for example, the terminal may record audio and video through the karaoke software to obtain the multimedia stream. Alternatively, the terminal may obtain the multimedia stream locally.
Step 202, obtaining a lyric file corresponding to the multimedia stream.
The lyric file comprises lyrics and an original display time stamp corresponding to the lyrics when the multimedia stream is played at the original playing double speed. Optionally, the original display timestamp comprises an original start timestamp and an original end timestamp of the lyrics. The original start timestamp refers to a time point at which the lyrics start to be displayed correspondingly, and the original end timestamp refers to a time point at which the lyrics end to be displayed.
The lyrics in the embodiment of the application can refer to a word or a word in words and sentences of vocal music works. For example, the lyric in the embodiment of the present application may be a phrase "glowwire at a lower point of a poplar", and the original start timestamp is 00:21.93, and the original end timestamp is 00: 25.97. Alternatively, the lyrics in the embodiment of the present application may be a word "dot" with an original start timestamp of 00:26.78 and an original end timestamp of 00: 27.96. Still alternatively, the lyrics in the embodiment of the present application may be a word "fire", with an original start timestamp of 00:30.13 and an original end timestamp of 00: 30.79.
Step 203, when the terminal plays the multimedia stream, acquiring the current playing speed of the multimedia stream.
Alternatively, the terminal may play the multimedia stream through a player of the terminal itself. Alternatively, the terminal may play the multimedia stream through an installed player. Or, the terminal can play the multimedia stream through a player embedded in the webpage. In the embodiment of the application, the multimedia stream played through the terminal can comprise movie audio and video files, song audio files, audio and video files recorded through karaoke software and the like.
Optionally, there are various ways for triggering the terminal to obtain the current playing speed of the multimedia stream, and the following two ways are taken as examples in this embodiment of the application for description.
In the first mode, when the terminal receives a play speed-doubling adjustment instruction, the current play speed-doubling of the multimedia stream is acquired. Optionally, when the terminal receives a touch operation for the play double-speed adjustment option, the terminal determines that a play double-speed adjustment instruction is received. The touch operation may be one or more of a long press operation, a double click operation, or a slide operation. Alternatively, when the terminal receives a voice including a keyword for instructing to adjust a playback multiple speed, which may be "fast forward 2 times" or "slow playback 0.5 times" or the like, the terminal determines that a playback multiple speed adjustment instruction is received.
In the second mode, the terminal periodically obtains the current playing speed of the multimedia stream in the process of playing the multimedia stream. Alternatively, the terminal may periodically acquire the current playback speed of the multimedia stream at 3 second intervals. Alternatively, the terminal may periodically acquire the current playback speed of the multimedia stream at time intervals of 10 seconds. The embodiment of the present application does not limit the acquisition period of the terminal.
And step 204, determining a target display time stamp of the lyrics based on the original display time stamp of the lyrics according to the current playing double speed of the multimedia stream and the original playing double speed of the multimedia stream.
Optionally, the implementation process of step 204 includes the following steps 2041 to 2042:
in step 2041, the terminal determines a playing multiple of the multimedia stream, where the playing multiple is equal to a ratio of an original playing multiple speed to a current playing multiple speed.
Illustratively, the original playback speed is M, the current playback speed is N, and the playback multiple is K, then K equals M/N, where M, N and K are both positive numbers. The original playback speed is typically 1.
In step 2042, a target display timestamp of the lyrics is determined based on the playback multiple and the original display timestamp.
Optionally, when the original display timestamp comprises an original start timestamp and an original end timestamp of the lyrics, the target display timestamp comprises a target start timestamp and a target end timestamp of the lyrics.
Optionally, the determining, by the terminal, the target display timestamp according to the play multiple and the original display timestamp may include: the terminal determines the product of the playing multiple and the original starting timestamp as a target starting timestamp; the product of the play multiple and the original end timestamp is determined as the target end timestamp.
Illustratively, the original playing speed of the multimedia stream is 1, and the current playing speed is 0.5, then the playing multiple is 2; the lyric "glowworm fire at the lower point of the poplar" has an original start timestamp of 00:21.93 and an original end timestamp of 00:25.97, and thus has a target start timestamp of 00:43.86 and a target end timestamp of 00: 51.94.
And step 205, displaying the lyrics according to the target display time stamp.
Illustratively, fig. 3 and fig. 4 are schematic diagrams of an interface for displaying lyrics according to an original display time stamp and an interface for displaying lyrics according to a target display time stamp, respectively, provided by an embodiment of the present application. As shown in fig. 3, the terminal plays the multimedia stream at the original playing multiple speed of the multimedia stream, and at this time, the lyric "glowworm at the lower point of the poplar" is displayed synchronously with the multimedia stream by using the original display time stamp, the original start time stamp is displayed as 00:21.93, and the original end time stamp is displayed as 00: 25.97. As shown in fig. 4, the terminal plays the multimedia stream at 0.5 times of the original playing speed of the multimedia stream, and at this time, the lyric "glowworm fire at the lower point of the poplar" is displayed in synchronization with the multimedia stream using the target display time stamp, the target start time stamp is displayed as 00:43.86, and the target end time stamp is displayed as 00: 51.94. With continued reference to fig. 4, when the terminal plays the multimedia stream at a non-original playing speed, the current playing speed N of the multimedia stream may also be displayed on the display interface.
It should be noted that the order of the steps of the lyric display method provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, for example, before step 204, the terminal may determine whether the current playing speed multiple of the multimedia stream is the same as the original playing speed multiple, and when the terminal determines that the current playing speed multiple of the multimedia stream is different from the original playing speed multiple, the terminal executes step 204 and step 205; when the terminal determines that the current playback speed of the multimedia stream is the same as the original playback speed, the terminal displays the lyrics according to the original display time stamp, i.e., the terminal does not perform the above-described steps 204 and 205. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
Alternatively, the steps 202 to 204 may be executed by a server. The implementation process of the lyric display method includes the following steps S1 to S4:
in step S1, the server acquires a lyric file corresponding to the multimedia stream.
Optionally, after acquiring the multimedia stream and the lyric file corresponding to the multimedia stream, the terminal may send the lyric file corresponding to the multimedia stream to the server. Or, after acquiring the multimedia stream, the terminal may send the identifier of the multimedia stream to the server, and the server downloads or locally acquires the lyric file corresponding to the multimedia stream according to the identifier of the multimedia stream. The content contained in the lyric file may refer to the related content in step 202, which is not described herein again in this embodiment of the present application.
In step S2, when the multimedia stream is being played on the terminal, the terminal transmits the original playback multiple speed and the current playback multiple speed of the multimedia stream to the server.
Optionally, when the current playing multiple speed of the multimedia stream played on the terminal is different from the original playing multiple speed of the multimedia stream, the terminal sends the original playing multiple speed and the current playing multiple speed of the multimedia stream to the server; or, the terminal periodically sends the original playing multiple speed and the current playing multiple speed of the multimedia stream to the server, and the server judges whether the current playing multiple speed of the multimedia stream is the same as the original playing multiple speed of the multimedia stream.
In step S3, the server determines a target display time stamp of the lyrics based on the original display time stamp of the lyrics, the original playback multiple speed of the multimedia stream, and the current playback multiple speed of the multimedia stream.
Optionally, the implementation process of determining the target display time stamp of the lyrics by the server may refer to the implementation process of determining the target display time stamp of the lyrics by the terminal in step 204, which is not described herein again in this embodiment of the present application.
In step S4, the server transmits a target display time stamp of the lyrics to the terminal.
In step S5, the terminal displays the lyrics according to the target display time stamp.
The foregoing merely exemplifies the transmission timing of data between the terminal and the server, and any transmission timing that can realize the display of the final lyrics should be included in the present implementation step, which is not limited in the embodiment of the present application.
For example, the server for performing the above method may be one server, or a server cluster composed of several servers, or a cloud computing service center, and the like, which is not limited in this embodiment of the application.
To sum up, according to the lyric display method provided by the embodiment of the application, after the terminal acquires the multimedia stream and the corresponding lyric file thereof, the current playing double speed of the multimedia stream is acquired, then the target display timestamp of the lyric is determined based on the original display timestamp of the lyric according to the current playing double speed and the original playing double speed of the multimedia stream, and then the lyric is displayed according to the target display timestamp. When the current playing speed of the multimedia stream is different from the original playing speed, the terminal can display the lyrics according to the target display time stamp of the lyrics matched with the current playing speed, so that the synchronous display of the dynamic lyrics and the multimedia stream is realized, and the playing flexibility of a player on the terminal is improved.
Fig. 5 is a schematic structural diagram of a lyric display device according to an embodiment of the present application. The apparatus can be applied to a terminal. As shown in fig. 5, the apparatus 50 includes:
the obtaining module 501 is configured to obtain a lyric file corresponding to a multimedia stream, where the lyric file includes lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing speed, and the multimedia stream includes at least one of an audio stream and a video stream.
The determining module 502 is configured to determine a target display time stamp of the lyrics based on the original display time stamp according to the current playing multiple speed and the original playing multiple speed of the multimedia stream.
And a display module 503, configured to display the lyrics according to the target display timestamp.
To sum up, according to the lyric display device provided in the embodiment of the present application, after the terminal obtains the lyric file corresponding to the multimedia stream through the obtaining module, the determining module may determine the target display timestamp of the lyric based on the original display timestamp of the lyric according to the current playing multiple speed and the original playing multiple speed of the multimedia stream, and then the display module displays the lyric according to the target display timestamp. When the current playing speed of the multimedia stream is different from the original playing speed, the terminal can display the lyrics according to the target display time stamp of the lyrics matched with the current playing speed, so that the synchronous display of the dynamic lyrics and the multimedia stream is realized, and the playing flexibility of a player on the terminal is improved.
Optionally, as shown in fig. 6, the determining module 502 includes:
the first determining submodule 5021 is configured to determine a playing multiple of the multimedia stream, where the playing multiple is equal to a ratio of an original playing multiple speed to a current playing multiple speed.
The second determining sub-module 5022 is configured to determine a target display timestamp according to the play multiple and the original display timestamp.
Optionally, the original display timestamp comprises an original start timestamp and an original end timestamp of the lyrics, the target display timestamp comprises a target start timestamp and a target end timestamp of the lyrics, and the second determining submodule is configured to: determining the product of the playing multiple and the original starting timestamp as a target starting timestamp; the product of the play multiple and the original end timestamp is determined as the target end timestamp.
Optionally, the determining module is configured to: and when the current playing speed is different from the original playing speed, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing speed and the original playing speed of the multimedia stream.
To sum up, according to the lyric display device provided in the embodiment of the present application, after the terminal obtains the lyric file corresponding to the multimedia stream through the obtaining module, the determining module may determine the target display timestamp of the lyric based on the original display timestamp of the lyric according to the current playing multiple speed and the original playing multiple speed of the multimedia stream, and then the display module displays the lyric according to the target display timestamp. When the current playing speed of the multimedia stream is different from the original playing speed, the terminal can display the lyrics according to the target display time stamp of the lyrics matched with the current playing speed, so that the synchronous display of the dynamic lyrics and the multimedia stream is realized, and the playing flexibility of a player on the terminal is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The embodiment of the application provides a lyric display device, includes: a processor and a memory.
A memory for storing a computer program, the computer program comprising program instructions; and a processor for calling a computer program to implement the lyric display method shown in fig. 1 or fig. 2.
Embodiments of the present application also provide a computer storage medium having instructions stored thereon, which when executed by a processor, implement the lyric display method as shown in fig. 1 or fig. 2.
Fig. 7 is a block diagram illustrating a structure of a lyric display apparatus according to an exemplary embodiment of the present application. The lyric display apparatus may be a terminal 700. The terminal 700 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. A terminal may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 700 includes: a processor 701 and a memory 702.
The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement the lyric display method provided by the method embodiments herein.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning component 708, and a power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this application.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to capture touch signals on or over the surface of the display screen 705. The touch signal may be input to the processor 701 as a control signal for processing. At this point, the display 705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 705 may be one, providing the front panel of the terminal 700; in other embodiments, the display 705 can be at least two, respectively disposed on different surfaces of the terminal 700 or in a folded design; in still other embodiments, the display 705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display 705 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing or inputting the electric signals to the radio frequency circuit 704 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 707 may also include a headphone jack.
The positioning component 708 is used to locate the current geographic position of the terminal 700 to implement navigation or LBS (location based Service). The positioning component 708 can be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 709 is provided to supply power to various components of terminal 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 709 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the touch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, the processor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel of terminal 700 and/or an underlying layer of touch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and the processor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the touch display 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting a fingerprint of a user, and the processor 701 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the identity of the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 714 may be disposed on the front, back, or side of the terminal 700. When a physical button or a vendor Logo is provided on the terminal 700, the fingerprint sensor 714 may be integrated with the physical button or the vendor Logo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the touch display 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display 705 is turned down. In another embodiment, processor 701 may also dynamically adjust the shooting parameters of camera assembly 706 based on the ambient light intensity collected by optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, the processor 701 controls the touch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, the processor 701 controls the touch display 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting of terminal 700 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The above description is only exemplary of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method for displaying lyrics, the method comprising:
acquiring a lyric file corresponding to a multimedia stream, wherein the lyric file comprises lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing speed, and the multimedia stream comprises at least one of an audio stream and a video stream;
determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream;
and displaying the lyrics according to the target display time stamp.
2. The method of claim 1, wherein determining the target display timestamp of the lyrics based on the original display timestamp according to the current playback speed and the original playback speed of the multimedia stream comprises:
determining the playing multiple of the multimedia stream, wherein the playing multiple is equal to the ratio of the original playing multiple speed to the current playing multiple speed;
and determining the target display time stamp according to the playing multiple and the original display time stamp.
3. The method of claim 2, wherein the original display timestamp comprises an original start timestamp and an original end timestamp of the lyrics, wherein the target display timestamp comprises a target start timestamp and a target end timestamp of the lyrics, and wherein determining the target display timestamp from the playback multiple and the original display timestamp comprises:
determining a product of the playback multiple and the original start timestamp as the target start timestamp;
determining a product of the playback multiple and the original end timestamp as the target end timestamp.
4. The method of any of claims 1 to 3, wherein determining the target display timestamp of the lyrics based on the original display timestamp according to the current playback speed and the original playback speed of the multimedia stream comprises:
and when the current playing double speed is different from the original playing double speed, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed of the multimedia stream and the original playing double speed.
5. A lyric display apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a lyric file corresponding to a multimedia stream, the lyric file comprises lyrics and an original display timestamp corresponding to the lyrics when the multimedia stream is played at an original playing double speed, and the multimedia stream comprises at least one of an audio stream and a video stream;
the determining module is used for determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed and the original playing double speed of the multimedia stream;
and the display module is used for displaying the lyrics according to the target display time stamp.
6. The apparatus of claim 5, wherein the determining module comprises:
a first determining submodule, configured to determine a play multiple of the multimedia stream, where the play multiple is equal to a ratio of the original play multiple speed to the current play multiple speed;
and the second determining submodule is used for determining the target display time stamp according to the playing multiple and the original display time stamp.
7. The apparatus of claim 6, wherein the original display timestamp comprises an original start timestamp and an original end timestamp of the lyrics, wherein the target display timestamp comprises a target start timestamp and a target end timestamp of the lyrics, and wherein the second determining submodule is configured to:
determining a product of the playback multiple and the original start timestamp as the target start timestamp;
determining a product of the playback multiple and the original end timestamp as the target end timestamp.
8. The apparatus of any of claims 5 to 7, wherein the determining module is configured to:
and when the current playing double speed is different from the original playing double speed, determining a target display time stamp of the lyrics based on the original display time stamp according to the current playing double speed of the multimedia stream and the original playing double speed.
9. A lyric display apparatus, comprising: a processor and a memory;
the memory for storing a computer program, the computer program comprising program instructions;
the processor is used for calling the computer program to realize the lyric display method according to any one of claims 1 to 4.
10. A computer storage medium having stored thereon instructions which, when executed by a processor, implement the lyric display method of any one of claims 1 to 4.
CN201911326202.4A 2019-12-20 2019-12-20 Lyric display method and device and computer storage medium Active CN111092991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911326202.4A CN111092991B (en) 2019-12-20 2019-12-20 Lyric display method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911326202.4A CN111092991B (en) 2019-12-20 2019-12-20 Lyric display method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN111092991A true CN111092991A (en) 2020-05-01
CN111092991B CN111092991B (en) 2021-09-21

Family

ID=70396245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911326202.4A Active CN111092991B (en) 2019-12-20 2019-12-20 Lyric display method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN111092991B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507147A (en) * 2020-11-30 2021-03-16 广州酷狗计算机科技有限公司 Text data display method, device, equipment and storage medium
CN112699269A (en) * 2020-12-30 2021-04-23 北京达佳互联信息技术有限公司 Lyric display method, device, electronic equipment and computer readable storage medium
CN112738607A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Playing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103572A1 (en) * 2011-12-14 2016-04-14 Microsoft Technology Licensing, Llc Collaborative media sharing
CN107801092A (en) * 2017-09-15 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of video speed playing method and device
CN107864393A (en) * 2017-11-17 2018-03-30 青岛海信电器股份有限公司 The method and device that video is shown with captioning synchronization
CN108174264A (en) * 2018-01-09 2018-06-15 武汉斗鱼网络科技有限公司 Synchronous lyrics display methods, system, device, medium and equipment
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN108769778A (en) * 2018-06-04 2018-11-06 北京搜狐新动力信息技术有限公司 A kind of display control method and device of video caption

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103572A1 (en) * 2011-12-14 2016-04-14 Microsoft Technology Licensing, Llc Collaborative media sharing
CN107801092A (en) * 2017-09-15 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of video speed playing method and device
CN107864393A (en) * 2017-11-17 2018-03-30 青岛海信电器股份有限公司 The method and device that video is shown with captioning synchronization
CN108174264A (en) * 2018-01-09 2018-06-15 武汉斗鱼网络科技有限公司 Synchronous lyrics display methods, system, device, medium and equipment
CN108419113A (en) * 2018-05-24 2018-08-17 广州酷狗计算机科技有限公司 Caption presentation method and device
CN108769778A (en) * 2018-06-04 2018-11-06 北京搜狐新动力信息技术有限公司 A kind of display control method and device of video caption

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507147A (en) * 2020-11-30 2021-03-16 广州酷狗计算机科技有限公司 Text data display method, device, equipment and storage medium
CN112738607A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Playing method, device, equipment and storage medium
CN112699269A (en) * 2020-12-30 2021-04-23 北京达佳互联信息技术有限公司 Lyric display method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111092991B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN108401124B (en) Video recording method and device
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN107908929B (en) Method and device for playing audio data
CN108538302B (en) Method and apparatus for synthesizing audio
CN108965757B (en) Video recording method, device, terminal and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN109688461B (en) Video playing method and device
CN110324689B (en) Audio and video synchronous playing method, device, terminal and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN109635133B (en) Visual audio playing method and device, electronic equipment and storage medium
CN111092991B (en) Lyric display method and device and computer storage medium
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN109451248B (en) Video data processing method and device, terminal and storage medium
CN111327928A (en) Song playing method, device and system and computer storage medium
CN112738607A (en) Playing method, device, equipment and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN113596516B (en) Method, system, equipment and storage medium for chorus of microphone and microphone
CN111081277A (en) Audio evaluation method, device, equipment and storage medium
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN107888975B (en) Video playing method, device and storage medium
CN113204672A (en) Resource display method and device, computer equipment and medium
CN112118482A (en) Audio file playing method and device, terminal and storage medium
CN109005359B (en) Video recording method, apparatus and storage medium
CN108966026B (en) Method and device for making video file

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