CN110377208B - Audio playing method, device, terminal and computer readable storage medium - Google Patents

Audio playing method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN110377208B
CN110377208B CN201910647508.3A CN201910647508A CN110377208B CN 110377208 B CN110377208 B CN 110377208B CN 201910647508 A CN201910647508 A CN 201910647508A CN 110377208 B CN110377208 B CN 110377208B
Authority
CN
China
Prior art keywords
slider
audio
moving
playing
playing page
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.)
Active
Application number
CN201910647508.3A
Other languages
Chinese (zh)
Other versions
CN110377208A (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 CN201910647508.3A priority Critical patent/CN110377208B/en
Publication of CN110377208A publication Critical patent/CN110377208A/en
Application granted granted Critical
Publication of CN110377208B publication Critical patent/CN110377208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

The invention discloses an audio playing method, an audio playing device, a terminal and a computer readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: acquiring lyrics of audio playing on a currently displayed playing page; when an audio clip matched with the words in the lyrics in the audio is played, displaying a first sliding block corresponding to the words on the playing page, wherein the words are displayed on the first sliding block; moving a first slider on the playing page according to a first moving track; and when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page. The invention can combine the lyrics of the audio frequency being played to display the first slider on the playing page of the audio frequency, and the user can operate the first slider. Therefore, the dynamic display effect on the playing page of the audio can be improved in the playing process of the audio, the display mode is flexible, and the interaction form of a user is enriched.

Description

Audio playing method, device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to an audio playing method, an audio playing device, a terminal, and a computer-readable storage medium.
Background
People often perform various leisure activities to get physical and mental adjustments and relaxation. With the development of terminal technology, playing audio through a terminal is becoming a leisure activity which is favored by people.
At present, when a terminal plays an audio, in order to better express the rhythm of the audio, the terminal may analyze the audio to obtain a rhythm point of the audio, and when the rhythm point of the audio is played, display an animation on a playing page of the audio.
However, in the above method, the animation is displayed on the playing page according to the rhythm point of the audio, and the display method is single and has low flexibility.
Disclosure of Invention
The embodiment of the invention provides an audio playing method, an audio playing device, a terminal and a computer readable storage medium, which can solve the problem that the display mode of a playing interface is single in the related technology. The technical scheme is as follows:
in one aspect, an audio playing method is provided, and the method includes:
acquiring lyrics of audio playing on a currently displayed playing page; when an audio clip matched with the words in the lyrics in the audio is played, displaying a first sliding block corresponding to the words on the playing page, wherein the words are displayed on the first sliding block; moving a first slider on the playing page according to a first moving track; and when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page.
Optionally, moving the first slider on the playing page according to the first moving track includes:
acquiring a lyric to which the word belongs from the lyrics of the audio frequency as a target lyric;
acquiring the playing duration of an audio clip matched with the target lyrics in the audio;
dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and moving the first slider on the playing page at a first moving speed according to the first moving track.
Optionally, after moving the first slider on the playing page according to the first moving track, the method further includes:
acquiring a lyric to which the word belongs from the lyrics of the audio frequency as a target lyric;
determining an audio fragment matched with the target lyrics in the audio;
and when the playing of the audio clip matched with the target lyric is finished, stopping displaying the first slider on the playing page.
Optionally, after moving the first slider on the playing page according to the first moving track, the method further includes:
and when the first slider moves to the end point of the first moving track, stopping displaying the first slider on the playing page.
Optionally, the method further comprises:
when a target audio clip in the audio is played, determining the rhythm point of the target audio clip, wherein the target audio clip is an audio clip which is not matched with all words in the lyrics;
when the rhythm point of the target audio clip is played, displaying a second slider on the playing page;
moving a second slider on the playing page according to a second moving track;
and when the preset operation on the second slider is detected, stopping displaying the second slider on the playing page.
Optionally, moving the second slider on the playing page according to the second moving track includes:
acquiring the frequency of rhythm points of a target audio clip;
determining a second moving speed according to the frequency of the rhythm point of the target audio clip;
and moving the second slider on the playing page at a second moving speed according to a second moving track.
In one aspect, an audio playing apparatus is provided, the apparatus including:
the first acquisition module is used for acquiring lyrics of audio played on a currently displayed playing page;
the first display module is used for displaying a first sliding block corresponding to the words on the playing page when the audio frequency is played to the audio frequency segment matched with the words in the lyrics, and the words are displayed on the first sliding block;
the first moving module is used for moving the first slider on the playing page according to the first moving track;
and the first stop display module is used for stopping displaying the first slider on the playing page when the preset operation on the first slider is detected.
Optionally, the first moving module comprises:
the first obtaining unit is used for obtaining a lyric of the word from the lyrics of the audio frequency as a target lyric;
the second acquisition unit is used for acquiring the playing time length of an audio clip matched with the target lyrics in the audio;
the calculating unit is used for dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and the first moving unit is used for moving the first slider on the playing page at a first moving speed according to the first moving track.
Optionally, the apparatus further comprises:
the second obtaining module is used for obtaining a lyric of the word from the lyrics of the audio frequency as a target lyric;
the first determining module is used for determining an audio segment matched with the target lyric in the audio;
and the second stop display module is used for stopping displaying the first slider on the playing page when the playing of the audio clip matched with the target lyric is finished.
Optionally, the apparatus further comprises:
and the third stop display module is used for stopping displaying the first slider on the playing page when the first slider moves to the end point of the first moving track.
Optionally, the apparatus further comprises:
the second determining module is used for determining the rhythm point of a target audio clip when the target audio clip in the audio is played, wherein the target audio clip is an audio clip which is not matched with all words in the lyrics;
the second display module is used for displaying a second slider on the playing page when the rhythm point of the target audio clip is played;
the second moving module is used for moving the second slider on the playing page according to a second moving track;
and the fourth display stopping module is used for stopping displaying the second slider on the playing page when the preset operation on the second slider is detected.
Optionally, the second moving module comprises:
a third obtaining unit, configured to obtain a frequency of a rhythm point of the target audio piece;
a determining unit, configured to determine a second moving speed according to a frequency of a rhythm point of the target audio piece;
and the second moving unit is used for moving the second slider on the playing page at a second moving speed according to a second moving track.
In one aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores instructions that are loaded and executed by the processor to implement the steps of the method described above.
In one aspect, a computer-readable storage medium is provided, having stored thereon instructions, which when executed by a processor, implement the steps of the above-described method.
The technical scheme provided by the embodiment of the invention can at least bring the following beneficial effects:
and acquiring lyrics of the audio playing on the currently displayed playing page. And then, when an audio clip matched with the words in the lyrics in the audio is played, displaying a first slider corresponding to the words on the playing page, wherein the words are displayed on the first slider. And then moving the first slider on the playing page according to the first moving track. And finally, when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page. In this way, the first slider may be displayed on the playing page of the audio in combination with the lyrics of the audio being played, and the user may operate the first slider. Therefore, the dynamic display effect on the playing page of the audio can be improved in the playing process of the audio, the display mode is flexible, and the interaction form of a user is enriched.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an audio playing method according to an embodiment of the present invention;
fig. 2 is a flowchart of another audio playing method provided by the embodiment of the present invention;
FIG. 3 is a schematic view of a first slider provided in accordance with an embodiment of the present invention;
fig. 4 is a schematic diagram of a playing page provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another audio playing apparatus according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides an audio playing method which can be realized by a terminal. The terminal can be a mobile phone, a tablet computer and the like. And an audio playing application program is installed in the terminal.
Fig. 1 is a flowchart of an audio playing method according to an embodiment of the present invention. Referring to fig. 1, the method includes:
step 101: and acquiring lyrics of the audio being played on the currently displayed playing page.
Step 102: and when the audio frequency is played to the audio frequency segment matched with the words in the lyrics, displaying a first sliding block corresponding to the words on the playing page, wherein the words are displayed on the first sliding block.
Step 103: and moving the first slider on the playing page according to the first moving track.
Step 104: and when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page.
In the embodiment of the invention, the lyrics of the audio frequency being played on the currently displayed playing page are acquired. And then, when an audio clip matched with the words in the lyrics in the audio is played, displaying a first sliding block corresponding to the words on the playing page, wherein the words are displayed on the first sliding block. And then moving the first slider on the playing page according to the first moving track. And finally, when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page. In this way, the first slider may be displayed on the playing page of the audio in combination with the lyrics of the audio being played, and the user may operate the first slider. Therefore, the dynamic display effect on the playing page of the audio can be improved in the playing process of the audio, the display mode is flexible, and the interaction form of a user is enriched.
Optionally, moving the first slider on the playing page according to the first moving track includes:
acquiring a lyric of a sentence to which the word belongs from the lyrics of the audio frequency as target lyrics;
acquiring the playing duration of an audio clip matched with the target lyrics in the audio;
dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and moving the first slider on the playing page at a first moving speed according to the first moving track.
Optionally, after moving the first slider on the playing page according to the first moving track, the method further includes:
acquiring a lyric to which the word belongs from the lyrics of the audio frequency as a target lyric;
determining an audio segment in the audio frequency, which is matched with the target lyrics;
and when the playing of the audio clip matched with the target lyric is finished, stopping displaying the first slider on the playing page.
Optionally, after moving the first slider on the playing page according to the first moving track, the method further includes:
and when the first slider moves to the end point of the first moving track, stopping displaying the first slider on the playing page.
Optionally, the method further comprises:
when a target audio clip in the audio is played, determining the rhythm point of the target audio clip, wherein the target audio clip is an audio clip which is not matched with all words in the lyrics;
when the rhythm point of the target audio clip is played, displaying a second slider on the playing page;
moving a second slider on the playing page according to a second moving track;
and when the preset operation on the second slider is detected, stopping displaying the second slider on the playing page.
Optionally, moving the second slider on the playing page according to the second moving track includes:
acquiring the frequency of rhythm points of a target audio clip;
determining a second moving speed according to the frequency of the rhythm point of the target audio clip;
and moving the second slider on the playing page at a second moving speed according to the second moving track.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2 is a flowchart of an audio playing method provided in an embodiment of the present invention, where the method is applied to a terminal. Referring to fig. 2, the method includes:
step 201: and acquiring lyrics of the audio playing on the currently displayed playing page.
It should be noted that the playing page is a page for playing audio, for example, the playing page may be an application interface in an application program, a web page in a browser, and the like, which is not limited in this embodiment of the present invention.
In addition, the audio is a file storing sound content, such as a song.
Furthermore, lyrics are the part of words in audio that can be coordinated with the audio.
It should be noted that, after obtaining the lyrics of the audio currently being played on the currently displayed playing page, it is convenient to dynamically display the slider on the playing page subsequently when playing the audio segment matching with the lyrics in the audio.
Step 202: when the audio frequency is played to the audio frequency segment matched with the words in the lyrics, a first sliding block corresponding to the words is displayed on the playing page, and the words are displayed on the first sliding block.
It should be noted that an audio segment matching a certain word refers to an audio segment whose text content is the word.
In addition, the first slider is an operable control, and the first slider corresponding to a word refers to the first slider for displaying the word. For example, referring to fig. 3, when the word "wind" is used, the first slider corresponding to the word is the slider on which "wind" is displayed.
It should be noted that, in the embodiment of the present invention, each time an audio clip matching a word is played, a first slider corresponding to the word is displayed on the playing page.
Step 203: and moving the first slider on the playing page according to the first moving track.
It should be noted that the first movement track is a path that the first slider moves on the playing page subsequently. The first movement trajectory may be a preset trajectory, or the first movement trajectory may be a randomly generated movement trajectory, or the first movement trajectory may be a preset trajectory randomly selected from a plurality of preset trajectories.
In addition, the preset track may be preset, for example, the preset track may be a horizontal track, a vertical track, a diagonal track, and the like in the playing page.
Moreover, when the preset track is directly used as the first moving track, other operations are not needed, so that the determining efficiency of the first moving track can be improved. When a moving track is randomly generated to serve as the first moving track or a preset track is randomly selected from a plurality of preset tracks to serve as the first moving track, the determined first moving track is flexible and changeable, and therefore the first slider can obtain richer moving effects subsequently.
It should be noted that, in the embodiment of the present invention, each time an audio segment matching a word in the audio is played, a first slider corresponding to the word may be displayed on a playing page of the audio, and the first slider is moved.
For example, as shown in fig. 4, one of the lyrics of the audio is "day of wind", and when an audio segment matching with "wind" in the audio is played, a first slider corresponding to "wind" is displayed on the playing page of the audio; when an audio segment matched with the 'this' in the audio is played, displaying a first slider corresponding to the 'this' on the playing page; when the audio segment matched with the day in the audio is played, a first slider corresponding to the day is displayed on the playing page.
Specifically, step 203 can be implemented by three possible implementations as follows:
a first possible implementation: and moving the first slider on the playing page at a preset speed according to the first moving track.
It should be noted that the preset speed may be set in advance.
In this case, the first slider corresponding to each of all words in the lyrics of the audio moves on the playing page of the audio at the same speed (i.e. a preset speed).
A second possible implementation: acquiring a lyric of a sentence to which the word belongs from the lyrics of the audio frequency as target lyrics; acquiring the playing duration of an audio clip matched with the target lyrics in the audio; dividing the length of the first moving track by the playing duration of the audio clip to obtain a first moving speed; and moving the first slider on the playing page at a first moving speed according to the first moving track.
It should be noted that the moving speed of the first slider on the playing page is determined by the playing duration of the audio segment matched with the lyric of the sentence to which the word displayed on the first slider belongs. The longer the playing time of the audio clip is, the slower the moving speed of the first slider is; the shorter the playing time of the audio clip is, the faster the moving speed of the first slider is.
In this case, the first slider corresponding to each of all words in the same lyric may move at the same speed on the playing page of the audio, while the first sliders corresponding to words in different lyrics may move at different speeds on the playing page of the audio.
A third possible implementation: acquiring the playing time length of the audio; acquiring a moving speed corresponding to the playing duration of the audio as a first moving speed from the stored corresponding relation between the playing duration and the moving speed; and moving the first slider on the playing page at a first moving speed according to the first moving track.
It should be noted that the corresponding relationship between the playing time length and the moving speed may be preset.
For example, if the playing time period of the audio is 3 minutes, the speed 2 corresponding to 3 minutes can be obtained as the first moving speed from the relationship between the playing time period and the moving speed shown in the following table 1.
TABLE 1
Duration of play Speed of movement
0 to 2 minutes Speed 1
2 to 4 minutes Speed 2
…… ……
It should be noted that, in the embodiment of the present invention, the correspondence between the playing time length and the moving speed is described only by taking the above table 1 as an example, and the above table 1 does not limit the embodiment of the present invention.
In this case, the moving speed of the first slider on the playing page is determined by the playing time length of the audio. The first slider corresponding to each word in all words in the lyrics of the audio moves on the playing page of the audio at the same speed (i.e. the moving speed corresponding to the playing time length of the audio).
It should be noted that the operation of determining the first moving speed in the second possible implementation manner and the third possible implementation manner is flexible, so that the first slider can obtain a richer moving effect subsequently.
Step 204: and when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page.
It should be noted that the preset operation may be triggered by a user, and the preset operation may be a click operation, a slide operation, or the like.
It should be noted that, in the embodiment of the present invention, after the user performs the preset operation on the first slider on the playing page, the display of the first slider on the playing page is stopped, that is, the first slider disappears on the playing page.
Further, when the preset operation on the first slider is detected, not only can the display of the first slider on the playing page be stopped, but also the score corresponding to the currently logged-in user account can be increased.
It should be noted that the score is determined by the operation of the user on the first slider, and if it is detected that the user performs a preset operation on the first slider, the score may be increased by a score corresponding to the first slider. The score corresponding to each first slider may be the same, or the score corresponding to each first slider may be determined by the number of words of the word displayed on this first slider, and of course, the score corresponding to each first slider may also be determined in other manners, which is not limited by the embodiment of the present invention.
In an exemplary embodiment, when the preset operation on the first slider is detected, increasing the score corresponding to the currently logged-in user account may include the following cases: when the first sliding block moves to the preset position, if the preset operation on the first sliding block is detected, the score corresponding to the currently logged user account is increased. The preset position may be an end point of the first movement track, for example, the bottom of the screen. The preset operation may be a click, a touch, or the like.
Further, after step 203, step 204 may be executed, that is, not only the displaying of the first slider on the playing page may be stopped when the preset operation on the first slider is detected, but also the displaying of the first slider on the playing page may be stopped in other manners, for example, the displaying of the first slider on the playing page may be stopped in the following two possible manners.
A first possible implementation: acquiring a lyric to which the word belongs from the lyrics of the audio frequency as a target lyric; determining an audio fragment matched with the target lyrics in the audio; and when the audio clip is played, stopping displaying the first slider on the playing page.
It should be noted that the first sliders corresponding to all words in the target lyrics are sequentially displayed on the playing page, and when the playing of the audio clip matching the target lyrics is finished, the first sliders corresponding to all words in the target lyrics disappear at the same time.
A second possible implementation: and when the first slider moves to the end point of the first moving track, stopping displaying the first slider on the playing page.
It should be noted that, when the first moving speed is determined by the second possible implementation manner in step 203, the time when the first slider moves to the end point of the first moving track and the time when the audio clip is played are the same.
For example, if the starting point of the first movement track is the top of the screen and the ending point of the first movement track is the bottom of the screen, the first slider is moved from the top of the screen to the bottom of the screen, and the first slider stops displaying the first slider when moving to the bottom of the screen.
Furthermore, in the embodiment of the present invention, not only the first slider corresponding to the word may be displayed on the playing page when the audio clip matching the word in the audio is played, but also the second slider may be displayed on the playing page when the rhythm point of the target audio clip in the audio is played. Specifically, when a target audio clip in the audio is played, determining a rhythm point of the target audio clip; when the rhythm point of the target audio clip is played, displaying a second slider on the playing page; moving a second slider on the playing page according to a second moving track; and when the preset operation on the second slider is detected, stopping displaying the second slider on the playing page.
It should be noted that the target audio segment is an audio segment that does not match all words in the lyrics of the audio, i.e. the target audio segment may be an audio segment without word content. For example, the target audio piece may be a prelude to the audio, etc.
In addition, the rhythm point of the target audio segment is a time point at which the rhythm of the target audio segment is stronger, and an audio rhythm Detection (Onset Detection) algorithm may be used to detect the rhythm point of the target audio segment, or of course, the rhythm point of the target audio segment may be detected in other manners, which is not limited in the embodiment of the present invention.
Further, a second slider is an operable control, which may be a blank slider, i.e., no content may be displayed on the second slider.
It should be noted that the second movement track is a path that the second slider moves on the playing page subsequently. The second moving trajectory may be a preset trajectory, or the second moving trajectory may be a randomly generated moving trajectory, or the second moving trajectory may be a preset trajectory randomly selected from a plurality of preset trajectories.
In addition, when the preset track is directly used as the second moving track, other operations are not needed, and therefore the determining efficiency of the second moving track can be improved. When a moving track is randomly generated to serve as a second moving track, or a preset track is randomly selected from a plurality of preset tracks to serve as the second moving track, the determined second moving track is flexible and changeable, and therefore the second slider can obtain richer moving effects subsequently.
In this case, a second slider is displayed on the playing page every time a tempo point of the target audio piece is played. That is, in the embodiment of the present invention, not only the first slider corresponding to the word may be displayed when the audio clip matching the word in the lyric is played, but also the second slider may be displayed when the rhythm point of the target audio clip is played, thereby improving the flexibility of slider display. In addition, the user can operate both the first slider and the second slider, and user experience is improved.
The operation of moving the second slider on the playing page according to the second moving track may be: and moving the second slider on the playing page at a preset speed according to the second moving track. Or acquiring the frequency of the rhythm point of the target audio clip; determining a second moving speed according to the frequency of the rhythm point of the target audio clip; and moving the second slider on the playing page at a second moving speed according to the second moving track. Or, acquiring the playing time length of the audio; acquiring the moving speed corresponding to the playing duration of the audio as a second moving speed from the stored corresponding relation between the playing duration and the moving speed; and moving the second slider on the playing page at a second moving speed according to the second moving track.
It should be noted that, when the second slider is moved on the playing page at the preset speed according to the second moving track, in the process of playing the audio, all the displayed second sliders are moved on the playing page of the audio at the same speed (i.e. the preset speed). And when the second slider is moved on the playing page at a second moving speed according to the second moving track, the moving speed of the second slider depends on the frequency of the corresponding rhythm point or the playing time of the audio, so that the second slider can obtain richer moving effects subsequently.
The operation of determining the second moving speed according to the frequency of the rhythm point of the target audio piece may be: and acquiring a corresponding moving speed as a second moving speed from the stored corresponding relation between the frequency and the moving speed according to the frequency of the rhythm point of the target audio clip. Or, the second moving speed is obtained through a preset formula according to the frequency of the rhythm point of the target audio clip.
It should be noted that the preset formula may be preset.
In addition, the correspondence between the frequency and the moving speed may be set in advance.
For example, if the frequency of the rhythm point of the target audio piece is 300 hz, the velocity 2 corresponding to 300 hz can be obtained as the second moving velocity from the relationship between the frequency and the moving velocity shown in the following table 2.
TABLE 2
Frequency of Speed of movement
20-200 Hz Speed 1
200-400 Hz Speed 2
…… ……
In the embodiment of the present invention, the correspondence between the frequency and the moving speed is described only by taking the above table 2 as an example, and the above table 2 does not limit the embodiment of the present invention.
Further, when the preset operation on the second slider is detected, not only can the display of the second slider on the playing page be stopped, but also the score corresponding to the currently logged-in user account can be increased.
It should be noted that the score depends on the operation of the user on the second slider, and if it is detected that the user performs a preset operation on the second slider, the score may be increased by a score corresponding to the second slider. The score corresponding to each second slider may be the same, and of course, the score corresponding to each second slider may also be determined in other manners, which is not limited in this embodiment of the present invention.
In an exemplary embodiment, when the preset operation on the second slider is detected, increasing the score corresponding to the currently logged-in user account may include the following cases: and when the second slider moves to the preset position, if the preset operation on the second slider is detected, increasing the score corresponding to the currently logged user account. The preset position may be an end point of the second movement track, for example, the bottom of the screen. The preset operation may be a click, a touch, or the like.
In the embodiment of the invention, the lyrics of the audio frequency being played on the currently displayed playing page are acquired. And then, when an audio clip matched with the words in the lyrics in the audio is played, displaying a first slider corresponding to the words on the playing page, wherein the words are displayed on the first slider. And then moving the first slider on the playing page according to the first moving track. And finally, when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page. In this way, the first slider may be displayed on the playing page of the audio in combination with the lyrics of the audio being played, and the user may operate the first slider. Therefore, the dynamic display effect on the playing page of the audio can be improved in the playing process of the audio, the display mode is flexible, and the interaction form of a user is enriched.
Fig. 5 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes:
a first obtaining module 501, configured to obtain lyrics of an audio currently being played on a currently displayed playing page;
a first display module 502, configured to display a first slider corresponding to a word on the playing page when an audio clip matching the word in the lyrics is played in the audio, where the word is displayed on the first slider;
a first moving module 503, configured to move the first slider on the playing page according to the first moving track;
the first stop displaying module 504 is configured to stop displaying the first slider on the playing page when a preset operation on the first slider is detected.
Optionally, the first moving module 503 comprises:
the first acquisition unit is used for acquiring a sentence of lyrics to which the word belongs from the lyrics of the audio frequency as target lyrics;
the second acquisition unit is used for acquiring the playing time length of an audio clip matched with the target lyrics in the audio;
the calculating unit is used for dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and the first moving unit is used for moving the first slider on the playing page at a first moving speed according to the first moving track.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a sentence of lyrics to which the word belongs from the lyrics of the audio frequency as target lyrics;
the first determining module is used for determining an audio segment matched with the target lyrics in the audio;
and the second stop display module is used for stopping displaying the first slider on the playing page when the playing of the audio clip matched with the target lyrics is finished.
Optionally, the apparatus further comprises:
and the third display stopping module is used for stopping displaying the first slider on the playing page when the first slider moves to the end point of the first moving track.
Optionally, the apparatus further comprises:
the second determining module is used for determining the rhythm point of a target audio clip when the target audio clip in the audio is played, wherein the target audio clip is an audio clip which is not matched with all words in the lyrics;
the second display module is used for displaying a second sliding block on the playing page when the rhythm point of the target audio clip is played;
the second moving module is used for moving the second slider on the playing page according to a second moving track;
and the fourth display stopping module is used for stopping displaying the second slider on the playing page when the preset operation on the second slider is detected.
Optionally, the second moving module comprises:
a third obtaining unit, configured to obtain a frequency of a rhythm point of the target audio piece;
a determining unit, configured to determine a second moving speed according to a frequency of a rhythm point of the target audio piece;
and the second moving unit is used for moving the second slider on the playing page at a second moving speed according to a second moving track.
In the embodiment of the invention, the lyrics of the audio frequency being played on the currently displayed playing page are acquired. And then, when an audio clip matched with the words in the lyrics in the audio is played, displaying a first slider corresponding to the words on the playing page, wherein the words are displayed on the first slider. And then moving the first slider on the playing page according to the first moving track. And finally, when the preset operation on the first slider is detected, stopping displaying the first slider on the playing page. In this way, the first slider may be displayed on the playing page of the audio in combination with the lyrics of the audio being played, and the user may operate the first slider. Therefore, the dynamic display effect on the playing page of the audio can be improved in the playing process of the audio, the display mode is flexible, and the interaction form of a user is enriched.
It should be noted that: in the audio playing apparatus provided in the foregoing embodiment, when playing audio, only the division of the functional modules is exemplified, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the audio playing device and the audio playing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention. Referring to fig. 6, the apparatus may be a terminal 600, and the terminal 600 may be: 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. The terminal 600 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 600 includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 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 601 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 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 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 the memory 602 is used to store at least one instruction for execution by the processor 601 to implement the audio playback method provided by the method embodiments of the present application.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a touch screen display 605, a camera assembly 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on separate chips or circuit boards, which are not limited in this application.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 604 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 604 comprises: 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, etc. The radio frequency circuitry 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 604 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 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 605 may be one, disposed on the front panel of the terminal 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folded design; in still other embodiments, the display 605 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of a 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 606 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color 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.
Audio circuitry 607 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 601 for processing or inputting the electric signals to the radio frequency circuit 604 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 600. 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 601 or the radio frequency circuit 604 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, audio circuitry 607 may also include a headphone jack.
The positioning component 608 is used for positioning the current geographic Location of the terminal 600 to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
Power supply 609 is used to provide power to the various components in terminal 600. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 600 also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 601 may control the touch screen display 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the terminal 600, and the gyro sensor 612 and the acceleration sensor 611 may cooperate to acquire a 3D motion of the user on the terminal 600. The processor 601 may implement the following functions according to the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
The pressure sensor 613 may be disposed on a side frame of the terminal 600 and/or on a lower layer of the touch display screen 605. When the pressure sensor 613 is disposed on the side frame of the terminal 600, a holding signal of the user to the terminal 600 can be detected, and the processor 601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the touch display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 605. 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 614 is used for collecting a fingerprint of a user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the terminal 600. When a physical button or vendor Logo is provided on the terminal 600, the fingerprint sensor 614 may be integrated with the physical button or vendor Logo.
The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, processor 601 may control the display brightness of touch display 605 based on the ambient light intensity collected by optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 605 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 605 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.
The proximity sensor 616, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 600. The proximity sensor 616 is used to collect the distance between the user and the front surface of the terminal 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front surface of the terminal 600 is gradually decreased, the touch display 605 is controlled by the processor 601 to switch from the bright screen state to the dark screen state; when the proximity sensor 616 detects that the distance between the user and the front surface of the terminal 600 becomes gradually larger, the touch display 605 is controlled by the processor 601 to switch from the message screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is not limiting of terminal 600 and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium is further provided, which has instructions stored thereon, and the instructions are executable by a processor in a terminal to complete the audio playing method in the above-described embodiment. The computer readable storage medium may be non-transitory. For example, the computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An audio playing method, the method comprising:
acquiring lyrics of audio playing on a currently displayed playing page;
when an audio clip matched with the words in the lyrics in the audio is played, displaying a first slider corresponding to the words on the playing page, wherein the words are displayed on the first slider;
moving the first slider on the playing page according to a first moving track;
and when the first slider moves to a preset position and the preset operation of the user on the first slider is detected, stopping displaying the first slider on the playing page and increasing the score corresponding to the currently logged-in user account.
2. The method as claimed in claim 1, wherein said moving said first slider on said playing page according to a first moving track comprises:
acquiring a lyric to which the word belongs from the lyrics of the audio frequency as target lyrics;
acquiring the playing time of an audio clip matched with the target lyrics in the audio;
dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and moving the first slider on the playing page at the first moving speed according to the first moving track.
3. The method according to claim 1 or 2, wherein after moving the first slider on the playing page according to the first movement track, further comprising:
acquiring a sentence of lyrics to which the words belong from the lyrics of the audio frequency as target lyrics;
determining an audio segment in the audio that matches the target lyrics;
and when the playing of the audio clip matched with the target lyric is finished, stopping displaying the first slider on the playing page.
4. The method according to claim 1 or 2, wherein after moving the first slider on the playing page according to the first moving track, further comprising:
and when the first slider moves to the end point of the first moving track, stopping displaying the first slider on the playing page.
5. The method of claim 1, wherein the method further comprises:
when a target audio clip in the audio is played, determining a rhythm point of the target audio clip, wherein the target audio clip is an audio clip which does not match with all words in the lyrics;
when the rhythm point of the target audio clip is played, displaying a second slider on the playing page;
moving the second slider on the playing page according to a second moving track;
and when the preset operation on the second slider is detected, stopping displaying the second slider on the playing page.
6. The method of claim 5, wherein said moving said second slider on said playing page according to a second movement track comprises:
acquiring the frequency of the rhythm point of the target audio clip;
determining a second moving speed according to the frequency of the rhythm point of the target audio clip;
and moving the second slider on the playing page at the second moving speed according to the second moving track.
7. An audio playback apparatus, comprising:
the first acquisition module is used for acquiring lyrics of audio played on a currently displayed playing page;
the first display module is used for displaying a first slider corresponding to a word on the playing page when an audio clip matched with the word in the lyrics in the audio is played, wherein the word is displayed on the first slider;
the first moving module is used for moving the first slider on the playing page according to a first moving track;
and the first display stopping module is used for stopping displaying the first slider on the playing page and increasing the score corresponding to the currently logged-in user account when the first slider moves to a preset position and detects the preset operation of the user on the first slider.
8. The apparatus of claim 7, wherein the first movement module comprises:
the first acquisition unit is used for acquiring a sentence of lyrics to which the words belong from the lyrics of the audio frequency as target lyrics;
the second acquisition unit is used for acquiring the playing time length of an audio clip matched with the target lyrics in the audio;
the calculating unit is used for dividing the length of the first moving track by the playing time length to obtain a first moving speed;
and the first moving unit is used for moving the first slider on the playing page at the first moving speed according to the first moving track.
9. A terminal, characterized in that it comprises a processor and a memory, in which are stored instructions that are loaded and executed by the processor to implement the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method of any of claims 1-6.
CN201910647508.3A 2019-07-17 2019-07-17 Audio playing method, device, terminal and computer readable storage medium Active CN110377208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647508.3A CN110377208B (en) 2019-07-17 2019-07-17 Audio playing method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647508.3A CN110377208B (en) 2019-07-17 2019-07-17 Audio playing method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110377208A CN110377208A (en) 2019-10-25
CN110377208B true CN110377208B (en) 2023-04-07

Family

ID=68253784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647508.3A Active CN110377208B (en) 2019-07-17 2019-07-17 Audio playing method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110377208B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157369B (en) * 2021-04-07 2023-04-18 杭州网易云音乐科技有限公司 Music playing interaction method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100010369A (en) * 2008-07-22 2010-02-01 주식회사 코원시스템 Playback apparatus, playback method and playback system
CN102148048A (en) * 2011-05-12 2011-08-10 北京瑞信在线系统技术有限公司 Lyric display method and device
CN106126662A (en) * 2016-06-24 2016-11-16 维沃移动通信有限公司 A kind of electronic book displaying method and mobile terminal
CN107704232A (en) * 2017-09-26 2018-02-16 维沃移动通信有限公司 A kind of audio control method and electronic equipment
CN109257499A (en) * 2018-09-30 2019-01-22 腾讯音乐娱乐科技(深圳)有限公司 A kind of Dynamic Display method and device of the lyrics
CN109788335A (en) * 2019-03-06 2019-05-21 珠海天燕科技有限公司 Video caption generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100010369A (en) * 2008-07-22 2010-02-01 주식회사 코원시스템 Playback apparatus, playback method and playback system
CN102148048A (en) * 2011-05-12 2011-08-10 北京瑞信在线系统技术有限公司 Lyric display method and device
CN106126662A (en) * 2016-06-24 2016-11-16 维沃移动通信有限公司 A kind of electronic book displaying method and mobile terminal
CN107704232A (en) * 2017-09-26 2018-02-16 维沃移动通信有限公司 A kind of audio control method and electronic equipment
CN109257499A (en) * 2018-09-30 2019-01-22 腾讯音乐娱乐科技(深圳)有限公司 A kind of Dynamic Display method and device of the lyrics
CN109788335A (en) * 2019-03-06 2019-05-21 珠海天燕科技有限公司 Video caption generation method and device

Also Published As

Publication number Publication date
CN110377208A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN107967706B (en) Multimedia data processing method and device and computer readable storage medium
CN108401124B (en) Video recording method and device
CN109033335B (en) Audio recording method, device, terminal and storage medium
CN107908929B (en) Method and device for playing audio data
CN108008930B (en) Method and device for determining K song score
CN108538302B (en) Method and apparatus for synthesizing audio
CN108965757B (en) Video recording method, device, terminal and storage medium
CN108965922B (en) Video cover generation method and device and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110324689B (en) Audio and video synchronous playing method, device, terminal and storage medium
CN109346111B (en) Data processing method, device, terminal and storage medium
CN109635133B (en) Visual audio playing method and device, electronic equipment and storage medium
CN111753125A (en) Song audio frequency display method and device
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
CN111142838A (en) Audio playing method and device, computer equipment and storage medium
CN111092991B (en) Lyric display method and device and computer storage medium
CN111081277B (en) Audio evaluation method, device, equipment and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN110867194B (en) Audio scoring method, device, equipment and storage medium
WO2020253129A1 (en) Song display method, apparatus and device, and storage medium
CN113204672B (en) Resource display method, device, computer equipment and medium
CN110798327A (en) Message processing method, device and storage medium
CN112086102B (en) Method, apparatus, device and storage medium for expanding audio frequency band
CN109005359B (en) Video recording method, apparatus and storage medium

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