CN106448713B - Audio playing method and device - Google Patents

Audio playing method and device Download PDF

Info

Publication number
CN106448713B
CN106448713B CN201510489411.6A CN201510489411A CN106448713B CN 106448713 B CN106448713 B CN 106448713B CN 201510489411 A CN201510489411 A CN 201510489411A CN 106448713 B CN106448713 B CN 106448713B
Authority
CN
China
Prior art keywords
playing
audio
refrain
position information
fragment
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
CN201510489411.6A
Other languages
Chinese (zh)
Other versions
CN106448713A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510489411.6A priority Critical patent/CN106448713B/en
Publication of CN106448713A publication Critical patent/CN106448713A/en
Application granted granted Critical
Publication of CN106448713B publication Critical patent/CN106448713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The invention discloses an audio playing method, which comprises the following steps: acquiring position information of a chorus segment in currently played audio; displaying the position information on a current playing interface according to a preset mode; and when a playing operation triggered based on the position information is received, playing the refrain fragment. The invention also discloses an audio playing device. According to the invention, the user can quickly position the refrain fragment for listening trial by prompting the position information of the refrain fragment, so that the listening trial efficiency is improved.

Description

Audio playing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an audio playing method and apparatus.
Background
When playing the audio files in the playlist, the conventional player usually has multiple modes such as sequence, cycle, random, and the like to realize the sequential or random playing of the audio files in the playlist and the cycle playing of a certain audio file, but the playing of any audio file is complete from beginning to end, and a user cannot listen to a certain paragraph on trial as required.
When a user plays a brand-new album or an unfamiliar audio file from a network resource, the user needs to determine whether the audio file is suitable for himself or herself in a short time, and often only needs to listen to a certain refrain. Often need manually drag the progress bar when the user is listening to this chorus segment on trial, can not pinpoint the chorus segment that needs the listening on trial, lead to audio frequency listening on trial inefficiency.
Disclosure of Invention
The embodiment of the invention provides an audio playing method and device, and aims to solve the problem of low audio listening efficiency.
In order to achieve the above object, an embodiment of the present invention provides an audio playing method, where the audio playing method includes:
acquiring position information of a chorus segment in currently played audio;
displaying the position information on a current playing interface according to a preset mode;
and when a playing operation triggered based on the position information is received, playing the refrain fragment.
In order to achieve the above object, an embodiment of the present invention further provides an audio playing apparatus, where the audio playing apparatus includes:
the acquisition module is used for acquiring the position information of the refrain fragment in the currently played audio;
the display module is used for displaying the position information on a current playing interface according to a preset mode;
and the playing module is used for playing the refrain fragment when receiving the playing operation triggered based on the position information.
According to the audio playing method and device, the position information of the refrain segment in the currently played audio is obtained, the position information is displayed on the current playing interface according to a preset mode, the refrain segment is played when the playing operation triggered based on the position information is received, and the position information of the refrain segment is prompted, so that a user can quickly position the refrain segment to conduct audition, and the audition efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of an audio playback apparatus according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an audio playing method according to a first embodiment of the present invention;
FIG. 3 is a schematic view of an interface for marking the chorus position information in the playing progress bar;
FIG. 4 is a schematic diagram illustrating a detailed process of playing a refrain fragment according to the present invention;
FIG. 5 is a flowchart illustrating an audio playing method according to a third embodiment of the present invention;
FIG. 6 is a functional block diagram of an audio playback device according to a first embodiment of the present invention;
FIG. 7 is a schematic diagram of a detailed functional module of the playing module according to the present invention;
fig. 8 is a functional block diagram of an audio playback device according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring position information of a chorus segment in currently played audio; displaying the position information on a current playing interface according to a preset mode; and when a playing operation triggered based on the position information is received, playing the refrain fragment. Through the position information of the suggera fragment, the user can quickly position the suggera fragment to listen to the suggera fragment in a trial mode, and the audio frequency listening efficiency is improved.
Because in the existing song audition process, the user does not know the position of the refrain fragment when auditioning the refrain fragment, the progress bar needs to be dragged for many times to find the position of the refrain fragment for audition operation, and the audition efficiency is low.
The embodiment of the invention constructs the audio playing device, and the device enables a user to quickly position the refrain segment by prompting the position information of the refrain segment so as to listen to the refrain segment in a trial mode and improve the listening efficiency of the audio.
The audio playing device of the present embodiment can be carried on the terminal. The hardware architecture involved in the audio playback apparatus may be as shown in fig. 1.
Fig. 1 shows a hardware architecture related to an audio playback apparatus according to an embodiment of the present invention. As shown in fig. 1, the hardware involved in the audio playback apparatus includes: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. The communication bus 1002 is used for implementing connection communication between the components in the terminal. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), a mouse, and other components, and is configured to receive information input by a user and send the received information to the processor 1005 for processing. The display screen may be an LCD display screen, an LED display screen, or a touch screen for displaying data to be displayed by the audio playing device, such as displaying an audio playing interface. The optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an audio playback program
Among the hardware involved in the audio playback apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to an application platform and performing data communication with the application platform; the user interface 1003 is mainly used for connecting a client, performing data communication with the client, and receiving information and instructions input by the client; and the processor 1001 may be configured to call the audio playing program stored in the memory 1005 and perform the following operations:
acquiring position information of a chorus segment in currently played audio;
displaying the position information on a current playing interface according to a preset mode;
and when a playing operation triggered based on the position information is received, playing the refrain fragment.
Further, in one embodiment, the processor 1001 invoking the audio playback program stored in the memory 1005 may perform the following operations:
and marking the position information in a playing progress bar of the current playing interface.
Further, in one embodiment, the processor 1001 invoking the audio playback program stored in the memory 1005 may perform the following operations:
acquiring the number of the refrain fragments after receiving the playing operation triggered based on the position information;
and when the number of the refrain segments is multiple, sequentially playing each refrain segment according to the position information of each refrain segment, or randomly playing one refrain segment.
Further, in one embodiment, the processor 1001 invoking the audio playback program stored in the memory 1005 may perform the following operations:
and in the playing process of the refrain fragment, when a storage instruction is received, the name of the currently played audio is stored in association with the refrain fragment.
Further, in one embodiment, the processor 1001 invoking the audio playback program stored in the memory 1005 may perform the following operations:
when an audio playing instruction is received, acquiring audio data of audio to be played, and playing the audio data of the audio to be played;
and when the playing times of the audio to be played is smaller than a preset threshold value or the current playing mode is a preset mode, executing the step of acquiring the position information of the refrain fragment in the current playing audio.
According to the scheme, the position information of the refrain fragment in the current playing audio is obtained, the position information is displayed on the current playing interface according to the preset mode, the refrain fragment is played when the playing operation triggered based on the position information is received, and the user can quickly position the refrain fragment for trial listening by prompting the position information of the refrain fragment, so that the trial listening efficiency is improved.
Based on the hardware architecture, the embodiment of the audio playing method is provided.
As shown in fig. 2, a first embodiment of an audio playing method according to the present invention is provided, where the audio playing method includes:
step S10, obtaining the position information of the refrain fragment in the current playing audio;
in this embodiment, the operation of step S10 may be automatically triggered, that is, when an audio playing instruction is received, the audio corresponding to the audio playing instruction is played, and the position information of the refrain segment in the currently played audio is obtained; the operation of step S10 may also be triggered manually, that is, when a marking instruction triggered by a user based on a control (e.g., an audition control) on a playing interface is received, the position information of the refrain segment in the currently played audio is obtained, and when the position information of the refrain segment of the audio is obtained in the middle of playing, if there are a plurality of refrain segments of the audio, the position information that needs to be marked may be determined according to the playing progress of the audio, that is, the position information corresponding to the refrain segment after the current playing time point is marked.
The position information may be start position information and end position information of the refrain section, preferably start position information, and the position information may be a play time point in the progress bar.
In this embodiment, the refrain segment in the audio may be determined by the application server, the server associates the position information with the audio name after determining the position information of the refrain segment in the audio, when the user auditorily listens to the audio, the audio data corresponding to the audio to be played and the position information are simultaneously issued to the terminal, and when the terminal plays the audio, the associated position information is obtained as the position information of the refrain segment. Or, when playing the audio, the terminal can obtain the position information of the refrain segment at the local terminal. The following method for acquiring the position information of the refrain fragment by way of example specifically includes:
a. dividing the currently played audio into a plurality of melody segments, comparing every two melody segments in sequence to determine the number of repeated notes in each melody segment, when the number of the repeated notes is larger than a preset threshold value, considering that the two melody segments are repeated, and determining the number of times of repetition of each melody segment, determining the melody segment with the largest number of times of repetition, and determining the segment with the largest number of times of repetition based on the melody segment with the largest number of times of repetition, for example, directly taking the melody segment with the largest number of times of repetition as an refrain segment in the currently played audio, or taking the preset number of melody segments adjacent to the front and back of the melody segment with the largest number of times of repetition as the refrain segment in the currently played audio, and acquiring the position information of the refrain segment in the currently played audio.
b. Acquiring a frequency spectrum corresponding to the currently played audio, acquiring a melody segment with the maximum melody fluctuation based on the frequency spectrum, for example, directly taking the melody segment with the maximum melody fluctuation as a refraining segment in the currently played audio, or taking a preset number of melody segments adjacent to the melody segment with the maximum melody fluctuation as the refraining segments of the currently played audio, and acquiring position information of the refraining segments in the currently played audio.
c. The method comprises the steps of obtaining lyrics corresponding to currently played audio, determining the most repeated part of the obtained lyrics, determining a paragraph corresponding to the most repeated part of the lyrics in the currently played audio, taking the paragraph corresponding to the most repeated part of the lyrics in the audio file to be played as a refraining fragment of the currently played audio, and obtaining position information of the refraining fragment in the currently played audio.
The three manners listed above for determining the refraining segment in the currently played audio are only exemplary, and those skilled in the art may utilize the technical idea of the present invention, and other manners for determining the refraining segment in the currently played audio, which are proposed according to their specific requirements, are within the scope of the present invention, and are not exhaustive here.
Step S20, displaying the position information on the current playing interface according to a preset mode;
in this embodiment, the position information such as the start time point of the refrain segment can be directly displayed on the current display interface, for example, if the start time point of the refrain segment is 2min10S, 2.10 is displayed in the play interface, and the display can be displayed by a control or other manners. The preferred scheme is to mark the position information in the playing progress bar of the current playing interface, as shown in fig. 3, when a mouse pointer (cursor) is placed at the marked start point of the refrain, a prompt is displayed to inform the user that the start position of the refrain is here.
Step S30, when receiving the play operation triggered based on the position information, playing the refrain segment.
In this embodiment, when the progress block in the playing progress bar is directly dragged to the identifier of the position information of the refrain segment, the playing operation can be triggered to directly play the refrain segment; or, the identifier of the position information of the refrain segment in the progress bar can be clicked to directly play the refrain segment; or, the position information of the refrain segment directly displayed in the playing interface can be clicked to trigger the playing operation, so that the refrain segment can be directly played.
According to the audio playing method provided by the embodiment, the position information of the refrain fragment in the currently played audio is obtained, the position information is displayed on the current playing interface according to a preset mode, the refrain fragment is played when the playing operation triggered based on the position information is received, and the user can quickly position the refrain fragment for trial listening by prompting the position information of the refrain fragment, so that the trial listening efficiency is improved.
Further, in order to improve the flexibility of audio playing, referring to fig. 4, a second embodiment of the audio playing method of the present invention is proposed based on the first embodiment, in this embodiment, the step S30 includes the steps of:
step S31, when receiving the playing operation triggered based on the position information, obtaining the number of the refrain segments;
step S32, when the number of the refrain segments is multiple, sequentially playing each refrain segment according to the refrain segment position information, or randomly playing one refrain segment.
In this embodiment, when there are multiple refrain segments in the currently played audio, the start position information and the end position information corresponding to each refrain segment may be displayed in the currently played interface, and the user may select the refrain segment to be played as required. When a mouse pointer (cursor) is placed at the starting point of the marked refrain, the starting lyric of the refrain fragment and the prompt message of the refrain fragment can be displayed.
When the number of the refrain segments is multiple, each refrain segment can be played in sequence, namely, the non-refrain segments among the refrain segments in the audio frequency are skipped; or, the audio can also be played directly from the refrain section with the position information closest to the audio starting point, that is, the non-refrain section among the refrain sections is not skipped in the playing process. It can be understood that, since there may be repeated sections between each refrain section in the audio, the position information of only one of the refrain sections may be marked, and when the user triggers a play operation based on the position information, one of the refrain sections may be randomly played.
According to the scheme, when a plurality of chorus segments exist, one chorus segment can be randomly selected to be played according to needs, or all the chorus segments are played in sequence, and playing is flexible.
Further, referring to fig. 5, a third embodiment of the audio playing method according to the present invention is proposed based on the first or second embodiment, and in this embodiment, after the step S30, the method further includes the steps of:
step S40, in the playing process of the refrain segment, when receiving the storage instruction, storing the name of the currently played audio in association with the refrain segment.
In the scheme, a user can start a storage instruction according to needs, namely, a refrain fragment is intercepted from the current playing audio, the intercepted refrain fragment is stored in association with the name of the current playing audio, and the user can directly listen to the refrain fragment in a subsequent listening trial process. The preferred scheme is that a prompt interface can be displayed after the name of the currently played audio is associated and stored with the refrain fragment, so that a user can confirm whether the refrain fragment is set as the ring based on the prompt interface, and when receiving confirmation information triggered by the user based on the prompt interface, the refrain fragment is set as the terminal ring.
Further, a fourth embodiment of the audio playing method according to the present invention is provided based on any one of the first to third embodiments, and in this embodiment, before the step S10, the method further includes the steps of:
when an audio playing instruction is received, acquiring audio data of audio to be played, and playing the audio data of the audio to be played;
when the playing frequency of the audio to be played is smaller than a preset threshold, or when the current playing mode is a preset mode, the step S10 is executed.
In this embodiment, when the currently played audio is the first time playing or the current listening mode, the position information of the refrain segment can be displayed, so that the user can listen to the refrain segment only by trial, and the intelligence is improved. The preset threshold is preferably 1% if the playing times are the times of playing the whole audio.
It is understood that, in other variant embodiments, when an audio playing instruction is received, the current playing mode is acquired; when the current playing mode is the preset playing mode, judging whether a chorus segment associated with the audio name of the audio to be played is stored or not; when the refrain fragment exists, playing the refrain fragment; and when the refrain segment does not exist, acquiring the audio data of the audio to be played, playing the audio data of the audio to be played, and executing the step S10.
Correspondingly, the preferred embodiment of the audio playing device of the invention is provided. Referring to fig. 6, the audio playing apparatus includes an obtaining module 10, a displaying module 20, and a playing module 30, wherein:
the acquiring module 10 is configured to acquire position information of a refrain segment in a currently played audio;
in this embodiment, the operation of acquiring the position information of the refrain segment in the currently played audio by the acquiring module 10 may be automatically triggered, that is, when an audio playing instruction is received, the playing module 30 plays the audio corresponding to the audio playing instruction, and the acquiring module 10 acquires the position information of the refrain segment in the currently played audio; the operation of acquiring the position information of the refrain segment in the currently played audio by the acquiring module 10 may also be manually triggered, that is, when a marking instruction triggered by a user based on a control (such as an audition control) on a playing interface is received, the acquiring module 10 acquires the position information of the refrain segment in the currently played audio, and when the position information of the refrain segment of the audio is acquired in the middle of playing, if there are a plurality of refrain segments of the audio, the position information that needs to be marked may be determined according to the playing progress of the audio, that is, the acquiring module 10 acquires the position information corresponding to the refrain segment after the currently played time point.
The position information may be start position information and end position information of the refrain section, preferably start position information, and the position information may be a play time point in the progress bar.
In this embodiment, the refrain segment in the audio may be determined by the application server, the server associates the position information with the audio name after determining the position information of the refrain segment in the audio, when the user auditorily listens to the audio, the audio data corresponding to the audio to be played and the position information are simultaneously issued to the terminal, and when the terminal plays the audio, the associated position information is obtained as the position information of the refrain segment. Or, when playing the audio, the terminal can obtain the position information of the refrain segment at the local terminal. The following method for acquiring the position information of the refrain fragment by way of example specifically includes:
a. dividing the currently played audio into a plurality of melody segments, comparing every two melody segments in sequence to determine the number of repeated notes in each melody segment, when the number of the repeated notes is larger than a preset threshold value, considering that the two melody segments are repeated, and determining the number of times of repetition of each melody segment, determining the melody segment with the largest number of times of repetition, and determining the segment with the largest number of times of repetition based on the melody segment with the largest number of times of repetition, for example, directly taking the melody segment with the largest number of times of repetition as an refrain segment in the currently played audio, or taking the preset number of melody segments adjacent to the front and back of the melody segment with the largest number of times of repetition as the refrain segment in the currently played audio, and acquiring the position information of the refrain segment in the currently played audio.
b. Acquiring a frequency spectrum corresponding to the currently played audio, acquiring a melody segment with the maximum melody fluctuation based on the frequency spectrum, for example, directly taking the melody segment with the maximum melody fluctuation as a refraining segment in the currently played audio, or taking a preset number of melody segments adjacent to the melody segment with the maximum melody fluctuation as the refraining segments of the currently played audio, and acquiring position information of the refraining segments in the currently played audio.
c. The method comprises the steps of obtaining lyrics corresponding to currently played audio, determining the most repeated part of the obtained lyrics, determining a paragraph corresponding to the most repeated part of the lyrics in the currently played audio, taking the paragraph corresponding to the most repeated part of the lyrics in the audio file to be played as a refraining fragment of the currently played audio, and obtaining position information of the refraining fragment in the currently played audio.
The three manners listed above for determining the refraining segment in the currently played audio are only exemplary, and those skilled in the art may utilize the technical idea of the present invention, and other manners for determining the refraining segment in the currently played audio, which are proposed according to their specific requirements, are within the scope of the present invention, and are not exhaustive here.
The display module 20 is configured to display the position information on a current playing interface in a preset manner;
in this embodiment, the position information such as the start time point of the refrain segment can be directly displayed on the current display interface, for example, if the start time point of the refrain segment is 2min10S, 2.10 is displayed in the play interface, and the display can be displayed by a control or other manners. The preferred scheme is that the display module 20 marks the position information in the playing progress bar of the current playing interface, as shown in fig. 3, when a mouse pointer (cursor) is placed at the marked start point of the refrain, a prompt is displayed to inform the user that the position is the start position of the refrain.
The playing module 30 is configured to play the refrain segment when receiving a playing operation triggered based on the position information.
In this embodiment, when the progress block in the playing progress bar is directly dragged to the identifier of the position information of the refrain segment, the playing operation can be triggered, and the playing module 30 directly plays the refrain segment; or, the identifier of the position information of the refrain segment in the progress bar can be clicked, and the playing module 30 directly plays the refrain segment; or, the playing operation may be triggered by clicking the position information of the refrain segment directly displayed in the playing interface, and the playing module 30 directly plays the refrain segment.
The audio playing device provided by the embodiment acquires the position information of the refrain segment in the currently played audio, displays the position information in a preset mode on a current playing interface, plays the refrain segment when receiving the playing operation triggered based on the position information, and enables a user to quickly position the refrain segment for trial listening by prompting the position information of the refrain segment, so that the trial listening efficiency is improved.
Further, in order to improve the flexibility of audio playing, referring to fig. 7, a second embodiment of the audio playing device of the present invention is proposed based on the first embodiment, in this embodiment, the playing module 30 includes:
a first obtaining unit 31, configured to obtain the number of the refrain segments when receiving a play operation triggered based on the position information;
the playing unit 32 is configured to sequentially play each of the refrain segments according to the position information of each of the refrain segments or randomly play one of the refrain segments when the number of the refrain segments is multiple.
In this embodiment, when there are multiple refrain segments in the currently played audio, the display module 20 may display the start position information and the end position information corresponding to each refrain segment in the currently played interface, and the user may select the refrain segment to be played as needed. When the mouse pointer (cursor) is placed at the starting point of the marked refrain, the display module 20 may display the starting lyric of the refrain segment and the prompt message of the refrain segment.
When there are multiple refrain segments, the playing module 30 can play each refrain segment in sequence, that is, skip the non-refrain segments between the refrain segments in the audio; alternatively, the playing module 30 may also directly start playing the audio from the refrain segment with the position information closest to the audio starting point, that is, the playing module 30 will not skip the non-refrain segment between the refrain segments in the playing process. It can be understood that, since there may be repeated sections between each refrain section in the audio, the position information of only one of the refrain sections may be marked, and when the user triggers a play operation based on the position information, the play module 30 may randomly play one of the refrain sections.
According to the scheme, when a plurality of chorus segments exist, the playing module 30 can randomly select one chorus segment to play as required, or sequentially play all the chorus segments, and the playing is flexible.
Further, referring to fig. 8, a third embodiment of the audio playing device of the present invention is proposed based on the first or second embodiment, and in this embodiment, the audio playing device further includes:
and the storage module 40 is configured to, in the playing process of the refrain segment, associate and store the name of the currently played audio with the refrain segment when a storage instruction is received.
In the scheme, a user can start a storage instruction as required, namely the storage module 40 intercepts the refrain segment from the currently played audio, associates and stores the intercepted refrain segment and the name of the currently played audio, and the user can directly listen to the refrain segment in the subsequent listening trial process. Preferably, after the name of the currently played audio is stored in association with the refrain fragment, the display module 20 displays a prompt interface for the user to determine whether to set the refrain fragment as a ring based on the prompt interface, and when receiving the confirmation information triggered by the user based on the prompt interface, the refrain fragment is set as a terminal ring.
Further, a fourth embodiment of the audio playing method according to the present invention is provided based on any one of the first to third embodiments, and in this embodiment, the obtaining module 10 is further configured to obtain audio data of an audio to be played when receiving an audio playing instruction; the playing module 30 is further configured to play audio data of the audio to be played; the obtaining module 10 is further configured to obtain position information of a refrain segment in the currently played audio when the playing frequency of the audio to be played is smaller than a preset threshold, or when the current playing mode is a preset mode.
In this embodiment, when the currently played audio is the first time playing or the current listening mode, the display module 20 may display the position information of the refrain segment, so that the user only listens to the refrain segment on trial, and the intelligence is improved. The preset threshold is preferably 1% if the playing times are the times of playing the whole audio.
It can be understood that, in other variant embodiments, the obtaining module is further configured to obtain the current play mode when receiving the audio play instruction; the audio playing device also comprises a judging module used for judging whether to store the chorus segment associated with the audio name of the audio to be played when the current playing mode is the preset playing mode; the playing module 30 is further configured to play the refrain segment when the refrain segment exists; the acquisition module is further used for acquiring audio data of the audio to be played when the refrain fragment does not exist; the playing module is also used for playing the audio data of the audio to be played; the obtaining module 10 is further configured to obtain the position information of the refrain segment in the currently played audio after the playing module plays the audio data.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.

Claims (9)

1. An audio playing method, characterized in that the audio playing method comprises the steps of:
acquiring audio data corresponding to currently played audio and position information of a refrain fragment in the currently played audio;
marking the position information in a playing progress bar of a current playing interface, wherein when a marking instruction triggered by a user based on a control on the current playing interface is received in the middle of playing of the current playing audio, if a plurality of refrain fragments of the current playing audio are provided, marking the position information corresponding to the refrain fragment after the current playing time point in the playing progress bar of the current playing interface, wherein the marking instruction is used for acquiring the position information of the refrain fragment in the current playing audio;
displaying the mark marked by the position information in the playing progress bar;
when a playing operation triggered based on the position information is received, playing the refrain fragment;
wherein, when receiving a play operation triggered based on the position information, playing the refrain fragment comprises: when receiving a playing operation triggered by dragging a progress block in the playing progress bar to the position information identifier, playing the refrain fragment; or when receiving a playing operation triggered by clicking the position information identifier in the playing progress bar, playing the refrain fragment.
2. The audio playing method according to claim 1, wherein the playing the refrain fragment upon receiving the playing operation triggered based on the position information comprises:
acquiring the number of the refrain fragments after receiving the playing operation triggered based on the position information;
and when the number of the refrain segments is multiple, sequentially playing each refrain segment according to the position information of each refrain segment, or randomly playing one refrain segment.
3. The audio playback method according to any one of claims 1-2, wherein the step of playing back the refrain segment upon receiving a playback operation triggered based on the position information comprises:
and in the playing process of the refrain fragment, when a storage instruction is received, the name of the currently played audio is stored in association with the refrain fragment.
4. The audio playback method as claimed in any one of claims 1-2, wherein the step of obtaining the position information of the refrain section in the currently played audio comprises the steps of:
when an audio playing instruction is received, acquiring audio data of audio to be played, and playing the audio data of the audio to be played;
and when the playing times of the audio to be played is smaller than a preset threshold value or the current playing mode is a preset mode, executing the step of acquiring the position information of the refrain fragment in the current playing audio.
5. An audio playback apparatus, comprising:
the acquisition module is used for acquiring audio data corresponding to the currently played audio and the position information of the refrain fragment in the currently played audio;
a display module, configured to mark the position information in a playing progress bar of a currently playing interface, where when a marking instruction triggered by a user based on a control on the currently playing interface is received in the middle of playing of the currently playing audio, if there are multiple refrain segments of the currently playing audio, the position information corresponding to the refrain segment after a current playing time point is marked in the playing progress bar of the currently playing interface, and the marking instruction is used to obtain the position information of the refrain segment in the currently playing audio; displaying the mark marked by the position information in the playing progress bar;
the playing module is used for playing the refrain fragment when receiving playing operation triggered based on the position information; wherein, when receiving a play operation triggered based on the position information, playing the refrain fragment comprises: when receiving a playing operation triggered by dragging a progress block in the playing progress bar to the position information identifier, playing the refrain fragment; or when receiving a playing operation triggered by clicking the position information identifier in the playing progress bar, playing the refrain fragment.
6. The audio playback device of claim 5, wherein the playback module comprises:
a first obtaining unit, configured to obtain the number of the refrain segments when a play operation triggered based on the position information is received;
and the playing unit is used for sequentially playing each refrain segment according to the position information of each refrain segment or randomly playing one refrain segment when the number of the refrain segments is multiple.
7. The audio playback device as claimed in any one of claims 5 to 6, wherein the audio playback device further comprises:
and the storage module is used for storing the name of the currently played audio and the refrain fragment in a correlated way when a storage instruction is received in the playing process of the refrain fragment.
8. The audio playing apparatus according to any one of claims 5 to 6, wherein the obtaining module is further configured to obtain audio data of the audio to be played when receiving an audio playing instruction; the playing module is further configured to play audio data of the audio to be played; the obtaining module is further configured to obtain position information of a refrain segment in the currently played audio when the playing frequency of the audio to be played is smaller than a preset threshold or the current playing mode is a preset mode.
9. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 4.
CN201510489411.6A 2015-08-11 2015-08-11 Audio playing method and device Active CN106448713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510489411.6A CN106448713B (en) 2015-08-11 2015-08-11 Audio playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510489411.6A CN106448713B (en) 2015-08-11 2015-08-11 Audio playing method and device

Publications (2)

Publication Number Publication Date
CN106448713A CN106448713A (en) 2017-02-22
CN106448713B true CN106448713B (en) 2021-05-14

Family

ID=58093374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510489411.6A Active CN106448713B (en) 2015-08-11 2015-08-11 Audio playing method and device

Country Status (1)

Country Link
CN (1) CN106448713B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090140A (en) * 2017-12-04 2018-05-29 维沃移动通信有限公司 A kind of playback of songs method and mobile terminal
CN109101648B (en) * 2018-08-22 2022-04-05 歌尔科技有限公司 News playing method and device
CN111028867B (en) * 2019-11-26 2022-03-11 维沃移动通信有限公司 Audio playing method and electronic equipment
CN111026305A (en) * 2019-12-09 2020-04-17 维沃移动通信有限公司 Audio processing method and electronic equipment
CN111414147A (en) * 2020-03-26 2020-07-14 广州酷狗计算机科技有限公司 Song playing method, device, terminal and storage medium
CN111935357B (en) 2020-08-17 2021-07-27 北京字节跳动网络技术有限公司 Multimedia playing method and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520808A (en) * 2008-02-29 2009-09-02 索尼株式会社 Method for visualizing audio data
CN101616496A (en) * 2008-06-24 2009-12-30 乐金电子(中国)研究开发中心有限公司 A kind of method for broadcasting multimedia file of mobile communication terminal and mobile communication terminal
CN102290082A (en) * 2011-07-05 2011-12-21 央视国际网络有限公司 Method and device for processing brilliant video replay clip
CN102467939A (en) * 2010-11-04 2012-05-23 北京彩云在线技术开发有限公司 Song audio frequency cutting apparatus and method thereof
CN103400593A (en) * 2013-07-03 2013-11-20 网易(杭州)网络有限公司 Audio-auditioning method and device
CN104270680A (en) * 2014-09-30 2015-01-07 百度在线网络技术(北京)有限公司 Resource playing control method and device
CN104735545A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio/video file playing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520808A (en) * 2008-02-29 2009-09-02 索尼株式会社 Method for visualizing audio data
CN101616496A (en) * 2008-06-24 2009-12-30 乐金电子(中国)研究开发中心有限公司 A kind of method for broadcasting multimedia file of mobile communication terminal and mobile communication terminal
CN102467939A (en) * 2010-11-04 2012-05-23 北京彩云在线技术开发有限公司 Song audio frequency cutting apparatus and method thereof
CN102290082A (en) * 2011-07-05 2011-12-21 央视国际网络有限公司 Method and device for processing brilliant video replay clip
CN103400593A (en) * 2013-07-03 2013-11-20 网易(杭州)网络有限公司 Audio-auditioning method and device
CN104270680A (en) * 2014-09-30 2015-01-07 百度在线网络技术(北京)有限公司 Resource playing control method and device
CN104735545A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio/video file playing method and system

Also Published As

Publication number Publication date
CN106448713A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106448713B (en) Audio playing method and device
CN110769309B (en) Method, device, electronic equipment and medium for displaying music points
CN104282322B (en) A kind of mobile terminal and its method and apparatus for identifying song climax parts
CN112822563A (en) Method, device, electronic equipment and computer readable medium for generating video
CN105824552B (en) A kind of recognition methods of text information and device
CN106713986B (en) Audio and video skipping playing method and device
JP6665200B2 (en) Multimedia information processing method, apparatus and system, and computer storage medium
CN105867714A (en) Application downloading method, apparatus and system
CN104898950A (en) Music control method and system
CN104751870B (en) A kind of information processing method and electronic equipment
CN104615333B (en) The group technology and play system of a kind of playback equipment
CN104199864B (en) The method and apparatus that keypad tone prompts in a kind of input process
WO2015014157A1 (en) Mobile terminal-based song recommendation method and device
CN103871433B (en) A kind of control method and electronic equipment
JP4545106B2 (en) Distribution method, distribution system, portable terminal, and computer program
CN104866477B (en) Information processing method and electronic equipment
CN102118492A (en) Key sound prompting method and device
KR101559623B1 (en) Mobile application matching method and system according to digital signage contents types
JP6630628B2 (en) Karaoke system, recommended music presentation program
CN113986083B (en) File processing method and electronic equipment
WO2018149135A1 (en) Wireless fidelity (wifi) connection method and related product
CN105279140A (en) Text display method, server, terminal and system
CN110442615B (en) Resource information processing method and device, electronic equipment and storage medium
CN106653070B (en) Audio node insertion method and device and terminal equipment
CN112650467A (en) Voice playing method and related device

Legal Events

Date Code Title Description
C06 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