CN103854682B - A kind of method and device controlling audio file to play - Google Patents
A kind of method and device controlling audio file to play Download PDFInfo
- Publication number
- CN103854682B CN103854682B CN201210519943.6A CN201210519943A CN103854682B CN 103854682 B CN103854682 B CN 103854682B CN 201210519943 A CN201210519943 A CN 201210519943A CN 103854682 B CN103854682 B CN 103854682B
- Authority
- CN
- China
- Prior art keywords
- play
- audio file
- instruction
- unit
- audio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of method controlling audio file to play, it is applied to an electronic equipment, in described electronic equipment, includes an audio playing unit, methods described specifically includes:During described audio playing unit plays the first audio file, detect whether to play the second playing request of the second audio file;When there being described second playing request, obtain by responding control instruction obtained by user input operation;Execute described control instruction, the process that described second audio file is played out or do not play.In addition, the invention also discloses the device corresponding with a kind of above-mentioned method controlling audio file to play.
Description
Technical field
The present invention relates to communication and electronic applications, particularly to a kind of method and device controlling audio file to play.
Background technology
With the continuous development of electronic technology, the electronic equipment such as computer, IPAD, flat panel TV all occurs in that multiple application classes
The sound shadow file of type, the mode playing sound shadow file is also a lot.Have using player plays, also have by other application programs
Play, the video player in such as computer can play sound shadow file according to the selection of user;And the video in webpage, bullet
Go out voice prompt of the advertisement of window, the music in blog or other bitcom etc. then using broadcasting automatically by the way of.
And because image and video are all spatially separated, therefore, user can watch in different windows simultaneously
Two photos, or two videos.But audio frequency but mixes in space, when electronic equipment has multiple audio frequency
During source, muli-sounds will mix broadcasting, thus causing confusion, such as, if there being other audio frequency when seeing video
File is play, then can bother the normal viewing of user;And when the audio frequency played file that user opens is more it is impossible to look for immediately
To and close user need close audio file.If electronic equipment is adjusted to silent mode, user needs the sound play
The sound of frequency file also can be changed into noiseless.It is thus desirable to a kind of, can easily know it is that is applied in broadcasting actually, and
The method that intelligence carries out closing control.Prior art provides a kind of respective volume and quiet of controlling according to different applications
Mode, the sound of electronic equipment will be divided into some different types of applications, and the sound by this some different types of application
Sound control knob is integrated in the operation interface of voice control system, and in this operation interface, user can be according to the need of oneself
Close the application of correlation, make the audio file not sounding under this application.
Present inventor, during realizing the embodiment of the present application technical scheme, at least finds exist in prior art
Following technical problem:
(1)Because the control mode that the voice control system that present technology is adopted is provided is a kind of very rough side
Formula, is not sub-divided into concrete window under concrete application it is impossible to whether control concrete window sounding under same application, such as,
In IE webpage video, if the advertisement belt that other webpages eject has sound, if turned off the sound of browser IE, then IE
On all audio files, the sound including video file also will be closed;Accordingly, there exist and play audio frequency literary composition in electronic equipment
During part, when there being the request of other audio files to play, electronic equipment cannot according to user need carry out selectivity and broadcast
The technical problem put.
(2)Because sound control mode of the prior art is when there being the audio files opened later, without exception using broadcasting
Processing mode, so there is because forming audio mixing, and substantially reducing the skill of the play quality of the audio file play
Art problem.
In addition, when the audio files opened later are more, user needs to take considerable time that closing does not need to play
Audio file, cause the using experience degree of user poor.
Content of the invention
The embodiment of the present application provides a kind of method controlling audio file to play, and can solve to exist in prior art
During audio file play by electronic equipment, when there being other audio file requests to play, electronic equipment cannot be according to user
Need carry out the technical problem of selectivity broadcasting.
In order to solve the above problems, the embodiment of the present application provides a kind of method controlling audio file to play, and is applied to
One electronic equipment, includes an audio playing unit in described electronic equipment, methods described includes:
During described audio playing unit plays the first audio file, detect whether to play the second audio file
The second playing request;
When there being described second playing request, obtain by responding control instruction obtained by user input operation;
Execute described control instruction, the process that described second audio file is played out or do not play.
Preferably, before described the second playing request detecting whether broadcasting the second audio file, methods described is also
Including:
Detect whether to play the first playing request of described first audio file;
When there being described first playing request, judge whether described first audio file is first audio frequency literary composition to be played
Part;
When described first audio file is described first audio file to be played, play described first audio file.
Preferably, described when described first audio file is described first audio file to be played, play described the
One audio file, specifically includes:
When described first audio file is described first audio file to be played, detection obtains described first audio frequency literary composition
The first parameter information corresponding to part;
Judge whether described first parameter information meets first pre-conditioned;
Described first parameter information meet described first pre-conditioned when, play described first audio file.
Preferably, described judge described first parameter information whether meet first pre-conditioned after, methods described is also
Including:
Described first parameter information be unsatisfactory for described first pre-conditioned when, generate at least include the first play options and
First option information of the first not play options;
Show described first option information on the display unit of described electronic equipment.
Preferably, described first audio file of described broadcasting, specifically includes:
Response, corresponding to the first choice operation of described first play options, generates the first play instruction;
Execute described first play instruction, play described first audio file.
Preferably, described when there being described second playing request, obtain by respond user input operation obtained by control
Instruction, specifically includes:
When there being described second playing request, generate at least include the second play options and second not play options second
Option information;
Show described second option information on described display unit;
Response, corresponding to the second selection operation of described second play options, generates the second play instruction;Or response corresponds to
In the 3rd selection operation of the described second not play options, generate the second refusal instruction.
Preferably, the described control instruction of described execution, the process that described second audio file is played out or do not play,
It is specially:
Execute described second play instruction, the process that described second audio file is played out;Or
Execute described second refusal instruction, the process that described second audio file is not play.
Preferably, in described response corresponding to the second selection operation of described second play options, generate the second broadcasting and refer to
After order, methods described also includes:
Based on described second play instruction, generate the first refusal instruction;
Execute described first refusal instruction, the process that described first audio file is not play.
Preferably, when described second audio file includes at least two audio frequency subfiles, the described control of described execution refers to
Order, the process that described second audio file is played out or do not play, specifically include:
Execute described control instruction, broadcasting circle of at least two audio frequency subfiles described in display on described display unit
Face;
On described broadcast interface, obtain by responding at least one control sub-instructions obtained by user input operation;
Execution at least one control sub-instructions described, at least one audio frequency Ziwen in described at least two audio frequency subfiles
The process that part plays out or do not play.
Accordingly, the embodiment of the present application also provides a kind of electronic equipment corresponding with said method, is equally used for solving
Present in prior art during audio file play by electronic equipment, when there being other audio file requests to play, electricity
Sub- equipment cannot need to carry out the technical problem of selectivity broadcasting according to user, include an audio frequency and broadcast in described electronic equipment
Put unit, described electronic equipment includes:
Detector unit, during playing the first audio file in described audio playing unit, has detected whether to broadcast
Put the second playing request of the second audio file;
Obtaining unit, is connected with described detector unit, for when there being described second playing request, obtaining and being used by response
Control instruction obtained by the input operation of family;
Performance element, is connected with described obtaining unit, for executing described control instruction, described second audio file is entered
The process that row is play or do not play.
Preferably, described electronic equipment also includes:
First detector unit, for detecting whether there is the first playing request playing the first audio file;
First judging unit, is connected with described first detector unit, for when there being described first playing request, judging institute
State whether the first audio file is first audio file to be played;
First control unit, is connected with described first judging unit, for being described first in described first audio file
During individual audio file to be played, described audio playing unit is controlled to play described first audio file.
Preferably, described first control unit specifically includes:
Second detector unit, for when described first audio file is described first audio file to be played, detecting
Obtain the first parameter information corresponding to described first audio file;
Second judging unit, is connected with described second detector unit, for judging whether described first parameter information meets
First is pre-conditioned;
First control subelement, is connected with described second judging unit, described for meeting in described first parameter information
First pre-conditioned when, control described audio playing unit to play described first audio file.
Preferably, described first control unit also includes:
First information signal generating unit, for described first parameter information be unsatisfactory for described first pre-conditioned when, generate
At least include the first option information of the first play options and first not play options;
Second control subelement, is connected with described first information signal generating unit, for controlling the display of described electronic equipment
Unit shows described first option information.
Preferably, described first control unit also including:
First instruction generation unit, for response corresponding to the first choice operation of described first play options, generates the
One play instruction;
First instruction execution unit, is connected with described first instruction generation unit, for executing described first play instruction,
Play described first audio file.
Preferably, described obtaining unit specifically includes:
Second information generating unit, for when there being described second playing request, generating and at least including the second play options
The second option information with the second not play options;
3rd control subelement, is connected with described second information generating unit, for controlling described display unit display institute
State the second option information;
Second instruction generation unit, is connected with the described 3rd control subelement, for response corresponding to the described second broadcasting
Second selection operation of option, generates the second play instruction;Or response corresponding to described second not play options the 3rd selection
Operation, generates the second refusal instruction.
Preferably, described performance element is specially:
Second instruction execution unit, for executing described second play instruction, plays out to described second audio file
Process;Or be used for executing described second refusal instruction, the process that described second audio file is not play.
Preferably, described obtaining unit also includes:
3rd instruction generation unit, for based on described second play instruction, generating the first refusal instruction;
3rd instruction execution unit, is connected with described 3rd instruction generation unit, for executing described first refusal instruction,
The process that described first audio file is not play.
Preferably, when described second audio file includes at least two audio frequency subfiles, described performance element specifically wraps
Include:
4th control subelement, for executing described control instruction, and control described display unit show described at least two
The broadcast interface of individual audio frequency subfile;
Instruction obtaining unit, is connected with the described 4th control subelement, in described broadcast interface, obtaining by ringing
Answer at least one control sub-instructions obtained by user's input operation;
4th instruction execution unit, is connected with described instruction obtaining unit, refers to for executing at least one control described
Order, the process that at least one audio frequency subfile in described at least two audio frequency subfiles is played out or do not play.
The technique scheme that the embodiment of the present application provides, at least has the following technical effect that or advantage:
(1)Due to employing during audio file play by electronic equipment, play broadcasting of other audio file when having
When putting request, the first option including the first play options and first not play options is shown on the display unit of electronic equipment
Information, the option in the first option information that electronic equipment selects according to user plays out to other audio files or does not play
Process technical scheme, solve exist in prior art electronic equipment play audio file during, having it
When the request of its audio file is play, electronic equipment cannot according to user need carry out the technical problem of selectivity broadcasting.Thus,
There is electronic equipment during playing audio file, when there being other audio file requests to play, electronic equipment being capable of root
According to user need carry out the technique effect of selectivity broadcasting.
(2)Due to when electronic equipment has the sound needing to play later, no longer using the same processing mode play, and
It is to be selected according to the needs of user, solve and exist in prior art because forming audio mixing, and substantially reduce and play
The play quality of audio file technical problem, so just do not interfere with the broadcasting matter of the other audio files play
Amount, and, when the sound opened later is more, user is also no longer necessary to take considerable time and closes the sound not needing to play
Frequency file, therefore, it is possible to improve the Experience Degree of user.
Brief description
Fig. 1 is a kind of flow chart of the method controlling audio file to play in the embodiment of the present application;
Fig. 2 be the embodiment of the present application method in detecting whether play the second audio file the second playing request it
Before, the flow chart that the step of the first audio file play by electronic equipment;
Fig. 3 is when first sound to be played judging that the first audio file is electronic equipment in the embodiment of the present application method
During frequency file, the flow chart that the concrete steps of the first audio file play by electronic equipment;
Fig. 4 is in the embodiment of the present application method when there being described second playing request, obtains by responding user input behaviour
The particular flow sheet of control instruction obtained by work;
Fig. 5 be in the embodiment of the present application method when the second audio file includes at least two audio frequency subfiles, described hold
The described control instruction of row, the particular flow sheet of the process described second audio file being played out or not playing;
Fig. 6 is the concrete structure diagram of a kind of electronic equipment in the embodiment of the present application;
Fig. 7 is the concrete structure diagram of the first control unit in the embodiment of the present application electronic equipment;
Fig. 8 is the concrete structure diagram of obtaining unit 602 in the embodiment of the present application electronic equipment;
Fig. 9 is when described second audio file includes at least two audio frequency subfiles in the embodiment of the present application electronic equipment
When, the concrete structure diagram of performance element 603.
Specific embodiment
The embodiment of the present application pass through to provide one to control method that audio file plays, solves and exists in prior art
Electronic equipment during playing audio file, when there being the request of other audio files to play, electronic equipment cannot according to
The needs at family carry out the technical problem of selectivity broadcasting to this other audio file.
The technical scheme of the embodiment of the present application is to solve above-mentioned technical problem, and general thought is as follows:
First, during the audio playing unit of electronic equipment plays the first audio file, detected whether broadcasting
Second playing request of the second audio file;Secondly, when described second playing request has been detected, obtain by responding user
Control instruction obtained by input operation;Finally, after obtaining control instruction, execute this control instruction, to described second audio frequency literary composition
The process that part plays out or do not play.
By using the technical scheme in the embodiment of the present application, electronic equipment during playing the first audio file,
When there being the second audio file request to play, electronic equipment can play out to this second audio file according to the needs of user
Or the process do not play is it is achieved that electronic equipment is during playing audio file, broadcast there being other audio file requests
When putting, electronic equipment can according to user need carry out the technique effect of selectivity broadcasting.
In order to be better understood from technique scheme, below in conjunction with Figure of description and specific embodiment to upper
State technical scheme to be described in detail, and the technical scheme that the embodiment of the present application is provided makees optimization processing.
The method that a kind of control audio file that the embodiment of the present application provides is play, is applied to an electronic equipment, described electricity
An audio playing unit is included, in specific implementation process, the method that the embodiment of the present application provides can be applied in sub- equipment
In computer, PAD, television set etc., there is audio playing unit, and there are multiple application functions, such as, in playing video file,
Can surf the Net simultaneously;Bitcom can be run in online simultaneously;The electronic equipment that the embodiment of the present application is applied does not limit
In computer, PAD and television set, as long as having audio playing unit, and there are multiple application functions, and can be according to the selection of user
The electronic equipment switching between different applications, the method that the embodiment of the present application provides all can be applied.
The concrete steps of the method that a kind of control audio file that the embodiment of the present application provides is play are as shown in figure 1, include:
Step 101:During described audio playing unit plays the first audio file, detect whether broadcasting second
Second playing request of audio file;Specifically, in actual applications, when electronic equipment obtains a file, judge that this document is
No for audio file when, can be judged by the way of software, that is, according to filter algorithm, the computer such as available C++, VHDL, Java
Programming language writes the program realizing described filter algorithm, obtains the file header of file to be judged with this, then judges this document
Whether it is audio file.
In specific implementation process, before described the second playing request detecting whether broadcasting the second audio file,
Electronic equipment plays the step of the first audio file as shown in Fig. 2 including:
Step 201:Detect whether to play the first playing request of described first audio file;
Step 202:When there being described first playing request, judge described first audio file be whether first to be played
Audio file;In specific implementation process, electronic equipment judges whether described first audio file is first audio frequency to be played
File can now whether the audio playing unit of electronic equipment works and be judged by detection, when detecting now
Audio playing unit in running order when, then judge that the first audio file is not first audio file to be played, work as inspection
When the audio playing unit measuring now is not on working condition, then can determine whether that the first audio file is first sound to be played
Frequency file.
Step 203:When described first audio file is described first audio file to be played, play described first sound
Frequency file;When judging that the first audio file is described first audio file to be played, electronic equipment will directly control sound
Frequency broadcast unit plays this first audio file.
The technical scheme of the first audio file play by electronic equipment in order to be better understood from Fig. 2, right by illustrating below
Technical scheme shown in Fig. 2 is described in more detail:
In specific implementation process, when electronic equipment is specially computer, user is while using computer viewing video
May browse through webpage.When user needs computer to play a piece of music, user clicks on the music needing to play, computer on computers
The clicking operation of response user is thus the playing request playing this music is detected;Play sound in computer detection to playing user
After happy playing request, first audio file to be played whether computer can be play by computer to this music judges,
Computer by detection now the sound card in the audio playing unit of computer whether in running order judging, when detecting now
Sound card when being not on working condition, then can determine whether first audio file to be played that this music is play by computer, this
When, computer can make the process directly playing out to this music;And when detecting that sound card now is in running order, then
Can determine whether that this music is not first audio file to be played that computer is play, in such cases, computer is for this music
The method controlling audio file broadcasting providing in processing method exactly the embodiment of the present application, will do in detail in below step
Explanation.
And for the first audio file, in specific implementation process, when judging that described first audio file sets for electronics
During standby first audio file to be played, electronic equipment plays the concrete steps of described first audio file as shown in figure 3, bag
Include:
Step 301:When described first audio file is described first audio file to be played, detection obtains described the
The first parameter information corresponding to one audio file;
In specific implementation process, in order to reach more preferably Consumer's Experience, it is the of electronic equipment in the first audio file
During one audio file to be played, in order to avoid the first audio file to be play is of short duration audio files, electronic equipment
Directly this first audio file is not played out, and be intended to first this first audio file be detected, when detecting this
When first audio file is of short duration audio files, then whether this first audio file is play, can be selected by user, by with
Family determines whether this sound is play.And need by user carry out select play of short duration audio files type can be by artificial carrying out
Set, such as, of short duration audio files can be:Audio sound in the message alert tone of chat software, webpage, click on file
Sound audio etc., and these of short duration audio files typically all have the audio-frequency information that reproduction time is short, contain simply or by list
The features such as one tone repeats, therefore can using these features as judge the first audio file be whether of short duration audio files ginseng
Number information, therefore, first parameter information corresponding to the first audio file of acquisition can be corresponding to the first audio file
Duration information, note information etc., certainly in specific implementation process, in order to reach more preferably Consumer's Experience, the first parameter information
The content being comprised should be far above information above, can also include the applied environment information of the first audio file, when the first sound
When frequency file is the acoustic information that user actively selects, no matter whether it is of short duration audio files, and electronic equipment all should ring
Answer user operation to play this first audio file, and when the first audio file be user's webpage when browsing webpage eject of short duration
During audio files, whether the first audio file now is play, and is determined by user.
For example, when electronic equipment is for computer, when computer judges first sound to be played for computer for first audio file
During frequency file, computer can detect to the first audio file, and the playing duration obtaining this first audio file is 2 seconds, and this is broadcast
Put duration 2 seconds just the first parameter information corresponding to the first audio file.
After obtaining the first parameter information, it is put into step 302:Judge whether described first parameter information meets first pre-
If condition;In specific implementation process, elongate member when first in pre-conditioned first can be configured, such as, can be by
First pre-conditioned in the first duration condition setting be " more than 1 minute ", namely when detecting the first of the first audio file
Duration information in parameter be more than 1 minute then it represents that the first parameter information meet first pre-conditioned, when the first sound is detected
Duration information in first parameter of frequency file is then it represents that the first parameter information is unsatisfactory for when " less than or equal to 1 minute "
First is pre-conditioned.
After judging to complete, it is put into step 303:Meet described first in described first parameter information pre-conditioned
When, play described first audio file.For example, when the duration information in the first parameter the first audio file is detected is 2 points
Then it represents that the first parameter information satisfaction first is pre-conditioned during clock, now electronic equipment is directly entered to this first audio file
Row is play.
And in specific implementation process, described first parameter information be unsatisfactory for described first pre-conditioned when, then permissible
Different operating according to user processing to the first audio file, for example, when electronic equipment is capable of identify that the first audio frequency
File by user active select needs play out file when, even if the first audio file now first parameter letter
Breath is unsatisfactory for described first pre-conditioned, and electronic equipment still plays out to this first audio file, and when the first audio file
For automatically play in webpage audio files when, then can choose whether to play this first audio file by user.And selected by user
Select and whether play the method for this first audio file and specifically include following steps:
First, described first parameter information be unsatisfactory for described first pre-conditioned when, generate at least include the first broadcasting
First option information of option and first not play options, the first parameter information be unsatisfactory for first pre-conditioned when, electronic equipment
The first option information can be generated, this first option information can at least include two options for user and select, i.e. the first play options
With the first not play options, certainly, in actual applications, this first option can also include the option of play mode, this is broadcast
Mode playback can allow the first audio file play out with pattern set in advance, such as, can wrap on play mode option
The play mode including multiple different-styles such as " rock and roll ", " popular ", " national wind " plays audio file.For example, work as electronic equipment
During for computer, when the first parameter information be unsatisfactory for first pre-conditioned when, computer generate include the first play options, first does not broadcast
Put option, and the pattern choosing again generating " rock and roll ", " popular ", " national wind " three different-styles under the first play options
, when user does not need to play the first audio file, then directly select the first not play options, when user needs to play first
During audio file, then select the first play options, and select the broadcasting wind needing further in three options of play mode
Lattice.
Then, after generating the first option information, described first option information is shown in described electronics by electronic equipment
On the display unit of equipment.Such as, aforesaid first play options, the first not play options, " rock and roll ", " popular ", " national
Three play mode options of wind " are shown for user's selection operation by the display unit of electronic equipment.
In specific implementation process, according to the first play options of user's selection, when needing to play the first audio file, electricity
The process that implements of sub- device plays first audio file comprises the following steps again:
First, electronic equipment response, corresponding to the first choice operation of described first play options, generates the first broadcasting and refers to
Order;It is first choice that user selects the operation of the first play options in the first option information on the display unit of electronic equipment
Operation, electronic equipment operates according to first choice and generates the first play instruction, in order to the audio playing unit of control electronics
Play this first audio file.
After generating the first play instruction, electronic equipment executes described first play instruction, the audio frequency of control electronics
Broadcast unit plays described first audio file.
After completing detection, the method for the embodiment of the present application is put into step 102:There iing described second playing request
When, obtain by responding control instruction obtained by user input operation;
In specific implementation process, step 102 implement step as shown in figure 4, include:
Step 401:When there being described second playing request, generation at least includes the second play options and second and does not play choosing
Second option information of item;
After generating the second option information, it is put into step 402:Show that described second option information is single in described display
In unit;
After completing the display to the second option information, it is put into step 403:Response plays choosing corresponding to described second
Second selection operation of item, generates the second play instruction;Or response corresponding to described second not play options the 3rd selection behaviour
Make, generate the second refusal instruction.
In order to be better understood from the technical scheme shown in Fig. 4, below citing is elaborated to the technical scheme of Fig. 4:
For example, when electronic equipment is for computer, when computer plays the first audio file, user needs this computer is entered
Other operations of row, when such as user needs using this online computing, when there is audio file in the webpage that user is opened, should
Audio file is the second audio file, when user opens the webpage with the second audio file, as has the second playing request,
Now, the second audio file in this webpage will not directly be play by computer, but generates and at least include the second play options and the
Second option information of two not play options, more excellent, in order to obtain more preferably result of broadcast, acceptable on the second option information
Including play mode option, this play mode option can allow the second audio file play out with style set in advance, than
As the play mode of multiple different-styles such as " rock and roll ", " popular ", " national wind " can be included on play mode option;Electricity
After brain generates the second option information, can be by the second play options in this second option information, the second not play options and broadcasting
Mode playback option is shown by the display screen of computer, selects the option needing in order to user;When user selects on computer
The second play options when, computer can respond this second selection operation of user, generates the second play instruction, and meanwhile, user is also
The play mode that oneself can be selected in play mode option to need, can select " rock and roll ", " popular ", " national wind " etc. many
Plant the play mode of different-style, generate corresponding relevant control instruction simultaneously, control the play mode that selection pressed by computer to play
Second audio file, and when user selects the second not play options on computer, computer can respond the 3rd selection of user
Operation, generates the second refusal instruction, and the audio playing unit in order to control computer does not play the second audio file.
After obtaining control instruction, the method for the embodiment of the present application is put into step 103:Execute described control instruction, right
The process that described second audio file plays out or do not play.And in specific implementation process, execute described control instruction, right
The process that described second audio file plays out or do not play, concrete inclusion again:Execute described second play instruction, to described
The process that second audio file plays out;Or the described second refusal instruction of execution, described second audio file is not broadcast
The process put.
In specific implementation process, when electronic equipment needs to play the second audio file according to the selection of user, typically
Also need to the process that the first audio file is not play, to avoid the confusion of two kinds of sound, and more preferably broadcast to obtain
Put effect, the process that the first audio file is not play needs to complete after generating the second play instruction, therefore, is giving birth to
After becoming the second play instruction of described broadcasting the second audio file, electronic equipment can be based on described second play instruction, generates
First refusal instruction, then, the described first refusal instruction of electronic equipment execution, in order to not broadcast to described first audio file
The process put.
The second above audio file comprises only audio files, and in actual applications, the second audio file is sometimes
More than one audio files can be contained, then when the second audio file includes at least two audio frequency subfiles, described execution institute
State control instruction, the concrete steps of the process described second audio file being played out or not playing are as shown in figure 5, include:
Step 501:Execute described control instruction, at least two audio frequency subfiles described in display on described display unit
Broadcast interface;
After display completes broadcast interface, it is put into step 502:On described broadcast interface, obtain by responding user
Obtained by input operation, at least one controls sub-instructions;
After obtaining at least one control sub-instructions, it is put into step 503:Execution at least one control sub-instructions described,
The process that at least one audio frequency subfile in described at least two audio frequency subfiles is played out or do not play.
In order that those skilled in the art are better understood on the technical scheme shown in Fig. 5, below will be to this technical scheme
It is illustrated:
For example, when electronic equipment is for computer, the second audio file includes 3 audio frequency subfiles, 3 audio frequency subfile tools
Body is 3 first songs, and title of the song is respectively " cc ", " Dong Dong ", " South-South ", and this 3 first song is embedded in a music webpage, works as computer
When playing the first audio file, user opens described music webpage using computer, and computer can show the second option information,
Second option information includes the second play options and second not play options, when user needs to play the sound in this music webpage
When happy, user can select the second play options, and computer responds user operation, generates the second play instruction, this second play instruction
It is not used to control in the second audio file 3 first playback of songs, but play for this 3 song is shown in same webpage
On interface, this webpage broadcast interface has the option information whether controlling described 3 first playback of songs, when on the display screen of computer
When showing described webpage broadcast interface, user can select to need the choosing corresponding to the song of broadcasting according to the hobby of oneself
, computer responds user operation, generates the control sub-instructions whether controlling described 3 first playback of songs, in order to control described 3 first songs
Bent broadcasting or do not play, user can select to play described 3 songs on shown webpage broadcast interface simultaneously it is also possible to
Only select 2 or 1 song to play out, can also select 3 songs are not played out.
In order that those skilled in the art being capable of the complete method and technology understanding that the embodiment of the present application provides on the whole
Scheme, below whole technical scheme will do more detailed citing and illustrate to this method:
For example, here, the application illustrates taking notebook computer as a example, user can see when using notebook computer
Film, listen music and browse webpage etc., when user needs to listen song, select to need the song listened to carry out in notebook computer
Play, and by during this operation user actively select broadcasting audio file, therefore, notebook computer can be to selected by user
Music directly play, and when user is when browsing webpage, when having, in webpage, the audio file carrying, computer first detects in sound card
Program whether is had to be currently running, if it is not, first sound to be played that the audio file in this webpage is computer is described
Frequency file, then, computer detects the duration information of the audio file in webpage again, if the duration information detecting shows this audio frequency
File is of short duration, discontinuous audio file, and computer then ejects the selection dialog box play or do not play on a display screen,
User is allowed to choose whether to play this of short duration, discontinuous audio file, if the duration information detecting shows this audio frequency literary composition
Part is not of short duration, discontinuous audio file, then this audio file directly play by computer;
And work as user during listening song using computer, when again browsing webpage, if wrapping in the webpage opened of user simultaneously
Containing audio file, then now computer can show the option dialogue operating this audio file to play or not playing on a display screen
Frame, allows user choose whether to play the audio file in this webpage, the specific implementation of this process according to the needs of oneself
For computer can detect in sound card has program running, then the audio playing unit of explanation computer is currently in use, in order to leave in peace
Normally listen song to user, computer can show on a display screen operate this audio file to play or the options dialog box do not play with
Select for user, and when including the audio file of more than 2 in the webpage opened, now, computer still can be on a display screen
Display operates more than 2 audio file broadcastings or the options dialog box do not play in this webpage, after user selects play options, electricity
Brain can automatically switch to control this more than 2 audio files to play in webpage or the controlling interface do not play on, by user in control
To choose whether on interface processed to play more than 2 audio files in webpage.
Another application scenarios is that, when user is when being seen a film using computer, user is also currently in use chat work simultaneously
Tool, when chat tool has information, can show in the computer lower right corner and select dialog box to select for user, this selection dialog box is used
To control chat software has during information whether send auditory tone cueses user, when exceeding certain time user and not selected,
Computer can be defaulted as not sending auditory tone cueses user, and when there is next information in chat software, still can be in computer bottom right
Angle display selects dialog box to select for user, if user is within a certain period of time again without selection, computer still can be defaulted as
Do not send auditory tone cueses user, when user is not repeatedly selected, computer then can be defaulted as not sending auditory tone cueses user, this
Afterwards, when there is information in chat software again, computer also no longer shows selection dialog box, is directly defaulted as not sending sound to point out to use
Family.
Accordingly, based on same inventive concept, the embodiment of the present application provides a kind of and described control audio file to play
The corresponding electronic equipment of method, this electronic equipment has an audio playing unit, and the concrete structure diagram of described electronic equipment is such as
Shown in Fig. 6, including:
Detector unit 601, during playing the first audio file in described audio playing unit, has detected whether
Play the second playing request of the second audio file;
Obtaining unit 602, is connected with described detector unit 601, for when there being described second playing request, acquisition is passed through
Control instruction obtained by response user input operation;
Performance element 603, is connected with described obtaining unit 602, for executing described control instruction, to described second audio frequency
The process that file plays out or do not play.
In specific implementation process, described electronic equipment also includes:First detector unit, for detecting whether there is broadcasting
First playing request of one audio file;First judging unit, is connected with described first detector unit, for having described first
During playing request, judge whether described first audio file is first audio file to be played;First control unit, and described
First judging unit connects, for when described first audio file is described first audio file to be played, controlling described
Audio playing unit plays described first audio file.
In specific implementation process, the concrete structure of described first control unit as shown in fig. 7, comprises:
Second detector unit 701, for when described first audio file is described first audio file to be played, examining
Survey the first parameter information obtaining corresponding to described first audio file;
Second judging unit 702, is connected with described second detector unit 701, for judging that described first parameter information is
No satisfaction first is pre-conditioned;
First control subelement 703, is connected with described second judging unit 702, for full in described first parameter information
Foot described first pre-conditioned when, control described audio playing unit to play described first audio file.
In specific implementation process, described first control unit also includes:First information signal generating unit, for described
One parameter information be unsatisfactory for described first pre-conditioned when, generate and at least include the first play options and first not play options
First option information;Second control subelement, is connected with described first information signal generating unit, for controlling described electronic equipment
Display unit shows described first option information.
In specific implementation process, described first control unit also includes:First instruction generation unit, for responding correspondence
In the first choice operation of described first play options, generate the first play instruction;First instruction execution unit, with described first
Instruction generation unit connects, and for executing described first play instruction, plays described first audio file.
In specific implementation process, the concrete structure of described obtaining unit 602 is as shown in figure 8, include:
Second information generating unit 801, at least includes the second broadcasting choosing for when there being described second playing request, generating
And the second not play options the second option information;
3rd control subelement 802, is connected with described second information generating unit 801, for controlling described display unit
Show described second option information;
Second instruction generation unit 803, is connected with the described 3rd control subelement 802, for response corresponding to described the
Second selection operation of two play options, generates the second play instruction;Or response corresponding to described second not play options the
Three selection operations, generate the second refusal instruction.
In specific implementation process, described performance element 603 is concretely:Second instruction execution unit, for executing
State the second play instruction, the process that described second audio file is played out;Or it is used for executing described second refusal instruction, right
The process that described second audio file is not play.
In specific implementation process, described obtaining unit 602 also including:3rd instruction generation unit, for being based on
Described second play instruction, generates the first refusal instruction;3rd instruction execution unit, with described 3rd instruction generation unit even
Connect, for executing described first refusal instruction, the process that described first audio file is not play.
In specific implementation process, when described second audio file includes at least two audio frequency subfiles, described execution
The concrete structure of unit 603 is as shown in figure 9, include:
4th control subelement 901, for executing described control instruction, and control described display unit show described at least
The broadcast interface of two audio frequency subfiles;
Instruction obtaining unit 902, is connected with the described 4th control subelement 901, in described broadcast interface, obtaining
By responding obtained by user input operation, at least one controls sub-instructions;
4th instruction execution unit 903, is connected with described instruction obtaining unit 902, for executing at least one control described
System instructs, the process that at least one audio frequency subfile in described at least two audio frequency subfiles is played out or do not play.
Above the explanation of device is not limited to the scope of this device, the function of device both can be real in hardware
Now can also software mode, every can substitute lifted device and the device of the function that this device has can be completed all answer
This application claims in the range of.
By one or more of the embodiment of the present application technical scheme, it is possible to achieve following technique effect:
(1)Due to employing during audio file play by electronic equipment, play broadcasting of other audio file when having
When putting request, the first option including the first play options and first not play options is shown on the display unit of electronic equipment
Information, the option in the first option information that electronic equipment selects according to user plays out to other audio files or does not play
Process technical scheme, solve exist in prior art electronic equipment play audio file during, having it
When the request of its audio file is play, electronic equipment cannot according to user need carry out the technical problem of selectivity broadcasting.Thus,
There is electronic equipment during playing audio file, when there being other audio file requests to play, electronic equipment being capable of root
According to user need carry out the technique effect of selectivity broadcasting.
(2)Due to when electronic equipment has the sound needing to play later, no longer using the same processing mode play, and
It is to be selected according to the needs of user, solve and exist in prior art because forming audio mixing, and substantially reduce and play
The play quality of audio file technical problem, so just do not interfere with the broadcasting matter of the other audio files play
Amount, and, when the sound opened later is more, user is also no longer necessary to take considerable time and closes the sound not needing to play
Frequency file, therefore, it is possible to improve the Experience Degree of user.
Method of the present invention is not limited to the embodiment described in specific embodiment, those skilled in the art according to
Technical scheme draws other embodiments, also belongs to the technological innovation scope of the present invention.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprise these changes and modification.
Claims (16)
1. a kind of method controlling audio file to play, is applied to an electronic equipment, includes an audio frequency in described electronic equipment
Broadcast unit is it is characterised in that methods described includes:
During described audio playing unit plays the first audio file, detect whether to play the of the second audio file
Two playing request;
When there being described second playing request, obtain by responding control instruction obtained by user input operation;
Execute described control instruction, the process that described second audio file is played out or do not play, wherein, when described second
When audio file includes at least two audio frequency subfiles, including:Execute described control instruction, aobvious in described electronic equipment
Show the broadcast interface of at least two audio frequency subfiles described in display on unit;On described broadcast interface, obtain and used by response
Obtained by the input operation of family, at least one controls sub-instructions;Execution at least one control sub-instructions described, to described at least two
The process that in audio frequency subfile, at least one audio frequency subfile plays out or do not play.
2. the method for claim 1 is it is characterised in that detect whether to play the second of the second audio file described
Before playing request, methods described also includes:
Detect whether to play the first playing request of described first audio file;
When there being described first playing request, judge whether described first audio file is first audio file to be played;
When described first audio file is described first audio file to be played, play described first audio file.
3. method as claimed in claim 2 is it is characterised in that described wait to broadcast for described first in described first audio file
During playback frequency file, play described first audio file, specifically include:
When described first audio file is described first audio file to be played, detection obtains described first audio file institute
Corresponding first parameter information;
Judge whether described first parameter information meets first pre-conditioned;
Described first parameter information meet described first pre-conditioned when, play described first audio file.
4. described, method as claimed in claim 3 is it is characterised in that judge whether described first parameter information meets first
After pre-conditioned, methods described also includes:
Described first parameter information be unsatisfactory for described first pre-conditioned when, generate at least include the first play options and first
Not the first option information of play options;
Show described first option information on the display unit of described electronic equipment.
5. method as claimed in claim 4, it is characterised in that described first audio file of described broadcasting, specifically includes:
Response, corresponding to the first choice operation of described first play options, generates the first play instruction;
Execute described first play instruction, play described first audio file.
6. the method as described in claim arbitrary in claim 1-5 is it is characterised in that described having described second playing request
When, obtain by responding control instruction obtained by user input operation, specifically include:
When there being described second playing request, generate the second option at least including the second play options and second not play options
Information;
Show described second option information on described display unit;
Response, corresponding to the second selection operation of described second play options, generates the second play instruction;Or response is corresponding to institute
State the 3rd selection operation of the second not play options, generate the second refusal instruction.
7. method as claimed in claim 6 is it is characterised in that the described control instruction of described execution, civilian to described second audio frequency
The process that part plays out or do not play, specially:
Execute described second play instruction, the process that described second audio file is played out;Or
Execute described second refusal instruction, the process that described second audio file is not play.
8. method as claimed in claim 7 is it is characterised in that respond corresponding to the second of described second play options described
Selection operation, after generating the second play instruction, methods described also includes:
Based on described second play instruction, generate the first refusal instruction;
Execute described first refusal instruction, the process that described first audio file is not play.
9. a kind of electronic equipment, includes an audio playing unit it is characterised in that described electronic equipment in described electronic equipment
Including:
Detector unit, during playing the first audio file in described audio playing unit, has detected whether broadcasting the
Second playing request of two audio files;
Obtaining unit, is connected with described detector unit, defeated by responding user for when there being described second playing request, obtaining
Enter control instruction obtained by operation;
Performance element, is connected with described obtaining unit, for executing described control instruction, described second audio file is broadcast
The process put or do not play, wherein, when described second audio file includes at least two audio frequency subfiles, described performance element
Specifically include:4th control subelement, for executing described control instruction, and control display unit show described at least two sounds
The broadcast interface of frequency subfile;Instruction obtaining unit, is connected with the described 4th control subelement, in described broadcast interface
On, obtain by responding at least one control sub-instructions obtained by user input operation;4th instruction execution unit, with described finger
Make obtaining unit connect, for execute described at least one control sub-instructions, in described at least two audio frequency subfiles at least
The process that one audio frequency subfile plays out or do not play.
10. electronic equipment as claimed in claim 9 is it is characterised in that described electronic equipment also includes:
First detector unit, for detecting whether there is the first playing request playing the first audio file;
First judging unit, is connected with described first detector unit, for when there being described first playing request, judging described
Whether one audio file is first audio file to be played;
First control unit, is connected with described first judging unit, for treating for described first in described first audio file
When playing audio file, described audio playing unit is controlled to play described first audio file.
11. electronic equipments as claimed in claim 10 are it is characterised in that described first control unit specifically includes:
Second detector unit, for when described first audio file is described first audio file to be played, detection obtains
The first parameter information corresponding to described first audio file;
Second judging unit, is connected with described second detector unit, for judging whether described first parameter information meets first
Pre-conditioned;
First control subelement, is connected with described second judging unit, for meeting described first in described first parameter information
When pre-conditioned, described audio playing unit is controlled to play described first audio file.
12. electronic equipments as claimed in claim 11 are it is characterised in that described first control unit also includes:
First information signal generating unit, for described first parameter information be unsatisfactory for described first pre-conditioned when, generate at least
The first option information including the first play options and first not play options;
Second control subelement, is connected with described first information signal generating unit, for controlling the display unit of described electronic equipment
Show described first option information.
13. electronic equipments as claimed in claim 12 it is characterised in that described first control unit also including:
First instruction generation unit, for response corresponding to the first choice operation of described first play options, generates first and broadcasts
Put instruction;
First instruction execution unit, is connected with described first instruction generation unit, for executing described first play instruction, plays
Described first audio file.
14. electronic equipments as described in claim arbitrary in claim 9-13 are it is characterised in that described obtaining unit is specifically wrapped
Include:
Second information generating unit, for when there being described second playing request, generates and at least includes the second play options and the
Second option information of two not play options;
3rd control subelement, is connected with described second information generating unit, for controlling the display unit of described electronic equipment
Show described second option information;
Second instruction generation unit, is connected with the described 3rd control subelement, for response corresponding to described second play options
The second selection operation, generate the second play instruction;Or response is corresponding to the 3rd selection operation of the described second not play options,
Generate the second refusal instruction.
15. electronic equipments as claimed in claim 14 are it is characterised in that described performance element is specially:
Second instruction execution unit, for executing described second play instruction, place that described second audio file is played out
Reason;Or be used for executing described second refusal instruction, the process that described second audio file is not play.
16. electronic equipments as claimed in claim 15 are it is characterised in that described obtaining unit also includes:
3rd instruction generation unit, for based on described second play instruction, generating the first refusal instruction;
3rd instruction execution unit, is connected with described 3rd instruction generation unit, for executing described first refusal instruction, to institute
State the process that the first audio file is not play.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210519943.6A CN103854682B (en) | 2012-12-06 | 2012-12-06 | A kind of method and device controlling audio file to play |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210519943.6A CN103854682B (en) | 2012-12-06 | 2012-12-06 | A kind of method and device controlling audio file to play |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103854682A CN103854682A (en) | 2014-06-11 |
CN103854682B true CN103854682B (en) | 2017-03-01 |
Family
ID=50862239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210519943.6A Active CN103854682B (en) | 2012-12-06 | 2012-12-06 | A kind of method and device controlling audio file to play |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103854682B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229448A (en) * | 2017-06-30 | 2017-10-03 | 联想(北京)有限公司 | Audio frequency playing method and electronic equipment |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239547A (en) * | 2014-09-23 | 2014-12-24 | 可牛网络技术(北京)有限公司 | Method for processing page resources of browser and device |
CN105847997A (en) * | 2016-03-28 | 2016-08-10 | 乐视控股(北京)有限公司 | Audio bullet screen playing method and apparatus for video |
CN106528661B (en) * | 2016-10-20 | 2022-02-18 | 广州酷狗计算机科技有限公司 | Method and device for auditioning songs |
CN108536415B (en) * | 2018-02-28 | 2021-10-22 | Oppo广东移动通信有限公司 | Application volume control method and device, mobile terminal and computer readable medium |
CN109151496B (en) * | 2018-07-25 | 2021-04-23 | 维沃移动通信有限公司 | Music playing method and mobile terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101349569A (en) * | 2008-08-29 | 2009-01-21 | 凯立德欣技术(深圳)有限公司 | Method and apparatus for playing navigation information |
CN102594975A (en) * | 2011-01-08 | 2012-07-18 | 深圳富泰宏精密工业有限公司 | Call control system and method |
-
2012
- 2012-12-06 CN CN201210519943.6A patent/CN103854682B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101349569A (en) * | 2008-08-29 | 2009-01-21 | 凯立德欣技术(深圳)有限公司 | Method and apparatus for playing navigation information |
CN102594975A (en) * | 2011-01-08 | 2012-07-18 | 深圳富泰宏精密工业有限公司 | Call control system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229448A (en) * | 2017-06-30 | 2017-10-03 | 联想(北京)有限公司 | Audio frequency playing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103854682A (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103854682B (en) | A kind of method and device controlling audio file to play | |
CN104967900B (en) | A kind of method and apparatus generating video | |
CN105260109A (en) | Play speed adjusting method and terminal | |
CN106658115A (en) | Video playing method and mobile terminal | |
CN107071174B (en) | A kind of method of speech processing and mobile terminal | |
CN105847939A (en) | Bullet screen play method, bullet screen play device and bullet screen play system | |
CN106201430A (en) | A kind of method of volume adjusting and electronic equipment | |
WO2022022536A1 (en) | Audio playback method, audio playback apparatus, and electronic device | |
CN105898557A (en) | Voice barrage generation and play method and device, and client | |
CN101984404B (en) | Method and device for controlling parallel running of application programs and terminal having device | |
US11233895B2 (en) | Automatic wallpaper setting method, terminal device, and graphical user interface | |
CN106055301B (en) | A kind of sound volume setting method and mobile terminal | |
KR100783113B1 (en) | Method for shortened storing of music file in mobile communication terminal | |
CN107272909A (en) | Control method, mobile terminal and the storage medium of mobile terminal | |
CN108600526A (en) | Alarm clock control method and related product | |
KR20140054555A (en) | Method for operating alarm and electronic device supporting the same | |
CN104349244B (en) | A kind of information processing method and electronic equipment | |
CN107659725B (en) | A kind of audio-frequency processing method and mobile terminal | |
CN106921802B (en) | Audio data playing method and device | |
CN109559757A (en) | A kind of method of canceling noise and mobile terminal | |
CN104469513A (en) | Display method and electronic device | |
CN107888776A (en) | Voice broadcast method and device, computer installation and computer-readable recording medium | |
CN106488318B (en) | The method and electric terminal of video playing | |
CN103577060B (en) | A kind of data processing method and electronic equipment | |
CN106354419A (en) | Screenshot control 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 |