Volume adjustment method and electronic equipment
1. A method of adjusting volume, comprising:
when at least two application programs are operated, acquiring volume ratios of the at least two application programs based on a volume combination relation of the at least two application programs, wherein the volume combination relation comprises an application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination;
and adjusting the output volume of each application program according to the volume ratio.
2. The volume adjustment method according to claim 1, characterized in that the method further comprises:
the method comprises the steps of obtaining a first sample set, wherein the first sample set comprises an initial value and a change value of system volume of the electronic equipment and an initial value and a change value of output volume of each application program when at least two application programs run simultaneously in a first preset time period of a plurality of sampling periods;
performing numerical fitting on the basis of the first sample set to obtain the corresponding relation between the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program;
and obtaining the volume combination relation based on the corresponding relation.
3. The method of volume adjustment according to claim 2, wherein prior to said obtaining the first set of samples, the method further comprises:
acquiring a second sample set, wherein the second sample set comprises an output volume average value of each application program when each application program operates independently in a second preset time period of a plurality of sampling periods;
performing numerical fitting based on the second sample set to obtain a volume fitting value of each application program;
and taking the volume fitting value of each application program as the initial value of the output volume when each application program runs simultaneously.
4. The method of volume adjustment according to claim 2, wherein prior to said obtaining the first set of samples, the method further comprises:
receiving a volume adjustment input for the application;
obtaining the altered value of the application output volume in response to the volume adjustment input.
5. The volume adjustment method according to claim 2, characterized in that the method further comprises:
and under the condition that the application programs except the first application program in the application combination are all quitted to be operated, restoring the output volume value of the first application program to the initial value of the output volume of the first application program.
6. The volume adjustment method according to claim 2, wherein after the adjusting the output volume of each of the applications according to the volume ratio, the method further comprises:
receiving and responding to an adjustment input aiming at the system volume of the electronic equipment, and obtaining a system volume adjustment value;
and adjusting the output volume of each application program according to the system volume adjustment value and the volume ratio.
7. A volume adjustment device, the device comprising:
the volume ratio acquiring module is used for acquiring the volume ratios of at least two application programs based on the volume combination relationship of the at least two application programs when the at least two application programs are operated, wherein the volume combination relationship comprises the application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination;
and the volume adjusting module is used for adjusting the output volume of each application program according to the volume ratio.
8. The volume adjusting apparatus according to claim 7, further comprising a volume combination relation obtaining module configured to:
the method comprises the steps of obtaining a first sample set, wherein the first sample set comprises an initial value and a change value of system volume of the electronic equipment and an initial value and a change value of output volume of each application program when at least two application programs run simultaneously in a first preset time period of a plurality of sampling periods;
performing numerical fitting on the basis of the first sample set to obtain the corresponding relation between the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program;
and obtaining the volume combination relation based on the corresponding relation.
9. The volume adjusting apparatus according to claim 8, further comprising an application volume initial value obtaining module configured to:
acquiring a second sample set, wherein the second sample set comprises an output volume average value of each application program when each application program operates independently in a second preset time period of a plurality of sampling periods;
performing numerical fitting based on the second sample set to obtain a volume fitting value of each application program;
and taking the volume fitting value of each application program as the initial value of the output volume when each application program runs simultaneously.
10. The volume adjustment device of claim 8, further comprising a change value acquisition module configured to:
receiving a volume adjustment input for the application;
obtaining the altered value of the application output volume in response to the volume adjustment input.
11. The volume adjustment device of claim 8, further comprising a restoring module configured to:
and under the condition that the application programs except the first application program in the application combination are all quitted to be operated, restoring the output volume value of the first application program to the initial value of the output volume of the first application program.
12. The volume adjustment device of claim 8, further comprising an adjustment module configured to:
receiving and responding to an adjustment input aiming at the system volume of the electronic equipment, and obtaining a system volume adjustment value;
and adjusting the output volume of each application program according to the system volume adjustment value and the volume ratio.
13. An electronic device, characterized in that the electronic device comprises:
a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the volume adjustment method as claimed in any one of claims 1-6.
14. A readable storage medium, characterized in that it stores a program or instructions which, when executed by a processor, implement the steps of the volume adjustment method according to any one of claims 1-6.
Background
With the rapid development of communication technology, electronic devices such as smart phones are the most common communication tools in people's lives. In addition to communication needs, the usage of multimedia in electronic devices is increasing. The use of multimedia typically includes various types of applications, such as video-type applications, social-type applications, and game-type applications.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: when a plurality of application programs of the electronic equipment run simultaneously, the volume can have a large difference with the volume when a single application program runs, and a user can only adjust the volume of the whole electronic equipment, but the sound of each application program is not coordinated, and the coexistence effect is not good.
Disclosure of Invention
An object of the embodiments of the present application is to provide a volume adjustment method and an electronic device, which can solve the problem that when multiple applications run simultaneously, the sound of each application program is not coordinated.
In a first aspect, an embodiment of the present application provides a volume adjustment method, where the method includes:
when at least two application programs are operated, acquiring volume ratios of the at least two application programs based on a volume combination relation of the at least two application programs, wherein the volume combination relation comprises an application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination;
and adjusting the output volume of each application program according to the volume ratio.
In a second aspect, an embodiment of the present application further provides a volume adjustment device, where the device includes:
the volume ratio acquiring module is used for acquiring the volume ratios of at least two application programs based on the volume combination relationship of the at least two application programs when the at least two application programs are operated, wherein the volume combination relationship comprises an application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination;
and the volume adjusting module is used for adjusting the output volume of each application program according to the volume ratio.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the volume adjustment method according to the first aspect.
In a fourth aspect, the present embodiments also provide a readable storage medium, which stores a program or instructions, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the method according to the first aspect.
In the embodiment of the application, when at least two applications are run, the volume ratios of the at least two applications are obtained based on the volume combination relationship of the at least two applications, wherein the volume combination relationship comprises an application combination of the at least two applications and the volume ratio between the at least two applications in the application combination, and the output volume of each application is adjusted according to the volume ratio. Volume ratios of multiple applications in simultaneous operation are set by means of volume combination relations among multiple application programs, and therefore volume coordination under the condition of coexistence of multiple applications is achieved.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a volume adjustment method of the present application;
FIG. 2 is a diagram of a volume adjustment interface according to an embodiment of the volume adjustment method of the present application;
FIG. 3 is an interface diagram of scenario 1 of an embodiment of the volume adjustment method of the present application;
FIG. 4 is an interface diagram of scenario 2 of an embodiment of the volume adjustment method of the present application;
FIG. 5a is a schematic structural diagram of an embodiment of a volume adjustment apparatus according to the present application;
FIG. 5b is a schematic structural diagram of another embodiment of the volume adjustment apparatus of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device provided in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The volume adjustment method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, fig. 1 is a schematic flow chart of a volume adjustment method provided in an embodiment of the present application, where the method includes:
s101: when at least two application programs are operated, the volume ratio of the at least two application programs is obtained based on the volume combination relation of the at least two application programs, wherein the volume combination relation comprises the application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination.
The running application program can be an application program of a video/audio playing type, can play multimedia video or audio, can also be an application program of a social communication type, can be used for voice chat or video chat, can also be an application program of a game type, and can be used for voice chat, background music playing and the like.
The volume combination relationship is a volume coordination relationship between application programs when a plurality of applications are used as combined applications at the same time, and includes an application combination of at least two application programs and a volume ratio between the application programs in the application combination, taking the two application programs as an example, the application combination is WeChat and Game A, and the volume ratio in the application combination is as follows: when the WeChat and the game A are used simultaneously, the volume ratio is 60% to 80%, and the volume ratio of 60% to 80% is a percentage of the system volume, and the volume ratio can also be a ratio of 3:4, for example.
Specifically, a plurality of applications are typically installed in the electronic device for users to enjoy entertainment or social interaction. Therefore, sometimes a user may open at least two applications simultaneously, or a user opens one application first and then opens another application, so that at least two applications exist in a state of running simultaneously. When at least two application programs are running, whether the application programs have a volume combination relation is detected, if yes, the situation that the electronic equipment runs the application programs at the same time exists in the past is described, at the moment, the volume ratio of the at least two application programs is obtained based on the volume combination relation, and the volume combination relation comprises an application combination of the at least two application programs and the volume ratio between the at least two application programs in the application combination.
Correspondingly, if the at least two application programs do not have a volume combination relationship, it indicates that the electronic device does not have a situation that the plurality of applications are simultaneously operated in the past, and at this time, an individual volume setting interface of each application program can be provided for a user, so that the user can set the volume ratio among the plurality of application programs, and the volume input/output of each application program is coordinated.
In some embodiments, the volume combination relationship is a volume combination of each application program suitable for the user, which is summarized by the electronic device after monitoring the habit of the user, and therefore, the method may further include:
the method comprises the steps of obtaining a first sample set, wherein the first sample set comprises an initial value and a change value of system volume of the electronic equipment and an initial value and a change value of output volume of each application program when at least two application programs run simultaneously in a first preset time period of a plurality of sampling periods;
performing numerical fitting on the basis of the first sample set to obtain the corresponding relation between the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program;
and obtaining the volume combination relation based on the corresponding relation.
Specifically, a first sample set is obtained, for example, if the electronic device has a multi-application coexistence situation in a fixed time period of a certain day of the week, the certain day of the week is taken as a sampling period, and the fixed time period of the certain day of the week is taken as a first preset time period of the sampling period. During sampling, acquiring an initial value and a change value of system volume of the electronic device, and simultaneously executing the initial value and the change value of output volume of each application program, and then training the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program as a sample set through a fitting algorithm, such as a BP neural network, a long-and-short memory network and other algorithms, so as to obtain a corresponding relation between the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program, namely preliminarily determining the preference of a user for volume setting when multiple applications coexist, for example, the multiple applications coexist by taking application 1 and application 2 as an example, and obtaining the corresponding relation as follows: system volume: application 1 volume: if the application 2 volume is 100:80:60, then the volume combination relationship is obtained based on the corresponding relationship as the system volume: application 1 volume: apply 2 volume 10:8: 6.
Therefore, the ratio of the volume ratio of the application volume 1 to the application volume 2 is 8/6. Since the optimal perception ratio of the human hearing to the volume of different sounds is generally not changed, the volume ratio is saved as the volume ratio most suitable for the user.
In some embodiments, in order to obtain the initial value of the output volume of each application in the first sample set, the method may further include:
acquiring a second sample set, wherein the second sample set comprises an output volume average value of each application program when each application program operates independently in a second preset time period of a plurality of sampling periods;
performing numerical fitting based on the second sample set to obtain a volume fitting value of each application program;
and taking the volume fitting value of each application program as the initial value of the output volume when each application program runs simultaneously.
Specifically, the second sample set is obtained, for example, the average value of the output volume of each application program when each application program runs individually in a specific time of the electronic device may be obtained in units of weeks, then a certain day of the week is taken as the sampling period, and a fixed time period of a certain day of the week is taken as a second preset time period of the sampling period, for example, a time period from 6 pm to 8 pm of the week. The first preset time period and the second preset time period may be the same time period or different time periods.
Taking the application program 1 and the application program 2 as an example, the average output volume of the application program 1 which is used independently in the time period from 6 points to 8 points in the last Monday night is 30, and the average output volume of the application program 1 which is used independently in the time period from 6 points to 8 points in the last Monday night is 31, so that the average output volume of the application program 1 which is used independently in the time period from 6 points to 8 points in a plurality of Monday night is obtained, the average output volumes are classified into a class of data, and the class of data is subjected to numerical fitting through a fitting algorithm, such as a BP neural network and a long-short time memory network, so as to obtain a volume fitting value of the application program 1.
Similarly, a plurality of average output volumes of the application program 2 are obtained; and then, performing numerical fitting based on the second sample set to obtain a volume fitting value of each application program, namely obtaining a volume value which is considered to be most suitable by the user when the user uses the application programs 1 and 2 independently.
Then, since the user-optimum volume value is obtained when each application of the multiple applications operates individually, the volume fitting value of each application can be used as the initial value of the output volume when each application operates simultaneously.
It should be noted that, when obtaining the average value of the output volume of each application program when each application program runs alone, the average value of the volume of a single application program may be calculated according to the initial value and the final value of the volume of the single application program by collecting the initial value and the final value of the volume output by the single application program during the second preset time period of the sampling period.
In some embodiments, to obtain the change value of each application in the first sample set, the method may further include:
receiving a volume adjustment input for the application;
obtaining the altered value of the application output volume in response to the volume adjustment input.
Specifically, a user may adjust the volume of an individual application program when multiple applications are simultaneously running, and therefore, when the electronic device receives a volume adjustment input for the application program, the electronic device obtains the change value of the output volume of the application program in response to the volume adjustment input. As shown in fig. 2, an interface for setting the volume of the application 1 when the application 1 runs simultaneously with the application 2 is called by the hover ball, and the volume of the application 1 is set, thereby obtaining a change value of the application 1.
The change value of the system volume can be obtained when the user adjusts the volume of the electronic device through the volume change key of the electronic device.
In some embodiments, in the case of multi-application coexistence, if a user adjusts the volume of an application, in order to optimize the volume combination relationship, in the case of multi-application coexistence, if the user adjusts the volume of an application, the electronic device receives a volume adjustment input for the application, obtains a second change value of the application in response to the volume adjustment operation, adds the initial value and the second change value of the application to the first sample set, updates the first sample set, and further optimizes the volume combination relationship of the applications in the multi-application coexistence.
In some embodiments, when at least two applications are running, obtaining a volume ratio of the at least two applications based on a volume combination relationship of the at least two applications includes:
receiving an application starting instruction;
and responding to the application starting instruction, determining whether a volume combination relation exists between the newly started application program and the started application program, and if so, obtaining the volume ratio between the newly started application program and the started application program based on the volume combination relation.
Specifically, the case that multiple applications run simultaneously may be that after one application is started, another application is started, so that at least two applications can run simultaneously, and therefore, when obtaining the volume ratios of at least two applications, the electronic device may receive an application start instruction; and the electronic equipment responds to the application starting instruction, determines whether a volume combination relation exists between the newly started application program and the started application program, and if so, obtains the volume ratio between the newly started application program and the started application program based on the volume combination relation.
In this embodiment, the adjustment of the volume of each application program conforming to the volume combination relationship is triggered by the start of a new application program, in other embodiments, it may also be detected whether at least two application programs conform to the volume combination relationship at preset time intervals (for example, 30 seconds), and if there is a combined application conforming to the volume combination relationship, the adjustment of the volume of each application program is triggered. Further, when the combined application is the same, the adjustment is not repeated.
Accordingly, if there is no volume combination relationship between the newly started application and the started application, the volume can be controlled according to the volume fitting value most suitable for the user, which has been obtained in the past, of the newly started application and the volume fitting value most suitable for the user, which has been obtained in the past, of the started application, but the user can still manually adjust the individual volume of the individual application.
It can be understood that the case that a plurality of applications run simultaneously is not limited to the sequence of starting one application first and starting another application later, but may also be the case that a plurality of applications are started simultaneously, and the case that the electronic device can meet the requirement of running a plurality of applications simultaneously belongs to the simple transformation or transformation of the present application and falls within the protection scope of the present application.
And through the setting of the volume combination relationship, the most suitable volume ratio of the user when the multiple applications run simultaneously is obtained, and the volume of each application program when the multiple applications run simultaneously is coordinated.
102: and adjusting the output volume of each application program according to the volume ratio.
And after the volume ratio is obtained, adjusting the output volume of each application program according to the volume ratio, thereby realizing automatic coordination of the volume of each application program.
In some embodiments, adjusting the output volume of each application according to the volume ratio may include:
copying a system volume template to generate a volume template;
setting the volume template according to the volume ratio;
and adjusting the output volume of each application program according to the volume ratio according to the volume template.
Specifically, when the output volume of each application program is adjusted according to the volume ratio, a system volume template is copied to generate a volume template, for example, if the volume ratio of the application program 1 to the application program 2 is 4:3, the system volume template is copied to generate the volume template. Then, the volume template is set according to a volume ratio of 4:3, specifically, the volume of the application program 1 which is started first can be set as the system volume, then the volume of the application program 2 is obtained according to the volume ratio, the volume of the application program 2 is written into the generated template, and the output volume of each application program is adjusted according to the volume ratio according to the volume template.
As shown in fig. 3, the single-application volume value of the application 2 is 60%, the volume value of the application 1 when the application 1 and the application 2 coexist is 72%, in this case, the volume ratio adjustment of the application 1 is set to 100% of the system volume, and the application 2 is adjusted to 60%/72% — 83% when the application 1 and the application 2 coexist.
In some embodiments, when multiple applications coexist, if a user turns off any one of the application programs, at this time, a multiple application coexistence state of the electronic device changes, and therefore the method may further include:
and destroying the volume template when any application program in the application combination is detected to be closed.
Specifically, if any application program is closed in the multi-application coexistence state of the electronic device, it indicates that the multi-application coexistence state is changed, and at this time, the volume template is destroyed. If the volume template is not destroyed, the volume template is generated as long as the multi-application coexistence state is generated, and the more and more volume templates cause the memory of the electronic equipment system to overflow, so that the volume template needs to be deleted.
In some embodiments, when multiple applications coexist, if a user turns off an application therein and only one running application remains, at this time, a multiple application coexistence state of the electronic device changes, and therefore the method may further include:
and under the condition that the application programs except the first application program in the application combination are all quitted to be operated, restoring the output volume value of the first application program to the initial value of the output volume of the first application program.
Specifically, if the electronic device is changed from the multi-application coexistence state to the single-application operation state, the volume value of the running application program is restored to the initial value of the running application program, where the initial value is the optimal volume value of the application program when the application program runs alone.
In some embodiments, after the adjusting the output volume of each of the applications according to the volume ratio, the method may further include:
receiving and responding to an adjustment input aiming at the system volume of the electronic equipment, and obtaining a system volume adjustment value;
and adjusting the output volume of each application program according to the system volume adjustment value and the volume ratio.
Specifically, after the output volume of each application program is adjusted according to the volume ratio, if a user adjusts the system volume, the electronic device receives an adjustment input for the system volume to obtain a system volume adjustment value, and adjusts the output volume of each application program according to the system volume adjustment value and the volume ratio. For example, the volume ratio of the application 1 to the application 2 is 4:3, and when the system volume is adjusted by the user, as shown in fig. 4, if the system volume is adjusted from 100 to 80, then when the output volume of each of the applications is adjusted, the output volume of the application 1 is 64, and the output volume of the application 2 is 48.
In the embodiment of the application, when at least two applications are run, the volume ratios of the at least two applications are obtained based on the volume combination relationship of the at least two applications, wherein the volume combination relationship comprises an application combination of the at least two applications and the volume ratio between the at least two applications in the application combination, and the output volume of each application is adjusted according to the volume ratio. Volume ratios of multiple applications in simultaneous operation are set by means of volume combination relations among multiple application programs, and therefore volume coordination under the condition of coexistence of multiple applications is achieved.
Accordingly, as shown in fig. 5a, an embodiment of the present application further provides a volume adjustment device, where the volume adjustment device 500 includes:
a volume ratio obtaining module 501, configured to obtain, when at least two application programs are running, volume ratios of the at least two application programs based on a volume combination relationship of the at least two application programs, where the volume combination relationship includes an application combination of the at least two application programs and a volume ratio between the at least two application programs in the application combination;
a volume adjusting module 502, configured to adjust an output volume of each application according to the volume ratio.
In the embodiment of the application, when at least two applications are operated, based on a volume combination relationship of the at least two applications, volume ratios of the at least two applications are obtained, wherein the volume combination relationship comprises an application combination of the at least two applications and a volume ratio between the at least two applications in the application combination, and an output volume of each application is adjusted according to the volume ratio. Volume ratios of multiple applications in simultaneous operation are set by means of volume combination relations among multiple application programs, and therefore volume coordination under the condition of coexistence of multiple applications is achieved.
In some embodiments, referring to fig. 5b, the apparatus 500 further includes a volume combination relation obtaining module 503, configured to:
the method comprises the steps of obtaining a first sample set, wherein the first sample set comprises an initial value and a change value of system volume of the electronic equipment and an initial value and a change value of output volume of each application program when at least two application programs run simultaneously in a first preset time period of a plurality of sampling periods;
performing numerical fitting on the basis of the first sample set to obtain the corresponding relation between the initial value and the change value of the system volume and the initial value and the change value of the output volume of each application program;
and obtaining the volume combination relation based on the corresponding relation.
In some embodiments, the apparatus 500 further comprises an application initial value obtaining module 504, configured to:
acquiring a second sample set, wherein the second sample set comprises the average value of the output volume of each application program when each application program operates independently in a second preset time period of a plurality of sampling periods;
performing numerical fitting based on the second sample set to obtain a volume fitting value of each application program;
and taking the volume fitting value of each application program as the initial value of the output volume when each application program runs simultaneously.
In some embodiments, the apparatus 500 further comprises a change value obtaining module 505 for:
receiving a volume adjustment input for the application;
obtaining the altered value of the application output volume in response to the volume adjustment input.
In some embodiments, the apparatus 500 further comprises a restoring module 506 for:
and when detecting that any application program in the application combination is closed, if only one running application program remains, restoring the volume value of the running application program to the initial value of the running application program.
In some embodiments, the apparatus 500 further comprises an adjustment module 507 for:
receiving and in response to an adjustment input for the system volume, obtaining a system volume adjustment value;
and adjusting the output volume of each application program according to the system volume adjustment value and the volume ratio.
The volume adjusting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The volume adjusting device can be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The volume adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The volume adjusting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in the embodiment of the present application, which includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, and when the program or the instruction is executed by the processor 601, the processes of the embodiment of the volume adjustment method are implemented, so that the same technical effects can be achieved, and no repeated description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 7, the electronic device 70 includes, but is not limited to:
the electronic device 70 comprises a radio frequency unit 71, a network module 72, an audio output unit 73, an input unit 74, a sensor 75, a display unit 76, a user input unit 77, an interface unit 78, a memory 79, a processor 710, a power supply 711 and the like.
Those skilled in the art will appreciate that the electronic device 70 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 710 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here. In the embodiment of the present application, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 710 is configured to, when at least two applications are running, obtain volume ratios of the at least two applications based on a volume combination relationship of the at least two applications, where the volume combination relationship includes an application combination of the at least two applications and a volume ratio between the at least two applications in the application combination; and adjusting the output volume of each application program according to the volume ratio.
In the embodiment of the present application, the electronic device 70 sets the volume ratios when multiple applications run simultaneously by using the volume combination relationship existing among multiple application programs, so as to implement volume coordination under the coexistence of multiple applications.
It should be understood that in the embodiment of the present application, the input Unit 74 may include a Graphics Processing Unit (GPU) 741 and a microphone 742, and the Graphics Processing Unit 741 processes image data of a still picture or a video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 76 may include a display panel 761, and the display panel 761 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 77 includes a touch panel 771 and other input devices 772. A touch panel 771 also referred to as a touch screen. The touch panel 771 may include two parts of a touch detection device and a touch controller. Other input devices 772 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 79 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned volume adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned volume adjustment method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种终端设备、安全保障方法和存储介质