CN107229448A - Audio frequency playing method and electronic equipment - Google Patents

Audio frequency playing method and electronic equipment Download PDF

Info

Publication number
CN107229448A
CN107229448A CN201710524930.0A CN201710524930A CN107229448A CN 107229448 A CN107229448 A CN 107229448A CN 201710524930 A CN201710524930 A CN 201710524930A CN 107229448 A CN107229448 A CN 107229448A
Authority
CN
China
Prior art keywords
audio
priority level
application
judged result
output request
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.)
Pending
Application number
CN201710524930.0A
Other languages
Chinese (zh)
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 CN201710524930.0A priority Critical patent/CN107229448A/en
Publication of CN107229448A publication Critical patent/CN107229448A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiments of the invention provide audio frequency playing method and electronic equipment, when the output for detecting the first audio is asked, it is determined that the second audio being currently played;Obtain the judged result for the output request for whether refusing the first audio because of the second audio for characterizing;When the judged result demonstrates the need for the output request for refusing the first audio, continue to play the second audio and forbid playing the first audio.It is achieved thereby that during the first audio is played, even if there is the demand for playing other audios, also forbidding playing other audios, it is achieved thereby that the purpose that the first audio is not interrupted.

Description

Audio frequency playing method and electronic equipment
Technical field
The application is related to audio signal processing technique field, is more particularly to audio frequency playing method and electronic equipment.
Background technology
Electronic equipment has the function of playing audio, and can be provided with electronic equipment multiple can export the application of audio Program.
If electronic equipment is during the first audio is played, the audio of other applications output is also played, then could Interrupt the first audio.For example, can produce prompt tone when application program has new message, the possible prompt tone of the first audio is interrupted.
The content of the invention
In view of this, the invention provides a kind of audio frequency playing method and electronic equipment, prevent what is played to realize The purpose that audio is interrupted.
To achieve the above object, the present invention provides following technical scheme:
A kind of audio frequency playing method, including:
When the output for detecting the first audio is asked, it is determined that the second audio being currently played;
Obtain the judgement knot for the output request for whether refusing first audio because of second audio for characterizing Really;
When the judged result demonstrates the need for the output request for refusing first audio, continue to play second sound Frequency and forbid playing first audio.
A kind of electronic equipment, including:
Memory, for storage program;
Audio resource, for playing audio;
Processor, for performing described program, described program specifically for:
When the output for detecting the first audio is asked, the second audio that the audio resource is currently played is determined;
Obtain second audio and whether meet and continue to play the first condition of second audio for characterizing needs Judged result;
When the judged result shows that second audio meets the first condition, the audio resource is controlled to continue Play second audio and forbid playing first audio by the way of audio.
A kind of electronic equipment, including:
Determining module, for when the output for detecting the first audio is asked, it is determined that the second audio being currently played;
Acquisition module, is used to characterize sentencing for the output request for whether refusing the first audio because of the second audio for obtaining Disconnected result;
Playing module, for when the judged result demonstrates the need for the output request for refusing first audio, continuing Play second audio and forbid playing first audio.
Understand that compared with prior art, the embodiments of the invention provide a kind of broadcasting of audio via above-mentioned technical scheme Method, when the output for detecting the first audio is asked, it is determined that the second audio being currently played;Whether obtain is used for sign Refuse the judged result of the output request of the first audio because of the second audio;When the judged result demonstrates the need for refusal first During the output request of audio, continue to play the second audio and forbid playing the first audio.It is achieved thereby that playing the first audio During, even if there is the demand for playing other audios, also forbid playing other audios, it is achieved thereby that the first audio is not beaten Disconnected purpose.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
A kind of flow chart for audio frequency playing method that Fig. 1 provides for the embodiment of the present application;
The structure chart for the electronic equipment that Fig. 2 provides for the embodiment of the present application;
The cut-away view for the electronic equipment that Fig. 3 provides for the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, a kind of flow chart of the audio frequency playing method provided for the embodiment of the present application, the embodiment of the present application is carried The audio frequency playing method of confession can apply to electronic equipment, for example, smart mobile phone or personal computer or notebook or PAD etc. are eventually End equipment.This method includes:
Step S101:When the output for detecting the first audio is asked, it is determined that the second audio being currently played.
Audio can include:Simple audio (such as sound), or, audio multimedia (the such as shadow of image+sound Picture).
Electronic equipment has the function of playing audio, and electronic equipment, which can be provided with, one or more can export audio Application program.The audio frequency playing method that the application is provided can apply to following several application scenarios.
The first, different application plays the scene of audio.
For example, the holder of electronic equipment --- user A is used for the phone application called in using electronic equipment Program carries out telephone relation (it is the voice data that other side sends that i.e. electronic equipment, which is playing the second audio), and now, electronics is set The standby user B that detects asks audio chat to user A by class application program of chatting (such as wechat, QQ, nail are followed closely) or sends new Information.Now, there is class application program of being chatted in electronic equipment the demand of output audio chat prompt tone or output to receive newly The demand of message alert tone (now, the first audio is prompt tone).
For another example, user A is using the media play-back application (such as video playback application program) in electronic equipment Video (i.e. the second audio is video data) is played, now, alarm clock application Programmable detection to current time has arrived at user A and set The alarm time put, or, calendar application detect the event reminder time that current time has reached user A records, this When, the alarm clock application program in electronic equipment has the demand of output quarter-bell prompt tone, or, calendar application has output thing The demand of part prompt tone (now the first audio is prompt tone).
And for example, user A is using the media play-back application (such as music application program) in electronic equipment Play simple audio (i.e. the second audio is voice data);Now, news application Programmable detection to currently have new news, Or, video playback application program has video to update;Now, the news application program in electronic equipment is received with output The demand of the prompt tone of new news, or, video playback application program have the demand of the prompt tone of output video renewal (now First audio is prompt tone).
Second, same application plays the scene of different audios.
For example, video class application program (such as video playback application program) is playing video, (i.e. electronic equipment is broadcast The second audio put is video) during, the video that user subscribes in video class application program produces renewal, now, video Class application program have output be used for indicate video update prompt tone (the first audio be for indicate video update prompting Sound) demand.
For another example, chat class application programs (such as wechat, QQ, nail nail) of the user A in using electronic equipment is entered with friend During row audio chat (i.e. electric second audio is voice-frequency telephony), electronic equipment detects chat class application program reception Message is sent to user B to user A, then there is class application program of chatting output to be used to indicate the prompt tone for having new information (now, First audio is for indicating there is the prompt tone of new information) demand.
For another example, user A is used during telephone relation (i.e. the second audio is voice-frequency telephony) is carried out using electronic equipment Family B is called to user A, then the telephony application in the electronic equipment has the prompt tone for exporting the phone call request (now, the first audio be phone call request prompt tone) demand.
To sum up, either in the first application scenarios still in second of application scenarios, the first audio and the second audio Same audio types are may belong to, different audio types are may belong to.
Depending on the careful degree that audio types are divided can be according to actual conditions.For example, audio types can include:Language Sound is conversed and/or video calling and/or prompt tone;If there is the demand further divided, prompt tone can include:New information is carried Show sound and/or subscribe to video and update prompt tone and/or voice call request prompt tone and/or video calling request prompt tone etc. Deng.For different practical application scenes, the careful degree that audio types are divided is different, and the application is not construed as limiting herein.
Step S102:Obtain the judgement knot for the output request for whether refusing the first audio because of the second audio for characterizing Really.
Obtaining the approach of judged result has a variety of, and the embodiment of the present application is provided but is not limited to following several:
The first approach, judged result is obtained from cloud server.
Now, step S102 can include:Whether receive cloud server transmission is used for sign because of the second audio Refuse the judged result of the output request of the first audio.
Electronic equipment can obtain the second audio and play from the first server of network side in real time, for example, online see See video;The output request of first audio is also likely to be that the second server of network side is generated, for example, chat class application program Voice-frequency telephony request prompt tone.
Therefore, cloud server can obtain the corresponding object of the second audio and from the first server of network side The corresponding object of one audio;The corresponding object of cloud server the second audio of foundation and the corresponding object of the first audio, it is determined that Above-mentioned judged result.
If electronic equipment can also send the corresponding object of the second audio and the corresponding object of the first audio to high in the clouds Server;Cloud server determines above-mentioned judgement knot according to the corresponding object of the second audio and the corresponding object of the first audio Really.
Wherein, object can refer to the object in application program or application program;Object can also refer to application-specific journey Sequence and/or special audio type.
Second of approach:Electronic equipment oneself determines judged result.
Electronic equipment itself is according to the corresponding object of the first audio object corresponding with the second audio, and obtain is for sign The judged result of the no output request for refusing the first audio because of the second audio.
Wherein, object can refer to the object in application program or application program;Object can also refer to application-specific journey Sequence and/or special audio type.
Whether refuse the judged result of the output request of the first audio in the embodiment of the present application, be examining based on the second audio Consider result, because the second audio is currently played, the second audio has occupied the audio resource of electronic equipment.
If not considering the second audio, the output request of the first audio is directly received, then there may be two ways:First Kind, electronic equipment only plays the first audio, and stops playing the second audio;Second, electronic equipment plays the first audio simultaneously With the second audio, that is, play the audio mixing of the first audio and the second audio.User can be thus influenceed to watch or listen to the second audio. Accordingly, it would be desirable to judge whether because the second audio refuses the output request of the first audio, if for a user, with the first audio Compare, more wish that electronic equipment plays the second audio, then can refuse the output request of the first audio.I.e. judged result shows User is more to expect to play the first audio, still more expects to play second audio.
For example, for a user, user wishes that the expectation for broadcasting voice-frequency telephony is more than the expectation for playing music;Play sound Happy expectation of the expectation more than various application prompts sounds.So user is carrying out audio during, will not hear The prompt tone of each application program.
Audio resource can include but is not limited to:Loudspeaker and/or external earphone.
Step S103:When the judged result demonstrates the need for the output request for refusing first audio, continue to play Second audio and forbid playing first audio.
It can be that the first audio is played in delay to forbid playing first audio, for example, after the second audio is finished, Play the first audio;Forbid playing the first audio and can also be refusing to play the first audio, i.e., unless received the first audio again Output request, otherwise will not play the first audio.
Electronic equipment has been likely to be received multiple first audios during the second audio is played;If by multiple first sounds Frequency delay is played, then after the second audio is finished or after delay preset time, can be received respectively according to electronic equipment The time of first audio plays each first audio successively;Or, multiple first audios are prompted to user together.
It is preferred that, preset time is more than or equal to the duration for playing the second audio.
Multiple first audios are prompted into user together can include following several ways:The first, while playing multiple At least one first audio in first audio, and/or, directly or detect user in the electronic device electronic equipment is checked Show that multiple first audios distinguish corresponding event after operation;Second, play currently has multiple first audios for characterizing Prompt tone, and/or, in the electronic device directly or detect user to electronic equipment check operation after show multiple first Audio distinguishes corresponding event.
Wherein, for characterize currently have multiple first audios prompt tone, can for multiple first audios audio mixing or The prompt tone pre-set.
Check operation can be it is default check gesture or check button touched by etc., the application is not construed as limiting to this.
Wherein, multiple first audios are prompted to user together can improve prompting efficiency, reduce because of multiple first audios point A large amount of prolonged promptings caused by not playing out.
It is understood that the application program with AF playing function can all be played with independent control audio, example Such as, telephony application is set to silent mode, then telephony application will not export call request prompt tone;Media are broadcast Put application program to be set to forbid sending out notice, then when having video to update in media play-back application, will not export and regard Frequency updates prompt tone;Chat class application program is set into do-not-disturb mode, then when receiving new message in setting time section not Prompt tone can be produced;Chat class application program is set to forbid to receive voice and video chat invitation and notified, then when there is friend When carrying out voice or Video chat with user by class application requests of chatting, voice will not be exported or Video chat request is carried Show sound.
Obviously, if user has carried out the setting of above-mentioned similar limitation output audio (such as prompt tone) to application program, Generally, since the setting time, application program is all without corresponding prompt tone is exported, but it is clear that user is not intended to In this way, user wishes, when electronic equipment plays some audios, these application programs output audio to be limited, if electronic equipment is not broadcast Playback frequency, user may still expect that these application programs export audio.
And for example, if user using electronic equipment play the second audio during, if electronic equipment have the first sound The output request of frequency, now, user is inconvenient or electronic equipment can not be rapidly switched to the corresponding configuration interface of the first audio, So that user carries out limitation output by configuration interface to the first audio.
To sum up, progress intelligent configuration at the time of the embodiment of the present application is equivalent to application program limitation output audio.
The audio frequency playing method that the embodiment of the present application is provided, is the second audio quilt played in order to avoid electronic equipment Interrupt, and the method for the output request how forbidden or ignore the first audio researched and developed;For example, forbidding playing than the second audio The first low audio of priority level, or, ignore the output request of first audio lower than the priority level of the second audio.So that Obtain the second audio not interrupted by the first audio so that user can continue notice or attention rate being applied to the second audio.
Optionally, it can also include:When the judged result shows that the output request of first audio need not be refused When, play first audio.
In a kind of audio frequency playing method that the embodiment of the present application is provided, when the output for detecting the first audio is asked, really Surely the second audio being currently played;Obtain the output request for whether refusing the first audio because of the second audio for characterizing Judged result;When the judged result demonstrate the need for refuse the first audio output request when, continue play the second audio and Forbid playing the first audio.It is achieved thereby that during the first audio is played, even if there is the demand for playing other audios, Forbid playing other audios, it is achieved thereby that the purpose that the first audio is not interrupted.
Step S102 in the embodiment of the present application " is obtained and whether because of the second audio is refused the defeated of the first audio for characterizing Go out the judged result of request " implementation method have a variety of, the embodiment of the present application provide but be not limited to following several.
Whether the first implementation method, the second audio belongs to application-specific and/or special audio type.
Specific method includes:Obtain whether the second audio belongs to sentencing for application-specific and/or special audio type Disconnected result;Wherein, when the second audio belongs to application-specific and/or special audio type, judged result demonstrates the need for refusing The output request of exhausted first audio.
Application-specific and/or special audio type can be set in advance in cloud server or electronic equipment 's.Can electronic equipment holder set or electronic equipment set before dispatching from the factory.It is specific to answer It can be configured with program and/or special audio type according to actual demand.
It is preferred that, application-specific and/or special audio type are the important journeys of the application program thought according to user What degree was determined.The significance level for the application program that user thinks can count what is drawn based on substantial amounts of statistical result, can also It is to be determined according to the holder oneself of electronic equipment, this embodiment of the present application is not especially limited.
Judge whether the second audio belongs to application-specific and/or the method for special audio type and have a variety of, the application Embodiment is provided but is not limited to following several:
First, judge whether the second audio belongs to application-specific.
Assuming that user thinks that telephone relation prompt tone more corresponding than other any application programs or voice-frequency telephony are more important, Then application-specific can be set to telephony application.
Application-specific can include one or more application programs in the embodiment of the present application.
Second, judge whether the second audio belongs to special audio type.
Assuming that user thinks that video calling is more important than audios such as voice call, new information prompt tones, then will can regard Frequency call is set to special audio type.
Special audio type can include one or more audio types in the embodiment of the present application.
3rd, judge the special audio type whether the second audio belongs in application-specific.
For same audio types, different application programs may be corresponded to, for example, this audio class of voice call Type can correspond to telephony application or chat class application program;Assuming that user thinks that the audio types ratio of telephony application is chatted The audio types of its class application program are more important.Then the voice call in telephony application can be defined as application-specific Special audio type in program.
If electronic equipment is during the voice call in playing telephony application, chat class application program is detected During the output request of the prompt tone of middle voice call request, because the voice call in telephony application belongs to application-specific journey Special audio type in sequence, therefore, continues to play the second audio.
Second of implementation method:The priority level for comparing the corresponding object of the first audio object corresponding with the second audio is high It is low.
Specific method includes:Obtain the preferential of the corresponding object of first audio object corresponding with second audio The judged result of rank height;When the priority level of the corresponding object of first audio is corresponding right less than second audio During the priority level of elephant, the judged result demonstrates the need for refusing the output request of first audio.
Wherein, object can be application program and/or audio types;Object can also be the object in application program.
Assuming that object is audio types, it is assumed that audio types include:Video calling, voice call and short message prompt sound Etc., and each audio types priority level height be:Video calling>Voice call>New information prompt tone.If user uses electricity It is the video data that other side sends that sub- equipment, which carries out video calling, i.e. the second audio,;Now, if electronic equipment has output The demand of prompt tone or new information prompt tone is asked in voice call, then electronic equipment forbids or ignored voice call request to carry automatically Show sound or short message prompt sound.
Assuming that object is application program, and assume that application program includes:Telephony application, short message application program, chat Its class application program and media play-back application etc..And the priority level of each application program of hypothesis is:Telephony application> Short message application program>Chat class application program>Media play-back application;If user is using the chat in electronic equipment It is the voice data that other side sends that class application program, which carries out audio chat, i.e. the second audio,;Now, if media play-back application Detect new video or music updates, then the demand of prompt tone is updated with output video or music;Because chat class should It is higher than media play-back application with the priority level of program, therefore, video or music are forbidden or ignored to electronic equipment more automatically New prompt tone.
Assuming that object is the object in application program, for example, the contact person of application records, it is assumed that user A makes Conversed with the wechat in electronic equipment and user B;Now, user C sends message by wechat to user A;Assuming that user C's is excellent First rank is less than user B, then ignores or forbid new information prompt tone
" the excellent of the corresponding object of first audio object corresponding with second audio is obtained in the embodiment of the present application The method of the judged result of first rank height " has a variety of, and the embodiment of the present application is provided but is not limited to following several:
First, the priority level for obtaining the second audio owning application and the first audio owning application is high Low judged result.
The application program of audio, which can be exported, to be included:Music application program, video playback application program, chat Class application program, telephony application, short message application program (the exportable prompt tone for receiving new short message), game class Application program, clock application program (can export quarter-bell prompt tone), weather report application program (can be pre- with timing output weather Report) etc..
The priority level of different application programs may be identical possible different;Still by taking above-mentioned certain applications program as an example, then The priority level of application program can be as follows:Telephony application > chat class application program > short message application program > videos Play-back application.
If the priority level of the second audio owning application is higher than the priority level of the first audio owning application, Judged result shows to refuse the output request of first audio;If the priority level of the second audio owning application is less than the The priority level of one audio owning application, then judged result demonstrate the need for play the first audio;If should belonging to the second audio Equal with the priority level of the first audio owning application with the priority level of program, then judged result can be for showing Refuse the judged result of the output request of first audio, or, for demonstrating the need for playing the judged result of the first audio, Or, for showing to play the first audio and the judged result of the second audio mixing.
The acquisition methods of the priority level of application program have a variety of, and the embodiment of the present application is provided but is not limited to several:
First:Obtain the method for operation and the first audio owning application of the second audio owning application The method of operation, the method for operation be front stage operation or running background;
When the corresponding method of operation of second audio is front stage operation and the corresponding method of operation of first audio is During running background, determine that the priority level of the second audio owning application is more than the first audio owning application Priority level.
When the corresponding method of operation of the second audio is running background and the corresponding method of operation of first audio is foreground During operation, determine that the priority level of the second audio owning application is less than the excellent of the first audio owning application First rank.
Front stage operation refers to the corresponding human-computer interaction interface displaying of application program in the electronic device, and user can be by this Human-computer interaction interface carries out interactive with application program.
Running background refers to that application program is run in explorer, and electronic equipment does not show the man-machine of the application program Interactive interface, but occupying system resources, can provide booster action for other applications.
If the second audio owning application is in front stage operation, illustrates the attention rate of user or focus on the second sound Frequently, now, if the first audio interrupts the second audio played, user is caused from giving more sustained attention the second audio, to use Bring poor experience in family.
If the second audio owning application (for example, music application program) is in running background;Belonging to first audio Application program (such as video playback application program) illustrates the attention rate of user or focuses on the first sound in front stage operation Frequently, now the first audio can interrupt the second audio played so that user can pay close attention to the first audio.
Second:From the corresponding priority level of each application program prestored, obtain respectively belonging to first audio Corresponding first priority level of application program and corresponding second priority level of the second audio owning application;Compare The height of first priority level and second priority level.
The corresponding priority level of each application program can be set in advance in electronic equipment or cloud server.Respectively should Can be that user oneself is set or electronic equipment producer before dispatching from the factory is set with the corresponding priority level of program 's.
2nd, the priority level for obtaining the affiliated audio types of the second audio and the affiliated audio types of the first audio is high Low judged result.
Audio types can include:Voice call, video calling, new information prompt tone, subscription video update prompt tone, language Sound call request prompt tone, video calling request prompt tone, weather forecast play-back application etc..
The corresponding priority level of each audio types can be set in advance in electronic equipment or cloud server.Each audio class The corresponding priority level of type can user oneself set or electronic equipment producer before dispatching from the factory set.
3rd, the priority level based on the second audio owning application and the first audio owning application is high The first low comparative result;And, the affiliated audio types of the second audio are excellent with the affiliated audio types of the first audio Second comparative result of first rank height;Obtain the corresponding object of second audio object corresponding with first audio The judged result of priority level height.
The third mode is the combination of the first and the second way.
Assuming that the priority level of the second audio owning application is the second priority level;First audio owning application Priority level be the 5th priority level, wherein, the second priority level is higher than the 5th priority level, and the second priority level compares the High three priority levels of five priority levels.Then the first comparative result can be higher than the first audio for the second audio owning application Three priority levels of owning application.
Assuming that the priority level of the affiliated audio types of the second audio is that third priority is other;The affiliated audio types of first audio Priority level be the first priority level, then the second comparative result can include:The affiliated audio types of second audio are less than first Audio two priority levels of affiliated audio types.
Then, judged result=the first comparative results of application program weight *+audio types weight the second comparative results of *.If Judged result is more than preset value, then illustrates that the priority level of the corresponding object of the second audio is more than the corresponding object of the first audio Priority level.If judged result is less than or equal to preset value, illustrate that the priority level of the corresponding object of the second audio is less than the The priority level of the corresponding object of one audio.
Assuming that application program weight be 0.6, audio types weight be 0.4, then judged result=3*0.6+0.4* (- 2)= 1.Assuming that preset value is 0.1;Because 1 is more than 0.1, then illustrate that judged result shows the priority level of the corresponding object of the second audio The priority level of object corresponding more than the first audio.
4th, obtain with object and the second audio owning application in the first audio owning application Object priority level height judged result.
Object in application program can refer to the contact person recorded in application program, or, application program can be played Video classification, or, the music categories that can play of application program etc..
The video classification that application program can be played includes:The video and/or the star of user's concern that user subscribes to are acted the leading role Video and/or ordinary video (ordinary video refers to the video performed of star that user does not subscribe to and paid close attention to without user) etc..
The music categories that application program can be played include:The music and/or broadcasting time that user's mark is liked are more than pre- If number of times music and/or common music (i.e. user it is unmarked like and broadcasting time be less than preset times music).
First audio owning application and the second audio owning application can be same application, or not Same application program.Because the object recorded in different application programs may be identical.
Assuming that the first audio owning application and the second audio owning application are same application, below with micro- Illustrated exemplified by letter.
For example, the priority level of contact person is set in wechat, if user's contact person's audio high with priority level Call, the low contact person of priority level sends information or voice-frequency telephony request and need not pointed out.
, then can be with assuming that the first audio owning application and the second audio owning application are different application programs Judge whether the corresponding contact person of the first audio is recorded in the second audio owning application, if so, then according to the second sound The priority level of the contact person recorded in frequency owning application is judged;Or, judge the corresponding contact person of the second audio Whether be recorded with the first audio owning application, if so, then according to the connection recorded in the first audio owning application It is that the priority level of people is judged.
" the priority level height of the corresponding object of first audio object corresponding with second audio is obtained above-mentioned In any implementation for four kinds of implementations that low judged result " is provided;If the priority of the corresponding object of the first audio Not Gao Yu the corresponding object of the second audio priority level, then can stop play the second audio, and play the first audio;Or, The first audio and the second audio are played simultaneously, as long as the high output request of priority level in a word is played.
Specifically, when the priority level of the corresponding object of first audio is greater than or equal to the corresponding object of the second audio During priority level, the judged result shows to determine to play first audio;By first audio and second audio Stereo process is carried out, mixed audio is obtained;Play the mixed audio.
Or, when the priority level of the corresponding object of first audio is higher than the corresponding object priority rank of the second audio When, the judged result shows to determine to play first audio;Play the first audio and stop playing the second audio.
In a preferred embodiment, when the judged result demonstrates the need for the output request for refusing first audio, Also include:
First audio is converted into non-audio information;
Point out electronic equipment described in user that there is the demand for exporting first audio in the way of the non-audio information.
Non-audio information can include at least following several:Vibrations, control respective color indicator lamp are bright, aobvious in informing Show with the demand for exporting first audio.
The embodiment of the present application additionally provides the electronic equipment for including virtual bench corresponding with audio frequency playing method, such as Fig. 2 Shown, the structure chart of the electronic equipment provided for the embodiment of the present application, the electronic equipment includes:
Determining module 21, for when the output for detecting the first audio is asked, it is determined that the second sound being currently played Frequently;
Acquisition module 22, is used to characterize the output request for whether refusing the first audio because of the second audio for obtaining Judged result;
When playing module 23, output request for demonstrating the need for refusing first audio when the judged result, after Continued broadcasting puts second audio and forbids playing first audio.
Optionally, acquisition module 22 includes:
First acquisition unit, for obtaining whether second audio belongs to application-specific and/or special audio class The judged result of type;Wherein, when second audio belongs to the application-specific and/or the special audio type, The judged result demonstrates the need for refusing the output request of first audio.
Optionally, acquisition module 22 includes:
Second acquisition unit, for obtaining the corresponding object of first audio object corresponding with second audio The judged result of priority level height;When the priority level of the corresponding object of first audio is less than second audio correspondence Object priority level when, the judged result demonstrates the need for refusing the output request of first audio.
Optionally, second acquisition unit includes:
First obtains subelement, for obtaining the second audio owning application with being applied belonging to first audio The judged result of the priority level height of program;
Or,
Second obtains subelement, for obtaining the affiliated audio types of the second audio and the affiliated audio of the first audio The judged result of the priority level height of type;
Or,
3rd obtain subelement, for based on the second audio owning application with being applied belonging to first audio First comparative result of the priority level height of program;And, the affiliated audio types of the second audio and first audio Second comparative result of the priority level height of affiliated audio types;Obtain the corresponding object of second audio and described first The judged result of the priority level height of the corresponding object of audio.
Optionally, described first obtain subelement can be specifically for:
Obtain the method for operation of the second audio owning application and the fortune of the first audio owning application Line mode, the method for operation is front stage operation or running background;
When the corresponding method of operation of second audio is front stage operation and the corresponding method of operation of first audio is During running background, determine that the priority level of the second audio owning application is more than the first audio owning application Priority level;
Optionally, described first obtain subelement can be specifically for:
From the corresponding priority level of each application program prestored, obtain apply journey belonging to first audio respectively Corresponding first priority level of sequence and corresponding second priority level of the second audio owning application;
Compare the height of first priority level and second priority level.
Optionally, the second acquisition unit includes:
4th obtains subelement, for obtaining and the object in the first audio owning application and second sound The judged result of the priority level height of object in frequency owning application.
Optionally, in addition to:
Playing module, for when the judged result shows the output request that need not refuse first audio, broadcasting Put first audio.
Optionally, when the judged result demonstrates the need for the output request for refusing first audio, in addition to:
Modular converter, for first audio to be converted into non-audio information;
Reminding module, described the is exported for pointing out electronic equipment described in user to have in the way of the non-audio information The demand of one audio.
The embodiment of the present application additionally provides the internal structure of a kind of electronic equipment, as shown in figure 3, being carried for the embodiment of the present application The cut-away view of the electronic equipment of confession, the electronic equipment can include:
Memory 31, for storage program;
Program can include program code, and described program code includes computer-managed instruction.
Memory 31 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile Memory), for example, at least one magnetic disk storage.
Audio resource 32, for playing audio;
Audio resource 32 includes but is not limited to loudspeaker and/or peripheral earphone.
Processor 33, for performing described program, described program specifically for:
When the output for detecting the first audio is asked, the second audio that the audio resource is currently played is determined;
Obtain second audio and whether meet and continue to play the first condition of second audio for characterizing needs Judged result;
When the judged result shows that second audio meets the first condition, the audio resource is controlled to continue Play second audio and forbid playing first audio by the way of audio.
Processor 33 is probably a central processor CPU, or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or be arranged to implement of the invention real Apply one or more integrated circuits of example.
Electronic equipment can also include communication interface 34 and communication bus 35, wherein, memory 31, audio resource 32, Processor 33 and communication interface 34 realize mutual communication by communication bus 35.
Optionally, processor please in the output whether execution acquisition refuses the first audio for characterizing because of the second audio During the judged result asked, specifically for:
Obtain the judged result whether second audio belongs to application-specific and/or special audio type;Wherein, When second audio belongs to the application-specific and/or the special audio type, the judged result shows to need Refuse the output request of first audio.
Optionally, processor please in the output whether execution acquisition refuses the first audio for characterizing because of the second audio During the judged result asked, specifically for:
The priority level height for obtaining the corresponding object of first audio object corresponding with second audio is sentenced Disconnected result;
When the priority level of the corresponding object of first audio is less than the priority of the corresponding object of second audio When other, the judged result demonstrates the need for refusing the output request of first audio.
Optionally, processor is performing the corresponding object of acquisition first audio object corresponding with second audio Priority level height judged result when, specifically for:
Obtain the priority level height of the second audio owning application and the first audio owning application Judged result;
Or,
Obtain the priority level height of the affiliated audio types of the second audio and the affiliated audio types of the first audio Judged result;
Or,
Priority level height based on the second audio owning application and the first audio owning application The first comparative result;And, the affiliated audio types of the second audio are preferential with the affiliated audio types of the first audio Second comparative result of rank height;Obtain the excellent of the corresponding object of second audio object corresponding with first audio The judged result of first rank height.
Optionally, processor is performing acquisition the second audio owning application with being applied belonging to first audio During the judged result of the priority level height of program, specifically for:
Obtain the method for operation of the second audio owning application and the fortune of the first audio owning application Line mode, the method for operation is front stage operation or running background;
When the corresponding method of operation of second audio is front stage operation and the corresponding method of operation of first audio is During running background, determine that the priority level of the second audio owning application is more than the first audio owning application Priority level;
Optionally, processor is performing acquisition the second audio owning application with being applied belonging to first audio During the judged result of the priority level height of program, specifically for:
The priority level for obtaining the second audio owning application and the first audio owning application The judged result of height includes:
From the corresponding priority level of each application program prestored, obtain apply journey belonging to first audio respectively Corresponding first priority level of sequence and corresponding second priority level of the second audio owning application;
Compare the height of first priority level and second priority level.
Optionally, processor is performing the corresponding object of acquisition first audio object corresponding with second audio Priority level height judged result when, specifically for:
In object and the second audio owning application in acquisition and the first audio owning application The judged result of the priority level height of object.
Optionally, processor is additionally operable to:
When the judged result shows the output request that need not refuse first audio, first sound is played Frequently.
Optionally, when the judged result demonstrates the need for the output request for refusing first audio, processor is also used In:
First audio is converted into non-audio information;
Point out electronic equipment described in user that there is the demand for exporting first audio in the way of the non-audio information.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there is other identical element in the process including the key element, method, article or equipment.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other Between the difference of embodiment, each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use the application. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or scope.Therefore, the application The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. a kind of audio frequency playing method, it is characterised in that including:
When the output for detecting the first audio is asked, it is determined that the second audio being currently played;
Obtain the judged result for the output request for whether refusing first audio because of second audio for characterizing;
When the judged result demonstrates the need for refusing the output request of first audio, continue to play second audio and Forbid playing first audio.
2. audio frequency playing method according to claim 1, it is characterised in that whether the acquisition is used to characterize because the second sound Frequently refusing the judged result of the output request of the first audio includes:
Obtain the judged result whether second audio belongs to application-specific and/or special audio type;Wherein, institute is worked as When stating the second audio and belonging to the application-specific and/or the special audio type, the judged result demonstrates the need for refusing The output request of exhausted first audio.
3. audio frequency playing method according to claim 1, it is characterised in that whether the acquisition is used to characterize because the second sound Frequently refusing the judged result of the output request of the first audio includes:
Obtain the judgement knot of the priority level height of the corresponding object of first audio object corresponding with second audio Really;
When the priority level of the corresponding object of first audio is less than the priority level of the corresponding object of second audio, The judged result demonstrates the need for refusing the output request of first audio.
4. audio frequency playing method according to claim 3, it is characterised in that the corresponding object of acquisition first audio The judged result of the priority level height of object corresponding with second audio includes:
Obtain sentencing for the second audio owning application and the priority level height of the first audio owning application Disconnected result;
Or,
Obtain sentencing for the affiliated audio types of the second audio and the priority level height of the affiliated audio types of the first audio Disconnected result;
Or,
The of priority level height based on the second audio owning application and the first audio owning application One comparative result;And, the priority level of the affiliated audio types of the second audio and the affiliated audio types of the first audio Second comparative result of height;Obtain the priority of the corresponding object of second audio object corresponding with first audio The judged result of other height.
5. audio frequency playing method according to claim 4, it is characterised in that
The priority level height for obtaining the second audio owning application and the first audio owning application Judged result include:
Obtain the method for operation of the second audio owning application and the operation side of the first audio owning application Formula, the method for operation is front stage operation or running background;
When the corresponding method of operation of second audio is front stage operation and the corresponding method of operation of first audio is backstage During operation, determine that the priority level of the second audio owning application is more than the excellent of the first audio owning application First rank;
Or,
The priority level height for obtaining the second audio owning application and the first audio owning application Judged result include:
From the corresponding priority level of each application program prestored, the first audio owning application pair is obtained respectively The first priority level and corresponding second priority level of the second audio owning application answered;
Compare the height of first priority level and second priority level.
6. audio frequency playing method according to claim 3, it is characterised in that the corresponding object of acquisition first audio The judged result of the priority level height of object corresponding with second audio includes:
Obtain and the object in the first audio owning application and the object in the second audio owning application Priority level height judged result.
7. audio frequency playing method according to claim 1, it is characterised in that also include:
When the judged result shows the output request that need not refuse first audio, first audio is played.
8. audio frequency playing method according to claim 1, it is characterised in that when the judged result, to demonstrate the need for refusal described During the output request of the first audio, in addition to:
First audio is converted into non-audio information;
Point out electronic equipment described in user that there is the demand for exporting first audio in the way of the non-audio information.
9. a kind of electronic equipment, it is characterised in that including:
Memory, for storage program;
Audio resource, for playing audio;
Processor, for performing described program, described program specifically for:
When the output for detecting the first audio is asked, the second audio that the audio resource is currently played is determined;
Obtain second audio and whether meet and continue to play the judgement of the first condition of second audio for characterizing needs As a result;
When the judged result shows that second audio meets the first condition, the audio resource is controlled to continue to play Second audio and forbid playing first audio by the way of audio.
10. a kind of electronic equipment, it is characterised in that including:
Determining module, for when the output for detecting the first audio is asked, it is determined that the second audio being currently played;
Acquisition module, for obtaining the judgement knot for being used for characterizing the output request for whether refusing the first audio because of the second audio Really;
Playing module, for when the judged result demonstrates the need for the output request for refusing first audio, continuing to play Second audio and forbid playing first audio.
CN201710524930.0A 2017-06-30 2017-06-30 Audio frequency playing method and electronic equipment Pending CN107229448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524930.0A CN107229448A (en) 2017-06-30 2017-06-30 Audio frequency playing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524930.0A CN107229448A (en) 2017-06-30 2017-06-30 Audio frequency playing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN107229448A true CN107229448A (en) 2017-10-03

Family

ID=59936569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524930.0A Pending CN107229448A (en) 2017-06-30 2017-06-30 Audio frequency playing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107229448A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743178A (en) * 2017-11-29 2018-02-27 维沃移动通信有限公司 A kind of message player method and mobile terminal
CN107809540A (en) * 2017-11-09 2018-03-16 深圳天珑无线科技有限公司 Mode switching method, mode switching system and user terminal
CN107908929A (en) * 2017-11-24 2018-04-13 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus of playing audio-fequency data
CN109529336A (en) * 2018-11-20 2019-03-29 网易(杭州)网络有限公司 Control method, control device, storage medium and the processor that sound event plays
CN110198264A (en) * 2019-05-31 2019-09-03 联想(北京)有限公司 Processing method, device and electronic equipment
CN111078186A (en) * 2019-12-31 2020-04-28 维沃移动通信有限公司 Playing method and electronic equipment
WO2020113390A1 (en) * 2018-12-03 2020-06-11 深圳市欢太科技有限公司 Alarm clock playback method and apparatus, and electronic device
CN111694536A (en) * 2020-05-27 2020-09-22 维沃移动通信有限公司 Audio control method, electronic device and computer-readable storage medium
CN112202961A (en) * 2020-10-29 2021-01-08 歌尔科技有限公司 Audio channel switching method and device and computer readable storage medium
CN112805988A (en) * 2018-11-16 2021-05-14 深圳市欢太科技有限公司 Call control method and device, computer readable storage medium and electronic equipment
CN113050910A (en) * 2019-12-26 2021-06-29 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
CN113821312A (en) * 2020-06-19 2021-12-21 北京字节跳动网络技术有限公司 Player management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600015A (en) * 2008-06-06 2009-12-09 深圳富泰宏精密工业有限公司 Audio playing management system and method
US20140123015A1 (en) * 2012-10-31 2014-05-01 Sony Corporation Information processing system, information processing apparatus, and storage medium
CN105228116A (en) * 2015-10-27 2016-01-06 努比亚技术有限公司 A kind of intelligent prompt device, method and mobile terminal distinguishing information priorities
CN103854682B (en) * 2012-12-06 2017-03-01 联想(北京)有限公司 A kind of method and device controlling audio file to play

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600015A (en) * 2008-06-06 2009-12-09 深圳富泰宏精密工业有限公司 Audio playing management system and method
US20140123015A1 (en) * 2012-10-31 2014-05-01 Sony Corporation Information processing system, information processing apparatus, and storage medium
CN103854682B (en) * 2012-12-06 2017-03-01 联想(北京)有限公司 A kind of method and device controlling audio file to play
CN105228116A (en) * 2015-10-27 2016-01-06 努比亚技术有限公司 A kind of intelligent prompt device, method and mobile terminal distinguishing information priorities

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809540A (en) * 2017-11-09 2018-03-16 深圳天珑无线科技有限公司 Mode switching method, mode switching system and user terminal
CN107908929A (en) * 2017-11-24 2018-04-13 腾讯音乐娱乐科技(深圳)有限公司 The method and apparatus of playing audio-fequency data
US11200022B2 (en) 2017-11-24 2021-12-14 Tencent Music Entertainment Technology [Shenzhen] Co., Ltd. Method and apparatus of playing audio data
CN107743178A (en) * 2017-11-29 2018-02-27 维沃移动通信有限公司 A kind of message player method and mobile terminal
CN107743178B (en) * 2017-11-29 2020-02-04 维沃移动通信有限公司 Message playing method and mobile terminal
CN112805988B (en) * 2018-11-16 2022-04-12 深圳市欢太科技有限公司 Call control method and device, computer readable storage medium and electronic equipment
CN112805988A (en) * 2018-11-16 2021-05-14 深圳市欢太科技有限公司 Call control method and device, computer readable storage medium and electronic equipment
CN109529336A (en) * 2018-11-20 2019-03-29 网易(杭州)网络有限公司 Control method, control device, storage medium and the processor that sound event plays
CN113170014B (en) * 2018-12-03 2022-07-26 深圳市欢太科技有限公司 Alarm clock playing method and device and electronic equipment
WO2020113390A1 (en) * 2018-12-03 2020-06-11 深圳市欢太科技有限公司 Alarm clock playback method and apparatus, and electronic device
CN113170014A (en) * 2018-12-03 2021-07-23 深圳市欢太科技有限公司 Alarm clock playing method and device and electronic equipment
CN110198264A (en) * 2019-05-31 2019-09-03 联想(北京)有限公司 Processing method, device and electronic equipment
CN113050910B (en) * 2019-12-26 2023-12-05 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
CN113050910A (en) * 2019-12-26 2021-06-29 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
WO2021136141A1 (en) * 2019-12-31 2021-07-08 维沃移动通信有限公司 Playback method and electronic device
CN111078186A (en) * 2019-12-31 2020-04-28 维沃移动通信有限公司 Playing method and electronic equipment
CN111694536A (en) * 2020-05-27 2020-09-22 维沃移动通信有限公司 Audio control method, electronic device and computer-readable storage medium
CN113821312A (en) * 2020-06-19 2021-12-21 北京字节跳动网络技术有限公司 Player management method and device
CN112202961A (en) * 2020-10-29 2021-01-08 歌尔科技有限公司 Audio channel switching method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107229448A (en) Audio frequency playing method and electronic equipment
CN104571498B (en) A kind of application program launching method
US20120246229A1 (en) Notifying Participants that a Conference is Starting
CN104394430B (en) A kind of resource transmission method and its system, service equipment based on interactive application
CN110164437B (en) Voice recognition method and terminal for instant messaging
CN108733342A (en) volume adjusting method, mobile terminal and computer readable storage medium
WO2015067081A1 (en) Method and device for processing incoming call prompt of mobile terminal, and storage medium
KR20140060995A (en) Rejection message providing method based on a situation and electronic device supporting the same
CN101984404B (en) Method and device for controlling parallel running of application programs and terminal having device
CN110309005A (en) A kind of funcall method, apparatus, terminal device and storage medium
CN105635474A (en) Call reminding method and mobile terminal
CN107436748A (en) Handle method, apparatus, terminal device and the computer-readable recording medium of third-party application message
CN103605429A (en) Processing method for response key operation and mobile terminal
CN107864297A (en) Group's adding method, device, terminal and storage medium
CN104079542B (en) A kind of information processing method and device management server
WO2024012357A1 (en) Vibration reminding method, related device, and computer storage medium
CN113760145A (en) Interaction method, interaction device, electronic equipment and storage medium
CN103324459A (en) Method and system for implementing USB (universal serial bus) headset devices
CN105262881A (en) Communication control method and electronic equipment
CN103856596A (en) Conversation method, device and terminal
CN104301486A (en) Electronic equipment and conversation control method
CN112286481A (en) Audio output method and electronic equipment
WO2020063451A1 (en) Call voicemail messaging method, terminal, and device having storage function
CN105357388B (en) A kind of method and electronic equipment of information recommendation
US9904262B2 (en) Systems and methods for dynamic operation of electronic devices based on detection of one or more events

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination