Call volume adjustment method, electronic device and storage medium
By detecting ambient noise data in electronic devices and dynamically adjusting the volume of the sound signal, the problem of difficult sound to hear clearly in quiet environments and noisy environments during calls is solved, and the call experience is improved.
Patent Information
- Application Number
- CN202111328759.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-11-10
AI Technical Summary
It is difficult for existing electronic devices to avoid sound leakage in quiet environments when talking on calls, and it is difficult to hear clearly in noisy environments.
By detecting the environmental noise data, dividing it into different intervals, the volume of the sound signal is dynamically adjusted by using the first sound unit and the second sound unit to adapt to the needs of different environments.
It achieves that the people around you will not affect the people in a quiet environment, and can clearly hear the other party's voice in a noisy environment, improving the user's call experience.
Smart Images

Figure CN116112600B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method for adjusting call volume, an electronic device, and a storage medium. Background Art
[0002] At present, when an electronic device (such as a mobile phone) is on a call, part of the sound emitted by the mobile phone is transmitted to the user's ear through the receiver, and the other part is transmitted to the outside environment through the opening of the mobile phone receiver, causing sound leakage in a quiet environment. Based on this, the related technology uses some methods to reduce the sound leakage by turning down the volume of the mobile phone during a call. However, this will cause the user to not be able to hear the sound emitted by the mobile phone clearly in a noisy environment. Summary of the invention
[0003] The present application provides a call volume adjustment method, an electronic device, and a storage medium.
[0004] This application adopts the following technical solutions:
[0005] In a first aspect, a method for adjusting a call volume is provided, which is applied to an electronic device, wherein the electronic device includes a first sound unit and a second sound unit; the method includes: the electronic device receives a first operation of a user, the first operation being used to trigger the electronic device to initiate a call; the electronic device detects noise data of ambient sound in response to the first operation; the electronic device determines that the noise data is in a first noise interval, and outputs a sound signal through the first sound unit; within the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the first sound unit; the electronic device determines that the noise data switches from the first noise interval to the second noise interval, and outputs a sound signal through the first sound unit and the second sound unit; within the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit, and the smaller the volume of the sound signal output by the first sound unit; within the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the second sound unit, and the larger the volume of the sound signal output by the first sound unit; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval.
[0006] Based on the first aspect, when the electronic device initiates a call, the electronic device detects the noise data of the ambient sound. When the noise data is in the first noise interval, the electronic device outputs a sound signal through the first sound unit; when the noise data is in the second noise interval, the electronic device outputs a sound signal through the first sound unit and the second sound unit; since the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval, the noise data in the first noise interval is the noise data in a quiet environment, and the noise data in the second noise interval is the noise data in a relatively noisy environment; and, in the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the first sound unit; in the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit, and the smaller the volume of the sound signal output by the first sound unit; in the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the second sound unit, and the larger the volume of the sound signal output by the first sound unit. That is to say, when the noise data is in different noise ranges, the electronic device can output sound signals through different generating units, and the volume of the output sound signal is different due to different noise data. This allows the user to not affect the people around them in a quiet environment during a call, and to be able to clearly hear the other party's voice in a relatively noisy environment, thereby improving the user's call experience.
[0007] In a possible design of the first aspect, the method also includes: the electronic device determines that the noise data switches from the second noise interval to the third noise interval, and outputs a sound signal through the second sound unit; within the third noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit; wherein the maximum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval.
[0008] In this design, since the maximum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval, and the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval, the noise data in the third noise interval is the noise data in a noisy environment; and in the third noise interval, the electronic device outputs a sound signal through the second sound unit; in the third noise interval, the larger the noise data, the greater the volume of the sound signal output by the second sound unit, thereby enabling the user to clearly hear the other party's voice in a noisy environment, thereby improving the call experience.
[0009] In a possible design manner of the first aspect, the noise data in the first noise interval is less than 35dB; the noise data in the second noise interval is greater than or equal to 35dB and less than or equal to 65dB; and the noise data in the third noise interval is greater than 65dB.
[0010] In a possible design manner of the first aspect, the method also includes: the electronic device adjusts the volume of the sound signal output by the first sound unit and / or the second sound unit according to the size of the noise data using the following formula; L1=(65-X) / 30, L2=(X-35) / 30; wherein L1 represents the volume of the sound signal output by the first sound unit, L2 represents the volume of the sound signal output by the second sound unit, and X represents the noise data.
[0011] In this design, the electronic device can calculate the volume of the sound signal output by the first sound unit and the volume of the sound signal output by the second sound unit according to a formula, so that the first sound unit can play sound according to the volume of the sound signal output by the first sound unit, and the second sound unit can play sound according to the volume of the sound signal output by the second sound unit, further improving the call experience.
[0012] In a possible design of the first aspect, the electronic device receives a first operation of the user, including: the electronic device receives the first operation of the user in a target communication application; the target communication application is an application that allows the call of a communication intelligent tuning function; the communication intelligent tuning function is a function in which, during a call, the electronic device selects the first generating unit and / or the second sound generating unit to output a sound signal according to the size of noise data.
[0013] In this design, when the electronic device receives the user's first operation in the target communication application, the electronic device calls the communication intelligent tuning function through the target call application. Then, the electronic device selects the first generating unit and / or the second sound generating unit to output the sound signal according to the size of the noise data, which is beneficial to reduce the power consumption of the device.
[0014] In a possible design of the first aspect, before the electronic device responds to the first operation and detects noise data of the ambient sound, the method also includes: the electronic device determines that the electronic device includes a first sound unit and a second sound unit, and turns on a communication intelligent tuning function.
[0015] In this design, when the electronic device detects that the electronic device includes both the first sound unit and the second sound unit, the electronic device turns on the communication intelligent tuning function, which helps to reduce the power consumption of the device.
[0016] In a possible design of the first aspect, before the electronic device responds to the first operation and detects the noise data of the ambient sound, the method also includes: the electronic device displays an indication message after being turned on, or the electronic device displays an indication message after receiving the first operation; the indication message is used to remind the user to turn on the communication intelligent tuning function; the electronic device turns on the communication intelligent tuning function in response to the user's preset operation on the indication message.
[0017] In this design, the electronic device can display instruction information after being turned on, or display instruction information after receiving the first operation; since the instruction information is used to remind the user to turn on the communication intelligent tuning function, the user can choose whether to turn on the communication intelligent tuning function according to the instruction information, which reduces the power consumption of the device while improving the user experience.
[0018] In a possible design of the first aspect, multiple communication applications are installed in the electronic device; the multiple communication applications include system applications and third-party applications; the method also includes: the electronic device sets the multiple communication applications as target communication applications, allowing the multiple communication applications to call the communication intelligent tuning function; or the electronic device sets the system application as the target communication application, allowing the system application to call the communication intelligent tuning function, and prohibiting third-party applications from calling the communication intelligent tuning function.
[0019] In this design approach, the electronic device can set both system applications and third-party applications among multiple communication applications as target communication applications, or can only set the system application as the target communication application, that is, allowing the system application to call the communication intelligent tuning function and prohibiting third-party applications from calling the communication intelligent tuning function, thereby further improving the user experience.
[0020] In a possible design of the first aspect, multiple communication applications are installed in the electronic device; the multiple communication applications include system applications and third-party communication applications; the method also includes: the electronic device displays a setting interface; the setting interface includes multiple application options, the multiple application options correspond one-to-one to the multiple communication applications, and the application options are used to set the ability of the corresponding communication application to call the communication intelligent tuning function; the electronic device responds to the user's selection operation of the application option in the setting interface, sets the communication application selected by the user as the target communication application, and allows the communication application selected by the user to call the communication intelligent tuning function.
[0021] In this design, the user can select the corresponding application option in the setting interface, and the electronic device sets the target communication application based on the communication application selected by the user, allowing the communication application selected by the user to call the communication intelligent tuning function. In other words, the user can set the corresponding target communication application according to the needs, which can further improve the user experience.
[0022] In a possible design of the first aspect, before detecting the noise data of the ambient sound, the method also includes: the electronic device determines that the electronic device uses an earpiece to make sound during a call; wherein the earpiece sound includes the electronic device using at least one of the first sound unit and / or the second sound unit to output a sound signal.
[0023] In this design, since there is no need to turn on the communication intelligent tuning function when the electronic device uses headphones or speakers to output sound signals during a call, the electronic device also determines whether the electronic device uses the earpiece to make sound during the call, that is, whether at least one of the first sound unit and / or the second sound unit is used to output sound signals, before detecting the noise data of the ambient sound, which can further reduce the power consumption of the device.
[0024] In a possible design of the first aspect, the first sound-emitting unit is a screen sounder, and the second sound-emitting unit is a receiver.
[0025] In a second aspect, an electronic device is provided, which includes a first sound unit, a second sound unit, a microphone, a sensor and a processor; the first sound unit, the second sound unit, the microphone, the sensor are coupled to the processor; the sensor is used to receive a first operation of the user, and the first operation is used to trigger the electronic device to initiate a call; the processor is used to control the microphone to detect noise data of ambient sound in response to the first operation; the processor is used to determine that the noise data is in a first noise interval, and control the first sound unit to output a sound signal; in the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the first sound unit; the processor is used to determine that the noise data switches from the first noise interval to the second noise interval, and control the first sound unit and the second sound unit to output a sound signal; in the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit, and the smaller the volume of the sound signal output by the first sound unit; in the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the second sound unit, and the larger the volume of the sound signal output by the first sound unit; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval.
[0026] In a possible design method of the second aspect, the processor is also used to determine whether the noise data switches from the second noise interval to the third noise interval, and control the second sound unit to output a sound signal; in the third noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit; wherein the maximum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval.
[0027] In a possible design manner of the second aspect, the noise data in the first noise interval is less than 35dB; the noise data in the second noise interval is greater than or equal to 35dB and less than or equal to 65dB; and the noise data in the third noise interval is greater than 65dB.
[0028] In a possible design method of the second aspect, the processor is also used to control the volume of the sound signal output by the first sound unit and / or the second sound unit according to the size of the noise data using the following formula; L1=(65-X) / 30, L2=(X-35) / 30; wherein L1 represents the volume of the sound signal output by the first sound unit, L2 represents the volume of the sound signal output by the second sound unit, and X represents the noise data.
[0029] In a possible design of the second aspect, the sensor is specifically used to receive a first operation of a user in a target communication application; the target communication application is an application that allows the call of a communication intelligent tuning function; the communication intelligent tuning function is a function in which, during a call, the electronic device selects the first generating unit and / or the second sound generating unit to output a sound signal according to the size of noise data.
[0030] In a possible design of the second aspect, the processor is further used to determine that the electronic device includes a first sound unit and a second sound unit, and to enable a communication intelligent tuning function.
[0031] In a possible design of the second aspect, the electronic device also includes a display screen; the display screen is used to display indication information after the electronic device is turned on, or the display screen is used to display indication information after the sensor receives a first operation; the indication information is used to remind the user to turn on the communication intelligent tuning function; the processor is also used to turn on the communication intelligent tuning function in response to the user's preset operation on the indication information.
[0032] In a possible design of the second aspect, multiple communication applications are installed in the electronic device; the multiple communication applications include system applications and third-party applications; the processor is also used to set the multiple communication applications as target communication applications, allowing the multiple communication applications to call the communication intelligent tuning function; or, the processor is also used to set the system application as the target communication application, allowing the system application to call the communication intelligent tuning function, and prohibiting third-party applications from calling the communication intelligent tuning function.
[0033] In a possible design of the second aspect, multiple communication applications are installed in the electronic device; the multiple communication applications include system applications and third-party communication applications; the display screen displays a settings interface; the settings interface includes multiple application options, the multiple application options correspond one-to-one to the multiple communication applications, and the application options are used to set the ability of the corresponding communication application to call the communication intelligent tuning function; the processor is also used to respond to the user's selection operation of the application option in the settings interface, set the communication application selected by the user as the target communication application, and allow the communication application selected by the user to call the communication intelligent tuning function.
[0034] In a possible design of the second aspect, the processor is also used to determine whether the electronic device uses an earpiece to make sound during a call; wherein the earpiece sound includes the electronic device using at least one of the first sound unit and / or the second sound unit to output a sound signal.
[0035] In a possible design of the second aspect, the first sound-emitting unit is a screen sounder, and the second sound-emitting unit is a receiver.
[0036] Among them, the technical effects brought about by any design method in the second aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the principle of a screen sound generation technology provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of the positional relationship between a receiver and a screen generator in an electronic device provided in an embodiment of the present application;
[0040] Figure 4 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0041] Figure 5a A flow chart of a method for adjusting call volume provided in an embodiment of the present application Figure 1 ;
[0042] Figure 5b A flow chart of a method for adjusting call volume provided in an embodiment of the present application Figure 2 ;
[0043] Figure 5c A flow chart of a method for adjusting call volume provided in an embodiment of the present application Figure 3 ;
[0044] Figure 6 A flow chart of a method for adjusting call volume provided in an embodiment of the present application Figure 4 ;
[0045] Figure 7 Schematic diagram 5 of a flow chart of a method for adjusting call volume provided in an embodiment of the present application;
[0046] Figure 8 A flow chart of a method for adjusting call volume provided in an embodiment of the present application Figure 6 . DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0048] In order to clearly explain a method for adjusting the call volume provided in an embodiment of the present application, some terms that may appear in subsequent embodiments will first be introduced.
[0049] Screen sound technology is to drive the screen (also called display) and structure of the electronic device through a vibration unit, using the screen as a vibrating body, and transmit the sound waves generated by vibration to the user's ears. That is, when the user is talking, there is no need for a handset (such as a receiver), the vibration unit in the electronic device will drive the entire screen to make sound, and the sound can be transmitted through the screen.
[0050] The vibration unit may be, for example, a vibration membrane. In some embodiments, the vibration membrane is a metal sheet attached to a multilayer piezoelectric ceramic sheet. Figure 1 As shown, for example, an alternating voltage may be applied to the vibrating membrane, and then as the voltage changes, the vibrating membrane bends up and down continuously, driving the vibrating membrane to vibrate and produce sound.
[0051] Currently, when a user holds an electronic device (such as a mobile phone) to make a call, the sound is generally transmitted to the user's ear through the mobile phone's receiver (also called "earpiece"). However, since the mobile phone's receiver needs to have a hole at the top of the hand, part of the sound emitted by the mobile phone is transmitted from the receiver to the user's ear, and the other part is transmitted to the external environment through the opening of the mobile phone receiver. Therefore, when the user is on a call, the receiver often leaks sound or cannot hear the other party's voice clearly. For example, sound leakage may occur in a quiet environment, resulting in the leakage of user privacy.
[0052] Based on this, in some embodiments, electronic devices introduce screen sound technology, which triggers screen vibration through a vibration unit to emit sound, which can effectively reduce the occurrence of sound leakage. However, due to the limited volume of screen sound technology, it is easy to be unclear in a noisy environment.
[0053] In this regard, in an embodiment of the present application, when a user holds an electronic device to talk with another electronic device, the electronic device will detect the noise data of the current ambient sound; when the noise data is in the first noise interval, the electronic device outputs a sound signal through the first sound unit; when the noise data is in the second noise interval, the electronic device outputs a sound signal through the first sound unit and the second sound unit; when the noise data is in the third noise interval, the electronic device outputs a sound signal through the second sound unit. In other words, when the noise data is in different noise intervals, the electronic device can output sound signals through different sound units, so that the user can talk in a quiet environment without affecting the people around him; and can hear the other party's voice clearly in a noisy environment, thereby improving the user's call experience.
[0054] The minimum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval; and the minimum value of the noise data in the second noise interval is less than the maximum value of the noise data in the first noise interval.
[0055] Exemplarily, the first sound unit may be, for example, a screen sound generator; wherein the screen generator outputs sound signals through screen sound generation technology. The second sound unit may be, for example, a receiver. It should be noted that the first sound unit and the second sound unit may also be other suitable sound generators, which are not limited in this application; as long as the functions described in the above embodiments of this application can be realized, they are within the protection scope of this application.
[0056] In some embodiments, when the electronic device determines that the noise data is in the first noise interval, the electronic device outputs a sound signal through the first sound unit; within the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the first sound unit; when the electronic device determines that the noise data switches from the first noise interval to the second noise interval, the electronic device outputs a sound signal through the first sound unit and the second sound unit; within the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit, and the smaller the volume of the sound signal output by the first sound unit; within the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the second sound unit, and the larger the volume of the sound signal output by the first sound unit; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval.
[0057] In addition, if the electronic device determines that the noise data switches from the second noise interval to the third noise interval, the electronic device outputs a sound signal through the second sound unit; within the third noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit; wherein the maximum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval.
[0058] In this embodiment, since the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval, and the maximum value of the noise data in the third noise interval is greater than the maximum value of the noise data in the second noise interval, it can be considered that the noise data in the second noise interval is greater than the noise data in the first noise interval, and the noise data in the third noise interval is greater than the noise data in the second noise interval, that is, when the noise data of the ambient sound is in the first noise interval, it can be considered that the current environment is a quiet environment (that is, the noise in the current environment is very small, or even almost no noise); if the noise data of the current ambient sound is in the second noise interval, it can be considered that the current environment is a normal environment (that is, the noise in the current environment is general and will not cause much impact on the user); if the noise data of the ambient sound is in the third noise interval, it can be considered that the current environment is a noisy environment (that is, the noise of the current ambient sound is large and may affect the user's call). On this basis, if the user holds the electronic device and switches from a quiet environment to a normal environment during a call, the electronic device can switch from the first sound unit outputting a sound signal to the first sound unit and the second sound unit outputting a sound signal at the same time; if the user holds the electronic device and switches from a normal environment to a noisy environment during a call, the electronic device can output a sound signal from the second sound unit. In other words, the electronic device can collect noise data of the current ambient sound in real time, and dynamically adjust the sound emitted by the electronic device by controlling the first sound unit and / or the second sound unit based on the difference in the noise data of the ambient sound.
[0059] It should be noted that the embodiments of the present application do not limit the order of switching from the first noise interval to the second noise interval; and switching from the second noise interval to the third noise interval during a call. It should be understood that, depending on the environment in which the user is in during the call, it is also possible to switch from the second noise interval to the first noise interval, or from the first noise interval to the second noise interval; or switching between noise intervals in other scenarios all fall within the protection scope of the embodiments of the present application. In other words, as long as the noise interval in which the noise data is located changes during the user's call, the electronic device can dynamically adjust the sound emitted by the electronic device according to the noise interval in which the noise data is located.
[0060] In a possible implementation, the electronic device can, for example, divide the call into three modes (such as the first mode, the second mode, and the third mode) according to the noise data of the detected ambient sound. The first mode corresponds to the first noise interval, the second mode corresponds to the second noise interval, and the third mode corresponds to the third noise interval. For example, in the first mode, the electronic device can only control the screen generator to sound; in the second mode, the electronic device can control the receiver and the screen generator to sound at different frequencies; in the third mode, the electronic device can control the receiver and the screen generator to sound at the same time.
[0061] It should be noted that, in the embodiment of the present application, the first mode may also be referred to as a privacy mode, the second mode may also be referred to as a normal mode, and the third mode may also be referred to as a high-volume mode.
[0062] In the present application, the range of noise data can be, for example, [0, 100], in dB (decibel). Wherein, the three modes described in the above embodiment refer to dividing the range of noise data into three intervals, one interval corresponding to one mode. It should be noted that, "mode" is only used to distinguish different intervals of noise data, which is only an example of the present application and does not constitute a limitation of the present application. Exemplarily, "mode" can be replaced by "type", "interval", or other expressions, which are not listed one by one here.
[0063] Exemplarily, the call volume adjustment method provided in the embodiments of the present application can be applied to mobile phones, tablet computers, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, wearable electronic devices, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart cars, smart speakers and other electronic devices, and the embodiments of the present application do not impose any restrictions on this.
[0064] like Figure 2 , which is a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0065] The sensor module 180 (such as a sensor) is used to receive an operation that triggers the electronic device 100 to initiate a call.
[0066] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0067] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0068] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0069] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0070] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0071] Exemplarily, in an embodiment of the present application, the processor 110 is used to control the microphone 170C to detect noise data of ambient sound in response to the operation of the electronic device 100 initiating a call; the processor 110 is also used to determine that the noise data is in a first noise interval, and control the screen sounder 170E (such as a first sound unit) to output a sound signal; the processor 110 is also used to determine that the noise data switches from the first noise interval to the second noise interval, and control the screen sounder 170E (first sound unit) and the receiver 170B (second sound unit) to output a sound signal.
[0072] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0073] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0074] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0075] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0076] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0077] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-OLED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc.
[0078] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0079] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, the screen generator 170E and the application processor.
[0080] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as the "microphone" or "microphone", is used to convert sound signals into electrical signals. Exemplarily, in an embodiment of the present application, the microphone 170C is also used to collect and detect noise data of ambient sound.
[0081] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0082] The screen generator 170E is also called a "earpiece" and is used to convert audio electrical signals into sound signals. For example, the screen generator 170E may include a vibration membrane, and by applying an alternating voltage to the vibration membrane, the vibration membrane bends up and down continuously as the voltage changes, so as to convert the audio signal into a sound signal.
[0083] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, audio, video and other files are stored in the external memory card.
[0084] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. For example, in an embodiment of the present application, the processor 110 may execute the instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a data storage area.
[0085] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0086] Taking the above electronic device as a mobile phone as an example, the position relationship between the receiver 170B and the screen sounder 170E inside the mobile phone is described. Figure 3 As shown, the receiver 170B is arranged below the display screen of the mobile phone, and the receiver 170B has an opening at the top of the mobile phone. When the mobile phone is in a call scene, the sound is transmitted to the user's ear through the receiver 170B of the mobile phone. The screen generator 170E is arranged below the display screen of the mobile phone, and the screen generator 170E is located on the side of the receiver 10 away from the top of the mobile phone. When the mobile phone is in a call scene, the sound waves generated by the vibration of the screen generator 170E are transmitted to the user's ear. Figure 3 It can be seen that when the user holds the mobile phone to make a call, the receiver 170B and the screen generator 170E of the mobile phone are close to the user's auricle, so that the user can hear the sound emitted by the receiver 170B and the screen generator 170E at the same time.
[0087] In some embodiments, the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplarily illustrate the software architecture of the electronic device 100.
[0088] Figure 4 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0089] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer (application, APP), a framework layer (framework, FWK), a hardware abstraction layer (hardware abstraction layer, HAL) and a Linux kernel layer (linux kernel). In order to clearly describe the embodiments of the present application, in some embodiments, Figure 4 The software structure diagram of the electronic device 100 shown also includes the hardware of the electronic device 100 involved in the above embodiments. For example, the electronic device 100 also includes a receiver, a screen generator and a microphone (microphone, mic for short).
[0090] For example, Figure 4 As shown, the above application layer may include settings application, system communication application (eg, APP3), third-party communication application (eg, APP1, APP2), etc. Among them, the settings application includes a settings interface.
[0091] The hardware abstraction layer is an interface layer between the Linux kernel layer and the hardware, which can be used to abstract the hardware. Figure 4 As shown, the hardware abstraction layer includes an audio interface (audio).
[0092] The above Linux kernel layer provides the underlying drivers for various hardware of electronic devices. For example, Figure 4 As shown, the Linux kernel layer includes an audio driver module.
[0093] The framework layer provides application programming interfaces (APIs) and programming services for applications in the application layer. The framework layer includes some predefined functions. In some embodiments, Figure 4 As shown, the framework layer includes a hardware detection module, a call audio module, an audio channel detection module, a volume control module, an ambient sound recognition module, and a database.
[0094] The hardware detection module is used to detect whether the electronic device includes two sound generating devices, namely, a receiver and a screen generator. In some embodiments, the developer configures the configuration parameters of the two sound generating devices, namely, the receiver and the screen generator, in the electronic device during the development process. The configuration parameters may be, for example, a configuration file, that is, the electronic device includes a configuration file of the receiver and a configuration file of the screen generator.
[0095] In this case, when the electronic device is turned on, the hardware detection module will read the configuration parameters. When the hardware detection module reads the configuration parameters of the receiver and the screen generator at the same time, the hardware detection module determines that the electronic device includes two sound-generating devices, namely the receiver and the screen generator. On this basis, the electronic device will have the function of intelligent call tuning.
[0096] It should be noted that the intelligent call tuning function means that when a user uses an electronic device to make a call, the volume of the sound emitted by the electronic device (such as the voice of the other party during the call) can be automatically adjusted according to the noise data of the environment during the current call.
[0097] It should be noted that in the above embodiment, the hardware detection module may read the configuration parameters each time the electronic device is turned on; or the hardware detection module may read the configuration parameters when the electronic device is turned on for the first time, and the embodiments of the present application are not limited to this.
[0098] In some embodiments, when the electronic device is turned on, the hardware detection module determines that the electronic device includes a receiver and a screen sounder, and the electronic device turns on the intelligent call tuning function. In other embodiments, when the hardware detection module of the electronic device determines that the electronic device includes a receiver and a screen sounder, and the user starts any communication application on the electronic device, the electronic device automatically (reminds the user) turns on the intelligent call tuning function (or communication intelligent tuning function). In some other embodiments, when the hardware detection module of the electronic device determines that the electronic device includes a receiver and a screen sounder, and the electronic device is in a call, the electronic device turns on the intelligent call tuning function.
[0099] Taking the example of the electronic device starting up, when the hardware detection module determines that the electronic device includes a receiver and a screen sounder, and the electronic device starts the call intelligent tuning function, in some embodiments, when the electronic device is turned on, when the hardware detection module detects that the electronic device includes a receiver and a screen sounder, the electronic device responds to the user's operation and starts the call intelligent tuning function. Taking the electronic device as a mobile phone as an example, illustratively, when the mobile phone is turned on, when it is detected that the mobile phone includes two sound-generating devices, a receiver and a screen sounder, the mobile phone displays the following Figure 5aThe interface 201 shown in (1) is the interface after the mobile phone is turned on. The interface 201 includes indication information 202; the indication information 202 is used to remind the user to turn on the call intelligent tuning function. For example, the indication information is: whether to turn on the call intelligent tuning function. Then, in response to the user's operation on the "yes" control, the mobile phone displays the following Figure 5a The interface 203 shown in (2) includes a "Smart Call Tuning" setting item 204. In other embodiments, when the hardware detection module detects that the mobile phone includes a speaker and a screen generator, the hardware detection module reports the detection result to the setting application so that the mobile phone automatically turns on the smart call tuning function. For example, Figure 5a As shown in (2), the user does not need to operate, and the setting interface 203 of the mobile phone will automatically display the "Smart Call Tuning" setting item 204 (or application option).
[0100] For example, when the hardware detection module of the electronic device determines that the electronic device includes a receiver and a screen sounder, and when the user starts any communication application on the electronic device, the electronic device starts the call intelligent tuning function. In some embodiments, the hardware detection module of the electronic device determines that the electronic device includes a receiver and a screen sounder, and on this basis, the electronic device responds to the user's operation of starting the communication application and starts the call intelligent tuning function. Still taking the electronic device as a mobile phone as an example, for example, Figure 5b As shown in (1), the mobile phone responds to the user's operation on the phone application 205, and the mobile phone displays Figure 5b The interface 206 shown in (2) is a contact list interface in the call application. The interface 206 includes an indication message 207; the indication message 207 is used to remind the user to turn on the call intelligent tuning function. For example, the indication message is: whether to turn on the call intelligent tuning function. Then, in response to the user's operation on the "yes" control (or preset operation), the mobile phone displays the following Figure 5b The interface 203 shown in (3) includes a "Call Smart Tuning" setting item 204. In other embodiments, such as Figure 5c As shown in (1), the mobile phone displays interface 208, which is a list of contact C information. Interface 208 includes call control 209, information control 210, video control 211 and social profile (such as APP1 account, APP2 account, etc.). For example, in response to the user's operation on call control 209, the mobile phone automatically turns on the call intelligent tuning function. For another example, in response to the user's operation on any APP in the social profile, the mobile phone displays Figure 5c The interface 203 shown in (2) includes a “Smart Call Tuning” setting item 204.
[0101] Taking the example where a hardware detection module of an electronic device determines that the electronic device includes a receiver and a screen speaker, and that the electronic device turns on the intelligent call tuning function during a call, in some embodiments, the electronic device turns on the intelligent call tuning function in response to the user's operation.
[0102] The operation may be, for example, any one of a voice operation, a gesture operation, or a touch operation. The touch operation may be, for example, a click operation or a slide operation. In some embodiments, the operation may also be an operation in which the user presses a power button.
[0103] Taking the operation as a voice operation as an example, for example, when a user is holding an electronic device and talking on a call, if the user does not want others to hear the content of the call; or when the current environment is noisy, the user can input a voice to the electronic device to enable the electronic device to enable the intelligent call tuning function. The voice input by the user to the electronic device can be, for example, "enable the intelligent call tuning function".
[0104] Taking the operation of the user pressing the power button as an example, for example, when the user is holding an electronic device and talking on a call, if the user does not want others to hear the call; or when the current environment is noisy, the user can press the power button twice in succession to enable the electronic device to turn on the smart tuning function.
[0105] It should be noted that in the following embodiments of the present application, the hardware detection module of the electronic device determines that the electronic device includes a receiver and a screen sounder, and the electronic device turns on the call intelligent tuning function as an example for illustration. In combination with the above embodiments, under normal circumstances, the "call intelligent tuning" setting item 204 is in an on state. In one possible example, when the "call intelligent tuning" setting item 204 is in an on state, the call intelligent tuning function is applicable to all communication applications (such as APP1, APP2, and APP3, etc.) that can make calls, that is, the electronic device allows all communication applications to call the call intelligent tuning function. In another possible example, when the "call intelligent tuning" setting item 204 is in an on state, the call intelligent tuning function is only applicable to cellular calls, that is, the call intelligent tuning function is turned on by default for the system communication application (or system application, such as APP3) of the UI layer, and is turned off by default for other third-party communication applications (or third-party applications, such as APP1, APP2, etc.). In other words, the electronic device only allows the system communication application to call the call intelligent tuning function. In some other embodiments, when the "Smart Call Tuning" setting item 204 is turned on, the smart call tuning function is not applicable to all communication applications. On this basis, the electronic device displays a setting interface in response to the user's operation on the "Smart Call Tuning" setting item 204. The setting interface includes application options; wherein the application options include all communication applications (such as system applications and third-party applications), and the user can select the corresponding application in the application options to allow the call smart tuning function to be called.
[0106] like Figure 6 As shown in (1), the "Smart Call Tuning" setting item 204 is turned on, and the smart call tuning function is only applicable to cellular calls. Then, in response to the user's operation on the "Smart Call Tuning" setting item 204, the electronic device displays the following Figure 6 The interface 301 shown in (2) includes all third-party communication applications (such as APP1, APP2, etc.) that support the call intelligent tuning function. The user can select the corresponding application as the application that allows the call intelligent tuning function to be called. For example, in response to the user selecting the WeChat application in the interface 301 (or the selection operation), the electronic device displays the following Figure 6 The interface 302 shown in (3) indicates that the WeChat application is turned on. In other words, the user has authorized the WeChat application to use the call intelligent tuning function. Of course, the user can also authorize other third-party communication applications in the interface 301, or use this method to cancel (or modify) the permission of a third-party call application to use the call intelligent tuning function.
[0107] After the user selects the corresponding third-party communication application in interface 301, the electronic device stores the application information (such as the package name) set by the user to allow the call intelligent tuning function to be called. Figure 4 The software architecture diagram of the electronic device shown in the figure stores a list of applications set by the user that are allowed to call the intelligent call tuning function in the database in the framework layer of the electronic device.
[0108] It should be noted that the user operation mentioned in the above embodiments may be, for example, any one of voice operation, gesture operation or touch operation. Among them, the touch operation may be, for example, a click operation or a slide operation. Figure 5a-Figure 6 The electronic device is taken as a mobile phone as an example for illustration. It should be understood that the electronic device can also be other electronic devices with a call function, which are not listed here one by one.
[0109] The call audio module is used to detect whether the electronic device is in a call state. Exemplarily, when a user uses a communication application (such as a telephone application) of an electronic device to make a call, the communication application sends a call request to the call audio module. Among them, the call request is used to obtain the permission of the call application to use the audio device. In other words, the call application sends a call request to the call audio module to inform the call audio module that a call is currently occurring and the right to use the audio device is required. In this way, the call audio module can detect that the electronic device is in a call state.
[0110] The audio device may include, for example, at least one of the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the screen generator 170E in the above-mentioned embodiments.
[0111] In some embodiments, when the communication application sends a call request to the call audio module, the call request also includes application information (such as package name) of the call application. On this basis, when the call application uses the audio device for a call, the call audio module sets the application information of the call application for the current call according to the call request.
[0112] The audio channel detection module is used to detect whether the electronic device uses the receiver to make sound when making a call. The receiver sound refers to the electronic device using at least one of the receiver or the screen sounder to make sound when making a call. Exemplarily, the audio channel detection module receives the audio channel broadcast by the system in real time. The audio channel includes a speaker channel, a wired headset channel, a Bluetooth channel, a receiver channel, and a screen sounder channel. For example, when the audio channel detection module receives that the audio channel broadcast by the system is a receiver channel, the audio channel detection module determines that the electronic device uses the receiver to make sound when making a call, that is, the electronic device uses the receiver to make sound.
[0113] It should be noted that when a user uses an electronic device to make a call, the electronic device may use a speaker to make a call, or use a wired headset to make a call, or may also use a Bluetooth headset to make a call. It should be understood that when an electronic device uses a speaker, a wired headset, or a Bluetooth headset to make a call, there is no sound leakage and the user cannot hear the sound clearly. Therefore, in the above scenario, there is no need to adjust the sound ratio of the receiver and the screen generator, that is, the electronic device does not need to use the call intelligent tuning function. Only when the electronic device uses a handset to make a call, the electronic device will start the call intelligent tuning function. Based on this, in an embodiment of the present application, it is necessary to detect whether the electronic device is using a handset to make a call when making a call.
[0114] In some embodiments, after the call audio module determines the application information of the call application, the call audio module synchronizes the application information to the volume control module. After receiving the application information, the volume control module determines whether the call application is the target communication application according to the application information. Figure 4 As shown, when the volume control module determines that the call application is the target communication application, the volume control module sends a trigger instruction to the ambient sound recognition module; the trigger instruction is used to instruct the ambient sound recognition module to determine the noise data of the current ambient sound and report the determined noise data to the volume control module. The noise data can be, for example, noise decibels (in dB).
[0115] Then, the volume control module first determines the volume mode corresponding to the current ambient sound according to the noise data, and calculates the sound parameters of the receiver and the screen generator according to the volume mode and the noise data (for example, the volume of the sound signal output by the receiver and the screen generator). The volume control module calls the audio interface of the hardware abstraction layer to send the sound parameters of the receiver and the screen generator to the audio driver module of the Linux kernel layer, and the audio driver module drives the receiver and the screen generator to output audio according to their respective sound parameters.
[0116] In the embodiment of the present application, when the electronic device includes both a receiver and a screen generator, the electronic device can activate the call intelligent tuning function. Figure 4 Taking the electronic device in the example as an example, the specific process of the electronic device executing the call volume adjustment method is described, such as Figure 4 and Figure 7 As shown, the call volume adjustment method may include steps A1 to A20.
[0117] A1. The electronic device sets an application list in response to a user operation on a setting interface.
[0118] Among them, the application list includes applications that allow the call intelligent tuning function to be called.
[0119] In some embodiments, the electronic device can detect whether the electronic device includes a receiver and a screen generator through a hardware detection module. When the hardware detection module detects that the electronic device includes a receiver and a screen generator, Figure 6 As shown in (1), the setting interface of the electronic device will automatically display the "Smart Call Tuning" setting item. The setting interface is the interface after the user starts the setting application.
[0120] It should be noted that, in general, the "Smart Call Tuning" setting item included in the settings interface is turned on. In this case, the smart call tuning function of the electronic device is only applicable to cellular calls. In other words, the smart call tuning function is only turned on by default for system call applications and turned off by default for third-party call applications.
[0121] Then, the user can click the "Smart Call Tuning" setting item included in the setting interface, and the electronic device will display the following: Figure 6 The interface shown in (2) includes all third-party communication applications that support the call intelligent tuning function (such as APP1 and APP2, etc.). The user can select the corresponding application as the application that is allowed to call the call intelligent tuning function, that is, the user can set the list of applications that are allowed to call the call intelligent tuning function.
[0122] Exemplarily, when the user sets APP1 and APP2 as applications allowed to call the smart call tuning function, the application list includes APP1 and APP2.
[0123] Still Figure 7 As shown, in some embodiments, after the user sets the list of applications that are allowed to call the call intelligent tuning function, the electronic device stores the list of applications set by the user through a database. Exemplarily, the database stores information (such as package name) of each application in the list of applications set by the user. On this basis, the volume control module reads the contents of the database once when the electronic device is turned on, and the volume control module also registers monitoring with the database. When the list of applications stored in the database changes, the volume control module updates the read contents of the database.
[0124] A2. The electronic device receives the application list through the setting interface.
[0125] A3. The electronic device sends the application list to the database through the setting interface.
[0126] A4. The electronic device stores the application list via a database.
[0127] A5. The electronic device monitors the database through the volume control module.
[0128] It should be noted that there is no limitation on the order of step A5 and steps A1 to A4. Step A5 can be before steps A1 to A4 or after steps A1 to A4.
[0129] A6. The electronic device initiates a call in response to the user's first operation on the communication application.
[0130] The communication application may include a system communication application and a third-party communication application. For example, a user may use APP1 or APP2, a third-party communication application, to make a call, or may use APP3, a system communication application, to make a call.
[0131] It should be noted that, for the example description of the first operation, reference may be made to the above embodiment, which will not be described in detail here.
[0132] A7. The electronic device sends a call request to the call audio module through the call application.
[0133] The call request is used to inform the call audio module that a call has occurred and that the call application needs to obtain permission to use the audio device.
[0134] The audio device may include at least one of the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the screen sounder 170E in the above-mentioned embodiment. Taking the audio device as a receiver as an example, the communication application may obtain permission to use the receiver from the call audio module, and when the communication application obtains the permission, the communication application may use the receiver for calls.
[0135] A8. The electronic device detects the call status according to the call request through the call audio module.
[0136] Exemplarily, when the communication application sends a call request to the call audio module, the communication application informs the call audio module that a call is currently occurring and that the right to use the audio device is required, thereby enabling the communication audio module to detect the call status of the electronic device, i.e., a call is currently occurring on the electronic device.
[0137] In some embodiments, when the call audio module detects that a call is currently being made on the electronic device, the call audio module reports the current call status to the volume control module so that the volume control module can obtain the call status of the electronic device. In other embodiments, the volume control module registers monitoring with the call audio module, and when the call audio module detects that a call is currently being made on the electronic device, the volume control module can trigger a callback to obtain the call status in a timely manner.
[0138] A9. The electronic device reports the call status to the volume control module through the call audio module.
[0139] A10. The electronic device detects the audio channel during a call through the audio channel detection module.
[0140] The electronic device detects the audio channel during a call through an audio channel detection module, and determines whether to use the handset to speak during the call according to the audio channel.
[0141] Among them, the earpiece sound refers to the electronic device using at least one of a receiver or a screen sounder to make sound when making a call. Exemplarily, the audio channel detection module receives the audio channel broadcast by the system in real time. Among them, the audio channel includes a speaker channel, a wired headset channel, a Bluetooth channel, a receiver channel, and a screen sounder channel. For example, when the audio channel detection module receives that the audio channel broadcast by the system is a receiver channel, the audio channel detection module determines that the electronic device uses a receiver to make sound when making a call, that is, the electronic device uses the earpiece to make sound.
[0142] Accordingly, when the user selects a different audio channel for a call, the audio channel detection module reports the detected audio channel to the volume control module, so that the volume control module can obtain the audio channel of the current call in real time and determine whether the electronic device uses the handset to make a sound. If so, the electronic device determines to perform intelligent call tuning.
[0143] It should be noted that when a user uses an electronic device to make a call, the electronic device may use a speaker, a wired headset, or a Bluetooth headset. It should be understood that when an electronic device uses a speaker, a wired headset, or a Bluetooth headset to make a call, there is no sound leakage and the user cannot hear the sound clearly. Therefore, in the above scenario, there is no need to adjust the sound ratio of the receiver and the screen generator, that is, the electronic device does not need to use the call intelligent tuning function. Only when the electronic device uses the "earpiece" to make a call, the volume control module of the electronic device will perform the call intelligent tuning function.
[0144] A11. The electronic device reports the audio channel to the volume control module through the audio channel detection module.
[0145] A12. The electronic device determines application information of the call application according to the call request through the call audio module.
[0146] Exemplarily, when the call application sends a call request to the call audio module, the call request also includes the application information of the call application (such as package name). On this basis, when the call application uses the audio device for a call, the call audio module sets the application information of the call application for the current call according to the call request.
[0147] A13. The electronic device synchronizes application information to the volume control module through the call audio module.
[0148] A14. The electronic device determines the target communication application according to the application information of the call application through the volume control module.
[0149] Exemplarily, when the volume control module receives the application information of the call application, the volume control module matches the application information of the communication application with the application list stored in the database. Figure 8 As shown, if there is no application list stored in the database, the volume control module determines whether the current call is a cellular call; if so, the communication application is the target communication application. Among them, a cellular call refers to a call made by a user using the "phone application" in an electronic device. For example, when the volume control module determines that the application information of the communication application of the current call is: com.android.incallui, the volume control module determines that the call application of the current call is a phone application, that is, the current call is a cellular call. If there is an application list stored in the database, the volume control module determines whether the call application is in the application list. If so, the volume control module determines that the call application is the target communication application. Among them, the application list includes application information of third-party communication applications (that is, application information of third-party communication applications set by the user).
[0150] It should be noted that if the call application of the current call is not the target call application, the volume control module of the electronic device does not perform the call intelligent tuning function.
[0151] A15. The electronic device sends a trigger instruction for detecting ambient sound to the ambient sound recognition module through the volume control module.
[0152] A16. The electronic device obtains noise data of the ambient sound through the ambient sound recognition module, and determines the volume mode of the current ambient sound according to the noise data.
[0153] In some embodiments, in combination Figure 4 In the software structure diagram of the electronic device shown in the figure, after the ambient sound recognition module receives the trigger instruction, it collects and calculates the noise data within a preset time through the microphone. Then the microphone sends the noise data to the ambient sound recognition module, so that the ambient sound recognition module determines the volume mode of the current ambient sound according to the noise data.
[0154] Exemplarily, the noise data of the ambient sound satisfies the following formula:
[0155] Among them, SPL is the noise data, p e is the effective value of the ambient sound collected by the microphone, p refis the effective value of the reference ambient sound. In some embodiments, p ref =2×10 -5 Pa.
[0156] It should be noted that the preset duration may be, for example, 10s, 20s, 30s or other suitable durations, and the embodiments of the present application are not limited to this.
[0157] After the ambient sound recognition module obtains the noise data of the current ambient sound, the ambient sound recognition module can determine the mode of the current ambient sound according to the noise data. Exemplarily, it is generally believed that the noise data of the ambient sound in the scene of whispering is approximately between 20dB and 30dB. In this scene, the noise of the ambient sound has little impact on the user, so it can be considered that the mode of the ambient sound in this scene is a privacy mode. The noise data of the ambient sound in the scene of an ordinary room is approximately between 50dB and 60dB. In this scene, the noise of the ambient sound is noise that the user can receive, so it can be considered that the mode of the ambient sound in this scene is a normal mode. The noise data of the ambient sound in the outdoor scene (such as a traffic artery road) is approximately between 70dB and 90dB. In this scene, the noise of the ambient sound has a greater impact on the user, and the user is often required to increase the volume to talk, so it can be considered that the mode of the ambient sound in this scene is a high volume mode.
[0158] For the noise data of the ambient sound corresponding to the above-mentioned different scenarios, as described in Table 1 below, a corresponding relationship between the volume mode of the ambient sound and the noise data is provided in an embodiment of the present application.
[0159] Table 1
[0160] Ambient sound mode Noisy data Privacy Mode <35dB Normal Mode 35dB~65dB High volume mode >65dB
[0161] It should be noted that the correspondence between the ambient sound volume mode and the noise data shown in Table 1 is only an example and does not constitute a limitation on the present application. It should be understood that other appropriate correspondences between the ambient sound volume mode and the noise data should also fall within the protection scope of the embodiments of the present application.
[0162] A17. The electronic device reports the noise data and the volume mode of the ambient sound to the volume control module through the ambient sound recognition module.
[0163] A18. The electronic device determines the sound parameters of the receiver and the screen speaker respectively according to the noise data and the volume mode of the ambient sound through the volume control module.
[0164] For example, when the volume mode of the ambient sound is the privacy mode, the volume control module of the electronic device only controls the screen sound generator to make sound. For example, the volume control module controls the sound parameter of the receiver to be 0, and the sound parameter of the screen sound generator to be 1.0; that is, when the electronic device is talking, if the volume mode of the ambient sound is the privacy mode, the sound ratio of the receiver of the electronic device is 0% (i.e., no sound), and the sound ratio of the screen generator of the electronic device is 100% (i.e., the sound is completely made by the screen generator).
[0165] For another example, when the volume mode of the ambient sound is the normal mode, the volume control module of the electronic device controls the receiver and the screen sound generator to generate sound at different frequencies. In this case, illustratively, the parameters of the receiver satisfy the following formula: L1 = (X-Q1) / M; the parameters of the screen sound generator satisfy the following formula: L2 = (Q2-X) / M; wherein L1 represents the sound parameters of the receiver, L2 represents the sound parameters of the screen generator, X represents the noise data of the current ambient sound, Q1 represents the first preset value, Q2 represents the second preset value, and M represents the third preset value.
[0166] In some embodiments, Q1=35, Q2=65, M=30. On this basis, for example, when the volume mode of the ambient sound is the normal mode and the noise data is 50dB, the sound parameter of the receiver is 0.5, and the sound parameter of the screen sounder is 0.5; that is, when the electronic device is talking, if the ambient sound is in the normal mode, the sound ratio of the receiver of the electronic device is 50%, and the sound ratio of the screen sounder of the electronic device is 50%.
[0167] For another example, when the volume mode of the ambient sound is a high volume mode, the volume control module of the electronic device only controls the receiver to make sound. For example, the volume control module controls the parameter of the receiver to be 1.0, and the parameter of the screen sounder to be 0; that is, when the electronic device is talking, if the volume mode of the ambient sound is a high volume mode, the sound emission ratio of the receiver of the electronic device is 100% (i.e., the sound is completely emitted by the receiver), and the transmission ratio of the screen sounder of the electronic device is 0% (i.e., no sound is emitted).
[0168] A19. The electronic device sends the sound parameters of the receiver and the sound parameters of the screen sounder to the audio driver module through the volume control module.
[0169] Exemplarily, the volume control module may call the audio interface of the hardware abstraction layer to send the sound parameters of the receiver and the sound parameters of the screen sounder to the audio driver module.
[0170] A20. The electronic device drives the receiver and the screen speaker through the audio driver module to output audio according to their respective sound parameters.
[0171] In some embodiments, the audio driving module includes a power amplifier, and the volume control module sends the sound parameters of the receiver and the screen sounder to the power amplifier of the audio driving module. After processing by the power amplifier, the receiver and the screen sounder are finally driven to output audio according to their respective sound parameters.
[0172] It should be noted that, among the above steps A1-A20, steps A8-A11 are optional steps. Moreover, the present embodiment of the application does not limit the order of steps A1-A20.
[0173] In summary, in the embodiment of the present application, when a user holds an electronic device to talk with another electronic device, the electronic device will detect the noise data of the current ambient sound; when the noise data is in the first noise interval, the electronic device outputs a sound signal through the first sound unit; when the noise data is in the second noise interval, the electronic device outputs a sound signal through the first sound unit and the second sound unit; when the noise data is in the third noise interval, the electronic device outputs a sound signal through the second sound unit. In other words, when the noise data is in different noise intervals, the electronic device can output sound signals through different sound units, so that the user can talk in a quiet environment without affecting the people around him; and can hear the other party's voice clearly in a noisy environment, thereby improving the user's call experience.
[0174] It should be noted that, in some embodiments, some or all of the steps in the above embodiments (for example Figure 7 A1-A20) in the process shown can be recombined to form a new embodiment if there is no conflict, and this will not be described in detail in the embodiment of the present application.
[0175] like Figure 8 FIG. 5 is a flow chart of a method for adjusting call volume provided in an embodiment of the present application. The method may include S501-S507.
[0176] S501. The electronic device determines whether it supports the call intelligent tuning function.
[0177] If the electronic device supports the intelligent call tuning function, the electronic device can continue to execute the call volume adjustment method provided in the embodiment of the present application; if the electronic device does not support the intelligent call tuning function, the electronic device does not have the conditions to execute the call volume adjustment method provided in the embodiment of the present application.
[0178] Exemplarily, when the electronic device includes two sound-generating devices, namely a receiver and a screen sounder, the electronic device supports the intelligent call tuning function.
[0179] S502: The electronic device sets an application list in response to the user's operation on the setting interface.
[0180] For example, when the electronic device supports the call intelligent tuning function, the setting interface of the electronic device automatically displays the "call intelligent tuning" setting item. Then, the user can set the application that allows the call intelligent tuning function to be called in the "call intelligent tuning" setting item.
[0181] It should be noted that, in general, the "Smart Call Tuning" setting item is turned on. At this time, the smart call tuning function only applies to cellular calls and is turned off by default for other third-party communication applications. In this case, the user needs to set other corresponding third-party communication applications in the "Smart Call Tuning" setting item. In other words, the application list set by the user only includes third-party communication applications.
[0182] S503: The electronic device determines whether a call is generated.
[0183] For example, when a user uses a call application to initiate a call, the call application will send a call request to the call audio module of the electronic device, and the call request is used to obtain the permission of the call application to use the audio device. In other words, the call application sends a call request to the call audio module in order to inform the call audio module that a call is currently occurring and that the right to use the audio device is required. Therefore, when the call audio module of the electronic device receives the call request sent by the call application, the electronic device determines that a call is occurring.
[0184] In some embodiments, when the electronic device determines that a call has occurred, the electronic device continues to execute the call volume adjustment method provided in the embodiments of the present application; when the electronic device determines that no call has occurred, the electronic device does not execute the call volume adjustment method.
[0185] S504: The electronic device determines whether to use the receiver to make a sound.
[0186] Exemplarily, the electronic device detects whether the electronic device uses a receiver to make a sound when making a call through an audio channel detection module. For example, the audio channel detection module receives the audio channel broadcast by the system in real time. Among them, the audio channel includes a speaker channel, a wired headset channel, a Bluetooth channel, a receiver channel, and a screen sounder. When the audio channel detection module detects that the audio channel is a receiver channel, the audio channel detection module determines that the electronic device uses the receiver to make a sound, that is, the electronic device uses the receiver to make a sound.
[0187] S505: The electronic device determines whether the call application is the target communication application.
[0188] It should be noted that the call request sent by the communication application to the call audio module of the electronic device includes the application information of the communication application. The call audio module then synchronizes the application information to the volume control module, and the volume control module determines whether the call application is the target communication application based on the application information.
[0189] In addition, after the user sets the application list in the setting interface, the electronic device will store the application list set by the user in the database. In this case, when the call audio module synchronizes the application information to the volume control module, the volume control module will match the application information with the application information in the application list to determine whether the communication application is the target communication application.
[0190] In some embodiments, when the electronic device determines that the communication application is the target communication application, the electronic device continues to execute the call volume adjustment method provided in the embodiment of the present application; when the electronic device determines that the call application is not the target communication application, the electronic device does not execute the call volume adjustment method.
[0191] After the electronic device executes the above steps S501-S505, if the electronic device supports the intelligent call tuning function and the electronic device uses the handset to make a sound during the call through the target communication application, the electronic device will trigger the ambient sound detection function. Exemplarily, the ambient sound recognition module of the electronic device collects and calculates the noise data of the ambient sound through the microphone, and determines the current ambient sound mode according to the noise data.
[0192] S506: The electronic device determines the sound parameters of the receiver and the screen sounder according to the noise data and the pattern of the ambient sound.
[0193] Exemplarily, the electronic device determines the respective sound parameters of the receiver and the screen sounder through a volume control module.
[0194] S507: The electronic device outputs audio according to the respective sound parameters of the receiver and the screen sounder.
[0195] Exemplarily, the electronic device drives the receiver and the screen sounder through the audio driver module to output audio according to their respective sound parameters.
[0196] It should be noted that, for the examples and beneficial effects of S501-S507, reference can be made to the examples and beneficial effects of step A1-step A12 in the above embodiments, which will not be repeated here one by one. In addition, the above embodiments only give some application scenarios and specific implementations provided by the embodiments of the present application by way of example. The application scenarios and specific implementations of the methods provided by the embodiments of the present application include but are not limited to the application scenarios and implementations described in the above examples. For example, the scenarios to which the methods provided by the embodiments of the present application are applicable can also be scenarios of voice playback, scenarios of video playback, scenarios of music playback, and other suitable scenarios, and their specific implementations can refer to the above embodiments, which will not be repeated here one by one.
[0197] An embodiment of the present application provides an electronic device, which may include: a first sound unit, a second sound unit, a microphone, a sensor and a processor; the first sound unit, the second sound unit, the microphone, the sensor are coupled to the processor; the sensor is used to receive a first operation of a user, and the first operation is used to trigger the electronic device to initiate a call; the processor is used to control the microphone to detect noise data of ambient sound in response to the first operation; the processor is used to determine whether the noise data is in a first noise interval, and control the first sound unit to output a sound signal; in the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the first sound unit; the processor is used to determine whether the noise data is switched from the first noise interval to the second noise interval, and control the first sound unit and the second sound unit to output a sound signal; in the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the second sound unit, and the smaller the volume of the sound signal output by the first sound unit; in the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the second sound unit, and the larger the volume of the sound signal output by the first sound unit; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval.
[0198] In some embodiments, the first sound unit, the second sound unit, the microphone, the sensor and the processor are also used to perform the functions or steps performed by the electronic device in the above-mentioned method for adjusting the call volume. Figure 3 The structure of the electronic device 100 is shown. The technical effects brought by the electronic device can refer to the technical effects brought by the above-mentioned call volume adjustment method, which will not be repeated here.
[0199] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0200] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0201] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0204] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for adjusting call volume, characterized in that: Applied to an electronic device, the electronic device comprises a screen sounder and a receiver; the screen sounder is arranged below the display screen of the electronic device, the screen sounder adopts screen sounding technology, the screen sounding technology drives the display screen to make sound through a vibration unit, the receiver is located below the display screen, the receiver has an opening at the top of the electronic device, and the screen sounder is located on a side of the receiver away from the top, the method comprises: The electronic device receives a first operation of a user, where the first operation is used to trigger the electronic device to initiate a call; the electronic device receives the first operation of the user, including: the electronic device receives the first operation of the user in a target communication application; the target communication application is an application that allows the communication intelligent tuning function to be called; the communication intelligent tuning function is a function in which the electronic device selects the screen sounder and / or the receiver to output a sound signal according to the size of the noise data during a call; When the electronic device uses the speaker to make a call, the electronic device does not use the communication intelligent tuning function; When the electronic device uses the handset to make a sound, the electronic device uses the communication intelligent tuning function, the handset sound is that the electronic device uses at least one of the receiver or the screen sounder to make a sound when making the call, and the communication intelligent tuning function includes: The electronic device detects noise data of ambient sound in response to the first operation; The electronic device determines that the noise data is in a first noise interval, outputs a sound signal through the screen sounder, and the noise data in the first noise interval is less than 35dB; in the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the screen sounder; The electronic device determines that the noise data is switched from the first noise interval to the second noise interval, and outputs a sound signal through the screen sounder and the receiver, wherein the noise data in the second noise interval is greater than or equal to 35 dB and less than or equal to 65 dB; in the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the receiver, and the smaller the volume of the sound signal output by the screen sounder; in the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the receiver, and the larger the volume of the sound signal output by the screen sounder; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval; The electronic device determines that the noise data switches from the second noise interval to the third noise interval, and outputs a sound signal through the receiver, and the noise data in the third noise interval is greater than 65dB; in the third noise interval, the larger the noise data, the louder the volume of the sound signal output by the receiver.
2. The method according to claim 1, characterized in that The method further comprises: The electronic device adjusts the volume of the sound signal output by the screen sound generator and / or the receiver according to the size of the noise data using the following formula; L1=(65-X) / 30, L2=(X-35) / 30; Wherein, L1 represents the volume of the sound signal output by the screen sounder, L2 represents the volume of the sound signal output by the receiver, and X represents the noise data.
3. The method according to claim 1, characterized in that Before the electronic device detects noise data of ambient sound in response to the first operation, the method further includes: The electronic device determines that the electronic device includes the screen speaker and the receiver, and turns on the communication intelligent tuning function.
4. The method according to claim 1, characterized in that: Before the electronic device detects noise data of ambient sound in response to the first operation, the method further includes: The electronic device displays the indication information after being turned on, or the electronic device displays the indication information after receiving the first operation; the indication information is used to remind the user to turn on the communication intelligent tuning function; The electronic device activates the communication intelligent tuning function in response to a user's preset operation on the indication information.
5. The method according to any one of claims 1 to 4, characterized in that The electronic device has multiple communication applications installed therein; the multiple communication applications include system applications and third-party applications; and the method further includes: The electronic device sets the multiple communication applications as the target communication applications, allowing the multiple communication applications to call the communication intelligent tuning function; or, The electronic device sets the system application as the target communication application, allows the system application to call the communication intelligent tuning function, and prohibits the third-party application from calling the communication intelligent tuning function.
6. The method according to claim 1, characterized in that The electronic device has multiple communication applications installed therein; the multiple communication applications include system applications and third-party communication applications; the method further includes: The electronic device displays a setting interface; the setting interface includes a plurality of application options, the plurality of application options correspond one to one with the plurality of communication applications, and the application options are used to set the ability of the corresponding communication application to call the communication intelligent tuning function; The electronic device, in response to the user's selection operation of the application option in the setting interface, sets the communication application selected by the user as the target communication application, and allows the communication application selected by the user to call the communication intelligent tuning function.
7. An electronic device, characterized in that: The electronic device comprises a screen sounder, a receiver, a microphone, a sensor and a processor; the screen sounder is arranged below the display screen of the electronic device, the screen sounder adopts screen sound technology, and the screen sound technology drives the display screen to make sound through a vibration unit, the receiver is located below the display screen, the receiver has an opening at the top of the electronic device, the screen sounder is located on a side of the receiver away from the top, and the screen sounder, the receiver, the microphone, the sensor are coupled to the processor; The sensor is used to receive a first operation of a user, where the first operation is used to trigger the electronic device to initiate a call; The electronic device receives a first operation of a user, comprising: the electronic device receives a first operation of a user in a target communication application; the target communication application is an application that allows the invocation of a communication intelligent tuning function; the communication intelligent tuning function is a function in which the electronic device selects the screen sounder and / or the receiver to output a sound signal according to the size of the noise data during a call; When the electronic device uses the speaker to make a call, the electronic device does not use the communication intelligent tuning function; When the electronic device uses the handset to make a sound, the electronic device uses the communication intelligent tuning function, and the communication intelligent tuning function includes: The processor is used for controlling the microphone to detect noise data of ambient sound in response to the first operation; The processor is used to determine that the noise data is in a first noise interval, and control the screen sounder to output a sound signal, and the noise data in the first noise interval is less than 35dB; in the first noise interval, the larger the noise data, the larger the volume of the sound signal output by the screen sounder; The processor is used to determine that the noise data is switched from the first noise interval to the second noise interval, and control the screen sounder and the receiver to output sound signals, wherein the noise data in the second noise interval is greater than or equal to 35dB and less than or equal to 65dB; in the second noise interval, the larger the noise data, the larger the volume of the sound signal output by the receiver, and the smaller the volume of the sound signal output by the screen sounder; in the second noise interval, the smaller the noise data, the smaller the volume of the sound signal output by the receiver, and the larger the volume of the sound signal output by the screen sounder; wherein the minimum value of the noise data in the second noise interval is greater than the maximum value of the noise data in the first noise interval; The electronic device determines that the noise data switches from the second noise interval to the third noise interval, and outputs a sound signal through the receiver, and the noise data in the third noise interval is greater than 65dB; in the third noise interval, the larger the noise data, the louder the volume of the sound signal output by the receiver.
8. The electronic device according to claim 7, characterized in that: The processor is further configured to control the volume of the sound signal output by the screen sound generator and / or the receiver using the following formula according to the size of the noise data; L1=(65-X) / 30, L2=(X-35) / 30; Wherein, L1 represents the volume of the sound signal output by the screen sounder, L2 represents the volume of the sound signal output by the receiver, and X represents the noise data.
9. The electronic device according to claim 7, characterized in that: The processor is also used to determine that the electronic device includes the screen speaker and the receiver, and to enable the communication intelligent tuning function.
10. The electronic device according to claim 7, characterized in that: The electronic device further comprises: a display screen; The display screen is used to display indication information after the electronic device is turned on; or the display screen is used to display indication information after the sensor receives the first operation; the indication information is used to remind the user to turn on the communication intelligent tuning function; The processor is also used to enable the communication intelligent tuning function in response to a user's preset operation on the indication information.
11. The electronic device according to claim 7, characterized in that: The electronic device has multiple communication applications installed therein; the multiple communication applications include system applications and third-party applications; The processor is further configured to set the multiple communication applications as the target communication applications, allowing the multiple communication applications to call the communication intelligent tuning function; or, The processor is further configured to set the system application as the target communication application, allow the system application to call the communication intelligent tuning function, and prohibit the third-party application from calling the communication intelligent tuning function.
12. The electronic device according to any one of claims 7 to 11, characterized in that: The electronic device has multiple communication applications installed therein; the multiple communication applications include system applications and third-party applications; The display screen is used to display a setting interface; the setting interface includes multiple application options, the multiple application options correspond to the multiple communication applications one by one, and the application options are used to set the ability of the corresponding communication application to call the communication intelligent tuning function; The processor is also used to set the communication application selected by the user as the target communication application in response to the user's selection operation of the application option in the setting interface, and allow the communication application selected by the user to call the communication intelligent tuning function.
Citation Information
Patent Citations
Sounding method and mobile terminal
CN109361797A
Electronic device, sound enhancement method of electronic device and storage medium
CN112383655A