CN111028867A - Audio playing method and electronic equipment - Google Patents

Audio playing method and electronic equipment Download PDF

Info

Publication number
CN111028867A
CN111028867A CN201911176748.6A CN201911176748A CN111028867A CN 111028867 A CN111028867 A CN 111028867A CN 201911176748 A CN201911176748 A CN 201911176748A CN 111028867 A CN111028867 A CN 111028867A
Authority
CN
China
Prior art keywords
audio
playing
input
electronic device
user
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
CN201911176748.6A
Other languages
Chinese (zh)
Other versions
CN111028867B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911176748.6A priority Critical patent/CN111028867B/en
Publication of CN111028867A publication Critical patent/CN111028867A/en
Application granted granted Critical
Publication of CN111028867B publication Critical patent/CN111028867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/61Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an audio playing method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that when the electronic equipment plays audio, a user cannot conveniently and quickly determine a target audio. The method is applied to the electronic equipment and comprises the following steps: receiving a first input of a user; in response to the first input, playing the first audio starting at a first intermediate position of the first audio; if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position is played. The method can be applied to the scene of playing audio by using the electronic equipment.

Description

Audio playing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an audio playing method and electronic equipment.
Background
With the development of communication technology, electronic devices are increasingly widely used. Typically, a user may play audio (e.g., play a song) using an electronic device.
Currently, if a user wants to select a song that the user wants during the process of playing a song using an electronic device, the user can trigger the electronic device to play song a from the beginning by inputting a key of the electronic device, and generally the user can determine whether song a is a target song that the user wants after hearing song a for a period of time (for example, song a plays into a refrain portion).
However, in the above process, the user needs to listen to the song for a long time to determine whether the user wants to listen to the song. Therefore, the existing scheme of playing the audio by the electronic device is inconvenient for the user to quickly determine the target audio.
Disclosure of Invention
The embodiment of the invention provides an audio playing method and electronic equipment, and aims to solve the problem that when the electronic equipment plays audio, a user cannot conveniently and quickly determine target audio.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an audio playing method, where the method may be applied to an electronic device, and the method may include: receiving a first input of a user; in response to the first input, playing the first audio starting at a first intermediate position of the first audio; if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position is played.
In a second aspect, an embodiment of the present invention provides an electronic device, which may include: the device comprises a receiving module and a processing module; the receiving module is used for receiving a first input of a user; a processing module, configured to start playing the first audio from a first intermediate position of the first audio in response to the first input received by the receiving module; the processing module is further configured to start playing the first audio from the start position of the first audio after playing the first audio to the second intermediate position of the first audio, or start playing the second audio from the third intermediate position of the second audio if the user input is not received before playing the first audio to the second intermediate position of the first audio.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of audio playing provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of audio playing provided in the first aspect.
In the embodiment of the invention, a first input of a user is received; in response to the first input, playing the first audio starting at a first intermediate position of the first audio; if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played. Through the scheme, on one hand, if the user wants the electronic device to play the target audio, the user can trigger the electronic device to start playing from the first middle position of the first audio through the first input to the electronic device, so that the user can quickly identify whether the first audio is the target audio, and the time for the electronic device to determine the target audio is further reduced. On the other hand, if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played, so that the user can conveniently locate the target audio and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an audio playing method according to an embodiment of the present invention;
fig. 3 is a second schematic diagram of an audio playing method according to an embodiment of the present invention;
fig. 4 is a third schematic diagram illustrating an audio playing method according to an embodiment of the present invention;
FIG. 5 is a timing diagram illustrating the playing of Song A according to an embodiment of the present invention;
fig. 6 is a fourth schematic diagram illustrating an audio playing method according to an embodiment of the present invention;
fig. 7 is a fifth schematic view illustrating an audio playing method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a second schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
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, 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 term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first audio and the second audio, etc. are for distinguishing different audio, not for describing a particular order of the audio.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides an audio playing method and electronic equipment, which receive a first input of a user; in response to the first input, playing the first audio starting at a first intermediate position of the first audio; if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played. Through the scheme, on one hand, if the user wants the electronic device to play the target audio, the user can trigger the electronic device to start playing from the first middle position of the first audio through the first input to the electronic device, so that the user can quickly identify whether the first audio is the target audio, and the time for the electronic device to determine the target audio is further reduced. On the other hand, if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played, so that the user can conveniently locate the target audio and the user experience is improved.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the audio playing method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the audio playing method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the audio playing method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the audio playing method provided by the embodiment of the invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the audio playing method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the audio playing method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily explain an audio playing method provided by the embodiment of the present invention.
In the embodiment of the present invention, if the user wants the electronic device to play the target audio, the user may not need to check the audio directory of the electronic device, and the user may trigger the electronic device to start playing the first audio from the first middle position in the first audio through the input (i.e., the first input) to the electronic device, so that the user may quickly identify whether the first audio is the target audio, and if the first audio is the target audio, the user may trigger the electronic device to play the target audio from the start time of the target audio; if the first audio is not the target audio, the user can trigger the electronic device to play the second audio from the third position of the second audio, so that the user can quickly determine the target audio.
As shown in fig. 2, an embodiment of the present invention provides an audio playing method applied to an electronic device, and the method may include steps 101 to 103 described below.
Step 101, the electronic device receives a first input of a user.
Wherein, the first input can be used to confirm the playing of the first audio.
Optionally, in an embodiment of the present invention, the first input is an input for confirming that the first audio is played. The first input may specifically be any one of: voice input to the electronic device, gesture input to the electronic device, key input to the electronic device, and the like. The key input to the electronic device may be any one of the following: a single-press input to a key of the electronic device, a multi-press input to a key of the electronic device, a press input to two or more combination keys of the electronic device, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in an embodiment of the present invention, the first audio may specifically be any one of the following: speech, singing, instrumental, etc. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
It should be noted that, for more visually and specifically describing the implementation of the present invention, the following examples use the first audio as the song for illustration, and do not limit the embodiments of the present invention.
Step 102, the electronic device starts playing the first audio from a first middle position of the first audio in response to the first input.
It should be noted that, in the embodiment of the present invention, the first middle position of the first audio is a position after the start position of the first audio and before the end position of the first audio, and the second middle position of the first audio is a position after the first middle position of the first audio and before the end position of the first audio. That is, the audio between the first middle position of the first audio and the second middle position of the first audio is a segment of the first audio.
Optionally, in the embodiment of the present invention, before the first input, if the electronic device plays another audio, the electronic device switches from the another audio to the first audio in response to the first input, and plays the first audio; or before the first input, if the electronic device does not play other audio, the electronic device responds to the first input and plays the first audio.
It should be noted that, a complete song may be divided into five parts from front to back in sequence according to the time sequence of song playing, that is: a verse portion, a refrain portion, a transitional sentence portion, a popular sentence portion, and a bridge portion. If the song is a song that the user listens to, the user may often recognize the song when the song is played to the refrain portion.
In addition, the embodiment of the present invention is exemplarily illustrated by taking the first audio as the song, wherein the first intermediate position of the first audio may be a starting position of the refrain of the song, and the second intermediate position of the first audio may be an ending position of the refrain of the song, that is, the refrain of the song is an audio between the first intermediate position and the second intermediate position. The following embodiments take the audio between the first middle position of the first audio and the second middle position of the first audio as an example of the refraining part of the song, and do not limit the embodiments of the present invention. The audio between the first intermediate position of the first audio and the second intermediate position of the second audio may also be any of: a main song portion of the song, a transitional sentence portion of the song, a popular sentence portion of the song, or a bridge portion of the song.
Optionally, in this embodiment of the present invention, a duration of playing the audio between the first audio first middle position and the first audio second middle position may be a preset duration. If the predicted playing time of the audio between the first audio first middle position and the first audio second middle position is longer than the preset time, playing part of the audio between the first audio first middle position and the first audio second middle position; if the predicted playing time of the audio between the first audio first middle position and the first audio second middle position is equal to the preset time, the audio between the first audio first middle position and the first audio second middle position is played; and if the predicted playing time of the audio between the first audio first middle position and the first audio second middle position is less than the preset time, circularly playing the audio between the first audio first middle position and the first audio second middle position.
For example, suppose three songs are stored in the electronic device, which are: song a, song B, and song C, wherein the playing time length of the refrain part of song a is 20 seconds, the playing time length of the refrain part of song B is 10 seconds, and the playing time length of the refrain part of song C is 8 seconds. If the preset duration of the electronic equipment is 10 seconds, under the condition that the user controls the electronic equipment to play the song A from the refraining part of the song A, the electronic equipment plays the audio of the first 10 seconds of the refraining part of the song A; under the condition that the user controls the electronic equipment to play the song B from the refraining part of the song B, the electronic equipment plays all audio of the refraining part of the song B; under the condition that the user controls the electronic equipment to play the song C from the refraining part of the song C, the electronic equipment circularly plays the audio of the refraining part of the song C for 10 seconds.
Step 103, if the electronic device does not receive the input of the user before playing to the second middle position of the first audio, after playing to the second middle position of the first audio, starting to play the first audio from the start position of the first audio, or starting to play the second audio from the third middle position of the second audio.
It should be noted that, in the embodiment of the present invention, optionally, the electronic device does not receive an input of a user, where the input is not received by the electronic device for playing the first audio in a process before the electronic device plays the first audio to the second intermediate position of the first audio.
In addition, in the embodiment of the present invention, the starting of playing the first audio from the starting position of the first audio means that the electronic device defaults that the user selects the first audio and starts playing the first audio when the electronic device does not receive the user input before playing to the second intermediate position of the first audio. The above starting to play the second audio from the third middle position of the second audio means that the electronic device defaults that the user does not select the first audio before the electronic device plays the second audio to the second middle position of the first audio, so as to perform a song switching operation, that is, stop playing the first audio, and start to play the second audio from the third middle position of the second audio.
Optionally, in this embodiment of the present invention, the end of the audio playing from the first audio first intermediate position to the first audio second intermediate position may specifically be any of the following: and finishing the complete audio playing from the first audio first middle position to the first audio second middle position and finishing the audio playing from the first audio first middle position to the first audio second middle position after the preset time length is reached. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
In addition, in the embodiment of the present invention, the third middle position of the second audio is a position after the start position of the second audio and before the end position of the second audio.
For example, suppose that the starting playing time of song a is 00:00 and the starting playing time of the refrain part in song a is 00: 40. If the user wants to select song A to play, the user may make a single press input (i.e., a first input) to a key of the electronic device, in response to which the electronic device starts playing the refrain of song A from a start time 00:40 (i.e., a first audio first intermediate position) of the refrain portion of song A (i.e., a first audio). If the electronic equipment does not receive the input of the user in the process of playing the refrain, after the refrain finishes playing, the electronic equipment starts playing the song A from the starting time 00:00 of the song A.
The embodiment of the invention provides an audio playing method, which receives a first input of a user; in response to the first input, playing the first audio starting at a first intermediate position of the first audio; if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played. Through the scheme, on one hand, if the user wants the electronic device to play the target audio, the user can trigger the electronic device to start playing from the first middle position of the first audio through the first input to the electronic device, so that the user can quickly identify whether the first audio is the target audio, and the time for the electronic device to determine the target audio is further reduced. On the other hand, if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played, so that the user can conveniently locate the target audio and the user experience is improved.
Optionally, with reference to fig. 2, as shown in fig. 3, in the embodiment of the present invention, the step 102 may be specifically implemented by the following step 102a, and correspondingly, the step 103 may be specifically implemented by the following step 103 a.
Step 102a, the electronic device starts playing the first audio at a first playing speed from a first middle position of the first audio in response to the first input.
Step 103a, if the electronic device does not receive the input of the user before playing to the second middle position of the first audio, after playing to the second middle position, starting to play the first audio from the start position of the first audio at the second playing speed, or starting to play the second audio from the third middle position of the second audio at the first playing speed.
Wherein, the second playing speed is less than the first playing speed.
Optionally, in an embodiment of the present invention, the first playing speed is greater than a standard playing speed, where the standard playing speed is a speed at which the electronic device normally plays the first audio, or a default playing speed of the electronic device. I.e. the ratio of the first playback speed to the standard playback speed is a value greater than 1. Illustratively, the first play speed may be 1.5 times the standard play speed, and the first play speed may be 2 times the standard play speed.
Optionally, in this embodiment of the present invention, the second playing speed is smaller than the first playing speed. I.e. the second playback speed may be less than or equal to the standard playback speed. Illustratively, the first play speed may be 1.5 times the standard play speed, and the second play speed may be the standard play speed.
It should be noted that, in the embodiment of the present invention, in order to facilitate the user to quickly identify the first audio through the audio (e.g., the refrain) between the first audio first intermediate position and the first audio second intermediate position, the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position at a speed (i.e., the first play speed) faster than the standard play speed, so that the user receives more audio information in the same time, and the accuracy of user identification is improved.
For example, suppose that the starting playing time of song a is 00:00 and the starting playing time of the refrain part in song a is 00: 40. If the user wants to select song A to play, the user may make a single press input (i.e., a first input) to a key of the electronic device, in response to which the electronic device plays the refrain of song A at a speed 1.5 times the standard play speed (i.e., the first play speed) from a start time 00:40 of the refrain portion (i.e., the audio between the first audio first intermediate position to the first audio second intermediate position) of song A (i.e., the first audio). If the electronic equipment does not receive the input of the user in the process of playing the refrain, after the refrain finishes playing, the electronic equipment starts to play the song A at the standard playing speed from the starting time 00:00 of the song A.
It can be understood that, in the embodiment of the present invention, when the electronic device plays the audio between the first audio first intermediate position and the first audio second intermediate position, the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position according to the first play speed, so that the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position at a speed faster than the standard play speed, and thus, in the same time, the user may receive more audio information, thereby improving the accuracy of the user in identifying the audio.
Optionally, with reference to fig. 2, as shown in fig. 4, in the embodiment of the present invention, before the step 102, the audio playing method provided in the embodiment of the present invention may further include the following steps 104 and 105.
Step 104, the electronic device obtains information of the first audio.
Optionally, in an embodiment of the present invention, the information of the first audio may include time information of playing the first audio and identification information of other first audios. The specific information of the first audio may be any one of the following items: a text identification including time information of the first audio playback, a sound identification including time information of the first audio playback, a data identification including time information of the first audio playback, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Specifically, if the first audio is a song, the information of the first audio may be: lyrics including time information of the song playing, a music piece including time information of the song playing, or a data identification including time information of the song playing.
Step 105, the electronic device determines a first middle position of the first audio and a second middle position of the first audio according to the information.
It should be noted that, in the embodiment of the present invention, the determining the first middle position of the first audio is a playing time of the determining the first middle position; the determining of the second middle position of the first audio is determining the playing time of the second middle position. For example, if the audio between the first middle position of the first audio and the second middle position of the first audio is a refrain part of a song, the determining the first middle position of the first audio and the second middle position of the first audio may specifically be determining a start playing time and an end playing time of the refrain of the song.
Optionally, in this embodiment of the present invention, according to the information, the electronic device may determine a first middle position of the first audio and a second middle position of the first audio through a first algorithm. The first algorithm may specifically be any one of the following: a time sequence detection algorithm, a time sequence analysis algorithm, a feature extraction algorithm and the like. The method and the device can be determined according to actual use requirements, and embodiments of the invention are not particularly limited.
For example, assuming that the first audio is song a, fig. 5 is a playing timing diagram of song a, as shown in fig. 5, a starting playing time of song a (i.e., the first audio) is 00:00, and an ending playing time of song a is 02:59, where song a may include a refrain of song a (i.e., an audio from a first audio first intermediate position to a first audio second intermediate position, and an interval M time in fig. 5 corresponds to an audio), and the starting playing time of the refrain of song a is 00:40, and the ending playing time of the refrain of song a is 00: 55. The electronic equipment can determine a first middle position of the first audio according to the information of the song A, namely the position of the playing time of 00: 40; a second intermediate position of the first audio is determined, i.e. the position at which the playing time is 00: 55.
It can be understood that, in the embodiment of the present invention, since the electronic device can determine the first middle position of the first audio and the second middle position of the first audio according to the information of the first audio, the electronic device can precisely control to play the audio between the first middle position of the first audio and the second middle position of the first audio.
Optionally, with reference to fig. 2, as shown in fig. 6, in the embodiment of the present invention, after the step 102, the audio playing method provided in the embodiment of the present invention may further include the following step 106.
And 106, if the electronic equipment receives a second input of the user before the electronic equipment plays the first audio to the second middle position of the first audio, stopping playing the first audio, and starting playing the second audio from the third position of the second audio.
Preferably, the second audio is different from the first audio.
It should be noted that, in the embodiment of the present invention, after the step 102, the step 103 and the step 106 are alternatively executed.
Optionally, in this embodiment of the present invention, the second input may be used to switch the first audio to the second audio, that is, the second input is an input that stops playing the first audio and starts playing the second audio from a third position of the second audio. The second input may specifically be any of: voice input to the electronic device, key input to the electronic device, etc. The key input to the electronic device may be any one of the following: a single-press input to a key of the electronic device, a multi-press input to a key of the electronic device, a press input to two or more combination keys of the electronic device, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in this embodiment of the present invention, the second audio may include audio from a third position of the second audio to a fourth position of the second audio. For example, if the first audio is song a and the second audio is song B, the audio from the first middle position of the first audio to the second middle position of the first audio may be refrain from song a, and the audio from the third position of the second audio to the fourth position of the second audio may be refrain from song B.
For example, suppose that the starting playing time of song a is 00:00, the starting playing time of the refrain part in song a is 00:40, the starting playing time of song B is 00:00, and the starting playing time of the refrain part in song B is 01: 10. The method comprises the steps that a user triggers the electronic equipment to play the refrain of the song A from the starting time 00:40 of the refrain part of the song A (namely, the first audio) (namely, the audio between the first audio first middle position and the first audio second middle position), the electronic equipment receives double pressing input (namely, the second input) of a key of the electronic equipment by the user in the process that the electronic equipment plays the refrain of the song A, the electronic equipment responds to the double pressing input, stops playing the refrain of the song A, and starts playing the refrain of the song B from the starting time 01:10 of the refrain part of the song B (namely, the audio between the second audio third position and the second audio fourth position).
In the embodiment of the invention, because the electronic device can respond to the input of the user, stop playing the audio between the first audio first middle position and the first audio second middle position, and start playing the second audio from the third position of the second audio, the user can control the electronic device to start playing different audio from the first middle position of different audio through the input of the user, so that the user can identify the target audio from the audio between the first middle position and the second middle position of each audio.
Optionally, in this embodiment of the present invention, the step 106 may be specifically implemented by the following step 106 a.
Step 106a, if the electronic device receives a second input from the user before playing to the second middle position of the first audio, stopping playing the first audio, and starting from the third position of the second audio, playing the second audio at the first playing speed.
It should be noted that, in the embodiment of the present invention, the description related to the first speed may specifically refer to the description related to the step 102a, and is not repeated herein.
For example, suppose that the starting playing time of song a is 00:00, the starting playing time of the refrain part in song a is 00:40, the starting playing time of song B is 00:00, and the starting playing time of the refrain part in song B is 01: 10. The user triggers the electronic device to start playing the refrain of the song a at a speed (i.e. the first playing speed) 1.5 times of the standard playing speed from the starting time 00:40 of the refrain part of the song a (i.e. the audio between the first audio first middle position and the first audio second middle position), in the process of playing the refrain of the song a by the electronic device, the electronic device receives double-pressing input (i.e. the second input) of a key of the electronic device by the user, the electronic device stops playing the refrain of the song a in response to the double-pressing input, and starts playing the refrain of the song B at a speed (i.e. the first playing speed) 1.5 times of the standard playing speed from the starting time 01:10 of the refrain part of the song B (i.e. the audio between the second audio third position and the second audio fourth position) of the song B (i.e. the second audio fourth position).
In the embodiment of the invention, the electronic device can respond to the input of the user, stop playing the first audio, start from the third position of the second audio, and play the second audio according to the first playing speed, wherein the first playing speed is greater than the standard playing speed, so that the user can quickly identify the audio clip of the target audio from the audio between the first middle position and the second middle position in each audio, and further quickly identify the target audio.
Optionally, with reference to fig. 2, as shown in fig. 7, in the embodiment of the present invention, after the step 102, the audio playing method provided in the embodiment of the present invention may further include the following step 107.
Step 107, if the electronic device receives a third input from the user before playing to the second middle position of the first audio, continuing to play the first audio from the second middle position of the first audio after playing to the second middle position.
It should be noted that, in the embodiment of the present invention, after the step 102, the step 103, the step 106, and the step 107 are alternatively executed.
Optionally, in this embodiment of the present invention, the third input may be used to play an audio after the second middle position of the first audio. The specific third input may specifically be any one of the following: voice input to the electronic device, key input to the electronic device, etc. The key input to the electronic device may be any one of the following items: a long press input to a key of the electronic device, a single press input to a key of the electronic device, a multi-press input to a key of the electronic device, a press input to two or more combination keys of the electronic device, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
Optionally, in this embodiment of the present invention, if the electronic device receives a third input from the user before playing to the second middle position of the first audio, after playing to the second middle position, the electronic device continues to play the first audio from the second middle position in the first playing order.
Optionally, in this embodiment of the present invention, the first playing sequence may be any one of the following: sequential play, random play, reverse play, etc. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Specifically, assuming that the first audio is song a, and the audio between the first audio first intermediate position and the first audio second intermediate position is a refrain of song a, after the refrain stops playing the refrain, the electronic device may play a transition sentence portion after the refrain in song a, a pop sentence portion of song a, or a bridge segment portion of song a.
For example, suppose that the starting playing time of song a is 00:00, the starting playing time of the refrain part in song a is 00:40, and the starting time of the transition sentence part of song a is 01: 10. The method comprises the steps that a user triggers the electronic equipment to play the refrain of the song A from the starting time 00:40 of the refrain part of the song A (namely, the first audio) (namely, the audio between the first audio first middle position and the first audio second middle position), in the process that the electronic equipment plays the refrain of the song A, the electronic equipment receives long-press input (namely, a third input) of a key of the electronic equipment by the user, the electronic equipment responds to the long-press input, stops playing the refrain of the song A, and starts to play the transition sentence part of the song A from the starting time 01:10 of the transition sentence part of the song A.
In the embodiment of the present invention, if the third input of the user is received before the electronic device plays to the second intermediate position of the first audio, after the electronic device plays to the second intermediate position, the electronic device continues to play the first audio from the second intermediate position of the first audio. Therefore, different playing and using requirements of the user can be met, and the using experience of the user is improved.
Optionally, in an embodiment of the present invention, the step 107 may be specifically implemented by the following step 107 a.
Step 107a, if the electronic device receives a third input from the user before playing to the second middle position of the first audio, continuing to play the first audio from the second middle position at the second playing speed after playing to the second middle position.
Optionally, in this embodiment of the present invention, the second playing speed is smaller than the first playing speed. I.e. the second playback speed may be less than or equal to the standard playback speed. Illustratively, the first play speed may be 1.5 times the standard play speed, and the second play speed may be the standard play speed.
For example, suppose that the starting playing time of song a is 00:00, the starting playing time of the refrain part in song a is 00:40, and the starting time of the transition sentence part of song a is 01: 10. The method comprises the steps that a user triggers the electronic equipment to play the refrain of the song A at the speed (namely the first playing speed) 1.5 times of the standard playing speed from the starting time 00:40 of the refrain part of the song A (namely the audio between the first audio middle position and the first audio second middle position), in the process that the electronic equipment plays the refrain of the song A, the electronic equipment receives long-press input (namely third input) of a key of the electronic equipment by the user, the electronic equipment responds to the long-press input, stops playing the refrain of the song A, and starts to play the transition sentence part of the song A at the standard playing speed (namely the second playing speed) from the starting time 01:10 of the transition sentence part of the song A.
In the embodiment of the present invention, if the electronic device receives a third input from the user before playing to the second middle position of the first audio, after playing to the second middle position, the electronic device continues to play the first audio from the second middle position at the second playing speed. Wherein the first playing speed is greater than the second playing speed. Therefore, the electronic equipment can play the audio between the first audio intermediate position and the second audio intermediate position at a higher speed, so that a user can conveniently and quickly determine the target audio, and the electronic equipment plays the audio behind the second audio intermediate position of the first audio at a lower playing speed, so that different playing use requirements of the user can be met, and the use experience of the user is improved.
Optionally, in this embodiment of the present invention, after the step 102, the audio playing method provided in this embodiment of the present invention may further include the following step 108.
And 108, if the electronic device receives a fourth input from the user before playing to the second middle position of the first audio, starting to play the first audio from the start position of the first audio.
Optionally, in this embodiment of the present invention, the fourth input may be used to play the first audio from a start position of the first audio. The specific fourth input may specifically be any one of: voice input to the electronic device, key input to the electronic device, etc. The key input to the electronic device may be any one of the following items: a long press input to a key of the electronic device, a single press input to a key of the electronic device, a multi-press input to a key of the electronic device, a press input to two or more combination keys of the electronic device, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not particularly limited.
It should be noted that, in the embodiment of the present invention, after the step 102, the step 103, the step 106, the step 107 and the step 108 are alternatively executed.
For example, suppose that the starting playing time of song a is 00:00 and the starting playing time of the refrain part in song a is 00: 40. The method comprises the steps that a user triggers the electronic equipment to play the refrain of the song A from the starting time 00:40 of the refrain part of the song A (namely, the first audio) (namely, the audio between the first audio middle position and the first audio second middle position), in the process that the electronic equipment plays the refrain of the song A, the electronic equipment receives double-click input (namely, a fourth input) of a key of the electronic equipment by the user, responds to the double-click input, the electronic equipment stops playing the refrain of the song A, and the electronic equipment restarts to play the song A from the starting playing time 00:00 of the song A.
It can be understood that, in the embodiment of the present invention, if the fourth input from the user is received before the electronic device plays to the second intermediate position of the first audio, the first audio is played from the starting position of the first audio. Therefore, the requirement of the user for circularly playing the first audio can be met, and the use experience of the user is improved.
Optionally, in this embodiment of the present invention, in response to the first input, the electronic device may start playing the first audio at the first playing speed from the first middle position of the first audio; and when receiving a fourth input of the user, starting to play the first audio at the second playing speed. Wherein the second playing speed is less than the first playing speed.
Optionally, in an embodiment of the present invention, the first playing speed is greater than a standard playing speed, where the standard playing speed is a speed at which the electronic device normally plays the first audio, or a default playing speed of the electronic device. I.e. the ratio of the first playback speed to the standard playback speed is a value greater than 1. Illustratively, the first play speed may be 1.5 times the standard play speed, and the first play speed may be 2 times the standard play speed.
Optionally, in this embodiment of the present invention, the second playing speed is smaller than the first playing speed. I.e. the second playback speed may be less than or equal to the standard playback speed. Illustratively, the first play speed may be 1.5 times the standard play speed, and the second play speed may be the standard play speed.
It should be noted that, in the embodiment of the present invention, in order to facilitate the user to quickly identify the first audio through the audio (e.g., the refrain) between the first audio first intermediate position and the first audio second intermediate position, the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position at a speed (i.e., the first play speed) faster than the standard play speed, so that the user receives more audio information in the same time, and the accuracy of user identification is improved.
For example, suppose that the starting playing time of song a is 00:00 and the starting playing time of the refrain part in song a is 00: 40. If the user wants to select song A to play, the user may make a single press input (i.e., a first input) to a key of the electronic device, in response to which the electronic device plays the refrain of song A at a speed 1.5 times the standard play speed (i.e., the first play speed) from a start time 00:40 of the refrain portion (i.e., the audio between the first audio first intermediate position to the first audio second intermediate position) of song A (i.e., the first audio). If the electronic equipment does not receive the input of the user in the process of playing the refrain, after the refrain finishes playing, the electronic equipment starts to play the song A at the standard playing speed from the starting time 00:00 of the song A.
It can be understood that, in the embodiment of the present invention, when the electronic device plays the audio between the first audio first intermediate position and the first audio second intermediate position, the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position according to the first play speed, so that the electronic device may play the audio between the first audio first intermediate position and the first audio second intermediate position at a speed faster than the standard play speed, and thus, in the same time, the user may receive more audio information, thereby improving the accuracy of the user in identifying the audio. And after the user performs the fourth input, the first audio is played at the second playing speed, so that better hearing experience can be provided for the user.
It should be noted that, in the embodiment of the present invention, the audio playing method shown in the above drawings is exemplarily described by combining one drawing in the embodiment of the present invention. In specific implementation, the audio playing method shown in each of the above figures may also be implemented by combining any other figures that may be combined and are illustrated in the above embodiments, and details are not described here again.
As shown in fig. 8, an embodiment of the invention provides an electronic device 800. The electronic device 800 may include a receiving module 801 and a processing module 802. A receiving module 801, configured to receive a first input of a user; a processing module 802, configured to start playing the first audio from a first intermediate position of the first audio in response to the first input received by the receiving module 801. The processing module 802 is further configured to start playing the first audio from the start position of the first audio after playing to the second intermediate position of the first audio, or start playing the second audio from the third intermediate position of the second audio if the user input is not received before playing to the second intermediate position of the first audio.
Optionally, the processing module 802 is further configured to stop playing the first audio and start playing the second audio from a third position of the second audio if the receiving module 801 receives a second input from the user before playing to the second middle position of the first audio.
Optionally, the processing module 802 is further configured to, if the receiving module 801 receives a third input from the user before playing to the second intermediate position of the first audio, continue to play the first audio from the second intermediate position of the first audio after playing to the second intermediate position.
Optionally, the processing module 802 is further configured to start playing the first audio from the start position of the first audio if a fourth input from the user is received before playing to the second middle position of the first audio.
Optionally, the processing module 802 is specifically configured to, in response to the first input received by the receiving module 801, start playing the first audio at a first playing speed from a first middle position of the first audio. The processing module 802 is further specifically configured to start playing the first audio from the start position of the first audio at a second playing speed, where the second playing speed is less than the first playing speed.
Optionally, referring to fig. 8, as shown in fig. 9, the electronic device 800 further includes an obtaining module 803, where the obtaining module 803 is configured to obtain information of the first audio, and determine a first middle position of the first audio and a second middle position of the first audio according to the information.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
On one hand, if a user wants the electronic device to play a target audio, the user can trigger the electronic device to start playing from a first middle position of a first audio through a first input to the electronic device, so that the user can quickly identify whether the first audio is the target audio, and time for the electronic device to determine the target audio is reduced. On the other hand, if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played, so that the user can conveniently locate the target audio and the user experience is improved.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention. As shown in fig. 10, the electronic device 200 includes, but is not limited to: radio frequency unit 201, network module 202, audio output unit 203, input unit 204, sensor 205, display unit 206, user input unit 207, interface unit 208, memory 209, processor 210, and power supply 211. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
The user input unit 207 is configured to receive a first input of a user; a processor 210 for playing the first audio starting from a first intermediate position of the first audio in response to the first input received by the user input unit 207. The processor 210 is further configured to start playing the first audio from the start position of the first audio after playing to the second intermediate position of the first audio, or start playing the second audio from the third intermediate position of the second audio if the user input is not received before playing to the second intermediate position of the first audio.
On one hand, if a user wants the electronic device to play a target audio, the user can trigger the electronic device to start playing from a first middle position of a first audio through a first input to the electronic device, so that the user can quickly identify whether the first audio is the target audio, and time for the electronic device to determine the target audio is reduced. On the other hand, if the user input is not received before the second middle position of the first audio is played, the first audio is played from the initial position of the first audio or the second audio is played from the third middle position of the second audio after the second middle position of the first audio is played, so that the user can conveniently locate the target audio and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 201 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 210; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 202, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 203 may convert audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into an audio signal and output as sound. Also, the audio output unit 203 may also provide audio output related to a specific function performed by the electronic apparatus 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
The input unit 204 is used to receive an audio or video signal. The input Unit 204 may include a Graphics Processing Unit (GPU) 2041 and a microphone 2042, and the Graphics processor 2041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 206. The image frames processed by the graphic processor 2041 may be stored in the memory 209 (or other storage medium) or transmitted via the radio frequency unit 201 or the network module 202. The microphone 2042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 201 in case of a phone call mode.
The electronic device 200 also includes at least one sensor 205, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 2061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 2061 and/or the backlight when the electronic device 200 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 205 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 206 is used to display information input by the user or information provided to the user. The Display unit 206 may include a Display panel 2061, and the Display panel 2061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 207 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. Touch panel 2071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 2071 (e.g., user operation on or near the touch panel 2071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 2071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 210, and receives and executes commands sent by the processor 210. In addition, the touch panel 2071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 207 may include other input devices 2072 in addition to the touch panel 2071. In particular, the other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not further described herein.
Further, a touch panel 2071 may be overlaid on the display panel 2061, and when the touch panel 2071 detects a touch operation on or near the touch panel 2071, the touch panel is transmitted to the processor 210 to determine the type of the touch event, and then the processor 210 provides a corresponding visual output on the display panel 2061 according to the type of the touch event. Although the touch panel 2071 and the display panel 2061 are shown as two separate components in fig. 10 to implement the input and output functions of the electronic device, in some embodiments, the touch panel 2071 and the display panel 2061 may be integrated to implement the input and output functions of the electronic device, and are not limited herein.
The interface unit 208 is an interface for connecting an external device to the electronic apparatus 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 208 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 200 or may be used to transmit data between the electronic apparatus 200 and the external device.
The memory 209 may be used to store software programs as well as various data. The memory 209 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 209 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 210 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 209 and calling data stored in the memory 209, thereby performing overall monitoring of the electronic device. Processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 210.
The electronic device 200 may further include a power source 211 (such as a battery) for supplying power to each component, and optionally, the power source 211 may be logically connected to the processor 210 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 200 includes some functional modules that are not shown, and thus are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor 210 as shown in fig. 10, a memory 209, and a computer program that is stored in the memory 209 and is executable on the processor 210, and when the computer program is executed by the processor 210, the processes of the foregoing method embodiment are implemented, and the same technical effect can be achieved, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. Examples of the computer-readable storage medium include a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. An audio playing method applied to an electronic device, the method comprising:
receiving a first input of a user;
in response to the first input, playing a first audio starting at a first intermediate position of the first audio;
if the user input is not received before the first audio is played to the second middle position of the first audio, after the first audio is played to the second middle position, the first audio is played from the starting position of the first audio, or the second audio is played from the third middle position of the second audio.
2. The method of claim 1, wherein after the playing the first audio starting from the first intermediate position of the first audio, the method further comprises:
and if a second input of the user is received before the second middle position of the first audio is played, stopping playing the first audio, and starting playing the second audio from a third middle position of the second audio.
3. The method of claim 1, wherein after the playing the first audio starting from the first intermediate position of the first audio, the method further comprises:
if a third input of the user is received before the second middle position of the first audio is played, the first audio is continuously played from the second middle position of the first audio after the second middle position of the first audio is played.
4. The method of claim 1, wherein after the playing the first audio starting from the first intermediate position of the first audio, the method further comprises:
and if a fourth input of the user is received before the second middle position of the first audio is played, starting to play the first audio from the initial position of the first audio.
5. The method of claim 1 or claim 4, wherein said playing the first audio starting from a first intermediate position of the first audio in response to the first input comprises:
in response to the first input, beginning to play the first audio at a first play speed from a first intermediate position of the first audio;
the playing the first audio starting from the starting position of the first audio comprises:
and starting to play the first audio at a second playing speed from the initial position of the first audio, wherein the second playing speed is less than the first playing speed.
6. The method of any of claims 1-4, wherein prior to the playing the first audio starting at the first intermediate position of the first audio, the method further comprises:
acquiring information of the first audio;
and determining a first middle position of the first audio and a second middle position of the first audio according to the information.
7. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module and a processing module;
the receiving module is used for receiving a first input of a user;
the processing module is used for responding to the first input received by the receiving module and starting playing the first audio from a first middle position of the first audio;
the processing module is further configured to start playing the first audio from the start position of the first audio after playing to the second intermediate position of the first audio, or start playing the second audio from the third intermediate position of the second audio if the user input is not received before playing to the second intermediate position of the first audio.
8. The electronic device of claim 7, wherein the processing module is further configured to stop playing the first audio and start playing the second audio from a third intermediate position of the second audio if the receiving module receives a second input from the user before playing to the second intermediate position of the first audio.
9. The electronic device of claim 7, wherein the processing module is further configured to continue playing the first audio from the second intermediate position of the first audio after playing to the second intermediate position if the receiving module receives a third input from the user before playing to the second intermediate position of the first audio.
10. The electronic device of claim 7, wherein the processing module is further configured to start playing the first audio from a start position of the first audio if a fourth input from the user is received before playing to the second intermediate position of the first audio.
11. The electronic device according to claim 7 or claim 10, wherein the processing module is specifically configured to, in response to the first input received by the receiving module, start playing the first audio at a first playing speed from a first intermediate position of the first audio; the processing module is further specifically configured to start playing the first audio from the start position of the first audio at a second playing speed, where the second playing speed is less than the first playing speed.
12. The electronic device of any of claims 7-10, further comprising an acquisition module;
the acquisition module is used for acquiring the information of the first audio and determining a first middle position of the first audio and a second middle position of the first audio according to the information.
13. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the audio playback method as claimed in any one of claims 1 to 6.
14. A computer-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 one of claims 1 to 6.
CN201911176748.6A 2019-11-26 2019-11-26 Audio playing method and electronic equipment Active CN111028867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911176748.6A CN111028867B (en) 2019-11-26 2019-11-26 Audio playing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911176748.6A CN111028867B (en) 2019-11-26 2019-11-26 Audio playing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111028867A true CN111028867A (en) 2020-04-17
CN111028867B CN111028867B (en) 2022-03-11

Family

ID=70206823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911176748.6A Active CN111028867B (en) 2019-11-26 2019-11-26 Audio playing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111028867B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112201283A (en) * 2020-09-09 2021-01-08 北京小米松果电子有限公司 Audio playing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231433A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing Internet video
CN106448713A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Audio frequency playing method and audio frequency playing device
CN108090140A (en) * 2017-12-04 2018-05-29 维沃移动通信有限公司 A kind of playback of songs method and mobile terminal
US20180329585A1 (en) * 2017-05-12 2018-11-15 Apple Inc. User interfaces for playing and managing audio items

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106448713A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Audio frequency playing method and audio frequency playing device
CN106231433A (en) * 2016-07-29 2016-12-14 广州酷狗计算机科技有限公司 A kind of methods, devices and systems playing Internet video
US20180329585A1 (en) * 2017-05-12 2018-11-15 Apple Inc. User interfaces for playing and managing audio items
CN108090140A (en) * 2017-12-04 2018-05-29 维沃移动通信有限公司 A kind of playback of songs method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112201283A (en) * 2020-09-09 2021-01-08 北京小米松果电子有限公司 Audio playing method and device

Also Published As

Publication number Publication date
CN111028867B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN108415652B (en) Text processing method and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108763316B (en) Audio list management method and mobile terminal
CN108334272B (en) Control method and mobile terminal
CN108897473B (en) Interface display method and terminal
CN111142723B (en) Icon moving method and electronic equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN110233933B (en) Call method, terminal equipment and computer readable storage medium
CN109830248B (en) Audio recording method and terminal equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN107741814B (en) Display control method and mobile terminal
CN110703972B (en) File control method and electronic equipment
CN111124345A (en) Audio source processing method and mobile terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN111026305A (en) Audio processing method and electronic equipment
CN111339324A (en) Multimedia playing method and electronic equipment
CN110597478A (en) Audio output method and electronic equipment
CN108073405B (en) Application program unloading method and mobile terminal
CN107728920B (en) Copying method and mobile terminal
CN110012151B (en) Information display method and terminal equipment
CN108270928B (en) Voice recognition method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN109147746B (en) Karaoke method and terminal
CN108021315B (en) Control method and mobile terminal

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