CN106126158B - A kind of method and apparatus of playing audio-fequency data - Google Patents

A kind of method and apparatus of playing audio-fequency data Download PDF

Info

Publication number
CN106126158B
CN106126158B CN201610425467.XA CN201610425467A CN106126158B CN 106126158 B CN106126158 B CN 106126158B CN 201610425467 A CN201610425467 A CN 201610425467A CN 106126158 B CN106126158 B CN 106126158B
Authority
CN
China
Prior art keywords
time
audio
stopping
sound volume
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610425467.XA
Other languages
Chinese (zh)
Other versions
CN106126158A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610425467.XA priority Critical patent/CN106126158B/en
Publication of CN106126158A publication Critical patent/CN106126158A/en
Application granted granted Critical
Publication of CN106126158B publication Critical patent/CN106126158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The invention discloses a kind of method and apparatus of playing audio-fequency data, belong to field of computer technology.The described method includes: being in the state that timing dormancy function is opened during progress audio data broadcasting in terminal, determine the stopping play time of the timing dormancy function, when the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned and the time absolute value of the difference for stopping play time being less than preset threshold, then after the stopping play time, continue to play the first audio data played before the stopping play time.Using the present invention, the efficiency for replaying audio data can be improved.

Description

A kind of method and apparatus of playing audio-fequency data
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and apparatus of playing audio-fequency data.
Background technique
Music can help people to relieve fatigue, and loosen mood, and many people like listening to music before sleeping, can contribute to Sleep.
Before sleep, user can open a terminal the music class application program of upper installation, select and play corresponding sound It is happy, terminal screen can be closed later, and terminal can continue to play music in the standby state.Meanwhile user can be set and broadcast The duration put, terminal can then be automatically stopped broadcasting music after reaching the duration.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
After terminal is automatically stopped and plays music, if user wants to continue listening to music, needs to unlock terminal screen, beat Music class application program is opened, selection continues to play corresponding music, in this way, the efficiency for replaying music is lower.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method of playing audio-fequency data and dresses It sets.The technical solution is as follows:
In a first aspect, providing a kind of method of playing audio-fequency data, which comprises
It is in the state that timing dormancy function is opened during progress audio data broadcasting in terminal, it is described fixed to determine When sleep mode stopping play time;
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned Be less than preset threshold with the time absolute value of the difference for stopping play time, then after the stopping play time, Continue to play the first audio data played before the stopping play time.
Optionally, described when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume quilt The time point of adjusting and the time absolute value of the difference for stopping play time being less than preset threshold, then play in the stopping After time point, continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the first preset duration before the stopping play time, then after the stopping play time, continue to play The first audio data played before the stopping play time.
In this way, user can be played in the preset duration before terminal stops playing audio-fequency data by adjusting audio Volume carrys out triggering terminal and continues playing audio-fequency data after stopping play time.
Optionally, after determining stopping play time, the method also includes:
When the time reaching first time point, issue for prompting to play the prompt tone that will stop, wherein described first Time point is time point of the stopping play time before with stopping first preset duration of play time interval.
In this way, terminal can prompt the user to choose whether to trigger end by adjusting audio broadcast sound volume by prompt tone Continue playing audio-fequency data in end.
Optionally, described when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume quilt The time point of adjusting and the time absolute value of the difference for stopping play time being less than preset threshold, then play in the stopping After time point, continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the second preset duration after the stopping play time, then after the time point that audio broadcast sound volume is conditioned, Continue to play the first audio data played before the stopping play time.
In this way, user can be played in the preset duration after terminal stops playing audio-fequency data by adjusting audio Volume carrys out triggering terminal and continues playing audio-fequency data.
It is optionally, described to continue to play the first audio data played before the stopping play time, comprising:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play first audio Data.
In this way, user can normally listen to broadcasting without being adjusted again to audio broadcast sound volume when continuing to play First audio data.
Optionally, described to continue after playing the first audio data played before the stopping play time, institute State method further include:
The timing sart point in time of the timing dormancy function is reset to continue to play first audio data when Between point.
In this way, terminal continue play the first audio data when set timing dormancy function automatically, it is possible to prevente effectively from Long-time playing audio-fequency data in the unwanted situation in family.
Optionally, described to continue after playing first audio data, the method also includes:
If detecting that first audio data finishes playing, stop playing audio-fequency data.
In this way, when terminal stops playing the first audio data, it, can if user wants to hear out the first audio data With by adjusting audio broadcast sound volume, terminal can then continue to finish the first audio data.
Second aspect, provides a kind of device of playing audio-fequency data, and described device includes:
Determining module, for being in the process of progress audio data broadcasting in the state that timing dormancy function is opened in terminal In, determine the stopping play time of the timing dormancy function;
Detection module, for when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume The time point and the time absolute value of the difference for stopping play time being conditioned are less than preset threshold, then broadcast in the stopping After putting time point, continue to play the first audio data played before the stopping play time.
Optionally, the detection module, is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the first preset duration before the stopping play time, then after the stopping play time, continue to play The first audio data played before the stopping play time.
Optionally, described device further include:
Cue module, for when the time reaching first time point, issuing for mentioning after determining stopping play time Show the prompt tone that broadcasting will stop, wherein the first time point be before the stopping play time with the stopping The time point of the first preset duration of play time interval.
Optionally, the detection module, is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the second preset duration after the stopping play time, then after the time point that audio broadcast sound volume is conditioned, Continue to play the first audio data played before the stopping play time.
Optionally, the detection module, is used for:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play first audio Data.
Optionally, described device further include:
Reset module, for continue to play the first audio data played before the stopping play time it Afterwards, the timing sart point in time of the timing dormancy function is reset to the time point for continuing to play first audio data.
Optionally, described device further include:
Stopping modular, for after continuing to play first audio data, if detecting the first audio number According to finishing playing, then stop playing audio-fequency data.
According to the third aspect of an embodiment of the present disclosure, a kind of device terminating playing audio-fequency data is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It is in the state that timing dormancy function is opened during progress audio data broadcasting in terminal, it is described fixed to determine When sleep mode stopping play time;
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned Be less than preset threshold with the time absolute value of the difference for stopping play time, then after the stopping play time, Continue to play the first audio data played before the stopping play time.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, the mistake of progress audio data broadcasting in the state that timing dormancy function is opened is in terminal Cheng Zhong determines the stopping play time of timing dormancy function, when the audio broadcast sound volume for detecting terminal is conditioned, if The time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned is less than preset threshold, then is stopping Only after play time, continue to play the first audio data played before stopping play time.In this way, at terminal During carrying out audio data broadcasting in the state of the unlatching of timing dormancy function, user, can be with without unlocking terminal screen The volume adjustment button of terminal is directly pressed, triggering terminal continues playing audio-fequency data after stopping play time, thus The efficiency for replaying audio data can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of a scenario of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 6 is a kind of apparatus structure schematic diagram of playing audio-fequency data provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method of playing audio-fequency data, the executing subject of this method is terminal.Wherein, Terminal can be the terminal for playing audio-fequency data, can be computer, mobile phone etc..Can be set in terminal processor, Memory, input unit, audio output unit, screen, the process that processor can be used for playing audio-fequency data are handled, are deposited Reservoir can be used for storing the data of the data and generation that need in following treatment processes, and input unit can be used for playing User carries out instruction input during audio data, and screen is displayed for needing to be shown to user in following treatment processes Content, audio output unit be used for play it is following during audio data.In the present embodiment, taking the terminal as an example, The detailed description of carry out scheme, other situations are similar therewith, and the present embodiment is not repeated.
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, it is in the state that timing dormancy function is opened during progress audio data broadcasting, really in terminal Determine the stopping play time of timing dormancy function.
In an implementation, the broadcast message class application program for playing audio-fequency data can be installed, when user wants in terminal When using terminal playing audio-fequency data, it can click and open above-mentioned broadcast message class application program, at this moment terminal can then show broadcasting The homepage of class application program, after user clicks the audio data for selecting and confirming desired broadcasting at the terminal, terminal then may be used To play associated audio data by broadcast message class application program, herein, audio data can be song, sound novel, broadcast etc..
The function of being automatically stopped playing audio-fequency data, i.e. timing dormancy function can be set in broadcast message class application program, User can preset the playing duration of playing audio-fequency data by the function, in this way, terminal is being in timing dormancy function During carrying out audio data broadcasting in the state of unlatching, timing dormancy can be determined according to the playing duration of user setting The stopping play time of function, and then when the time reaching stopping play time, it is current that terminal can be automatically stopped broadcasting The audio data of broadcasting.
Step 102, when the audio broadcast sound volume for detecting terminal is conditioned, if audio broadcast sound volume be conditioned when Between point with stop play time time absolute value of the difference be less than preset threshold, then after stopping play time, continuation Play the first audio data played before stopping play time.
In an implementation, after terminal has determined the stopping play time of timing dormancy function, user can stop broadcasting Put in the preset duration of the front and back at time point makes terminal continue to play the first audio data by preset operation.In view of in ring The more dim scene of border light, as in the bedroom turned off the light, the light that the screen of terminal is issued under bright screen state can be stimulated To the eyes of user, therefore, preset operation can be terminal and be in the operation that user can be completed under screen state of going out, further , the volume adjustment key in conjunction with terminal is the structure of generally physical button, and user can conveniently complete in the dark Adjust volume operation, and adjust volume can not also triggering terminal enter bright screen state.Therefore, terminal can be with real-time detection sound The adjusting situation of frequency broadcast sound volume, when audio broadcast sound volume is conditioned, the available current point in time of terminal, if audio is broadcast Time point that playback amount is conditioned and the time absolute value of the difference for stopping play time being less than preset threshold, and terminal then can be Stop continuing audio data being played on, i.e. the first audio data before playback terminal after play time.Concrete application Scene can be as shown in Figure 2.
Optionally, the time point being conditioned below for volume the both front and back situation for stopping play time respectively into Corresponding description is gone, the processing of step 102 can be such that
Situation one: when the audio broadcast sound volume for detecting terminal is conditioned, if audio broadcast sound volume be conditioned when Between point in the first preset duration before stopping play time, then after stopping play time, continue broadcasting stopping The first audio data only played before play time.
In an implementation, when the audio broadcast sound volume of terminal is conditioned, terminal available current time point, if worked as Preceding time point in the first preset duration before stopping play time, terminal then can stop play time it Afterwards, continue to play the first audio data played before stopping play time.Alternatively, terminal can stop play time Whether detection audio broadcast sound volume is conditioned in the first preset duration before point, if audio broadcast sound volume changes, It can continue to play the first audio data played before stopping play time after stopping play time.
Situation two: when the audio broadcast sound volume for detecting terminal is conditioned, if audio broadcast sound volume be conditioned when Between point stopping in the second preset duration after play time, then after the time point that audio broadcast sound volume is conditioned, Continue to play the first audio data played before stopping play time.
In an implementation, when the audio broadcast sound volume of terminal is conditioned, terminal available current time point, if worked as Preceding time point is stopping in the second preset duration after play time, and terminal can be then conditioned in audio broadcast sound volume Time point, continue to play the first audio data played before stopping play time.Alternatively, terminal can stop broadcasting Put whether detection audio broadcast sound volume in the second preset duration after time point is conditioned, if audio broadcast sound volume becomes Change, then can continue to play playing before stopping play time after the time point that audio broadcast sound volume is conditioned First audio data.Since the volume adjustment button of terminal can control audio broadcast sound volume and message informing volume (such as simultaneously The volumes such as incoming ring tone, alarm clock), if message informing sound can only be triggered by pressing volume adjustment button under terminal default standby state Amount changes, then needs to be arranged in terminal system in advance the second preset duration stopped after play time herein It is interior, it presses volume adjustment button triggering audio broadcast sound volume and changes.Herein, the second preset duration and above first is preset Duration may be the same or different.
Optionally, for above situation one, terminal can be with stopping play time at a distance of the time of the first preset duration Point prompts user, and corresponding processing can be such that
When the time reaching first time point, issue for prompting to play the prompt tone that will stop, wherein at the first time Point is off the time point before play time with stopping the first preset duration of play time interval.
In an implementation, terminal can be determined before stopping play time and be somebody's turn to do after determining stopping play time Time point at a distance of the first time point of the first preset duration, and then can be set during terminal plays audio data at that time Between when reaching first time point, issue for prompt the prompt tone that will stop of broadcasting, in this way, user can hear prompt tone Afterwards, it chooses whether to press volume adjustment button to continue to play the first audio number after stopping play time with triggering terminal According to.
Optionally, terminal continues that audio broadcast sound volume can be recalled to original state when playing the first audio data, in step 102 Corresponding processing can be such that the audio broadcast sound volume before the audio broadcast sound volume of using terminal is conditioned, and continue broadcasting first Audio data.
In an implementation, terminal can recorde audio broadcast sound volume and be conditioned when detecting that audio broadcast sound volume is conditioned Broadcast sound volume before, if the time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned Less than preset threshold, then this processing for adjusting audio broadcast sound volume will not change audio broadcast sound volume, and end can be used in terminal The audio broadcast sound volume at end be conditioned before audio broadcast sound volume, continue play the first audio data.Further, it can set Within the above-mentioned period, terminal receives the volume adjustment instruction of all user's inputs, does not adjust to audio broadcast sound volume Section, i.e. volume adjustment instruction only serve the effect that triggering terminal puts the first audio data in the stopping subsequent continued broadcasting of play time. Alternatively, may be set in the above-mentioned period, first volume adjustment instruction continues to play the first audio data for triggering, and Subsequent volume adjustment instruction can be specifically used for changing the audio broadcast sound volume of terminal.
Optionally, if terminal is in bright screen state, above-mentioned setting can not be used, specifically, the processing of step 102 Can be such that when the audio broadcast sound volume for detecting terminal is conditioned, if time point for being conditioned of audio broadcast sound volume with The time absolute value of the difference for stopping play time being less than preset threshold, and terminal in the period between above-mentioned two time point It is continuously in standby mode, then after stopping play time, continues to play played before stopping play time One audio data.
In an implementation, after terminal has determined the stopping play time of timing dormancy function, terminal can be with real-time detection The adjusting situation of audio broadcast sound volume, when audio broadcast sound volume is conditioned, the available current point in time of terminal detects simultaneously At time point that audio broadcast sound volume is conditioned and stop in period between play time, terminal whether be continuously in Machine state is preset if the time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned is less than Threshold value, and terminal is continuously in standby mode, terminal can then continue before playback terminal just after stopping play time In the audio data of broadcasting, i.e. the first audio data.
Optionally, the case where timing dormancy, is had the function of based on above-mentioned broadcast message class application program, the processing after step 102 can With as follows: the timing sart point in time of timing dormancy function is reset to the time point for continuing to play the first audio data.
In an implementation, user opens timing dormancy function during terminal plays audio data, and terminal is stopping Play time will be automatically stopped the first currently playing audio data of playback terminal, and before stopping play time or it In preset duration afterwards, if a terminal detects that audio broadcast sound volume is conditioned, then it can stop the subsequent of play time The first audio data is put in continued broadcasting, simultaneously, it is believed that user has been again turned on above-mentioned timing dormancy function, i.e., by timing dormancy function The timing sart point in time of energy resets to the time point for continuing to play the first audio data, in this way, terminal can then determine again The stopping play time of timing dormancy function.For example, user is sleeping front opening broadcast message class music program broadcasting music, and set It is automatically stopped broadcasting after playing 30 minutes, after having spent 30 minutes, user does not fall asleep also, and wants to continue listening to music, then can adjust Audio broadcast sound volume is saved, in this way, terminal can then continue to play 30 minutes music.Similarly, when the timing of a new round plays Between in section, the timing dormancy function of next stage can be equally triggered by adjusting audio broadcast sound volume within a preset time period Energy.
Optionally, terminal can be automatically stopped after playing the first audio data after continuing to play the first audio data Other audio datas are played, processing accordingly can be such that if detecting that the first audio data finishes playing after step 102, Then stop playing audio-fequency data.
In an implementation, user opens timing dormancy function during terminal plays audio data, eventually End will be automatically stopped the first currently playing audio data of playback terminal in stopping play time, use at this point, there is a strong possibility Family has wanted to listen to the first audio data, and in preset duration before or after stopping play time, if terminal is examined It measures audio broadcast sound volume to be conditioned, then can continue to play the first audio data after stopping play time, until the One audio data finishes playing.For example, user is sleeping front opening broadcast message class music program broadcasting music, and set broadcasting 30 minutes After be automatically stopped broadcasting, by 30 minutes, terminal stopped playing at once music, and currently playing music be a first user very The song liked, user want to hear out entire song, then the adjustable audio broadcast sound volume of user, in this way, terminal can continue This song song is finished playing.
Furthermore, it is possible to be arranged according to different audio broadcast sound volume regulative modes trigger it is above two continue play audio The processing of data continues to play the first audio data, and will timing that is, if detecting that the audio broadcast sound volume of terminal increases The timing sart point in time of sleep mode resets to the time point for continuing to play the first audio data;If detecting the sound of terminal Frequency broadcast sound volume reduces, then continues to play the first audio data, and when detecting that the first audio data finishes playing, stop broadcasting Put audio data.
In the embodiment of the present invention, the mistake of progress audio data broadcasting in the state that timing dormancy function is opened is in terminal Cheng Zhong determines the stopping play time of timing dormancy function, when the audio broadcast sound volume for detecting terminal is conditioned, if The time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned is less than preset threshold, then is stopping Only after play time, continue to play the first audio data played before stopping play time.In this way, at terminal During carrying out audio data broadcasting in the state of the unlatching of timing dormancy function, user, can be with without unlocking terminal screen The volume adjustment button of terminal is directly pressed, triggering terminal continues playing audio-fequency data after stopping play time, thus The efficiency for replaying audio data can be improved.
Based on the same technical idea, the embodiment of the invention also provides a kind of devices of playing audio-fequency data, such as Fig. 3 institute Show, which includes:
Determining module 301 carries out audio data broadcasting for being in the state that timing dormancy function is opened in terminal In the process, the stopping play time of the timing dormancy function is determined;
Detection module 302, for when the audio broadcast sound volume for detecting the terminal is conditioned, if audio plays sound It measures the time point being conditioned and the time absolute value of the difference for stopping play time being less than preset threshold, then in the stopping After play time, continue to play the first audio data played before the stopping play time.
Optionally, the detection module 302, is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the first preset duration before the stopping play time, then after the stopping play time, continue to play The first audio data played before the stopping play time.
Optionally, as shown in figure 4, described device further include:
Cue module 303, for when the time reaching first time point, issuing and using after determining stopping play time Play the prompt tone that will stop in prompt, wherein the first time point be the stoppings play time before with it is described Stop the time point of the first preset duration of play time interval.
Optionally, the detection module 302, is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the second preset duration after the stopping play time, then after the time point that audio broadcast sound volume is conditioned, Continue to play the first audio data played before the stopping play time.
Optionally, the detection module 302, is used for:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play first audio Data.
Optionally, as shown in figure 5, described device further include:
Module 304 is reset, for continuing to play the first audio data played before the stopping play time Later, the timing sart point in time of the timing dormancy function is reset to the time for continuing to play first audio data Point.
Optionally, as shown in fig. 6, described device further include:
Stopping modular 305, for after continuing to play first audio data, if detecting first audio Data playback is completed, then stops playing audio-fequency data.
In the embodiment of the present invention, the mistake of progress audio data broadcasting in the state that timing dormancy function is opened is in terminal Cheng Zhong determines the stopping play time of timing dormancy function, when the audio broadcast sound volume for detecting terminal is conditioned, if The time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned is less than preset threshold, then is stopping Only after play time, continue to play the first audio data played before stopping play time.In this way, at terminal During carrying out audio data broadcasting in the state of the unlatching of timing dormancy function, user, can be with without unlocking terminal screen The volume adjustment button of terminal is directly pressed, triggering terminal continues playing audio-fequency data after stopping play time, thus The efficiency for replaying audio data can be improved.
It should be understood that the device of playing audio-fequency data provided by the above embodiment is in playing audio-fequency data, only with The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not Same functional module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above Or partial function.In addition, the device of playing audio-fequency data provided by the above embodiment and the method for playing audio-fequency data are implemented Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
A kind of structural schematic diagram for terminal that the another exemplary embodiment of the disclosure provides.The terminal can be mobile phone Deng.
Referring to Fig. 7, terminal 700 may include following one or more components: processing component 702, memory 704, power supply Component 707, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and Communication component 717.
The integrated operation of the usual controlling terminal 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in terminal 700.These data are shown Example includes the instruction of any application or method for operating in terminal 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 707 provides electric power for the various assemblies of terminal 700.Electric power assembly 707 may include power management system System, one or more power supplys and other with for audio output apparatus 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between the terminal 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When terminal 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when audio output apparatus 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, wheat Gram wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 704 or warp It is sent by communication component 717.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for terminal 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of terminal 700, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 700, and sensor module 714 can also detect 700 1 components of terminal 700 or terminal Position change, the existence or non-existence that user contacts with terminal 700,700 orientation of terminal or acceleration/deceleration and terminal 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 714 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 717 is configured to facilitate the communication of wired or wireless way between terminal 700 and other equipment.Terminal 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 717 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 717 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of terminal 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal When row, enable the terminal to execute a kind of method for managing application program, this method comprises:
It is in the state that timing dormancy function is opened during progress audio data broadcasting in terminal, it is described fixed to determine When sleep mode stopping play time;
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned Be less than preset threshold with the time absolute value of the difference for stopping play time, then after the stopping play time, Continue to play the first audio data played before the stopping play time.
Optionally, described when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume quilt The time point of adjusting and the time absolute value of the difference for stopping play time being less than preset threshold, then play in the stopping After time point, continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the first preset duration before the stopping play time, then after the stopping play time, continue to play The first audio data played before the stopping play time.
In this way, user can be played in the preset duration before terminal stops playing audio-fequency data by adjusting audio Volume carrys out triggering terminal and continues playing audio-fequency data after stopping play time.
Optionally, after determining stopping play time, the method also includes:
When the time reaching first time point, issue for prompting to play the prompt tone that will stop, wherein described first Time point is time point of the stopping play time before with stopping first preset duration of play time interval.
In this way, terminal can prompt the user to choose whether to trigger end by adjusting audio broadcast sound volume by prompt tone Continue playing audio-fequency data in end.
Optionally, described when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume quilt The time point of adjusting and the time absolute value of the difference for stopping play time being less than preset threshold, then play in the stopping After time point, continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned In the second preset duration after the stopping play time, then after the time point that audio broadcast sound volume is conditioned, Continue to play the first audio data played before the stopping play time.
In this way, user can be played in the preset duration after terminal stops playing audio-fequency data by adjusting audio Volume carrys out triggering terminal and continues playing audio-fequency data.
It is optionally, described to continue to play the first audio data played before the stopping play time, comprising:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play first audio Data.
In this way, user can normally listen to broadcasting without being adjusted again to audio broadcast sound volume when continuing to play First audio data.
Optionally, described to continue after playing the first audio data played before the stopping play time, institute State method further include:
The timing sart point in time of the timing dormancy function is reset to continue to play first audio data when Between point.
In this way, terminal continue play the first audio data when set timing dormancy function automatically, it is possible to prevente effectively from Long-time playing audio-fequency data in the unwanted situation in family.
Optionally, described to continue after playing first audio data, the method also includes:
If detecting that first audio data finishes playing, stop playing audio-fequency data.
In this way, when terminal stops playing the first audio data, it, can if user wants to hear out the first audio data With by adjusting audio broadcast sound volume, terminal can then continue to finish the first audio data.
In the embodiment of the present invention, the mistake of progress audio data broadcasting in the state that timing dormancy function is opened is in terminal Cheng Zhong determines the stopping play time of timing dormancy function, when the audio broadcast sound volume for detecting terminal is conditioned, if The time absolute value of the difference at time point and stopping play time that audio broadcast sound volume is conditioned is less than preset threshold, then is stopping Only after play time, continue to play the first audio data played before stopping play time.In this way, at terminal During carrying out audio data broadcasting in the state of the unlatching of timing dormancy function, user, can be with without unlocking terminal screen The volume adjustment button of terminal is directly pressed, triggering terminal continues playing audio-fequency data after stopping play time, thus The efficiency for replaying audio data can be improved.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (13)

1. a kind of method of playing audio-fequency data, which is characterized in that the described method includes:
During carrying out audio data broadcasting in the state that terminal is in the unlatching of timing dormancy function, determine that the timing is stopped The stopping play time of dormancy function;
When the audio broadcast sound volume for detecting the terminal is conditioned, if time point that audio broadcast sound volume is conditioned and institute The time absolute value of the difference for stopping play time being stated less than preset threshold, then after the stopping play time, is continued The first audio data played before the stopping play time is played,
It is described when the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned Be less than preset threshold with the time absolute value of the difference for stopping play time, then after the stopping play time, Continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned is in institute It states in the second preset duration after stopping play time, then after the time point that audio broadcast sound volume is conditioned, continues Play the first audio data played before the stopping play time.
2. the method according to claim 1, wherein described when the audio broadcast sound volume quilt for detecting the terminal When adjusting, if the time point that audio broadcast sound volume is conditioned is less than with the time absolute value of the difference for stopping play time Preset threshold continues to play the played before the stopping play time then after the stopping play time One audio data, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned is in institute It states in the first preset duration before stopping play time, then after the stopping play time, continues to play in institute State the first audio data played before stopping play time.
3. according to the method described in claim 2, it is characterized in that, the method is also wrapped after determining stopping play time It includes:
When the time reaching first time point, issue for prompting to play the prompt tone that will stop, wherein the first time Point is time point of the stopping play time before with stopping first preset duration of play time interval.
4. the method according to claim 1, wherein described continue to play before the stopping play time The first audio data played, comprising:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play the first audio number According to.
5. the method according to claim 1, wherein described continue to play before the stopping play time After the first audio data played, the method also includes:
The timing sart point in time of the timing dormancy function is reset to the time point for continuing to play first audio data.
6. the method according to claim 1, wherein described continue after playing first audio data, institute State method further include:
If detecting that first audio data finishes playing, stop playing audio-fequency data.
7. a kind of device of playing audio-fequency data, which is characterized in that described device includes:
Determining module, for being in the state that timing dormancy function is opened during progress audio data broadcasting in terminal, Determine the stopping play time of the timing dormancy function;
Detection module, for when the audio broadcast sound volume for detecting the terminal is conditioned, if audio broadcast sound volume is adjusted The time point of section and the time absolute value of the difference for stopping play time being less than preset threshold, then when the stopping plays Between put after, continue to play the first audio data played before the stopping play time,
The detection module, is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned is in institute It states in the second preset duration after stopping play time, then after the time point that audio broadcast sound volume is conditioned, continues Play the first audio data played before the stopping play time.
8. device according to claim 7, which is characterized in that the detection module is used for:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned is in institute It states in the first preset duration before stopping play time, then after the stopping play time, continues to play in institute State the first audio data played before stopping play time.
9. device according to claim 8, which is characterized in that described device further include:
Cue module, for when the time reaching first time point, issuing for prompting to broadcast after determining stopping play time Put the prompt tone that will stop, wherein the first time point plays before being the stopping play time with the stopping The time point of time point the first preset duration of interval.
10. device according to claim 7, which is characterized in that the detection module is used for:
Audio broadcast sound volume before being conditioned using the audio broadcast sound volume of the terminal continues to play the first audio number According to.
11. device according to claim 7, which is characterized in that described device further include:
Module is reset, for inciting somebody to action after continuing to play the first audio data played before the stopping play time The timing sart point in time of the timing dormancy function resets to the time point for continuing to play first audio data.
12. device according to claim 7, which is characterized in that described device further include:
Stopping modular, for after continuing to play first audio data, if detecting that first audio data is broadcast It discharges into, then stops playing audio-fequency data.
13. a kind of device of playing audio-fequency data characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
During carrying out audio data broadcasting in the state that terminal is in the unlatching of timing dormancy function, determine that the timing is stopped The stopping play time of dormancy function;
When the audio broadcast sound volume for detecting the terminal is conditioned, if time point that audio broadcast sound volume is conditioned and institute The time absolute value of the difference for stopping play time being stated less than preset threshold, then after the stopping play time, is continued The first audio data played before the stopping play time is played,
It is described when the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned Be less than preset threshold with the time absolute value of the difference for stopping play time, then after the stopping play time, Continue to play the first audio data played before the stopping play time, comprising:
When the audio broadcast sound volume for detecting the terminal is conditioned, if the time point that audio broadcast sound volume is conditioned is in institute It states in the second preset duration after stopping play time, then after the time point that audio broadcast sound volume is conditioned, continues Play the first audio data played before the stopping play time.
CN201610425467.XA 2016-06-15 2016-06-15 A kind of method and apparatus of playing audio-fequency data Active CN106126158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610425467.XA CN106126158B (en) 2016-06-15 2016-06-15 A kind of method and apparatus of playing audio-fequency data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610425467.XA CN106126158B (en) 2016-06-15 2016-06-15 A kind of method and apparatus of playing audio-fequency data

Publications (2)

Publication Number Publication Date
CN106126158A CN106126158A (en) 2016-11-16
CN106126158B true CN106126158B (en) 2019-04-23

Family

ID=57469832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610425467.XA Active CN106126158B (en) 2016-06-15 2016-06-15 A kind of method and apparatus of playing audio-fequency data

Country Status (1)

Country Link
CN (1) CN106126158B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107889324A (en) * 2017-10-27 2018-04-06 广东小天才科技有限公司 A kind of light adjusting method, device, audio-frequence player device and storage medium
CN108509176B (en) * 2018-04-10 2021-06-08 Oppo广东移动通信有限公司 Method and device for playing audio data, storage medium and intelligent terminal
CN108983949A (en) * 2018-07-16 2018-12-11 深圳市本牛科技有限责任公司 Method, computer equipment and the storage medium of low-power consumption wake-up terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058200A (en) * 2001-08-21 2003-02-28 Canon Inc Audio output device, audio output method and program
CN101295170A (en) * 2007-04-27 2008-10-29 鸿富锦精密工业(深圳)有限公司 Electronic equipment and method for automatically closing the same
CN104581338B (en) * 2014-12-29 2017-10-20 广东欧珀移动通信有限公司 A kind of method and device for controlling player to close automatically

Also Published As

Publication number Publication date
CN106126158A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN103576834B (en) Electricity-saving control method and the electronic equipment for supporting electricity-saving control method
CN107396177A (en) Video broadcasting method, device and storage medium
CN105933539B (en) audio playing control method and device and terminal
CN104808522B (en) State switching method and device
CN104376239B (en) The unlocking method and a device of terminal
CN105845124A (en) Audio processing method and device
CN106161781A (en) Method for regulation of sound volume and device
CN106210336B (en) Control the method and device of mobile terminal state switching
CN107708187A (en) The control method and device of sleep pattern
CN107147957B (en) Video broadcasting method and device
CN105182809A (en) Method for adjusting light transmittance of intelligent curtain, intelligent curtain and device
CN106126158B (en) A kind of method and apparatus of playing audio-fequency data
CN105511307B (en) The control method and device of a kind of electronic equipment
CN106792173A (en) Video broadcasting method and device
CN107919124A (en) Equipment awakening method and device
CN110349578A (en) Equipment wakes up processing method and processing device
CN108806714A (en) The method and apparatus for adjusting volume
CN104182039B (en) Apparatus control method, device and electronic equipment
WO2018058815A1 (en) Information reminding method and apparatus
CN105390120B (en) bright screen control method and device
CN105516469B (en) Alarm clock control method and device
CN106066781B (en) A kind of method and apparatus terminating playing audio-fequency data
CN105185396B (en) A kind of method and apparatus of playing audio signal
CN106101372B (en) Using prompting setting method and device
CN106911890A (en) Photographic method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant