CN104810033B - Audio frequency playing method and device - Google Patents
Audio frequency playing method and device Download PDFInfo
- Publication number
- CN104810033B CN104810033B CN201510219191.5A CN201510219191A CN104810033B CN 104810033 B CN104810033 B CN 104810033B CN 201510219191 A CN201510219191 A CN 201510219191A CN 104810033 B CN104810033 B CN 104810033B
- Authority
- CN
- China
- Prior art keywords
- audition
- played
- percentage
- audio data
- audio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a kind of audio frequency playing method, the audio frequency playing method includes the following steps:Obtain the audition percentage of current audio data to be played, wherein the audition percentage is the ratio of the duration of audition of the audio data to be played and the total duration of the song to be played;When the audition percentage is greater than or equal to the first predetermined threshold value, the audio data to be played is played;When the audition percentage is less than the first predetermined threshold value, next audio data to be played is obtained as current audio data to be played.The invention also discloses a kind of audio playing apparatus.The present invention comes to control whether to play audio data to be played automatically according to the percentage of a certain song of audition before user, and cuts song without user hand is dynamic, reduces system energy consumption.
Description
Technical field
The present invention relates to audio play-back technology field more particularly to a kind of audio frequency playing methods and device.
Background technology
Currently, music player in shuffle music, generally carries out the broadcasting of song according to the sequence of audition list,
But often user can hear out or listen the major part of this head songs to the song liked for user, for the song not liked, use
Family may click directly on next or a upper first control carries out cutting song, and system energy consumption is larger.
Invention content
It is a primary object of the present invention to propose a kind of audio frequency playing method and device, it is intended to system when playing audio-fequency data
The larger technical problem of energy consumption.
To achieve the above object, the present invention provides a kind of audio frequency playing method, and the audio frequency playing method includes following step
Suddenly:
Obtain the audition percentage of current audio data to be played, wherein the audition percentage is the sound to be played
The ratio of the duration of audition of frequency evidence and the total duration of song to be played;
When the audition percentage is greater than or equal to the first predetermined threshold value, the audio data to be played is played;
When the audition percentage is less than the first predetermined threshold value, the next audio data to be played of acquisition, which is used as, currently to be waited broadcasting
Put audio data.
Preferably, after the step of audition percentage for obtaining audio data to be played, the audio frequency playing method
It further include step:
When the audition percentage is less than or equal to the second predetermined threshold value, the audio data to be played is played, wherein.
Second predetermined threshold value is less than first predetermined threshold value.
Preferably, after the step of broadcasting audio data to be played, the audio frequency playing method further includes step
Suddenly:
After the audio data to be played plays, this duration of audition and the audio number to be played are calculated
According to total duration between ratio;
The audition percentage of the audio data to be played is updated according to the ratio being calculated.
Preferably, the ratio that the basis is calculated updates the step of audition percentage of the audio data to be played
Including:
The audition percentage of the audio data to be played is replaced with into the ratio being calculated;
Alternatively, obtaining each audition of the audio data to be played in the ratio and prefixed time interval being calculated
The average value of audition percentage afterwards, and using the average value as the audition percentage.
Preferably, before the step of audition percentage for obtaining audio data to be played, the audio frequency playing method
Further include:
Obtain the audition percentage of each audio data to be played in audition list;
According to the descending sequence of the audition percentage to each audio to be played in the audition list
Data sorting;
Obtain each audio data to be played in the audition list successively according to the sequence after arrangement, using as
Current audio data to be played.
In addition, to achieve the above object, the present invention also proposes a kind of audio playing apparatus, the audio playing apparatus packet
It includes:
Acquisition module, the audition percentage for obtaining current audio data to be played, wherein the audition percentage is
The ratio of the duration of audition of the audio data to be played and the total duration of song to be played;
Playing module, for when the audition percentage is greater than or equal to the first predetermined threshold value, playing described to be played
Audio data;
Processing module, for when the audition percentage is less than the first predetermined threshold value, obtaining next audio number to be played
According to as current audio data to be played.
Preferably, the playing module is additionally operable to, when the audition percentage is less than or equal to the second predetermined threshold value, broadcast
The audio data to be played is put, wherein.Second predetermined threshold value is less than first predetermined threshold value.
Preferably, the audio playing apparatus further includes:
Computing module, for after the audio data to be played plays, calculating this duration of audition and institute
State the ratio between the total duration of audio data to be played;
Update module, the audition percentage for updating the audio data to be played according to the ratio being calculated.
Preferably, the update module is additionally operable to the audition percentage of the audio data to be played replacing with calculating
Obtained ratio;Alternatively, the update module, is additionally operable to obtain described in the ratio and prefixed time interval being calculated wait for
The average value of audition percentage after each audition of playing audio-fequency data, and using the average value as the audition percentage
Than.
Preferably, the acquisition module is additionally operable to obtain the audition of each audio data to be played in audition list
Percentage;The audio playing apparatus further includes sorting module, for right according to the descending sequence of the audition percentage
Each audio data sequence to be played in the audition list;The acquisition module is additionally operable to according to suitable after arrangement
Sequence obtains each audio data to be played in the audition list successively, using as current audio data to be played.
Audio frequency playing method and device proposed by the present invention obtain the audition percentage of current audio data to be played,
When the audition percentage is greater than or equal to the first predetermined threshold value, the audio data to be played is played, in the audition percentage
When than being less than the first predetermined threshold value, obtain next audio data to be played as current audio data to be played, according to user it
The percentage of a certain song of preceding audition to control whether to play audio data to be played automatically, and cuts song without user hand is dynamic,
Reduce system energy consumption.
Description of the drawings
The hardware architecture diagram of Fig. 1 mobile terminals of each embodiment to realize the present invention;
Fig. 2 is the wireless communication device schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow diagram of audio frequency playing method first embodiment of the present invention;
Fig. 4 is the flow diagram of audio frequency playing method second embodiment of the present invention;
Fig. 5 is the flow diagram of audio frequency playing method 3rd embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of audio playing apparatus first embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of audio playing apparatus second embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of audio playing apparatus 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for be conducive to the present invention explanation, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving
Except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before
And send it to the server of terminal.Broadcast singal may include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcasters.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service
(ISDB-T) etc. digital broadcast apparatus receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcasters of signal and above-mentioned digital broadcast apparatus.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module of the location information for checking or obtaining mobile terminal.Location information module
Typical case be GPS (global pick device).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended using three for the method for calculating position and temporal information
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input units 120 are for receiving audio or video signal.A/V input units 120 may include 121 He of camera
Microphone 122, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static images
Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121
Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110
It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (audio data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can will in this way
Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case of telephone calling model can
The format output of mobile communication base station is sent to via mobile communication module 112.Microphone 122 can implement various types of make an uproar
Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio data
It disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration of mobile terminal 100 or by fast movement and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense
The sliding-type phone is to open or close.In addition, sensing unit 140 can detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which may include proximity sensor 1410, to be combined below
Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can store to use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card therefore to know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power provides to the path of mobile terminal 100 from pedestal or may be used as that the various command signals inputted from pedestal is allowed to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Go out signal (for example, audio data, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include display
Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern
Or when image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
The UI or GUI etc. of picture and correlation function.
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen, which can be used for detecting, to be touched
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The audio data converting audio data of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include sound pick-up, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video exports, alarm unit
153 can provide output with the generation of notification event in different ways.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list
Member 153 can provide tactile output (that is, vibration) to notify to user.It is exported by tactile as offer, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can be stored about when the vibration and audio data for touching the various modes that the when of being applied to touch screen exports
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed detaches.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can with use such as computer software, hardware or any combination thereof calculating
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can be stored in memory 160 and be executed by controller 180.
So far, oneself according to its function through describing mobile terminal.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping transmission data it is all if any
Line and wireless communication device and satellite-based communication device operate.
The communication device that mobile terminal wherein according to the present invention can operate is described referring now to Fig. 2.
Such communication device can use different air interface and/or physical layer.For example, used by communication device
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress
Set (UMTS) (particularly, long term evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication device, but such introduction is equally applicable to other types of device.
With reference to figure 2, cdma wireless communication device may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any one of several known interfaces, the interface include such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in the device by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning
Breath.It substitutes GPS tracking techniques or except GPS tracking techniques, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one GPS satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication device, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 100.
The each embodiment of audio frequency playing method of the present invention is proposed based on above-mentioned mobile terminal hardware configuration and communication device.
As shown in figure 3, Fig. 3 is the flow diagram of audio frequency playing method first embodiment of the present invention.
The present embodiment proposes that a kind of audio frequency playing method, the audio frequency playing method include the following steps:
Step S10 obtains the audition percentage of current audio data to be played, wherein the audition percentage is described
The ratio of the duration of audition of audio data to be played and the total duration of song to be played;
A length of audio data last time playing duration to be played, the audio to be played when audio data to be played audition
The total duration of data is the total duration that audio data to be played can play.The audition percentage can be in each audio data audition
After obtain, also can be when obtaining the audition percentage of audio data to be played, according to the last time of audio data to be played
Audition duration and the total duration of the song to be played are calculated.
Step S20 plays the audio number to be played when the audition percentage is greater than or equal to the first predetermined threshold value
According to;
It can be understood that user may only want to certain part of audition song, it is undesirable that all listen, to improve
Audio plays the accuracy of control, can obtain the audition percentage when audition percentage is greater than or equal to the first predetermined threshold value
Than being located at preset audition section, when the audition percentage is located at preset audition section, the audio to be played is played
Data play the sound to be played when the audition percentage exceeds preset audition section according to the audition percentage
Frequency evidence.Alternatively, described when audition percentage is greater than or equal to the first predetermined threshold value, obtain described in prefixed time interval
Audio data to be played plays corresponding audition percentage every time, and the difference between the audition percentage got is less than default
When difference, audition audio data is waited for according to described in the audition percentage broadcasting got.
Step S30 obtains next audio data conduct to be played when the audition percentage is less than the first predetermined threshold value
Current audio data to be played.
It is understood that the hobby due to user may change, not playing, current audio data to be played is straight
Connect cut song to next audio data when, user may switch back into an audio data, at this time according to said program, Yong Huke
The song can not can be heard always, then to improve the accuracy that audio data plays control, the step S30 includes:Described
When audition percentage is less than the first predetermined threshold value, whether determination obtained the audio data to be played within a preset time interval
Audition percentage;When obtaining the audition percentage of the audio data to be played within a preset time interval, described in broadcasting
Audio data to be played;When the audition percentage of the audio data to be played having not been obtained within a preset time interval, obtain
Next audio data to be played is as current audio data to be played.
Further, for the audition percentage be zero wait for audition audio data may user do not played the sound
Frequency evidence may be the new song that user downloads, then further include step after the step S10:
When the audition percentage is less than or equal to the second predetermined threshold value, the broadcasting audio data to be played, second
Predetermined threshold value is less than first predetermined threshold value.
The audio frequency playing method that the present embodiment proposes obtains the audition percentage of current audio data to be played, described
When audition percentage is greater than or equal to the first predetermined threshold value, the audio data to be played is played, it is small in the audition percentage
When the first predetermined threshold value, next audio data to be played is obtained as current audio data to be played, before user
The percentage of a certain song of audition to control whether to play audio data to be played automatically, and cuts song without user hand is dynamic, reduces
System energy consumption.
Further, to improve the playing efficiency of audio data, with reference to Fig. 4, sound of the present invention is proposed based on first embodiment
Frequency playback method second embodiment further includes in the present embodiment step after the step S30:
Step S40 calculates this duration of audition and waits broadcasting with described after the audio data to be played plays
Put the ratio between the total duration of audio data;
Step S50 updates the audition percentage of the audio data to be played according to the ratio being calculated.
The process that the audition percentage of the audio data to be played is updated with specific reference to the ratio being calculated is as follows:It will
The audition percentage of the audio data to be played replaces with the ratio being calculated;Alternatively, obtain the ratio that is calculated with
And the average value of the audition percentage in prefixed time interval after each audition of the audio data to be played, and will be described flat
Mean value is as the audition percentage.
In the present embodiment, the audition percentage of audio data is updated after each audio data plays so that
User, without recalculating, improves the playing efficiency of audio data in playing audio-fequency data.For example, this is calculated
Ratio be 0.3, the obtained audition percentage calculated before be 0.5, then the audition percentage of the audio data is updated to
0.3;Alternatively, this ratio being calculated is 0.3, the audition percentage being calculated every time in prefixed time interval is respectively
0.5 and 0.4, then it averages to obtain final audition percentage to be 0.4.
Further, to improve the flexibility of audio and video playing, with reference to Fig. 5, this is proposed based on first or second embodiments
Invention audio frequency playing method 3rd embodiment further includes in the present embodiment step before the step S10:
Step S60 obtains the audition percentage of each audio data to be played in audition list;
Step S70 described waits for each in the audition list according to the descending sequence of the audition percentage
Playing audio-fequency data sorts;
Step S80 obtains each audio number to be played in the audition list according to the sequence after arrangement successively
According to using as current audio data to be played.
In the present embodiment, when being based on audition list audition audio, video data, audition percentage can be first based on to be played
Audio data is ranked up, and first plays the bigger audio, video data of audition percentage, then play the smaller sound of audition percentage and regard
Frequency evidence, user experience is more preferable, and flexibility is higher.It is understood that reduce overhead, in presently described audition percentage
When than being less than the first predetermined threshold value, it can stop obtaining audio, video data to be played, or by the audition list original position
Audio data as next audio data to be played.
The present invention further provides a kind of audio playing apparatus.
It is the high-level schematic functional block diagram of audio playing apparatus first embodiment of the present invention with reference to Fig. 6, Fig. 6.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 6 is only one preferably real
The exemplary plot of example is applied, those skilled in the art surrounds the function module of audio playing apparatus shown in fig. 6, can carry out easily new
Function module supplement;The title of each function module is self-defined title, is only used for auxiliary and understands the audio playing apparatus
Each program function block is not used in restriction technical scheme of the present invention, and the core of technical solution of the present invention is each self-defined title
The function to be reached of function module.
A kind of audio playing apparatus of the present embodiment, the audio playing apparatus include:
Acquisition module 10, the audition percentage for obtaining current audio data to be played, wherein the audition percentage
For the ratio of the total duration of the duration of audition and song to be played of the audio data to be played;
A length of audio data last time playing duration to be played, the audio to be played when audio data to be played audition
The total duration of data is the total duration that audio data to be played can play.The audition percentage can be in each audio data audition
After obtain, also can be when obtaining the audition percentage of audio data to be played, according to the last time of audio data to be played
Audition duration and the total duration of the song to be played are calculated.
Playing module 20, for when the audition percentage is greater than or equal to the first predetermined threshold value, waiting broadcasting described in broadcasting
Put audio data;
It can be understood that user may only want to certain part of audition song, it is undesirable that all listen, to improve
Audio plays the accuracy of control, and playing module 20 includes:First acquisition unit, for being greater than or equal to the in audition percentage
When one predetermined threshold value, obtains the audition percentage and be located at preset audition section;First broadcast unit, in the audition
When percentage is located at preset audition section, the audio data to be played is played, in the audition percentage beyond preset
When audition section, the audio data to be played is played according to the audition percentage.Alternatively, playing module 20 includes:Second
Acquiring unit, for, when audition percentage is greater than or equal to the first predetermined threshold value, obtaining institute in prefixed time interval described
It states audio data to be played and plays corresponding audition percentage every time;Second broadcast unit, in the audition percentage got
When difference than between is less than preset difference value, audition audio data is waited for according to described in the audition percentage broadcasting got.
Processing module 30, for when the audition percentage is less than the first predetermined threshold value, obtaining next audio to be played
Data are as current audio data to be played.
It is understood that the hobby due to user may change, not playing, current audio data to be played is straight
Connect cut song to next audio data when, user may switch back into an audio data, at this time according to said program, Yong Huke
The song can not can be heard always, then to improve the accuracy that audio data plays control, the processing module 30 includes:It determines
Unit, for when the audition percentage is less than the first predetermined threshold value, whether determination to obtain institute within a preset time interval
State the audition percentage of audio data to be played;Broadcast unit, for obtaining the sound to be played within a preset time interval
When the audition percentage of frequency evidence, the audio data to be played is played;Processing unit, for not obtaining within a preset time interval
When taking the audition percentage of the audio data to be played, next audio data to be played is obtained as current audio to be played
Data.
Further, for the audition percentage be zero wait for audition audio data may user do not played the sound
Frequency evidence may be the new song that user downloads, then the playing module 20, is additionally operable to be less than or equal in the audition percentage
When the second predetermined threshold value, the audio data to be played is played, wherein.Second predetermined threshold value is less than the described first default threshold
Value.
The audio playing apparatus that the present embodiment proposes obtains the audition percentage of current audio data to be played, described
When audition percentage is greater than or equal to the first predetermined threshold value, the audio data to be played is played, it is small in the audition percentage
When the first predetermined threshold value, next audio data to be played is obtained as current audio data to be played, before user
The percentage of a certain song of audition to control whether to play audio data to be played automatically, and cuts song without user hand is dynamic, reduces
System energy consumption.
Further, to improve the playing efficiency of audio data, with reference to Fig. 7, sound of the present invention is proposed based on first embodiment
Frequency playing device second embodiment, in the present embodiment, the audio playing apparatus further includes:
Computing module 40, for after the audio data to be played plays, calculate this duration of audition with
Ratio between the total duration of the audio data to be played;
Update module 50, the audition percentage for updating the audio data to be played according to the ratio being calculated.
The update module 50, is additionally operable to replace with the audition percentage of the audio data to be played and is calculated
Ratio;Alternatively, the update module 50, is additionally operable to obtain described to be played in the ratio and prefixed time interval being calculated
The average value of audition percentage after each audition of audio data, and using the average value as the audition percentage.
In the present embodiment, the audition percentage of audio data is updated after each audio data plays so that
User, without recalculating, improves the playing efficiency of audio data in playing audio-fequency data.For example, this is calculated
Ratio be 0.3, the obtained audition percentage calculated before be 0.5, then the audition percentage of the audio data is updated to
0.3;Alternatively, this ratio being calculated is 0.3, the audition percentage being calculated every time in prefixed time interval is respectively
0.5 and 0.4, then it averages to obtain final audition percentage to be 0.4.
Further, to improve the flexibility of audio and video playing, with reference to Fig. 8, this is proposed based on first or second embodiments
Invention audio playing apparatus 3rd embodiment, in the present embodiment, the acquisition module 10 is additionally operable to obtain each in audition list
The audition percentage of a audio data to be played;The audio playing apparatus further includes sorting module 60, for according to institute
The descending sequence of audition percentage is stated to sort to each audio data to be played in the audition list;It is described to obtain
Modulus block 10 is additionally operable to obtain each audio number to be played in the audition list successively according to the sequence after arrangement
According to using as current audio data to be played.
In the present embodiment, when being based on audition list audition audio, video data, audition percentage can be first based on to be played
Audio data is ranked up, and first plays the bigger audio, video data of audition percentage, then play the smaller sound of audition percentage and regard
Frequency evidence, user experience is more preferable, and flexibility is higher.It is understood that reduce overhead, in presently described audition percentage
When than being less than the first predetermined threshold value, processing module 30 can stop obtaining audio, video data to be played, or by the audition list
The audio data of original position is as next audio data to be played.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of audio frequency playing method, which is characterized in that the audio frequency playing method includes the following steps:
Obtain the audition percentage of current audio data to be played, wherein the audition percentage is the audio number to be played
According to the duration of audition and song to be played total duration ratio;
When the audition percentage is greater than or equal to the first predetermined threshold value, the default audition that the audition percentage is located at is obtained
Section plays described to be played when the audition percentage exceeds the default audition section according to the audition percentage
Audio data;
When the audition percentage is less than the first predetermined threshold value, next audio data to be played is obtained as current sound to be played
Frequency evidence.
2. audio frequency playing method as described in claim 1, which is characterized in that the audition hundred for obtaining audio data to be played
Point than the step of after, the audio frequency playing method further includes step:
When the audition percentage is less than or equal to the second predetermined threshold value, the audio data to be played is played, wherein described
Second predetermined threshold value is less than first predetermined threshold value.
3. audio frequency playing method as claimed in claim 1 or 2, which is characterized in that described to play the audio data to be played
The step of after, the audio frequency playing method further includes step:
After the audio data to be played plays, this duration of audition and the audio data to be played are calculated
Ratio between total duration;
The audition percentage of the audio data to be played is updated according to the ratio being calculated.
4. audio frequency playing method as claimed in claim 3, which is characterized in that described in the ratio update that the basis is calculated
The step of audition percentage of audio data to be played includes:
The audition percentage of the audio data to be played is replaced with into the ratio being calculated;
Alternatively, obtaining in the ratio and prefixed time interval being calculated after each audition of the audio data to be played
The average value of audition percentage, and using the average value as the audition percentage.
5. audio frequency playing method as claimed in claim 1 or 2, which is characterized in that the examination for obtaining audio data to be played
Before the step of listening percentage, the audio frequency playing method further includes:
Obtain the audition percentage of each audio data to be played in audition list;
According to the descending sequence of the audition percentage to each audio data to be played in the audition list
Sequence;
Each audio data to be played in the audition list is obtained successively according to the sequence after arrangement, using as current
Audio data to be played.
6. a kind of audio playing apparatus, which is characterized in that the audio playing apparatus includes:
Acquisition module, the audition percentage for obtaining current audio data to be played, wherein the audition percentage is described
The ratio of the duration of audition of audio data to be played and the total duration of song to be played;
Playing module, for when the audition percentage is greater than or equal to the first predetermined threshold value, obtaining the audition percentage
The default audition section being located at, when the audition percentage exceeds the default audition section, according to the audition percentage
Play the audio data to be played;
Processing module is made for when the audition percentage is less than the first predetermined threshold value, obtaining next audio data to be played
For current audio data to be played.
7. audio playing apparatus as claimed in claim 6, which is characterized in that the playing module is additionally operable in the audition
When percentage is less than or equal to the second predetermined threshold value, the audio data to be played is played, wherein second predetermined threshold value is small
In first predetermined threshold value.
8. audio playing apparatus as claimed in claims 6 or 7, which is characterized in that the audio playing apparatus further includes:
Computing module, for after the audio data to be played plays, the duration of audition for calculating this to be waited for described
Ratio between the total duration of playing audio-fequency data;
Update module, the audition percentage for updating the audio data to be played according to the ratio being calculated.
9. audio playing apparatus as claimed in claim 8, which is characterized in that the update module is additionally operable to wait broadcasting by described
The audition percentage for putting audio data replaces with the ratio being calculated;Alternatively, the update module, is additionally operable to acquisition and calculates
The average value of audition percentage in the ratio and prefixed time interval arrived after each audition of the audio data to be played,
And using the average value as the audition percentage.
10. audio playing apparatus as claimed in claims 6 or 7, which is characterized in that the acquisition module is additionally operable to obtain examination
Listen the audition percentage of each audio data to be played in list;The audio playing apparatus further includes sorting module, is used
In being arranged each audio data to be played in the audition list according to the descending sequence of the audition percentage
Sequence;The acquisition module is additionally operable to obtain successively according to the sequence after arrangement each described to be played in the audition list
Audio data, using as current audio data to be played.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510219191.5A CN104810033B (en) | 2015-04-30 | 2015-04-30 | Audio frequency playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510219191.5A CN104810033B (en) | 2015-04-30 | 2015-04-30 | Audio frequency playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104810033A CN104810033A (en) | 2015-07-29 |
CN104810033B true CN104810033B (en) | 2018-08-14 |
Family
ID=53694815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510219191.5A Active CN104810033B (en) | 2015-04-30 | 2015-04-30 | Audio frequency playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104810033B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187863B (en) * | 2015-07-31 | 2018-06-08 | 小米科技有限责任公司 | Play the method and device of advertisement |
US10659845B2 (en) * | 2015-08-06 | 2020-05-19 | Google Llc | Methods, systems, and media for providing video content suitable for audio-only playback |
CN105159973B (en) * | 2015-08-26 | 2019-07-12 | 努比亚技术有限公司 | Song recommendations device and method |
CN107342095B (en) * | 2017-06-30 | 2019-03-22 | Oppo广东移动通信有限公司 | Playback of songs method, apparatus, storage medium and electronic equipment |
CN113269573A (en) * | 2020-02-14 | 2021-08-17 | 西安诺瓦星云科技股份有限公司 | Media playing method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6842417B1 (en) * | 1999-09-17 | 2005-01-11 | Denon, Ltd. | Audio system |
CN103065655A (en) * | 2012-12-26 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and system of automatically generating song playlist at mobile terminal |
CN104166716A (en) * | 2014-08-15 | 2014-11-26 | 华为技术有限公司 | Media file assessment method and device |
CN104426915A (en) * | 2013-08-19 | 2015-03-18 | 中国电信股份有限公司 | Method, server and system for realizing online music subsection downloading |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1885286A (en) * | 2005-06-24 | 2006-12-27 | 鸿富锦精密工业(深圳)有限公司 | Play list generation system and method |
-
2015
- 2015-04-30 CN CN201510219191.5A patent/CN104810033B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6842417B1 (en) * | 1999-09-17 | 2005-01-11 | Denon, Ltd. | Audio system |
CN103065655A (en) * | 2012-12-26 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and system of automatically generating song playlist at mobile terminal |
CN104426915A (en) * | 2013-08-19 | 2015-03-18 | 中国电信股份有限公司 | Method, server and system for realizing online music subsection downloading |
CN104166716A (en) * | 2014-08-15 | 2014-11-26 | 华为技术有限公司 | Media file assessment method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104810033A (en) | 2015-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100892B (en) | Video play device and method | |
CN105677231B (en) | Associated application split screen display available device, method and terminal | |
CN104899062B (en) | Using startup method and device | |
CN105653729B (en) | A kind of device and method of recording file index | |
CN104917896A (en) | Data pushing method and terminal equipment | |
CN104967744B (en) | Adjust the method and device of terminal parameter | |
CN104731512B (en) | The method, apparatus and terminal that picture is shared | |
CN104850443B (en) | A kind of method and mobile terminal for closing error starting application program | |
CN104918064B (en) | A kind of method and device that mobile terminal video quickly plays | |
CN104810033B (en) | Audio frequency playing method and device | |
CN104915111B (en) | terminal operation control method and device | |
CN105357367B (en) | Recognition by pressing keys device and method based on pressure sensor | |
CN104679890B (en) | Picture method for pushing and device | |
CN105897995B (en) | A kind of method and apparatus for adding contact information | |
CN105094543B (en) | terminal operation instruction input method and device | |
CN106790942B (en) | Voice messaging intelligence store method and device | |
CN104661095A (en) | Audio and video data recommendation method and system | |
CN105120070A (en) | Methods and terminal for playing music during call | |
CN105049582B (en) | A kind of save set of calling record, method and display methods | |
CN104731508B (en) | Audio frequency playing method and device | |
CN106412328B (en) | A kind of method and apparatus obtaining field feedback | |
CN104915230B (en) | application control method and device | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN105100408B (en) | A kind of method and apparatus controlling mobile terminal | |
CN106658288A (en) | Method for controlling playing of loudspeaker, and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |