CN103854682A - Method and device for controlling audio file playing - Google Patents

Method and device for controlling audio file playing Download PDF

Info

Publication number
CN103854682A
CN103854682A CN201210519943.6A CN201210519943A CN103854682A CN 103854682 A CN103854682 A CN 103854682A CN 201210519943 A CN201210519943 A CN 201210519943A CN 103854682 A CN103854682 A CN 103854682A
Authority
CN
China
Prior art keywords
play
audio file
instruction
audio
unit
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
CN201210519943.6A
Other languages
Chinese (zh)
Other versions
CN103854682B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210519943.6A priority Critical patent/CN103854682B/en
Publication of CN103854682A publication Critical patent/CN103854682A/en
Application granted granted Critical
Publication of CN103854682B publication Critical patent/CN103854682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for controlling audio file playing. The method is applied to an electronic device. The electronic device comprises an audio playing unit. The method specifically comprises the steps that in the process of playing a first audio file by the audio playing unit, whether a second playing request for playing a second audio file exists or not is detected; when the second playing request exists, a control instruction obtained by responding to a user input operation is obtained; the control instruction is executed, and the second audio file is played or not played. In addition, the invention further discloses a device corresponding to the method for controlling audio file playing.

Description

A kind of method and device of controlling audio file broadcasting
Technical field
The present invention relates to communication and electronic applications, particularly a kind of method and device of controlling audio file broadcasting.
Background technology
Along with the development of electronic technology, all there is the sound shadow file of multiple application type in the electronic equipments such as computer, IPAD, flat panel TV, and the mode of playing sound shadow file is also a lot.There is the player plays of employing, also have and play by other application programs, such as video player in computer can be play sound shadow file according to user's selection; Music or the voice prompt of other bitcom etc. in video in webpage, the advertisement of pop-up window, blog adopts the mode of automatically playing.
And because image and video all spatially separate, therefore, user can watch two photos at different windows simultaneously, or two videos.But audio frequency but mixes in space, in the time that electronic equipment has multiple audio-source, muli-sounds will mix broadcasting, thereby cause confusion, such as, if there is other audio file to play, can bother normally watching of user in seeing video; And the audio frequency played file of opening as user is when more, cannot find immediately and close the audio file that user need to close.If electronic equipment is adjusted into silent mode, the sound of the audio file that user need to play also can become noiseless.Therefore need one, can know easily it is that is applied in broadcasting actually, and intelligence is carried out the method for closing control.Prior art provides a kind of should be used for controlling volume separately and quiet mode according to different, be divided into some dissimilar application by the sound of electronic equipment, and the Sound control button of these some dissimilar application is integrated on the operation interface of voice control system, on this operation interface, user can close relevant application according to the needs of oneself, makes the not sounding of audio file under this application.
Present inventor is realizing in the process of the embodiment of the present application technical scheme, at least finds to exist in prior art following technical matters:
(1) control mode providing due to the voice control system that technology adopts is now a kind of very rough mode, be not sub-divided into the concrete window under concrete application, whether concrete window sounding under uncontrollable same application, such as, in the time of IE webpage video, if when the advertisement belt that other webpages eject has sound, if close the sound of browser IE, the all audio files on IE, comprise that the sound of video file also will be closed; Therefore, exist in the process of electronic equipment displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting.
(2) because Sound control mode of the prior art is in the time having the audio files of opening afterwards, adopt without exception the processing mode of playing, so just exist because form audio mixing, and greatly reduce the technical matters of the play quality of the audio file of playing.
In addition, in the time that the audio files of opening is afterwards more, user need to expend the plenty of time and remove to close the audio file that does not need broadcasting, causes user's experience degree poor.
Summary of the invention
The embodiment of the present application provides a kind of method that audio file is play of controlling, can solve in prior art and exist in the process of electronic equipment displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting.
In order to address the above problem, the embodiment of the present application provides a kind of method that audio file is play of controlling, and is applied to an electronic equipment, includes an audio playing unit in described electronic equipment, and described method comprises:
Play in the process of the first audio file at described audio playing unit, detect whether there is the second playing request of playing the second audio file;
In the time having described the second playing request, obtain the steering order obtaining by response user input operation;
Carry out described steering order, the processing that described the second audio file is play or do not play.
Preferably, before whether having in described detection the second playing request of playing the second audio file, described method also comprises:
Detect and whether have the first playing request of playing described the first audio file;
In the time having described the first playing request, judge whether described the first audio file is first audio file to be played;
In the time that described the first audio file is described first audio file to be played, play described the first audio file.
Preferably, described in the time that described the first audio file is described first audio file to be played, play described the first audio file, specifically comprise:
In the time that described the first audio file is described first audio file to be played, detects and obtain corresponding the first parameter information of described the first audio file;
Judge that whether described the first parameter information meets first pre-conditioned;
Meet described first when pre-conditioned at described the first parameter information, play described the first audio file.
Preferably, described judge described the first parameter information whether meet first pre-conditioned after, described method also comprises:
Do not meet described first when pre-conditioned at described the first parameter information, generate and at least comprise not the first option information of play options of the first play options and first;
Show that described the first option information is on the display unit of described electronic equipment.
Preferably, described the first audio file of described broadcasting, specifically comprises:
Response is selected operation corresponding to first of described the first play options, generates the first play instruction;
Carry out described the first play instruction, play described the first audio file.
Preferably, described in the time having described the second playing request, obtain the steering order obtaining by response user input operation, specifically comprise:
In the time having described the second playing request, generate and at least comprise not the second option information of play options of the second play options and second;
Show that described the second option information is on described display unit;
Response is selected operation corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
Preferably, the described steering order of described execution, the processing that described the second audio file is play or do not play, is specially:
Carry out described the second play instruction, the processing that described the second audio file is play; Or
Carry out described the second refusal instruction, the processing that described the second audio file is not play.
Preferably, select operation in described response corresponding to second of described the second play options, after generating the second play instruction, described method also comprises:
Based on described the second play instruction, generate the first refusal instruction;
Carry out described the first refusal instruction, the processing that described the first audio file is not play.
Preferably, in the time that described the second audio file comprises at least two audio frequency son files, the described steering order of described execution, the processing that described the second audio file is play or do not play, specifically comprises:
Carry out described steering order, the broadcast interface of at least two audio frequency son files described in showing on described display unit;
On described broadcast interface, obtain at least one the control sub-instructions obtaining by response user input operation;
Carry out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
Accordingly, the embodiment of the present application also provides a kind of electronic equipment corresponding with said method, equally for solve that prior art exists in the process of electronic equipment displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting, in described electronic equipment, include an audio playing unit, described electronic equipment comprises:
Detecting unit, for play the process of the first audio file at described audio playing unit, detects whether there is the second playing request of playing the second audio file;
Obtain unit, be connected with described detecting unit, in the time having described the second playing request, obtain the steering order obtaining by response user input operation;
Performance element, is connected with described acquisition unit, for carrying out described steering order, and the processing that described the second audio file is play or do not play.
Preferably, described electronic equipment also comprises:
The first detecting unit, for detection of whether there being the first playing request of playing the first audio file;
The first judging unit, is connected with described the first detecting unit, in the time having described the first playing request, judges whether described the first audio file is first audio file to be played;
The first control module, is connected with described the first judging unit, in the time that described the first audio file is described first audio file to be played, controls described audio playing unit and plays described the first audio file.
Preferably, described the first control module specifically comprises:
The second detecting unit, in the time that described the first audio file is described first audio file to be played, detects and obtains corresponding the first parameter information of described the first audio file;
The second judging unit, is connected with described the second detecting unit, first pre-conditioned for judging that whether described the first parameter information meets;
First controls subelement, is connected with described the second judging unit, for meeting described first at described the first parameter information when pre-conditioned, controls described audio playing unit and plays described the first audio file.
Preferably, described the first control module also comprises:
First information generation unit, for not meeting described first at described the first parameter information when pre-conditioned, generates and at least comprises not the first option information of play options of the first play options and first;
Second controls subelement, is connected with described first information generation unit, shows described the first option information for controlling the display unit of described electronic equipment.
Preferably, described the first control module also comprises:
The first instruction generation unit, selects operation for responding corresponding to first of described the first play options, generates the first play instruction;
The first instruction execution unit, is connected with described the first instruction generation unit, for carrying out described the first play instruction, plays described the first audio file.
Preferably, described acquisition unit specifically comprises:
The second information generating unit, in the time having described the second playing request, generates and at least comprises not the second option information of play options of the second play options and second;
The 3rd controls subelement, is connected with described the second information generating unit, shows described the second option information for controlling described display unit;
The second instruction generation unit, is connected with described the 3rd control subelement, selects operation for responding corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
Preferably, described performance element is specially:
The second instruction execution unit, for carrying out described the second play instruction, the processing that described the second audio file is play; Or for carrying out described the second refusal instruction, the processing that described the second audio file is not play.
Preferably, described acquisition unit also comprises:
The 3rd instruction generation unit, for based on described the second play instruction, generates the first refusal instruction;
The 3rd instruction execution unit, is connected with described the 3rd instruction generation unit, for carrying out described the first refusal instruction, the processing that described the first audio file is not play.
Preferably, in the time that described the second audio file comprises at least two audio frequency son files, described performance element specifically comprises:
The 4th controls subelement, for carrying out described steering order, and control described display unit show described in the broadcast interface of at least two audio frequency son files;
Instruction acquisition unit, is connected with described the 4th control subelement, at described broadcast interface, obtains at least one the control sub-instructions obtaining by response user input operation;
The 4th instruction execution unit, obtains unit with described instruction and is connected, for carrying out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
The technique scheme that the embodiment of the present application provides, at least has following technique effect or advantage:
(1) owing to having adopted in the process of electronic equipment displaying audio file, in the time having the playing request of playing other audio file, on the display unit of electronic equipment, show and comprise not the first option information of play options of the first play options and first, option in the first option information that electronic equipment is selected according to user is play other audio file or the technical scheme of playback process not, solved in prior art, exist in the process of electronic equipment displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting.Thereby, there is electronic equipment in the process of displaying audio file, in the time having other audio file request to play, electronic equipment can be according to user's the technique effect that need to carry out selectivity broadcasting.
(2) due to have at electronic equipment need afterwards play sound time, no longer adopt the processing mode of playing without exception, but select according to user's needs, solve in prior art and existed because form audio mixing, and the technical matters of the play quality of the audio file that reduction is being play greatly, so just can not have influence on the play quality of other audio file of playing, and, in the time that the sound of opening is afterwards more, user also no longer needs to expend the plenty of time and goes to close and do not need the audio file play, therefore, can improve user's Experience Degree.
Brief description of the drawings
Fig. 1 is the process flow diagram of a kind of method of controlling audio file broadcasting in the embodiment of the present application;
Fig. 2 is that before whether the detection in the embodiment of the present application method has the second playing request of playing the second audio file, electronic equipment is play the process flow diagram of the step of the first audio file;
Fig. 3 be in the embodiment of the present application method in the time judging the first audio file and be first audio file to be played of electronic equipment, electronic equipment is play the process flow diagram of the concrete steps of the first audio file;
Fig. 4 be in the embodiment of the present application method in the time having described the second playing request, obtain the particular flow sheet of the steering order obtaining by response user input operation;
Fig. 5 be in the embodiment of the present application method in the time that the second audio file comprises at least two audio frequency son files, the described steering order of described execution, the particular flow sheet of the processing that described the second audio file is play or do not play;
Fig. 6 is the concrete structure figure of a kind of electronic equipment in the embodiment of the present application;
Fig. 7 is the concrete structure figure of the first control module in the embodiment of the present application electronic equipment;
Fig. 8 is the concrete structure figure that obtains unit 602 in the embodiment of the present application electronic equipment;
Fig. 9 be in the embodiment of the present application electronic equipment in the time that described the second audio file comprises at least two audio frequency son files, the concrete structure figure of performance element 603.
Embodiment
The embodiment of the present application is by the method that provides a control audio file to play, solve the electronic equipment existing in prior art in the process of displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting to this other audio file.
The technical scheme of the embodiment of the present application is for solving the problems of the technologies described above, and general thought is as follows:
First, play in the process of the first audio file at the audio playing unit of electronic equipment, detect whether there is the second playing request of playing the second audio file; Secondly,, in the time described the second playing request having been detected, obtain the steering order obtaining by response user input operation; Finally, after controlled instruction, carry out this steering order, the processing that described the second audio file is play or do not play.
By adopting the technical scheme in the embodiment of the present application, electronic equipment is in the process of broadcasting the first audio file, in the time having the second audio file request to play, electronic equipment can be according to user's the processing that need to this second audio file be play or do not play, realize electronic equipment in the process of displaying audio file, in the time having other audio file request to play, electronic equipment can be according to user's the technique effect that need to carry out selectivity broadcasting.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail, and the technical scheme that the embodiment of the present application is provided is done optimization process.
A kind of method of controlling audio file broadcasting that the embodiment of the present application provides, be applied to an electronic equipment, in described electronic equipment, include an audio playing unit, in specific implementation process, the method that the embodiment of the present application provides can be applied to computer, PAD, televisor etc. and have audio playing unit, and has multiple application function, such as, in the time of playing video file, can surf the Net simultaneously; In the time of online, can move bitcom simultaneously; The applied electronic equipment of the embodiment of the present application is not limited to computer, PAD and televisor, as long as there is audio playing unit, and there is multiple application function, and the electronic equipment that can switch between different application according to being chosen in of user, the method that the embodiment of the present application provides all can be applied.
The concrete steps of a kind of method of controlling audio file broadcasting that the embodiment of the present application provides as shown in Figure 1, comprising:
Step 101: play in the process of the first audio file at described audio playing unit, detect whether there is the second playing request of playing the second audio file; Particularly, in actual applications, when electronic equipment obtains a file, judge when whether this file is audio file, can adopt the mode of software to judge, according to filter algorithm, the computer programming languages such as available C++, VHDL, Java are write the program that realizes described filter algorithm, the file header that obtains file to be judged with this, then judges whether this file is audio file.
In specific implementation process, before whether described detection has second playing request of the second audio file of broadcasting, the step that electronic equipment is play the first audio file as shown in Figure 2, comprising:
Step 201: detect whether there is the first playing request of playing described the first audio file;
Step 202: in the time having described the first playing request, judge whether described the first audio file is first audio file to be played; In specific implementation process, electronic equipment judges whether described the first audio file is whether first audio file to be played can work to judge by detecting the now audio playing unit of electronic equipment, in the time detecting that audio playing unit is now in running order, judge that the first audio file is not first audio file to be played, when detecting that audio playing unit does not now have when in running order, can judge that the first audio file is first audio file to be played.
Step 203: in the time that described the first audio file is described first audio file to be played, play described the first audio file; In the time judging the first audio file and be described first audio file to be played, electronic equipment will directly be controlled audio playing unit and play this first audio file.
The technical scheme of playing the first audio file in order better to understand electronic equipment in Fig. 2, will be described in more detail the technical scheme shown in Fig. 2 below for example:
In specific implementation process, in the time that electronic equipment is specially computer, user can browsing page in using computer to watch video.In the time that user needs computer to play a piece of music, user clicks the music that needs broadcasting on computers, thereby computer response user's clicking operation detects the playing request of playing this music; Play after the playing request of music to playing user at computer detection, first audio file to be played whether computer can be play for computer this music judges, computer expert crosses whether sound card in the audio playing unit that detects computer is now in running order judges, do not have when in running order when detecting sound card now, can judge first audio file to be played that this music is play for computer, now, computer can be made the processing of directly playing to this music; And when detecting sound card now when in running order, can judge that this music is not first audio file to be played that computer is play, in such cases, the method that the control audio file that computer provides in the embodiment of the present application just for the disposal route of this music is play will elaborate in following step.
And for the first audio file, in specific implementation process, in the time judging first audio file to be played that described the first audio file is electronic equipment, the concrete steps that electronic equipment is play described the first audio file as shown in Figure 3, comprising:
Step 301: in the time that described the first audio file is described first audio file to be played, detects and obtain corresponding the first parameter information of described the first audio file;
In specific implementation process, experience in order to reach better user, when first audio file to be played that is electronic equipment at the first audio file, be of short duration audio files for fear of the first audio file that will play, electronic equipment is not directly play this first audio file, but to first detect this first audio file, in the time detecting that this first audio file is of short duration audio files, whether this first audio file is play and can be selected by user, determine by user whether this sound is play.And need to by user select play of short duration audio files type can be by artificial setting, such as, of short duration audio files can be: the message alert tone of chat software, audio sound in webpage, click the sound audio of file etc., and that these of short duration audio files generally all have reproduction time is short, the audio-frequency information containing is simple, or by features such as single tone repeat, therefore can be using these features as judging whether the first audio file is the parameter information of of short duration audio files, therefore, corresponding the first parameter information of the first audio file obtaining can be the corresponding duration information of the first audio file, note information etc., certainly in specific implementation process, experience in order to reach better user, the content that the first parameter information comprises should be far above above information, can also comprise the applied environment information of the first audio file, when the first audio file be user initiatively select acoustic information time, no matter whether it is of short duration audio files, electronic equipment all should respond user and operate this first audio file of broadcasting, and in the time that the first audio file is user's of short duration audio files that webpage ejects during at browsing page, whether the first audio file is now play and is determined by user.
For example, in the time that electronic equipment is computer, in the time that computer judges that the first audio file is first audio file to be played of computer, computer can detect the first audio file, the playing duration that obtains this first audio file is 2 seconds, and this playing duration 2 seconds is just corresponding the first parameter information of the first audio file.
Obtaining after the first parameter information, just entering step 302: judging whether described the first parameter information meets first pre-conditioned; In specific implementation process, first o'clock elongate member in can be pre-conditioned to first arranges, such as, the first duration condition setting in can be pre-conditioned by first is " being greater than 1 minute ", also ought detect that duration information in the first parameter of the first audio file is for being greater than 1 minute, represent that the first parameter information meets first pre-conditioned, when the duration information in the first parameter that the first audio file detected is when " being less than or equal to 1 minute ", represent that the first parameter information does not meet first pre-conditioned.
After judgement completes, just enter step 303: meet described first when pre-conditioned at described the first parameter information, play described the first audio file.For example, in the time that the duration information in the first parameter that the first audio file detected is 2 minutes, represent that the first parameter information meets first pre-conditioned, now electronic equipment will directly be play this first audio file.
And in specific implementation process, do not meet described first when pre-conditioned at described the first parameter information, can process the first audio file according to user's different operating, for example, in the time of electronic equipment can to recognize the first audio file be user file that needs that active selects play, even if the first parameter information of the first audio file now does not meet described first pre-conditioned, electronic equipment is still play this first audio file, and in the time that the first audio file is the audio files of automatically playing in webpage, can select whether to play this first audio file by user.And select the method for whether playing this first audio file specifically to comprise the following steps by user:
First, do not meet described first when pre-conditioned at described the first parameter information, generate and at least comprise not the first option information of play options of the first play options and first, the first parameter information does not meet first when pre-conditioned, electronic equipment can generate the first option information, this first option information can at least comprise that two options are for user's selection, i.e. not play options of the first play options and first, certainly, in actual applications, on this first option, can also comprise the option of play mode, this play mode can allow the first audio file play with predefined pattern, such as, on play mode option, can comprise " rock and roll ", " popular ", the play mode displaying audio file of multiple different-styles such as " national wind ".For example, in the time that electronic equipment is computer, when the first parameter information does not meet first when pre-conditioned, computer generates and comprises the first play options, the first play options not, and under the first play options, generate again the mode option of " rock and roll ", " popular ", " national wind " three different-styles, in the time that user does not need to play the first audio file, directly select the first play options not, in the time that user need to play the first audio file, select the first play options, and further in three options of play mode, select the broadcasting style needing.
Then,, after generating the first option information, electronic equipment is presented at described the first option information on the display unit of described electronic equipment.Such as, aforesaid the first play options, first not play options, " rock and roll ", " popular ", " national wind " three play mode options is shown for user and is selected operation by the display unit of electronic equipment.
In specific implementation process, the first play options of selecting according to user, need to play the first audio file time, the specific implementation process that electronic equipment is play the first audio file comprises the following steps again:
First, electronic equipment response is selected operation corresponding to first of described the first play options, generates the first play instruction; User selects first selection that is operating as of the first play options in the first option information to operate on the display unit of electronic equipment, electronic equipment generates the first play instruction according to the first selection operation, plays this first audio file in order to control the audio playing unit of electronic equipment.
Generating after the first play instruction, electronic equipment is carried out described the first play instruction, controls the audio playing unit of electronic equipment and plays described the first audio file.
After completing detection, the method for the embodiment of the present application just enters step 102: in the time having described the second playing request, obtain the steering order obtaining by response user input operation;
In specific implementation process, the specific implementation step of step 102 as shown in Figure 4, comprising:
Step 401: in the time having described the second playing request, generate and at least comprise not the second option information of play options of the second play options and second;
After generating the second option information, just enter step 402: show that described the second option information is on described display unit;
After completing the demonstration of the second option information, just enter step 403: response is selected operation corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
In order better to understand the technical scheme shown in Fig. 4, below will for example the technical scheme of Fig. 4 be elaborated:
For example, in the time that electronic equipment is computer, when computer is being play the first audio file, user need to carry out other operations to this computer, need to use this online computing such as user time, in the time thering is audio file in the webpage that user opens, this audio file is the second audio file, when user opens the webpage with the second audio file, be the second playing request, now, computer can not play-overed the second audio file in this webpage, at least comprise not the second option information of play options of the second play options and second but generate, more excellent, in order to obtain better result of broadcast, on the second option information, can also comprise play mode option, this play mode option can allow the second audio file play with predefined style, such as, on play mode option, can comprise " rock and roll ", " popular ", the play mode of multiple different-styles such as " national wind ", computer generates after the second option information, can by the second play options, second in this second option information not play options and play mode option show by the display screen of computer so that user selects the option needing, in the time that user selects the second play options on computer, computer can respond this second selection operation of user, generate the second play instruction, simultaneously, user can also select the play mode oneself needing in play mode option, can select " rock and roll ", " popular ", the play mode of multiple different-styles such as " national wind ", generate corresponding relevant control instruction simultaneously, control computer and play the second audio file by the play mode of selecting, and select second on computer not when play options as user, computer can respond the 3rd of user and select operation, generate the second refusal instruction, do not play the second audio file in order to the audio playing unit of controlling computer.
Obtaining after steering order, the method for the embodiment of the present application just enters step 103: carry out described steering order, the processing that described the second audio file is play or do not play.And in specific implementation process, carry out described steering order, the processing that described the second audio file is play or do not play, specifically comprises again: carry out described the second play instruction, the processing that described the second audio file is play; Or carry out described second and refuse instruction, the processing that described the second audio file is not play.
In specific implementation process, in the time that electronic equipment need to be play the second audio file according to user's selection, generally also need the processing that the first audio file is not play, to avoid the confusion of two kinds of sound, and in order to obtain better result of broadcast, the processing that the first audio file is not play need to complete after generating the second play instruction, therefore, after generating the second play instruction of described broadcasting the second audio file, electronic equipment can be based on described the second play instruction, generate the first refusal instruction, then, electronic equipment is carried out described the first refusal instruction, in order to the processing that described the first audio file is not play.
The second above audio file only contains an audio files, and in actual applications, the second audio file contains a more than audio files sometimes, so in the time that the second audio file comprises at least two audio frequency son files, the described steering order of described execution, the concrete steps of the processing that described the second audio file is play or do not play as shown in Figure 5, comprising:
Step 501: carry out described steering order, the broadcast interface of at least two audio frequency son files described in showing on described display unit;
Complete after broadcast interface in demonstration, just enter step 502: on described broadcast interface, obtain at least one the control sub-instructions obtaining by response user input operation;
Obtaining after at least one control sub-instructions, just entering step 503: carrying out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
In order to make those skilled in the art can better understand the technical scheme shown in Fig. 5, will be illustrated this technical scheme below:
For example, in the time that electronic equipment is computer, the second audio file comprises 3 audio frequency son files, 3 audio frequency son files are specially 3 first songs, title of the song be respectively " cc ", " Dong Dong ", " South-South ", and this 3 first song is embedded in a music webpage, in the time that computer is play the first audio file, user uses computer to open described music webpage, on computer, can show the second option information, the second option information comprises not play options of the second play options and second, in the time that user need to play the music in this music webpage, user can select the second play options, computer response user operation, generate the second play instruction, this second play instruction is also not used in the 3 first playback of songs of controlling in the second audio file, but for this 3 song is presented to same webpage broadcast interface, on this webpage broadcast interface, there are the described 3 first playback of songs whether option informations of control, in the time demonstrating described webpage broadcast interface on the display screen of computer, user can select to need according to the hobby of oneself the corresponding option of song of broadcasting, computer response user operation, generate and control described 3 first playback of songs whether control sub-instructions, in order to control the broadcasting of described 3 songs or not play, user can shown in select to play described 3 songs on webpage broadcast interface simultaneously, also can only select 2 or 1 song to play, can also select 3 songs not play.
For make those skilled in the art can be on the whole complete understand the method and technology scheme that the embodiment of the present application provides, below will the whole technical scheme of this method be done to more detailed describing for example:
For example, at this, the application describes as an example of notebook computer example, user can see a film in the time using notebook computer, listen to the music and browsing page etc., in the time that user need to listen song, in notebook computer, select the song that need to listen to play, and user initiatively selects the audio file of playing during due to this operation, therefore, notebook computer can be play-overed user-selected music, and when user is during at browsing page, while having the audio file carrying in webpage, whether computer first detects in sound card has program to move, if do not had, first audio file to be played that audio file in this webpage is computer is described, then, computer detects the duration information of the audio file in webpage again, if it is of short duration that the duration information detecting shows this audio file, discontinuous audio file, computer ejects the selection dialog box of playing or not playing on display screen, allow user select whether will play that this is of short duration, discontinuous audio file, if it is not of short duration that the duration information detecting shows this audio file, discontinuous audio file, computer is play-overed this audio file,
Listen in the process of song at use computer and work as user, simultaneously again when browsing page, if include audio file in the webpage that user opens, now computer can show that screen display operates the option dialog box that this audio file is play or do not play, allow user select whether to play the audio file in this webpage according to the needs of oneself, the specific implementation of this process is, computer can detect in sound card has program in operation, the audio playing unit that computer is described uses, normally listen song for what leave user in peace, computer can show that screen display operates the option dialog box that this audio file plays or do not play and selects for user, and in the time including more than 2 audio files in the webpage of opening, now, computer still can show screen display operate this webpage in more than 2 audio file play or the option dialog box do not play, user selects after play options, computer can automatically switch to be controlled in webpage on the control interface that this more than 2 audio file plays or do not play, more than 2 audio file in selecting whether play webpage by user on control interface.
Another application scenarios is, when user is in the time using computer to see a film, user is also using chat tool simultaneously, in the time that chat tool has information, can show in the computer lower right corner selects dialog box to select for user, whether sound when this selection dialog box has information in order to control chat software prompting user, in the time exceeding certain hour user and not selecting, computer can be defaulted as the prompting user that do not sound, and in the time that there is next information in chat software, still can show in the computer lower right corner and select dialog box to select for user, if user does not still select within a certain period of time, computer still can be defaulted as the prompting user that do not sound, in the time that user does not repeatedly select, computer can be defaulted as the prompting user that do not sound, after this, in the time that there is information in chat software again, computer also no longer shows and selects dialog box, directly be defaulted as and do not sound to point out user.
Accordingly, based on same inventive concept, the corresponding electronic equipment of method that the embodiment of the present application provides a kind of and described control audio file to play, this electronic equipment has an audio playing unit, and the concrete structure figure of described electronic equipment as shown in Figure 6, comprising:
Detecting unit 601, for play the process of the first audio file at described audio playing unit, detects whether there is the second playing request of playing the second audio file;
Obtain unit 602, be connected with described detecting unit 601, in the time having described the second playing request, obtain the steering order obtaining by response user input operation;
Performance element 603, is connected with described acquisition unit 602, for carrying out described steering order, and the processing that described the second audio file is play or do not play.
In specific implementation process, described electronic equipment also comprises: the first detecting unit, for detection of whether there being the first playing request of playing the first audio file; The first judging unit, is connected with described the first detecting unit, in the time having described the first playing request, judges whether described the first audio file is first audio file to be played; The first control module, is connected with described the first judging unit, in the time that described the first audio file is described first audio file to be played, controls described audio playing unit and plays described the first audio file.
In specific implementation process, the concrete structure of described the first control module as shown in Figure 7, comprising:
The second detecting unit 701, in the time that described the first audio file is described first audio file to be played, detects and obtains corresponding the first parameter information of described the first audio file;
The second judging unit 702, is connected with described the second detecting unit 701, first pre-conditioned for judging that whether described the first parameter information meets;
First controls subelement 703, is connected with described the second judging unit 702, for meeting described first at described the first parameter information when pre-conditioned, controls described audio playing unit and plays described the first audio file.
In specific implementation process, described the first control module also comprises: first information generation unit, for not meeting described first at described the first parameter information when pre-conditioned, generate and at least comprise not the first option information of play options of the first play options and first; Second controls subelement, is connected with described first information generation unit, shows described the first option information for controlling the display unit of described electronic equipment.
In specific implementation process, described the first control module also comprises: the first instruction generation unit, select operation for responding corresponding to first of described the first play options, and generate the first play instruction; The first instruction execution unit, is connected with described the first instruction generation unit, for carrying out described the first play instruction, plays described the first audio file.
In specific implementation process, the concrete structure of described acquisition unit 602 as shown in Figure 8, comprising:
The second information generating unit 801, in the time having described the second playing request, generates and at least comprises not the second option information of play options of the second play options and second;
The 3rd controls subelement 802, is connected with described the second information generating unit 801, shows described the second option information for controlling described display unit;
The second instruction generation unit 803, is connected with described the 3rd control subelement 802, selects operation for responding corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
In specific implementation process, described performance element 603 specifically can be: the second instruction execution unit, for carrying out described the second play instruction, the processing that described the second audio file is play; Or for carrying out described the second refusal instruction, the processing that described the second audio file is not play.
In specific implementation process, described acquisition unit 602 also comprises: the 3rd instruction generation unit, for based on described the second play instruction, generates the first refusal instruction; The 3rd instruction execution unit, is connected with described the 3rd instruction generation unit, for carrying out described the first refusal instruction, the processing that described the first audio file is not play.
In specific implementation process, in the time that described the second audio file comprises at least two audio frequency son files, the concrete structure of described performance element 603 as shown in Figure 9, comprising:
The 4th controls subelement 901, for carrying out described steering order, and control described display unit show described in the broadcast interface of at least two audio frequency son files;
Instruction acquisition unit 902, is connected with described the 4th control subelement 901, at described broadcast interface, obtains at least one the control sub-instructions obtaining by response user input operation;
The 4th instruction execution unit 903, obtains unit 902 with described instruction and is connected, for carrying out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
Be not limited to above the scope of this device for the explanation of device; the function of device both can hardware mode realizes also mode that can software, and every can substitute lifted device and can complete the device of the function that this device has all should be in the claimed scope of the application.
By the one or more technical schemes in the embodiment of the present application, can be achieved as follows technique effect:
(1) owing to having adopted in the process of electronic equipment displaying audio file, in the time having the playing request of playing other audio file, on the display unit of electronic equipment, show and comprise not the first option information of play options of the first play options and first, option in the first option information that electronic equipment is selected according to user is play other audio file or the technical scheme of playback process not, solved in prior art, exist in the process of electronic equipment displaying audio file, in the time having other audio file request to play, electronic equipment cannot be according to user's the technical matters that need to carry out selectivity broadcasting.Thereby, there is electronic equipment in the process of displaying audio file, in the time having other audio file request to play, electronic equipment can be according to user's the technique effect that need to carry out selectivity broadcasting.
(2) due to have at electronic equipment need afterwards play sound time, no longer adopt the processing mode of playing without exception, but select according to user's needs, solve in prior art and existed because form audio mixing, and the technical matters of the play quality of the audio file that reduction is being play greatly, so just can not have influence on the play quality of other audio file of playing, and, in the time that the sound of opening is afterwards more, user also no longer needs to expend the plenty of time and goes to close and do not need the audio file play, therefore, can improve user's Experience Degree.
Method of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to equally technological innovation scope of the present invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (18)

1. control the method that audio file is play, be applied to an electronic equipment, include an audio playing unit in described electronic equipment, it is characterized in that, described method comprises:
Play in the process of the first audio file at described audio playing unit, detect whether there is the second playing request of playing the second audio file;
In the time having described the second playing request, obtain the steering order obtaining by response user input operation;
Carry out described steering order, the processing that described the second audio file is play or do not play.
2. the method for claim 1, is characterized in that, before whether having in described detection the second playing request of playing the second audio file, described method also comprises:
Detect and whether have the first playing request of playing described the first audio file;
In the time having described the first playing request, judge whether described the first audio file is first audio file to be played;
In the time that described the first audio file is described first audio file to be played, play described the first audio file.
3. method as claimed in claim 2, is characterized in that, described in the time that described the first audio file is described first audio file to be played, plays described the first audio file, specifically comprises:
In the time that described the first audio file is described first audio file to be played, detects and obtain corresponding the first parameter information of described the first audio file;
Judge that whether described the first parameter information meets first pre-conditioned;
Meet described first when pre-conditioned at described the first parameter information, play described the first audio file.
4. method as claimed in claim 3, is characterized in that, described judge described the first parameter information whether meet first pre-conditioned after, described method also comprises:
Do not meet described first when pre-conditioned at described the first parameter information, generate and at least comprise not the first option information of play options of the first play options and first;
Show that described the first option information is on the display unit of described electronic equipment.
5. method as claimed in claim 4, is characterized in that, described the first audio file of described broadcasting, specifically comprises:
Response is selected operation corresponding to first of described the first play options, generates the first play instruction;
Carry out described the first play instruction, play described the first audio file.
6. the method as described in arbitrary claim in claim 1-5, is characterized in that, described in the time having described the second playing request, obtains the steering order obtaining by response user input operation, specifically comprises:
In the time having described the second playing request, generate and at least comprise not the second option information of play options of the second play options and second;
Show that described the second option information is on described display unit;
Response is selected operation corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
7. method as claimed in claim 6, is characterized in that, the described steering order of described execution, and the processing that described the second audio file is play or do not play, is specially:
Carry out described the second play instruction, the processing that described the second audio file is play; Or
Carry out described the second refusal instruction, the processing that described the second audio file is not play.
8. method as claimed in claim 7, is characterized in that, selects operation in described response corresponding to second of described the second play options, and after generating the second play instruction, described method also comprises:
Based on described the second play instruction, generate the first refusal instruction;
Carry out described the first refusal instruction, the processing that described the first audio file is not play.
9. the method as described in arbitrary claim in claim 1-5, it is characterized in that, in the time that described the second audio file comprises at least two audio frequency son files, the described steering order of described execution, the processing that described the second audio file is play or do not play, specifically comprises:
Carry out described steering order, the broadcast interface of at least two audio frequency son files described in showing on described display unit;
On described broadcast interface, obtain at least one the control sub-instructions obtaining by response user input operation;
Carry out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
10. an electronic equipment, includes an audio playing unit in described electronic equipment, it is characterized in that, described electronic equipment comprises:
Detecting unit, for play the process of the first audio file at described audio playing unit, detects whether there is the second playing request of playing the second audio file;
Obtain unit, be connected with described detecting unit, in the time having described the second playing request, obtain the steering order obtaining by response user input operation;
Performance element, is connected with described acquisition unit, for carrying out described steering order, and the processing that described the second audio file is play or do not play.
11. electronic equipments as claimed in claim 10, is characterized in that, described electronic equipment also comprises:
The first detecting unit, for detection of whether there being the first playing request of playing the first audio file;
The first judging unit, is connected with described the first detecting unit, in the time having described the first playing request, judges whether described the first audio file is first audio file to be played;
The first control module, is connected with described the first judging unit, in the time that described the first audio file is described first audio file to be played, controls described audio playing unit and plays described the first audio file.
12. electronic equipments as claimed in claim 11, is characterized in that, described the first control module specifically comprises:
The second detecting unit, in the time that described the first audio file is described first audio file to be played, detects and obtains corresponding the first parameter information of described the first audio file;
The second judging unit, is connected with described the second detecting unit, first pre-conditioned for judging that whether described the first parameter information meets;
First controls subelement, is connected with described the second judging unit, for meeting described first at described the first parameter information when pre-conditioned, controls described audio playing unit and plays described the first audio file.
13. electronic equipments as claimed in claim 12, is characterized in that, described the first control module also comprises:
First information generation unit, for not meeting described first at described the first parameter information when pre-conditioned, generates and at least comprises not the first option information of play options of the first play options and first;
Second controls subelement, is connected with described first information generation unit, shows described the first option information for controlling the display unit of described electronic equipment.
14. electronic equipments as claimed in claim 13, is characterized in that, described the first control module also comprises:
The first instruction generation unit, selects operation for responding corresponding to first of described the first play options, generates the first play instruction;
The first instruction execution unit, is connected with described the first instruction generation unit, for carrying out described the first play instruction, plays described the first audio file.
15. electronic equipments as described in arbitrary claim in claim 10-14, is characterized in that, described acquisition unit specifically comprises:
The second information generating unit, in the time having described the second playing request, generates and at least comprises not the second option information of play options of the second play options and second;
The 3rd controls subelement, is connected with described the second information generating unit, shows described the second option information for controlling described display unit;
The second instruction generation unit, is connected with described the 3rd control subelement, selects operation for responding corresponding to second of described the second play options, generates the second play instruction; Or response is corresponding to the described second not the 3rd selection operation of play options, generates the second refusal instruction.
16. electronic equipments as claimed in claim 15, is characterized in that, described performance element is specially:
The second instruction execution unit, for carrying out described the second play instruction, the processing that described the second audio file is play; Or for carrying out described the second refusal instruction, the processing that described the second audio file is not play.
17. electronic equipments as claimed in claim 16, is characterized in that, described acquisition unit also comprises:
The 3rd instruction generation unit, for based on described the second play instruction, generates the first refusal instruction;
The 3rd instruction execution unit, is connected with described the 3rd instruction generation unit, for carrying out described the first refusal instruction, the processing that described the first audio file is not play.
18. electronic equipments as described in arbitrary claim in claim 10-14, is characterized in that, in the time that described the second audio file comprises at least two audio frequency son files, described performance element specifically comprises:
The 4th controls subelement, for carrying out described steering order, and control described display unit show described in the broadcast interface of at least two audio frequency son files;
Instruction acquisition unit, is connected with described the 4th control subelement, at described broadcast interface, obtains at least one the control sub-instructions obtaining by response user input operation;
The 4th instruction execution unit, obtains unit with described instruction and is connected, for carrying out described at least one control sub-instructions, to the processing that in described at least two audio frequency son files, at least one audio frequency son file is play or do not play.
CN201210519943.6A 2012-12-06 2012-12-06 A kind of method and device controlling audio file to play Active CN103854682B (en)

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 true CN103854682A (en) 2014-06-11
CN103854682B 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 (5)

* Cited by examiner, † Cited by third party
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
CN106528661A (en) * 2016-10-20 2017-03-22 广州酷狗计算机科技有限公司 Song auditioning method and apparatus
CN108536415A (en) * 2018-02-28 2018-09-14 广东欧珀移动通信有限公司 Using method for controlling volume, device, mobile terminal and computer-readable medium
CN109151496A (en) * 2018-07-25 2019-01-04 维沃移动通信有限公司 A kind of method for playing music, mobile terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229448A (en) * 2017-06-30 2017-10-03 联想(北京)有限公司 Audio frequency playing method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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 (6)

* Cited by examiner, † Cited by third party
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
CN106528661A (en) * 2016-10-20 2017-03-22 广州酷狗计算机科技有限公司 Song auditioning method and apparatus
CN108536415A (en) * 2018-02-28 2018-09-14 广东欧珀移动通信有限公司 Using method for controlling volume, device, mobile terminal and computer-readable medium
CN109151496A (en) * 2018-07-25 2019-01-04 维沃移动通信有限公司 A kind of method for playing music, mobile terminal
CN109151496B (en) * 2018-07-25 2021-04-23 维沃移动通信有限公司 Music playing method and mobile terminal

Also Published As

Publication number Publication date
CN103854682B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN103854682A (en) Method and device for controlling audio file playing
US20140281983A1 (en) Anaging audio at the tab level for user notification and control
DK201770369A1 (en) Devices, methods, and graphical user interfaces for providing haptic feedback
KR20140144104A (en) Electronic apparatus and Method for providing service thereof
US11233895B2 (en) Automatic wallpaper setting method, terminal device, and graphical user interface
WO2022022536A1 (en) Audio playback method, audio playback apparatus, and electronic device
CN105812941A (en) Video playing method and device and electronic equipment
CN112231021B (en) Method and device for guiding new functions of software
CN105359121A (en) Remote operation of applications using received data
CN103970477A (en) Voice message control method and device
CN103151057A (en) Music playing method and third party application
US9047858B2 (en) Electronic apparatus
CN106873869A (en) A kind of control method and device of music
US20140206324A1 (en) Method and electronic device for providing call rejection function
CN103279269A (en) Method, device and terminal equipment for data interaction among application programs
CN103150085A (en) Method and terminal for showing content information of application
CN106233237A (en) A kind of method and apparatus of the new information processed with association
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
CN107147957A (en) Video broadcasting method and device
CN104469513A (en) Display method and electronic device
CN110908638A (en) Operation flow creating method and electronic equipment
CN111694490B (en) Setting method and device and electronic equipment
CN105630579A (en) Computer capable of selective playing
CN101448110A (en) Television with built-in specification
US9747941B2 (en) Method for applying supplementary attribute information to E-book content and mobile device adapted thereto

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