CN111625677B - Audio playing method, electronic equipment and storage medium - Google Patents

Audio playing method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111625677B
CN111625677B CN202010397743.2A CN202010397743A CN111625677B CN 111625677 B CN111625677 B CN 111625677B CN 202010397743 A CN202010397743 A CN 202010397743A CN 111625677 B CN111625677 B CN 111625677B
Authority
CN
China
Prior art keywords
audio
playing
played
record
play
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
CN202010397743.2A
Other languages
Chinese (zh)
Other versions
CN111625677A (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.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010397743.2A priority Critical patent/CN111625677B/en
Publication of CN111625677A publication Critical patent/CN111625677A/en
Application granted granted Critical
Publication of CN111625677B publication Critical patent/CN111625677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/64Browsing; Visualisation therefor
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

The embodiment of the application provides an audio playing method, electronic equipment and a storage medium, wherein a terminal determines audio to be played according to audio switching operation and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position so as to avoid audiovisual fatigue, simplify the operation and save the time.

Description

Audio playing method, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to an audio playing method, an electronic device, and a storage medium.
Background
Typically, when a user switches the audio to be played, the audio is played from the beginning of the audio. For example, in the process of listening to music, a user may play music with different versions of the same content multiple times, and each time the user plays music from the beginning of the audio of the music, the user may listen to the same or similar music multiple times, which is easy to cause trial listening fatigue of the user. Of course, the user can adjust the currently played music to the play position where trial listening is desired by dragging the progress bar, but such an operation becomes very cumbersome when trial listening to a large amount of music is required.
Therefore, in the existing audio playing process, whether the played content is the same or not, the played content starts to be played from the beginning position of the audio, so that the user can listen to the same content repeatedly, audiovisual fatigue is caused, the playing position is adjusted by dragging the progress bar, and unnecessary time waste is caused due to complex operation.
Disclosure of Invention
The embodiment of the application provides an audio playing method, electronic equipment and a storage medium, which are used for solving the problems that in the existing audio playing process, whether the played content is the same or not, the playing starts from the beginning position of the audio, the repeated listening of the same content by a user is possibly caused, the audio-visual fatigue is caused, the playing position is adjusted by dragging a progress bar, and the unnecessary time waste is caused due to complex operation.
In view of the above technical problems, in a first aspect, an embodiment of the present application provides an audio playing method suitable for a server, including:
determining a history play record according to the audio to be played, which is requested to be played, wherein the history play record comprises a play record of the audio related to the audio content to be played;
and determining the initial playing position of the audio to be played according to the historical playing record, and sending the initial playing position to a terminal so that the terminal plays the audio to be played according to the initial playing position.
In a second aspect, an embodiment of the present application provides an audio playing method suitable for a terminal, including:
determining audio to be played according to the audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the audio playing method described above when the processor executes the program.
In a fourth aspect, embodiments of the present application provide a non-transitory readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the audio playback method of any one of the above.
The embodiment of the application provides an audio playing method, electronic equipment and a storage medium, wherein a terminal determines audio to be played according to audio switching operation and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position so as to avoid audiovisual fatigue, simplify the operation and save the time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an audio playing method suitable for a server according to an embodiment of the present application;
fig. 2 is a flowchart of an audio playing method suitable for a terminal according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a process of listening to a song by a user at a terminal according to another embodiment of the present application;
FIG. 4 is a schematic general flow chart of a music playing process according to another embodiment of the present application;
fig. 5 is an audio playing device suitable for a server according to another embodiment of the present application;
fig. 6 is a schematic diagram of an audio playing device suitable for a terminal according to another embodiment of the present application;
fig. 7 is a schematic physical structure of an electronic device according to another embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The present embodiment provides an audio playing method, where the audio includes music, english recording, educational recording, or audio of other contents, and the present embodiment is not limited in particular. The method is suitable for any audio playing scene, and is especially suitable for the process of listening to the audio with the same content and different versions by the user. Where the version refers to a performance version of music or a different player, or the version refers to english and american English recordings of different people. The lyrics are generally the same, the music score is the same, or the content of the english recording is the same, the content representing the audio is the same.
Fig. 1 is a flowchart of an audio playing method suitable for a server according to the present embodiment, and referring to fig. 1, the method includes:
step 101: and determining a historical play record according to the audio to be played, which is requested to be played, wherein the historical play record comprises the play record of the audio related to the audio content to be played.
Wherein the history play record is a play record of audio related to the audio content to be played, for example, a play record of the same audio as the audio content to be played.
Wherein, still include: and receiving a playing request sent by the terminal, and determining the audio to be played which is requested to be played according to the playing request. The playing request carries information of the audio to be played.
The determining the historical playing record according to the audio to be played, which is requested to be played, comprises the following steps:
and acquiring a play record of the audio related to the audio content to be played from a pre-stored play record corresponding to the terminal information or the user information as the historical play record. The terminal information is information corresponding to a terminal sending the playing request to the server, and the user information is information corresponding to a user sending the playing request through the terminal.
The historical playing record is the playing record of the audio related to the audio content to be played, wherein the content is in a preset time period. The preset time period is one day, 2 hours or 1 hour.
Step 102: and determining the initial playing position of the audio to be played according to the historical playing record, and sending the initial playing position to a terminal so that the terminal plays the audio to be played according to the initial playing position.
The initial playing position is a position for starting playing of the audio to be played. In this embodiment, the initial playing position of the audio to be played needs to be determined according to the historical playing record determined in step 101. For example, the initial playing position of the audio to be played is determined according to the historical playing record, so that the audio to be played plays the content which is not played on the playing content.
The embodiment provides an audio playing method, a terminal determines audio to be played according to audio switching operation, and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position to avoid audiovisual fatigue, thereby simplifying the operation and saving the time
For the determining process of the history play record, further, on the basis of the foregoing embodiment, the determining the history play record according to the audio to be played that is requested to be played includes:
and determining the historical play record according to the play record of the audio with the same content and/or different content from the audio to be played.
In general, the user can cause audiovisual fatigue to play repeatedly the same content, so in the process of determining the historical play record, the embodiment determines the historical play record according to the audio with the same content and/or different version from the audio with the same content, thereby determining the initial play position of the audio with the same content according to the historical play record and avoiding repeated play of the content.
Wherein, still include:
the content and version of the audio are marked in advance. For example, for music, the content and version of each piece of music are identified by the added tag fields T and B, T representing the content of the music and B representing the performance version of the music. For example, the flag fields of the performance version of music "i and my nationality" Wang Fei are T1, B1, and the flag fields of the performance version of music "i and my nationality" Li Guyi are T1, B2. T1 represents a song that is both "i and my ancestor" content, and B1 and B2 represent different versions of the song.
The following describes a scheme for determining the historical play record according to the play record of the audio with the same content or different version of the audio with the same content to be played:
wherein, according to the play record of the audio with the same content and version as the audio to be played, determining the historical play record comprises:
judging whether a play record of the audio with the same content and version as the audio to be played exists or not;
if the play record of the audio with the same content and the same version as the audio to be played exists, the play record of the audio with the same content and the same version as the audio to be played, which is played last time, is obtained and used as the historical play record.
And if the play record of the audio with the same content and version as the audio to be played does not exist, taking the audio beginning position of the audio to be played as the initial play position.
Wherein, according to the play record of the audio with the same content and different version with the audio to be played, determining the historical play record comprises:
judging whether a play record of the audio with the same content and different version with the audio to be played exists or not;
if the play record of the audio with the same content as the audio to be played and different version exists, the play record of the audio with the same content as the audio to be played and different version of the audio to be played which is played last time is obtained and used as the historical play record.
If the play record of the audio with the same content and different version with the audio to be played does not exist, taking the audio beginning position of the audio to be played as the initial play position.
The embodiment takes the audio with the same content as the audio to be played or the same version as the audio with different versions of the same content as the audio related to the audio to be played, thereby realizing the screening of the audio with the same content and avoiding the repeated playing of the audio with the same content.
Further, on the basis of the above embodiments, determining the historical play record according to the play record of the audio with the same content and a different version of the audio with the same content, includes:
judging whether a play record of the audio with the same content and the same version as the audio to be played exists or not, if so, determining the historical play record according to the play record of the audio with the same content and the same version as the audio to be played;
if the play record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical play record according to the play record of the audio with the same content and different version as the audio to be played.
In the process of determining the historical play record by combining the play records of the audios with the same content and different versions of the same content, firstly, judging whether the audios with the same content and the same version are played, if yes, determining the historical play record according to the play records of the audios with the same content and the same version, and if not, determining the historical play record according to the play records of the audios with the different versions of the same content.
Specifically, the determining the historical playing record according to the playing record of the audio with the same content and version as the audio to be played includes: and taking the playing record of the audio which is played last time and has the same content as the audio to be played as the historical playing record.
Specifically, the determining the historical play record according to the play record of the audio with the same content as the audio to be played comprises: and taking the play record of the audio which is played last time and has the same content as the audio to be played and is in a different version as the historical play record.
For example, during a music listening trial, it is sometimes necessary to listen to different versions of the same music (i.e. different versions of the same content), and if playback is always started from the beginning of the audio, playback content may be repeated. In order to avoid the repetition of the playing content, the audio playing method provided by the application can continue to play at the last playing position after judging that certain music of the same version is played. After the same version of the music is not played, whether different versions of the music are played or not can be judged, and if yes, the playing of the music of the different versions of the music played last time can be continued.
The method provided by the embodiment determines the historical play record through the play records of the audios with the same content version and the same content different versions, so that the audios to be played can be better not repeated on the played content.
Further, on the basis of the above embodiments, the method further includes:
and if the play record of the audio with the same content and the same version and the different version of the audio with the same content does not exist, taking the audio beginning position of the audio to be played as the initial play position.
If the audio related to the audio content to be played is judged not to be played, the audio to be played can be directly played from the audio beginning position of the audio to be played.
Specifically, if there is no play record of the audio with the same version as the audio to be played and the same version as the audio with the different content, the audio beginning position of the audio to be played is used as the initial play position, and the initial play position is sent to the terminal.
Or if the play record of the audio with the same content and different content is not available, sending the historical play information to the terminal to be empty, and starting the play prompt information from the audio beginning position of the audio to be played, so that the terminal starts to play from the audio beginning position of the audio to be played according to the prompt information.
According to the embodiment, under the condition that the play records of the audio with the same content and the same version and different version with the audio to be played do not exist, the terminal plays the audio to be played from the audio head position, normal play of the audio to be played is achieved, and repeated content is not played.
Further, for determining the initial playing position, on the basis of the foregoing embodiments, the determining, according to the historical playing record, the initial playing position of the audio to be played includes:
determining the initial playing position of the audio to be played according to the audio playing progress recorded by the historical playing record;
the audio playing progress comprises a playing end position, a playing proportion and a playing duration.
Wherein determining the initial playing position of the audio to be played according to the playing end position recorded by the historical playing record comprises:
and determining a corresponding playing position of the playing ending position in the audio to be played according to the playing position marked in the audio in advance, and taking the determined playing position as the initial playing position. Wherein, the playing position is a position added with a mark according to the playing content (such as lyrics and text content) or playing time of the audio in advance.
Wherein, determining the initial playing position of the audio to be played according to the playing proportion recorded by the historical playing record comprises:
and determining an unplayed part in the audio to be played according to the playing proportion, and taking the starting position of the unplayed part as the initial playing position. The audio beginning position and the audio ending position are marked for each video in advance, so that when the total playing duration of the audio of the same content is the same, the corresponding playing content at the same playing proportion is the same.
It should be noted that, in order to ensure that the start playing position can coincide with the playing end position in the history playing record as much as possible, the audio beginning position and the audio end position may be marked in advance for the same audio, so that each of the played portion and the non-played portion of the audio can be accurately positioned according to the playing proportion. The audio start position and the audio end position may be marked according to background music, or may be marked according to the playing content (e.g., lyrics, text), which is not particularly limited in this embodiment.
Wherein, determining the initial playing position of the audio to be played according to the playing time recorded by the historical playing record includes:
and determining the playing proportion of the audio corresponding to the historical playing record according to the playing time recorded by the historical playing record, and determining the initial playing position according to the playing proportion.
Wherein determining the initial play position according to the play ratio includes:
determining the played time length of the audio to be played according to the playing proportion and the total audio time length of the audio to be played, and determining the starting playing time point of the audio to be played according to the played time length as the starting playing position.
Wherein, according to the playing proportion and the total audio duration of the audio to be played, determining the played duration of the audio to be played includes: and calculating the played time length obtained by multiplying the playing proportion by the total time length of the audio, and calculating the time point of the audio beginning position of the audio to be played plus the time point determined after the played time length as the initial playing position. For example, when the beginning position of the marked audio in the audio to be played is 00:58 seconds of the audio, the played duration of the audio to be played is 38 seconds, and the initial playing position is 01:36 seconds.
According to the embodiment, the initial playing position is determined through the audio playing progress, so that the audio to be played does not play repeatedly the content which has been played in a short time.
In the process of determining the play start point, some clips not needed to be played can be skipped, and further, on the basis of the above embodiments, the method further includes:
if the initial playing position is located in a preset skip range, acquiring the ending position of the preset skip range;
and adjusting the initial playing position to be the ending position of the preset skip range.
The preset skip range is a set time period which is not required to be played in the audio listening process. When the audio is played to the starting position of the preset skip range, the audio is automatically skipped to the ending position of the preset skip range to start playing.
The preset skip range is a time period which is set by people and does not need to be played in the listening process, for example, the preset skip range is usually an interactive sound with the scene inserted in the music playing process, and the preset skip range is [01:20, 01:40].
According to the method and the device, through setting of the preset jump range, play of nonsensical clips in the audio trial process is avoided, and user trial listening efficiency is improved.
Fig. 2 is a flowchart of an audio playing method suitable for a terminal according to the present embodiment, and referring to fig. 2, the method includes:
step 201: determining audio to be played according to the audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server.
Among other things, audio switching operations include user triggering operations on the next audio (e.g., clicking on a "next audio" play control) and triggering operations on any audio in the audio list (e.g., clicking on a certain audio in the audio list).
Specifically, according to the audio switching operation, determining audio to be played from an audio play list, and generating the play request.
The embodiment provides an audio playing method, a terminal determines audio to be played according to audio switching operation, and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position so as to avoid audiovisual fatigue, simplify the operation and save the time.
Further, on the basis of the above embodiment, the method further includes:
and receiving an initial playing position for playing the audio to be played, which is sent by the server, and playing the audio to be played according to the initial playing position.
Wherein, still include: and displaying text information corresponding to the currently played content in the process of playing the audio to be played according to the initial playing position. For example, when the audio to be played is played from the initial playing position, the lyrics of the audio to be played are displayed from the lyrics corresponding to the initial playing position.
For example, fig. 3 is a schematic diagram of a process of listening to a song by a user at a terminal according to the present embodiment, and referring to fig. 3, the process includes: the user searches songs to obtain a search list (i.e., a playlist); the user clicks a certain song in the search list to start trial listening; the user switches to the next listening trial.
In order to explain the above-mentioned overall process involving the server and the terminal, fig. 4 is a schematic general flow chart of the music playing process provided in this embodiment, and referring to fig. 4, the process includes the following contents:
(1) A marking field is added in a song information input background, and relates to a storage module of a server side.
The song is entered into the system by adding detailed information of the song, such as the time node of interaction of singers and audiences in front of live performance version, the time node of beginning song music, the time node of beginning lyrics, and the like. And then add a tag field to the song that indicates the content and version.
(2) The background records the current listening song information when the user searches and clicks listening, and relates to a communication module.
When a user clicks a song to listen on trial, the client acquires the information of the song from the server to play, the server records the song which is currently being listened on trial, and the mark bit onPlay is set for the song.
(3) And uploading the playing progress of the current listening song and the information of the song to be played when the user switches the songs, and detecting whether the background is different versions of the same song or not. To a communication module and a detection module.
When the user clicks to switch the next listening trial, the terminal records the listening trial progress of the song, including the relative time (from song music), absolute time (some live performance versions have some non-music information, the relative time needs to be removed from the time interval), and the words to which the lyrics are sung, and the like, and uploads the information to the server storage module for storage. And uploading the information of the to-be-played song to the server, detecting by the detection module, and if the T of the to-be-played song is consistent with the T of the current song, indicating that the to-be-played song is another playing version of the song, then playing the current song downwards according to the progress of the current song, and transmitting the detection result to the server matching module.
(4) And according to the detection result, the background processes and returns the playing start progress of the songs to be played at the client, and the background processes and returns the playing start progress of the songs to be played at the client to the matching module and the communication module of the server. If a different version of the same song is not played and the song is not played, the song is played from scratch. If the song to be played is listened to on trial today and the playing progress is not 100%, then the last playing progress of the song is played. And after receiving the lyrics, the client plays the lyrics according to the returned play start time, and synchronously displays the lyrics.
The audio playing method provided by the application enables continuous playing to be switched when searching songs and listening to songs, can optimize listening experience of users and increases listening interest.
Fig. 5 is an audio playing device suitable for a server provided in this embodiment, referring to fig. 5, the device includes a first determining module 501 and a second determining module 502, where,
a first determining module 501, configured to determine a historical play record according to the audio to be played that is requested to be played, where the historical play record includes a play record of audio related to the audio content to be played;
the second determining module 502 is configured to determine a start playing position of the audio to be played according to the historical playing record, and send the start playing position to a terminal, so that the terminal plays the audio to be played according to the start playing position.
The audio playing device provided in this embodiment is applicable to the audio playing method corresponding to the server provided in each embodiment, and will not be described herein.
The embodiment provides an audio playing device, a terminal determines audio to be played according to audio switching operation, and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position so as to avoid audiovisual fatigue, simplify the operation and save the time.
Further, on the basis of the foregoing embodiment, the determining the historical play record according to the audio to be played that is requested to be played includes:
and determining the historical play record according to the play record of the audio with the same content and/or different content from the audio to be played.
Further, on the basis of the above embodiment, determining the historical play record according to the play record of the audio with the same content and a different version of the audio with the same content, includes:
judging whether a play record of the audio with the same content and the same version as the audio to be played exists or not, if so, determining the historical play record according to the play record of the audio with the same content and the same version as the audio to be played;
if the play record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical play record according to the play record of the audio with the same content and different version as the audio to be played.
Further, on the basis of the above embodiment, the method further includes:
and if the play record of the audio with the same content and the same version and the different version of the audio with the same content does not exist, taking the audio beginning position of the audio to be played as the initial play position.
Further, on the basis of the foregoing embodiment, the determining, according to the historical play record, a start play position of the audio to be played includes:
determining the initial playing position of the audio to be played according to the audio playing progress recorded by the historical playing record;
the audio playing progress comprises a playing end position, a playing proportion and a playing duration.
Further, on the basis of the above embodiment, the method further includes:
if the initial playing position is located in a preset skip range, acquiring the ending position of the preset skip range;
and adjusting the initial playing position to be the ending position of the preset skip range.
Fig. 6 is an audio playing device suitable for a terminal provided in this embodiment, referring to fig. 6, the device includes a generating module 601, where,
the generating module 601 is configured to determine audio to be played according to an audio switching operation, generate a play request for requesting to play the audio to be played, and send the play request to a server.
The audio playing device provided in this embodiment is applicable to the audio playing method corresponding to the terminal provided in each embodiment, and will not be described herein.
The embodiment provides an audio playing device, a terminal determines audio to be played according to audio switching operation, and sends a playing request to a server. The server determines a play record of the audio related to the audio content to be played as a historical play record, determines a starting play position of the audio to be played according to the historical play record, and sends the starting play position to the terminal so that the terminal plays the audio to be played according to the starting play position. When the audio to be played is played, the initial playing position is automatically adjusted according to the historical playing record, the audio is not played from the audio beginning position of the audio every time, and the audio-visual fatigue caused by the repeated listening of the same content by a user is avoided. The user does not need to drag the progress bar to manually adjust the initial playing position so as to avoid audiovisual fatigue, simplify the operation and save the time.
Fig. 7 illustrates a physical schematic diagram of an electronic device, as shown in fig. 7, which may include: a processor (processor) 701, a communication interface (Communications Interface) 702, a memory (memory) 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to perform the following method: determining a history play record according to the audio to be played, which is requested to be played, wherein the history play record comprises a play record of the audio related to the audio content to be played; and determining the initial playing position of the audio to be played according to the historical playing record, and sending the initial playing position to a terminal so that the terminal plays the audio to be played according to the initial playing position. Or determining the audio to be played according to the audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server.
Further, the logic instructions in the memory 703 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Further, embodiments of the present application disclose a computer program product comprising a computer program stored on a non-transitory readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the above-described method embodiments, for example comprising: determining a history play record according to the audio to be played, which is requested to be played, wherein the history play record comprises a play record of the audio related to the audio content to be played; and determining the initial playing position of the audio to be played according to the historical playing record, and sending the initial playing position to a terminal so that the terminal plays the audio to be played according to the initial playing position. Or determining the audio to be played according to the audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server.
In another aspect, an embodiment of the present application further provides a non-transitory readable storage medium having stored thereon a computer program that is implemented when executed by a processor to perform the transmission method provided in the above embodiments, for example, including: determining a history play record according to the audio to be played, which is requested to be played, wherein the history play record comprises a play record of the audio related to the audio content to be played; and determining the initial playing position of the audio to be played according to the historical playing record, and sending the initial playing position to a terminal so that the terminal plays the audio to be played according to the initial playing position. Or determining the audio to be played according to the audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present application without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (6)

1. An audio playing method, comprising:
determining a history play record according to the audio to be played, which is requested to be played, wherein the history play record comprises a play record of the audio related to the audio content to be played;
determining a starting playing position of the audio to be played according to the historical playing record, and sending the starting playing position to a terminal so that the terminal plays the audio to be played according to the starting playing position;
the determining the historical playing record according to the audio to be played, which is requested to be played, comprises the following steps:
determining the historical play record according to the play record of the audio with the same content and/or different versions of the same content with the audio to be played;
according to the play records of the audio with the same content and different versions of the same content, the historical play record is determined, and the method comprises the following steps:
judging whether a play record of the audio with the same content and the same version as the audio to be played exists or not, if so, determining the historical play record according to the play record of the audio with the same content and the same version as the audio to be played;
if the play record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical play record according to the play record of the audio with the same content and different version as the audio to be played;
the determining the initial playing position of the audio to be played according to the historical playing record comprises the following steps:
determining the initial playing position of the audio to be played according to the audio playing progress recorded by the historical playing record;
the audio playing progress comprises a playing end position, a playing proportion and a playing duration.
2. The audio playing method according to claim 1, further comprising:
and if the play record of the audio with the same content and the same version and the different version of the audio with the same content does not exist, taking the audio beginning position of the audio to be played as the initial play position.
3. The audio playing method according to claim 1, further comprising:
if the initial playing position is located in a preset skip range, acquiring the ending position of the preset skip range;
and adjusting the initial playing position to be the ending position of the preset skip range.
4. An audio playing method, comprising:
determining audio to be played according to audio switching operation, generating a playing request for requesting to play the audio to be played, and sending the playing request to a server so that the server determines a historical playing record according to the playing record of the audio with the same content and/or different versions of the same content with the audio to be played, and determines the initial playing position of the audio to be played according to the historical playing record, wherein the historical playing record comprises the playing record of the audio related to the content of the audio to be played;
receiving an initial playing position for playing the audio to be played, which is sent by the server, and playing the audio to be played according to the initial playing position;
according to the play records of the audio with the same content and different versions of the same content, the historical play record is determined, and the method comprises the following steps:
judging whether a play record of the audio with the same content and the same version as the audio to be played exists or not, if so, determining the historical play record according to the play record of the audio with the same content and the same version as the audio to be played;
if the play record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical play record according to the play record of the audio with the same content and different version as the audio to be played;
the determining the initial playing position of the audio to be played according to the historical playing record comprises the following steps:
determining the initial playing position of the audio to be played according to the audio playing progress recorded by the historical playing record;
the audio playing progress comprises a playing end position, a playing proportion and a playing duration.
5. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the audio playing method according to any one of claims 1 to 4 when the program is executed by the processor.
6. A non-transitory readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the audio playback method of any one of claims 1 to 4.
CN202010397743.2A 2020-05-12 2020-05-12 Audio playing method, electronic equipment and storage medium Active CN111625677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010397743.2A CN111625677B (en) 2020-05-12 2020-05-12 Audio playing method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010397743.2A CN111625677B (en) 2020-05-12 2020-05-12 Audio playing method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111625677A CN111625677A (en) 2020-09-04
CN111625677B true CN111625677B (en) 2023-09-19

Family

ID=72270978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010397743.2A Active CN111625677B (en) 2020-05-12 2020-05-12 Audio playing method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111625677B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872800A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Continuous playing method and terminal device after audio/video file is muted
CN106887244A (en) * 2015-12-15 2017-06-23 广州酷狗计算机科技有限公司 audio switching method and device
CN108846054A (en) * 2018-05-31 2018-11-20 出门问问信息科技有限公司 A kind of audio data continuous playing method and device
CN109379491A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN109640126A (en) * 2018-12-28 2019-04-16 北京奇艺世纪科技有限公司 A kind of video broadcasting method, system and device and computer readable storage medium
CN110139127A (en) * 2019-05-21 2019-08-16 北京声智科技有限公司 Audio file play method, server, intelligent sound box and play system
TW202004486A (en) * 2018-05-30 2020-01-16 大陸商出門問問信息科技有限公司 A method and an apparatus for continuously broadcasting audio data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092654B (en) * 2014-01-22 2016-03-02 腾讯科技(深圳)有限公司 media playing method, client and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872800A (en) * 2015-12-14 2016-08-17 乐视网信息技术(北京)股份有限公司 Continuous playing method and terminal device after audio/video file is muted
CN106887244A (en) * 2015-12-15 2017-06-23 广州酷狗计算机科技有限公司 audio switching method and device
TW202004486A (en) * 2018-05-30 2020-01-16 大陸商出門問問信息科技有限公司 A method and an apparatus for continuously broadcasting audio data
CN108846054A (en) * 2018-05-31 2018-11-20 出门问问信息科技有限公司 A kind of audio data continuous playing method and device
CN109379491A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN109640126A (en) * 2018-12-28 2019-04-16 北京奇艺世纪科技有限公司 A kind of video broadcasting method, system and device and computer readable storage medium
CN110139127A (en) * 2019-05-21 2019-08-16 北京声智科技有限公司 Audio file play method, server, intelligent sound box and play system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Alec McLane.FiddlingWayOutYonder:TheLifeandMusicofMelvinWine(review).2004,第60卷(第4期),全文. *
冯玲 ; 杨婷婷 ; 冒蓉 ; .互联网时代音乐的电视传播发展新探.艺术评鉴.2017,(第24期),全文. *
王天逸 ; 章宗标 ; 王敏 ; .一种音频样例重复检测方法的研究.浙江树人大学学报(自然科学版).2013,(第01期),全文. *

Also Published As

Publication number Publication date
CN111625677A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US20160286264A1 (en) Media playback method, client and system
US20070265720A1 (en) Content marking method, content playback apparatus, content playback method, and storage medium
JP4665776B2 (en) Electronic musical instrument and music information provision server
JP2019091014A (en) Method and apparatus for reproducing multimedia
CN110677735A (en) Video positioning method and device
JP2003177784A (en) Method and device for extracting sound turning point, method and device for sound reproducing, sound reproducing system, sound delivery system, information providing device, sound signal editing device, recording medium for sound turning point extraction method program, recording medium for sound reproducing method program, recording medium for sound signal editing method program, sound turning point extraction method program, sound reproducing method program, and sound signal editing method program
CN104994433A (en) Method and device for providing video file
JP5029644B2 (en) Karaoke network system
CN111625677B (en) Audio playing method, electronic equipment and storage medium
JP5986387B2 (en) Information processing program, information processing apparatus, lyrics display method, and communication system
CN111031382A (en) Method for controlling playing progress of media file
JP4865469B2 (en) Content production server, content presentation device, content production program, and content presentation program
JP6215866B2 (en) Internet video playback system and program
JP2014194471A (en) Karaoke device, karaoke program, and recording medium
JP6326917B2 (en) Server device, conference review system, and conference review method
CN114582348A (en) Voice playing system, method, device and equipment
CN108322816B (en) Method and system for playing background music in broadcast program
JP4365087B2 (en) Method and apparatus for providing content via network, and method and apparatus for acquiring content
JP2006201477A (en) Server, client, and communication system
CN107424640A (en) A kind of audio frequency playing method and device
JP6367882B2 (en) Client terminal and internet video playback system provided with the same
JP4682652B2 (en) REPRODUCTION DEVICE, CONTENT REPRODUCTION SYSTEM, AND PROGRAM
US11228802B2 (en) Video distribution system, video generation method, and reproduction device
JP6980942B1 (en) Playback terminal, playback method, program, recording medium, and music playback system
JP2008052098A (en) Music data reproduction system, server device, music data reproducing method, and music data delivery method

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