CN106303816B - Information control method and electronic equipment - Google Patents

Information control method and electronic equipment Download PDF

Info

Publication number
CN106303816B
CN106303816B CN201510272398.9A CN201510272398A CN106303816B CN 106303816 B CN106303816 B CN 106303816B CN 201510272398 A CN201510272398 A CN 201510272398A CN 106303816 B CN106303816 B CN 106303816B
Authority
CN
China
Prior art keywords
volume
application program
value
application
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510272398.9A
Other languages
Chinese (zh)
Other versions
CN106303816A (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 CN201510272398.9A priority Critical patent/CN106303816B/en
Publication of CN106303816A publication Critical patent/CN106303816A/en
Application granted granted Critical
Publication of CN106303816B publication Critical patent/CN106303816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an information control method and electronic equipment, wherein the method comprises the following steps: detecting an application program of the current output audio of the electronic equipment; when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2; and controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment.

Description

Information control method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an information control method and an electronic device.
Background
With the continuous development of science and technology, electronic equipment is also rapidly developed and becomes a necessity of daily life of people. In order to meet the use requirements of users, the functions of electronic equipment are more and more abundant, and people can use the electronic equipment to carry out video calls, listen to music or play videos and the like.
In the prior art, when a user is playing music by using a music player of an electronic device, a QQ friend sends a request for a voice call, and when the user accepts the request for the call, the electronic device outputs the sound of the music and the voice of the QQ friend at the same time; or when the user is playing music by using the electronic equipment, the user wants to watch the movie by using the video player, when the video player is opened, the electronic equipment outputs the sound of the music and the sound of the movie at the same time, and if the user only wants to hear the sound of the movie, the user needs to manually turn off or pause the music player.
In the process of implementing the technical scheme in the embodiment of the present application, the inventor of the present application finds that the following technical problems exist in the prior art:
because the electronic device in the prior art can output a plurality of audio signals simultaneously, and thus, when the output volumes of the audio signals are the same, the audio signals can interfere with each other, so that the electronic device in the prior art has the technical problem that the relative volumes among a plurality of audio output software cannot be automatically adjusted.
Furthermore, because the electronic device in the prior art has a technical problem that the relative volume between the plurality of audio output software cannot be automatically adjusted, in this way, the user must manually operate the electronic device to achieve the purpose of reducing the audio signal interference, and therefore, the electronic device in the prior art has the technical problems of complex operation and inconvenient use.
Because the electronic equipment in the prior art has the technical problems of complex operation and inconvenient use, the use experience of a user is poor, and the electronic equipment in the prior art has the problem of poor user experience.
Disclosure of Invention
The embodiment of the invention provides an information control method and electronic equipment, which are used for solving the technical problem that the electronic equipment in the prior art cannot automatically adjust the relative volume among a plurality of audio output software and realizing the technical effect of automatically adjusting the relative volume among the plurality of audio output software.
An aspect of an embodiment of the present application provides an information control method applied to an electronic device, including:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
and controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment.
Optionally, the determining a first application with a highest priority level among the N applications specifically includes:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
Optionally, the determining the priority levels of the N applications includes:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
Optionally, when M is equal to 1, the determining, from the N applications, that the application with the highest priority level is the first application specifically includes: and determining the application program with the first priority as the first application program.
Optionally, when M is greater than 1, the determining, from the N applications, that the application with the highest priority level is the first application specifically includes:
determining a first top-level application program from the M application programs;
determining that the first top-level application is the first application.
Optionally, when M is equal to 0, the determining, from the N applications, an application with a highest priority level as the first application specifically includes:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
when K is not 0, determining that a first top-level application program in the K foreground application programs is the first application program.
Optionally, when M is equal to 0, the determining, from the N applications, an application with a highest priority level as the first application specifically includes:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
and when K is 0, determining the last running application program in the N-M application programs as the first application program.
Optionally, the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether the volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program of N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to the first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than the volume output value of any application program;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
Optionally, the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the currently output audio of the first application program to be a first volume output value, wherein a first volume output difference value between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than the volume output value of any application program.
Another aspect of the embodiments of the present application provides an electronic device, including:
the first detection unit is used for detecting an application program of the current output audio of the electronic equipment;
the audio processing device comprises a first determining unit, a second determining unit and a processing unit, wherein the first determining unit is used for determining a first application program with the highest priority level in N application programs when N application programs which output audio currently are detected, and N is an integer which is more than or equal to 2;
the first control unit is used for controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is larger than the volume output values of other output audio of the electronic equipment.
Another aspect of the embodiments of the present application provides an electronic device, including:
a housing;
an audio output unit disposed in the housing;
the processor is arranged in the shell and used for detecting the application program of the current output audio of the electronic equipment, and when N application programs of the current output audio are detected, the first application program with the highest priority level in the N application programs is determined, wherein N is an integer greater than or equal to 2, the volume of the current output audio of the first application program is controlled to be a first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic equipment.
Optionally, the processor is specifically configured to:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
Optionally, the processor is specifically configured to:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
Optionally, when M is equal to 1, the processor is specifically configured to: and determining the application program with the first priority as the first application program.
Optionally, when M is greater than 1, the processor is specifically configured to:
determining a first top-level application program from the M application programs;
determining that the first top-level application is the first application.
Optionally, when M is equal to 0, the processor is specifically configured to:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
when K is not 0, determining that a first top-level application program in the K foreground application programs is the first application program.
Optionally, when M is equal to 0, the processor is specifically configured to:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
and when K is 0, determining the last running application program in the N-M application programs as the first application program.
Optionally, the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether the volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program of N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to the first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than the volume output value of any application program;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
Optionally, the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the currently output audio of the first application program to be a first volume output value, wherein a first volume output difference value between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than the volume output value of any application program.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
firstly, according to the technical scheme in the embodiment of the application, an application program for detecting the current output audio of the electronic equipment is adopted; when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2; the technical means for controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is greater than the volume output values of other output audio of the electronic device, so that when a plurality of audio needs to be output in the electronic device, the electronic device automatically controls the application program with the highest priority level in the plurality of application programs to output the maximum volume and the application program with the lower relative priority level to output the small or mute volume by judging the priority levels of the plurality of audio output application programs, thereby effectively solving the technical problem that the electronic device in the prior art cannot automatically adjust the relative volume among the plurality of audio output software, and realizing the technical effect of automatically adjusting the relative volume among the plurality of audio output software.
Second, because the technical solution in this embodiment of the application adopts the technical means of controlling the volume of the currently output audio of the first application to be the first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic device, in this way, the volume of the application with the highest priority level is the largest, and the volume of the application with the relatively lower priority level is smaller or muted, at this time, the user can clearly hear the audio output by the application with the high priority level without being interfered by the audio output by other applications, and it is achieved that when there are a plurality of audio outputs, the audio output by the application with the high priority level is not interfered by the audio of other applications.
Thirdly, according to the technical scheme in the embodiment of the application, the volume of the current output audio of the first application program is obtained as a first volume value; and judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs and the first volume output difference value of the first volume value is greater than or equal to the first threshold value, so that the electronic equipment automatically selects a volume control scheme suitable for the current volume output condition based on the relationship between the current volume value of the first application program and the volume output values of other application programs, is suitable for various actual conditions of the electronic equipment, and achieves the technical effect of flexibly adjusting the volume of each audio output program according to the actual use condition of the electronic equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a flowchart of an information control method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a specific implementation manner of step S102 in the first embodiment of the present application;
fig. 3 is a flowchart illustrating an implementation manner of step S1021 in an embodiment of the present application;
fig. 4 is a flowchart of a second specific implementation manner of step S1022 in the first embodiment of the present application;
fig. 5 is a flowchart of a third specific implementation manner of step S1022 in the first embodiment of the present application;
fig. 6 is a flowchart of a first specific implementation manner of step S103 in the first embodiment of the present application;
fig. 7 is a flowchart of a second specific implementation manner of step S103 in the first embodiment of the present application;
fig. 8 is a flowchart of a third specific implementation manner of step S103 in the first embodiment of the present application;
fig. 9 is a flowchart of a fourth specific implementation manner of step S103 in the first embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device provided in the second embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The embodiment of the invention provides an information control method and electronic equipment, which are used for solving the technical problem that the electronic equipment in the prior art cannot automatically adjust the relative volume among a plurality of audio output software and realizing the technical effect of automatically adjusting the relative volume among the plurality of audio output software.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
an information control method is applied to an electronic device and comprises the following steps:
when N audios need to be output through a first audio output unit of the electronic equipment, N application programs for outputting the N audios are obtained, wherein N is an integer greater than or equal to 2;
determining N application priority levels corresponding to the N applications;
determining a first application with a highest priority level from the N applications based on the N application priority levels;
and controlling a first application program volume output value corresponding to the first application program to be a first volume output value, wherein a first volume output difference value between the first volume output value and any application program volume output value corresponding to any application program in N-1 application programs except the first application program in the N application programs is greater than or equal to a first threshold value, and the first volume output value is greater than the any application program volume output value.
In the above technical solution, a technical means is adopted that when N audio frequencies in the electronic device need to be output through a first audio output unit of the electronic device, N application programs for outputting the N audio frequencies are obtained, N application program priority levels corresponding to the N application programs are determined, a first application program with the highest priority level is determined from the N application programs based on the N application program priority levels, a first application program volume output value corresponding to the first application program is controlled to be a first volume output value, wherein a first volume output difference between the first volume output value and any application program volume output value corresponding to any one of N-1 application programs except the first application program in the N application programs is greater than or equal to a first threshold, and the first volume output value is greater than any application program volume output value, therefore, when a plurality of audios need to be output in the electronic equipment, the electronic equipment automatically controls the application program with the highest priority level in the plurality of application programs to output the largest volume and the application program with the lower relative priority level to output smaller or mute volume by judging the priority levels of the plurality of application programs for outputting the audios, so that the technical problem that the electronic equipment in the prior art cannot automatically adjust the relative volume among a plurality of audio output software is effectively solved, and the technical effect of automatically adjusting the relative volume among the plurality of audio output software is realized.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the technical solutions of the present invention. All other embodiments obtained by a person skilled in the art without any inventive work based on the embodiments described in the present application are within the scope of the protection of the technical solution of the present invention.
Example one
Please refer to fig. 1, which is a flowchart illustrating an information control method applied to an electronic device according to an embodiment of the present application, including:
s101: detecting an application program of the current output audio of the electronic equipment;
s102: when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
s103: and controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment.
In a specific implementation process, the electronic device may be a desktop computer, a notebook computer, a tablet computer, or the like, or may be other electronic devices having an audio output unit; the audio output unit may be a speaker of the electronic device, or may be a sound box or an earphone connected to an external port of the electronic device, which is not necessarily exemplified herein. In the embodiment of the present application, the information control method in the embodiment of the present application will be described in detail by taking an example in which the electronic device is a notebook computer and the audio output unit is a speaker of the notebook computer.
When the technical scheme in the application is adopted for information control, step S101 is executed first, that is: an application of the current output audio of the electronic device is detected.
In a specific implementation process, taking the electronic device as a notebook computer and the audio output unit as a speaker of the notebook computer as an example, when a user wants to listen to music and watch video with the notebook computer, the user receives a voice call request sent by a friend, that is, the notebook computer outputs: and when the music, the video and the voice are communicated, the central processing unit of the notebook computer respectively obtains application programs which are outputting the audio, such as a music player of a cool dog, a watching player of a thunder and Y voice.
After the step S101 is completed, the method in the embodiment of the present application performs step S102, that is: when N current application programs outputting audio are detected, a first application program with the highest priority level in the N application programs is determined, wherein N is an integer greater than or equal to 2.
In the embodiment of the present application, please refer to fig. 2, and the specific implementation manner of step S102 is:
s1021: determining N application priority levels for the N applications;
s1022: and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
In the embodiment of the present application, please refer to fig. 3, the specific implementation manner of step S1021 is:
s10211: acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
s10212: sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
s10213: determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
s10214: determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
In the specific implementation process, following the above example, after the central processing unit of the notebook computer respectively obtains the application programs for outputting the audio, the central processing unit of the notebook computer determines the priority levels of the 3 sounding application programs according to the categories of the application programs. In the embodiment of the application, the sounding application is mainly divided into a conversation type and a normal type, and a user of the notebook computer can preset an application sequence list of the conversation type, for example, a QQ voice, a YY voice and a nailed free phone are set in the conversation type application sequence list, so that after the user adds an application program, a central processing unit of the notebook computer can automatically judge whether the application program has the functions of voice and video, and if so, the application program is automatically added in the conversation type application sequence list. When the priority level of the application program needs to be judged by the notebook computer, calling a conversation type application program list set by a user, comparing the name of the sounding application program with the conversation type application program list name list, judging whether a dog music player, a rapid watching player and YY voice are in the conversation type application program list, wherein the 3 application programs correspond to 3 judgment results, and when the judgment results are yes, the application program is indicated to be the conversation type application program; if the judgment result is negative, the application program is indicated to be a common application program, if the judgment result is positive, the application program is determined to be a first priority application program, the rest application programs are automatically classified as second priority application programs, the above example is continued, the application programs which are currently speaking are a cool dog music player, a thunder watching player and a YY voice, and the judgment result corresponding to only the YY voice is positive, the YY voice is indicated to be a conversation application program, at this time, the YY voice is set as the first priority application program, and the cool dog music player and the thunder watching player are set as the second priority application programs.
After the step S1021 is completed, the method in the embodiment of the present application performs step S1022, that is: and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
The steps for determining the first application program are different due to different numbers of application programs of call types in the current sounding application program, and the method mainly includes the following three modes:
the first mode is as follows:
when M is equal to 1, the determining, from the N applications, that the application with the highest priority level is the first application specifically includes: and determining the application program with the first priority as the first application program.
In the specific implementation process, following the above example, when the notebook computer determines that only one of the current sound-producing applications is the first priority application of the communication class, if the central processing unit of the notebook computer determines that the YY speech is the first priority application, and the cool dog music player and the torpedo watch player are the second priority application, at this time, it is determined that the first priority application is the first application, and if the YY speech is determined to be the first application.
The second mode is as follows:
referring to fig. 4, when M is greater than 1, the determining, from the N applications, the application with the highest priority level as the first application specifically includes:
s102221: determining a first top-level application program from the M application programs;
s102222: determining that the first top-level application is the first application.
In a specific implementation process, when a current sounding application in a notebook computer includes at least one communication application, for example, the current sounding application in the notebook computer includes not only YY speech but also QQ speech, at this time, a central processing unit of the notebook computer needs to determine an application running in a foreground window from the YY speech and the QQ speech according to a current use situation of a user, for example, when the user receives a call request sent by the YY speech when using the QQ speech, the user opens the YY speech and minimizes the QQ speech, at this time, the application running in the foreground window is the YY speech, that is, the YY speech is determined as a first application.
The third mode is as follows:
referring to fig. 5, when M is equal to 0, the determining, based on the priority levels of the N applications, a first application with a highest priority level from the N applications specifically includes:
s102231: k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
s102232: when K is not 0, determining that a first top-level application program in the K foreground application programs is the first application program.
S102233: and when K is 0, determining the last running application program in the N-M application programs as the first application program.
In a specific implementation process, when the current sound-producing application program of the notebook computer does not include any application program in the communication application program list, if the current sound-producing application program of the notebook computer only includes a cool dog music player and a fast thunder watching player, and the two application programs are both displayed on the desktop of the notebook computer in a small window mode, a window part of the fast thunder watching player covers the window of the cool dog music player, at this time, a central processing unit of the notebook computer determines the application program corresponding to a top layer display window from the two application programs, namely, the fast thunder watching player, and then determines that the fast thunder watching player is the first application program.
When the current sounding application program of the notebook computer only comprises the cool dog music player and the fast dog watching player, and the two application programs are in the minimized mode and run in the background of the notebook computer, at this time, the central processing unit of the notebook computer needs to determine the application program which is operated by the user for the cool dog music player and the fast dog watching player at the last time according to the use condition of the user, for example, the user firstly minimizes the fast dog watching player and then minimizes the cool dog music player, at this time, the notebook computer determines that the application program which is operated at the last time is the cool dog music player, and then determines the cool dog music player as the first application program.
After the step S102 is completed, the method in the embodiment of the present application performs step S103, that is: and controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment.
In this embodiment of the present application, because the current volume values of the first application are different, the control method for the first volume output value corresponding to the first application is also different, and specifically there are four following ways:
the first way, please refer to fig. 6:
s10311: obtaining the volume of the current output audio of the first application program as a first volume value;
s10312: judging whether the volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
s10313: and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
In the specific implementation process, taking the application program currently speaking as the cool dog music player, the fast thunder watching player and the YY voice, and taking the determined first application program as the YY voice as an example, at this time, the central processing unit of the notebook computer first obtains the current volume output value of the YY voice, and if the maximum volume value of the notebook computer is 200 db, and the current volume value of the YY voice is 50% of the maximum volume value of the notebook computer, that is, 100 db, at this time, the central processing unit of the notebook computer judges whether the current volume values of the cool dog music player and the fast thunder watching player are both 0 db, the volume output value of the YY voice is controlled to be unchanged, that is, 100 db.
In a second manner, please refer to fig. 7:
s10321: obtaining the volume of the current output audio of the first application program as a first volume value;
s10322: judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program of N-1 application programs except the first application program in the N application programs and the current volume output value is larger than or equal to the first threshold value or not, and obtaining a first judgment result, wherein the current volume output value is larger than the volume output value of any application program;
s10323: and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
In the specific implementation process, taking the application program currently speaking as a hot dog music player, a fast thunder watching player and a YY voice, and taking the determined first application program as the YY voice as an example, at this time, the CPU of the notebook computer first obtains the current volume output values of the 3 application programs, if the maximum volume value of the notebook computer is 200 dB, the current volume value of YY voice is 50% of the maximum volume value of the notebook computer, i.e., 100 db, the current volume value of the cool dog music player is 21% of the maximum volume value of the notebook computer, namely 42 decibels, the current volume value of the player viewed by the thunder is 22 percent of the maximum volume value of the notebook computer, i.e., 44 db, the user may preset a first threshold, e.g., 50 db, indicating that when the volume difference is greater than or equal to the first threshold, the audio signal played by the first application program is not interfered by the audio signals output by other sound-emitting application programs. Then, the central processing unit of the notebook computer judges that the difference value between the current volume value of the YY voice and the current volume value of the music player of the cool dog is 100-42 which is 58 decibels and 50 decibels; the difference value between the current volume value of YY voice and the current volume value of the rapid thunder watching player is 100-44 ═ 56 decibels >50 decibels, the difference value between the current volume value of other sound production application programs in the notebook computer and the volume value of YY voice is larger than 50 decibels, at the moment, the central processing unit of the notebook computer controls the volume value of YY voice to be kept unchanged, and the volumes of the cool dog music player and the rapid thunder watching player can be kept unchanged or can be muted.
In a third way, please refer to fig. 8:
s10331: obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
s10332: judging whether a first volume difference value between the maximum volume output value and the current volume output value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the current volume output value is smaller than the maximum volume output value;
s10333: and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
In the specific implementation process, taking the application program currently speaking as a hot dog music player, a fast thunder watching player, and a YY voice, and taking the determined first application program as the YY voice as an example, at this time, the cpu of the notebook computer first obtains the current volume output value of the YY voice and the maximum volume value of the notebook computer, and if the maximum volume value of the notebook computer is 200 db, the current volume value of the YY voice is 50% of the maximum volume of the notebook computer, that is, 100 db. The user may preset a threshold, such as 80 db, to ensure that the audio signal output by the first application is not interfered by the audio signals output by other sound-emitting applications after the volume value of the first application is increased by the threshold. Then, based on the threshold, the cpu of the notebook computer determines that the difference between the current volume value of the YY voice and the maximum volume value of the notebook computer is 100 db >80 db, which indicates that the volume value of the YY voice can be adjusted up to 80 db, and at this time, the cpu controls the volume output value of the YY voice to be adjusted up to 100+80 db, which is 180 db, so that the volumes of the music player for the hot dog and the watching player for the fast thunder can be kept unchanged or muted.
In a fourth way, please refer to fig. 9:
s10341: obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
s10342: judging whether a first volume difference value between the maximum volume output value and the current volume output value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the current volume output value is smaller than the maximum volume output value;
s10343: and when the second judgment result is negative, controlling the volume of the currently output audio of the first application program to be a first volume output value, wherein a first volume output difference value between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than the volume output value of any application program.
In the specific implementation process, taking the application program currently speaking as a hot dog music player, a fast thunder watching player, and a YY voice, and taking the determined first application program as the YY voice as an example, at this time, the cpu of the notebook computer first obtains the current volume output value of the YY voice and the maximum volume value of the notebook computer, and if the maximum volume value of the notebook computer is 200 db, the current volume value of the YY voice is 80% of the maximum volume of the notebook computer, that is, 160 db. The user may preset a threshold, such as 80 db, to ensure that the audio signal output by the first application is not interfered by the audio signals output by other sound-emitting applications after the volume value of the first application is increased by the threshold. Then, the central processing unit of the notebook computer judges that the difference between the current volume value of the YY voice and the maximum volume value of the notebook computer is 40 db <80 db based on the threshold, which indicates that the volume value of the YY voice cannot be adjusted up by 80 db, at this time, the central processing unit of the notebook computer obtains that the current volume value of the dog music player is 50% of the maximum volume value of the notebook computer, namely 100 db, the current volume value of the rapid watching player is 52% of the maximum volume value of the notebook computer, namely 104 db, and judges that the difference between the current volume value of the dog music player and the current volume value of the YY voice is 160+ 100 db <80 db; the difference between the volume output value of the quick watching player and the current volume value of YY voice is 160-104-56 dB <80 dB, at this time, the CPU of the notebook computer can control the volume output value of YY voice to be up-regulated to 160+ 10-170 dB, the volume output value of the quick dog music player is 100-10-90 dB, and the volume output value of the quick thunder watching player is 104-14-90 dB, so that the difference between the volume output values of YY voice and the music player of the cool dog and the quick thunder watching player is more than or equal to 80 dB. The mode of directly reducing the volume output values of the cool dog music player and the rapid lightning watching player to 80 decibels can also be adopted, and the cool dog music player and the rapid lightning watching player can also be muted.
In the specific implementation process, following the above example, after the volume value of the dog music player is decreased from 100 db to 80 db and the volume output value of the fast thunder watching player is decreased from 104 db to 80 db, when the YY voice call is ended, the notebook computer can automatically recover the volume value of the dog music player to 100 db and the volume output value of the fast thunder watching player to 104 db, so as to meet the requirements of the user for listening to music and watching video.
Example two
Based on the same inventive concept as that of the first embodiment of the present application, a second embodiment of the present application provides an electronic device, please refer to fig. 10, which includes:
a first detection unit 101, configured to detect an application of a currently output audio of the electronic device;
a first determining unit 102, configured to determine, when N current applications that output audio are detected, a first application with a highest priority level among the N applications, where N is an integer greater than or equal to 2;
the first control unit 103 is configured to control a volume of a currently output audio of the first application program to be a first volume output value, where the first volume output value is greater than volume output values of other output audios of the electronic device.
In the second embodiment of the present application, the first determining unit 102 specifically includes:
a first determining module for determining N application priority levels of the N applications;
a second determining module, configured to determine, based on the priority levels of the N applications, an application with a highest priority level from the N applications as the first application.
In the second embodiment of the present application, the first determining module specifically includes:
the first obtaining submodule is used for obtaining a preset call type application program name list and N pieces of application program name information corresponding to the N pieces of application programs;
the first judgment submodule is used for sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset communication type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
a first determining submodule, configured to determine that the N determination results include M determination results that are yes and N-M determination results that are no, where M is an integer greater than or equal to 0 and less than or equal to N;
a second determining submodule, configured to determine that priorities of M application programs of the N application programs corresponding to the M determination results are first priorities, and priorities of N-M application programs, other than the M application programs, of the N application programs corresponding to the N-M determination results are second priorities, where the first priorities are higher than the second priorities.
In the second embodiment of the present application, the second determining module has multiple implementation manners, and the following three manners are taken as examples:
the first mode is as follows:
when M is equal to 1, the second determining module specifically is: and the third determining submodule is used for determining the application program with the priority level being the first priority level as the first application program.
The second mode is as follows:
when M is greater than 1, the second determining module specifically includes:
a fourth determining submodule, configured to determine a first top-level application program from the M application programs;
a fifth determining submodule, configured to determine that the first top-level application is the first application.
The third mode is as follows:
when M is equal to 0, the second determining module specifically includes:
a sixth determining submodule, configured to determine, from the N-M applications, K foreground applications having a display window at the current time, where K is an integer greater than or equal to 0 and less than or equal to N;
a seventh determining sub-module, configured to determine that a first top-level application program of the K foreground application programs is the first application program when K is not 0.
An eighth determining submodule, configured to determine, when K is 0, that a last running application program of the N-M application programs is the first application program.
In the second embodiment of the present application, there are various specific implementations of the first control unit 103, and the following four ways are taken as examples:
the first mode is as follows:
the first acquisition module is used for acquiring the volume of the current output audio of the first application program as a first volume value;
the first judgment module is used for judging whether any application program volume output value corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not to obtain a first judgment result;
and the first control module is used for controlling the volume of the current output audio of the first application program to be the first volume value when the first judgment result is yes, wherein the first volume value is the first volume output value.
The second mode is as follows:
the second acquisition module is used for acquiring the volume of the current output audio of the first application program as a first volume value;
a second judging module, configured to judge whether a first volume output difference between a volume output value of any application program corresponding to any application program of N-1 application programs of the N application programs, except the first application program, and the current volume output value is greater than or equal to the first threshold, and obtain a first judgment result, where the current volume output value is greater than the volume output value of the any application program;
and the second control module is used for controlling the volume of the current output audio of the first application program to be the first volume value when the first judgment result is yes, wherein the first volume value is the first volume output value.
The third mode is as follows:
the third obtaining module is used for obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
a third determining module, configured to determine whether a first volume difference between the maximum volume output value and the current volume output value is greater than or equal to the first threshold, and obtain a second determination result, where the current volume output value is smaller than the maximum volume output value;
and a third control module, configured to control, when the second determination result is yes, a volume of a currently output audio of the first application to be a sum of the first volume value and the first threshold, where the sum of the first volume value and the first threshold is the first volume output value.
The fourth mode is that:
the fourth obtaining module is used for obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
a fourth determining module, configured to determine whether a first volume difference between the maximum volume output value and the current volume output value is greater than or equal to the first threshold, and obtain a second determination result, where the current volume output value is smaller than the maximum volume output value;
and a fourth control module, configured to control, when the second determination result is negative, a volume of a currently output audio of the first application program to be a first volume output value, where a first volume output difference between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold, where the first volume output value is greater than the volume output value of any application program.
EXAMPLE III
Based on the same inventive concept as the first embodiment of the present application, a third embodiment of the present application provides an electronic device, please refer to fig. 11, including:
a housing 10;
an audio output unit 20 disposed in the case 10;
and the processor 30 is arranged in the housing 10 and is configured to detect an application program of a currently output audio of the electronic device, and when N application programs of the currently output audio are detected, determine a first application program with a highest priority level among the N application programs, where N is an integer greater than or equal to 2, control a volume of the currently output audio of the first application program to be a first volume output value, and the first volume output value is greater than volume output values of other output audio of the electronic device.
In the third embodiment of the present application, the processor 30 is specifically configured to:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
In the third embodiment of the present application, the processor 30 is specifically configured to:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
In the third embodiment of the present application, when M is equal to 1, the processor 30 is specifically configured to: and determining the application program with the first priority as the first application program.
In the third embodiment of the present application, when M is greater than 1, the processor 30 is specifically configured to:
determining a first top-level application program from the M application programs;
determining that the first top-level application is the first application.
In the third embodiment of the present application, when M is equal to 0, the processor 30 is specifically configured to:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
when K is not 0, determining that a first top-level application program in the K foreground application programs is the first application program.
And when K is 0, determining the last running application program in the N-M application programs as the first application program.
In the third embodiment of the present application, the processor 30 is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether the volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
In the third embodiment of the present application, the processor 30 is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program of N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to the first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than the volume output value of any application program;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
In the third embodiment of the present application, the processor 30 is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
In the third embodiment of the present application, the processor 30 is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the currently output audio of the first application program to be a first volume output value, wherein a first volume output difference value between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than the volume output value of any application program.
Through one or more technical solutions in the embodiments of the present application, one or more of the following technical effects can be achieved:
firstly, according to the technical scheme in the embodiment of the application, an application program for detecting the current output audio of the electronic equipment is adopted; when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2; the technical means for controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is greater than the volume output values of other output audio of the electronic device, so that when a plurality of audio needs to be output in the electronic device, the electronic device automatically controls the application program with the highest priority level in the plurality of application programs to output the maximum volume and the application program with the lower relative priority level to output the small or mute volume by judging the priority levels of the plurality of audio output application programs, thereby effectively solving the technical problem that the electronic device in the prior art cannot automatically adjust the relative volume among the plurality of audio output software, and realizing the technical effect of automatically adjusting the relative volume among the plurality of audio output software.
Second, because the technical solution in this embodiment of the application adopts the technical means of controlling the volume of the currently output audio of the first application to be the first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic device, in this way, the volume of the application with the highest priority level is the largest, and the volume of the application with the relatively lower priority level is smaller or muted, at this time, the user can clearly hear the audio output by the application with the high priority level without being interfered by the audio output by other applications, and it is achieved that when there are a plurality of audio outputs, the audio output by the application with the high priority level is not interfered by the audio of other applications.
Thirdly, according to the technical scheme in the embodiment of the application, the volume of the current output audio of the first application program is obtained as a first volume value; and judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs and the first volume output difference value of the first volume value is greater than or equal to the first threshold value, so that the electronic equipment automatically selects a volume control scheme suitable for the current volume output condition based on the relationship between the current volume value of the first application program and the volume output values of other application programs, is suitable for various actual conditions of the electronic equipment, and achieves the technical effect of flexibly adjusting the volume of each audio output program according to the actual use condition of the electronic equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the information control method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information control method in the storage medium are read or executed by an electronic device, the method includes the following steps:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
and controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment.
Optionally, the step of storing in the storage medium: determining a first application program with the highest priority level among the N application programs, wherein a corresponding computer program instruction specifically includes, in a specific executed process:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
Optionally, the step of storing in the storage medium: determining N application program priority levels of the N application programs, wherein the corresponding computer program instructions, in a specific executed process, specifically include:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
Optionally, the step of storing in the storage medium: when M is equal to 1, the determining, from the N applications, an application with a highest priority level as the first application, and the specific executed process of the corresponding computer program instruction specifically includes: and determining the application program with the first priority as the first application program.
Optionally, the step of storing in the storage medium: when M is greater than 1, the application program with the highest priority level is determined from the N application programs to be the first application program, and the corresponding computer program instruction specifically includes, in a specifically executed process:
determining a first top-level application program from the M application programs;
determining that the first top-level application is the first application.
Optionally, the step of storing in the storage medium: when M is equal to 0, the application program with the highest priority level is determined from the N application programs to be the first application program, and the corresponding computer program instruction specifically includes, in the specifically executed process:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
when K is not 0, determining that a first top-level application program in the K foreground application programs is the first application program.
Optionally, the step of storing in the storage medium: when M is equal to 0, the application program with the highest priority level is determined from the N application programs to be the first application program, and the corresponding computer program instruction specifically includes, in the specifically executed process:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N;
and when K is 0, determining the last running application program in the N-M application programs as the first application program.
Optionally, the step of storing in the storage medium: the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes, in a specific executed process, controlling the volume of the currently output audio of the first application program to be a first volume output value:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether the volume output value of any application program corresponding to any application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the step of storing in the storage medium: the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes, in a specific executed process, controlling the volume of the currently output audio of the first application program to be a first volume output value:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between a volume output value of any application program corresponding to any application program of N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to the first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than the volume output value of any application program;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
Optionally, the step of storing in the storage medium: the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes, in a specific executed process, controlling the volume of the currently output audio of the first application program to be a first volume output value:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
Optionally, the step of storing in the storage medium: the controlling the volume of the currently output audio of the first application program to be a first volume output value specifically includes, in a specific executed process, controlling the volume of the currently output audio of the first application program to be a first volume output value:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to the first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the currently output audio of the first application program to be a first volume output value, wherein a first volume output difference value between a volume output value of any application program corresponding to any one of the N-1 application programs and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than the volume output value of any application program.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (21)

1. An information control method is applied to an electronic device and comprises the following steps:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment;
wherein, the controlling the volume of the current output audio of the first application program to be a first volume output value specifically includes:
obtaining a current volume output value of the first application program as a first volume value;
judging whether an application program volume output value corresponding to each application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
2. The method of claim 1, wherein the determining a first application with a highest priority level among the N applications specifically comprises:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
3. The method of claim 2, wherein said determining N application priority levels for said N applications comprises:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
4. The method according to claim 3, wherein when M is equal to 1, the application with the highest priority level is determined from the N applications to be the first application, specifically: and determining the application program with the first priority as the first application program.
5. The method according to claim 3, wherein when M is greater than 1, the determining the application with the highest priority level from among the N applications as the first application specifically includes:
determining a first top-level window application from the M applications;
determining that the first top-level window application is the first application.
6. The method according to claim 3, wherein when M is equal to 0, the determining the application with the highest priority level from among the N applications as the first application specifically comprises:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N-M;
and when K is not 0, determining that a first top-level window application program in the K foreground application programs is the first application program.
7. The method according to claim 3, wherein when M is equal to 0, the determining the application with the highest priority level from among the N applications as the first application specifically comprises:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N-M;
and when K is 0, determining the last running application program in the N-M application programs as the first application program.
8. An information control method is applied to an electronic device and comprises the following steps:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment;
wherein, the controlling the volume of the current output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between an application program volume output value corresponding to each application program in N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to a first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than any application program volume output value;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
9. An information control method is applied to an electronic device and comprises the following steps:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment;
wherein, the controlling the volume of the current output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to a first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
10. An information control method is applied to an electronic device and comprises the following steps:
detecting an application program of the current output audio of the electronic equipment;
when N current application programs outputting audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2;
controlling the volume of the current output audio of the first application program to be a first volume output value, wherein the first volume output value is larger than the volume output values of other output audio of the electronic equipment;
wherein, the controlling the volume of the current output audio of the first application program to be a first volume output value specifically includes:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to a first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the current output audio of the first application program to be a first volume output value, wherein a first volume output difference value between an application program volume output value corresponding to each application program in N-1 application programs except the first application program and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than any application program volume output value.
11. An electronic device, comprising:
the first detection unit is used for detecting an application program of the current output audio of the electronic equipment;
the audio processing device comprises a first determining unit, a second determining unit and a processing unit, wherein the first determining unit is used for determining a first application program with the highest priority level in N application programs when N application programs which output audio currently are detected, and N is an integer which is more than or equal to 2;
the first control unit is used for controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is larger than the volume output values of other output audio of the electronic equipment;
controlling the volume of the current output audio of the first application program to be a first volume output value, specifically comprising: the volume output value of the application program corresponding to each application program in N-1 application programs except the first application program in the N application programs is judged to be zero, and a first judgment result is obtained;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be a first volume value, wherein the first volume value is the first volume output value.
12. An electronic device, comprising:
a housing;
an audio output unit disposed in the housing;
the processor is arranged in the shell and used for detecting an application program of the current output audio of the electronic equipment, and when N application programs of the current output audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2, controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic equipment; wherein the content of the first and second substances,
the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether an application program volume output value corresponding to each application program in N-1 application programs except the first application program in the N application programs is zero or not, and obtaining a first judgment result;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
13. The electronic device of claim 12, wherein the processor is specifically configured to:
determining N application priority levels for the N applications;
and determining the application program with the highest priority level as the first application program from the N application programs based on the N application program priority levels.
14. The electronic device of claim 13, wherein the processor is specifically configured to:
acquiring a preset call type application program name list and N application program name information corresponding to the N application programs;
sequentially taking i as 1 to N, judging whether the ith application program name information in the N application program name information is in the preset call type application program name list or not, obtaining an ith judgment result, and obtaining N judgment results when i is N, wherein i is an integer which is more than or equal to 1 and less than or equal to N;
determining that the N judgment results comprise M judgment results with yes judgment results and N-M judgment results with no judgment results, wherein M is an integer greater than or equal to 0 and less than or equal to N;
determining that the priority of M applications in the N applications corresponding to the M determination results is a first priority, and the priority of N-M applications other than the M applications in the N applications corresponding to the N-M determination results is a second priority, wherein the first priority is higher than the second priority.
15. The electronic device of claim 14, wherein when M is equal to 1, the processor is specifically configured to: and determining the application program with the first priority as the first application program.
16. The electronic device of claim 14, wherein when M is greater than 1, the processor is specifically configured to:
determining a first top-level window application from the M applications;
determining that the first top-level window application is the first application.
17. The electronic device of claim 14, wherein when M is equal to 0, the processor is specifically configured to:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N-M;
and when K is not 0, determining that a first top-level window application program in the K foreground application programs is the first application program.
18. The electronic device of claim 14, wherein when M is equal to 0, the processor is specifically configured to:
k foreground application programs with display windows at the current moment are determined from the N-M application programs, wherein K is an integer which is greater than or equal to 0 and less than or equal to N-M;
and when K is 0, determining the last running application program in the N-M application programs as the first application program.
19. An electronic device, comprising:
a housing;
an audio output unit disposed in the housing;
the processor is arranged in the shell and used for detecting an application program of the current output audio of the electronic equipment, and when N application programs of the current output audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2, controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic equipment; wherein the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value;
judging whether a first volume output difference value between an application program volume output value corresponding to each application program in N-1 application programs except the first application program in the N application programs and the first volume value is larger than or equal to a first threshold value or not, and obtaining a first judgment result, wherein the first volume value is larger than any application program volume output value;
and when the first judgment result is yes, controlling the volume of the current output audio of the first application program to be the first volume value, wherein the first volume value is the first volume output value.
20. An electronic device, comprising:
a housing;
an audio output unit disposed in the housing;
the processor is arranged in the shell and used for detecting an application program of the current output audio of the electronic equipment, and when N application programs of the current output audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2, controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic equipment; wherein the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to a first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is yes, controlling the volume of the currently output audio of the first application program to be the sum of the first volume value and the first threshold, wherein the sum of the first volume value and the first threshold is the first volume output value.
21. An electronic device, comprising:
a housing;
an audio output unit disposed in the housing;
the processor is arranged in the shell and used for detecting an application program of the current output audio of the electronic equipment, and when N application programs of the current output audio are detected, determining a first application program with the highest priority level in the N application programs, wherein N is an integer greater than or equal to 2, controlling the volume of the current output audio of the first application program to be a first volume output value, and the first volume output value is greater than the volume output values of other output audio of the electronic equipment; wherein the processor is specifically configured to:
obtaining the volume of the current output audio of the first application program as a first volume value and a maximum volume output value corresponding to the electronic equipment;
judging whether a first volume difference value between the maximum volume output value and the first volume value is larger than or equal to a first threshold value or not, and obtaining a second judgment result, wherein the first volume value is smaller than the maximum volume output value;
and when the second judgment result is negative, controlling the volume of the current output audio of the first application program to be a first volume output value, wherein a first volume output difference value between an application program volume output value corresponding to each application program in N-1 application programs except the first application program and the first volume output value is greater than or equal to a first threshold value, and the first volume output value is greater than any application program volume output value.
CN201510272398.9A 2015-05-25 2015-05-25 Information control method and electronic equipment Active CN106303816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510272398.9A CN106303816B (en) 2015-05-25 2015-05-25 Information control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510272398.9A CN106303816B (en) 2015-05-25 2015-05-25 Information control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN106303816A CN106303816A (en) 2017-01-04
CN106303816B true CN106303816B (en) 2019-12-24

Family

ID=57635210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510272398.9A Active CN106303816B (en) 2015-05-25 2015-05-25 Information control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN106303816B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870759A (en) * 2016-09-26 2018-04-03 中兴通讯股份有限公司 A kind of audio control method and device
WO2019033434A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Volume control method and apparatus, storage medium, and mobile terminal
CN108958695B (en) * 2018-06-28 2023-10-20 努比亚技术有限公司 Audio output method, device and computer readable storage medium
CN109271129B (en) * 2018-09-04 2020-11-27 Oppo广东移动通信有限公司 Sound effect adjusting method and device, electronic equipment and storage medium
CN109445740B (en) * 2018-09-30 2022-05-20 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and storage medium
CN109445745A (en) * 2018-12-27 2019-03-08 努比亚技术有限公司 Audio stream processing method, device, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6834315B2 (en) * 2001-03-26 2004-12-21 International Business Machines Corporation Method, system, and program for prioritizing input/output (I/O) requests submitted to a device driver
CN101518098A (en) * 2006-09-14 2009-08-26 Lg电子株式会社 Controller and user interface for dialogue enhancement techniques
CN102033776A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Audio playing method and computing device
CN202475734U (en) * 2012-03-12 2012-10-03 深圳市奥尼电子工业有限公司 Sound box capable of automatically controlling volume
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6834315B2 (en) * 2001-03-26 2004-12-21 International Business Machines Corporation Method, system, and program for prioritizing input/output (I/O) requests submitted to a device driver
CN101518098A (en) * 2006-09-14 2009-08-26 Lg电子株式会社 Controller and user interface for dialogue enhancement techniques
CN102033776A (en) * 2009-09-29 2011-04-27 联想(北京)有限公司 Audio playing method and computing device
CN202475734U (en) * 2012-03-12 2012-10-03 深圳市奥尼电子工业有限公司 Sound box capable of automatically controlling volume
CN104023305A (en) * 2014-05-30 2014-09-03 爱培科科技开发(深圳)有限公司 Audio mixing control method and apparatus for Wince vehicle-mounted multimedia

Also Published As

Publication number Publication date
CN106303816A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106303816B (en) Information control method and electronic equipment
JP6489563B2 (en) Volume control method, system, device and program
CN105630586B (en) Information processing method and electronic equipment
EP3535754B1 (en) Improved reception of audio commands
CN106557297A (en) Based on contextual adaptation audio output
US20140105411A1 (en) Methods and systems for karaoke on a mobile device
US9756439B2 (en) Method and devices for outputting an audio file
CN106302997B (en) Output control method, electronic equipment and system
CN105679345B (en) Audio processing method and electronic equipment
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
US20140241702A1 (en) Dynamic audio perspective change during video playback
US20210195311A1 (en) Earphone abnormality processing method, earphone, system, and storage medium
AU2014295217B2 (en) Audio processor for orientation-dependent processing
EP2996352B1 (en) Audio system and method using a loudspeaker output signal for wind noise reduction
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN103929692B (en) Audio information processing method and electronic equipment
CN105744325A (en) Audio/video play control method and audio/video play control device
TWI724507B (en) Voice processing method and device
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
CN112217486B (en) Audio playing control method and system, electronic equipment and storage medium
US9880804B1 (en) Method of automatically adjusting sound output and electronic device
CN106293607B (en) Method and system for automatically switching audio output modes
US11122160B1 (en) Detecting and correcting audio echo
CN109274826B (en) Voice playing mode switching method and device, terminal and computer readable storage medium
WO2021151771A1 (en) Audio / video capturing using audio from remote device

Legal Events

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