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

Audio playing method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111625677A
CN111625677A CN202010397743.2A CN202010397743A CN111625677A CN 111625677 A CN111625677 A CN 111625677A CN 202010397743 A CN202010397743 A CN 202010397743A CN 111625677 A CN111625677 A CN 111625677A
Authority
CN
China
Prior art keywords
audio
playing
played
record
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010397743.2A
Other languages
Chinese (zh)
Other versions
CN111625677B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/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

Abstract

The embodiment of the invention provides an audio playing method, electronic equipment and a storage medium. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving the time.

Description

Audio playing method, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an audio playing method, an electronic device, and a storage medium.
Background
Generally, when a user switches the played audio, the audio starts playing from the audio start position of the audio. For example, in the process of listening to music on trial, a user may play music of different versions of the same content for multiple times, and since the music is played from the beginning of the audio of the music each time, the user may listen to the same or similar music for multiple times, which may easily cause fatigue in listening on trial. Of course, the user can adjust the currently played music to the playing position to be listened to on trial by dragging the progress bar, but when a large amount of music needs to be listened to on trial, such an operation becomes very cumbersome.
Therefore, in the existing audio playing process, no matter whether the played content is the same or not, the playing can be started from the audio starting position, so that the user can repeatedly listen to the same content, the audio and video 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 invention 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, playing can be started from the beginning position of audio no matter whether the played content is the same or not, so that a user can repeatedly listen to the same content to cause audio-visual fatigue, and unnecessary time waste is caused by dragging a progress bar to adjust the playing position.
In view of the foregoing technical problems, in a first aspect, an embodiment of the present invention provides an audio playing method applicable to a server, including:
determining a historical play record according to the audio to be played which is requested to be played, wherein the historical play record comprises a play record of the audio related to the content of the audio 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 invention provides an audio playing method suitable for a terminal, including:
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.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the audio playing method described above when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the audio playing method described in any one of the above.
The embodiment of the invention provides an audio playing method, electronic equipment and a storage medium. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving the time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an audio playing method applied to a server according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an audio playing method suitable for a terminal according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a process for a user to listen to a song on trial at a terminal according to another embodiment of the present invention;
FIG. 4 is a schematic flowchart of a music playing process according to another embodiment of the present invention;
fig. 5 is an audio playing apparatus suitable for a server according to another embodiment of the present invention;
fig. 6 is an audio playing apparatus suitable for a terminal according to another embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment provides an audio playing method, where the audio includes audio of music, english recording, teaching recording, or other contents, and the embodiment does not specifically limit this. Any audio playing scene is suitable for the audio playing method provided by the application, and the method is particularly suitable for the process of auditioning the audios with the same content and different versions by a user. Wherein, the version refers to the playing version of music or different players, or the version refers to English style and American style of English, and English recording of different persons. Generally, the same lyrics, the same score, or the same content of english recording indicate the same content of audio.
Fig. 1 is a schematic flowchart of an audio playing method suitable for a server according to this embodiment, and referring to fig. 1, the method includes:
step 101: and determining a historical play record according to the audio to be played requested to be played, wherein the historical play record comprises the play record of the audio related to the audio content to be played.
The history playing record is a playing record of audio related to the audio content to be played, for example, a playing record of the same audio as the audio content to be played.
Wherein, still include: receiving a playing request sent by a terminal, and determining the audio to be played requested to be played according to the playing request. The playing request carries the information of the audio to be played.
Wherein, the determining the historical playing record according to the audio to be played requested to be played comprises:
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, and taking the play record as the historical play record. The terminal information is information corresponding to a terminal which sends the playing request to a server, and the user information is information corresponding to a user which sends the playing request through the terminal.
The historical playing record is the playing record of the content in the preset time period and the audio related to the audio content to be played. 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.
And the starting playing position is the position for starting playing the audio to be played. In this embodiment, the starting playing position of the audio to be played needs to be determined according to the history playing record determined in step 101. For example, the starting playing position of the audio to be played is determined according to the history 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, wherein a terminal determines an audio to be played according to an audio switching operation and sends a playing request to a server. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving the time
For the determination process of the history playing record, further, on the basis of the foregoing embodiment, the determining the history playing record according to the audio to be played requested to be played includes:
and determining the historical playing record according to the playing record of the audio with the same content and/or different versions of the same content as the audio to be played.
Therefore, in the process of determining the history playing record, the history playing record is determined according to the audio of the same version as the audio to be played and/or the audio of a different version from the audio to be played, so that the starting playing position of the audio to be played is determined according to the history playing record, and the repeated playing of the content is avoided.
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 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 musical performance versions of "me and my motherland" royal phenanthrene are T1, B1, and the flag fields of the musical performance versions of "me and my motherland" lugo-one are T1, B2. T1 indicates that both are songs of the content "i and my motherland", and B1 and B2 indicate that both are different versions of the song.
The following introduces a scheme of determining the historical play record according to the play record of the audio with the same content and the same version or different version as the audio to be played:
wherein, according to the playing record of the audio with the same content and version as the audio to be played, determining the historical playing record comprises:
judging whether a playing record of the audio with the same content and version as the audio to be played exists;
if the playing record of the audio with the same content and version as the audio to be played exists, the playing record of the audio which is played last time and has the same content and version as the audio to be played is obtained and used as the historical playing record.
And if the playing record of the audio with the same content and version as the audio to be played does not exist, taking the audio starting position of the audio to be played as the initial playing position.
Wherein, according to the playing record of the audio with the same content and different version as the audio to be played, determining the historical playing record comprises:
judging whether a playing record of the audio with the same content and different version with the audio to be played exists;
if the playing record of the audio with the same content and different version as the audio to be played exists, the playing record of the audio which is played last time and has the same content and different version as the audio to be played is obtained and used as the historical playing record.
And if the playing record of the audio with the same version as the audio to be played in the content is not available, taking the audio starting position of the audio to be played as the initial playing position.
The embodiment takes the audio with the same content and the same version or different versions of the audio to be played as the audio related to the audio content to be played, so that the audio with the same content is screened, and the repeated playing of the audio with the same content is avoided.
Further, on the basis of the foregoing embodiments, determining the historical playing record according to the playing record of the audio of the same content and different version as the audio to be played includes:
judging whether a playing record of the audio with the same content and version as the audio to be played exists, if so, 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;
and if the playing record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical playing record according to the playing record of the audio with the same content and the different version as the audio to be played.
In the process of determining the historical playing record by combining the playing records of the audios with the same content and the same version and different versions, whether the audio with the same content and the same version is played is judged, if so, the historical playing record is determined according to the playing record of the audio with the same content and the same version, and otherwise, the historical playing record is determined according to the playing record of the audio with the same content and different versions.
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 and version as the audio to be played as the historical playing record.
Specifically, the determining the historical playing record according to the playing record of the audio of the version different from the content of the audio to be played includes: and taking the playing record of the audio which is played last time and has the same content with the audio to be played and different version as the historical playing record.
For example, in the process of music listening trial, sometimes different versions of the same music (i.e. different versions of different contents) need to be listened to on trial, and if the music is always played from the beginning of the audio each time, the played contents 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 position played last time after judging that certain music of the same version is played. After the music of the same version is not played, whether different versions of the music are played or not can be judged, and if yes, the music of different versions of the music played last time can be continued to be played.
The method provided by the embodiment determines the historical playing record through the playing records of the audios of the same content, the same version and the different versions of the same content, so that the audio to be played can be better not repeated on the playing content.
Further, on the basis of the above embodiments, the method further includes:
and if the playing record of the audio with the same content and the same content but different versions does not exist, taking the audio starting position of the audio to be played as the initial playing position.
And if the audio related to the audio content to be played is not played, the audio to be played can be directly played from the audio starting position of the audio to be played.
Specifically, if there is no play record of the audio of the same content and the same version as the audio to be played, the audio start position of the audio to be played is taken as the initial play position, and the initial play position is sent to the terminal.
Or if the playing record of the audio with the same content and the same version as the audio to be played does not exist, sending a prompt message that the historical playing information is empty and the audio starts to be played from the audio starting position of the audio to be played to the terminal, so that the terminal starts to play from the audio starting position of the audio to be played according to the prompt message.
In the embodiment, under the condition that the playing record of the audio with the same content and the same content but different versions does not exist, the terminal plays the audio to be played from the audio starting position, so that the normal playing of the audio to be played is realized, and the repeated content is not played.
For the determination of the starting playing position, further, on the basis of the foregoing embodiments, the determining the starting playing position of the audio to be played according to the historical playing record 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 ending position, a playing proportion and a playing duration.
Wherein, according to the playing end position recorded by the history playing record, determining the starting playing position of the audio to be played 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 starting playing position. The playing position is a position to which a mark is added in advance according to the playing content (e.g. lyrics, text content) or the playing time of the audio.
Wherein, according to the play proportion recorded by the history play record, determining the initial play position of the audio to be played 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 starting playing position. The audio starting position and the audio ending position are marked for each video in advance, so that when the total playing time of the audio with 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 start position and the audio end position may be marked in advance for the audio with the same content, so that each of the played part and the unplayed part of the audio can be accurately positioned according to the playing ratio. The audio start position and the audio end position may be marked according to background music or according to playing content (e.g., lyrics, text), which is not limited in this embodiment.
Wherein, according to the playing duration recorded by the history playing record, determining the initial playing position of the audio to be played comprises:
and determining the playing proportion of the audio corresponding to the historical playing record according to the playing duration recorded by the historical playing record, and determining the initial playing position according to the playing proportion.
Wherein, determining the initial playing position according to the playing proportion comprises:
and 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 initial playing time point of the audio to be played as the initial playing position according to the played time length.
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, wherein the determining comprises the following steps: and calculating the played time length obtained by multiplying the playing proportion by the total audio time length, and calculating the time point of the audio starting position of the audio to be played plus the time point determined after the played time length is added as the initial playing position. For example, the audio start position marked in the audio to be played is 00:58 seconds of the audio, the played time length of the audio to be played is 38 seconds, and the initial playing position is 01:36 seconds.
The embodiment realizes the determination of the initial playing position through the audio playing progress, so that the audio to be played does not repeat playing the played content in a short time.
In the process of determining the playing start point, some segments that do not need to be played may be skipped, and further, on the basis of the foregoing embodiments, the method further includes:
if the starting playing position is located in a preset skip playing range, acquiring an ending position of the preset skip playing range;
and adjusting the starting playing position to be the end position of the preset skip playing range.
The preset skip-playing range is a set time period in which playing is not needed in the audio listening process. When the audio is played to the starting position of the preset jumping play range, the audio automatically jumps to the ending position of the preset jumping play range to start playing.
The preset skip-playing range is a time period which is set manually and does not need to be played in the listening process, for example, the preset skip-playing range is usually the sound which is inserted in the music playing process and interacts with the live, and the preset skip-playing range is [01:20, 01:40 ].
According to the embodiment, the play of the meaningless segment in the audio test-play process is avoided by setting the preset skip-play range, and the user test-listening efficiency is improved.
Fig. 2 is a schematic flowchart of an audio playing method suitable for a terminal according to this embodiment, and referring to fig. 2, the method includes:
step 201: 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.
The audio switching operation comprises a triggering operation of a next audio (for example, clicking on a 'next audio' playing control) by a user and a triggering operation of any audio in the audio list (for example, clicking on a certain audio in the audio list).
Specifically, the audio to be played is determined from the audio play list according to the audio switching operation, and the play request is generated.
The embodiment provides an audio playing method, wherein a terminal determines an audio to be played according to an audio switching operation and sends a playing request to a server. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving 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 starting playing position, the lyrics of the audio to be played are displayed from the lyrics corresponding to the starting playing position.
For example, fig. 3 is a schematic diagram of a process of listening to a song on a terminal by a user in the embodiment, and referring to fig. 3, the process includes: a user searches songs to obtain a search list (namely a play list); clicking a certain song in the search list by the user to start audition; the user switches to the next trial listening.
To explain the overall process of the server and the terminal, fig. 4 is a general flow chart of the music playing process provided in this embodiment, and referring to fig. 4, the process includes the following contents:
(1) the song information is recorded into a background and added with a mark field, and relates to a storage module of a server.
When the song is recorded into the system, detailed information of the song is added, such as a time node of interaction between an singer and an audience in front of a live performance version, a time node of music start of the song, a time node of lyric start and the like. A tag field is then added to the song indicating the content and version.
(2) A background records the current audition song information when a user searches for clicking audition, and relates to a communication module.
When a user clicks a song for audition at a client, the client acquires the information of the song from a server for playing, the server records the song currently audited, and a mark position onPlay is set for the song.
(3) And uploading the playing progress of the current audition song and the information of the song to be played when the user switches the songs, and detecting whether the current audition song is different from the current audition song or not by the background. To a communication module and a detection module.
When a user clicks and switches to the next song for trial listening, the terminal records the trial listening progress of the song, and the information comprises relative time (from the music of the song), absolute time (some live performance versions have some non-music information, and the time interval needs to be removed in the relative time), words sung by the lyrics and the like is uploaded to the server storage module for storage. Meanwhile, the information of the song to be played is uploaded to the server, the detection module detects whether the T of the song to be played is consistent with that of the current song, if the T of the song to be played is consistent with that of the current song, the song to be played is the other playing version of the song, the song to be played is played downwards according to the progress of the current song during playing, and then the detection result is transmitted to the server matching module.
(4) And according to the detection result, the background processes and returns the playing starting progress of the song to be played at the client, and the matching module and the communication module of the server are involved. If there are different versions of the same song that have not been played, then the song is played from the beginning. If the song to be played is listened to by trial today and the playing progress is not 100%, then the song is played according to the last playing progress. And after receiving the lyrics, the client plays the lyrics according to the returned play start time, and the lyrics are synchronously displayed.
The audio playing method provided by the application enables the user to switch to continue playing when the user finds the song and auditorily listens to the song, can optimize auditorily listening experience of the user, and increases auditorily listening interestingness.
Fig. 5 is an audio playing apparatus suitable for a server according to the present embodiment, and referring to fig. 5, the apparatus includes a first determining module 501 and a second determining module 502, wherein,
a first determining module 501, configured to determine a historical playing record according to the to-be-played audio requested to be played, where the historical playing record includes a playing record of audio related to the to-be-played audio content;
a second determining module 502, configured to determine an initial playing position of the audio to be played according to the historical playing record, and send the initial playing position to a terminal, so that the terminal plays the audio to be played according to the initial playing position.
The audio playing apparatus provided in this embodiment is suitable for the audio playing method corresponding to the server provided in the foregoing embodiments, and details are not repeated herein.
The embodiment provides an audio playing device, wherein a terminal determines an audio to be played according to an audio switching operation and sends a playing request to a server. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving the time.
Further, on the basis of the above embodiment, the determining a history playing record according to the audio to be played requested to be played includes:
and determining the historical playing record according to the playing record of the audio with the same content and/or different versions of the same content as the audio to be played.
Further, on the basis of the foregoing embodiment, determining the historical playing record according to a playing record of an audio of the same content and the same content but different version as the audio to be played includes:
judging whether a playing record of the audio with the same content and version as the audio to be played exists, if so, 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;
and if the playing record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical playing record according to the playing record of the audio with the same content and the different version as the audio to be played.
Further, on the basis of the above embodiment, the method further includes:
and if the playing record of the audio with the same content and the same content but different versions does not exist, taking the audio starting position of the audio to be played as the initial playing position.
Further, on the basis of the above embodiment, the determining the starting playing position of the audio to be played according to the historical playing record 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 ending position, a playing proportion and a playing duration.
Further, on the basis of the above embodiment, the method further includes:
if the starting playing position is located in a preset skip playing range, acquiring an ending position of the preset skip playing range;
and adjusting the starting playing position to be the end position of the preset skip playing range.
Fig. 6 is an audio playing apparatus suitable for a terminal according to the present embodiment, and referring to fig. 6, the apparatus includes a generating module 601, wherein,
the generating module 601 is configured to determine an audio to be played according to an audio switching operation, generate a playing request requesting to play the audio to be played, and send the playing request to a server.
The audio playing apparatus provided in this embodiment is suitable for the audio playing method corresponding to the terminal provided in the foregoing embodiments, and details are not repeated herein.
The embodiment provides an audio playing device, wherein a terminal determines an audio to be played according to an audio switching operation and sends a playing request to a server. The server determines a playing record of the audio related to the content of the audio to be played as a historical playing record, determines an initial playing position of the audio to be played according to the historical playing record, and sends the initial playing position to the terminal, so that the terminal plays the audio to be played according to the initial playing 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 starting position of the audio every time, and the audio-visual fatigue caused by 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 audio-visual fatigue, thereby simplifying the operation and saving the time.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device 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 complete communication 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 historical play record according to the audio to be played which is requested to be played, wherein the historical play record comprises a play record of the audio related to the content of the audio 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 the server.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the 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, the computer is capable of performing the method provided by the above-mentioned method embodiments, for example, including: determining a historical play record according to the audio to be played which is requested to be played, wherein the historical play record comprises a play record of the audio related to the content of the audio 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 the server.
In another aspect, an embodiment of the present invention further provides a non-transitory readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, for example, the method includes: determining a historical play record according to the audio to be played which is requested to be played, wherein the historical play record comprises a play record of the audio related to the content of the audio 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 the server.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding, the above technical solutions may be embodied 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., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An audio playing method, comprising:
determining a historical play record according to the audio to be played which is requested to be played, wherein the historical play record comprises a play record of the audio related to the content of the audio 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.
2. The audio playing method according to claim 1, wherein the determining a history playing record according to the audio to be played requested to be played comprises:
and determining the historical playing record according to the playing record of the audio with the same content and/or different versions of the same content as the audio to be played.
3. The audio playing method according to claim 2, wherein determining the historical playing record according to the playing record of the audio with the same content and the same content but different version as the audio to be played comprises:
judging whether a playing record of the audio with the same content and version as the audio to be played exists, if so, 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;
and if the playing record of the audio with the same content and the same version as the audio to be played does not exist, determining the historical playing record according to the playing record of the audio with the same content and the different version as the audio to be played.
4. The audio playing method according to claim 1, further comprising:
and if the playing record of the audio with the same content and the same content but different versions does not exist, taking the audio starting position of the audio to be played as the initial playing position.
5. The audio playing method according to claim 1, wherein the determining a starting playing position of the audio to be played according to the historical playing record comprises:
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 ending position, a playing proportion and a playing duration.
6. The audio playing method according to claim 1, further comprising:
if the starting playing position is located in a preset skip playing range, acquiring an ending position of the preset skip playing range;
and adjusting the starting playing position to be the end position of the preset skip playing range.
7. 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.
8. The audio playing method according to claim 7, further comprising:
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.
9. 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 steps of the audio playback method according to any of claims 1 to 8 are implemented when the processor executes the program.
10. A non-transitory readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the audio playback method according to any one of claims 1 to 8.
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 true CN111625677A (en) 2020-09-04
CN111625677B 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 (8)

* 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
US20160286264A1 (en) * 2014-01-22 2016-09-29 Tencent Technology (Shenzhen) Company Limited Media playback method, client and system
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160286264A1 (en) * 2014-01-22 2016-09-29 Tencent Technology (Shenzhen) Company Limited Media playback method, client and system
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)" *
冯玲;杨婷婷;冒蓉;: "互联网时代音乐的电视传播发展新探" *
王天逸;章宗标;王敏;: "一种音频样例重复检测方法的研究" *

Also Published As

Publication number Publication date
CN111625677B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US10097884B2 (en) Media playback method, client and system
US7473839B2 (en) Method and system for time-shortening songs
EP2940644A1 (en) Method, apparatus, device and system for inserting audio advertisement
JP2008165837A (en) Mashup data, distribution method mashup method, server device and mashup device for mashup data
JP2019091014A (en) Method and apparatus for reproducing multimedia
CN112073294B (en) Voice playing method and device of notification message, electronic equipment and medium
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
JP5029644B2 (en) Karaoke network system
JP5986387B2 (en) Information processing program, information processing apparatus, lyrics display method, and communication system
JP6288197B2 (en) Evaluation apparatus and program
JP6102076B2 (en) Evaluation device
CN111625677B (en) Audio playing method, electronic equipment and storage medium
CN105654971B (en) Singing assisting method and equipment in song recording process
CN109508166B (en) Audio playing method, device, equipment and storage medium
CN111031382A (en) Method for controlling playing progress of media file
JP5902119B2 (en) Karaoke device, karaoke program, and recording medium
JP2010074199A (en) Conference system, conference support method and conference support program
CN109686371A (en) A kind of music intelligent playing method and device
CN108777804A (en) media playing method and device
CN108322816B (en) Method and system for playing background music in broadcast program
CN110532419B (en) Audio processing method and device
JP2017068046A (en) Singing reference data correction device, karaoke system, and program
CN107424640A (en) A kind of audio frequency playing method and device
CN117319699B (en) Live video generation method and device based on intelligent digital human model
CN108109609B (en) Audio and video recording method and device

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