WO2023142900A1 - 一种音量调整方法与电子设备 - Google Patents

一种音量调整方法与电子设备 Download PDF

Info

Publication number
WO2023142900A1
WO2023142900A1 PCT/CN2022/144271 CN2022144271W WO2023142900A1 WO 2023142900 A1 WO2023142900 A1 WO 2023142900A1 CN 2022144271 W CN2022144271 W CN 2022144271W WO 2023142900 A1 WO2023142900 A1 WO 2023142900A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
gear
electronic device
user
gears
Prior art date
Application number
PCT/CN2022/144271
Other languages
English (en)
French (fr)
Inventor
张时
尹明婕
缪海波
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023142900A1 publication Critical patent/WO2023142900A1/zh

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
    • 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

Definitions

  • the present application relates to the technical field of terminals, and in particular to a volume adjustment method and electronic equipment.
  • the sound playback function is a basic function of most electronic devices. For example, mobile phones, TVs, speakers, tablets, etc. all have sound playback functions. Moreover, for the convenience of users, the electronic device also has a volume adjustment function. For example, an electronic device is provided with a volume up button and a volume down button, which can be used to adjust the volume. Taking a mobile phone as an example, generally, the mobile phone has volume gears, and when adjusting the volume, it can be adjusted one by one.
  • the volume level of the electronic equipment is fixed when it leaves the factory. For example, the lowest level corresponds to 5 decibels (dB), and the highest level corresponds to 30 dB.
  • This volume level setting method cannot be adapted to all users. For example, some users are sensitive to sound, and when the volume is adjusted to the lowest level, the volume is still too loud; Feel the volume is not loud enough.
  • the purpose of the present application is to provide a volume adjustment method and an electronic device, which are used to make the volume of the sound output by the electronic device adapt to the needs of different users.
  • a volume adjustment method is provided, which is applied to electronic equipment.
  • the electronic device may be a mobile phone, a tablet computer, or the like.
  • the electronic device includes N volume gears, N is a positive integer, and the N volume gears include a first gear and a second gear, and the first gear corresponds to the first volume, and the second gear corresponds to the second volume, The difference between the first volume and the second volume is the first difference; when the first condition is met, the electronic device is adjusted to M volume gears, M is a positive integer, and the M tone gears include the third gear and the fourth gear, the third gear and the first gear are the same gear (for example, the third gear and the first gear are both 1 gear), the fourth gear and the second gear are the same gear (For example, both the fourth gear and the second gear are two gears), and the third gear corresponds to the third volume, the fourth gear corresponds to the fourth volume, the difference between the third volume and the fourth volume is the second difference; wherein, the M volume levels satisfy at least one of the following
  • said M is not equal to said N; or,
  • said third volume is not equal to said first volume
  • said fourth volume is not equal to said second volume
  • the second difference is not equal to the first difference.
  • the electronic device adjusts the volume based on the volume curve.
  • the abscissa of the volume curve can be the volume gear
  • the ordinate can be the volume range (including the volume corresponding to each gear)
  • the slope is the volume difference between the two gears.
  • the volume curve of electronic equipment is fixed, which cannot meet the needs of different users.
  • the volume curve of the electronic device can be adjusted, that is, at least one of the volume gear, volume range, and slope can be adjusted.
  • the electronic equipment has N volume levels when it leaves the factory, and the electronic equipment can be adjusted to M levels.
  • M and N can be the same or different, and both M and N are positive integers.
  • electronic equipment has 5 gears when it leaves the factory, and after adjustment, it has 4 gears or 6 gears.
  • the electronic device can also increase or decrease the volume span between two adjacent gears.
  • the volume difference between two adjacent gears for example, 1st gear and 2nd gear
  • the volume difference between the two adjacent gears eg, 1st gear and 2nd gear
  • the intermediate volume between the first gear and the second gear can be selected, and the comfort level is improved.
  • the volume difference between two adjacent gears (such as 1st gear and 2nd gear) when the electronic equipment leaves the factory is 5dB. After adjustment, the volume difference between these two adjacent gears (such as 1st gear and 2nd gear) is 10dB. In this way, a large adjustment of the volume can be realized by adjusting the volume once, and the operation is convenient.
  • the first gear and the second gear are adjacent gears
  • the third gear and the fourth gear are adjacent gears
  • the second The difference is smaller than the first difference
  • a possible scenario is that the user feels the volume is too low in the first gear, and the volume is too high when turned up to the second gear, that is, It is said that users are not satisfied with the volume corresponding to the first gear and the second gear, which makes the user unable to find a comfortable sound gear.
  • the volume adjustment method provided in the present application, the volume difference between adjacent gears can be reduced. In this way, the user can adjust the volume between the first gear and the second gear to improve comfort.
  • the meeting the first condition includes: detecting that the number of times of switching between the first gear and the second gear within a first preset time period is greater than a first preset number of times.
  • a possible scenario is that the user feels the volume is too low when the first gear is turned up, and the volume is too high when it is turned up to the second gear, so the user Switch back and forth between first gear and second gear trying to find a comfortable volume. Therefore, in the present application, when the switching times between the first gear and the second gear are greater than the first preset number, the electronic device reduces the volume difference between the first gear and the second gear. In this way, the user can adjust the volume between the first gear and the second gear to improve comfort.
  • the first gear and the third gear are the highest gear
  • the second gear and the fourth gear are the lowest gear
  • the second difference greater than the first difference that is, the volume difference between the highest gear and the lowest gear increases, ie the volume range increases. In this way, the user can select the desired volume within a larger volume range.
  • the third volume is higher than the first volume, and/or, the fourth volume is lower than the second volume.
  • the volume corresponding to the highest gear ie, the first volume
  • the volume corresponding to the highest gear ie, the third volume
  • the volume corresponding to the lowest gear ie, the second volume
  • the volume corresponding to the lowest gear ie, the fourth volume
  • the user can select the desired volume within a larger volume range.
  • the meeting the first condition includes: receiving an operation for instructing to continue turning up the volume when the first gear has been reached; and/or, when the first gear is currently reached;
  • the second gear an operation of continuing to turn down the volume is received from the user. That is to say, the first gear is the highest gear, and if the electronic device has reached the highest gear currently, if an operation for instructing to continue to increase the volume is received, the volume corresponding to the highest gear is increased.
  • the second gear is the lowest gear, and when the electronic device has reached the lowest gear, if an operation for instructing to continue lowering the volume is received, the volume corresponding to the lowest gear will be lowered. In this way, the user can select the desired volume within a larger volume range.
  • the operation of continuing to turn up the volume includes: a long-press operation on the button used to turn up the volume, or, within a second preset duration, pressing the button used to turn up the volume An operation in which the number of times of pressing is greater than the second preset number of times. That is to say, the first gear is the highest gear, and when the electronic device has reached the highest gear, if the volume up button is pressed for a long time or the volume up button is pressed multiple times in a short period of time, the volume will be increased. The volume corresponding to the highest gear. In this way, the user can select a higher volume without being limited by the volume upper limit of the volume curve of the electronic device.
  • the operation of continuing to turn down the volume includes: a long press operation on the button used to turn down the volume, or, within a third preset time period, pressing the button used to turn down the volume An operation in which the number of times of pressing is greater than the third preset number of times. That is to say, the second gear is the lowest gear, and when the electronic device has reached the lowest gear, if the volume down button is pressed for a long time or the volume down button is pressed multiple times in a short period of time, the volume down button will be lowered. The volume corresponding to the lowest gear. In this way, the user can select a lower volume without being limited by the volume lower limit of the volume curve of the electronic device.
  • the meeting the first condition includes at least one of the following:
  • a volume adjustment operation by the user on the first interface is detected.
  • the volume curve of an electronic device is not fixed, and may change with changes in the user's usage habits, current user, current environment, and connection to external sound output devices.
  • the user may manually adjust the volume curve through a volume adjustment operation in the first interface.
  • the first condition includes that when there is a gear with a frequency of use lower than a threshold among the N volume gears, the adjustment to M volume gears includes: removing the low frequency of use at the threshold level.
  • the volume curve can be adjusted according to the user's usage habits. For example, when the probability that the user uses the first file is low, it can be removed, for example, the original second file can be used as the new first file.
  • the first condition includes that when the current user of the electronic device changes, the adjusting to M volume levels includes: adjusting to M volume levels corresponding to the current user stalls. That is to say, the volume curve of the electronic device can change with the change of the current user, so as to adapt to the needs of different users.
  • the first condition includes that when the current environment of the electronic device changes, the adjusting to M volume levels includes: adjusting to the M volume levels corresponding to the current environment bit. That is to say, the volume curve of the electronic device may change with the current environment. For example, in a noisy environment, the volume corresponding to a gear in the volume curve is higher, and in a quiet environment, the volume corresponding to a gear in the volume curve is lower.
  • the first condition includes that when the electronic device is connected to an external sound output device, the adjustment to M volume levels includes: adjusting to the M volume levels corresponding to the external sound output device.
  • Volume gear That is to say, the volume curve of the electronic device can change with the change of the external sound output device; or, when the electronic device is not connected to the external sound output device, one volume curve is used, and when the electronic device is connected to the external sound output device, another volume curve is used. volume curve.
  • the current gear of the electronic device is adjusted according to changes in at least one of environment, time, user of the electronic device, applications running in the foreground, or connected sound output devices. That is to say, there is no need for the user to manually adjust the current gear, and the current gear can be adjusted adaptively to suit the current environment, current time, current user, current foreground running application, and currently connected device.
  • the method further includes: when the electronic device detects entering the first environment, adjusting the current gear to the fifth gear, the fifth gear is determined based on the first historical record The gear with the highest probability of being used by the user in the first environment; wherein, the first history record includes the probability of using each gear by the user in different environments in history. That is to say, when the electronic device enters a certain environment, it can adjust the gear that has been used more times in the environment in history to the current gear, without manual adjustment by the user, and the operation is convenient.
  • the method further includes: when the electronic device determines that the current time is in the first time period, adjusting the current gear to the sixth gear, the sixth gear is based on the second history Recording the determined gear with the highest probability of being used by the user within the first time period; wherein, the second history record includes the probability of using each gear by the user in different time periods in history. That is to say, when the electronic device is in a certain time period, the gear that has been used more times in the history in this time period can be adjusted to the current gear, without manual adjustment by the user, and the operation is convenient.
  • the electronic device before the electronic device is adjusted to M volume levels, it further includes: displaying a first progress bar in response to the first operation, and describing the current volume through the progress indicated by the first progress bar
  • the electronic device after the electronic device is adjusted to M volume levels, it also includes: in response to the second operation, displaying a second progress bar, and describing the current volume through the progress indicated by the second progress bar; the first progress bar Different from said second progress bar.
  • the electronic device adjusts N volume levels to M volume levels
  • the progress bar displayed by the electronic device changes, which is convenient for prompting the user that the volume level has been adjusted.
  • the first progress bar is different from the second progress bar, and includes at least one of the following:
  • the total length of the first progress bar and the second progress bar are different; or,
  • the moving step of the first progress bar is different from the moving step of the second progress bar, and the moving step is used to indicate the length to be moved when adjusting a gear; or,
  • the number of times of movement of the first progress bar is different from the number of times of movement of the second progress bar, and the number of times of movement is used to indicate the number of times of movement required when adjusting from the lowest gear to the highest gear.
  • the user may be prompted that the volume curve is adjusted through a progress bar.
  • the first step needs to be moved;
  • the second step length needs to be moved, and the first step length is different from the second step length.
  • the total length and the number of times of movement of the first progress bar are related to the N, and the movement step of the first progress bar is the same as two adjacent levels of the N volume levels.
  • the volume difference between bits is related; the total length and the number of movements of the second progress bar are related to the M, and the moving step of the second progress bar is related to the two adjacent gears in the M volume gears
  • the volume difference between bits is correlated.
  • N is, the greater the total length of the first progress bar and the more times of movement
  • M is, the greater the total length of the second progress bar and the more times of movement.
  • the greater the volume difference between two adjacent gear positions the greater the moving step between these two adjacent gear positions. In this way, when the user adjusts the volume, the interactive experience is better.
  • the method further includes: displaying a first prompt bar, where the indicated progress of the first prompt bar is used to describe the current volume; in response to the third operation, displaying a second prompt bar; When the progress on the second prompt bar changes by the first length, the progress on the first prompt bar changes by the second length, wherein the volume change volume corresponding to the first length and the second length are the same, and the The first length is greater than the second length.
  • the electronic device can call out the second prompt bar in response to the third operation. Fine-tuning of the volume is realized on the second prompt bar.
  • the third volume is higher than the first volume, including: the third volume satisfies a formula:
  • Y1 is the third volume; x represents the gear, xmax represents the first gear, f( xmax ) represents the first volume, x1 represents the second gear, f(x 1 ) represents the second volume.
  • the electronic device when it determines that it is currently at the highest gear and determines that the user continues to increase the volume, it may increase the volume to Y1, that is, the third volume.
  • Y1 is obtained according to the above formula, that is, increase on the basis of f(x max ) In this way, the volume is gradually increased and the increased volume will not be too loud, and it will not bring the user a sudden sense of sudden volume increase, as well as a sense of pressure and discomfort to the ear.
  • the fourth volume is lower than the second volume, including: the fourth volume satisfies:
  • Y1 is the fourth volume; x represents the gear, x max represents the first gear, f(x max ) represents the first volume, x1 represents the second gear, f(x 1 ) represents the second volume.
  • Y2 is obtained according to the above formula, that is, subtracting from f(x 1 ) In this way, the volume is gradually reduced and the volume is not reduced too much, and the user will not feel abruptly reduced by a lot of volume at once.
  • the method further includes: using the M volume levels when the speaker on the electronic device plays sound, the earpiece plays sound, or outputs sound through an external sound output device. That is to say, after the volume curve is adjusted by the electronic device, the adjusted volume curve can be applied to scenarios such as when the speaker plays sound, the earpiece plays sound, or outputs sound through an external sound output device.
  • the loudspeaker emits sound, including: at least one of incoming ringtones, hands-free calls, new message notifications, alarm clocks, and sounds output by multimedia applications; the earpiece plays sounds, including: voice Call and/or voice message playback.
  • an electronic device including:
  • processor memory, and, one or more programs
  • the one or more programs are stored in the memory, the one or more programs include instructions, and when the instructions are executed by the processor, the electronic device performs the above-mentioned first aspect provided method.
  • a computer-readable storage medium is provided, the computer-readable storage medium is used to store a computer program, and when the computer program is run on a computer, the computer executes the method as provided in the above-mentioned first aspect .
  • a computer program product including a computer program, and when the computer program is run on a computer, the computer is made to execute the method provided in the first aspect above.
  • a graphical user interface on an electronic device the electronic device has a display screen, a memory, and a processor, and the processor is configured to execute one or more computer programs stored in the memory,
  • the graphical user interface includes a graphical user interface displayed when the electronic device executes the method described in the first aspect above.
  • the embodiment of the present application further provides a chip, the chip is coupled with the memory in the electronic device, and is used to call the computer program stored in the memory and execute the technical solution of the first aspect of the embodiment of the present application.
  • the implementation of the present application "Coupled" in the examples means that two elements are joined to each other directly or indirectly.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a volume adjustment button on an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a volume prompt box on an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a volume curve provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface of an electronic device setting application provided by an embodiment of the present application.
  • FIGS. 7A-7B are schematic diagrams of a volume adjustment method provided by an embodiment of the present application.
  • FIGS. 8A-8B are schematic diagrams of another volume adjustment method provided by an embodiment of the present application.
  • FIGS. 9A-9B are schematic diagrams of another volume adjustment method provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another volume adjustment method provided by an embodiment of the present application.
  • FIG. 11 is another schematic diagram of a volume prompt box provided by an embodiment of the present application.
  • Fig. 14 is a schematic diagram of another volume adjustment method provided by an embodiment of the present application.
  • 15A-15B are schematic diagrams of a prompt bar after volume adjustment provided by an embodiment of the present application.
  • FIG. 16 is another schematic diagram of a prompt bar after volume adjustment provided by an embodiment of the present application.
  • FIG. 17 is a schematic diagram of another method for volume adjustment provided by an embodiment of the present application.
  • 18A-18B are schematic diagrams of fine volume adjustment provided by an embodiment of the present application.
  • FIG. 19 is another schematic diagram of fine volume adjustment provided by an embodiment of the present application.
  • FIG. 20 is another schematic flowchart of a volume adjustment method provided by an embodiment of the present application.
  • FIG. 21 is a schematic diagram of volume adjustment methods in different scenarios provided by an embodiment of the present application.
  • Fig. 22 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the at least one involved in the embodiments of the present application includes one or more; wherein, a plurality means greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing descriptions, and cannot be understood as express or implied relative importance, nor can they be understood as express or imply order.
  • the first operation and the second operation do not represent the importance of the two or the order of the two, but are only used to distinguish the description.
  • “and/or” only describes the association relationship, which means that there may be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone These three situations.
  • the character "/" in this article generally indicates that the associated objects are an "or” relationship.
  • connection can be detachably connected, or It is a non-detachable connection; it can be directly connected or indirectly connected through an intermediary.
  • orientation terms mentioned in the embodiments of the present application such as “upper”, “lower”, “left”, “right”, “inner”, “outer”, etc., are only referring to the directions of the drawings, therefore, use The orientation terms are for better and clearer explanation and understanding of the embodiments of the present application, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, so it cannot be understood as a Limitations of the application examples.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the specification.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • the volume adjustment method provided in the embodiment of the present application is suitable for electronic equipment.
  • the electronic device has a volume adjustment function.
  • the electronic device may be a portable electronic device such as a mobile phone, a tablet computer, or a notebook computer; it may also be a wearable device such as a watch or a bracelet; or, it may also be a smart home device such as a TV or a refrigerator; Or, it can also be a vehicle-mounted device, etc., or, it can also be a virtual reality (Virtual Reality, VR) device, an augmented reality (Augmented Reality, AR) device, a mixed reality technology (Mixed Reality, MR) device, etc., in short
  • VR virtual reality
  • AR Augmented Reality
  • MR mixed reality technology
  • FIG. 1 shows a schematic structural diagram of an electronic device.
  • the electronic device can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope 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, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves and radiate them through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • general packet radio service general packet radio service
  • CDMA code division multiple access
  • WCDMA broadband Code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE long term evolution
  • BT GNSS
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the display screen 194 is used to display the display interface of the application and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store the operating system and software codes of at least one application program (such as iQiyi application, WeChat application, etc.).
  • the data storage area can store data (such as images, videos, etc.) generated during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, save pictures, videos and other files in the external memory card.
  • the electronic device can 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. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through one or more speakers 170A, or listen to external playback scenes such as hands-free calls.
  • Receiver 170B also called “earpiece” can be one or more, and is used to convert audio electrical signals into audio signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the sound of the receiver 170B is smaller than the sound of the speaker 170A, so as to ensure the privacy of voices such as phone calls or voice messages.
  • speaker 170A and/or earphones 170B may include mono or multiple channels.
  • multiple channels are used to provide a stereo effect.
  • multiple channels may be combined.
  • the left and right channels can play the same sound, which can increase the volume.
  • the “mono audio” function can be used to combine multiple channels to increase the volume. Among them, there are many ways to turn on the "mono audio", for example, turn on the "mono audio” function in the setting application.
  • the "telephone noise cancellation” function when the user answers the phone in a noisy place, can also be activated.
  • the “telephone noise cancellation” function means that when a call is answered through the speaker 170A or the receiver 170B, the mobile phone will use the noise reduction microphone on the back of the fuselage to filter the surrounding noise and improve the clarity of the call, thereby improving the quality of the user's call .
  • there are many ways to activate the "phone noise cancellation” function such as voice wake-up or turning on this function in the setting application.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C.
  • the electronic device 100 can be provided with two microphones, which can also implement a noise reduction function in addition to collecting sound signals.
  • the electronic device 100 can also be provided with three, four or more microphones to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone jack can be a USB interface, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (ie, x, y, and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device may detect opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device when the electronic device is a flip machine, the electronic device can detect opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • Electronic devices can measure distance via infrared or laser light. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • Electronic devices emit infrared light outwards through light-emitting diodes.
  • Electronic devices use photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the electronic device. When insufficient reflected light is detected, the electronic device may determine that there is no object in the vicinity of the electronic device.
  • the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint features to unlock fingerprints, access application locks, take pictures with fingerprints, answer incoming calls with fingerprints, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device may reduce the performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device caused by low temperature.
  • the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the electronic device.
  • FIG. 1 do not constitute a specific limitation on the electronic device.
  • the electronic device in the embodiment of the present invention may include more or less components than those shown in FIG. 1 .
  • the combination/connection relationship between the components in FIG. 1 can also be adjusted and modified.
  • Fig. 2 shows a software structural block diagram of an electronic device provided by an embodiment of the present application.
  • the software structure of the electronic device may be a layered architecture, for example, the software may be divided into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. Assuming that the electronic device is an Android system, it may include an application program layer (referred to as the application layer), an application program framework layer (referred to as the framework layer) (framework, FWK), a hardware layer and so on.
  • the application layer an application program layer
  • framework layer framework layer
  • FWK hardware layer and so on.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and more.
  • the window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text 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 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sending out prompt sounds, vibrating electronic equipment, and flashing indicator lights, etc.
  • the Android Runtime includes core library and virtual machine.
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application program layer and the application program framework layer run in the virtual machine.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the system library may also include a sound processing module for adjusting the volume curve.
  • the sound processing module may be a module in the system library, or a module in other layers, such as a module in the application framework layer or the kernel layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the following takes the software structure shown in FIG. 2 as an example to illustrate the volume adjustment process of the electronic device 100 .
  • the touch sensor in the hardware layer detects the touch operation and generates an event interrupt, which includes the time information, position information, operation type, etc. of the touch operation.
  • the hardware layer reports the event interrupt to the high-level layer such as the application framework layer or the system library, and the high-level layer determines which key and function the operation is aimed at based on the time information, position information, and operation type of the touch operation.
  • the high-level layer such as the application framework layer or the system library
  • the high-level layer determines which key and function the operation is aimed at based on the time information, position information, and operation type of the touch operation.
  • an instruction is processed to the sound processing module in the system library.
  • the sound processing module is used to adjust the volume curve, which is the curve based on which the electronic equipment adjusts the volume level.
  • the sound processing module After the sound processing module obtains the volume curve, it sends the volume curve to the audio driver in the kernel layer, so that the audio driver controls the output of the sound output module (such as speaker 170A and/or receiver 170B) in the hardware layer based on the volume curve sound.
  • the audio driver controls the output of the sound output module (such as speaker 170A and/or receiver 170B) in the hardware layer based on the volume curve sound.
  • electronic devices have a sound output function, for example, sound can be output in scenarios such as incoming calls, multimedia playback, and touch feedback.
  • the electronic device also has a volume adjustment function, that is, the user can adjust the volume of the sound output by the electronic device.
  • the electronic device includes a volume adjustment button, which is used to adjust the volume.
  • the volume adjustment button may be a physical button or a virtual button, which is not limited in this application.
  • the position of the volume adjustment button on the electronic device is not limited by the present application. For example, it may be on the front (that is, the side where the display screen is located), or the back (that is, the side opposite to the side where the display screen is located), or the side of the electronic device. side.
  • a volume adjustment button 300 is provided on the right side of the electronic device. It should be understood that, in FIG.
  • the volume adjustment button 300 is located on the right side as an example, but in fact, it may also be located on the left side, the upper side, the lower side, and the like. It should be noted that the volume adjustment through the volume adjustment button 300 is mainly used as an example here, and other volume adjustment methods may actually be included, such as adjusting the volume through a voice command, for example, when the electronic device detects the voice command "turn up the volume” , increase the volume, and decrease the volume when the voice command "Volume Down" is detected. In some embodiments, after the volume is adjusted, the electronic device can also output a voice prompt, such as "the volume has been turned up by 1 level” or "the volume has been turned down by 1 level”.
  • the volume adjustment keys may include a volume up key and a volume down key.
  • the volume up button is used to increase the volume.
  • the volume down button is used to lower the volume.
  • the volume adjustment button 300 includes a volume up button 301 and a volume down button 302 .
  • the volume up button 301 can be marked with "+”
  • the volume down button 302 can be marked with "-”.
  • the volume of the electronic device when it is adjusted, it can be adjusted step by step. For example, the user presses the volume up button 301 once to increase the volume by one level, and presses the volume up button 301 again to increase the volume by another level.
  • the electronic device may display the change of the volume level.
  • the electronic device displays a main interface (home screen).
  • the electronic device detects an operation on the volume up button 301 , it may display an interface as shown in FIG. 4( b ), which includes a volume prompt box 500 .
  • the volume prompt box 500 is used to prompt the current volume.
  • the volume prompt box 500 includes a progress bar, and the progress indicated by the progress bar is used to describe the current volume.
  • the progress bar may be various progress meters, for example, (b) in FIG. 4 is an example of a progress bar, including a volume bar 501 and a prompt point 502 .
  • the cue point 502 is movably arranged on the upper layer of the volume bar 501.
  • the position (i.e. progress) of the cue point 502 on the volume bar 501 can represent the level of the volume level. For example, when adjusting the volume, the cue point 502 is on the volume bar The higher the position on the 501, the greater the volume level.
  • the prompt point 502 is located at the position 503 of the volume bar 501.
  • the display as shown in (c) of FIG. An interface, in which the prompt point 502 is located at a position 504.
  • the position 504 is higher than the position 503, which means that the gear is increased.
  • the position 503 is marked as a dotted line in (c) of FIG. 4 .
  • the volume level of the electronic device may include N levels, where N is an integer greater than or equal to 2.
  • Each of the N files can correspond to a volume value.
  • the highest gear gear is 5 gears, which can correspond to a volume value of 25dB.
  • the numerical values for example, 5dB, 25dB, etc.
  • the volume difference is related, the larger the volume difference, the larger the moving step can be. For example, if the volume difference between gear 1 and gear 2 is 5dB, then move the distance corresponding to 5dB (such as the first distance), and the volume difference corresponding to gear 2 and gear 3 is 10dB, then move the distance corresponding to 10dB (such as two length of the first distance).
  • the electronic device may store a correspondence between the volume level and the volume value.
  • a volume adjustment operation such as a click operation on a volume adjustment button or a drag operation on the prompt point 502
  • the electronic device detects a click operation on the volume up button 301, it determines the upper level volume level of the current volume level, and then determines the volume corresponding to the upper level volume level based on the corresponding relationship, and adjusts to this level.
  • the corresponding relationship between the volume level and the volume value may be the following table 1:
  • volume gear Volume (unit: decibel dB) 1 gear 5dB 2 gears 10dB
  • the volume levels include a total of 5 levels, that is, from level 1 to level 5. It should be understood that more or fewer levels may be included.
  • the corresponding relationship between the volume level and the volume can also be in the form of a function or a curve, for example, the volume curve 500 shown in Figure 5, shown in Figure 5
  • the volume difference between two adjacent stalls is equal, for example, the volume difference between two adjacent stalls is 5dB; in other embodiments, the volume difference between two adjacent stalls
  • the volume difference can also be unequal, for example, the volume difference between the 1st gear and the 2nd gear is 4dB, the volume difference between the 2nd gear and the 3rd gear is 6dB, and so on.
  • the volume curve 500 is located in the X-Y coordinate system, where X represents the gear position and Y represents the volume value (the unit is decibel dB as an example). It can be understood that, in FIG. 5 , the curve 500 is a straight line as an example. It should be understood that the curve 500 can also be a curved line with a certain radian, which is not limited in this embodiment of the present application.
  • the above volume adjustment method (for example, adjusting the volume by clicking the volume adjustment button or dragging the prompt point 502) is applicable to the speaker 170A, the receiver 170B, external audio output devices, and the like.
  • the external sound output device includes earphones, external speakers (such as wireless speakers), etc., which are not limited in this application.
  • the volume curve 500 includes gear range, volume range and volume adjustment accuracy.
  • the gear range is the value range of the abscissa X of the volume curve 500 (for example, from gear 1 to gear 5).
  • the volume range is the value range of the vertical coordinate Y of the volume curve 500 (for example, from 5dB to 25dB).
  • the volume adjustment accuracy is the slope of the volume curve 500 , that is, the volume difference corresponding to two adjacent gears. For example, the slope between gear 1 and gear 2 is 5dB/gap.
  • the volume curve 500 is constant, for example, the volume difference between the gears is constant, or the slope between the gears is constant, or the gear range (ie The value range of X) is fixed, or the volume range (that is, the value range of Y) is fixed.
  • the electronic equipment is configured with a volume curve when it leaves the factory, and the volume curve cannot be adjusted.
  • such a fixed volume curve cannot meet the needs of different users.
  • user A has a relatively sensitive sense of hearing and is accustomed to lower volumes. Generally, he only uses the low gears of electronic equipment, and rarely uses the high gears. In some cases (for example, currently in a quiet environment), when user A adjusts to the lowest gear (for example, gear 1), he still feels that the volume is too loud for a comfortable experience.
  • gear 1 for example, gear 1
  • user B's hearing is not sensitive, and he is used to higher volumes. Generally, he only uses the high-end electronic equipment, and rarely uses the low-end. In some cases (for example, currently in a noisy environment), when user B adjusts to the highest gear (for example, gear 5), he still feels that the volume is too low and the experience is poor.
  • gear 5 for example, gear 5
  • the volume curve can be adjusted, for example, at least one of gear range, volume range, and volume adjustment accuracy (the volume difference between gears) can be adjusted.
  • the electronic equipment has N volume levels when it leaves the factory, and the electronic equipment can be adjusted to M levels.
  • M and N can be the same or different, and both M and N are positive integers.
  • electronic equipment has 5 gears when it leaves the factory, and after adjustment, it has 4 gears or 6 gears.
  • the volume corresponding to the lowest gear when the electronic equipment leaves the factory is 5dB, and after adjustment, the lowest gear corresponds to 3dB. In this way, for user A who is more sensitive to sound, there is a lower volume for him to choose, which improves the experience.
  • the highest gear corresponds to 25dB when the electronic equipment leaves the factory, and after adjustment, the highest gear corresponds to 30dB. In this way, for user B who is not sensitive to sound, there are higher sound options to improve the experience.
  • the electronic device can also increase or decrease the volume span between two adjacent gears.
  • the volume difference between two adjacent gears for example, 1st gear and 2nd gear
  • the volume difference between the two adjacent gears eg, 1st gear and 2nd gear
  • 3dB the volume difference between the two adjacent gears
  • user D can also adjust the volume difference between gear 1 and gear 2 to 7dB, and/or adjust the volume difference between gear 3 and gear 4 to 3dB.
  • a possible implementation manner is that the electronic device provides a first interface, and the user can adjust at least one of gear range, volume range, and volume adjustment accuracy in the first interface.
  • the first interface may be an interface of a setting application in the electronic device.
  • the electronic device displays a main interface 600 .
  • the main interface 600 includes an icon 601 of the setting application.
  • a setting interface 602 as shown in (b) of FIG. 6 is displayed.
  • the setting interface 602 includes a sound and vibration option 603 .
  • a sound and vibration setting interface 604 as shown in (c) of FIG. 6 is displayed.
  • the interface 604 includes a volume level adjustment window 605 and a volume upper limit adjustment box 609 .
  • the volume level adjustment window 605 is used to adjust the volume level (ie, the X value range of the volume curve)
  • the volume upper limit adjustment box 609 is used to adjust the volume range (ie, the Y value range of the volume curve).
  • the volume level adjustment window 605 includes option 606 and option 607 .
  • the option 606 corresponds to the default highest gear, which is the highest gear configured when the electronic device leaves the factory, for example, the highest gear 5 corresponding to the volume curve 500 in FIG. 5 .
  • Option 607 is used for the user to define the highest gear, for example, the input box 608 is used for the user to input the user-defined highest gear. Only one of option 606 and option 607 is selected at the same time. When option 606 is selected, option 607 is automatically deselected; or when option 607 is selected, option 606 is automatically deselected.
  • Volume cap adjustment box 609 includes line 610 .
  • the line 610 is stretchable to fill in the volume upper limit adjustment box 609 . The longer the length of the line 610 is, the larger the volume upper limit is.
  • option 606 is selected in the volume level adjustment window 605, option 607 is not selected, and the input box 608 is in an uneditable state (for example, it is displayed in gray scale), and the volume upper limit adjustment box 609
  • the middle line 610 is located at a position 611 and is used to indicate a default upper limit, such as the maximum volume of 25dB corresponding to the volume curve 500 in FIG. 5 .
  • the display is as shown in (a) in FIG. 7A interface, in which line 610 is at position 612.
  • the position 612 is to the right of the position 611, which means that the upper limit of the volume is increased.
  • the specific increase is related to the distance between the position 612 and the position 611. The larger the distance, the greater the increase value.
  • One possible way is to store the relationship between the distance value and the volume value in the electronic device, and based on the corresponding relationship, the volume value corresponding to the distance between the position 612 and the position 611 can be determined, and the volume value needs to be increased.
  • the volume upper limit value is 25dB by default, and the volume value corresponding to the distance between position 612 and position 611 is determined to be 15dB based on the corresponding relationship, then the adjusted volume upper limit value is 40dB.
  • FIG. 7B is the volume curve 701 after the volume upper limit is adjusted. Comparing the curve 701 with the curve 500 (the default curve) in FIG. 5, it can be seen that the gear range remains unchanged, and the volume range is adjusted to 5dB-40dB, that is, the value range of the abscissa remains unchanged, and the value range of the ordinate changes.
  • volume values corresponding to the 1st to 4th gears on the curve 701 in (a) of FIG. 7B remain unchanged, and only the volume values corresponding to the 5th gears are adjusted to 40dB.
  • the corresponding volume value can also be changed, for example, as shown in (b) of FIG. 7B , as long as the volume range (ie, the Y range of the ordinate) is 5dB-40dB.
  • Fig. 7A (a) and Fig. 7B take the example of adjusting the volume upper limit with the gear range unchanged. It can be understood that the volume upper limit can also be adjusted, and the principle is the same as the above-mentioned principle of adjusting the volume upper limit.
  • the interface 604 also includes a volume lower limit adjustment box 614, and the volume lower limit adjustment box 614 is used to adjust the volume lower limit, that is, the volume corresponding to the lowest level. That is to say, both the volume upper limit and the volume lower limit can be adjusted according to the needs of the user.
  • the input box 608 enters an editable state.
  • FIG. 8A Input the highest gear in box 608, for example, the user inputs 6, and the electronic device adjusts the highest gear to 6th gear.
  • the corresponding curve is the adjusted volume curve 801 as shown in (a) of FIG. 8B .
  • the curve 801 has the abscissa gear expanded to 6 gears, but the range of the ordinate remains unchanged. In this case, the volume value corresponding to each gear can be adjusted accordingly.
  • Figure 8A and Figure 8B take the volume range unchanged, but increase the volume gear as an example, it can be understood that the volume range can also be reduced, for example, the default highest gear is reduced from 5 gears to the highest gear 4 gears, The implementation principles are similar and will not be repeated here.
  • volume level and volume range one parameter is kept unchanged and the other is adjusted as an example. In some other embodiments, they can also be adjusted together.
  • the line 610 may remain unchanged, and when the electronic device detects the user's adjustment operation on the line 610 (for example, drag operation to the right), Increase the volume upper limit value, see Figure 9A for example.
  • the position of line 610 is shifted to the right to position 612 . That is, the user adjusts the highest gear and adjusts the volume upper limit value.
  • the increased volume value is 15dB, please refer to (a) in FIG. 9B , which is the adjusted volume curve 901 .
  • the curve 901 has the highest gear adjusted to 6 gears, and the volume range is also adjusted to 5-40 gears. It should be noted that the volume values corresponding to the 1st to 5th gears on the curve 901 in (a) of FIG. 9B remain unchanged, and only the volume corresponding to the 6th gears is adjusted to 40dB. In other embodiments, the 1st to 5th gears The corresponding volume value can also be changed, for example, as shown in (b) of FIG. 9B , as long as the volume range (that is, the Y range of the ordinate) is 5dB-40dB.
  • the electronic device when the electronic device detects that the highest gear is adjusted to the 6th gear, it can automatically adjust the line 610 to the position 612 . That is, when the user increases the highest gear, the volume upper limit value increases accordingly.
  • the interface 604 includes more buttons 613 .
  • the electronic device detects an operation on more keys 613, it displays an interface 1000 as shown in (a) in FIG. 10 .
  • the interface 1000 includes gear identifications (for example, gear 1 to gear 5) and a volume bar corresponding to each gear. The longer the volume bar, the louder the volume.
  • the electronic device detects the operation of adjusting the volume bar 1001 corresponding to gear position 1, and displays an interface as shown in Figure 10 (b), in which the volume bar 1001 corresponding to gear position 1 Shortening means reducing the volume corresponding to gear 1.
  • the user opens the interface 604 through the setting application and adjusts the volume curve in the interface 604 as an example.
  • the interface 604 may also be opened in other ways.
  • a setting icon 1000 is included in the volume prompt box 500 .
  • an interface 604 is opened.
  • the electronic device detects the voice instruction for instructing volume adjustment, it opens the interface 604 .
  • the present application does not limit the specific manner of opening the interface 604 .
  • the interface 604 provided above is only an example, and in actual design, the interface 604 may be designed in other forms, which are not limited in this embodiment of the present application.
  • the user adjusts the volume curve in the first interface as an example.
  • the electronic device can automatically adjust the volume curve.
  • the default volume curve is the volume curve 500 in FIG. 5 as an example for description below.
  • the electronic device gear range unchanged and adjust the volume range as an example.
  • the default volume gear of the electronic device includes N gears as an example, and adjusting the volume range may include adjusting the volume corresponding to any of the N gears. to adjust the volume.
  • the process includes:
  • the electronic device determines that the current gear is the i-th gear, where i is any positive integer from 1 to N.
  • S1704-S1705 means that the current gear has reached the lowest gear
  • the implementation process includes S1706-S1709.
  • the electronic device detects a first preset operation on the volume up button.
  • the first preset operation may be an operation of long pressing the volume up button 301 , or an operation of pressing the volume up button 301 for a preset number of times within a preset time period.
  • a possible scenario is that the electronic device has reached the highest gear, but the user feels that the volume corresponding to the highest gear is not loud enough and wants to continue to increase the volume, so the user continues to press the volume up button 301 .
  • the first volume is higher than 25dB.
  • the first volume may be any volume value above 25dB.
  • the first volume may be obtained using a certain calculation method. For example, it is obtained using the following formula, which satisfies:
  • Y1 is the first volume
  • X represents the gear position
  • x max represents the maximum value of the default gear, for example 5
  • f(x max ) represents the volume value corresponding to the maximum gear, and the ordinate corresponding to 5 gears on the volume curve.
  • x 1 represents gear 1
  • f(x 1 ) represents the volume value corresponding to gear 1, that is, the ordinate corresponding to gear 1 on the volume curve.
  • first prompt information may also be output.
  • the first prompt information is used to prompt the user whether to continue to increase the volume, having reached the default highest gear. If the electronic device receives the confirmation instruction, execute S1703. Exemplarily, as shown in (a) of FIG. 13 , the electronic device has reached the maximum volume, that is, the prompt point 502 has been located at the highest point of the prompt bar. At this point, if the electronic device detects the first preset operation on the volume up button 301 , an interface as shown in (b) in FIG. 13 is displayed, and a prompt message 1800 is displayed in the interface. The prompt message 1800 is used to prompt whether to continue to increase the volume after reaching the maximum volume.
  • the electronic device can also display a confirm button 1801 and a cancel button 1802 .
  • the electronic device detects that the user triggers the operation of the confirmation button 1801, it turns up to the first volume (ie, the volume calculated by the above formula).
  • the electronic device detects that the user triggers the operation of the confirmation button 1801
  • an interface 604 shown in (a) or (b) of FIG. 7A is displayed, and the user can manually adjust in the interface 604 .
  • the electronic device detects that the user triggers the operation of the cancel button 1802
  • the volume is not turned up.
  • the volume corresponding to the Nth gear when the electronic device is turned up to the first volume, the volume corresponding to the Nth gear can be adjusted to the first volume, that is, the ordinate corresponding to the Nth gear on the volume curve can be adjusted to the first volume.
  • the electronic device detects that the number of times the volume has been turned up to the first volume when it is in the Nth gear is greater than the first preset number of times in history, and then adjusts the volume corresponding to the Nth gear to the first volume.
  • the electronic device increases the volume corresponding to the highest gear to the first volume, if the user still feels that the volume is not loud enough, the user may continue to increase the volume corresponding to the highest gear.
  • the principle of the method is the same and will not be repeated here.
  • the sound output module such as the speaker 170A or the receiver 170B, etc.
  • the threshold value of the sound output module is stored in the electronic device, and the threshold value is the maximum volume that the hardware of the sound output module (such as speaker 170A or receiver 170B, etc.) can withstand. If the threshold value is exceeded, the hardware will be damaged. .
  • the volume of the electronic device is adjusted to the highest level and is about to reach the threshold, other methods can be used to continue to increase the volume, so as to ensure that the hardware is not damaged if the threshold is not exceeded.
  • other methods can be used to continue to increase the volume, so as to ensure that the hardware is not damaged if the threshold is not exceeded.
  • the electronic device has A speakers, and A is a positive integer.
  • B speakers When answering an incoming call, only B speakers are turned on, and B is a positive integer smaller than A.
  • the volume of the B speakers can be increased first. If the volume of the B speakers is about to reach the threshold, at least one of the following methods 1 to 3 can be used:
  • Method 2 combine multiple channels, for example, the left channel and the right channel output the same sound, so as to increase the volume.
  • the "telephone noise cancellation” function can be activated, which is used to filter the surrounding noises and improve the clarity of the output sound of the electronic device, thereby improving the quality of the user's call.
  • the electronic device detects a second preset operation on the volume down key.
  • the second preset operation may be a long press of the volume down button 302, or an operation of pressing the volume down button 302 for a preset number of times within a preset time period, and so on.
  • the volume corresponding to the first file is 5dB, then the second volume is lower than 5dB.
  • the second volume may be any volume value below 5dB.
  • the second volume may be obtained using a certain calculation method. For example, it is obtained using the following formula, which satisfies:
  • Y2 is the second volume;
  • x represents the gear position,
  • x max represents the maximum value of the default gear position, such as 5,
  • f(x max ) represents the volume value corresponding to the maximum gear position, and the ordinate corresponding to the 5th gear position on the volume curve.
  • x 1 represents gear 1
  • f(x 1 ) represents the volume value corresponding to gear 1, that is, the ordinate corresponding to gear 1 on the volume curve.
  • second prompt information may also be output.
  • the second prompt message is used to prompt the user whether to continue to lower the volume because the minimum gear has been reached at present. If the electronic device receives the confirmation instruction, execute S1705. Exemplarily, as shown in (a) of FIG. 14 , the electronic device has reached the minimum volume, that is, the prompt point 502 has been located at the lowest point of the volume bar 501 . At this time, if the electronic device detects the second preset operation on the volume down button 302 , an interface as shown in (b) in FIG. 14 is displayed, and a prompt message 1900 is displayed in the interface. The prompt message 1900 is used to prompt whether to continue to lower the volume after the minimum volume has been reached.
  • the electronic device also displays a confirm button 1901 and a cancel button 1902 .
  • the electronic device detects that the user triggers the operation of the confirmation button 1901, it turns down to the second volume (ie, the volume calculated by the above formula).
  • the interface 604 shown in (a) or (b) of FIG. 7A is displayed, and the user can manually adjust in the interface 604 .
  • the electronic device detects that the user triggers the operation of the cancel button 1902, the volume is not turned down.
  • the volume corresponding to the first gear when the electronic device is turned down to the second volume, the volume corresponding to the first gear can be adjusted to the second volume, that is, the ordinate corresponding to the first gear on the volume curve can be adjusted to the second volume.
  • the electronic device detects that the number of times the volume has been lowered to the second volume when it is in the first gear is greater than the second preset number of times in history, and then adjusts the volume corresponding to the first gear to the second volume.
  • the electronic device detects a switching operation between the i-th gear and the i+1-th gear.
  • the switching operation between the i-th gear and the i+1-th gear may include switching between the i-th gear and the i+1th gear only once, or switching multiple times, for example, the number of switching times is greater than a threshold (for example, number of times).
  • a threshold for example, number of times.
  • switching once as an example it includes: the electronic device is currently in the i-th gear, at the first moment, it is detected that the operation on the volume up button 301 is turned up to the i+1th gear, and at the second moment, it is detected that the volume-up button 301 is operated.
  • the operation of the volume down button 302 turns back to the i-th gear.
  • the time difference between the first moment and the second moment is smaller than the first preset time.
  • a possible scenario is that the user feels that the volume is too low in the i-th gear, and when it is turned up to the i+1th gear, the user feels that the sound is too high, and then adjusts back to the i-th gear.
  • the third volume is between the volume corresponding to the i-th file and the i+1-th file
  • the third volume can be understood as the intermediate volume between the i-th file and the i+1-th file .
  • the third volume is any volume value between the volume corresponding to the i-th gear and the volume corresponding to the i+1th gear.
  • the third volume is an average value of the volume corresponding to the i-th file and the volume corresponding to the i+1-th file. That is, the third volume is obtained according to the following formula:
  • Y3 is the third volume.
  • x represents the gear position
  • x i represents the i-th gear position
  • f(x i ) represents the volume value corresponding to the i-th gear position
  • x i+1 represents the i+1th gear
  • f(x i+1 ) represents the volume value corresponding to the i+1th gear.
  • the volume corresponding to the i-th file or the i+1 file can be adjusted to the third volume, that is, the volume corresponding to the i-th file or the i+1 file on the volume curve.
  • the ordinate is adjusted to the third volume.
  • the number of times the volume is adjusted to the third volume is greater than the third preset number of times, and then the i-th file or the i+1-th file corresponds to The volume is adjusted to the second volume.
  • the electronic device updates the volume curve.
  • the updated volume curve can be used for adjustment when the volume is adjusted next time.
  • the electronic device adjusts the gear range according to the number of times and/or the frequency of use of different gears by the user. For example, electronic devices have 5 gears by default. The electronic device counts that within the preset time period, the number of uses of the fifth gear is less than the threshold, then it is considered that the volume of the fifth gear is not suitable for the user. At this time, the fifth gear can be canceled and only the first four gears are retained. For another example, if the electronic device counts that the number of uses of the first gear within the preset time period is less than the threshold, then the first gear of the curve, for example, uses the original second gear as the new first gear, and the original third gear as the new first gear. New 2nd gear, and so on.
  • volume level and the volume range one parameter remains unchanged and the other parameter is automatically adjusted as an example. In other embodiments, they can also be automatically adjusted together.
  • S1706 to S1707 in the preceding figure 17 are used to adjust the volume difference between the i-th file and the i+1-th file.
  • Embodiment 1 and Embodiment 2 are combined, the user uses the method of Embodiment 1 to customize the volume curve in the setting application, and then the electronic device uses the customized volume curve to output sound. Afterwards, the electronic device may adjust the user-defined volume curve using the method of Embodiment 2.
  • the volume curve is adjusted.
  • the first condition includes at least one of the following:
  • the electronic device determines that the current user is user 1
  • the electronic device adjusts the volume curve to the volume curve corresponding to user 1.
  • the volume curve corresponding to user 1 is adjusted to the volume curve corresponding to user 2.
  • the volume curve corresponding to user 1 may be determined according to the habits or characteristics of user 1.
  • the volume curve corresponding to user 2 may be determined according to the habits or characteristics of user 2. For example, user 1 has better hearing, and when the electronic device detects that user 1 is using the electronic device, the volume curve corresponding to the person with better hearing can be used; user 2 has poor hearing, and the electronic device detects that user 2 is using the electronic device , you can use the volume curve corresponding to the hearing impaired. Wherein, considering the hearing ability, the volume upper limit of the volume curve corresponding to the poor hearing person may be greater than the volume upper limit of the volume curve corresponding to the better hearing person.
  • the electronic device can judge the habits or characteristics of the users 1 and 2 through the images of the users 1 and 2 collected by the camera, and then determine the user 1 and the user 2's The volume curve corresponding to the hearing ability. Among them, the characteristics (for example, age) of the user 1 and the user 2 are judged through the images.
  • the volume curve corresponding to user 1 may be the volume curve set by user 1 on the electronic device in history.
  • the volume curve corresponding to user 2 may be the volume curve set by user 2 on the electronic device in history.
  • the way of setting the volume curve is like the way of the first embodiment or the second embodiment above, and will not be repeated. That is to say, when the electronic device determines that the current user is the user 1 , the electronic device adjusts the volume curve to the volume curve set by the user 1 . When the electronic device determines that the current user changes from user 1 to user 2, it adjusts the volume curve to the volume curve set by user 2 layer. In this way, when different users use the electronic device, a volume curve that conforms to the usage habits of the current user can be used.
  • the electronic device if the electronic device detects that the current user has changed from user 1 to user 2, but the electronic device does not store the volume curve corresponding to user 2, it can be adjusted to a default volume curve.
  • the electronic device determines to switch from a quiet environment to a noisy environment, it switches the volume curve used in the quiet environment to the corresponding volume curve in the noisy environment.
  • the electronic device stores the corresponding relationship between the ambient volume and the volume curve, and when the electronic device detects that the ambient sound of the current environment changes, based on the corresponding relationship, the volume curve corresponding to the changed ambient sound is determined .
  • the corresponding relationship between the ambient sound and the volume curve is as follows in Table 2:
  • the electronic device can detect the ambient sound through the microphone. For example, when the microphone detects that the ambient sound of the current environment is between 0-50db, the volume curve 1 is used; when the detected ambient sound is 70db-100db, Use volume curve 3.
  • the electronic device is connected to an external sound output device.
  • the volume curves corresponding to different external sound output devices may be volume curves respectively set when the user connects the electronic device to different external output devices. For example, when the electronic device is connected to an earphone and the user adjusts the volume curve, then the adjusted volume curve is the volume curve corresponding to the earphone. For another example, when the electronic device is connected to a speaker and the user adjusts the volume curve, then the adjusted volume curve is the volume curve corresponding to the speaker.
  • the volume prompt box 500 may change accordingly.
  • the prompt point 502 in the volume prompt box 500 needs to move the volume up button 301 5 times from the lowest point to the highest point. If the gear range is adjusted to 1st gear to 6th gear, then the prompt point 502 in the volume prompt box 500 needs to move the volume up button 301 6 times from the lowest point to the highest point.
  • the electronic device displays a volume prompt box 500 .
  • the prompt point 502 in the volume prompt box 500 is located at the highest point of the volume bar 501 at this time, which means that the default highest gear has been reached, for example, the 5th gear.
  • an interface as shown in (b) in FIG.
  • the default is the highest gear.
  • the volume curve is fixed, when the prompt point 502 has reached the highest point of the volume bar 501, if the user initiates the volume increase case 301 again, the electronic device will not respond. Because the volume curve is fixed, the maximum gear will not continue to increase the gear, but through the volume adjustment scheme provided by this application, the gear can continue to be increased when the default maximum gear has been reached.
  • scales can be displayed on the volume bar 501, which can be used to indicate gear positions, as shown in FIG. 15B .
  • the prompt point 502 can be moved to a position outside the scale. For example, there are 1-5 gears originally, but after adjustment there are 1-6 gears, then the reminder point 502 can be moved to position 1501, as shown in Figure 15B, that is, it is moved out of the scale and represents that the volume corresponding to the current gear is higher than the default highest gear Bit volume is high.
  • the prompt point 502 can be moved to position 1502, as shown in Figure 15B, which means that the current volume is lower than the default volume corresponding to the lowest gear.
  • the cue point 502 is separated from the volume bar 501 as an example.
  • the volume bar 501 may also be extended to indicate that the gear is increased.
  • the extended part of the volume bar 501 is indicated by a dotted line.
  • the extended length is related to the number of gears increased, for example, the extended length is larger when the gear is increased by 2 gears than when the gear is increased by 1 gear.
  • the prompt point 502 is located at the highest point of the unextended part of the volume bar 501 , which means that the default highest gear has been reached, for example, gear 5.
  • FIG. 16 is an example where the volume bar 501 is extended upwards. It can be understood that the volume bar 501 can also be extended downwards. In a word, when the total number of gears of the adjusted volume curve is higher than the total number of gears of the volume curve before adjustment, the volume bar 501 can be extended. Similarly, when the total number of gears of the adjusted volume curve is lower than the total number of gears of the volume curve before adjustment, the volume bar 501 can be shortened.
  • the user controls the volume up and down through the volume up button 301 or the volume down button 302 as an example.
  • the user can also slide the volume bar 501 through the prompt point 502 Realize the control of the volume.
  • the electronic device when the electronic device detects the user's operation of dragging the prompt point 502 up, it increases the volume. In this manner, the electronic device does not need to adjust the volume level by level, and determines the volume value corresponding to the position of the prompt point 502 moved by the user. For example, after the electronic device determines the position of the prompt point 502 after moving, it maps the position to the abscissa value on the volume curve, and then determines the corresponding ordinate value, that is, the volume corresponding to the position of the prompt point 502 .
  • the display area of the volume prompt box 500 is small, and the user cannot accurately drag the prompt point 502 to the corresponding position with a finger, and can only achieve rough adjustment of the volume.
  • fine volume adjustment can be realized through the volume prompt box 500 .
  • the volume prompt box 500 includes a button 515 .
  • the button 515 is a magnifying glass button as an example, and other types of buttons may also be used.
  • an interface as shown in (b) in FIG. 18A is displayed, in which a volume fine-tuning box 516 is displayed.
  • the volume fine-tuning box 516 is used to fine-tune the volume.
  • the volume fine-tuning box 516 includes a prompt point 517 and a prompt bar 518 .
  • the user adjusts the position of the prompt point 517 on the prompt point 518 to realize fine adjustment of the volume.
  • the cue point 502 is located at level 2, and the user can adjust the volume to a volume between level 2 and level 3 through the fine-tuning box 516, and the solid line volume is fine-tuned.
  • the gear scale can also be displayed on the fine-tuning box 516, which is convenient for users to adjust.
  • a scale is displayed on the volume bar 501 in the prompt box 500, which can be used to indicate the gear position.
  • the user can stay in the prompt point between two scales in the fine-tuning box 516 .
  • the electronic device detects an operation on the key 515, a fine-tuning box 516 is displayed, in which the volume can be adjusted between two scales. For example, as shown in FIG.
  • the prompt point 502 is located on the fourth scale of the prompt point 501, and the distance between the fourth scale and the fifth scale in the spin box 516 increases, and the user can move the prompt point 517 to the fourth scale and the fifth scale.
  • the position between the five scales realizes the fine adjustment of the volume.
  • the fine-tuning box 516 is opened through the button 515 as an example.
  • the fine-tuning box 516 can also be opened in other ways.
  • the electronic device detects the user's zoom-in operation on any position in the volume prompt box 500 , it displays the fine-tuning box 516 in FIG. 18A or 18B .
  • the enlargement operation includes, for example, a first sliding operation and a second sliding operation, wherein the sliding directions of the first sliding operation and the second sliding operation are opposite.
  • the current gear needs to be set by the user, for example, through the volume up button 301 or the volume down button 302 . Once the user adjusts to a certain gear, the electronic device does not automatically change the gear.
  • the electronic device can automatically adjust the current gear. Including at least one of the following methods A and B.
  • Mode A the electronic device adjusts the current gear according to the user's habit of using the gear.
  • the user's usage times and/or usage frequency of each gear are stored in the electronic device, and the electronic device may adjust the gear whose usage times are greater than the threshold 1 and/or whose usage frequency is greater than the threshold 2 as the current gear.
  • the electronic device may adjust the gear whose usage times are greater than the threshold 1 and/or whose usage frequency is greater than the threshold 2 as the current gear.
  • Table 3 can be obtained by real-time statistics of the electronic device, for example, when the electronic device is in the first gear for a time longer than the preset time, the number of times of use of the first gear is increased by 1. Therefore, Table 3 above can be updated.
  • the meter 3 may also be preconfigured in the electronic device, for example, the meter 3 is provided with it when leaving the factory.
  • Mode B the electronic device adjusts the current gear according to the current usage habits of the user and the current environmental noise.
  • the electronic device stores the number of times and/or the frequency of use of each gear by the user under different environmental noises, and when the electronic device is currently in the first environment, adjust the current gear to the first environment Next, the gear that the user is used to. For example, see Table 4 below:
  • SNR Signal-to-noise ratio of the environment where the electronic device is currently located
  • SNR determine the gear with the highest number of times and/or frequency of use by the user in the column of SNR1, and adjust the current gear to this gear.
  • SNR Standard Noise Ratio
  • SNR or S/N refers to the ratio of sound signal to noise.
  • the above Table 4 can be obtained by real-time statistics of the electronic equipment. For example, the electronic equipment counts that in the environment where the signal-to-noise ratio is SNR1, the user adjusts to the first gear, and the time length of the electronic equipment in the first gear is longer than the preset time. When setting the duration, add 1 to the number of uses of the first gear.
  • the frequency of use and/or habit of use in Table 4 above may be replaced by probability of use (or probability for short). Therefore, Table 4 above can be replaced with Table 5 below.
  • SNR1 when the signal-to-noise ratio of the current environment is SNR1, the probability of gear 1 is the probability value obtained by dividing the number of uses of gear 1 by the sum of the number of times of use of all gears.
  • gear 2 The probability of is the probability value obtained by dividing the use times of gear 2 by the sum of the use times of all gears; and so on. Therefore, in the case that the signal-to-noise ratio of the current environment is SNR1, the electronic device determines the gear with the highest probability of use among the first gear to the fifth gear and recommends this gear.
  • the electronic device adjusts the current gear position according to the user's habit of using the gear position and the current time. For example, the electronic device stores the number of times and/or the frequency of use of each gear by the user under different time periods. When the current time of the electronic device is in a certain time period, the current gear is adjusted to the time period.
  • the gear that the user is accustomed to using For example, see Table 6 below:
  • Table 6 Correspondence between time periods, gears, and frequency of use/number of times of use
  • the above table 6 can be obtained by real-time statistics of the electronic device. For example, when the electronic device counts that the user has adjusted to the first gear in different time periods, and the time length of the electronic device in the first gear is longer than the preset time length, Then add 1 to the number of uses of the first file.
  • the frequency of use and/or habit of use in Table 6 above may be replaced by probability of use (or probability for short), which is the same principle as Table 5 above.
  • embodiment 1 to embodiment 3 can be used alone or in combination, wherein, the combination of embodiment 1 and embodiment 2 has been described above, and the combination of embodiment 1 and embodiment 3, embodiment
  • the second embodiment and the third embodiment are combined as an example for illustration.
  • Embodiment 1 and Embodiment 3 The combination of Embodiment 1 and Embodiment 3 is that the electronic device uses the method of Embodiment 1 to customize the volume curve, and then uses the method of Embodiment 3 to adjust the current gear based on the customized volume curve.
  • the electronic device collects the volume S of the output sound.
  • the electronic device calculates a signal-to-noise ratio.
  • the signal-to-noise ratio is the ratio of the sound volume S output by the electronic device to the ambient noise N, that is, S/N.
  • the current level can be adjusted based on the usage habit.
  • volume adjustment method provided in the embodiment of the present application may be applicable to various application scenarios, and several application scenarios are exemplarily listed below.
  • the speaker is a module that emits sound from an electronic device. Scenarios that need to use a speaker to output sound in an electronic device include: incoming call ringing, hands-free calling, multimedia sound playback, alarm clock, new message notification, etc. Among them, multimedia includes applications such as music, video, and games.
  • Scenarios in which a receiver needs to be used in an electronic device include: answering an incoming call, playing a voice message in an instant messaging application, and so on.
  • the earphones may be wired or wirelessly connected to the electronic device.
  • the same volume curve may be applicable to all scenes, or different volume curves may be provided for different scenes, and the electronic device may separately adjust the volume curves corresponding to different scenes.
  • the electronic device displays an interface 604 .
  • the interface 604 includes a scene button 2100 .
  • the electronic device detects an operation on the scene button 2100, it displays an interface as shown in (b) in FIG. Calls, smart voice, earphones, etc.
  • the electronic device detects an operation on the button 2101, it displays an interface as shown in (c) in FIG. .
  • FIG. 22 shows an electronic device 2200 provided by this application.
  • the electronic device 2200 may be the aforementioned mobile phone or other electronic devices.
  • the electronic device 2200 may include: one or more processors 2201; one or more memories 2202; a communication interface 2203, and one or more computer programs 2204, and each of the above devices may communicate through one or more bus 2205 connection.
  • the one or more computer programs 2204 are stored in the above-mentioned memory 2202 and are configured to be executed by the one or more processors 2201, the one or more computer programs 2204 include instructions, and the above-mentioned instructions can be used to perform the above-mentioned Relevant steps of the mobile phone in the corresponding embodiment.
  • the communication interface 2203 is used to implement communication with other devices, for example, the communication interface may be a transceiver.
  • the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device (such as a mobile phone) as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
  • the terms “when” or “after” may be interpreted to mean “if” or “after” or “in response to determining" or “in response to detecting ".
  • the phrase “in determining” or “if detected (a stated condition or event)” may be interpreted to mean “if determining" or “in response to determining" or “on detecting (a stated condition or event)” or “in response to detecting (a stated condition or event)”.
  • relational terms such as first and second are used to distinguish one entity from another, without limiting any actual relationship and order between these entities.
  • references to "one embodiment” or “some embodiments” or the like in this specification 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.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • SSD solid state disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

一种音量调整方法与电子设备。电子设备包括N个音量档位N个音量档位中包括第一档位和第二档位,且第一档位对应第一音量,第二档位对应第二音量,第一音量与第二音量之间的差值为第一差值;在满足第一条件时,电子设备调整为M个音量档位,M个音调档位中包括第三档位和第四档位,第三档位与第一档位是同一档位,第四档位与第二档位是同一档位,且第三档位对应第三音量,第四档位对应第四音量,第三音量与第四音量之间的差值为第二差值;M个音量档位满足如下至少一种:M不等于N;或,第三音量不等于第一音量;或,第四音量不等于第二音量;或,第二差值不等于第一差值。通过这种方式,电子设备的音量大小可以适应不同用户的需求。

Description

一种音量调整方法与电子设备
相关申请的交叉引用
本申请要求在2022年01月25日提交中国专利局、申请号为202210087253.1、申请名称为“一种音量调整方法与电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种音量调整方法与电子设备。
背景技术
声音播放功能是大部分电子设备具有的一项基础功能,例如,手机、电视、音箱、平板等均具有声音播放功能。而且为了方便用户使用,电子设备还具备音量调节功能。例如,电子设备上设置音量调高按键和音量调低按键,可以用于调整音量。以手机为例,一般,手机上具有音量档位,在调整音量时,可以一档一档地调整。
目前,音量档位是电子设备出厂时自带的、且是固定不变的,例如最低档对应的5分贝(decibel,dB),最高档对应的30dB。这种音量档位设置方式无法适配所有用户,例如,有的用户对声音敏感,当调整到最低档时,仍然决定音量过大;有的用户对声音不敏感,调整到最大档时,还是觉得音量不够大。
因此,目前电子设备的音量档位无法满足不同用户的需求。
发明内容
本申请的目的在于提供了一种音量调整方法与电子设备,用于使得电子设备输出声音的音量大小能够适配不同用户的需求。
第一方面,提供一种音量调整方法,应用于电子设备。电子设备可以是手机、平板电脑等。电子设备包括N个音量档位,N为正整数,N个音量档位中包括第一档位和第二档位,且第一档位对应第一音量,第二档位对应第二音量,第一音量与第二音量之间的差值为第一差值;在满足第一条件时,电子设备调整为M个音量档位,M为正整数,M个音调档位中包括第三档位和第四档位,第三档位与第一档位是同一档位(例如,第三档位与第一档位都是1档),第四档位与第二档位是同一档位(例如,第四档位与第二档位都是2档),且第三档位对应第三音量,第四档位对应第四音量,第三音量与第四音量之间的差值为第二差值;其中,所述M个音量档位满足如下至少一种:
所述M不等于所述N;或,
所述第三音量不等于所述第一音量;或,
所述第四音量不等于所述第二音量;或,
所述第二差值不等于所述第一差值。
一般,电子设备基于音量曲线调整音量大小,音量曲线的横坐标可以是音量档位、纵坐标可以是音量范围(包括每一档对应的音量大小)、斜率为两个档位之间的音量差。目 前电子设备的音量曲线是固定不变的,无法满足不同用户的需求。本申请提供的音量调整方法中电子设备的音量曲线可调整,即音量档位、音量范围、斜率中的至少一项可调整。
例如,电子设备出厂时具备N个音量档位,电子设备可以调整为M个档位,M与N可以相同或不同,M、N均是正整数。例如,电子设备出厂时共有5档,在调整后,具有4档或6档。
再例如,电子设备还可以增大或降低相邻两档之间的音量跨度。例如,电子设备出厂时相邻两档(例如1档与2档)之间的音量差为5dB,在调整后,这相邻两档(例如1档与2档)之间的音量差为3dB。这样,对于用户而言,可以选择1档与2档的中间音量,舒适度提升。再例如,电子设备出厂时相邻两档(例如1档与2档)之间的音量差为5dB,在调整后,这相邻两档(例如1档与2档)之间的音量差为10dB。这样,调整一次音量就可以实现音量大小的大幅度调整,操作便捷。
在一种可能的设计中,所述第一档位和所述第二档位是相邻档位,所述第三档位和所述第四档位是相邻档位,所述第二差值小于所述第一差值。
以第一档位低于第二档位为例,一种可能的场景为,在第一档位时,用户觉得音量过低,调高到第二档位时,觉得声音过高,也就是说,第一档位和第二档位对应的音量用户均不满意,导致用户无法寻找到舒适的声音档位。通过本申请提供的音量调整方法,可以降低相邻档位之间的音量差,这样的话,用户可以调到第一档位和第二档位的中间音量,提升舒适度。
在一种可能的设计中,所述满足第一条件,包括:检测到第一预设时长内在所述第一档位和所述第二档位之间的切换次数大于第一预设次数。
以第一档位低于第二档位为例,一种可能的场景为,在第一档位时,用户觉得音量过低,调高到第二档位时,觉得声音过高,所以用户在第一档位和第二档位之间反复切换试图寻找舒适的音量。因此,在本申请中,当第一档位与第二档位之间的切换次数大于第一预设次数时,电子设备降低第一档位和第二档位之间的音量差。这样,用户可以调到第一档位和第二档位的中间音量,提升舒适度。
在一种可能的设计中,所述第一档位和所述第三档位是最高档位,所述第二档位和所述第四档位是最低档位,所述第二差值大于所述第一差值。也就是说,最高档与最低档之间的音量差增大,即音量范围增大。这样,用户可以在更大的音量范围内选择想要的音量。
在一种可能的设计中,所述第三音量高于所述第一音量,和/或,所述第四音量低于所述第二音量。例如,原本最高档对应的音量(即第一音量)为25dB,在调整后,最高档对应的音量(即第三音量)为30dB。原本最低档对应的音量(即第二音量)为5dB,在调整后,最低档对应的音量(即第四音量)为3dB。这样,用户可以在更大的音量范围内选择想要的音量。
在一种可能的设计中,所述满足第一条件,包括:在当前已达到所述第一档位的情况下,接收到用于指示继续调高音量的操作;和/或,在当前已达到所述第二档位的情况下,接收到用户指示继续调低音量的操作。也就是说,第一档位是最高档,而且如果电子设备当前已达到最高档时,如果接收到用于指示继续调高音量的操作,则增大最高档对应的音量。和/或,第二档位是最低档,而且电子设备在当前已达到最低档时,如果接收到用于指示继续降低音量的操作,则降低最低档对应的音量。这样,用户可以在更大的音量范围内选择想要的音量。
在一种可能的设计中,所述继续调高音量的操作,包括:针对用于调高音量的按键的长按操作,或,在第二预设时长内对用于调高音量的按键的按压次数大于第二预设次数的操作。也就是说,第一档位是最高档,而且电子设备当前已达到最高档时,如果接收到调高音量按键的长按操作或短时间内对调高音量按键的多次按压操作时,增大最高档对应的音量。这样,用户可以选择更高的音量,不受电子设备出厂自带的音量曲线的音量上限的限制。
在一种可能的设计中,所述继续调低音量的操作,包括:针对用于调低音量的按键的长按操作,或,在第三预设时长内对用于调低音量的按键的按压次数大于第三预设次数的操作。也就是说,第二档位是最低档,而且电子设备当前已达到最低档时,如果接收到调低音量按键的长按操作或短时间内对调低音量按键的多次按压操作时,降低最低档对应的音量。这样,用户可以选择更低的音量,不受电子设备出厂自带的音量曲线的音量下限的限制。
在一种可能的设计中,所述满足第一条件,包括如下至少一种:
检测到所述N个音量档位中存在使用频率低于阈值的档位;或,
检测到所述电子设备的当前使用者发生变化;或,
检测到所述电子设备当前所在环境发生变化;或,
检测到所述电子设备与外接声音输出设备连接;或,
检测到用户在第一界面中的音量调整操作。
总之,电子设备的音量曲线不是固定不变的,可以随着用户使用习惯、当前使用者、当前所在环境、连接外接声音输出设备的变化而变化。或者,用户可以在第一界面中通过音量调整操作手动的调整音量曲线。
在一种可能的设计中,所述第一条件包括所述N个音量档位中存在使用频率低于阈值的档位时,所述调整为M个音量档位包括:去掉所述使用频率低于阈值的档位。也就是说,音量曲线可以根据用户使用习惯进行调整。例如,用户使用第1档的概率较低时,可以将去掉,例如将原来的第2段作为新的第1档。
在一种可能的设计中,所述第一条件包括所述电子设备的当前使用者发生变化时,所述调整为M个音量档位包括:调整为所述当前使用者所对应的M个音量档位。也就是说,电子设备的音量曲线可以随着当前使用者的变化而变化,以适配不同用户的需求。
在一种可能的设计中,所述第一条件包括所述电子设备当前所在环境发生变化时,所述调整为M个音量档位包括:调整为所述当前所在环境所对应的M个音量档位。也就是说,电子设备的音量曲线可以随着当前所处环境的变化而变化,比如嘈杂环境下音量曲线中档位对应的音量较高,安静环境下音量曲线中档位对应的音量较低。
在一种可能的设计中,所述第一条件包括所述电子设备与外接声音输出设备连接时,所述调整为M个音量档位包括:调整为所述外接声音输出设备所对应的M个音量档位。也就是说,电子设备的音量曲线可以随着外接声音输出设备的变化而变化;或者,电子设备未连接外接声音输出设备时,使用一个音量曲线,电子设备连接外接声音输出设备时,使用另一个音量曲线。
在一种可能的设计中,所述电子设备的当前档位随着所处环境、时间、电子设备使用者、前台运行应用或连接的声音输出设备中的至少一项的变化而调整。也就是说,不需要用户手动调整当前档位,当前档位可以适应性的调整,以适配当前环境、当前时间、当前 使用者、当前前台运行应用、当前连接的设备。
在一种可能的设计中,所述方法还包括:所述电子设备检测到进入第一环境时,将当前档位调整为第五档位,所述第五档位是基于第一历史记录确定的在所述第一环境下用户使用概率最高的档位;其中,所述第一历史记录中包括历史上在不同环境下用户对每个档位的使用概率。也就是说,电子设备进入某个环境时,可以将历史上在该环境下使用较多次的档位调整为当前档位,无需用户手动调整,操作便捷。
在一种可能的设计中,所述方法还包括:所述电子设备确定当前时间处于第一时间段时,将当前档位调整为第六档位,所述第六档位是基于第二历史记录确定的在所述第一时间段内用户使用概率最高的档位;其中,所述第二历史记录中包括历史上在不同时间段下用户对每个档位的使用概率。也就是说,电子设备处于某个时间段时,可以将历史上在该时间段下使用较多次的档位调整为当前档位,无需用户手动调整,操作便捷。
在一种可能的设计中,所述电子设备调整为M个音量档位之前,还包括:响应于第一操作,显示第一进度条,通过所述第一进度条所指示的进度描述当前音量;所述电子设备调整为M个音量档位之后,还包括:响应于第二操作,显示第二进度条,通过所述第二进度条所指示的进度描述当前音量;所述第一进度条与所述第二进度条不同。
也就是说,电子设备将N个音量档位调整为M个音量档位时,电子设备所显示的进度条发生变化,这样方便提示用户音量档位被调整。
在一种可能的设计中,述第一进度条与所述第二进度条不同,包括如下至少一项:
所述第一进度条与所述第二进度条的总长度不同;或,
所述第一进度条的移动步长与所述第二进度条的移动步长不同,所述移动步长用于指示调整一个档位时需要移动的长度;或,
所述第一进度条的移动次数与所述第二进度条的移动次数不同,所述移动次数用于指示从最低档调整到最高档时需要移动的次数。
总之,电子设备调整了音量曲线之后,可以通过进度条提示用户音量曲线被调整。
例如,调整之前总共5个档位,调整后总共6个档位,那么,调整前的进度条短,调整后的进度条长。
再例如,对于调整前的进度条,当调整一个档位(比如从第1档调整到第2档)时需要移动第一步长;对于调整后的进度条,当调整相同档位(比如还是从第1档调整到第2档)时需要移动第二步长,第一步长和第二步长不同。
再例如,对于调整前的进度条,从最低档到最高档需要移动5次;对于调整后的进度条,从最低档到最高档需要移动6次,所以移动次数不同。
在一种可能的设计中,所述第一进度条的总长度、移动次数与所述N相关,所述第一进度条的移动步长与所述N个音量档位中相邻两个档位之间的音量差相关;所述第二进度条的总长度、移动次数与所述M相关,所述第二进度条的移动步长与所述M个音量档位中相邻两个档位之间的音量差相关。
应理解,N越大,第一进度条的总长度越大,移动次数越多;同理,M越大,第二进度条的总长度越大,移动次数越多。而且两个相邻档位之间的音量差越大,这两个相邻档位之间的移动步长越大。这种方式,用户调整音量的过程中,交互体验感较好。
在一种可能的设计中,所述方法还包括:显示第一提示条,所述第一提示条所述指示的进度用于描述当前音量;响应于第三操作,显示第二提示条;所述第二提示条上的进度 改变第一长度时,所述第一提示条上的进度改变第二长度,其中,所述第一长度和所述第二长度对应的音量改变量相同,且所述第一长度大于所述第二长度。
需要说明的是,存在一种情况,第一进度条显示面积较小,用户无法在第一进度条上实现音量的微调整,所以电子设备可以响应于第三操作调出第二提示条,在第二提示条上实现音量微调整。
在一种可能的设计中,所述第三音量高于所述第一音量,包括:所述第三音量满足公式:
Figure PCTCN2022144271-appb-000001
其中,Y1为所述第三音量;x代表档位,x max代表所述第一档位,f(x max)代表所述第一音量,x 1代表所述第二档位,f(x 1)代表所述第二音量。
也就是说,电子设备确定当前已经是最高档,并且确定用户继续调高音量时,可以将音量调高到Y1即第三音量。Y1是根据上述公式得到的,即在f(x max)的基础上增加
Figure PCTCN2022144271-appb-000002
这种方式,逐渐增大音量而且增加的音量不至于过大,不会给用户带来一下子音量就提高很多的突兀感、以及给耳朵造成的压迫感、不适感。
在一种可能的设计中,所述第四音量低于所述第二音量,包括:所述第四音量满足:
Figure PCTCN2022144271-appb-000003
其中,Y1为所述第四音量;x代表档位,x max代表所述第一档位,f(x max)代表所述第一音量,x 1代表所述第二档位,f(x 1)代表所述第二音量。
也就是说,电子设备确定当前已经是最低档,并且确定用户继续调低音量时,可以将音量调低到Y2即第四音量。Y2是根据上述公式得到的,即在f(x 1)的基础上减去
Figure PCTCN2022144271-appb-000004
这种方式,逐渐降低音量而且降低的音量不至于过多,不会给用户带来一下子音量就降低很多的突兀感。
在一种可能的设计中,所述方法还包括:所述电子设备上喇叭外放声音时、听筒播放声音时或通过外接声音输出设备输出声音时,使用所述M个音量档位。也就是说,电子设备调整音量曲线之后,调整后的音量曲线可以适用于喇叭外放声音时、听筒播放声音时或通过外接声音输出设备输出声音等场景。
在一种可能的设计中,所述喇叭外放声音,包括:来电铃声、免提通话、新消息通知、闹钟、多媒体应用输出的声音中的至少一种;所述听筒播放声音,包括:语音通话和/或语音消息播放。
第二方面,提供一种电子设备,包括:
处理器,存储器,以及,一个或多个程序;
其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如上述第一方面提供的方法。
第三方面,提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面提供的方法。
第四方面,提供一种计算机程序产品,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述第一方面提供的方法。
第五方面,还提供一种电子设备上的图形用户界面,所述电子设备具有显示屏、存储器、以及处理器,所述处理器用于执行存储在所述存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述第一方面所述的方法时显示的图形用户界面。
第六方面,本申请实施例还提供一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例第一方面的技术方案,本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。
上述第二方面至第六方面的有益效果,参见第一方面的有益效果,不重复赘述。
附图说明
图1为本申请一实施例提供的电子设备的硬件结构示意图;
图2为本申请一实施例提供的电子设备的软件结构示意图;
图3为本申请一实施例提供的电子设备上音量调整按键的示意图;
图4为本申请一实施例提供的电子设备上音量提示框的示意图;
图5为本申请一实施例提供的音量曲线的示意图;
图6为本申请一实施例提供的电子设备的设置应用的界面的示意图;
图7A-图7B为本申请一实施例提供的一种音量调整方式的示意图;
图8A-图8B为本申请一实施例提供的另一种音量调整方式的示意图;
图9A-图9B为本申请一实施例提供的又一种音量调整方式的示意图;
图10为本申请一实施例提供的又一种音量调整方式的示意图;
图11为本申请一实施例提供的音量提示框的又一种示意图;
图12至图13为本申请一实施例提供的电音量提示框的又一种示意图;
图14为本申请一实施例提供的又一种音量调整方式的示意图;
图15A-图15B为本申请一实施例提供的音量调整后提示条的示意图;
图16为本申请一实施例提供的音量调整后提示条的另一种示意图;
图17为本申请一实施例提供的音量调整的另一种方法的示意图;
图18A-图18B为本申请一实施例提供的音量精调的示意图;
图19为本申请一实施例提供的音量精调的另一种示意图;
图20为本申请一实施例提供的音量调整方法的又一种流程示意图;
图21为本申请一实施例提供的不同场景下的音量调整方法的示意图;
图22为本申请一实施例提供的电子设备的结构示意图。
具体实施方式
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,需要理解的是,在本说明书的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为明示或暗示相对重要性,也不能理解为明示或暗示顺序。例如,第一操作和第二操作并不代表二者的重要程度或者代表二者的顺序,仅仅是为了区分描述。在本申请实施例中,“和/或”,仅仅是描述关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中 字符“/”,一般表示前后关联对象是一种“或”的关系。
在本申请实施例的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“连接”应做广义理解,例如,“连接”可以是可拆卸地连接,也可以是不可拆卸地连接;可以是直接连接,也可以通过中间媒介间接连接。本申请实施例中所提到的方位用语,例如,“上”、“下”、“左”、“右”、“内”、“外”等,仅是参考附图的方向,因此,使用的方位用语是为了更好、更清楚地说明及理解本申请实施例,而不是指示或暗指所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本说明书的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
本申请实施例提供的音量调整方法适用于电子设备。所述电子设备具有音量调整功能。在一些实施例中,所述电子设备可以是手机、平板电脑、笔记本电脑等便捷式电子设备;还可以是手表、手环等穿戴设备;或者,还可以是电视机、冰箱等智能家居设备;或者,还可以是车载设备等等,或者,还可以是虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、混合现实技术(Mixed Reality,MR)设备,等等,总之本申请实施例不限定电子设备的具体类型。
图1示出了电子设备的结构示意图。如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路 (inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
显示屏194用于显示应用的显示界面等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。其中,ISP用于处理摄像头193反馈的数据。例如,拍照时,打 开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,以及至少一个应用程序(例如爱奇艺应用,微信应用等)的软件代码等。存储数据区可存储电子设备使用过程中所产生的数据(例如图像、视频等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将图片,视频等文件保存在外部存储卡中。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过一个或多个扬声器170A收听音乐,或收听免提通话等外放场景。
受话器170B,也称“听筒”,可以是一个或多个,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。一般的,受话器170B的声音小于扬声器170A的声音,以保证电话或语音信息等语音的隐私性。
在一些实施例中,扬声器170A和/或受话器170B可以包括单声道或多声道。在一些实施例中,多声道用于提供立体声的效果。在另一些实施例中,多声道可以合并。以双声道为例,左声道和右声道可以播放相同声音,这样可以提升音量大小。一种可能的场景为,用户在嘈杂的地方接电话时,由于环境音较大,用户无法听清楚来电者的声音,这种情形下,用户可以打开手机中的“单声道音频”功能,该“单声道音频”功能可以用于将多声道合并以提高音量。其中,“单声道音频”的开启方式有多种,例如在设置应用中打开“单声道音频”功能。在另一些实施例中,用户在嘈杂的地方接电话时,还可以启动“电话噪声消除”功能。“电话噪声消除”功能是指通过扬声器170A或受话器170B接听电话时,手机会借助机身背面的降噪麦克风,对周围的杂音进行过滤,提高通话的清晰度,从而改善用户在通话时的质量。其中,启动“电话噪声消除”功能的方式有多种,例如语音唤醒或者在设置应用中打开该功能。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置 两个麦克风,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。
气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备是翻盖机时,电子设备可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备对电池142加热,以避免低温导致电子设备异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备的接触和分离。
可以理解的是,图1所示的部件并不构成对电子设备的具体限定。本发明实施例中的电子设备可以包括比图1中更多或更少的部件。此外,图1中的部件之间的组合/连接关系也是可以调整修改的。
图2示出了本申请一实施例提供的电子设备的软件结构框图。
电子设备的软件结构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。假设电子设备是Android系统,可包括应用程序层(简称应用层),应用程序框架层(简称框架层)(framework,FWK),硬件层等等。
其中,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,例如本地化字符串,图标,图片,布局文件,视频文件等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。例如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示 文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。其中,应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
在另一些实施例中,系统库中还可以包括声音处理模块,用于调整音量曲线。需要说明的是,声音处理模块可以是系统库中的一个模块,也可以是其它层中的模块,例如应用程序框架层或内核层中的模块。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面以图2所示的软件结构为例,示例性说明电子设备100的音量调整流程。
例如,当用户通过触摸显示屏对声音进行调节时,硬件层中的触摸传感器检测到触摸操作,产生事件中断,事件中断中包括触摸操作的时间信息、位置信息、操作类型等。硬件层将该事件中断上报给高层例如应用程序框架层或系统库,高层基于触摸操作的时间信息、位置信息、操作类型等确定操作针对哪一个按键以及作用。在确定所述操作用于调整音量的档位范围时,向系统库中的声音处理模块处理指令。声音处理模块用于调整音量曲线,该音量曲线即电子设备调整音量档位时所依据的曲线。声音处理模块得到音量曲线之后,将该音量曲线下发到内核层中的音频驱动,以使音频驱动基于所述音量曲线控制硬件层中的声音输出模块(例如扬声器170A和/或受话器170B)输出声音。
下面以电子设备100是手机为例,结合附图对本申请的音量调整方法作详细介绍。
为了提升用户体验,电子设备具有声音输出功能,例如,来电、多媒体播放、触摸反馈等场景下可以输出声音。在一些实施例中,电子设备还具有音量调节功能,即用户可以调整电子设备输出声音的音量大小。
例如,电子设备包括音量调整按键,音量调整按键用于调整音量大小。其中,音量调整按键可以是物理按键或虚拟按键,本申请不限定。而且,音量调整按键在电子设备上的位置,本申请不作限定,例如,可以在电子设备的正面(即显示屏所在的一面),或者背面(即与显示屏所在一面相对的一面),或者侧边上。示例性的,如图3,电子设备的右侧边上设置有音量调整按键300。应理解,图3以音量调整按键300位于右侧边为例,实际上还可以位于左侧边、上侧边、下侧边等。需要说明的是,这里主要以通过音量调整按键300对音量调整为例,实际上还可以包括其它的音量调整方式,例如通过语音指令调整音量,例如电子设备检测到“调高音量”的语音指令时,增大音量,检测到“调低音量”的语音指令时,降低音量。在一些实施例中,电子设备调整音量之后还可以输出语音提示,例如 “音量已调高1档”或“音量已调低1档”。
在一些实施例中,为了方便用户操作,音量调整按键可以包括音量调高按键和音量调低按键。其中,音量调高按键用于调高音量。音量调低按键用于调低音量。请继续参见图3,音量调整按键300包括音量调高按键301和音量调低按键302。当检测到用户触发音量调高按键301时,增大音量,当检测到用户触发音量调低按键302时,降低音量。为了方便用户区分,音量调高按键301上可以标记“+”,音量调低按键302上可以标记“-”。
在一些实施例中,电子设备调整音量时,可以一档一档的调整。例如,用户按压一次音量调高按键301,增大一档音量,再按压一次音量调高按键301,再增大一档音量。
为了方便提示用户,电子设备可以展示音量档位的变化。示例性的,如图4中(a),电子设备显示主界面(home screen)。当电子设备检测到针对音量调高按键301的操作时,可以显示如图4中(b)所示的界面,该界面中包括音量提示框500。音量提示框500用于提示当前音量,例如音量提示框500中包括进度条,进度条所指示的进度用于描述当前音量。该进度条可以是各种各样的进度表,例如图4中(b)中为进度条的一种示例,包括音量条501和提示点502。提示点502可移动的设置于音量条501的上层,提示点502在音量条501上的位置(即进度)可以表征音量档位的高低,例如,在进行音量调节时,提示点502在音量条501上的位置越高,代表音量档位越大。例如,图4中(b)中以提示点502位于音量条501的位置503处,此时,若电子设备检测到针对音量调高按键301的操作,显示如图4中(c)所示的界面,该界面中提示点502位于位置504处。位置504比位置503更高,代表档位增大,为了方便理解,图4中(c)中将位置503标记为虚线。在一些实施例中,除了通过音量调整按键300调整提示点502在音量条501上的位置以外,还可以拖动提示点502以改变其在音量条501上的位置或者通过语音指令改变提示点502在音量条501上的位置,以实现调整音量的目的。
示例性的,电子设备的音量档位可以包括N档,N为大于或等于2的整数。N档中每一档可以对应一个音量值。以N=5为例,最低档为1档,可以对应音量值5dB,最高档位5档,可以对应音量值25dB。需要说明的是,本文中的数值大小(例如,5dB、25dB等)仅是举例,不构成对方案的限定。可以理解的是,N=5时,图4中,从最低档开始,提示点502需要在音量条501上移动5次达到最高档,每次的移动步长可以与相邻两档之间的音量差相关,音量差越大,移动步长可以越大。例如,1档与2档之间的音量差为5dB,那么移动5dB对应的距离(例如第一距离),2档与3档对应的音量差为10dB,那么移动10dB对应的距离(例如两个第一距离的长度)。
一些实施例中,电子设备中可以存储有音量档位与音量值之间的对应关系,当电子设备检测到音量调整操作(例如针对音量调整按键的点击操作或针对提示点502的拖动操作)时,基于该对应关系来调整。例如,电子设备检测到针对音量调高按键301的点击操作时,确定当前音量档位的上一级音量档位,然后基于该对应关系确定上一级音量档位所对应的音量,调整到该音量。示例性的,音量档位与音量值之间的对应关系可以是下表1:
表1:音量档位与音量值的对应关系
音量档位 音量大小(单位:分贝dB)
1档位 5dB
2档位 10dB
5档位 25dB
需要说明的是,上表1中以音量档位总共包括5档为例,即从1档到5档,应理解,还可以包括更多或更少的档位数量。需要说明的是,音量档位与音量大小之间的对应关系除了可以是上面表1的形式以外,还可以是函数形式或曲线形式等,例如图5所示的音量曲线500,在图5所示的实施例中,相邻两个档位之间的音量差相等,例如相邻两个档位之间的音量差都是5dB;在其它实施例中,相邻两个档位之间的音量差也可以不相等,例如,1档位和2档位之间的音量差是4dB,2档位与3档位之间的音量差是6dB,等等。音量曲线500位于X-Y坐标系中,X代表档位、Y代表音量值(单位以分贝dB为例)。可以理解的是,图5以曲线500是一条直线为例,应理解,曲线500还可以是具有一定弧度的弯曲线条,本申请实施例不作限定。
需要说明的是,以上的音量调节方式(例如,通过对音量调整按键的点击操作或对提示点502的拖动操作来调整音量)适用于扬声器170A、受话器170B、外接声音输出设备等。其中,外接声音输出设备包括耳机、外接扬声器(如无线音箱)等等,本申请不限定。
继续参见图5,音量曲线500包括档位范围、音量范围以及音量调节精度。档位范围即音量曲线500的横坐标X的取值范围(例如,从1档到5档)。音量范围即音量曲线500的纵坐标Y的取值范围(例如,从5dB至25dB)。音量调节精度即音量曲线500的斜率,即相邻两档所对应的音量差。例如,1档与2档之间斜率为5dB/档。
在一些实施例中,音量曲线500是固定不变的,例如档位之间的音量差是固定不变的,或者,档位之间的斜率是固定不变的,或者,档位范围(即X取值范围)是固定不变的、或者,音量范围(即Y取值范围)是固定不变的。一种可能的情况为,电子设备出厂时就配置好音量曲线,该音量曲线无法调整。然而,在一些情况下,这种固定不变的音量曲线无法满足不同用户的需求。
例如,用户A的听觉比较敏感,习惯于较低的音量,一般只用到电子设备的低档位,高档位很少使用。一些情况下(例如当前处于安静环境中),用户A调到最低档(例如1档)时,仍然觉得音量过大,无法舒适的体验。
又例如,用户B的听觉不敏感,习惯于较高的音量,一般只用到电子设备的高档位,低档位较少使用。一些情况下(例如当前处于嘈杂环境中),用户B调整到最高档位(例如5档)时,仍然觉得音量过低,体验度差。
又例如,用户C调整音量时,在1档和2档之间切换,在1档时,觉得声音过低,在2档时觉得声音过高,无法找到合适的音量。
因此,为了满足不同用户的需求,在一些实施例中,音量曲线可调整,例如档位范围、音量范围、音量调节精度(档位之间的音量差)中的至少一项可调整。
例如,电子设备出厂时具备N个音量档位,电子设备可以调整为M个档位,M与N可以相同或不同,M、N均是正整数。例如,电子设备出厂时共有5档,在调整后,具有4档或6档。
再例如,电子设备出厂时最低档对应的音量为5dB,在调整后,最低档对应3dB。这样,对于声音较为敏感的用户A,有更低的音量供其选择,提升体验感。
再例如,电子设备出厂时最高档对应25dB,在调整后,最高档对应30dB。这样,对于声音不敏感的用户B,有更高的声音选择,提升体验感。
再例如,电子设备还可以增大或降低相邻两档之间的音量跨度。例如,电子设备出厂时相邻两档(例如1档与2档)之间的音量差为5dB,在调整后,这相邻两档(例如1档与2档)之间的音量差为3dB。这样,对于用户C而言,可以选择1档与2档的中间音量,舒适度提升。在一些情况下,用户D还可以将1档与2档之间的音量差调整为7dB,和/或,将3档与4档之间的音量差调整为3dB。
实施例一
一种可实现方式为,电子设备提供第一界面,用户可以在第一界面内调整档位范围、音量范围、音量调节精度中的至少一项。
示例性的,所述第一界面可以是电子设备中设置应用的界面。
例如,请参见图6中(a),电子设备显示主界面600。主界面600中包括设置应用的图标601。当电子设备检测到针对图标601的操作时,显示如图6中(b)所示的设置界面602。设置界面602中包括声音与振动选项603。当电子设备检测到针对声音与振动选项603的操作时,显示如图6中(c)所示的声音与振动的设置界面604。界面604中包括音量档位调整窗口605和音量上限调整框609。其中,音量档位调整窗口605用于调整音量档位(即音量曲线的X取值范围),音量上限调整框609用于调整音量范围(即音量曲线的Y取值范围)。
音量档位调整窗口605中包括选项606和选项607。其中,选项606对应默认最高档,默认最高档位即电子设备出厂时配置的最高档例如图5中音量曲线500对应的最高档5档。选项607用于用户自定义最高档,例如输入框608用于用户输入自定义的最高档。选项606和选项607同时只有一个被选中。当选项606被选中时,选项607自动取消选中;或者选项607被选中时,选项606自动取消选中。
音量上限调整框609中包括线条610。线条610可伸缩的填充于音量上限调整框609中。线条610的长度越长,代表音量上限值越大。
在默认情况(例如出厂时)下,音量档位调整窗口605中选项606被选中,选项607未被选中,输入框608处于不可编辑状态(例如呈灰度显示),而且,音量上限调整框609中线条610位于位置611处,用于指示默认上限值例如图5中的音量曲线500对应的最大音量25dB。
下文介绍通过界面604调整档位范围、音量范围、音量调节精度的过程。
一、调整音量范围
为了便于理解,先以档位范围不变,调整音量范围为例,即X取值范围不变,调整Y取值范围。
示例性的,请继续参见图6中(c),当电子设备检测到用于调整线条610的操作(例如将线条610一端向右移动的操作)时,显示如图7A中(a)所示的界面,该界面中线条610处于位置612处。位置612比位置611靠右,代表音量上限值增大,具体增大多少与位置612与位置611之间的距离相关,该距离越大,增大值越大。一种可实现方式为,电子设备中存储距离值与音量值之间的关系,基于该对应关系可以确定位置612与位置611之间的距离所对应的音量值,该音量值即需要增大的音量值。例如,默认情况下音量上限值是25dB,基于所述对应关系确定出位置612与位置611之间的距离所对应的音量值为15dB,那么调整后的音量上限值为40dB。示例性的,请参见图7B中(a),为音量上限值 调整后的音量曲线701。对比曲线701与图5的曲线500(默认曲线)可知,档位范围保持不变,音量范围调整为5dB-40dB,即横坐标取值范围没变、纵坐标取值范围发生变化。需要说明的是,图7B中(a)中曲线701上1档至4档对应的音量值不变,只有5档对应的音量值调整为40dB,在另一些实施例中,1档至4档对应的音量值也可以发生变化,例如,如图7B中(b),只要音量范围(即纵坐标Y范围)为5dB-40dB即可。
图7A中(a)和图7B是以档位范围不变,调整音量上限值为例,可以理解的是,还可以调整音量上限值,原理与上述调整音量上限值的原理相同。例如,请参见图7A中(b),界面604中还包括音量下限调整框614,音量下限调整框614用于调整音量下限值,即最低档对应的音量大小。也就是说,音量上限值和音量下限值都可以根据用户的需求而调整。
二、调整音量档位。
为了便于理解,先与音量范围不变,调整音量档位为例,即Y取值范围不变,调整X取值范围。
示例性的,请继续参见图6中(c),当电子设备检测到音量档位调整窗口605中选项607被选中时,输入框608进入可编辑状态,请参见图8A,用户可以在该输入框608中输入最高档,例如用户输入6,电子设备调整最档位为6档。在调整最高档位为6档之后,对应的曲线如图8B中(a),为调整后的音量曲线801。曲线801与图5的曲线500相比,横坐标档位扩大到6档,但是纵坐标范围不变。这种情况下,每个档位对应的音量值可对应调整。
图8A和图8B是以音量范围不变,而增大音量档位为例的,可以理解的是,还可以降低音量范围,例如将默认的最高档为5档降低为最高档是4档,其实现原理类似,不重复赘述。
可以理解的是,上面以音量档位和音量范围这两个参数中一个参数不变另一个参数调整为例,在另一些实施例中,也可以一并调整。
示例性的,请继续参见图8A,当电子设备调整最高档为6档时,线条610可以保持不变,当电子设备检测到用户针对线条610的调整操作(例如向右拖动操作)时,增大音量上限值,例如请参见图9A。如图9A,线条610的位置右移到位置612。也就是说,用户调整了最高档位并且调整了音量上限值。假设增大的音量值为15dB,请参见图9B中(a),为调整后的音量曲线901。曲线901与图5的曲线500相比,最高档调到6档,音量范围也调整为5-40档。需要说明的是,图9B中(a)中曲线901上1档至5档对应的音量值不变,只有6档对应的音量值调整为40dB,在另一些实施例中,1档至5档对应的音量值也可以发生变化,例如,如图9B中(b),只要音量范围(即纵坐标Y范围)为5dB-40dB即可。
在另一些实施例中,请继续参见图9A,电子设备检测到最高档调整为6档时,可以自动调整线条610到位置612处。即,用户在增大最高档的同时,音量上限值对应增大。
三、调整音量调节精度
继续参见图6中(c),界面604中包括更多按键613。当电子设备检测到针对更多按键613的操作时,显示如图10中(a)所示的界面1000。界面1000中包括档位标识(例如1档到5档)以及每个档位对应的音量条。音量条越长代表音量越大。例如,如图10中(a),电子设备检测到调整档位1对应的音量条1001的操作,显示如图10中(b)所示 的界面,该界面中档位1对应的音量条1001缩短,代表降低档位1对应的音量。
以上的实施例中,以用户通过设置应用打开界面604并在界面604中调整音量曲线为例,在另一些实施例中,还可以通过其它方式打开界面604。例如,请参见图11,在音量提示框500中包括设置图标1000。当电子设备检测到针对图标1000的操作(例如点击操作)时,打开界面604。或者,电子设备检测到用于指示音量调整的语音指令时,打开界面604。总之,本申请不限定打开界面604的具体方式。此外,需要说明的是,以上提供的界面604只是一种示例,在实际设计中,界面604可以设计为其它形式,本申请实施例不作限定。
实施例二
上面的实施例一中以用户在第一界面中调整音量曲线为例,本实施例二中,电子设备可以自动调整音量曲线。
为了方便理解,下面以默认音量曲线是图5的音量曲线500为例进行说明。
一、自动调整音量范围
为了便于理解,以电子设备的档位范围不变、调整音量范围为例,例如电子设备的默认音量档位包括N档为例,调整音量范围可以包括对所述N档中任一档对应的音量进行调整。例如,最高档对应的音量、最低档对应的音量等等。具体的实现过程请参见图12。如图12所示,所述流程包括:
S1701,电子设备确定当前档位为第i档,i为1至N中的任一正整数。
为了方便理解,下文分不同情况介绍,包括i=N、i=1、i大于1小于N这三种情况。其中,i=N即当前档位已经达到最大档,其实现过程包括S1702-S1703。i=1即当前档位已经达到最低档,其实现过程包括S1704-S1705。i大于1小于N这种情况其实现过程包括S1706-S1709。
S1702,在i=N的情况下,电子设备检测到针对音量调高按键的第一预设操作。
其中,所述第一预设操作可以是长按音量调高按键301的操作,或者在预设时长内对音量调高按键301的按压次数达到预设次数的操作。一种可能的场景为,电子设备已经达到最高档位,但是用户觉得最高档位对应的音量不够大,还想要继续增大音量,所以用户继续按压音量调高按键301。
S1703,电子设备调高到第一音量,第一音量大于第N档对应的音量。
例如,N=5。即默认最高档为5档,且5档对应的音量为25dB,那么第一音量高于25dB。在一些实施例中,第一音量可以是高于25dB的任一音量值。或者,第一音量可以使用一定的计算方式得到。例如,使用如下公式得到,所述公式满足:
Y1=f(x max)+P     (1)
Figure PCTCN2022144271-appb-000005
其中,Y1为第一音量;X代表档位,x max代表默认档位最大值例如5,f(x max)代表最大档位对应的音量值,音量曲线上5档对应的纵坐标。x 1代表档位1,f(x 1)代表档位1对应的音量值,即音量曲线上1档对应的纵坐标。
在一些实施例中,S1703之前,还可以输出第一提示信息。第一提示信息用于提示用户当前已经达到默认最高档,是否继续增大音量。如果电子设备接收到确认指令,则执行S1703。示例性的,如图13中(a)所示,电子设备已经达到最大音量,即提示点502已 经位于提示条的最高点。此时,若电子设备检测到针对音量调高按键301的第一预设操作,显示如图13中(b)所示的界面,该界面中显示提示信息1800。提示信息1800用于提示已达到最大音量是否继续提高音量。电子设备还可以显示确认按键1801和取消按键1802。当电子设备检测到用户触发确认按键1801的操作时,调高到第一音量(即通过上述公式所计算出的音量)。或者,当电子设备检测到用户触发确认按键1801的操作时,显示图7A中(a)或图7A中(b)所示的界面604,用户可以在该界面604中手动调整。当电子设备检测到用户触发取消按键1802的操作时,不调高音量。
在一些实施例中,电子设备调高到第一音量时,可以将第N档对应音量调整为第一音量,即将音量曲线上第N档对应的纵坐标调整为第一音量。或者,电子设备在检测到历史上当处于第N档时调高到第一音量的次数大于第一预设次数,再将第N档对应音量调整为第一音量。
在另一些实施例中,电子设备将最高档对应的音量调高到第一音量之后,如果用户仍然觉得音量不够大,还可以继续增大最高档对应的音量,继续增大的方式与上述S1703的方式原理相同,不重复赘述。需要说明的是,受限于硬件功能,声音输出模块(例如扬声器170A或受话器170B等)具有音量上限,无法无限制的增大音量。因此,在一些实施例中,电子设备中存储有声音输出模块的阈值,该阈值是声音输出模块(例如扬声器170A或受话器170B等)的硬件能够承受的最大音量,如果超过该阈值硬件将受损。因此,如果电子设备调整最高档的音量即将要达到该阈值时,可以使用其它方式继续增大音量,以保证不超过该阈值硬件不受损。例如,以通过扬声器接听来电的场景为例,电子设备具有A个扬声器,A为正整数,当接听来电时,只开启了B个扬声器,B小于A的正整数。当需要增大最高档对应的音量时,可以先增大这B个扬声器的音量,如果这B个扬声器的音量即将要达到阈值,那么可以采用如下方式1至方式3中的至少一种方式:
方式1,可以再多开启一个或多个扬声器,即通过增大扬声器的数量实现提高音量的目的。
方式2,将多声道合并,例如左声道和右声道输出相同声音,以实现调高音量的目的。
方式3,可以启动“电话噪声消除”功能,用于对周围的杂音进行过滤,提高电子设备的输出声音清晰度,从而改善用户在通话时的质量。
S1704,在i=1的情况下,电子设备检测到针对音量调低按键的第二预设操作。
其中,所述第二预设操作可以是长按音量调低按键302,或者,在预设时长内对音量调低按键302的按压次数达到预设次数的操作,等等。
S1705,电子设备调低到第二音量,第二音量低于第i档对应的音量值。
例如,第1档对应的音量为5dB,那么第二音量低于5dB。在一些实施例中,第二音量可以是低于5dB的任一音量值。或者,第二音量可以使用一定的计算方式得到。例如,使用如下公式得到,所述公式满足:
Y2=f(x 1)-P      (3)
Figure PCTCN2022144271-appb-000006
其中,Y2为第二音量;x代表档位,x max代表默认档位最大值例如5,f(x max)代表最大档位对应的音量值,音量曲线上5档对应的纵坐标。x 1代表档位1,f(x 1)代表档位1对应的音量值,即音量曲线上1档对应的纵坐标。
在一些实施例中,S1705之前,还可以输出第二提示信息。第二提示信息用于提示用 户当前已经达到最小档,是否继续调低音量。如果电子设备接收到确认指令,则执行S1705。示例性的,如图14中(a)所示,电子设备已经达到最小音量,即提示点502已经位于音量条501的最低点。此时,若电子设备检测到针对音量调低按键302的第二预设操作,显示如图14中(b)所示的界面,该界面中显示提示信息1900。提示信息1900用于提示已达到最低音量是否继续调低音量。电子设备还显示确认按键1901和取消按键1902。当电子设备检测到用户触发确认按键1901的操作时,调低到第二音量(即通过上述公式计算出的音量)。或者,当电子设备检测到用户触发确认按键1901的操作时,显示图7A中(a)或图7A中(b)所示的界面604,用户可以在该界面604中手动调整。当电子设备检测到用户触发取消按键1902的操作,不调低音量。
在一些实施例中,电子设备调低到第二音量时,可以将第1档对应音量调整为第二音量,即将音量曲线上第1档对应的纵坐标调整为第二音量。或者,电子设备在检测到历史上当处于第1档时调低到第二音量的次数大于第二预设次数,再将第1档对应音量调整为第二音量。
S1706,在i大于1小于N的情况下,电子设备检测到在第i档与第i+1档之间的切换操作。
在一些实施例中,第i档与第i+1档之间的切换操作可以包括第i档与第i+1档之间只切换一次,或者切换多次,例如切换次数大于阈值(例如第一次数)。以切换一次为例,包括:电子设备当前处于第i档位,在第一时刻,检测到针对音量调高按键301的操作,调高到第i+1档,在第二时刻,检测到针对音量调低按键302的操作,调回到第i档。其中,第一时刻与第二时刻之间的时间差小于第一预设时间。可能的场景为,在第i档时,用户觉得音量过低,在调高到第i+1档时,觉得声音过高,又调回到第i档。
S1707,电子设备调整到第三音量,第三音量在第i档对应的音量与第i+1档对应的音量之间,第三音量可以理解为第i档和第i+1档的中间音量。
例如,第三音量是第i档对应的音量与第i+1档对应的音量之间的任一音量值。例如,第三音量是第i档对应的音量与第i+1档对应的音量的平均值。即第三音量根据如下公式得到:
Figure PCTCN2022144271-appb-000007
其中,Y3是第三音量。x代表档位,x i代表第i档位,f(x i)代表第i档位对应的音量值。x i+1代表第i+1档位,f(x i+1)代表第i+1档位对应的音量值。
在一些实施例中,电子设备调低到第三音量时,可以将第i档或第i+1档对应音量调整为第三音量,即将音量曲线上第i档或第i+1档对应的纵坐标调整为第三音量。或者,电子设备在检测到历史上在第i档与第i+1档之间切换时,调整到第三音量的次数大于第三预设次数,再将第i档或第i+1档对应音量调整为第二音量。
S1708,电子设备更新音量曲线。
应理解,当电子设备更新音量曲线后,在下次调整音量时,可以使用更新后的音量曲线进行调整。
二、自动调整档位范围。
为了便于理解,以音量范围不变、自动调整档位范围为例。
一种可实现方式为,电子设备根据用户对不同档位的使用次数和/或使用频率,调整档 位范围。例如,电子设备默认具有5档。电子设备统计出在预设时长内,第5档位的使用次数小于阈值,那么认为第5档的音量不适配用户,此时可以取消第5档位,只保留前4档。再例如,电子设备统计出预设时长内第1档的使用次数小于阈值,则曲线第1档位,例如,将原来的第2档作为新的第1档位,将原来的第3档作为新的第2档,以此类推。
可以理解的是,上面以音量档位和音量范围这两个参数中一个参数不变另一个参数自动调整为例,在另一些实施例中,也可以一并自动调整。
三、自动调整音量调节精度。
即前面图17中的S1706至S1707,用于调整第i档与第i+1档之间的音量差。
前面的实施例一和实施例二可以单独使用,也可以结合使用。
例如,当实施例一和实施例二结合时,用户使用实施例一的方式在设置应用中自定义了音量曲线,然后电子设备使用该自定义的音量曲线输出声音。之后,电子设备可以使用实施例二的方式调整所述用户自定义的音量曲线。
在另一些实施例中,电子设备检测到满足第一条件时,调整音量曲线。示例性的,所述第一条件包括如下至少一种:
1、电子设备的当前使用者发生变化。
例如,电子设备确定当前使用者是用户1时,将音量曲线调整为用户1对应的音量曲线。当电子设备确定当前使用者从用户1变为用户2时,将用户1对应的音量曲线调整为用户2对应的音量曲线。
在一些实施例中,用户1对应的音量曲线可以是根据用户1的习惯或特征确定的音量曲线,同理,用户2对应的音量曲线可以是根据用户2的习惯或特征确定的音量曲线。例如,用户1的听力较好,电子设备检测到用户1正使用电子设备时,可以使用听力较好者对应的音量曲线,用户2是听力较差,电子设备检测到用户2正使用电子设备时,可以使用听力较差者对应的音量曲线。其中,考虑到听力能力,听力较差者对应的音量曲线的音量上限可以大于听力较好者对应的音量曲线的音量上限。示例性的,电子设备可以通过摄像头采集的用户1、用户2的图像以判断用户1、用户2的习惯或特征,然后基于听力能力与音量曲线之间的对应关系,确定用户1、用户2的听力能力所对应的音量曲线。其中,通过图像判断用户1、用户2的特征(例如年龄)。
在另一些实施例中,用户1对应的音量曲线可以是用户1历史上在电子设备上设置的音量曲线。用户2对应的音量曲线可以是用户2历史上在电子设备上设置的音量曲线。其中,设置音量曲线的方式比如前面的实施例一或实施例二的方式,不重复赘述。也就是说,电子设备确定当前使用者是用户1时,将音量曲线调整为用户1曾设置的音量曲线。电子设备确定当前使用者从用户1变为用户2时,将音量曲线调整为用户2层设置的音量曲线。这样,不同用户使用电子设备时,可以使用符合当前用户使用习惯的音量曲线。
在另一些实施例中,如果电子设备检测到当前使用者从用户1变化为用户2,而电子设备中没有存储用户2对应的音量曲线,可以调整为默认音量曲线。
2、电子设备当前所在环境发生变化。
例如,电子设备确定从安静环境切换到嘈杂环境,则将安静环境下所使用的音量曲线切换为嘈杂环境下对应的音量曲线。示例性的,电子设备中存储有环境音量与音量曲线之间的对应关系,当电子设备检测到当前环境的环境声音发生变化时,基于该对应关系,确 定变化后的环境声音所对应的音量曲线。示例性的,环境声音与音量曲线的对应关系如下表2:
表2:环境声音与音量曲线的对应关系
环境声音 音量曲线
0-50db 音量曲线1
50db-70db 音量曲线2
70db-100db 音量曲线3
在一些实施例中,电子设备可以通过麦克风检测环境声音,例如,当麦克风检测到当前环境的环境声音为0-50db之间时,使用音量曲线1,当检测到环境声音为70db-100db时,使用音量曲线3。
3、电子设备与外接声音输出设备连接。
例如,电子设备未连接外接声音输出设备时,使用一个音量曲线;当检测到连接外接声音输出设备(例如耳机)时,使用另一个音量曲线。在另一些实施例中,不同的外接声音输出设备可以对应不同的音量曲线,例如,耳机对应一个音量曲线,音箱对应另一个音量曲线。其中,不同外接声音输出设备所对应的音量曲线可以是用户将电子设备与不同外接输出设备连接时分别设置的音量曲线。例如,电子设备连接耳机时,用户调整了音量曲线,那么该调整后的音量曲线即耳机对应的音量曲线。再例如,电子设备连接音箱时,用户调整了音量曲线,那么该调整后的音量曲线即音箱对应的音量曲线。
在一些实施例中,电子设备调整音量曲线之后,音量提示框500可以发生相应的变化。
例如,默认档位范围为1档-5档,那么音量提示框500中提示点502从最低点到最高点,需要移动5次音量调高按键301。如果档位范围调整后为1档至6档,那么音量提示框500中提示点502从最低点到最高点,需要移动6次音量调高按键301才行。
又如,请参见图15A中(a),电子设备显示音量提示框500。音量提示框500中提示点502此时位于音量条501的最高点,代表当前已达到默认的最高档,例如5档。此时,若电子设备检测到音量调高按键301的操作,显示如图15A中(b)所示的界面,该界面中提示点502脱离音量条501显示,以提示用户当前档位已高于默认最高档。需要说明的是,在前文所述的音量曲线固定不变的方案中,当提示点502已经达到音量条501的最高点时,如果用户再次出发音量提高案件301,电子设备是不会响应的,因为音量曲线固定,已达到最大档不会继续增大档位,但是通过本申请提供的音量调整方案,可以在已达到默认最高档时,继续增大档位。
在另一些实施例中,音量条501上可以显示刻度,可以用于指示档位,如图15B。当电子设备调整了音量曲线之后,提示点502可以移动到刻度以外的位置。例如,原本有1-5档位,调整后有1-6个档位,那么提示点502可以移动到位置1501,如图15B,即移出刻度且代表当前档位对应的音量比默认的最高档位的音量高。再例如,用户认为最低档对应的音量过高,调低了最低档对应的音量,那么提示点502可以移动到位置1502,如图15B,代表当前音量比默认最低档对应的音量低。
图15A和图15B中以提示点502脱离音量条501为例,在另一些实施例中,还可以延长音量条501,以表示档位增加。例如,请参见图16中(a),音量条501延长部分以虚线表示。其中,延长的长度与增加的档位数有关,例如,增大2个档位时延长长度比增大1 个档位时延长长度大。如图16中(a),提示点502位于音量条501未延长部分的最高点,代表当前已达到默认的最高档,例如5档。此时,若电子设备检测到音量调高按键301的操作,显示如图16中(b)所示的界面,该界中提示点502位于音量条501的延长部分上,以提示用户当前档位已高于默认最高档。图16是以音量条501向上延长为例,可以理解的是,音量条501也可以向下延长。总之,当调整后的音量曲线的总档位数高于调整前的音量曲线的总档位数,可以延长音量条501。同理,当调整后的音量曲线的总档位数低于调整前的音量曲线的总档位数时,可以缩短音量条501。
在上面的实施例中,以用户通过音量调高按键301或音量调低按键302控制音量的升降为例,在另一些实施例中,用户还可以通过提示点502在音量条501上的滑动操作实现对音量的控制。
例如,请参见图17中(a),电子设备检测到用户拖动提示点502上移的操作时,增大音量。这种方式,电子设备可以不需要一档一档的调整音量,按照用户所移动的提示点502的位置确定该位置所对应的音量值。例如,电子设备确定出移动后提示点502所在位置之后,将该位置映射到音量曲线上的横坐标值,然后确定对应的纵坐标值,即提示点502所在位置对应的音量。
一般,音量提示框500的显示面积较小,用户手指无法精准的拖拽提示点502到对应的位置,只能实现音量的粗调整。在本申请实施例中,通过音量提示框500可以实现音量的精调整。例如,请参见图18A中(a),音量提示框500中包括按键515,图中以按键515是放大镜按键为例,还可以是其它形式的按键。当电子设备检测到针对按键515的操作时,显示如图18A中(b)所示的界面,该界面中显示音量微调框516。音量微调框516用于微调整音量。例如,音量微调框516中包括提示点517和提示条518。用户调整提示点517在提示点518上的位置,实现对音量的微调。例如,图18A中(b)中,提示点502位于2档,用户通过微调框516可以将音量调整到2档与3档之间的音量,实线音量微调整。在一些实施例中,如图18A中(b),微调框516上还可以显示档位刻度,方便用户调整。
在一些实施例中,提示框500中的音量条501上显示刻度,可以用于指示档位。为了实现音量精调,微调框516中用户可以将提示点停留在两个刻度之间。如图18B,音量条501上有刻度,一般用户拖动提示点502时可以拖动一个或多个刻度,无法精细调整。当电子设备检测到针对按键515的操作时,显示微调框516,在该微调框516中可以将音量调整到两个刻度之间。例如,如图18B,提示点502位于提示点501的第四刻度上,微调框516中第四刻度与第五刻度之间的距离增大,用户可以将提示点517移动到第四刻度和第五刻度之间的位置,实现音量的微调整。
图18A或图18B中以通过按键515打开微调框516为例,在另一些实施例,还可以通过其它方式打开微调框516。例如,请参见图19,电子设备检测到针对用户在音量提示框500内任一位置的放大操作时,显示图18A或图18B的微调框516。所述放大操作例如包括第一滑动操作和第二滑动操作,其中第一滑动操作和第二滑动操作的滑动方向相反。
实施例三
在一些实施例中,当前档位是需要用户设置的,例如,通过音量调高按键301或音量调低按键302设置。一旦用户调整到某一档,电子设备不会自动改变档位。
在另一些实施例中,电子设备可以自动调整当前档位。包括如下方式A和方式B中的至少一种。
方式A,电子设备根据用户对档位的使用习惯,调整当前档位。
例如,电子设备中存储有用户对每个档位的使用次数和/或使用频率,电子设备可以将使用次数大于阈值1和/或使用频率较大的阈值2的档位调整为当前档位。例如,请参见下表3:
表3:档位以及使用习惯之间的对应关系
档位 使用频率/使用次数
第1档 10
 
第5档 20
可以理解的是,上述表3可以是电子设备实时统计得到的,例如,当电子设备处于第1档的时长大于预设时长时,则将第1档的使用次数加1。因此,上述表3可以更新。当然,表3也可以是预先配置于电子设备中的,例如出厂时就自带表3。
方式B,电子设备根据用户对当前的使用习惯、以及当前环境噪音,调整当前档位。
例如,电子设备中存储有在不同环境噪音下,用户对每个档位的使用次数和/或使用频率,当电子设备当前所处环境的第一环境时,将当前档位调整为第一环境下,所述用户习惯使用的档位。例如,请参见下表4:
表4:信噪比、档位以及使用频率/使用次数之间的对应关系
Figure PCTCN2022144271-appb-000008
例如,电子设备当前所处环境的信噪比为SNR1,确定在SNR1这一列中用户使用次数和/或使用频率最高的档位,将当前档位调整为该档位。其中,信噪比(Singnal Noise Ratio)的英文名称叫做SNR或S/N指声音信号与噪声的比例。
可以理解的是,上述表4可以是电子设备实时统计得到的,例如,电子设备统计到在信噪比为SNR1的环境下,用户调整到1档,且电子设备处于第1档的时长大于预设时长时,则将第1档的使用次数加1。
在另一些实施例中,上述表4中的使用频率和/或使用习惯可以替换为使用概率(或简称概率)。因此,上述表4可以替换为下面表5。以SNR1为例,在当前环境的信噪比为SNR1的情况下,档位1的概率是档位1的使用次数除以所有档位的使用次数总和得到的概率值,同理,档位2的概率是档位2的使用次数除以所有档位的使用次数总和得到的概率值;以此类推。因此,在当前环境的信噪比为SNR1的情况下,电子设备确定第1档位至第5档位中使用概率最大的档位并将推荐该档位。
表5:信噪比、档位以及使用频率/使用次数之间的对应关系
Figure PCTCN2022144271-appb-000009
Figure PCTCN2022144271-appb-000010
方式C,电子设备根据用户对档位的使用习惯、以及当前时间,调整当前档位。例如,电子设备中存储有在不同时间段下,用户对每个档位的使用次数和/或使用频率,当电子设备当前时间处于某个时间段时,调整当前档位为该时间段下,所述用户习惯使用的档位。例如,请参见下表6:
表6:时间段、档位以及使用频率/使用次数之间的对应关系
Figure PCTCN2022144271-appb-000011
可以理解的是,上述表6可以是电子设备实时统计得到的,例如,电子设备统计到在不同时间段下,用户调整到1档,且电子设备处于第1档的时长大于预设时长时,则将第1档的使用次数加1。在另一些实施例中,上述表6中的使用频率和/或使用习惯可以替换为使用概率(或简称概率),与上述表5原理相同。
需要说明的是,上述方式A、方式B和方式C可以单独使用,或者结合使用,本申请实施例不作限定。
上述的实施例一至实施例三可以单独使用,也可以结合使用,其中,实施例一和实施例二的结合使用,在前面已经说明过,下面分别以实施例一和实施例三结合、实施例二和实施例三结合为例进行说明。
实施例一与实施例三结合的情况为,电子设备使用实施例一的方式自定义音量曲线,然后可以使用实施例三的方式基于自定义的音量曲线来调整当前档位。
实施例二与实施例三结合时,请参见图20,所述流程包括:
S2001至S2008请参见前文图12中的S1701-S1708描述,不重复赘述,下面从S2009开始说明。
S2009,电子设备采集环境噪声N。
S2010,电子设备采集输出声音的音量S。
S2011,电子设备计算信噪比。
所述信噪比,即电子设备输出的声音音量S与环境噪声N的比值,即S/N。
S2012,电子设备记录使用习惯。
电子设备记录这种信噪比下,用户习惯使用的音量档位之后,可以基于该使用习惯调整当前档位。
需要说明的是,本申请实施例提供的音量调整方法可以适用于各种应用场景,下文示例性的列举几种应用场景。
应用场景一:扬声器场景
扬声器是电子设备外放声音的模块,电子设备中需要使用扬声器输出声音的场景包括:来电响铃、免提通话、多媒体声音外放、闹钟、新消息通知等等。其中,多媒体包括音乐、视频、游戏等应用。
应用场景二:听筒场景
电子设备中需要使用受话器的场景包括:接听来电、播放即时通信应用中的语音消息,等等。
应用场景三、外接声音输出设备的场景
例如,耳机,所述耳机与电子设备可以是有线连接或无线连接。
在一些实施例中,同一个音量曲线可以适用于所有场景,或者,针对不同场景,具有不同的音量曲线,电子设备可以对不同场景所对应的音量曲线进行单独调整。
例如,如图21中(a),电子设备显示界面604。界面604中包括场景按键2100。当电子设备检测到针对场景按键2100的操作时,显示如图21中(b)所示的界面,该界面中包括各种场景标识,例如来电、信息、通知、闹钟、音乐、视频、游戏、通话、智慧语音、耳机等等。假设电子设备检测到针对按键2101的操作时,显示如图21中(c)所示的界面,该界面用于调整来电、信息、通知场景下的音量档位范围、音量上限、音量调节精度等。
虽然本说明书的描述将结合一些实施例一起介绍,但这并不代表此申请的特征仅限于该实施方式。恰恰相反,结合实施方式作申请介绍的目的是为了覆盖基于本说明书的权利要求而有可能延伸出的其它选择或改造。为了提供对本说明书的深度了解,以下描述中将包含许多具体的细节。本说明书也可以不使用这些细节实施。此外,为了避免混乱或模糊本说明书的重点,有些具体细节将在描述中被省略。需要说明的是,在不冲突的情况下,本说明书中的实施例及实施例中的特征可以相互组合。
图22所示为本申请提供的一种电子设备2200。该电子设备2200可以是前文中的手机或者其它电子设备。如图22所示,电子设备2200可以包括:一个或多个处理器2201;一个或多个存储器2202;通信接口2203,以及一个或多个计算机程序2204,上述各器件可以通过一个或多个通信总线2205连接。其中该一个或多个计算机程序2204被存储在上述存储器2202中并被配置为被该一个或多个处理器2201执行,该一个或多个计算机程序2204包括指令,上述指令可以用于执行如上面相应实施例中手机的相关步骤。通信接口2203用于实现与其他设备的通信,例如通信接口可以是收发器。
上述本申请提供的实施例中,从电子设备(例如手机)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。另外,在上述实施例中,使用诸如第一、第二之类的关系术语来区份一个实体和另一个实体,而并不限制这些实体之间的任何实际的关系和顺序。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实 施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本发明实施例该的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。
需要指出的是,本专利申请文件的一部分包含受著作权保护的内容。除了对专利局的专利文件或记录的专利文档内容制作副本以外,著作权人保留著作权。

Claims (23)

  1. 一种音量调整方法,其特征在于,应用于电子设备,所述方法包括:
    所述电子设备包括N个音量档位,N为正整数,所述N个音量档位中包括第一档位和第二档位,且所述第一档位对应第一音量,所述第二档位对应第二音量,所述第一音量与所述第二音量之间的差值为第一差值;
    在满足第一条件时,所述电子设备调整为M个音量档位,M为正整数,所述M个音调档位中包括第三档位和第四档位,所述第三档位与所述第一档位是同一档位,所述第四档位与所述第二档位是同一档位,且所述第三档位对应第三音量,所述第四档位对应第四音量,所述第三音量与所述第四音量之间的差值为第二差值;
    其中,所述M个音量档位满足如下至少一种:
    所述M不等于所述N;或,
    所述第三音量不等于所述第一音量;或,
    所述第四音量不等于所述第二音量;或,
    所述第二差值不等于所述第一差值。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第一档位和所述第二档位是相邻档位,所述第三档位和所述第四档位是相邻档位,所述第二差值小于所述第一差值。
  3. 根据权利要求2所述的方法,其特征在于,所述满足第一条件,包括:
    检测到第一预设时长内在所述第一档位和所述第二档位之间的切换次数大于第一预设次数。
  4. 根据权利要求1所述的方法,其特征在于,
    所述第一档位和所述第三档位是最高档位,所述第二档位和所述第四档位是最低档位,所述第二差值大于所述第一差值。
  5. 根据权利要求4所述的方法,其特征在于,所述第三音量高于所述第一音量,和/或,所述第四音量低于所述第二音量。
  6. 根据权利要求4或5所述的方法,其特征在于,所述满足第一条件,包括:
    在当前已达到所述第一档位的情况下,接收到用于指示继续调高音量的操作;和/或,
    在当前已达到所述第二档位的情况下,接收到用户指示继续调低音量的操作。
  7. 根据权利要求6所述的方法,其特征在于,
    所述继续调高音量的操作,包括:针对用于调高音量的按键的长按操作,或,在第二预设时长内对用于调高音量的按键的按压次数大于第二预设次数的操作;
    所述继续调低音量的操作,包括:针对用于调低音量的按键的长按操作,或,在第三预设时长内对用于调低音量的按键的按压次数大于第三预设次数的操作。
  8. 根据权利要求1所述的方法,其特征在于,所述满足第一条件,包括如下至少一种:
    检测到所述N个音量档位中存在使用频率低于阈值的档位;或,
    检测到所述电子设备的当前使用者发生变化;或,
    检测到所述电子设备当前所在环境发生变化;或,
    检测到所述电子设备与外接声音输出设备连接;或,
    检测到用户在第一界面中的音量调整操作。
  9. 根据权利要求8所述的方法,其特征在于,
    所述第一条件包括所述N个音量档位中存在使用频率低于阈值的档位时,所述调整为M个音量档位包括:去掉所述使用频率低于阈值的档位;或,
    所述第一条件包括所述电子设备的当前使用者发生变化时,所述调整为M个音量档位包括:调整为所述当前使用者所对应的M个音量档位;或,
    所述第一条件包括所述电子设备当前所在环境发生变化时,所述调整为M个音量档位包括:调整为所述当前所在环境所对应的M个音量档位;或,
    所述第一条件包括所述电子设备与外接声音输出设备连接时,所述调整为M个音量档位包括:调整为所述外接声音输出设备所对应的M个音量档位。
  10. 根据权利要求1-9任一所述的方法,其特征在于,
    所述电子设备的当前档位随着所处环境、时间、电子设备使用者、前台运行应用或连接的声音输出设备中的至少一项的变化而调整。
  11. 根据权利要求1-10任一所述的方法,其特征在于,所述方法还包括:
    所述电子设备检测到进入第一环境时,将当前档位调整为第五档位,所述第五档位是基于第一历史记录确定的在所述第一环境下用户使用概率最高的档位;
    其中,所述第一历史记录中包括历史上在不同环境下用户对每个档位的使用概率。
  12. 根据权利要求1-10任一所述的方法,其特征在于,所述方法还包括:
    所述电子设备确定当前时间处于第一时间段时,将当前档位调整为第六档位,所述第六档位是基于第二历史记录确定的在所述第一时间段内用户使用概率最高的档位;
    其中,所述第二历史记录中包括历史上在不同时间段下用户对每个档位的使用概率。
  13. 根据权利要求1-12任一所述的方法,其特征在于,
    所述电子设备调整为M个音量档位之前,还包括:响应于第一操作,显示第一进度条,通过所述第一进度条所指示的进度描述当前音量;
    所述电子设备调整为M个音量档位之后,还包括:响应于第二操作,显示第二进度条,通过所述第二进度条所指示的进度描述当前音量;
    所述第一进度条与所述第二进度条不同。
  14. 根据权利要求13所述的方法,其特征在于,所述第一进度条与所述第二进度条不同,包括如下至少一项:
    所述第一进度条与所述第二进度条的总长度不同;或,
    所述第一进度条的移动步长与所述第二进度条的移动步长不同,所述移动步长用于指示调整一个档位时需要移动的长度;或,
    所述第一进度条的移动次数与所述第二进度条的移动次数不同,所述移动次数用于指示从最低档调整到最高档时需要移动的次数。
  15. 根据权利要求14所述的方法,其特征在于,
    所述第一进度条的总长度、移动次数与所述N相关,所述第一进度条的移动步长与所述N个音量档位中相邻两个档位之间的音量差相关;
    所述第二进度条的总长度、移动次数与所述M相关,所述第二进度条的移动步长与所述M个音量档位中相邻两个档位之间的音量差相关。
  16. 根据权利要求1-15任一所述的方法,其特征在于,所述方法还包括:
    显示第一提示条,所述第一提示条所述指示的进度用于描述当前音量;
    响应于第三操作,显示第二提示条;所述第二提示条上的进度改变第一长度时,所述第一提示条上的进度改变第二长度,其中,所述第一长度和所述第二长度对应的音量改变量相同,且所述第一长度大于所述第二长度。
  17. 根据权利要求5所述的方法,其特征在于,所述第三音量高于所述第一音量,包括:
    所述第三音量满足公式:
    Figure PCTCN2022144271-appb-100001
    其中,Y1为所述第三音量;x代表档位,x max代表所述第一档位,f(x max)代表所述第一音量,x 1代表所述第二档位,f(x 1)代表所述第二音量。
  18. 根据权利要求5所述的方法,其特征在于,所述第四音量低于所述第二音量,包括:
    所述第四音量满足:
    Figure PCTCN2022144271-appb-100002
    其中,Y1为所述第四音量;x代表档位,x max代表所述第一档位,f(x max)代表所述第一音量,x 1代表所述第二档位,f(x 1)代表所述第二音量。
  19. 根据权利要求1-18任一所述的方法,其特征在于,所述方法还包括:
    所述电子设备上喇叭外放声音时、听筒播放声音时或通过外接声音输出设备输出声音时,使用所述M个音量档位。
  20. 根据权利要求19所述的方法,其特征在于,
    所述喇叭外放声音,包括:来电铃声、免提通话、新消息通知、闹钟、多媒体应用输出的声音中的至少一种;
    所述听筒播放声音,包括:语音通话和/或语音消息播放。
  21. 一种电子设备,其特征在于,包括:
    处理器,存储器,以及,一个或多个程序;
    其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行如权利要求1-20任一项所述的方法。
  22. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-20任意一项所述的方法。
  23. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如上述权利要求1-20中任意一项所述的方法。
PCT/CN2022/144271 2022-01-25 2022-12-30 一种音量调整方法与电子设备 WO2023142900A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210087253.1 2022-01-25
CN202210087253.1A CN116540970A (zh) 2022-01-25 2022-01-25 一种音量调整方法与电子设备

Publications (1)

Publication Number Publication Date
WO2023142900A1 true WO2023142900A1 (zh) 2023-08-03

Family

ID=87444065

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/144271 WO2023142900A1 (zh) 2022-01-25 2022-12-30 一种音量调整方法与电子设备

Country Status (2)

Country Link
CN (1) CN116540970A (zh)
WO (1) WO2023142900A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9971561B1 (en) * 2016-11-15 2018-05-15 Oath Inc. Volume control
CN108052304A (zh) * 2017-11-22 2018-05-18 努比亚技术有限公司 一种音量调节方法、设备及计算机存储介质
CN108279861A (zh) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 音量调节方法、装置及存储介质
WO2019033436A1 (zh) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 音量调节方法、装置、存储介质及移动终端
CN112698806A (zh) * 2020-12-29 2021-04-23 维沃移动通信有限公司 参数调整方法、装置、电子设备和可读存储介质
CN113489844A (zh) * 2021-07-01 2021-10-08 荣耀终端有限公司 一种音量档位的调整方法及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9971561B1 (en) * 2016-11-15 2018-05-15 Oath Inc. Volume control
WO2019033436A1 (zh) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 音量调节方法、装置、存储介质及移动终端
CN108279861A (zh) * 2017-08-31 2018-07-13 腾讯科技(深圳)有限公司 音量调节方法、装置及存储介质
CN108052304A (zh) * 2017-11-22 2018-05-18 努比亚技术有限公司 一种音量调节方法、设备及计算机存储介质
CN112698806A (zh) * 2020-12-29 2021-04-23 维沃移动通信有限公司 参数调整方法、装置、电子设备和可读存储介质
CN113489844A (zh) * 2021-07-01 2021-10-08 荣耀终端有限公司 一种音量档位的调整方法及电子设备

Also Published As

Publication number Publication date
CN116540970A (zh) 2023-08-04

Similar Documents

Publication Publication Date Title
US11450322B2 (en) Speech control method and electronic device
CN113169760B (zh) 无线短距离音频共享方法及电子设备
WO2021083128A1 (zh) 一种声音处理方法及其装置
CN110602312B (zh) 通话方法、电子设备及计算机可读存储介质
WO2021000817A1 (zh) 环境音处理方法及相关装置
JP2022518656A (ja) 着信があるときに電子デバイス上に映像を提示するための方法、および電子デバイス
EP4152782A1 (en) Message pushing method and apparatus
CN114077365A (zh) 分屏显示方法和电子设备
CN113722030A (zh) 一种显示方法、电子设备及计算机存储介质
CN114115770A (zh) 显示控制的方法及相关装置
WO2023241209A9 (zh) 桌面壁纸配置方法、装置、电子设备及可读存储介质
WO2023088209A1 (zh) 一种跨设备音频数据传输的方法和电子设备
CN114172983A (zh) 一种接近光传感器控制方法及相关设备
WO2020151408A1 (zh) 一种显示联系人的方法及相关装置
WO2021042881A1 (zh) 消息通知方法及电子设备
CN113438366A (zh) 信息通知的交互方法、电子设备和存储介质
WO2023142900A1 (zh) 一种音量调整方法与电子设备
CN113467747B (zh) 音量调节方法、电子设备及存储介质
WO2024046416A1 (zh) 一种音量调节方法、电子设备及系统
WO2024016229A1 (zh) 音频处理方法及电子设备
WO2023006035A1 (zh) 一种投屏方法、系统及电子设备
CN114666444B (zh) 设备控制方法、装置和电子设备
KR102668913B1 (ko) 통화 방법 및 장치
JP7404389B2 (ja) 運動軌跡記録方法及び関連デバイス
WO2023124829A1 (zh) 语音协同输入方法、电子设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923685

Country of ref document: EP

Kind code of ref document: A1