CN110543289B - Method for controlling volume and electronic equipment - Google Patents

Method for controlling volume and electronic equipment Download PDF

Info

Publication number
CN110543289B
CN110543289B CN201910713488.5A CN201910713488A CN110543289B CN 110543289 B CN110543289 B CN 110543289B CN 201910713488 A CN201910713488 A CN 201910713488A CN 110543289 B CN110543289 B CN 110543289B
Authority
CN
China
Prior art keywords
electronic device
application
volume
user
audio output
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
CN201910713488.5A
Other languages
Chinese (zh)
Other versions
CN110543289A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910713488.5A priority Critical patent/CN110543289B/en
Publication of CN110543289A publication Critical patent/CN110543289A/en
Application granted granted Critical
Publication of CN110543289B publication Critical patent/CN110543289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The application provides a method for controlling volume and an electronic device, wherein the method comprises the following steps: the electronic equipment detects the operation of a user; the electronic equipment responds to the operation and determines the identification of the first application program; the electronic device determining a first audio output device and a type of the first audio stream; the electronic equipment determines a first volume value according to the identification of the first application program, the connection type of the first audio output equipment, the type of the first audio stream and a mapping relation, wherein the mapping relation comprises the corresponding relation among the identification of each application program in one or more application programs in the electronic equipment, the connection type of the audio output equipment, the type of the audio stream and the volume value; and the electronic equipment plays the audio corresponding to the first audio stream through the first audio output equipment according to the first volume value. The embodiment of the application is beneficial to reducing the operation complexity of the user, improving the operation efficiency of the user, improving the intelligent degree of the electronic equipment and providing personalized setting for the user.

Description

Method for controlling volume and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and more particularly, to a method of controlling volume and an electronic device.
Background
A user may listen to music, watch videos, and the like using an electronic device every day, and sometimes clearly remembers that the volume is just turned down in a music Application (APP), and that four jarring sounds are transmitted when watching videos in a video APP. At this time, the user is required to manually set the volume value, and the user is required to manually adjust the volume value when entering different application scenes, which may cause problems such as complicated operation and poor user experience.
Disclosure of Invention
The application provides a method for controlling volume and an electronic device, which are beneficial to improving the operation efficiency of a user and the intelligent degree of the electronic device and providing personalized settings for the user.
In a first aspect, a method for controlling volume is provided, where the method is applied to an electronic device, and the method includes: the electronic equipment determines an identifier of a first application program, a connection type of the electronic equipment and a first audio output device and a type of a first audio stream under the first application program; the electronic equipment determines a first volume value according to the identification of the first application program, the connection type of the first audio output equipment, the type of the first audio stream and a mapping relation, wherein the mapping relation comprises the corresponding relation of the identification of each of one or more application programs in the electronic equipment, the connection type of the audio output equipment, the type of the audio stream and the volume value, and the one or more application programs comprise the first application program; and the electronic equipment plays the audio corresponding to the first audio stream through the first audio output equipment according to the first volume value.
According to the method for controlling the volume, the corresponding relation among the identification of the application program, the connection type of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction can be improved, the user operation and the learning cost of the user can be reduced, personalized setting can be provided for the user, and the user experience can be improved.
In some possible implementations, the connection types of the audio output device include a speaker, a wired connection device, and a wireless connection device.
In some possible implementations, the wired connection device includes, but is not limited to, a wired connection headset or a wired connection speaker.
In some possible implementations, the wireless connection device includes, but is not limited to, a device connected via bluetooth or a device connected via Wi-Fi.
In some possible implementations, the method further includes: the electronic device obtains the mapping relationship.
In some possible implementations, the obtaining, by the electronic device, the mapping relationship includes: when the electronic device installs each application program, the electronic device may initialize a set of default volume tables for a User Identifier (UID) corresponding to the application program.
In some possible implementations, the obtaining, by the electronic device, the mapping relationship includes: when the electronic equipment installs an application program, the sound meter of the application program similar to the application program is obtained and used as the sound meter of the application program.
For example, when the electronic device installs a music application, the volume table of other music applications saved by the electronic device may be used as the volume table of the newly installed music application.
In the embodiment of the application, when an application program is newly installed on the electronic device, the sound scale of the application program with the similar function to that of the application program can be used as the sound scale, so that when the newly installed application program is started by a user, the electronic device can play audio according to the sound scale of the application program which is preferred by the user, the improvement of the intelligence of human-computer interaction is facilitated, the user operation is reduced, the learning cost of the user is reduced, the personalized setting is provided for the user, and the improvement of the user experience is facilitated.
It should be understood that, in the embodiment of the present application, the volume table may also be understood as the mapping relationship.
With reference to the first aspect, in certain implementations of the first aspect, the mapping relationship further includes a correspondence between an identifier of each application program, a connection type of an audio output device, an identifier of the audio output device, a type of an audio stream, and a sound volume value, where determining, by the electronic device, the first sound volume value according to the identifier of the first application program, the connection type of the first audio output device, the type of the first audio stream, and the mapping relationship includes: the electronic device determines the first volume value according to the identifier of the first application program, the connection type of the first audio output device, the identifier of the first audio output device, the type of the first audio stream, and the mapping relationship.
According to the method for controlling the volume, the corresponding relation among the identification of the application program, the connection type of the audio output device, the identification of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction can be improved, the user operation and the learning cost of the user can be reduced, personalized setting can be provided for the user, and the user experience can be improved.
With reference to the first aspect, in certain implementations of the first aspect, the identification of the audio output device is a Media Access Control (MAC) address or an Internet Protocol (IP) address of the audio output device.
In some possible implementations, when the audio output device is a device that is connected to the electronic device by wire, the electronic device may identify the different wired connection device according to a level change detected by the electronic device when the audio output device is connected to the electronic device.
In the embodiment of the application, when audio output devices with different MAC addresses or IP addresses are connected with the electronic device, the electronic device can initialize a set of volume tables for the audio output devices with different identifications, so that the requirements of users on different volume values under different audio output devices are met, the intelligence of man-machine interaction is improved, the user operation and the learning cost of the users are reduced, personalized setting is provided for the users, and the user experience is improved.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: the electronic equipment detects the operation of adjusting the first volume value by a user; in response to the operation, the electronic device updates the mapping relationship.
In the embodiment of the application, after the electronic device detects that the user adjusts the first volume value, the mapping relation under the first application program can be automatically updated, so that convenience is brought to the user to automatically play the first application program according to the last adjusted volume table when the user opens the first application program next time, the intelligence of human-computer interaction is favorably improved, the user operation and the learning cost of the user are reduced, and the user experience is favorably improved.
With reference to the first aspect, in certain implementations of the first aspect, the types of audio streams include media, notifications, calls, and alerts.
With reference to the first aspect, in some implementations of the first aspect, the identification of each application includes a user identification UID of each application or a Process Identifier (PID) of each application.
In a second aspect, another method for controlling volume is provided, and the method is applied to an electronic device, and includes: the electronic device determining an identity of a first application, an identity of a first audio output device, and a type of a first audio stream under the first application; the electronic equipment determines a first volume value according to the identification of the first application program, the identification of the first audio output equipment, the type of the first audio stream and a mapping relation, wherein the mapping relation comprises the corresponding relation of the identification of each application program in one or more application programs in the electronic equipment, the identification of the audio output equipment, the type of the audio stream and the volume value, and the one or more application programs comprise the first application program; and the electronic equipment plays the audio corresponding to the first audio stream through the first audio output equipment according to the first volume value.
According to the method for controlling the volume, the corresponding relation among the identification of the application program, the identification of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction is improved, the user operation is reduced, the learning cost of the user is reduced, personalized setting is provided for the user, and the user experience is improved.
In some possible implementations, the identification of the audio output device is a media access control, MAC, address or an internet protocol, IP, address of the audio output device.
In some possible implementations, the method further includes: the electronic equipment detects the operation of adjusting the first volume value by a user; in response to the operation, the electronic device updates the mapping relationship.
In the embodiment of the application, after the electronic device detects that the user adjusts the first volume value, the mapping relation under the first application program can be automatically updated, so that the user can conveniently play the first application program when opening the first application program next time according to the last adjusted volume table automatically, the intelligence of human-computer interaction is improved, the user operation and the learning cost of the user are reduced, personalized setting is provided for the user, and the user experience is improved.
In some possible implementations, the types of audio streams include media, notifications, calls, and alerts.
In some possible implementations, the identification of each application includes a user identification UID of the each application or a process identification number PID of the each application.
In a third aspect, an apparatus for controlling volume is provided, the apparatus being included in an electronic device, the apparatus having functionality to implement the behavior of the electronic device in the above aspects and possible implementations of the above aspects. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions.
In a fourth aspect, an electronic device is provided, comprising: one or more processors; a memory; one or more application programs; and one or more computer programs. Wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions. The instructions, when executed by the electronic device, cause the electronic device to perform a method of controlling volume in any of the possible implementations of any of the aspects above.
In a fifth aspect, the present disclosure provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform a method of controlling volume in any of the possible implementations of any of the above aspects.
In a sixth aspect, the present disclosure provides a computer storage medium including computer instructions, which, when executed on an electronic device, cause the electronic device to perform a method for controlling volume in any one of the possible implementations of any one of the above aspects.
In a seventh aspect, the present disclosure provides a computer program product, which when run on an electronic device, causes the electronic device to perform the method for controlling volume in any one of the possible designs of the above aspects.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a set of GUIs provided in embodiments of the present application.
FIG. 4 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
FIG. 5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
FIG. 6 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
Fig. 7 is a schematic flow chart of a method for controlling volume according to an embodiment of the present application.
Fig. 8 is a schematic diagram of a volume table corresponding to different applications stored in the electronic device in the embodiment of the present application.
Fig. 9 is another schematic diagram of a volume table corresponding to different applications stored in the electronic device in the embodiment of the present application.
FIG. 10 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
FIG. 11 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
Fig. 12 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more. The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Embodiments of an electronic device, a user interface for such an electronic device, and for using such an electronic device are described below. In some embodiments, the electronic device may be a portable electronic device, such as a cell phone, a tablet, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), and the like, that also includes other functionality, such as personal digital assistant and/or music player functionality. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that are rated with iOS, Android, Microsoft ® or other operating systems. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 101 processes data or executes instructions.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 101, and may also be used to transmit data between the electronic device 101 and peripheral devices. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
In some embodiments of the present application, the display screen 194 in fig. 1 may be bent when the display panel is made of OLED, AMOLED, FLED, or the like. Here, the display 194 may be bent in such a manner that the display may be bent at any position to any angle and may be held at the angle, for example, the display 194 may be folded right and left from the middle. Or can be folded from the middle part up and down.
The display screen 194 of the electronic device 100 may be a flexible screen, which is currently attracting attention due to its unique characteristics and great potential. Compared with the traditional screen, the flexible screen has the characteristics of strong flexibility and flexibility, can provide a new interaction mode based on the bendable characteristic for a user, and can meet more requirements of the user on electronic equipment. For the electronic equipment provided with the foldable display screen, the foldable display screen on the electronic equipment can be switched between a small screen in a folded state and a large screen in an unfolded state at any time. Therefore, the use of the split screen function by the user on the electronic device equipped with the foldable display screen is more and more frequent.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 101 to execute the method for controlling the volume provided in some embodiments of the present application, and various applications, data processing, and the like by executing the above-mentioned instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (such as photos, contacts, etc.) created during use of the electronic device 101, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 101 to execute the method for controlling the volume provided in the embodiments of the present application, and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application packages may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer, and includes some predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs, and can acquire the size of the display screen and judge whether a status bar, a lock screen, a capture screen and the like exist.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so forth.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. Such as prompting for text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports playback and recording in a variety of commonly used audio and video formats, as well as still image files, and the like. The media library may support a variety of audio-video encoding formats such as MPEG4, h.264, MP3, AAC, AMR, JPG, and PNG, among others.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For convenience of understanding, the following embodiments of the present application will specifically describe a method for controlling volume, which is provided by the embodiments of the present application, by taking a mobile phone having a structure shown in fig. 1 and fig. 2 as an example, with reference to the accompanying drawings.
Fig. 3 shows a set of Graphical User Interfaces (GUI) of a mobile phone, wherein from (a) in fig. 3 to (f) in fig. 3, it is shown that the mobile phone can configure different volume values for different types of audio streams (streams) under the same Application (APP).
Referring to fig. 3 (a), the GUI is a desktop 301 of a mobile phone. When the mobile phone detects that the user clicks an icon 302 of the album application on the desktop 301, the album application may be started, and a GUI as shown in (b) of fig. 3 is displayed, where the GUI may be referred to as an album interface. The photo album interface can display all photos, video collections, photo collections shot by a camera, photo collections acquired by a screen capture screen and the like in the mobile phone, wherein the videos stored in the mobile phone comprise the video 303.
Referring to (b) in fig. 3, when the mobile phone detects that the user clicks on the video set, the mobile phone may select to play the video 303 in the video set, and display a GUI as shown in (c) in fig. 3.
Referring to (c) in fig. 3, the interface is a playing interface of the video 303, and when the mobile phone detects that the user clicks the playing control 304, the mobile phone may play the video 303.
Referring to (d) in fig. 3, the interface is another playing interface of the video 303, and the mobile phone may play the video 303 through the speaker, where the volume of the mobile phone playing the video 303 through the speaker may be 8.
In one embodiment, the mobile phone may play the video 303 through a speaker, or may play the video 303 through an earphone or an external speaker.
It should be understood that the volume value of the mobile phone playing the video 303 through the speaker, the earphone or the external speaker may be the same or different, and is not limited herein.
Referring to (e) in FIG. 3, when the video 303 is played for 1 minute and 50 seconds, the mobile phone receives a message "Happy Birthday!sent by James through Wechat! The mobile phone may remind the user of the WeChat message through the WeChat message reminding window 304 and play a reminder of the WeChat message through the speaker, where the volume of the WeChat message played by the mobile phone through the speaker may be 2.
It should be understood that when the handset receives the message "Happy Birthday!from James of the user! And when the video is played, the mobile phone can continue to play the video.
In one embodiment, the mobile phone receives a message "Happy Birthday!from James of the user! When the user wants to play the WeChat reminding message, the volume of the mobile phone playing the WeChat reminding message through the loudspeaker is 2, and the volume of the mobile phone playing the video 303 through the loudspeaker when the WeChat reminding message is played can be smaller than or equal to 8.
It should also be appreciated that the duration for which the handset plays the reminder for the WeChat message through the speaker and displays the WeChat reminder message through the WeChat message reminder window 304 can be a predetermined duration.
For example, the duration of the WeChat reminder message played by the mobile phone through the speaker may be 1 second.
For example, the duration of the WeChat message displayed by the handset through the WeChat message reminder window 304 may be 3 seconds. After 3 seconds, the WeChat message reminder window 304 may automatically collapse/disappear.
Referring to (f) in fig. 3, when the video 303 is played for 2 minutes and 25 seconds, the alarm of the mobile phone rings, and the mobile phone can display the alarm information "8 o' clock and 12 minutes in the morning" in the alarm reminding window 305, and simultaneously the mobile phone can play the alarm ring through the speaker, wherein the volume of the alarm ring played through the speaker by the mobile phone can be 10.
In one embodiment, the cell phone may automatically pause the playing of the video 303 when the cell phone alarm rings.
In another embodiment, the cell phone may continue to play the video 303 when the cell phone detects that the user paused the alarm (e.g., the cell phone detects a user action to collapse the alarm bell window 305 upward).
It should be understood that the set of GUIs shown in fig. 3 introduces that in the same application, the volume values corresponding to different audio streams (streams) can be stored, wherein the volume values of different streams can be different or the same.
In the embodiment of the application, the volume values corresponding to different audio streams (streams) are stored in the mobile phone under the same application program, so that different volume values can be played for different scene playing devices, the operation complexity of a user can be reduced, the operation efficiency of the user can be improved, the intelligent degree of the electronic device can be improved, and the user experience can be improved.
For example, the multimedia volume of the game APP can be set to 8, the notification volume to 1, and the warning volume to 0 by the user, so that the notification sound of the new message and the ringing sound of the alarm are relatively small when the game is played, and the game experience of the user is not affected.
For example, the user can set the notification volume to be 0 and the warning volume to be 0 under the fitness APP during fitness, so that the user can not be disturbed by new messages and alarms during fitness, thereby being capable of exercising with concentration and improving the user experience of the user during fitness.
For example, when a user is in a noisy environment and waits for a friend's phone while listening to music, the multimedia volume under the music APP can be set to 8 and the warning volume can be set to 12, so that when the mobile phone rings, the user can timely know the incoming call of the friend.
In the embodiment of the present application, the volume of the audio stream (stream) played by the mobile phone through the speaker includes, but is not limited to, multimedia (media) volume, call (call) volume, notification (notification) volume, and alert (alarm) volume. Wherein, the volume of the playing video 303 shown in fig. 3 may belong to the multimedia volume; the volume of the WeChat message may be the notification volume; the volume of the alarm bell may be the warning volume.
According to the method for controlling the volume, the corresponding relation between the type of the audio stream and the volume value is stored in the electronic equipment, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction can be improved, the user operation can be reduced, the learning cost of the user can be reduced, and the user experience can be improved.
In one embodiment, the volume of the stream (stream) output for different audio output devices may also be different.
Fig. 4 shows another set of GUIs for a handset. The mobile phone can be connected with the Bluetooth sound box, and the video 303 is played through the Bluetooth sound box.
Referring to the GUI shown in fig. 4 (a), the mobile phone may play the video 303 through the (wireless) bluetooth speaker, wherein the volume of the video 303 played by the mobile phone through the bluetooth speaker may be 9.
Referring to the GUI shown in FIG. 4 (b), when the video 303 is played for 1 minute 50 seconds, the handset receives a message "Happy Birthday!sent by user James through Wechat! The mobile phone can play the reminder of the WeChat message through the Bluetooth sound box, wherein the volume of the reminder of the WeChat message played by the mobile phone through the Bluetooth earphone can be 3.
Referring to the GUI shown in (c) of fig. 4, when the video 303 is played for 2 minutes and 25 seconds, the alarm of the mobile phone rings, and the mobile phone can play the alarm ring through the bluetooth speaker, wherein the volume of the alarm ring played by the mobile phone through the bluetooth speaker is 11.
It should be understood that the two sets of GUIs shown in fig. 3 and 4 describe the same application, and that different audio streams (streams) in different audio output devices may correspond to different volume values.
In the embodiment of the application, the volume values of the audio streams (stream) output by the mobile phone through different audio output devices can be different, which is beneficial to improving the user experience.
In the embodiment of the present application, the audio output device of the mobile phone includes, but is not limited to, a speaker (microphone), a headset (headset), a bluetooth device, and the like.
In one embodiment, the volume of the output audio stream (stream) may also be different for different bluetooth devices in the audio output device.
According to the method for controlling the volume, the corresponding relation among the connection type of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction can be improved, the user operation can be reduced, the learning cost of the user can be reduced, and the user experience can be improved.
Fig. 5 shows another set of GUIs for a handset. The mobile phone can be connected with a Bluetooth headset, and the video 303 is played through the Bluetooth headset.
Referring to the GUI shown in (a) of fig. 5, the cell phone may play the video 303 through the bluetooth headset, wherein the volume of the video 303 played through the bluetooth headset by the cell phone may be 6.
Referring to the GUI shown in FIG. 5 (b), when the video 303 is played for 1 minute 50 seconds, the handset receives the message "Happy Birthday!sent by user James through Wechat! The mobile phone can play the reminder of the WeChat message through the Bluetooth headset, wherein the volume of the reminder of the WeChat message played by the mobile phone through the Bluetooth headset can be 4.
Referring to the GUI shown in (c) of fig. 5, when the video 303 is played for 2 minutes and 25 seconds, the alarm ring of the mobile phone rings, and the mobile phone can play the alarm ring through the bluetooth headset, wherein the volume of the alarm ring played through the bluetooth headset by the mobile phone is 5.
In the embodiment of the application, the volume values of the audio streams (stream) output by the mobile phone through different bluetooth devices in the audio output device can be different.
It should be understood that the two sets of GUIs shown in fig. 4 and 5 describe the same application, and that different audio streams (streams) in different bluetooth devices may correspond to different volume values.
It should also be understood that the audio output device includes an earphone and a bluetooth device, and when the audio output device is connected to the mobile phone through a wired earphone, the audio output device may be an earphone; and through the mode of wireless connection, when cell-phone and bluetooth headset connect, this audio output equipment can be the bluetooth headset in the bluetooth equipment.
In the embodiment of the application, in different audio output devices, the volume value of the stream output through the Bluetooth headset can be smaller than the corresponding volume value of the stream output through the Bluetooth sound box, and sudden popping sound after the Bluetooth headset is carried by a user can be avoided, so that the user experience is promoted.
For example, when wearing a bluetooth headset, because the environment is noisy, the user often needs to adjust the volume of the bluetooth headset to a higher level to distinguish it from the ambient sound. When the Bluetooth loudspeaker box is connected to a Bluetooth sound box or a vehicle-mounted Bluetooth device, the Bluetooth volume needs to be adjusted in time to avoid popping. In the embodiment of the application, the mobile phone can be set under the same application program, the volumes of audio streams (streams) output by different audio output devices can be different, and when the earphone is worn, the mobile phone can play multimedia files such as music or video and the like according to higher multimedia volume, so that the multimedia files can be distinguished from environmental sounds; when the mobile phone is connected to the vehicle-mounted Bluetooth device, the mobile phone can automatically play multimedia files such as music or videos according to low multimedia volume, so that the influence of the pop sound on user experience is avoided.
In one embodiment, the audio streams (streams) may also have different volumes in different applications.
Fig. 6 shows another set of GUIs for a handset.
Referring to the GUI shown in (a) of fig. 6, the GUI is a desktop of a mobile phone. When the mobile phone detects that the user clicks the icon 601 of the music application on the desktop, the music application may be started, and a GUI as shown in (b) of fig. 6 may be displayed, where the GUI may be referred to as a music playing interface.
Referring to the GUI shown in fig. 6 (b), when the mobile phone detects the operation of the user clicking on the control 602, the mobile phone may play music "invisible wings".
Referring to the GUI shown in (c) of fig. 6, the handset may play music through a speaker, where the volume at which the handset plays music through the speaker may be 7.
Referring to the GUI shown in (d) of FIG. 6, when the mobile phone plays the music for 1 minute and 5 seconds, the mobile phone receives the WeChat message "Happy Birthday!sent by the user Frank! The mobile phone can remind the user of the content of the WeChat message through the WeChat reminding window 603 and can play the reminder of the WeChat message through the loudspeaker, wherein the volume of the reminder of the WeChat message played by the mobile phone through the loudspeaker is 0.
It should be understood that when the mobile phone receives the message "Happy Birthday!sent by the user Frank! When the music is played, the mobile phone can also continue to play the music.
In one embodiment, the mobile phone receives the message "Happy Birthday!sent from Frank! When the user wants to play the WeChat reminding message, the volume of the mobile phone playing the WeChat reminding message through the loudspeaker is 0, and the volume of the mobile phone playing the video 303 through the loudspeaker can be smaller than or equal to 7.
Referring to the GUI shown in (e) in fig. 6, when the mobile phone plays the music for 3 minutes and 19 seconds, the alarm of the mobile phone rings, and the mobile phone may display the alarm reminding information "8 o' clock 18 minutes in the morning" through the alarm reminding window 604, and simultaneously play the alarm ring through the speaker, wherein the volume of the alarm ring played through the speaker by the mobile phone may be 12.
It should be understood that in the two sets of GUIs shown in fig. 3 and 6, where different applications are introduced, different audio streams (streams) may correspond to different volume values.
In the embodiment of the application, the volumes of the audio streams (streams) of the same type may also be different in different applications, which may help to improve user experience.
For example, the electronic equipment is used for listening to music, watching videos and playing games every day, and the earphone is worn and taken off. Sometimes the user clearly remembers that the volume has just been turned down in the music APP, but that four jarring sounds are emitted while watching the video in the video APP. Or, the volume of the video APP used by the user is different when the user watches the video, and the user always needs to continuously adjust the proper volume. In the embodiment of the application, volume adjustment/setting of different APP and different audio streams (streams) is provided, so that the situation that a user adjusts the volume manually is avoided, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic equipment is improved, and personalized setting experience is provided for the user.
The above describes several sets of GUIs in the embodiments of the present application, and different audio streams in the same application may correspond to different volume values; alternatively, the same audio stream in different applications may correspond to different volume values; or, different audio streams output by the same audio output device in the same application program may correspond to different volume values; alternatively, the same audio stream output in different audio output devices in the same application may correspond to different volume values. Namely, in the embodiment of the application, the electronic equipment can store the corresponding relation of the APP ID-stream type-volume values; or the electronic equipment can store the corresponding relation of the APP ID-stream type-device-volume values.
The following describes a process of acquiring a specific volume value by an electronic device in an embodiment of the present application with reference to the drawings.
Fig. 7 shows a schematic flow chart of a method 700 of controlling a volume in an embodiment of the application, and referring to fig. 7, the method 700 includes:
the electronic device detects 710 a first operation by a user.
The first operation may be any operation of starting the APP, that is, as long as an effective operation of starting the APP by the user is detected.
For example, the first operation may be a preset specific operation, for example, the first operation is a specific general operation, such as double-click, long-press, pressure operation, finger joint operation, folding or unfolding of a screen, voice input, body sensing operation, and the like. The first operation may also be a specific function operation, for example, a certain function is turned on, and other functions are similar and will not be described again. Opening a certain function can be realized by opening a gesture (for example, opening a function of a telephone APP by sliding a C, opening an electronic mailbox APP by sliding an E, realizing a certain specific function by long-pressing and sliding a certain menu option on an icon, folding the foldable screen, and the like), or by clicking an APP icon, or by switching the APP from a background to a foreground, so that the first operation can be an opening gesture, an operation of clicking the APP icon, or a switching operation.
And 720, the electronic equipment responds to the first operation and determines the current application scene of the electronic equipment.
For example, after detecting that a user clicks an icon of a certain game APP on a desktop of the electronic device, the electronic device opens the game APP, displays an interface of the game APP, and enters a game scene. Specifically, after the electronic device detects that a user clicks an icon (e.g., a royal glory) of a certain game APP on a desktop of the electronic device, the game APP of the application layer sends a label (e.g., PID, UID, etc.) corresponding to the game APP and a process name corresponding to the game APP to the system service module of the framework layer, and the system service module can determine which APP is started through the label and the process name. For example, the electronic device determines that the game APP is started by determining the process identification number and the process name of the game APP. Of course, other existing techniques may be used to determine the APP currently running in the foreground.
The electronic device determines 730 the audio output device and the type of audio stream.
It should be understood that, in the embodiment of the present application, the electronic device determines the current application scenario and determines that there is no actual sequence between the audio output devices. For example, an audio output device (e.g., a headset, a bluetooth speaker, etc.) may have been connected to the electronic device prior to APP start-up; or after the APP is started, the electronic device detects that the audio output device is connected with the electronic device.
For example, when the user inserts the headset into the mobile phone, the mobile phone may obtain whether the headset channel is opened through an internal hardware-software interface. If the mobile phone is opened, the earphone is inserted currently, namely the mobile phone can determine that the currently adopted audio output equipment is the earphone.
For example, when the mobile phone is connected to the bluetooth speaker via bluetooth, the mobile phone may determine that the current audio output device is the bluetooth speaker via the bluetooth function.
Illustratively, when the handset determines that no headset is plugged in and not connected to any bluetooth device, the current audio output device may be determined to be a speaker.
For example, when the mobile phone determines that a video APP is started and detects that a user opens a certain video file, the mobile phone may determine that the type of the current stream is multimedia; when the mobile phone detects an incoming call event in the process of playing a video, the type of the current stream can be determined as ringing; when the mobile phone detects that the user hangs up the incoming call, the mobile phone can continue to play the current video file, so that the type of the current stream is determined to be multimedia.
It should be understood that, in the embodiment of the present application, for the process of determining the types of the audio output device and the stream in the current application scenario, reference may be made to an existing process, and details are not described herein for brevity.
740, the electronic device determines a corresponding volume value according to the identifier of the application program, the audio output device, and the type of the audio stream, wherein the electronic device stores a corresponding relationship among the identifier of the application program, the connection type of the audio output device, the type of the audio stream, and the volume value.
In one embodiment, each application in the electronic device may store a sound table (stream table) in which a correspondence relationship between UID-stream type-device-sound value is stored, where UID represents an identifier of each application program, stream type represents a type of a stream, and device represents a connection type of an audio output device. The UID of each application program in the electronic device is unique, and a volume table can be stored in each application program and used for searching the connection type of the audio output device and the volume value corresponding to the type of the audio stream under the application program.
The electronic device may initialize default values. For example, each time an application is installed on the electronic device, the system may monitor this information and initialize a default sound volume table for the UID corresponding to the application.
In one embodiment, the electronic device may set the sound meter at other times instead of setting the default sound meter at initialization.
For example, the electronic device may obtain a default set of volume tables at the first start-up; or when the electronic equipment starts a certain APP for the first time, the sound scale similar to the APP is obtained and used as the default sound scale.
For example, when the electronic device starts the internet cloud music for the first time, if the volume table of the QQ music is saved in the electronic device before, the electronic device may use the volume table of the QQ music as the default volume table of the internet cloud music.
In the embodiment of the application, when an application program is newly installed on the electronic device, the sound scale of the application program with the similar function to that of the application program can be used as the sound scale, so that when the newly installed application program is started by a user, the electronic device can play audio according to the sound scale of the application program which is preferred by the user, the improvement of the intelligence of human-computer interaction is facilitated, the user operation is reduced, the learning cost of the user is reduced, the personalized setting is provided for the user, and the improvement of the user experience is facilitated.
It should be understood that the electronic device may initialize a default volume table for each APP, or may obtain the volume table from other locations.
For example, when the electronic device starts the youyou video for the first time, the default sound volume table of most users in the youyou video can be obtained from the server as the default sound volume table.
Illustratively, Table 1 shows a volume table for a photo album application.
Table 1 volume table corresponding to photo album application
Figure 433270DEST_PATH_IMAGE001
For example, after the mobile phone installs the music APP, a set of volume tables for the music APP may be initialized. Table 2 shows the corresponding volume table for the music application.
Table 2 volume table for music application
Figure 247642DEST_PATH_IMAGE002
It should be understood that, in table 1 and table 2 above, the magnitudes of the volume values corresponding to UID, stream, and device are merely illustrative, and the embodiment of the present application is not limited thereto.
It should also be understood that, in the embodiments of the present application, no limitation is made on the specific forms of the above tables 1 and 2. Illustratively, the corresponding relation of the UID-device-stream-volume value can be saved in the volume table. Illustratively, Table 3 shows a volume table for another album application.
Table 3 another volume table corresponding to photo album application
Figure 70104DEST_PATH_IMAGE003
When the electronic device detects that the user opens the first application, the electronic device may determine, in the played track, which information is created by the first application corresponding to which UID, and then find the corresponding volume value according to the default volume table, the audio output device, and the type of the audio stream when the first application is initialized.
For example, referring to (d) in fig. 3, after the mobile phone detects that the user opens the album application, the mobile phone may determine that the current application scene is the album application; after the mobile phone determines that the video 303 in the album application is currently being played, the mobile phone may determine that the type of the current stream is multimedia and the audio output device is a speaker. The mobile phone may search the volume table stored in the album application, determine that the corresponding volume value is 8, and play the video 303 according to the volume value 8.
For example, referring to (a) in fig. 4, after the mobile phone detects that the user opens the album application, the mobile phone may determine that the current application scene is the album application; after the video 303 in the album application is currently being played, the mobile phone may determine that the type of the current stream is multimedia and that the audio output device is a bluetooth speaker. The mobile phone may search the volume table stored in the album application, determine that the corresponding volume value is 6, and play the video 303 according to the volume value 6.
When the electronic device detects that the user exits from the first application and starts the second application, the electronic device may determine, in the played track, information created by the second application corresponding to which UID corresponds, and then find the corresponding volume value according to the default volume table, the audio output device, and the type of the stream when the second application is initialized.
For example, as shown in fig. 6, after the mobile phone detects that the user exits from the album application and opens the music application, the mobile phone may determine that the current application scene is the music application. After the mobile phone determines that music "invisible wings" in the music application is currently being played, the mobile phone may determine that the type of the current stream is multimedia and the audio output device is a speaker. The mobile phone can search the volume table stored in the music application, determine that the corresponding volume value is 7, and play the music according to the volume value 7.
Fig. 8 is a schematic diagram illustrating a volume table corresponding to different applications stored in the electronic device in the embodiment of the present application.
In the embodiment of the application, the sound volume tables corresponding to different applications can be stored in the electronic device, the sound volume tables can represent the corresponding relations of the identification of the application program, the audio output device, the types of the streams and the sound volume values, the electronic device can be self-adaptive to different playing scenes to switch the sound volume values, the situation that a user always manually adjusts the sound volume is avoided, the operation complexity of the user is reduced, the operation efficiency of the user is improved, the intelligent degree of the electronic device is improved, and the user experience is improved.
According to the method for controlling the volume, the corresponding relation among the identification of the application program, the connection type of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction can be improved, the user operation and the learning cost of the user can be reduced, personalized setting can be provided for the user, and the user experience can be improved.
In one embodiment, the volume table under each application may store a corresponding relationship between an identifier of the application, a type of the audio stream, a connection type of the audio output device, an identifier of the audio output device, and a volume value.
Fig. 9 shows another schematic diagram of the volume table corresponding to different applications stored in the electronic device in the embodiment of the present application.
For example, when a bluetooth device with a different identifier is accessed, the electronic device may record the identifier information of the current bluetooth device and record the volume saved by the current bluetooth device.
Illustratively, the identification information may be a MAC address of the bluetooth device. The MAC address may be a bluetooth MAC address of a bluetooth device or a WLAN MAC address.
Illustratively, Table 4 shows another volume table for the album application. The sound volume table is the corresponding relation of UID, stream type, device ID and sound volume value, wherein the device ID represents the identification of the audio output equipment.
It should be understood that, in the embodiment of the present application, the device may represent a connection type of the audio output device, and the device ID may represent an identifier of the audio output device. In the embodiment of the present application, the connection types of the audio output devices may be classified into speakers, wired audio output devices (e.g., wired headphones, wired speakers, etc.), wireless audio output devices (e.g., bluetooth headphones, bluetooth speakers, vehicle-mounted bluetooth devices, etc.), and the like. The identifiers of the speaker, the wired audio output device and the wireless connection device may be distinguished according to a uniform identifier, for example, the identifier is identified according to the device unique identifier of the audio output device, and the identification manner of the device unique identifier is not limited at all. The identifiers of the speaker, the wired audio output device, and the wireless audio output device may also be identified according to different identification manners, for example, the wired audio output device may be identified according to a level change rate of a software/hardware interface of the electronic device when the wired audio output device and the electronic device are connected, and the wireless audio output device may be identified according to a unique identifier such as a MAC address and an IP address of the device.
It should also be understood that, in the embodiment of the present application, a scheme in the prior art may be used for identifying a device, and other ways of identifying an audio output device may also be used in the future, and the embodiment of the present application is not limited thereto.
Table 4 another volume table corresponding to photo album application
Figure 337138DEST_PATH_IMAGE004
In this embodiment, the unique identifier of the bluetooth device may be a MAC address of the bluetooth device, or may be other unique identifiers, for example, a ROM version number, a CPU model number, or a combination of one or more pieces of hardware information that can uniquely identify the bluetooth device.
In one embodiment, the volume table under each application may store the correspondence between the identifier of the application, the type of the audio stream, the identifier of the audio output device, and the volume value.
Illustratively, Table 5 shows another volume table for the album application. The sound volume table is the corresponding relation of UID, stream type, device ID and sound volume value.
Table 5 Another volume table corresponding to photo album application
Figure 349087DEST_PATH_IMAGE005
For example, a "1" in the device ID may be an identification of the audio output device. For example, when the electronic device does not detect that a wired audio output device such as a headset is connected to the electronic device while playing audio, it may be determined that the identifier of the audio output device at this time is "1", which represents that the current audio output device is a speaker.
For example, "2" and "3" in the device ID may be the identification of a wired headset and a wired sound box, respectively.
For example, when the electronic device detects that a wired earphone is connected to the electronic device when playing audio, and the electronic device detects that the speed of level change of a software/hardware interface inside the electronic device is a first speed when the audio output device is inserted into the electronic device, the electronic device may determine that the identifier of the audio output device at this time is "2", which represents that the current audio output device is a wired earphone.
For example, when the electronic device detects that a wired headset is connected to the electronic device when playing audio, and the electronic device detects that a level change speed of a software/hardware interface inside the electronic device is a second speed when the audio output device is inserted into the electronic device, the electronic device may determine that the identifier of the audio output device at this time is "3", which represents that the current audio output device is a wired sound box, where the first speed and the second speed are different. Other prior art techniques may also be used to distinguish between different wired audio output devices connected to the electronic device and will not be described further herein.
For example, "4", "5", or "6", etc. may also be included in the device ID, which may be the identification of electronic devices having different MAC addresses or IP addresses, respectively. For example, when the electronic device detects that the bluetooth audio output device is connected to the electronic device when playing audio, the electronic device may learn the bluetooth MAC address of the electronic device, and the electronic device may determine a corresponding volume value according to the audio output device having different MAC addresses.
According to the method for controlling the volume, the corresponding relation among the identification of the application program, the identification of the audio output device, the type of the audio stream and the volume value is stored in the electronic device, so that the user can meet the requirements of the user on different volume values in different scenes, the intelligence of man-machine interaction is improved, the user operation is reduced, the learning cost of the user is reduced, personalized setting is provided for the user, and the user experience is improved.
It should be understood that the device ID in table 5 above is merely exemplary, and other identification means are possible as long as the respective audio output devices connected to the electronic device can be identified and distinguished. For example, different MAC addresses may be used as the identifier of the audio output device, the level change speed may be used as the identifier of the wired audio output device, and the like, which is not limited in this embodiment of the present application. The method for controlling volume in the embodiment of the present application is described above by the method 700, and a GUI interface and a method for adjusting volume value in the embodiment of the present application are described below.
FIG. 10 is a schematic diagram of another set of GUIs provided by an embodiment of the present application.
Referring to the GUI shown in (a) of fig. 10, the GUI is another music application interface of the electronic device. When the mobile phone detects that the user presses the volume key during the music playing process of the mobile phone, for example, the volume value 7 corresponding to the original multimedia volume is adjusted to 9. In this case, the handset may also adjust the volume table saved in the music application, for example, the volume value corresponding to the stream type being multimedia and the audio output device being a speaker is adjusted to 9.
It should be understood that if the mobile phone does not detect the operation of adjusting the volume value of the multimedia by the user again before the mobile phone detects that the user exits the music application, the mobile phone may automatically save the volume value corresponding to the audio output device being the speaker with the type of the audio stream in table 2 being the multimedia as 9.
In one embodiment, the mobile phone can adjust the volume table corresponding to the music application every time the mobile phone detects that the user adjusts the corresponding volume value in the music application; or, the mobile phone may also keep the volume table corresponding to the current music application when detecting that the user exits or moves back to the background.
Referring to the GUI shown in (b) of fig. 10, the GUI is another music application interface of the electronic device. When the mobile phone plays music for 1 minute and 5 seconds, the mobile phone receives the WeChat message, and the mobile phone can determine that the reminding volume value of the loudspeaker for the WeChat message is 3 according to the volume table shown in the table 2. At this time, when the mobile phone detects the operation of pressing the volume key by the user, for example, the volume value 3 corresponding to the original notification volume is adjusted to 0. In this case, the handset may also adjust the volume table saved in the music application, for example, the volume value corresponding to the stream type being notification and the audio output device being a speaker is adjusted to 0.
It should be understood that when the mobile phone detects a WeChat message sent by the user Frank, the mobile phone may determine that the adjustment is for notifying the type of flow if the operation of adjusting the volume value by the user is detected within a preset time period from the display of the reminder window 603. For example, the mobile phone may determine that within 3 seconds from the display of the reminder window 603, if it is detected that the user adjusts the volume value, the mobile phone may adjust from the volume value 3 corresponding to the notification volume, as shown in fig. 3 (b), and the mobile phone adjusts the volume value corresponding to the notification volume from 3 to 0.
It should also be understood that if the handset does not detect again the user's operation of adjusting the volume value of the notification before the handset detects that the user exits the music application, the handset may automatically save the volume value corresponding to the type of the stream in table 2 as the notification and the audio output device as the speaker as 0.
In one embodiment, during the time period when the mobile phone displays the reminder window 603, if the operation of pressing the volume key by the user is detected, the mobile phone may determine that the adjustment is an adjustment of the volume value corresponding to the notification volume.
In an embodiment, when the mobile phone displays the reminding window 603, if the operation of pressing the volume key by the user is detected, the mobile phone can remind the user to select the type of the adjusted audio stream through the reminding window, and after the user selects the type of the audio stream to be adjusted, the mobile phone can adjust the type of the corresponding audio stream. For example, the mobile phone may prompt the user to "whether to adjust the notification volume", and when the mobile phone detects that the user determines to adjust the notification volume, the mobile phone may adjust the volume value corresponding to the notification volume.
Referring to the GUI shown in (c) of fig. 10, the GUI is another music application interface of the electronic device. When the mobile phone plays music for 1 minute and 5 seconds, the alarm of the mobile phone rings, and the mobile phone can determine that the volume value of the loudspeaker for the alarm ring is 12 according to the volume table shown in table 2. At this time, when the cellular phone detects the operation of pressing the volume key by the user, for example, the volume value 12 corresponding to the original warning volume is adjusted to 8. In this case, the handset may also adjust the volume table saved in the music application, for example, the volume value corresponding to the stream type being a warning and the audio output device being a speaker is adjusted to 8.
It should be understood that if the alarm has a ring duration of 60 seconds, the display duration of the reminder window 604 may be 60 seconds when the alarm of the cell phone rings. After 60 seconds, the reminder window 604 can automatically close and the alarm ringing can automatically end. When the handset detects an operation of the user to adjust the volume value in these 60 seconds, the handset can determine that the adjustment is an adjustment for which the type of stream is a warning.
It should also be understood that if the handset does not detect again the user's operation to adjust the volume value of the alert before the handset detects that the user exits the music application, the handset may automatically save the volume value corresponding to the type of stream in table 2 as alert and the audio output device as a speaker as 8.
Illustratively, table 6 shows another volume table corresponding to the music application updated by the music application after the mobile phone exits the music application.
Table 6 another volume table for music applications
Figure 17966DEST_PATH_IMAGE006
The above introduces a way for the mobile phone to save the updated volume table when the user adjusts the volume value in real time through the volume control key. An alternative set of GUIs for adjusting volume values in the embodiments of the present application is described below.
FIG. 11 illustrates another set of GUIs provided by an embodiment of the present application.
Referring to the GUI shown in (a) of fig. 11, the GUI is a desktop of a mobile phone. The GUI includes a plurality of application icons including a setting icon 1101. When the mobile phone detects an operation of the user clicking the setting icon 1101 on the desktop, a setting related function of the mobile phone may be started, and a GUI as shown in (b) of fig. 11 is displayed.
Referring to the GUI shown in (b) of fig. 11, the GUI is a setting interface of a mobile phone. The GUI includes a plurality of function options including wireless and network, device connectivity, desktop and wallpaper and sound, etc., wherein the user can set functions such as do-not-disturb, ring tone, incoming video, vibration and volume value adjustment through the sound function. When the cellular phone detects an operation of the user clicking the sound function 1102, the GUI shown in (c) of fig. 11 is displayed.
Referring to the GUI shown in (c) of fig. 11, the GUI sets an interface for the voice function of the cellular phone. The GUI includes a plurality of function options for sound including mute, vibrate while mute, do not disturb, card 1 incoming call ringtone, card 2 incoming ringtone, vibrate while card 1 rings, vibrate while card 2 rings, and volume value adjustment, etc. When the cell phone detects an operation of the user clicking the volume value adjustment 1103, a GUI as shown in (d) of fig. 11 is displayed.
Referring to the GUI shown in (d) of fig. 11, the GUI sets an interface for the volume value adjusting function of the cellular phone. The user can first select an application program requiring adjustment of the volume value through the setting. As shown in fig. 11 (d), the function setting interface includes a plurality of application programs. When the mobile phone detects an operation of clicking the control 1104 by the user, the GUI shown in (e) of fig. 11 is displayed.
Referring to the GUI shown in (e) of fig. 11, the GUI is a volume value adjustment interface for a music application in a cellular phone. When the mobile phone detects the operation of the user sliding the control 1105, the corresponding volume value may be adjusted.
In the embodiment of the application, the user can adjust the volume value in two modes of adjusting the volume value in real time and adjusting the volume value in advance, and the electronic equipment can automatically update the volume table stored by the application program after detecting that the user adjusts the volume value, so that the volume table can be played according to the volume value adjusted last time when the application program is started next time.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the electronic device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module by corresponding functions, fig. 12 shows a possible composition diagram of the electronic device 1200 involved in the above embodiment, as shown in fig. 7, the electronic device 1200 may include: a detection unit 1201, a determination unit 1202, and a playback unit 1203.
Among other things, detection unit 1201 may be used to enable electronic device 1200 to perform steps 710, etc., described above, and/or other processes for the techniques described herein.
Determination unit 1202 may be used to enable electronic device 1200 to perform steps 720 and 730, etc., described above, and/or other processes for the techniques described herein.
The playback unit 1203 may be used to enable the electronic device 1200 to perform the above-described steps 740, etc., and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the control method, so that the same effect as the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage an action of the electronic device, and for example, may be configured to support the electronic device to execute steps performed by the above units. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having the structure shown in fig. 1.
The present embodiment also provides a computer storage medium, where computer instructions are stored, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the method for controlling volume in the above embodiment.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for controlling volume in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method for controlling the volume in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method for controlling volume, the method being applied to an electronic device, the method comprising:
the electronic device determining an identity of a first application, an identity of a first audio output device, and a type of a first audio stream under the first application, the type of the first audio stream including media, notifications, calls, and alerts;
the electronic equipment determines a first volume value according to the identification of the first application program, the identification of the first audio output equipment under the same connection type, the type of the first audio stream and a mapping relation, wherein the mapping relation comprises the corresponding relation of the identification of each application program in one or more application programs in the electronic equipment, the identification of the audio output equipment under the same connection type, the type of the audio stream and the volume value, and the one or more application programs comprise the first application program;
the electronic equipment plays the audio corresponding to the first audio stream through the first audio output equipment according to the first volume value;
the method further comprises the following steps:
the electronic device determining a type of a second audio stream under a second application, the type of the second audio stream including media, notifications, calls, and alerts;
and the electronic equipment plays the audio corresponding to the second audio stream according to a second volume value through the first audio output equipment, wherein the second volume value is different from the first volume value.
2. The method of claim 1, wherein the identification of the audio output device comprises a Media Access Control (MAC) address or an Internet Protocol (IP) address of the audio output device.
3. The method of claim 1, further comprising:
the electronic equipment detects the operation of adjusting the first volume value by a user;
in response to the operation, the electronic device updates the mapping relationship.
4. A method according to any one of claims 1 to 3, wherein the identity of each application comprises a user identity UID of the each application or a process identity number PID of the each application.
5. An electronic device, comprising:
one or more processors;
one or more memories;
the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the steps of:
determining an identity of a first application, an identity of a first audio output device, and a type of a first audio stream under the first application, the type of the first audio stream including media, notifications, calls, and alerts;
determining a first volume value according to the identifier of the first application program, the identifier of the first audio output device under the same connection type, the type of the first audio stream and a mapping relation, wherein the mapping relation comprises the identifier of each application program in one or more application programs of the electronic device, the identifier of the audio output device under the same connection type, the type of the audio stream and the corresponding relation of the volume value, and the one or more application programs comprise the first application program;
according to the first volume value, playing the audio corresponding to the first audio stream through the first audio output device;
determining a type of a second audio stream under a second application, the type of the second audio stream including media, notifications, calls, and alerts;
and playing the audio corresponding to the second audio stream according to a second volume value through the first audio output equipment, wherein the second volume value is different from the first volume value.
6. The electronic device of claim 5, wherein the identification of the audio output device comprises a Media Access Control (MAC) address or an Internet Protocol (IP) address of the audio output device.
7. The electronic device of claim 5, wherein the instructions, when executed by the one or more processors, cause the electronic device to perform the steps of:
detecting an operation of a user for adjusting the first volume value;
updating the mapping relationship in response to the operation.
8. The electronic device according to any one of claims 5 to 7, wherein the identification of each application comprises a User Identification (UID) of the each application or a process identification number (PID) of the each application.
9. A chip system, characterized in that the chip system comprises at least one processor, which when executed in the at least one processor causes the functionality of the method according to any of claims 1-4 on the electronic device to be implemented.
10. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of controlling volume of any of claims 1-4.
11. A computer program product, characterized in that it causes a computer to carry out a method of controlling the volume according to any one of claims 1-4, when the computer program product is run on the computer.
CN201910713488.5A 2019-08-02 2019-08-02 Method for controlling volume and electronic equipment Active CN110543289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910713488.5A CN110543289B (en) 2019-08-02 2019-08-02 Method for controlling volume and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910713488.5A CN110543289B (en) 2019-08-02 2019-08-02 Method for controlling volume and electronic equipment

Publications (2)

Publication Number Publication Date
CN110543289A CN110543289A (en) 2019-12-06
CN110543289B true CN110543289B (en) 2021-12-31

Family

ID=68710170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910713488.5A Active CN110543289B (en) 2019-08-02 2019-08-02 Method for controlling volume and electronic equipment

Country Status (1)

Country Link
CN (1) CN110543289B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111076807B (en) * 2019-12-18 2022-03-04 瑞声科技(新加坡)有限公司 Method, device and equipment for processing vibration signal and readable medium
CN111163226B (en) * 2019-12-27 2021-06-08 华为技术有限公司 Volume adjusting method, device and system
CN114398020A (en) * 2019-12-30 2022-04-26 华为技术有限公司 Audio playing method and related equipment
CN113721880A (en) * 2020-05-26 2021-11-30 青岛海信移动通信技术股份有限公司 Application program sound control implementation method and electronic equipment
CN114077412A (en) * 2020-08-14 2022-02-22 华为技术有限公司 Data processing method and related equipment
CN112356774B (en) * 2020-09-24 2022-06-10 亿咖通(湖北)技术有限公司 Vehicle-mounted entertainment system for sounding warning sound and function diagnosis method thereof
CN112804593A (en) * 2020-12-31 2021-05-14 上海擎朗智能科技有限公司 Method and device for controlling volume of application system, robot and storage medium
CN113438356B (en) * 2021-05-18 2022-04-08 荣耀终端有限公司 Volume adjusting method, terminal equipment and computer readable storage medium
CN115514844A (en) * 2021-06-07 2022-12-23 华为技术有限公司 Volume adjusting method, electronic equipment and system
CN115729511A (en) * 2021-08-31 2023-03-03 华为技术有限公司 Audio playing method and electronic equipment
CN115580675A (en) * 2022-09-23 2023-01-06 长城汽车股份有限公司 Information output mode control method, information output mode control device, storage medium and vehicle-mounted terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699501A (en) * 2013-12-17 2014-04-02 上海斐讯数据通信技术有限公司 Audio equipment managing method and system of mobile terminal
US20170171497A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Device for Automatically Adjusting Volume
CN106155623B (en) * 2016-06-16 2017-11-14 广东欧珀移动通信有限公司 A kind of audio collocation method, system and relevant device
CN106406803A (en) * 2016-08-31 2017-02-15 青岛海信移动通信技术股份有限公司 Volume control method and device of terminal application
CN107040660A (en) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 Control method, device and the mobile terminal of mobile terminal playing volume
CN108021301A (en) * 2017-11-20 2018-05-11 深圳市金立通信设备有限公司 A kind of volume adjusting method, terminal device and computer-readable recording medium
CN108600526A (en) * 2018-04-04 2018-09-28 Oppo广东移动通信有限公司 Alarm clock control method and related product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"App音量控制";SPYCORP;《https://app-volume-control.cn.uptodown.com/android》;20190712;使用截图 *

Also Published As

Publication number Publication date
CN110543289A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN110543289B (en) Method for controlling volume and electronic equipment
CN109814766B (en) Application display method and electronic equipment
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
WO2021036770A1 (en) Split-screen processing method and terminal device
CN111176506A (en) Screen display method and electronic equipment
WO2021027725A1 (en) Method for displaying page elements and electronic device
WO2021063237A1 (en) Control method for electronic device, and electronic device
WO2020062294A1 (en) Display control method for system navigation bar, graphical user interface, and electronic device
CN112506386A (en) Display method of folding screen and electronic equipment
CN109981885B (en) Method for presenting video by electronic equipment in incoming call and electronic equipment
WO2021082815A1 (en) Display element display method and electronic device
CN114077365A (en) Split screen display method and electronic equipment
CN110989961A (en) Sound processing method and device
CN115729511A (en) Audio playing method and electronic equipment
CN111722896A (en) Animation playing method, device, terminal and computer readable storage medium
CN115933952B (en) Touch sampling rate adjusting method and related device
WO2023197999A1 (en) Display method and electronic device
CN117009099A (en) Message processing method and electronic equipment
CN117311580A (en) Screen splitting method and foldable electronic equipment
CN115083400A (en) Voice assistant awakening method and device
CN117348827A (en) Display method and electronic equipment during display mode switching
CN114816171A (en) List display method, terminal device and computer-readable storage medium
CN114661190A (en) Terminal window display method, terminal and storage medium

Legal Events

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