Volume adjustment method, device and electronic equipment

By obtaining and utilizing the attenuation function of the electronic device environment, the problem of private information leakage in voice calls is solved, and the effect of automatically adjusting the volume to reduce the leakage of private information is achieved.

CN115190201BActive Publication Date: 2024-11-22VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210927174.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-03
Publication Date
2024-11-22
Estimated Expiration
2042-08-03

AI Technical Summary

Technical Problem

When using an electronic device for voice calls, the call content may be heard by other users other than the user holding the device, resulting in the leakage of privacy information.

Method used

By obtaining the attenuation function of the current environment in which the electronic device is located, the attenuation amplitude of the sound signal at the target person's position is determined, and the volume of the receiver is adjusted according to this amplitude to reduce the probability that other users will hear the call content.

Benefits of technology

It realizes automatic adjustment of the telephone volume, reducing the chance of private information leakage, avoiding the need for users to manually adjust the volume, and ensuring call quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115190201B_ABST
    Figure CN115190201B_ABST
Patent Text Reader

Abstract

The present application discloses a volume adjustment method, device and electronic device, belonging to the field of communication technology. The method comprises: obtaining an attenuation function of the current environment of the electronic device, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance; determining a first attenuation amplitude of the sound signal at a first distance according to the attenuation function, wherein the first distance is the distance from the electronic device to the location of the target person; and adjusting the volume of the receiver of the electronic device according to the first attenuation amplitude.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a volume adjustment method, device and electronic equipment. Background Art

[0002] With the rapid development of communication technology, smart electronic devices, such as mobile phones, have become indispensable tools in people's lives. In order to further optimize the user experience, especially for elderly users, the volume of the receiver is often set to be louder by default when making and receiving calls using mobile phones. Therefore, even people who are far away from the user of the mobile phone can hear the content of the call, which in turn causes the leakage of privacy information.

[0003] It can be seen from this that currently when a voice call is made using an electronic device, the content of the call may be heard by other users other than the user holding the electronic device, thereby causing the leakage of private information. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a volume adjustment method, device and electronic device, which can solve the problem in the prior art that when a voice call is made using an electronic device, the call content may be heard by other users other than the user holding the electronic device, thereby causing privacy information leakage.

[0005] In a first aspect, an embodiment of the present application provides a volume adjustment method, the method comprising:

[0006] Acquire an attenuation function of the environment in which the electronic device is currently located, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance;

[0007] Determining a first attenuation amplitude of the sound signal at a first distance according to the attenuation function, wherein the first distance is the distance from the electronic device to the location of the target person;

[0008] The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude.

[0009] In a second aspect, an embodiment of the present application provides a volume adjustment device, the device comprising:

[0010] A function relationship acquisition module, used to acquire an attenuation function of the environment in which the electronic device is currently located, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance;

[0011] A first amplitude calculation module, used to determine a first attenuation amplitude of the sound signal at a first distance according to the attenuation function, wherein the first distance is a distance from the electronic device to a location of a target person;

[0012] The volume adjustment module is used to adjust the volume of the receiver of the electronic device according to the first attenuation amplitude.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0017] In an embodiment of the present application, the attenuation function of the current environment of the electronic device can be obtained, so that according to the attenuation function, the first attenuation amplitude of the sound signal at the first distance can be determined, and then according to the first attenuation amplitude, the volume of the receiver of the electronic device can be adjusted, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance, and the first distance is the distance from the electronic device to the location of the target person.

[0018] It can be seen that in the embodiments of the present application, the attenuation amplitude of the sound signal at the distance from the electronic device to the target person's location can be automatically calculated according to the attenuation function of the environment in which the electronic device is currently located, so as to adjust the volume of the receiver of the electronic device according to the attenuation amplitude. That is, in the embodiments of the present application, the volume of the receiver of the electronic device can be adjusted according to the actual attenuation of the sound signal in the environment, thereby reducing the probability of other users other than the user holding the electronic device hearing the call content of the electronic device, thereby reducing the probability of leakage of privacy information. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a volume adjustment method provided in an embodiment of the present application;

[0020] Figure 2 is a flowchart of a specific implementation of the volume adjustment method provided in an embodiment of the present application;

[0021] Figure 3It is a schematic diagram of the principle of a specific implementation of the volume adjustment method provided in the embodiment of the present application;

[0022] Figure 4 is a structural block diagram of a volume adjustment device provided in an embodiment of the present application;

[0023] Figure 5 is a structural block diagram of an electronic device provided in an embodiment of the present application;

[0024] Figure 6 It is a structural block diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] The volume adjustment method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0028] See also Figure 1 , the embodiment of the present application provides a volume adjustment method, which can be applied to electronic devices, such as mobile phones, tablet computers, etc. The method may include the following steps:

[0029] Step 101: Obtain the attenuation function of the environment in which the electronic device is currently located.

[0030] The attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance.

[0031] In addition, a sound will become weaker and weaker during the propagation process, which is called sound attenuation. The attenuation of sound is related to the distance, that is, the longer the distance, the greater the attenuation of the sound signal. Therefore, the actual attenuation amplitude of the sound signal can be further calculated by obtaining the above attenuation function of the current environment of the electronic device, so as to adjust the volume of the electronic device according to the actual attenuation of the sound signal in the environment, so as to reduce the probability of other users other than the user holding the electronic device hearing the call content of the electronic device, thereby reducing the probability of privacy information leakage.

[0032] Step 102: Determine a first attenuation amplitude of the sound signal at a first distance according to the attenuation function.

[0033] The first distance is the distance from the electronic device to the location of the target person.

[0034] It should be noted here that the target person is a person other than the user holding the electronic device, and can also be called an observer. The first distance can be predetermined, for example, according to the rule that the distance between people is generally greater than 20 cm, the first distance can be set to 20 cm; or, the electronic device can be used to actually detect the closest distance between the observer near the electronic device and the electronic device, for example, an infrared sensor can be used to detect the distance of the observer near the mobile phone, and the minimum distance can be selected as the above-mentioned first distance.

[0035] Among them, since the amplitude of the sound signal gradually decreases with the increase of distance, if the listener closest to the electronic device cannot hear the call content of the electronic device, other listeners farther away will be even less able to hear the call content of the electronic device. Therefore, the minimum distance between people or the minimum distance between the listeners and the electronic device can be used as the first distance.

[0036] Step 103: adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude.

[0037] It can be seen that when an electronic device answers a call, the playback volume of the receiver of the electronic device can be adjusted through the aforementioned steps 101 to 103, thereby reducing the probability of other users other than the user holding the electronic device hearing the content of the call, thereby reducing the probability of leakage of privacy information.

[0038] It can be seen from the above steps 101 to 103 that in the embodiment of the present application, the attenuation function of the current environment of the electronic device can be obtained, so that according to the attenuation function, the first attenuation amplitude of the sound signal at the first distance is determined, and then according to the first attenuation amplitude, the volume of the receiver of the electronic device is adjusted, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance, and the first distance is the distance from the electronic device to the location of the target person.

[0039] However, in the prior art, when answering a call, the volume of the receiver may be relatively loud, and the user can only adjust the volume manually. In addition, in most cases, there is no way to determine what volume of the receiver is more suitable for the user's own call and prevent the call information from being leaked. The embodiments of the present application require a mechanism that can avoid manual volume adjustment and determine what volume is more appropriate, so that the quality of the call can be guaranteed while preventing the content of the call from being leaked.

[0040] That is, in the embodiments of the present application, the attenuation amplitude of the sound signal at the distance from the electronic device to the target person's location can be automatically calculated according to the attenuation function of the environment in which the electronic device is currently located, so that the volume of the receiver of the electronic device can be adjusted according to the attenuation amplitude. That is, in the embodiments of the present application, the volume of the receiver of the electronic device can be adjusted according to the actual attenuation of the sound signal in the environment. In this way, the probability of other users other than the user holding the electronic device hearing the call content of the electronic device can be reduced without the user manually adjusting the volume, thereby reducing the probability of leakage of privacy information.

[0041] In addition, it should be noted that the volume adjustment method of the embodiment of the present application can be applicable to the scenario where the user answers the phone with the electronic device close to the ear, and can also be applicable to the scenario where the user answers the phone with the electronic device not close to the ear.

[0042] Optionally, obtaining the attenuation function of the environment in which the electronic device is currently located includes:

[0043] Controlling the receiver to send an ultrasonic signal, and recording the transmission amplitude of the ultrasonic signal;

[0044] Controlling a microphone of the electronic device to receive the ultrasonic signal and detecting a reception amplitude of the ultrasonic signal;

[0045] Determining a target value of a constant in the functional relationship expression according to the transmitting amplitude, the receiving amplitude, the first target distance, and a predetermined functional relationship expression between the attenuation amplitude of the sound signal and the distance;

[0046] Substituting the target value into the functional relationship expression to obtain an attenuation function of the environment in which the electronic device is currently located;

[0047] The first target distance is the distance between a setting position of the receiver on the electronic device and a setting position of the microphone on the electronic device.

[0048] In an embodiment of the present application, a receiver and a microphone are provided on the electronic device, wherein the receiver and the microphone are provided at fixed positions on the electronic device, and the distance between the two is a constant value, so that when a sound signal is sent through the receiver and the signal is received by the microphone, the attenuation of the sound signal at the above-mentioned first target distance can be obtained. Thus, the target value of the constant in the functional relationship between the known sound signal and the distance can be determined, that is, the attenuation function of the environment in which the electronic device is currently located can be obtained. It can be seen from this that the embodiment of the present application can use the existing receiver and microphone on the electronic device to obtain the attenuation function of the environment in which the electronic device is currently located, avoiding the addition of other devices to the electronic device, that is, avoiding the increase in cost.

[0049] The receiver sends an ultrasonic signal, thereby preventing the human ear from hearing the signal and affecting the user's listening to the audio normally played by the electronic device.

[0050] In addition, for example, it is known Among them, a represents the attenuation coefficient, that is, the attenuation amplitude of the sound signal per unit distance on the propagation path, x represents the distance from the sound source, A represents the sound pressure at the sound source (that is, the emission amplitude of the sound signal), and A0 represents the sound pressure at the measured point (that is, the receiving amplitude of the sound signal), then we can get Wherein, F(z) represents the attenuation amplitude of the sound signal at distance z.

[0051] In the embodiment of the present application, the ultrasonic signal is sent through the receiver, and the microphone receives the ultrasonic signal, and the emission amplitude A of the ultrasonic signal can be obtained. T and receiving amplitude A R , where the distance between the receiver and the microphone is known to be x1, then it can be substituted into the formula The attenuation coefficient is obtained That is, the attenuation function of the electronic device in the current environment is obtained as: Thus, if a distance is known and substituted into the attenuation function, the corresponding attenuation amplitude can be obtained, for example

[0052] Optionally, controlling the receiver to send an ultrasonic signal includes:

[0053] When the remaining power of the electronic device is greater than a first preset threshold and the second target distance is greater than a second preset threshold, or when the remaining power of the electronic device is greater than the first preset threshold and the difference between the environmental parameter of the current environment of the electronic device and the reference environmental parameter is greater than a third preset threshold, control the receiver to send the ultrasonic signal;

[0054] The second target distance is the distance between the current geographical location of the electronic device and the geographical location when the receiver last sent an ultrasonic signal;

[0055] The reference environment parameters are parameters of the environment in which the electronic device was located when the receiver sent an ultrasonic signal last time.

[0056] The environmental parameters include at least one of temperature, humidity, and external noise parameters.

[0057] Optionally, the acquiring the attenuation function of the environment in which the electronic device is currently located further includes:

[0058] When the remaining power of the electronic device is less than or equal to the first preset threshold, or the second target distance is less than or equal to the second preset threshold, or the difference between the environmental parameters of the current environment of the electronic device and the reference environmental parameters is less than or equal to the third preset threshold, the attenuation function of the environment in which the electronic device is currently located obtained last time is determined as the attenuation function of the current environment in which the electronic device is currently located.

[0059] In the embodiment of the present application, the existing receiver and microphone on the electronic device are used to obtain the attenuation function of the current environment of the electronic device, without increasing the cost. However, the attenuation function needs to be calculated before the electronic device answers the call.

[0060] Among them, the degree of sound attenuation is affected by the environment. For example, temperature and humidity both affect the propagation of sound (for example, at 15°C, if the relative humidity decreases from 80% to 20%, the sound pressure level at 800m from the sound source will decrease by 3dB (frequency 100Hz)), so when the environment changes, it is necessary to recalculate the attenuation function. However, in order to save power consumption and combine the environmental characteristics of sound propagation, when it is detected that the environment in which the electronic device is located has not changed, then there is no need to recalculate the attenuation function.

[0061] In addition, whether the environment where the electronic device is located has changed can be determined by detecting whether the position of the electronic device has changed; or whether the environment where the electronic device is located has changed can be determined by directly detecting environmental parameters of the environment where the electronic device is located.

[0062] It can be seen that when one of the following conditions is met, the attenuation function does not need to be recalculated, and the last attenuation function can be used:

[0063] Condition 1: The remaining power of the electronic device is less than or equal to a first preset threshold;

[0064] Condition 2: The distance between the current position of the electronic device and the position when the receiver last sent an ultrasonic signal is less than or equal to a second preset threshold; for example, if the global positioning system (GPS) or other applications obtain that the electronic device has not entered a new environment, such as the positioning is always in area A, then the previous attenuation function is used and ultrasonic calibration is no longer performed to achieve the purpose of saving power consumption;

[0065] Condition 3: The difference between the environmental parameter of the current environment of the electronic device and the reference environmental parameter is less than or equal to the third preset threshold;

[0066] It should be noted that, when the environmental parameters include multiple parameters, a threshold value can be set for each parameter. For example, when the environmental parameters include temperature, humidity and external noise parameters, the third preset threshold value here can include a temperature threshold value, a humidity threshold value and a noise threshold value. Then the above condition 3 can be specifically: the difference between the temperature of the environment in which the electronic device is currently located and the temperature in the reference environmental parameters is less than or equal to the temperature threshold value, and the difference between the humidity of the environment in which the electronic device is currently located and the humidity in the reference environmental parameters is less than or equal to the humidity threshold value, and the difference between the external noise parameters of the environment in which the electronic device is currently located and the external noise parameters in the reference environmental parameters is less than or equal to the noise threshold value; accordingly, if the difference between the environmental parameters of the environment in which the electronic device is currently located and the reference environmental parameters is greater than the third preset threshold value, then it can be specifically: the difference between the temperature of the environment in which the electronic device is currently located and the temperature in the reference environmental parameters is greater than the temperature threshold value, or the difference between the humidity of the environment in which the electronic device is currently located and the humidity in the reference environmental parameters is greater than the humidity threshold value, or the difference between the external noise parameters of the environment in which the electronic device is currently located and the external noise parameters in the reference environmental parameters is greater than the noise threshold value.

[0067] It is understandable that when the attenuation function of the last time is used, if the above-mentioned first distance is a pre-set fixed value, it is no longer necessary to calculate the first attenuation amplitude of the sound signal at the first distance according to the attenuation function this time. The volume of the electronic device can be adjusted directly according to the first attenuation amplitude calculated last time. In this way, the process of recalculating the first attenuation amplitude is saved, thereby further saving some power consumption.

[0068] Optionally, before adjusting the volume of a receiver of the electronic device, the method further includes:

[0069] determining, according to the attenuation function, a second attenuation amplitude of the sound signal at a second distance, wherein the second distance is a distance between the electronic device and an ear of a person holding the electronic device;

[0070] The step of adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude includes:

[0071] The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude and the second attenuation amplitude.

[0072] Among them, in the embodiment of the present application, in order to prevent the call content of the electronic device from being heard by other users holding the electronic device, it is necessary to reduce the volume of the receiver according to the aforementioned first attenuation amplitude. However, when the user holds the electronic device to make a call, there is a certain distance between the electronic device and the human ear. Therefore, in order to avoid excessive reduction of the sound signal emitted by the receiver, the second attenuation amplitude of the sound signal at the aforementioned second distance (that is, the distance between the electronic device and the ear of the person holding the electronic device) can also be calculated, so as to combine the aforementioned first attenuation amplitude and the second attenuation amplitude to jointly condition the volume of the receiver of the electronic device.

[0073] Optionally, adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude and the second attenuation amplitude includes:

[0074] Calculating the sum of the first attenuation amplitude and a target parameter to obtain a volume upper limit value, wherein the target parameter is the amplitude of a sound signal with a minimum volume that can be heard by human ears;

[0075] Calculating the sum of the second attenuation amplitude and the target parameter to obtain a volume lower limit value;

[0076] The volume of the receiver of the electronic device is adjusted to be between the lower volume limit and the upper volume limit.

[0077] The volume upper limit is the sum of the amplitude of the minimum sound signal audible to human ears and the first attenuation amplitude, and the maximum volume of the receiver is the volume upper limit. If the volume upper limit is exceeded, the conversation content of the electronic device may be heard by an onlooker.

[0078] The above-mentioned volume lower limit is the sum of the amplitude of the sound signal of the minimum volume audible to the human ear and the second attenuation amplitude. The minimum volume of the receiver is the volume lower limit. If it is less than the volume lower limit, the user holding the electronic device may not be able to hear the call content.

[0079] It can be seen that the embodiments of the present application can allow the user to hear the sound of the mobile phone receiver to the greatest extent, while also protecting the user's privacy to the greatest extent.

[0080] Optionally, obtaining the attenuation function of the environment in which the electronic device is currently located includes:

[0081] In case of receiving a call request, displaying a target control;

[0082] Receiving a target operation on the target control;

[0083] In response to the target operation, acquiring the attenuation function of the environment in which the electronic device is currently located;

[0084] After adjusting the volume of the receiver of the electronic device, the method further includes:

[0085] Answer the call at the volume adjusted by the receiver.

[0086] The target control may be an icon with a “private call” logo, and the target operation may be a drag operation, a click operation, etc. on the target control.

[0087] It can be seen that in the embodiment of the present application, if the electronic device receives a call request, the target control can be displayed. Thereafter, if the electronic device receives a target operation of the target control by the user, it means that the content of this call does not want other users to hear it, and the electronic device is triggered to execute the aforementioned steps 101 to 103 to adjust the volume of the receiver of the electronic device, so as to answer the call with the adjusted volume. In this way, the user holding the electronic device can hear the sound of the receiver, while reducing the probability of other users hearing the content of the call, thereby reducing the probability of leakage of privacy information.

[0088] In summary, when the volume adjustment method of the embodiment of the present application is applied to a mobile phone, the specific implementation method can be as follows: Figure 2 As shown, the mobile phone is provided with a receiver 305 , a secondary microphone 306 , and a main microphone 307 .

[0089] See also Figure 2 When answering a call, the specific implementation of the volume adjustment method of the embodiment of the present application is as follows:

[0090] When the user receives an incoming call or a voice call, the display interface of the mobile phone can be as follows Figure 3As shown, if the user slides from the first icon 301 to the second icon 302 on the mobile phone touch screen, the general answering mode is entered (i.e., the call is answered directly, and the user can manually adjust the volume); if the call is private, the user can slide from the first icon 301 to the third icon 303, thereby triggering the private call mode; if the user slides from the first icon 301 to the fourth icon 304, the call is hung up;

[0091] Among them, after entering the private call mode, it will first check whether the remaining power of the mobile phone is greater than the first preset threshold value, and when the remaining power of the mobile phone is greater than the first preset threshold value, it will be determined whether the second target distance between the current position of the mobile phone and the position when the private call mode was last used is greater than the second preset threshold value (that is, it is determined whether the current position information has changed). If the second target distance is greater than the second preset threshold value, the attenuation function is calculated through the receiver and the secondary microphone, that is, the ultrasonic signal is sent through the receiver 305 and the ultrasonic signal is received through the secondary microphone 306, so that the transmission amplitude of the ultrasonic signal and the receiving amplitude of the secondary microphone, as well as the fixed distance between the receiver 305 and the secondary microphone 306 (that is, Figure 2 The distance d1 shown in the figure is fixed), and the attenuation function of the current environment of the mobile phone is calculated (i.e., f(z), where z represents the distance and f(z) represents the attenuation amplitude); then, based on the fact that the distance between people is generally greater than 20 cm (i.e., Figure 2 The d2 shown is generally greater than 20cm), the minimum amplitude value Imin that a normal person can hear, and the general distance between the ear and the mobile phone when answering a call is within 1cm (i.e. Figure 2 The d0 shown is generally less than 1 cm), and the volume adjustment range of the receiver is calculated: Imin+f(1 cm) to Imin+f(20 cm), so as to adjust the volume of the receiver to within the range, and then answer the call and start communication;

[0092] If the remaining battery power of the mobile phone is less than or equal to the first preset threshold, or the above-mentioned second target distance is less than or equal to the second preset threshold, the volume of the receiver is adjusted to within the volume adjustment range used in the last private call mode; that is, when the mobile phone does not meet the battery requirements and the conditions of location information change, the volume of the receiver for the next private call can be set according to the volume adjustment range used in the last private call, while protecting the user's privacy as much as possible, both the detection time and the detection power consumption can be saved.

[0093] It can be seen that the volume adjustment method of the embodiment of the present application can protect the user's privacy to the greatest extent possible while reusing the current mobile phone structure. At the same time, a power-saving solution is also adopted for the detection solution to ensure both usage time and privacy.

[0094] It can be understood that the volume adjustment method of the embodiment of the present application can be applied to foldable screen mobile phones and terminals with similar structures.

[0095] The volume adjustment method provided in the embodiment of the present application can be executed by a volume adjustment device. In the embodiment of the present application, a method for performing volume adjustment by a volume adjustment device is taken as an example to illustrate the volume adjustment device provided in the embodiment of the present application.

[0096] See also Figure 4 The present application also provides a volume adjustment device, the volume adjustment device 400 comprising:

[0097] The function relationship acquisition module 401 is used to acquire the attenuation function of the environment in which the electronic device is currently located, wherein the attenuation function is a function relationship between the attenuation amplitude of the sound signal and the distance;

[0098] A first amplitude calculation module 402, configured to determine a first attenuation amplitude of the sound signal at a first distance according to the attenuation function, wherein the first distance is a distance from the electronic device to a location of a target person;

[0099] The volume adjustment module 403 is configured to adjust the volume of a receiver of the electronic device according to the first attenuation amplitude.

[0100] Optionally, the functional relationship acquisition module includes:

[0101] A first control submodule, used for controlling the receiver to send an ultrasonic signal and recording the transmission amplitude of the ultrasonic signal;

[0102] A second control submodule, used to control the microphone of the electronic device to receive the ultrasonic signal and detect the receiving amplitude of the ultrasonic signal;

[0103] a constant determination submodule, configured to determine a target value of a constant in the functional relationship expression according to the transmission amplitude, the reception amplitude, the first target distance, and a predetermined functional relationship expression between the attenuation amplitude of the sound signal and the distance;

[0104] A substitution submodule, used for substituting the target value into the functional relationship expression to obtain an attenuation function of the environment in which the electronic device is currently located;

[0105] The first target distance is the distance between a setting position of the receiver on the electronic device and a setting position of the microphone on the electronic device.

[0106] Optionally, the first control submodule is specifically used for:

[0107] When the remaining power of the electronic device is greater than a first preset threshold and the second target distance is greater than a second preset threshold, or when the remaining power of the electronic device is greater than the first preset threshold and the difference between the environmental parameter of the current environment of the electronic device and the reference environmental parameter is greater than a third preset threshold, control the receiver to send the ultrasonic signal;

[0108] The second target distance is the distance between the current geographical location of the electronic device and the geographical location when the receiver last sent an ultrasonic signal; and the reference environment parameter is the parameter of the environment in which the electronic device was located when the receiver last sent an ultrasonic signal.

[0109] Optionally, the functional relationship acquisition module further includes:

[0110] A determination submodule is used to determine the attenuation function of the environment in which the electronic device is currently located, which was obtained last time, as the attenuation function of the environment in which the electronic device is currently located, when the remaining power of the electronic device is less than or equal to the first preset threshold, or the second target distance is less than or equal to the second preset threshold, or the difference between the environmental parameters of the environment in which the electronic device is currently located and the reference environmental parameters is less than or equal to the third preset threshold.

[0111] Optionally, the device further comprises:

[0112] A second amplitude calculation module, configured to determine a second attenuation amplitude of the sound signal at a second distance according to the attenuation function, wherein the second distance is a distance between the electronic device and an ear of a person holding the electronic device;

[0113] The volume adjustment module is specifically used for:

[0114] The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude and the second attenuation amplitude.

[0115] Optionally, the volume adjustment module adjusts the volume of a receiver of the electronic device according to the first attenuation amplitude and the second attenuation amplitude, specifically for:

[0116] Calculating the sum of the first attenuation amplitude and a target parameter to obtain a volume upper limit value, wherein the target parameter is the amplitude of a sound signal with a minimum volume that can be heard by human ears;

[0117] Calculating the sum of the second attenuation amplitude and the target parameter to obtain a volume lower limit value;

[0118] The volume of the receiver of the electronic device is adjusted to be between the lower volume limit and the upper volume limit.

[0119] Optionally, the functional relationship acquisition module includes:

[0120] The control display submodule is used to display the target control when a call request is received;

[0121] An operation receiving submodule, used for receiving a target operation on the target control;

[0122] A response submodule, configured to obtain the attenuation function of the environment in which the electronic device is currently located in response to the target operation;

[0123] The device also includes:

[0124] The answering module is used to answer the call at the volume adjusted by the receiver.

[0125] As can be seen from the above, in the embodiment of the present application, the function relationship acquisition module 401 can obtain the attenuation function of the current environment of the electronic device, thereby triggering the first amplitude calculation module 402 to determine the first attenuation amplitude of the sound signal at the first distance according to the attenuation function, and then the volume adjustment module 403 adjusts the volume of the receiver of the electronic device according to the first attenuation amplitude, wherein the attenuation function is the functional relationship between the attenuation amplitude of the sound signal and the distance, and the first distance is the distance from the electronic device to the location of the target person.

[0126] It can be seen that in the embodiments of the present application, the attenuation amplitude of the sound signal at the distance from the electronic device to the target person's location can be automatically calculated according to the attenuation function of the environment in which the electronic device is currently located, so that the volume of the receiver of the electronic device can be adjusted according to the attenuation amplitude. That is, in the embodiments of the present application, the volume of the receiver of the electronic device can be adjusted according to the actual attenuation of the sound signal in the environment. In this way, the user does not need to manually adjust the volume, and the probability of other users other than the user holding the electronic device hearing the call content of the electronic device can be reduced, thereby reducing the probability of leakage of privacy information.

[0127] The volume adjustment device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0128] The volume adjustment device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0129] The volume adjustment device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0130] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0131] Optional, such as Figure 5 As shown, the embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be executed on the processor 501, and when the program or instruction is executed by the processor 501, each step of the above-mentioned volume adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0132] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0133] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0134] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

[0135] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0136] The electronic device 600 further includes a receiver.

[0137] In addition, the processor 610 is used to obtain an attenuation function of the current environment of the electronic device, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance; based on the attenuation function, determine a first attenuation amplitude of the sound signal at a first distance, wherein the first distance is the distance from the electronic device to the location of the target person; and adjust the volume of the receiver of the electronic device based on the first attenuation amplitude.

[0138] It can be seen that in the embodiment of the present application, the attenuation function of the current environment of the electronic device can be obtained, so that according to the attenuation function, the first attenuation amplitude of the sound signal at the first distance can be determined, and then according to the first attenuation amplitude, the volume of the receiver of the electronic device can be adjusted, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance, and the first distance is the distance from the electronic device to the location of the target person.

[0139] It can be seen that in the embodiments of the present application, the attenuation amplitude of the sound signal at the distance from the electronic device to the target person's location can be automatically calculated according to the attenuation function of the environment in which the electronic device is currently located, so that the volume of the receiver of the electronic device can be adjusted according to the attenuation amplitude. That is, in the embodiments of the present application, the volume of the receiver of the electronic device can be adjusted according to the actual attenuation of the sound signal in the environment. In this way, the user does not need to manually adjust the volume, and the probability of other users other than the user holding the electronic device hearing the call content of the electronic device can be reduced, thereby reducing the probability of leakage of privacy information.

[0140] Optionally, the processor 610 obtains an attenuation function of an environment in which the electronic device is currently located, specifically for:

[0141] Controlling the receiver to send an ultrasonic signal, and recording the transmission amplitude of the ultrasonic signal;

[0142] Controlling a microphone of the electronic device to receive the ultrasonic signal and detecting a reception amplitude of the ultrasonic signal;

[0143] Determining a target value of a constant in the functional relationship expression according to the transmitting amplitude, the receiving amplitude, the first target distance, and a predetermined functional relationship expression between the attenuation amplitude of the sound signal and the distance;

[0144] Substituting the target value into the functional relationship expression to obtain an attenuation function of the environment in which the electronic device is currently located;

[0145] The first target distance is the distance between a setting position of the receiver on the electronic device and a setting position of the microphone on the electronic device.

[0146] Optionally, the processor 610 controls the receiver to send an ultrasonic signal, specifically for:

[0147] When the remaining power of the electronic device is greater than a first preset threshold and the second target distance is greater than a second preset threshold, or when the remaining power of the electronic device is greater than the first preset threshold and the difference between the environmental parameter of the current environment of the electronic device and the reference environmental parameter is greater than a third preset threshold, control the receiver to send the ultrasonic signal;

[0148] The second target distance is the distance between the current geographical location of the electronic device and the geographical location when the receiver last sent an ultrasonic signal; and the reference environment parameter is the parameter of the environment in which the electronic device was located when the receiver last sent an ultrasonic signal.

[0149] Optionally, the processor 610 obtains the attenuation function of the environment in which the electronic device is currently located, and is further configured to:

[0150] When the remaining power of the electronic device is less than or equal to the first preset threshold, or the second target distance is less than or equal to the second preset threshold, or the difference between the environmental parameters of the current environment of the electronic device and the reference environmental parameters is less than or equal to the third preset threshold, the attenuation function of the environment in which the electronic device is currently located obtained last time is determined as the attenuation function of the current environment in which the electronic device is currently located.

[0151] Optionally, before adjusting the volume of a receiver of the electronic device, the processor 610 is further configured to:

[0152] determining, according to the attenuation function, a second attenuation amplitude of the sound signal at a second distance, wherein the second distance is a distance between the electronic device and an ear of a person holding the electronic device;

[0153] The step of adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude includes:

[0154] The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude and the second attenuation amplitude.

[0155] Optionally, the processor 610 adjusts the volume of a receiver of the electronic device according to the first attenuation amplitude and the second attenuation amplitude, specifically for:

[0156] Calculating the sum of the first attenuation amplitude and a target parameter to obtain a volume upper limit value, wherein the target parameter is the amplitude of a sound signal with a minimum volume that can be heard by human ears;

[0157] Calculating the sum of the second attenuation amplitude and the target parameter to obtain a volume lower limit value;

[0158] The volume of the receiver of the electronic device is adjusted to be between the lower volume limit and the upper volume limit.

[0159] Optionally, the processor 610 obtains an attenuation function of an environment in which the electronic device is currently located, specifically for:

[0160] When the user input unit 607 receives a call request, the display unit 606 is controlled to display a target control;

[0161] Control the user input unit 607 to receive a target operation on the target control;

[0162] In response to the target operation, acquiring the attenuation function of the environment in which the electronic device is currently located;

[0163] After adjusting the volume of the receiver of the electronic device, the processor 610 is further configured to:

[0164] Answer the call at the volume adjusted by the receiver.

[0165] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0166] The memory 609 can be used to store software programs and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0167] The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.

[0168] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned path sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0169] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0170] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned path sharing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0171] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0172] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned path sharing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0175] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A volume adjustment method, characterized in that: The method comprises: In case of receiving a call request, displaying a target control; If a target operation on the target control is received, then in response to the target operation, an attenuation function of the current environment of the electronic device is obtained, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance; Determine, according to the attenuation function, a first attenuation amplitude of the sound signal at a first distance, wherein the first distance is the distance from the electronic device to a location of a target person, and the target person is a person other than a user holding the electronic device; The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude, and the call is answered according to the adjusted volume of the receiver.

2. The method according to claim 1, characterized in that The step of obtaining the attenuation function of the environment in which the electronic device is currently located includes: Controlling the receiver to send an ultrasonic signal, and recording the transmission amplitude of the ultrasonic signal; Controlling a microphone of the electronic device to receive the ultrasonic signal and detecting a reception amplitude of the ultrasonic signal; Determining a target value of a constant in the functional relationship expression according to the transmitting amplitude, the receiving amplitude, the first target distance, and a predetermined functional relationship expression between the attenuation amplitude of the sound signal and the distance; Substituting the target value into the functional relationship expression to obtain an attenuation function of the environment in which the electronic device is currently located; The first target distance is the distance between a setting position of the receiver on the electronic device and a setting position of the microphone on the electronic device.

3. The method according to claim 2, characterized in that The controlling the receiver to send an ultrasonic signal comprises: When the remaining power of the electronic device is greater than a first preset threshold and the second target distance is greater than a second preset threshold, or when the remaining power of the electronic device is greater than the first preset threshold and the difference between the environmental parameter of the current environment of the electronic device and the reference environmental parameter is greater than a third preset threshold, control the receiver to send the ultrasonic signal; The second target distance is the distance between the current geographical location of the electronic device and the geographical location when the receiver last sent an ultrasonic signal; The reference environment parameters are parameters of the environment in which the electronic device was located when the receiver sent an ultrasonic signal last time.

4. The method according to claim 3, characterized in that The step of obtaining the attenuation function of the environment in which the electronic device is currently located further includes: When the remaining power of the electronic device is less than or equal to the first preset threshold, or the second target distance is less than or equal to the second preset threshold, or the difference between the environmental parameters of the current environment of the electronic device and the reference environmental parameters is less than or equal to the third preset threshold, the attenuation function of the environment in which the electronic device is currently located obtained last time is determined as the attenuation function of the current environment in which the electronic device is currently located.

5. The method according to claim 1, characterized in that: Before adjusting the volume of the receiver of the electronic device, the method further includes: determining, according to the attenuation function, a second attenuation amplitude of the sound signal at a second distance, wherein the second distance is a distance between the electronic device and an ear of a person holding the electronic device; The step of adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude includes: The volume of a receiver of the electronic device is adjusted according to the first attenuation amplitude and the second attenuation amplitude.

6. The method according to claim 5, characterized in that The step of adjusting the volume of a receiver of the electronic device according to the first attenuation amplitude and the second attenuation amplitude comprises: Calculating the sum of the first attenuation amplitude and a target parameter to obtain a volume upper limit value, wherein the target parameter is the amplitude of a sound signal with a minimum volume that can be heard by human ears; Calculating the sum of the second attenuation amplitude and the target parameter to obtain a volume lower limit value; The volume of the receiver of the electronic device is adjusted to be between the lower volume limit and the upper volume limit.

7. A volume adjustment device, characterized in that: The device comprises: A function relationship acquisition module, configured to display a target control when a call request is received, and if a target operation on the target control is received, acquire an attenuation function of the current environment of the electronic device in response to the target operation, wherein the attenuation function is a functional relationship between the attenuation amplitude of the sound signal and the distance; A first amplitude calculation module, used to determine a first attenuation amplitude of the sound signal at a first distance according to the attenuation function, wherein the first distance is the distance from the electronic device to a location of a target person, and the target person is a person other than a user holding the electronic device; A volume adjustment module, configured to adjust the volume of a receiver of the electronic device according to the first attenuation amplitude; The answering module is used to answer the call according to the volume adjusted by the receiver.

8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the volume adjustment method according to any one of claims 1 to 6 are implemented.

9. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the volume adjustment method according to any one of claims 1 to 6 are implemented.