Volume adjusting method and device, equipment and storage medium

By using sensors to detect the signal strength of environmental parameters of electronic devices, the volume is automatically adjusted, solving the problem that the volume of electronic devices cannot be adjusted in time when the environment changes, thus improving the user experience.

CN121635835APending Publication Date: 2026-03-10GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Electronic devices cannot adjust their volume in time when the external environment changes abruptly, resulting in a poor user experience, especially the problem of not being able to hear clearly when moving from indoors to outdoors or in sports scenarios.

Method used

The system uses sensors to detect the air pressure and audio parameters of the environment in which the electronic device is located, judges environmental changes based on signal strength, and automatically adjusts the volume.

Benefits of technology

It enables automatic volume adjustment of electronic devices when the environment changes, improving the user experience and solving the problem of not being able to hear clearly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121635835A_ABST
    Figure CN121635835A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a volume adjusting method and device, equipment and a storage medium. According to the technical scheme, the electronic equipment firstly obtains at least one detection signal of at least one sensor, the at least one detection signal is used for detecting environment parameters of the environment where the electronic equipment is located, and the environment parameters comprise at least one of air pressure parameters and audio parameters of the environment where the electronic equipment is located; according to the signal intensity of each detection signal, whether the environment where the electronic equipment is located changes is determined; and finally, under the condition that the environment where the electronic equipment is located changes, adjusting the volume of the electronic equipment. According to the volume adjustment method, whether the environment where the electronic equipment is located is changed or not is determined according to the signal intensity of the detection signal of the sensor, then the volume of the electronic equipment is adjusted under the condition that the environment where the electronic equipment is located is changed, the function of automatically adjusting the volume of the electronic equipment is achieved, and the user experience is improved. And the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic device technology, and to, but is not limited to, a method, apparatus, device, and storage medium for adjusting volume. Background Technology

[0002] Typically, the volume of electronic devices can only be adjusted manually or not at all. Therefore, when encountering sudden changes in the external environment, the volume of the device can easily become unclear. Taking watches as an example, the volume of a regular watch can only be adjusted manually; when a user moves from indoors to outdoors, the external sounds usually change, and the watch's volume cannot be adjusted in time, resulting in problems such as not being able to hear clearly, leading to a poor user experience. Summary of the Invention

[0003] In view of this, the volume adjustment method, apparatus, device, and storage medium provided in the embodiments of this application can realize automatic volume adjustment of electronic devices. The volume adjustment method, apparatus, device, and storage medium provided in the embodiments of this application are implemented as follows:

[0004] The volume adjustment method provided in this application is applied to an electronic device. The electronic device includes a main body, a front cover, and at least one sensor, wherein the at least one sensor is located between the main body and the front cover. The method includes: acquiring at least one detection signal from the at least one sensor, wherein the at least one detection signal is used to detect environmental parameters of the environment in which the electronic device is located, wherein the environmental parameters include at least one of atmospheric pressure parameters and audio parameters of the environment; determining whether the environment in which the electronic device is located has changed based on the signal strength of each detection signal; and adjusting the volume of the electronic device when the environment in which the electronic device is located changes.

[0005] In some embodiments, determining whether the environment of the electronic device has changed based on the signal strength of each detection signal includes: determining whether the signal strength of each detection signal has changed within a preset time period, wherein the end time of the preset time period is the current time; and determining that the environment of the electronic device has changed if the signal strength of each detection signal has changed within the preset time period or if the signal strength of at least some detection signals has changed within the preset time period.

[0006] In some embodiments, adjusting the volume of the electronic device includes: acquiring a target signal strength, the target signal strength being determined based on the signal strength of each detected signal at the current moment; determining a target volume value corresponding to the target signal strength based on a preset first mapping relationship between signal strength and volume value; and adjusting the volume of the electronic device to the target volume value.

[0007] In some embodiments, adjusting the volume of the electronic device includes: acquiring a trend of signal strength change, the trend being determined based on the signal strength of each detected signal within a preset duration; increasing the volume of the electronic device when the trend indicates that the signal strength of each detected signal increases within the preset duration; or decreasing the volume of the electronic device when the trend indicates that the signal strength of each detected signal decreases within the preset duration.

[0008] In some embodiments, adjusting the volume of the electronic device includes: acquiring a target signal strength change, the target signal strength change being determined based on the signal strength of each detected signal at the current moment; determining a target volume adjustment amount based on a second mapping relationship between a preset change amount and a volume adjustment amount, and the target signal strength change amount; and adjusting the volume of the electronic device based on the target volume adjustment amount.

[0009] In some embodiments, adjusting the volume of the electronic device includes: determining the target scene in which the electronic device is located based on the signal strength of each detection signal at the current moment; determining the target volume value based on a preset fourth mapping relationship between the scene and the volume value; and adjusting the volume of the electronic device to the target volume value.

[0010] In some embodiments, adjusting the volume of the electronic device includes: acquiring a target signal strength and the original volume value of the electronic device, wherein the target signal strength is determined based on the signal strength of each detected signal at the current moment; determining a target volume value corresponding to the target signal strength according to a preset first mapping relationship between signal strength and volume value; and adjusting the volume of the electronic device to the target volume value when the difference between the target volume value and the original volume value is greater than a preset threshold.

[0011] In some embodiments, before adjusting the volume of the electronic device, the method further includes: determining whether the current scene of the electronic device is a preset scene, the preset scene including a scene in which the signal strength of only a portion of the at least one detection signal changes within a preset duration; adjusting the volume of the electronic device includes: adjusting the volume of the electronic device when the current scene of the electronic device is not the preset scene and the environment of the electronic device changes.

[0012] In some embodiments, the method further includes: keeping the current volume of the electronic device unchanged when the current scenario of the electronic device is the preset scenario.

[0013] The volume adjustment device provided in this application embodiment is applied to an electronic device. The electronic device includes a main body, a front cover, and at least one sensor. The at least one sensor is located between the main body and the front cover. The device includes: an acquisition module, used to acquire at least one detection signal from the at least one sensor, the at least one detection signal being used to detect environmental parameters of the environment in which the electronic device is located, the environmental parameters including at least one of atmospheric pressure parameters and audio parameters of the environment; a determination module, used to determine whether the environment in which the electronic device is located has changed based on the signal strength of each detection signal; and an adjustment module, used to adjust the volume of the electronic device when the environment in which the electronic device is located changes.

[0014] The computer device provided in this application includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the method described in this application.

[0015] The computer-readable storage medium provided in this application embodiment stores a computer program thereon, which, when executed by a processor, implements the method described in this application embodiment.

[0016] The computer program product provided in this application includes a computer program that, when executed by a processor, implements the method described in this application.

[0017] In the volume adjustment method, apparatus, device, and storage medium provided in this application, the electronic device first acquires at least one detection signal from at least one sensor. The at least one detection signal is used to detect environmental parameters of the environment in which the electronic device is located, including at least one of atmospheric pressure and audio parameters. Then, based on the signal strength of each detection signal, it is determined whether the environment in which the electronic device is located has changed. Finally, if the environment in which the electronic device is located changes, the volume of the electronic device is adjusted. In the volume adjustment method of this application, the signal strength of the sensor's detection signal is used to determine whether the environment in which the electronic device is located has changed, and then, if the environment in which the electronic device is located changes, the volume of the electronic device is adjusted. This achieves the function of automatic volume adjustment of the electronic device, improves the user experience, and solves the technical problems mentioned in the background art. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0019] Figure 1 A schematic diagram of the system architecture of an electronic device provided in one embodiment of this application;

[0020] Figure 2 This is a schematic diagram of the structure of a watch provided in one embodiment of this application;

[0021] Figure 3 A schematic diagram illustrating the implementation flow of a volume adjustment method provided in one embodiment of this application;

[0022] Figure 4 This is a schematic diagram illustrating the relationship between the force and signal strength of a sensor provided in one embodiment of this application.

[0023] Figure 5 A schematic diagram illustrating the relationship between force and signal strength of a sensor provided in another embodiment of this application;

[0024] Figure 6 A schematic diagram illustrating the implementation flow of a volume adjustment method provided in another embodiment of this application;

[0025] Figure 7 A schematic diagram illustrating a watch receiving barometric pressure loads from the external environment, provided as an embodiment of this application;

[0026] Figure 8 A schematic diagram of the structure of a volume adjustment device provided in one embodiment of this application;

[0027] Figure 9 This is a structural schematic diagram of a computer device provided in one embodiment of this application. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0030] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0031] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0032] With the continuous development and improvement of communication technology, mobile phones, watches and other electronic devices have become an indispensable part of people's lives. People can not only use these mobile terminals for communication, but also for entertainment, text reading and other purposes.

[0033] The volume of most electronic devices can only be adjusted manually or not at all, which can easily lead to problems with the volume being unclear when there are sudden changes in the external environment. Take watches as an example. The volume of a typical watch can only be adjusted manually or not at all. When a user moves from indoors to outdoors, the external sounds usually change, and the watch's volume cannot be adjusted in time, resulting in problems with not being able to hear clearly. Similarly, in active scenarios such as cycling, wind resistance can make it difficult for users to hear clearly, and there is no way to manually increase the volume, resulting in a poor user experience.

[0034] In view of this, embodiments of this application provide a volume adjustment method applied to an electronic device. The electronic device includes a main body, a front cover, and at least one sensor, with the at least one sensor located between the main body and the front cover. Specifically, the method includes: the electronic device first acquiring at least one detection signal from the at least one sensor, the at least one detection signal being used to detect environmental parameters of the environment in which the electronic device is located, including at least one of atmospheric pressure and audio parameters; then, determining whether the environment in which the electronic device is located has changed based on the signal strength of each detection signal; and finally, adjusting the volume of the electronic device when the environment in which the electronic device is located changes. In this volume adjustment method, the signal strength of the sensor's detection signal is used to determine whether the environment in which the electronic device is located has changed, and then the volume of the electronic device is adjusted when the environment in which the electronic device is located changes, thus realizing the function of automatic volume adjustment of the electronic device and improving the user experience.

[0035] It should be understood that the electronic devices involved in the embodiments of this application may be mobile phones, watches, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, smart screens, artificial intelligence (AI) speakers, headphones, terminals in industrial control, terminals in self-driving, terminals in remote medical surgery, terminals in smart grids, terminals in transportation safety, terminals in smart cities, terminals in smart homes, personal digital assistants (PDAs), etc., and the embodiments of this application are not limited to these.

[0036] For example, Figure 1 This is a schematic diagram of the system architecture of an electronic device provided in one embodiment of this application. Figure 1 As shown, the electronic device includes components such as a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a power module 180.

[0037] The processor 110 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 120, and by calling data stored in the memory 120, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly handles operating devices, user interfaces, and application programs. Of course, it may also include other processors, which are not listed here.

[0038] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 120. The memory 120 mainly includes a program storage area and a data storage area. The program storage area can store the operating device and application programs required for at least one function (such as sound playback function, image playback function, etc.). The data storage area can store data created according to the use of the electronic device (such as audio data, telephone book, etc.). In addition, the memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0039] Transceiver 130 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. Transceiver 130 can be one or more devices integrating at least one communication processing module; for example, it can integrate an antenna with a baseband processor, or it can integrate an antenna with a modem processor, etc., without limitation.

[0040] The display unit 140 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device. The display unit 140 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like, and is not limited thereto.

[0041] The input unit 150 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the input unit 150 can collect user operations on or near it and drive corresponding connected devices according to a pre-set program. Furthermore, the input unit 150 may include a touch panel, which can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave touch panels. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of the following: function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc.

[0042] Electronic devices may also include at least one sensor 160, such as a pressure sensor, vibration sensor, gyroscope sensor, motion sensor, and other sensors. Motion sensors may include accelerometers for detecting the magnitude of acceleration in various directions, and when stationary, they can detect the magnitude and direction of gravity, which can be used for applications that identify the posture of electronic devices, such as screen orientation switching, related games, and magnetometer posture calibration. Pressure sensors can be used to sense the pressure from wind. Vibration sensors can be used to sense vibrations caused by sound waves. Other sensors that may be configured in electronic devices, such as pressure gauges, barometers, hygrometers, thermometers, infrared sensors, and fingerprint sensors, are not detailed here.

[0043] The audio circuit 170 may include a speaker and a microphone, providing an audio interface between the user and the electronic device. The audio circuit 170 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. On the other hand, the microphone converts collected sound signals into electrical signals, which are received by the audio circuit 170, converted into audio data, and then output to the processor 110 for processing. The audio data is then transmitted via the video circuit to, for example, another electronic device, or output to the memory 120 for further processing.

[0044] The electronic device also includes a power module 180 that supplies power to the various components. Optionally, the power module 180 can be logically connected to the processor 110 through a power management device, thereby enabling functions such as charging, discharging, and power consumption management through the power management device.

[0045] Although not shown, the electronic device may also include a camera. Optionally, the camera may be positioned in the front or rear of the electronic device, and this application embodiment does not limit this.

[0046] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0047] To make the objectives and technical solutions of this application clearer and more intuitive, the volume adjustment method, apparatus, device, and storage medium provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0048] It should be noted that the electronic device in the embodiments of this application includes a main body, a faceplate, and at least one sensor, with the at least one sensor located between the main body and the faceplate.

[0049] Taking a watch as an example, please refer to... Figure 2 This is a schematic diagram of the structure of a watch provided in one embodiment of this application. Figure 2 As shown, the watch includes a main body 201, a faceplate 202, and at least one sensor 203. The main body 201 includes the aforementioned... Figure 1 The processor 110, memory 120, and other components shown are arranged with the faceplate 202 located on the surface of the main body 201, and the sensor 203 located between the main body 201 and the faceplate 202, i.e., below the faceplate 202. The sensor 203 can sense the pressure and vibration loads received by the faceplate 202 and is connected to the inside of the watch via a flexible printed circuit (FPC) to transmit signals. The sensor 203 may include a pressure sensor, vibration sensor, gyroscope sensor, motion sensor, etc., and this application does not limit its application to these.

[0050] The sensor can be one or multiple. When there is only one sensor, it can be located anywhere on the main body, beneath the casing, such as above or below the main body. When there are multiple sensors, they can be evenly distributed across the main body, beneath the casing, or distributed at any location on the main body, beneath the casing. For example... Figure 2 The main body 201 shown has eight sensors 203 distributed around it. These sensors are distributed around the main body 201, with three on the top and bottom, and one on the left and right sides. They are all located under the cover of the shell 202, which can acquire detection signals relatively comprehensively.

[0051] Please refer to Figure 3This is a schematic diagram illustrating the implementation flow of a volume adjustment method provided in one embodiment of this application. This method can be applied to, for example... Figure 1 The electronic devices shown or Figure 2 The watch shown, such as Figure 3 As shown, the method may include the following steps 301 to 303:

[0052] Step 301: Acquire at least one detection signal from at least one sensor, wherein the at least one detection signal is used to detect environmental parameters of the environment in which the electronic device is located, and the environmental parameters include at least one of atmospheric pressure parameters and audio parameters of the environment.

[0053] In some embodiments, the casing of the electronic device can receive loads from the external environment, such as atmospheric pressure loads in a windy scene, audio vibration loads in a noisy scene, etc. Accordingly, at least one sensor can sense the loads received by the casing, that is, acquire at least one detection signal and transmit information.

[0054] For example, since the sensors receive electrical signals, if there is an air pressure load in the environment during a windy scene, the air pressure load will exert pressure on the shell. At this time, the sensor can sense the effect of a continuous force. Assuming that the wind gets stronger, the signal strength of the sensor's electrical signal, that is, the detection signal, will become stronger.

[0055] For example, assuming the sensor is a pressure sensor, the relationship between the force applied to the sensor and the signal strength can be as follows: Figure 4 As shown, the horizontal axis represents Newtons and the vertical axis represents the signal strength of the detected signal. As the force on the sensor increases, the signal strength increases, and at this point, the sensor is considered to be detecting a pressure signal.

[0056] For example, if an audio vibration load exists in a noisy environment, it will cause the faceplate to vibrate. In this case, the sensor can detect an intermittent force. For instance, assuming the sensor is a vibration sensor, the relationship between the force acting on the sensor and the signal strength can be as follows: Figure 5 As shown, the horizontal axis represents Newtons and the vertical axis represents the signal strength of the detected signal. The sensor can sense intermittent, pulse-like signals, and at this time, it is considered that the sensor has detected a vibration signal.

[0057] It should be noted that electronic devices may include pressure sensors, vibration sensors, etc. The signals that different sensors can detect may be preset or can all be detected and then classified. This application does not limit this.

[0058] Step 302: Determine whether the environment in which the electronic device is located has changed based on the signal strength of each detection signal.

[0059] In some embodiments, the detection signal may include pressure signal, vibration signal, etc. When the electronic device includes multiple pressure sensors and / or multiple vibration sensors, the signal strength of the final pressure signal or vibration signal of the electronic device may be obtained from the average value of the detection signals collected by the corresponding sensors, or it may be the variance, or summation, etc.

[0060] In some embodiments, a change in the environment of the electronic device is determined when the signal strength of a detection signal, such as a pressure signal or vibration signal from the electronic device, changes. That is, a change in the environment of the electronic device can be considered to be a change in the signal strength of its pressure or vibration signal compared to its initial value.

[0061] Optionally, a change threshold can be set based on experience. When the signal intensity value of each detection signal, such as the pressure signal or vibration signal of the electronic device, increases by a value greater than the initial value but decreases by a value greater than the change threshold, it is considered that the environment in which the electronic device is located has changed. When the signal intensity value of each detection signal increases by a value less than or equal to the initial value but decreases by a value less than or equal to the change threshold, it is considered that the environment in which the electronic device is located has not changed.

[0062] Step 303: Adjust the volume of the electronic device when the environment in which the electronic device is located changes.

[0063] In some embodiments, when the environment in which the electronic device is located changes, the volume of the electronic device can be adjusted according to the change in the signal strength of the corresponding detection signal. For example, if the signal strength of the detection signal increases, the volume is increased; if the signal strength of the detection signal decreases, the volume is decreased, and so on. The specific amount of increase or decrease can be preset, and this application does not limit it.

[0064] In this embodiment, the electronic device first acquires at least one detection signal from at least one sensor. This detection signal detects environmental parameters of the environment in which the electronic device is located, including at least one of atmospheric pressure and audio parameters. Then, based on the signal strength of each detection signal, it determines whether the environment in which the electronic device is located has changed. Finally, if the environment in which the electronic device is located changes, the volume of the electronic device is adjusted. In this volume adjustment method, the signal strength of the sensor's detection signal determines whether the environment in which the electronic device is located has changed, and then, if the environment in which the electronic device is located changes, the volume of the electronic device is adjusted, thus achieving the function of automatic volume adjustment and improving the user experience.

[0065] Based on the above embodiments, Figure 6 A schematic diagram illustrating the implementation flow of a volume adjustment method provided in another embodiment of this application is shown below. Figure 6 As shown, the method may include the following steps 601 to 604:

[0066] Step 601: Acquire at least one detection signal from at least one sensor, wherein the at least one detection signal is used to detect environmental parameters of the environment in which the electronic device is located, and the environmental parameters include at least one of atmospheric pressure parameters and audio parameters of the environment.

[0067] In some embodiments, the casing of the electronic device can receive loads from the external environment, such as atmospheric pressure loads in a windy scene, audio vibration loads in a noisy scene, etc. Accordingly, at least one sensor can sense the loads received by the casing, that is, acquire at least one detection signal and transmit information, that is, the sensor transmits the detection signal to the central processor of the electronic device for processing.

[0068] As an example, suppose the electronic device is Figure 2 The watch shown is a schematic diagram illustrating how the watch case receives pressure loads from the external environment during windy conditions. Figure 7 As shown, the wind can blow evenly onto the watch case, and the case receives the air pressure load. Correspondingly, the sensor under the case can sense the pressure signal.

[0069] Step 602: Determine whether the signal strength of each detection signal changes within a preset time period, where the end time of the preset time period is the current time.

[0070] In some embodiments, the signal strength values ​​of each detection signal in the electronic device from the initial time to the current time can be obtained, and based on the magnitude of the signal strength values, it can be determined whether the signal strength of each detection signal has changed within a preset time period. The preset time period includes the total time from the preset initial time to the current time.

[0071] Step 603: If the signal strength of each detection signal changes within a preset time period, or if the signal strength of at least some detection signals changes within a preset time period, it is determined that the environment in which the electronic device is located has changed.

[0072] In some embodiments, if the signal strength of each detected signal, such as the pressure signal and vibration signal of the electronic device, changes within a preset time period; or if the signal strength of at least some detected signals, such as only the pressure signal of the electronic device, changes within a preset time period, then it is determined that the environment in which the electronic device is located has changed.

[0073] Step 604: Adjust the volume of the electronic device when the environment in which the electronic device is located changes.

[0074] In some embodiments, one way to adjust the volume of an electronic device is to: obtain a target signal strength, which is determined based on the signal strength of each detected signal at the current moment; then, determine a target volume value corresponding to the target signal strength based on a preset first mapping relationship between signal strength and volume value; and finally, adjust the volume of the electronic device to the target volume value.

[0075] The preset first mapping relationship between signal strength and volume value can be set based on experience or it can be preset; this application does not limit this.

[0076] For example, suppose the electronic device is in a windy situation and the signal strength of the pressure signal of the electronic device at the current moment is 'a'. The electronic device has a first mapping relationship between signal strength and volume value. According to the first mapping relationship and the signal strength of the pressure signal 'a', the target volume value 'b' corresponding to 'a' can be obtained. Finally, the volume of the electronic device is adjusted to the target volume value 'b'.

[0077] In some embodiments, another way to adjust the volume of an electronic device is to: acquire the trend of signal strength change, the trend of change being determined based on the signal strength of each detected signal within a preset duration; increase the volume of the electronic device when the trend of change indicates that the signal strength of each detected signal increases within the preset duration; or decrease the volume of the electronic device when the trend of change indicates that the signal strength of each detected signal decreases within the preset duration.

[0078] The increase and decrease in volume can be set based on experience or preset, and this application does not limit this.

[0079] For example, suppose an electronic device is in a windy environment where the wind is getting stronger. If the signal strength of the pressure signal on the electronic device increases within a preset time period, the volume of the electronic device will increase. Conversely, if the electronic device is in a windy environment where the wind is getting weaker, if the signal strength of the pressure signal on the electronic device decreases within a preset time period, the volume of the electronic device will decrease.

[0080] In some embodiments, another way to adjust the volume of an electronic device is as follows: obtaining a target signal strength change, the target signal strength change being determined based on the signal strength of each detected signal at the current moment; determining a target volume adjustment amount based on a second mapping relationship between a preset change amount and a volume adjustment amount, and the target signal strength change amount; and adjusting the volume of the electronic device based on the target volume adjustment amount.

[0081] The second mapping relationship between the preset change amount and the volume adjustment amount can be set based on experience or it can be preset; this application does not limit this.

[0082] For example, assuming the electronic device is in a windy situation and the wind is getting stronger, the change in the signal strength of the pressure signal of the electronic device from a preset initial time to the current time is calculated. The electronic device has a preset second mapping relationship between the change and the volume adjustment amount. According to the second mapping relationship and the change in the signal strength of the pressure signal, the corresponding target volume adjustment amount can be obtained. Finally, the volume of the electronic device is adjusted according to the target volume adjustment amount.

[0083] In some embodiments, another way to adjust the volume of an electronic device is as follows: determine the target scene in which the electronic device is located based on the signal strength of each detection signal at the current moment; determine the target volume value based on the preset fourth mapping relationship between the scene and the volume value; and adjust the volume of the electronic device to the target volume value.

[0084] The preset scene and the fourth mapping relationship of volume value can be set based on experience or preset, and this application does not limit it.

[0085] For example, assuming the signal strength of the pressure signal of the electronic device at the current moment is c, the target scene of the electronic device is determined to be a windy scene based on the signal strength c of the pressure signal. The electronic device has a preset fourth mapping relationship between the scene and the volume value. Based on the fourth mapping relationship and the windy scene, the target volume value d corresponding to the windy scene can be obtained. Finally, the volume of the electronic device is adjusted to the target volume value d.

[0086] In some embodiments, another way to adjust the volume of an electronic device is as follows: obtain the target signal strength and the original volume value of the electronic device, wherein the target signal strength is determined based on the signal strength of each detected signal at the current moment; then determine the target volume value corresponding to the target signal strength according to the preset first mapping relationship between signal strength and volume value; finally, if the difference between the target volume value and the original volume value is greater than a preset threshold, adjust the volume of the electronic device to the target volume value.

[0087] The preset first mapping relationship between signal strength and volume value can be set based on experience or it can be preset; this application does not limit this.

[0088] For example, suppose an electronic device is in a windy environment, and the original volume value of the electronic device is m, and the signal strength of the pressure signal at the current moment is e. The electronic device has a preset first mapping relationship between signal strength and volume value. Based on this first mapping relationship and the signal strength e of the pressure signal, a target volume value n corresponding to the signal strength e can be obtained. Furthermore, the original volume value m and the target volume value n are compared. If the difference between the original volume value m and the target volume value n is greater than a preset threshold, the volume of the electronic device is adjusted to the target volume value n. In other words, when the difference between the original volume and the target volume is large, the volume of the electronic device is adjusted based on the target volume to prevent the user from not being able to hear clearly in a windy environment.

[0089] Optionally, if the difference between the original volume value m and the target volume value n is less than or equal to a preset threshold, the original volume value m can be kept unchanged. In other words, when the difference between the original volume and the target volume of the electronic device is not significant, the volume of the electronic device does not need to be adjusted.

[0090] In one possible implementation, before adjusting the volume of the electronic device, it can be first determined whether the current scene of the electronic device is a preset scene. A preset scene includes a scene where the signal strength of only a portion of the detection signals changes within a preset time period. Further, if the current scene of the electronic device is not a preset scene and the environment of the electronic device changes, the volume of the electronic device is adjusted. If the current scene of the electronic device is a preset scene, the current volume of the electronic device is kept unchanged.

[0091] Optionally, the preset scenario includes a scenario where the signal strength of only a portion of the detection signals changes within a preset time period. For example, assuming the electronic device includes multiple pressure sensors, in an impact scenario, if only a certain part of the electronic device is impacted, the signal strength of the detection signal of only one of the multiple pressure sensors may be significantly higher; in this impact scenario, the current volume of the electronic device remains unchanged.

[0092] In other words, under certain preset scenarios, such as an impact scenario, if only some of the multiple feedback detection signals change abruptly, the volume of the electronic device should not be adjusted; the original volume should remain unchanged.

[0093] In this embodiment, the electronic device first acquires at least one detection signal from at least one sensor, then determines whether the signal strength of each detection signal changes within a preset time period, where the end of the preset time period is the current time. If the signal strength of all detection signals changes within the preset time period, or if the signal strength of at least some detection signals changes within the preset time period, it is determined that the environment in which the electronic device is located has changed. When the environment of the electronic device changes, the volume of the electronic device is adjusted. The volume adjustment method can be based on the signal strength of each detection signal at the current time, the trend of signal strength change, the amount of signal strength change, the target scene of the electronic device, or the difference between the target volume value and the original volume value of the electronic device, etc. This volume adjustment method determines whether the environment of the electronic device has changed by using the signal strength of the sensor's detection signals, and then adjusts the volume of the electronic device when the environment changes. This achieves the function of automatic volume adjustment for the electronic device, solving the problem of the electronic device not being able to switch volume promptly when moving from indoors to outdoors, resulting in unclear hearing; and the problem of users being unable to hear clearly due to wind resistance while cycling, and not being able to manually increase the volume, resulting in a poor user experience. This improves the user experience.

[0094] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0095] Based on the foregoing embodiments, this application provides a volume adjustment device, which includes various modules and units included in each module, and can be implemented by a processor; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit, a microprocessor, a digital signal processor or a field programmable gate array, etc.

[0096] Figure 8 This is a structural schematic diagram of a volume adjustment device provided in one embodiment of this application, as shown below. Figure 8 As shown, the device 800 includes an acquisition module 801, a determination module 802, and an adjustment module 803, wherein:

[0097] The acquisition module 801 is used to acquire at least one detection signal from the at least one sensor, the at least one detection signal being used to detect environmental parameters of the environment in which the electronic device is located, the environmental parameters including at least one of atmospheric pressure parameters and audio parameters of the environment; the determination module 802 is used to determine whether the environment in which the electronic device is located has changed based on the signal strength of each detection signal; the adjustment module 803 is used to adjust the volume of the electronic device when the environment in which the electronic device is located changes.

[0098] In some embodiments, the determining module 802 is specifically used to: determine whether the signal strength of each detection signal changes within a preset time period, wherein the end time of the preset time period is the current time; and determine that the environment in which the electronic device is located has changed when the signal strength of each detection signal changes within the preset time period or when the signal strength of at least some detection signals changes within the preset time period.

[0099] In some embodiments, the adjustment module 803 is specifically used to: acquire a target signal strength, the target signal strength being determined based on the signal strength of each detected signal at the current moment; determine a target volume value corresponding to the target signal strength based on a preset first mapping relationship between signal strength and volume value; and adjust the volume of the electronic device to the target volume value.

[0100] In some embodiments, the adjustment module 803 is specifically configured to: acquire the trend of signal strength change, the trend of change being determined based on the signal strength of each detected signal within a preset duration; increase the volume of the electronic device when the trend of change indicates that the signal strength of each detected signal within the preset duration increases; or decrease the volume of the electronic device when the trend of change indicates that the signal strength of each detected signal within the preset duration decreases.

[0101] In some embodiments, the adjustment module 803 is specifically used to: acquire a target signal strength change, the target signal strength change being determined based on the signal strength of each detected signal at the current moment; determine a target volume adjustment amount based on a second mapping relationship between a preset change amount and a volume adjustment amount, and the target signal strength change amount; and adjust the volume of the electronic device based on the target volume adjustment amount.

[0102] In some embodiments, the adjustment module 803 is specifically used to: determine the target scene where the electronic device is located based on the signal strength of each detection signal at the current moment; determine the target volume value based on a preset fourth mapping relationship between the scene and the volume value; and adjust the volume of the electronic device to the target volume value.

[0103] In some embodiments, the adjustment module 803 is specifically used to: acquire a target signal strength and the original volume value of the electronic device, wherein the target signal strength is determined based on the signal strength of each detected signal at the current moment; determine a target volume value corresponding to the target signal strength based on a preset first mapping relationship between signal strength and volume value; and adjust the volume of the electronic device to the target volume value when the difference between the target volume value and the original volume value is greater than a preset threshold.

[0104] In some embodiments, the device further includes a determination module. The determination module is configured to determine whether the current scene of the electronic device is a preset scene, the preset scene including a scene in which the signal strength of only a portion of the at least one detection signal changes within a preset duration; the adjustment module 803 is specifically configured to adjust the volume of the electronic device when the current scene of the electronic device is not the preset scene and the environment of the electronic device changes.

[0105] In some embodiments, the device further includes a holding module. The holding module is configured to maintain the current volume of the electronic device unchanged when the current scenario of the electronic device is the preset scenario.

[0106] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0107] It should be noted that, in the embodiments of this application... Figure 8 The volume adjustment device shown is illustrative of the module division, representing only one logical functional division; in actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, exist as separate physical units, or be integrated into one unit with two or more units. The integrated units can be implemented in hardware, as software functional units, or a combination of both.

[0108] It should be noted that, in the embodiments of this application, if the above-described methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0109] This application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the methods described above.

[0110] This application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method provided in the above embodiments.

[0111] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the method provided in the above-described method embodiments.

[0112] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0113] In one embodiment, the volume adjustment device provided in this application can be implemented as a computer program, which can be configured as follows: Figure 9The device operates on the computer device shown. The memory of the computer device can store the various program modules that make up the above-described apparatus. The computer program, composed of the various program modules, causes the processor to execute the steps of the methods in the various embodiments of this application described in this specification.

[0114] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0115] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.

[0116] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0117] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.

[0119] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0120] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.

[0121] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0122] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0123] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0124] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0125] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0126] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of adjusting the volume, characterized by, The method is applied to an electronic device, the electronic device comprising a main body, a face cover and at least one sensor, the at least one sensor being located between the main body and the face cover, the method comprising: obtaining at least one detection signal of the at least one sensor, the at least one detection signal being used to detect an environmental parameter of an environment in which the electronic device is located, the environmental parameter comprising at least one of a barometric parameter and an audio parameter of the environment in which the electronic device is located; determining whether a change in the environment in which the electronic device is located occurs according to signal strengths of the respective detection signals; adjusting a volume of the electronic device in the case that a change in the environment in which the electronic device is located occurs.

2. The method of claim 1, wherein, The determination of whether a change in the environment in which the electronic device is located occurs according to the signal strengths of the respective detection signals comprises: determining whether the signal strengths of the respective detection signals change within a preset time length, the terminal time of the preset time length being a current time; in the case that the signal strengths of the respective detection signals all change within the preset time length or at least part of the signal strengths of the respective detection signals all change within the preset time length, it is determined that a change in the environment in which the electronic device is located occurs.

3. The method according to claim 1 or 2, characterized in that, The adjustment of the volume of the electronic device comprises: obtaining a target signal strength, the target signal strength being determined according to the signal strengths of the respective detection signals at the current time; determining a target volume value corresponding to the target signal strength according to a preset first mapping relationship between signal strengths and volume values; adjusting the volume of the electronic device to the target volume value.

4. The method according to claim 1 or 2, characterized in that, The adjustment of the volume of the electronic device comprises: obtaining a change trend of the signal strengths, the change trend being determined according to the signal strengths of the respective detection signals within the preset time length; in the case that the change trend indicates that the signal strengths of the respective detection signals within the preset time length increase, increasing the volume of the electronic device; or in the case that the change trend indicates that the signal strengths of the respective detection signals within the preset time length decrease, decreasing the volume of the electronic device.

5. The method according to claim 1 or 2, characterized in that, The adjustment of the volume of the electronic device comprises: obtaining a target signal strength change amount, the target signal strength change amount being determined according to the signal strengths of the respective detection signals at the current time; determining a target volume adjustment amount according to a preset second mapping relationship between change amounts and volume adjustment amounts and the target signal strength change amount; adjusting the volume of the electronic device according to the target volume adjustment amount.

6. The method of claim 1 or 2, wherein, The adjustment of the volume of the electronic device comprises: determining a target scene in which the electronic device is located according to the signal strengths of the respective detection signals at the current time; determining a target volume value according to a preset fourth mapping relationship between scenes and volume values; adjusting the volume of the electronic device to the target volume value.

7. The method according to claim 1 or 2, characterized in that, The adjustment of the volume of the electronic device comprises: obtaining a target signal strength and an original volume value of the electronic device, the target signal strength being determined according to the signal strengths of the respective detection signals at the current time; determine a target volume value corresponding to the target signal strength according to a preset first mapping relationship between signal strengths and volume values; adjust the volume of the electronic device to the target volume value in a case where a difference between the target volume value and the original volume value is greater than a preset threshold.

8. The method of claim 2, wherein, Before the adjusting the volume of the electronic device, the method further includes: determining whether a current scenario in which the electronic device is located is a preset scenario, the preset scenario including a scenario in which signal strengths of only part of the at least one detection signal change within the preset time length; the adjusting the volume of the electronic device includes: adjusting the volume of the electronic device in a case where the current scenario in which the electronic device is located is not the preset scenario and the environment in which the electronic device is located changes.

9. The method of claim 8, wherein, The method further includes: maintaining the current volume of the electronic device unchanged in a case where the current scenario in which the electronic device is located is the preset scenario.

10. A volume adjusting device, characterized by comprising: An apparatus applied to an electronic device, the electronic device including a main body, a face shell, and at least one sensor located between the main body and the face shell, the apparatus including: an obtaining module configured to obtain at least one detection signal of the at least one sensor, the at least one detection signal being used to detect an environmental parameter of an environment in which the electronic device is located, the environmental parameter including at least one of an audio parameter and a barometric pressure parameter of the environment in which the electronic device is located; a determining module configured to determine whether the environment in which the electronic device is located changes according to signal strengths of the respective detection signals; an adjusting module configured to adjust the volume of the electronic device in a case where the environment in which the electronic device is located changes. 11.A computer device, comprising a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the computer device is characterized in that, The processor implements the steps of the method of any one of claims 1 to 9 when executing the program.

12. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the method of any one of claims 1 to 9.