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

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

Info

Publication number
CN106066781A
CN106066781A CN201610425958.4A CN201610425958A CN106066781A CN 106066781 A CN106066781 A CN 106066781A CN 201610425958 A CN201610425958 A CN 201610425958A CN 106066781 A CN106066781 A CN 106066781A
Authority
CN
China
Prior art keywords
terminal
zero
audio frequency
sound volume
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610425958.4A
Other languages
Chinese (zh)
Other versions
CN106066781B (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 CN201610425958.4A priority Critical patent/CN106066781B/en
Publication of CN106066781A publication Critical patent/CN106066781A/en
Application granted granted Critical
Publication of CN106066781B publication Critical patent/CN106066781B/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 terminating playing audio-fequency data, belong to field of computer technology.Described method includes: after terminal enters pass screen state during playing audio-fequency data, detect the audio frequency broadcast sound volume of described terminal;When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, terminate to play the voice data that described terminal is currently playing.Using the present invention, during closing voice data, terminal screen will not stimulate the eyes to user.

Description

A kind of method and apparatus terminating playing audio-fequency data
Technical field
The present invention relates to field of computer technology, particularly to a kind of method and apparatus terminating playing audio-fequency data.
Background technology
Voice data can help people's fatigue alleviating, loosens mood, and many people like listening voice data before sleeping, can To conduce to sleep.
Before sleep, user can open a terminal the voice data broadcast message class application program of upper installation, selects and plays corresponding Voice data, screen of can closing a terminal afterwards, terminal can continue playing audio-fequency data under screen state closing.
During realizing the present invention, inventor finds that prior art at least there is problems in that
After a period of time, user if it is intended to close voice data, then needs to open terminal screen, closes voice data and broadcasts Putting class application program, at this moment the lamp in room may have been switched off, so, the light that terminal screen sends will stimulate and arrives user's Eyes.
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of method terminating playing audio-fequency data and Device.Described technical scheme is as follows:
First aspect, it is provided that a kind of method terminating playing audio-fequency data, described method includes:
After terminal enters pass screen state during playing audio-fequency data, the audio frequency detecting described terminal plays sound Amount;
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, Terminate to play the voice data that described terminal is currently playing.
Optionally, described after terminal enters pass screen state during playing audio-fequency data, detect described terminal Audio frequency broadcast sound volume, including:
Enter during terminal in a sleep mode playing audio-fequency data after closing screen state, detect the sound of described terminal Frequently broadcast sound volume.
So, terminal only just can trigger the process of this programme after user opens sleep pattern.
Optionally, described when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches first During preset duration, terminate to play the voice data that described terminal is currently playing, including:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, If receiving the little instruction of volume down, then it is immediately finished and plays the voice data that described terminal is currently playing, wherein, described second Preset duration is less than described first preset duration.
So, if user needs terminal to terminate playing audio-fequency data at once, volume-down keys can repeatedly be pressed.
Optionally, after the voice data that described terminal is currently playing is play in described end, described method also includes:
It is adjusted to the audio frequency broadcast sound volume of described terminal preset volume.
So, again during playing audio-fequency data, user, without being adjusted audio frequency broadcast sound volume, can normally listen to and broadcast The first voice data put.
Optionally, described when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches first During preset duration, terminate to play the voice data that described terminal is currently playing, including:
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration and When described terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
So, if the user while operation terminal enters duty in preset duration, then terminal can not carry out end and broadcasts Put the process of voice data.
Optionally, after the voice data that described terminal is currently playing is play in described end, described method also includes:
When the voice data that the end described terminal of broadcasting is currently playing, store described audio frequency broadcast sound volume and be adjusted to zero The playing progress rate point of Shi Suoshu voice data.
So, again during playing audio-fequency data, user can continue to receive from the moment of upper secondary audio program broadcast sound volume vanishing Listen the voice data that last time plays, it is to avoid omit relevant information.
Second aspect, it is provided that a kind of device terminating playing audio-fequency data, described device includes:
Detection module, after entering pass screen state during playing audio-fequency data when terminal, detects described terminal Audio frequency broadcast sound volume;
Terminate module, for when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the During one preset duration, terminate to play the voice data that described terminal is currently playing.
Optionally, described detection module, it is used for:
Enter during terminal in a sleep mode playing audio-fequency data after closing screen state, detect the sound of described terminal Frequently broadcast sound volume.
Optionally, described end module, it is used for:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, If receiving the little instruction of volume down, then it is immediately finished and plays the voice data that described terminal is currently playing, wherein, described second Preset duration is less than described first preset duration.
Optionally, described device also includes:
Adjustment module, for after terminating to play the voice data that described terminal is currently playing, by the sound of described terminal Frequently broadcast sound volume is adjusted to preset volume.
Optionally, described end module, it is used for:
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration and When described terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
Optionally, described device also includes:
Memory module, for, during when the end described terminal of broadcasting currently playing voice data, storing described audio frequency and play Volume is adjusted to the playing progress rate point of described voice data when zero.
The third aspect according to disclosure embodiment, it is provided that a kind of device terminating playing audio-fequency data, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
After terminal enters pass screen state during playing audio-fequency data, the audio frequency detecting described terminal plays sound Amount;
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, Terminate to play the voice data that described terminal is currently playing.
The technical scheme that the embodiment of the present invention provides has the benefit that
In the embodiment of the present invention, after terminal enters pass screen state during playing audio-fequency data, detection terminal Audio frequency broadcast sound volume;When detecting that audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration Time, terminate the voice data that playback terminal is currently playing.So, during terminal plays voice data, if user thinks Terminal to be controlled stops playing audio-fequency data, then can be directly by pressing volume adjusting button by the regulation of audio frequency broadcast sound volume extremely Zero, it is not necessary to open terminal screen, thus the process closing voice data will not stimulate the eyes to user.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram terminating playing audio-fequency data that the embodiment of the present invention provides;
Fig. 2 is a kind of scene schematic diagram terminating playing audio-fequency data that the embodiment of the present invention provides;
Fig. 3 is a kind of apparatus structure schematic diagram terminating playing audio-fequency data that the embodiment of the present invention provides;
Fig. 4 is a kind of apparatus structure schematic diagram terminating playing audio-fequency data that the embodiment of the present invention provides;
Fig. 5 is a kind of apparatus structure schematic diagram terminating playing audio-fequency data that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiments providing a kind of method terminating playing audio-fequency data, the executive agent of the method is terminal. Wherein, terminal could be for the terminal of playing audio-fequency data, can be computer, mobile phone etc..Terminal can be provided with place Reason device, memorizer, input block, audio output unit, screen, processor may be used at the process of playing audio-fequency data Reason, memorizer may be used for storing the data of data and the generation needed in following processing procedure, and input block may be used for During playing audio-fequency data, user carries out instruction input, and screen is displayed in following processing procedure needing display To the content of user, audio output unit for play following during voice data.In the present embodiment, with terminal as mobile phone As a example by, carrying out the detailed description of scheme, other situation is similar to therewith, and the present embodiment is not repeated.
Below in conjunction with detailed description of the invention, being described in detail the handling process shown in Fig. 1, content can be as Under:
Step 101, after terminal enters pass screen state during playing audio-fequency data, the audio frequency of detection terminal is play Volume.
In force, terminal can be provided with the broadcast message class application program for playing audio-fequency data, when user wants When using terminal plays voice data, can click on the above-mentioned broadcast message class application program of unlatching, at this moment terminal then can show broadcasting The homepage of class application program, user clicks on after selecting and confirm the voice data of broadcasting wanted in terminal, and terminal then may be used To play associated audio data by broadcast message class application program, herein, voice data can be song, sound novel, broadcast etc.. If terminal user when playing audio-fequency data does not carries out other operation, terminal then can enter pass screen state, and can be Close and under screen state, continue playing audio-fequency data.Meanwhile, can arrange when terminal enters pass screen during playing audio-fequency data During state, start to detect the audio frequency broadcast sound volume of terminal.
Optionally, the process carrying out this programme the most in a sleep mode, accordingly, the process of step 101 can be set Can be such that after entering pass screen state during terminal in a sleep mode playing audio-fequency data, the audio frequency of detection terminal Broadcast sound volume.
In force, terminal can be provided with multiple-working mode, such as mode standard, conference model, outdoor pattern etc..Often The pattern of kind has different functions, and this programme may operate under the sleep pattern of terminal.Concrete, user is permissible before sleeping The mode of operation of terminal is adjusted to sleep pattern, so, after terminal enters and closes screen state during playing audio-fequency data, eventually End can obtain current mode of operation, if terminal is in sleep pattern, then can detect the audio frequency broadcast sound volume of terminal.
Step 102, when detect audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach first preset time Time long, terminate the voice data that playback terminal is currently playing.
In force, it is contemplated that user is the scene of listening to audio data before sleeping, owing to ambient light is the most dim, bright screen The light that under state, terminal screen is sent can stimulate the eyes to user, so, if user wants to close currently playing Voice data, then be more likely to complete to operate accordingly, further, in conjunction with the volume of terminal under terminal is in pass screen state Adjusting key is the structure of generally physical button, and user can complete to regulate the operation of volume the most in the dark, and Regulation volume triggering terminal can not also enter bright screen state.Therefore, based on above-mentioned consideration, user can be by regulation terminal The operation of audio frequency broadcast sound volume carrys out triggering terminal and terminates playing audio-fequency data.Concrete, terminal is under the screen state of pass and plays sound Frequency according to time, the audio frequency broadcast sound volume of terminal can be detected in real time, when detecting that audio frequency broadcast sound volume is adjusted to zero, permissible Record current time, can continue to detect the audio frequency broadcast sound volume of terminal, afterwards if the audio frequency broadcast sound volume of terminal is continuously The duration of zero reaches the first preset duration, then can terminate the voice data that playback terminal is currently playing.Concrete application scenarios can As shown in Figure 2.
Optionally, user can terminate to play audio frequency number to control terminal by persistently pressing volume-down keys at once According to, accordingly, the process of step 102 can be such that detect audio frequency broadcast sound volume be adjusted to zero and be continuously zero time After length reaches the second preset duration, if receiving the little instruction of volume down, then it is immediately finished the audio frequency that playback terminal is currently playing Data, wherein, the second preset duration is less than the first preset duration.
In force, terminal during playing audio-fequency data, terminates to play if user wants to control terminal under closing screen state Voice data, then can be adjusted to zero by pressing volume minimizing button by the audio frequency broadcast sound volume of terminal.At this moment, terminal is permissible Start timing, if after the audio frequency broadcast sound volume of terminal is continuously zero, and the second preset duration in the second preset duration still Receive the little instruction of volume down, then can be immediately finished the voice data that playback terminal is currently playing.
Optionally, after terminating playing audio-fequency data, audio frequency broadcast sound volume can be recalled to original state by terminal, processes accordingly Can be such that after terminating the voice data that playback terminal is currently playing, be adjusted to the audio frequency broadcast sound volume of terminal preset volume.
In force, the audio frequency broadcast sound volume of terminal, after terminating playing audio-fequency data, can be adjusted to preset sound by terminal Amount, so, when terminal playing audio-fequency data again, can play out according to default volume.Simultaneously for other function sound Amount (such as incoming call reminding sound volume) and the terminal that audio frequency broadcast sound volume is same volume, in this manner it is ensured that user will not be because of end The audio frequency broadcast sound volume of end is adjusted to after zero omit the information of key.It addition, the audio frequency broadcast sound volume in terminal is adjusted During joint is zero, the first audio frequency broadcast sound volume before audio frequency broadcast sound volume reduces can be recorded, so, terminate in terminal After playing audio-fequency data, the audio frequency broadcast sound volume of terminal can be adjusted to the first audio frequency broadcast sound volume.
Optionally, if terminal entered duty, the most not in the preset duration after audio frequency broadcast sound volume vanishing Triggering terminal terminates the process of playing audio-fequency data, and accordingly, the process of step 102 can be such that when detecting that audio frequency is play Volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration and time terminal is continuously in pass screen state, then terminate The voice data that playback terminal is currently playing.
In force, terminal is gone forward side by side at playing audio-fequency data and is entered the GATT after screen state, if be detected that audio frequency broadcast sound volume quilt Be adjusted to zero, then can be to play beginning timing that time of audio frequency broadcast sound volume vanishing, in the first preset duration, detection is eventually End audio frequency broadcast sound volume and state, if in the first preset duration audio frequency broadcast sound volume be continuously zero and terminal be continuously in Close screen state, then terminal can terminate the voice data that playback terminal is currently playing after the first preset duration.If first In preset duration there is change in audio frequency broadcast sound volume, or terminal entered duty, then can abandon this timing, by Audio frequency broadcast sound volume is adjusted to when zero restart timing again.
Optionally, for the ease of continuing next time to play, terminal can play the playing progress rate of front voice data with record end, Corresponding process can be such that, when the voice data that end playback terminal is currently playing, storage audio frequency broadcast sound volume is conditioned The playing progress rate point of voice data when being zero.
In force, when detect audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach first preset time After length, terminal can terminate to play currently playing voice data.Simultaneously, it is contemplated that in the first preset duration, terminal can play one Determine the voice data of progress, so, link up the audio frequency listened to if voice data is this kind of needs of sound novel, again broadcast next time When putting voice data user may holiday important information, therefore, when terminating the currently playing voice data of playback terminal Time, terminal can store audio frequency broadcast sound volume and be adjusted to the playing progress rate point of voice data when zero, and then, again play this sound Frequency according to time, can from storage playing progress rate point commence play out.Or, terminal can commence play out voice data every time Time, the playing progress rate of currently playing voice data is adjusted forward the first preset duration.
In the embodiment of the present invention, after terminal enters pass screen state during playing audio-fequency data, detection terminal Audio frequency broadcast sound volume;When detecting that audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration Time, terminate the voice data that playback terminal is currently playing.So, during terminal plays voice data, if user thinks Terminal to be controlled stops playing audio-fequency data, then can be directly by pressing volume adjusting button by the regulation of audio frequency broadcast sound volume extremely Zero, it is not necessary to open terminal screen, thus the process closing voice data will not stimulate the eyes to user.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of device terminating playing audio-fequency data, as Shown in Fig. 3, this device includes:
Detection module 301, after entering pass screen state during playing audio-fequency data when terminal, detects described end The audio frequency broadcast sound volume of end;
Terminate module 302, for when detecting that described audio frequency broadcast sound volume is up to when being adjusted to zero and be continuously zero During to the first preset duration, terminate to play the voice data that described terminal is currently playing.
Optionally, described detection module 301, it is used for:
Enter during terminal in a sleep mode playing audio-fequency data after closing screen state, detect the sound of described terminal Frequently broadcast sound volume.
Optionally, described end module 302, it is used for:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, If receiving the little instruction of volume down, then it is immediately finished and plays the voice data that described terminal is currently playing, wherein, described second Preset duration is less than described first preset duration.
Optionally, as shown in Figure 4, described device also includes:
Adjustment module 303, for after terminating to play the voice data that described terminal is currently playing, by described terminal Audio frequency broadcast sound volume is adjusted to preset volume.
Optionally, described end module 302, it is used for:
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration and When described terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
Optionally, as it is shown in figure 5, described device also includes:
Memory module 304, for, during when the end described terminal of broadcasting currently playing voice data, storing described audio frequency and broadcast Playback amount is adjusted to the playing progress rate point of described voice data when zero.
In the embodiment of the present invention, after terminal enters pass screen state during playing audio-fequency data, detection terminal Audio frequency broadcast sound volume;When detecting that audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration Time, terminate the voice data that playback terminal is currently playing.So, during terminal plays voice data, if user thinks Terminal to be controlled stops playing audio-fequency data, then can be directly by pressing volume adjusting button by the regulation of audio frequency broadcast sound volume extremely Zero, it is not necessary to open terminal screen, thus the process closing voice data will not stimulate the eyes to user.
It should be understood that the device terminating playing audio-fequency data that above-described embodiment provides is terminating playing audio-fequency data Time, only it is illustrated with the division of above-mentioned each functional module, in actual application, can as desired above-mentioned functions be divided Join and completed by different functional modules, the internal structure of device will be divided into different functional modules, to complete above description All or part of function.It addition, the device terminating playing audio-fequency data that above-described embodiment provides plays audio frequency with end The embodiment of the method for data belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
The structural representation of a kind of terminal that the another exemplary embodiment of the disclosure provides.This terminal can be mobile phone Deng.
With reference to Fig. 6, terminal 600 can include following one or more assembly: processes assembly 602, memorizer 604, power supply Assembly 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, and Communications component 616.
Process assembly 602 and generally control the integrated operation of terminal 600, such as with display, call, data communication, phase The operation that machine operation and record operation are associated.Treatment element 602 can include that one or more processor 620 performs to refer to Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 602 can include one or more module, just Mutual in process between assembly 602 and other assemblies.Such as, processing component 602 can include multi-media module, many to facilitate Media component 608 and process between assembly 602 mutual.
Memorizer 604 is configured to store various types of data to support the operation in terminal 600.Showing of these data Example includes any application program for operation in terminal 600 or the instruction of method, contact data, telephone book data, disappears Breath, picture, video etc..Memorizer 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
The various assemblies that electric power assembly 606 is terminal 600 provide electric power.Electric power assembly 606 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for audio output apparatus 600, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 608 is included between described terminal 600 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action Border, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers Body assembly 608 includes a front-facing camera and/or post-positioned pick-up head.When terminal 600 is in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to output and/or input audio signal.Such as, audio-frequency assembly 610 includes a Mike Wind (MIC), when audio output apparatus 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, wheat Gram wind is configured to receive external audio signal.The audio signal received can be further stored at memorizer 604 or warp Sent by communications component 616.
I/O interface 612 provides interface for processing between assembly 602 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Set button.
Sensor cluster 614 includes one or more sensor, for providing the state of various aspects to comment for terminal 600 Estimate.Such as, what sensor cluster 614 can detect terminal 600 opens/closed mode, the relative localization of assembly, such as described Assembly is display and the keypad of terminal 600, and sensor cluster 614 can also detect terminal 600 or 600 1 assemblies of terminal Position change, the presence or absence that user contacts with terminal 600, terminal 600 orientation or acceleration/deceleration and terminal 600 Variations in temperature.Sensor cluster 614 can include proximity transducer, is configured to when not having any physical contact detect The existence of neighbouring object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, is used for becoming Use as in application.In certain embodiments, this sensor cluster 614 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 616 is configured to facilitate the communication of wired or wireless mode between terminal 600 and other equipment.Terminal 600 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement In example, communication component 616 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel. In one exemplary embodiment, described communication component 616 also includes near-field communication (NFC) module, to promote junction service.Example As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 600 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 604 of instruction, above-mentioned instruction can have been performed said method by the processor 620 of terminal 600.Such as, Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is held by the processor of terminal During row so that terminal is able to carry out a kind of method managing application program, and the method includes:
After terminal enters pass screen state during playing audio-fequency data, the audio frequency detecting described terminal plays sound Amount;
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, Terminate to play the voice data that described terminal is currently playing.
Optionally, described after terminal enters pass screen state during playing audio-fequency data, detect described terminal Audio frequency broadcast sound volume, including:
Enter during terminal in a sleep mode playing audio-fequency data after closing screen state, detect the sound of described terminal Frequently broadcast sound volume.
Optionally, described when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches first During preset duration, terminate to play the voice data that described terminal is currently playing, including:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, If receiving the little instruction of volume down, then it is immediately finished and plays the voice data that described terminal is currently playing, wherein, described second Preset duration is less than described first preset duration.
Optionally, after the voice data that described terminal is currently playing is play in described end, described method also includes:
It is adjusted to the audio frequency broadcast sound volume of described terminal preset volume.
Optionally, described when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches first During preset duration, terminate to play the voice data that described terminal is currently playing, including:
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration and When described terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
Optionally, after the voice data that described terminal is currently playing is play in described end, described method also includes:
When the voice data that the end described terminal of broadcasting is currently playing, store described audio frequency broadcast sound volume and be adjusted to zero The playing progress rate point of Shi Suoshu voice data.
In the embodiment of the present invention, after terminal enters pass screen state during playing audio-fequency data, detection terminal Audio frequency broadcast sound volume;When detecting that audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration Time, terminate the voice data that playback terminal is currently playing.So, during terminal plays voice data, if user thinks Terminal to be controlled stops playing audio-fequency data, then can be directly by pressing volume adjusting button by the regulation of audio frequency broadcast sound volume extremely Zero, it is not necessary to open terminal screen, thus the process closing voice data will not stimulate the eyes to user.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware Completing, it is also possible to instruct relevant hardware by program and complete, described program can be stored 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 only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (13)

1. the method terminating playing audio-fequency data, it is characterised in that described method includes:
After terminal enters pass screen state during playing audio-fequency data, detect the audio frequency broadcast sound volume of described terminal;
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, terminate Play the voice data that described terminal is currently playing.
Method the most according to claim 1, it is characterised in that described enter during playing audio-fequency data when terminal After closing screen state, detect the audio frequency broadcast sound volume of described terminal, including:
Entering during terminal in a sleep mode playing audio-fequency data after closing screen state, the audio frequency detecting described terminal is broadcast Playback amount.
Method the most according to claim 1, it is characterised in that described when detecting that described audio frequency broadcast sound volume is adjusted to Zero and be continuously the duration of zero when reaching the first preset duration, terminate to play the voice data that described terminal is currently playing, including:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, if Receiving the little instruction of volume down, be then immediately finished and play the voice data that described terminal is currently playing, wherein, described second presets Duration is less than described first preset duration.
Method the most according to claim 1, it is characterised in that the audio frequency number that described terminal is currently playing is play in described end According to afterwards, described method also includes:
It is adjusted to the audio frequency broadcast sound volume of described terminal preset volume.
Method the most according to claim 1, it is characterised in that described when detecting that described audio frequency broadcast sound volume is adjusted to Zero and be continuously the duration of zero when reaching the first preset duration, terminate to play the voice data that described terminal is currently playing, including:
When detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration and described When terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
Method the most according to claim 1, it is characterised in that the audio frequency number that described terminal is currently playing is play in described end According to afterwards, described method also includes:
When the voice data that the end described terminal of broadcasting is currently playing, store described audio frequency broadcast sound volume and be adjusted to 1 time institute State the playing progress rate point of voice data.
7. the device terminating playing audio-fequency data, it is characterised in that described device includes:
Detection module, after entering pass screen state during playing audio-fequency data when terminal, detects the sound of described terminal Frequently broadcast sound volume;
Terminate module, for when detect that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero to reach first pre- If during duration, terminate to play the voice data that described terminal is currently playing.
Device the most according to claim 7, it is characterised in that described detection module, is used for:
Entering during terminal in a sleep mode playing audio-fequency data after closing screen state, the audio frequency detecting described terminal is broadcast Playback amount.
Device the most according to claim 7, it is characterised in that described end module, is used for:
Detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously after the duration of zero reaches the second preset duration, if Receiving the little instruction of volume down, be then immediately finished and play the voice data that described terminal is currently playing, wherein, described second presets Duration is less than described first preset duration.
Device the most according to claim 7, it is characterised in that described device also includes:
Adjustment module, for, after terminating to play the voice data that described terminal is currently playing, broadcasting the audio frequency of described terminal Playback amount is adjusted to preset volume.
11. devices according to claim 7, it is characterised in that described end module, are used for:
When detecting that described audio frequency broadcast sound volume is adjusted to zero and is continuously the duration of zero and reaches the first preset duration and described When terminal is continuously in pass screen state, then terminate to play the voice data that described terminal is currently playing.
12. devices according to claim 7, it is characterised in that described device also includes:
Memory module, for, during when the end described terminal of broadcasting currently playing voice data, storing described audio frequency broadcast sound volume It is adjusted to the playing progress rate point of described voice data when zero.
13. 1 kinds of devices terminating playing audio-fequency data, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
After terminal enters pass screen state during playing audio-fequency data, detect the audio frequency broadcast sound volume of described terminal;
When detect described audio frequency broadcast sound volume be adjusted to zero and be continuously the duration of zero reach the first preset duration time, terminate Play the voice data that described terminal is currently playing.
CN201610425958.4A 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data Active CN106066781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610425958.4A CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610425958.4A CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Publications (2)

Publication Number Publication Date
CN106066781A true CN106066781A (en) 2016-11-02
CN106066781B CN106066781B (en) 2019-07-02

Family

ID=57421275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610425958.4A Active CN106066781B (en) 2016-06-15 2016-06-15 A kind of method and apparatus terminating playing audio-fequency data

Country Status (1)

Country Link
CN (1) CN106066781B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792163A (en) * 2016-11-25 2017-05-31 上海乐欢软件有限公司 The detection method and device of a kind of video broadcasting condition
CN106937162A (en) * 2017-03-03 2017-07-07 北京小米移动软件有限公司 Audio and video playing control method and device
CN111240634A (en) * 2020-01-08 2020-06-05 百度在线网络技术(北京)有限公司 Sound box working mode adjusting method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2684036B2 (en) * 1987-04-30 1997-12-03 パイオニア株式会社 Acoustic vibration device considering physical condition
CN1835107A (en) * 2005-03-14 2006-09-20 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with music automatic stop function and music stop method
US20100150379A1 (en) * 2008-12-17 2010-06-17 Panasonic Automotive Systems Company Of America, Division Of Panasonic Corporation Of North America Multiband audio dynamics processor
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
CN104134380A (en) * 2013-05-03 2014-11-05 张胜祥 Electronic musical instrument simulation learning tool
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN104318934A (en) * 2014-09-11 2015-01-28 小米科技有限责任公司 Method, terminal, wearable device and play device for closing multimedia file
CN105630354A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Application control method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2684036B2 (en) * 1987-04-30 1997-12-03 パイオニア株式会社 Acoustic vibration device considering physical condition
CN1835107A (en) * 2005-03-14 2006-09-20 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with music automatic stop function and music stop method
US20100150379A1 (en) * 2008-12-17 2010-06-17 Panasonic Automotive Systems Company Of America, Division Of Panasonic Corporation Of North America Multiband audio dynamics processor
CN102118507A (en) * 2011-03-09 2011-07-06 惠州Tcl移动通信有限公司 Mobile terminal utilizing volume key as music pause key and realization method thereof
CN104134380A (en) * 2013-05-03 2014-11-05 张胜祥 Electronic musical instrument simulation learning tool
CN104318934A (en) * 2014-09-11 2015-01-28 小米科技有限责任公司 Method, terminal, wearable device and play device for closing multimedia file
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN105630354A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Application control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792163A (en) * 2016-11-25 2017-05-31 上海乐欢软件有限公司 The detection method and device of a kind of video broadcasting condition
CN106937162A (en) * 2017-03-03 2017-07-07 北京小米移动软件有限公司 Audio and video playing control method and device
CN111240634A (en) * 2020-01-08 2020-06-05 百度在线网络技术(北京)有限公司 Sound box working mode adjusting method and device

Also Published As

Publication number Publication date
CN106066781B (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN105204357A (en) Contextual model regulating method and device for intelligent household equipment
CN106502604A (en) Throw screen changing method and device
CN104456831A (en) Air purification warning method and device, user equipment and system
CN105049923A (en) Method and apparatus for waking up electronic device
CN105162945A (en) Method and device for displaying information
CN104902059A (en) Call reminding method and device
CN104302048A (en) Lamp control method and device
CN104601694A (en) Operating control method, terminal, repeater device, intelligent equipment and device
CN107368818A (en) Meeting room state method to set up, device, system and storage medium
CN105182809A (en) Method for adjusting light transmittance of intelligent curtain, intelligent curtain and device
CN104636110B (en) Control the method and device of volume
CN104394137B (en) A kind of method and device of prompting voice call
CN104915123A (en) Terminal display method and device
CN105187594A (en) Echo canceling method and device
CN103986821A (en) Method, equipment and system for carrying out parameter adjustment
CN104618783A (en) Remote control method and device
CN105426218A (en) Method and device for controlling audio playing
CN105302412A (en) Method and apparatus for displaying state of smart device
CN107529699A (en) Control method of electronic device and device
CN106792074A (en) Intelligent television control method and device
CN106775377A (en) The control method of gesture identifying device, equipment and gesture identifying device
CN105589345A (en) Apparatus control method and device
CN106453032A (en) Information pushing method, device and system
CN106066781A (en) A kind of method and apparatus terminating playing audio-fequency data
CN106126158A (en) A kind of method and apparatus of playing audio-fequency data

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