Volume adjustment methods and electronic devices

By constructing a hearing threshold test signal library and generating a minimum hearing threshold model, the problem of a single volume adjustment scheme for terminal devices is solved, enabling users to achieve personalized volume adjustment and clear perception of volume changes, improving the accuracy and convenience of volume adjustment, while protecting the reliability of acoustic devices.

CN116156041BActive Publication Date: 2026-05-26BEIJING HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING HONOR DEVICE CO LTD
Filing Date
2021-11-22
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing terminal device volume adjustment schemes are fixed and monotonous, failing to meet users' personalized needs. This results in users being unable to accurately perceive volume changes when adjusting the volume, and thus unable to adjust to the appropriate volume level.

Method used

By constructing a hearing threshold test signal library, a minimum hearing threshold model is generated. Test sound source segments are generated based on the user's historical music playback data and the hearing threshold test signal library. The user enters the adjusted volume level in the volume setting prompt box, and the electronic device adjusts the volume level according to the minimum hearing threshold model and the user-defined volume level, ensuring that the user can perceive a significant change every time the volume is adjusted.

Benefits of technology

This allows users to clearly perceive volume changes during volume adjustment, meeting personalized volume adjustment needs, improving the accuracy and convenience of volume adjustment, and protecting the reliability of acoustic components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156041B_ABST
    Figure CN116156041B_ABST
Patent Text Reader

Abstract

This application provides a volume adjustment method and an electronic device. The method includes: the electronic device displaying a volume setting prompt box in response to a user's first input to a volume setting control, wherein the volume setting prompt box includes a volume level number setting box; the electronic device, in response to the user's input of a first value in the volume level number setting box, after determining the first value as the volume level number, determining the volume increment of each volume level based on the minimum loudness difference threshold corresponding to the sound pressure level to which the volume level belongs, and then displaying a volume adjustment control matching the volume level number. The user can readjust the volume based on the adjusted volume adjustment control. When adjusting the volume based on the adjusted volume adjustment control, the user can perceive the volume change with their ear for each volume level adjustment, which not only improves the user experience but also makes it easier for the user to adjust to the target volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal devices, and more particularly to a volume adjustment method and an electronic device. Background Technology

[0002] Existing terminal devices use fixed volume increments; when a user adjusts the volume of an electronic device, the change in volume is the same for each increment. However, in practice, each user's sensitivity to volume is different. Some users may find that increasing the volume by two or even three increments yields no noticeable increase in sound, while others may experience a significant increase in volume even with just a one-level increase. Therefore, the current volume adjustment schemes in electronic devices are fixed and simplistic, failing to meet the personalized needs of users. Summary of the Invention

[0003] To address the aforementioned technical problems, this application provides a volume adjustment method and an electronic device. In this method, if a user is dissatisfied with the volume change during adjustment, they can touch the volume setting control to trigger a volume setting prompt box. The user can then input the total number of adjusted volume levels in the prompt box. The electronic device determines the volume increment for each volume level based on the minimum loudness difference threshold corresponding to the sound pressure level of that volume level and displays the adjusted volume control. This allows the user to perceive the volume change with each adjustment, facilitating adjustment to the desired volume and meeting personalized volume adjustment needs.

[0004] In a first aspect, this application provides an electronic device. The electronic device includes a memory and a processor. The processor is coupled to the memory. The memory stores program instructions, which, when executed by the processor, cause the electronic device to perform the following steps: When the electronic device receives a first input from a user to a volume setting control, such as a click or press, it displays a volume setting prompt box in response to the first input, wherein the volume setting prompt box includes a volume level quantity setting box; In response to the user inputting a first value in the volume level quantity setting box, the electronic device determines the first value as the volume level quantity. After determining the volume level quantity, the electronic device displays a volume adjustment control matching the volume level quantity, wherein the volume adjustment control contains N sub-segments, each sub-segment corresponding to a sound pressure level, each sub-segment containing at least two volume levels, the volume increment of each volume level being an integer multiple of the minimum loudness difference threshold of the corresponding sound pressure level, and the sum of the volume levels contained in the N sub-segments being the first value.

[0005] This electronic device determines the volume increment of each volume level based on the minimum loudness difference threshold corresponding to the sound pressure level to which the volume level belongs, and displays the adjusted volume control. This allows the user to perceive the volume change when adjusting the volume level, which not only makes it easier for the user to adjust to the desired volume, but also meets the user's personalized volume adjustment needs.

[0006] According to the first aspect, when the program instructions are executed by the processor, the electronic device performs the following steps: when the volume setting prompt box includes a target volume level input box, the electronic device, in response to the user's input of a second value in the target volume level input box, determines the second value as the target volume level. The user pre-sets the second value so that the electronic device can automatically locate the target volume level, eliminating the need for the user to manually adjust the cursor in the volume control, thus simplifying the operation.

[0007] According to the first aspect, or any implementation thereof, when the program instruction is executed by the processor, the electronic device performs the following steps: If the volume setting prompt box includes a target volume level input box, the electronic device responds to the user's input of a second value in the target volume level input box, determines the second value as the target volume level, and after the electronic device completes volume adjustment based on the first value, adjusts the cursor in the volume adjustment control to the target volume level. This method, where the user pre-sets the second value, and the electronic device completes volume adjustment based on the first value and then automatically adjusts the volume level based on the second value, accurately locates the target volume level without requiring the user to manually adjust the cursor in the volume adjustment control. It is convenient to operate and has high adjustment accuracy.

[0008] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: Based on a pre-generated minimum hearing threshold model, the electronic device determines the minimum loudness difference threshold of the sound pressure level for each sub-segment of the volume adjustment control to be displayed, wherein the minimum hearing threshold model includes the correspondence between sound pressure level and minimum loudness difference threshold. This method of determining the correspondence between sound pressure level and minimum loudness difference threshold based on a pre-generated minimum hearing threshold model yields more accurate results and is faster.

[0009] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: The electronic device constructs a hearing threshold test signal library based on the user's historical music playback data; based on the hearing threshold test signal library, it generates a first preset number of test sound source segments, wherein each set of sound source segments includes a second preset number of signal segments; in response to the user's request to initiate a hearing threshold test, it displays a hearing threshold test interface; based on the user's input on the hearing threshold test interface, it obtains test data, wherein the test data includes: the minimum loudness difference threshold corresponding to each sound pressure level generated during the testing of each set of sound source segments selected by the user; based on the test data, it generates the user's minimum hearing threshold model. This method of constructing a hearing threshold test signal library based on the user's historical music playback data, generating multiple sets of sound source segments based on the hearing threshold test signal library, and conducting hearing threshold tests on the user through these sound source segments results in a minimum hearing threshold model that highly matches the user's physiological and psychological characteristics, reflecting the user's personalized differences.

[0010] According to the first aspect, or any implementation of the first aspect above, the hearing threshold test interface includes: a test sound source segment selection item, a test sound pressure range setting item, a play switch, a gain adjustment bar, and a determine difference button. When the program instruction is executed by the processor, the electronic device performs the following steps: The electronic device responds to the user's second input to the test sound pressure range setting item, such as inputting a value or selecting a value, and determines the test sound pressure range, which includes multiple sound pressure levels to be tested; the electronic device responds to the user's third input to the target test sound source segment selection item, such as clicking or long-pressing, and determines the sound source segment group selected by the user; when the user turns on the play switch, the selected sound source segment group is played in a loop; during the playback of the sound source segment group, the user's adjustment operation on the gain adjustment bar is detected; when the user's fourth input is received to the determine difference button, the scale value indicated by the cursor in the gain adjustment bar is determined as the minimum loudness difference threshold of the current sound pressure level to be tested. This hearing threshold test method has a simple test interface operation and is easy for users to operate.

[0011] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: For each sound pressure level, the electronic device extracts the minimum loudness difference threshold corresponding to the sound pressure level obtained from the test data of each set of sound source segments selected by the user; the weighted average of the minimum loudness difference thresholds corresponding to each sound pressure level is determined as the minimum loudness difference threshold corresponding to the sound pressure level; and a minimum hearing threshold model for the user is generated based on the minimum loudness difference threshold corresponding to each sound pressure level. This method of generating a minimum hearing threshold model based on test data has low computational cost and the constructed minimum hearing threshold model has high reliability.

[0012] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: the electronic device clusters each signal segment in the hearing threshold test signal library to obtain a set of signal segments contained in each class; extracts signal segments that meet preset conditions from the set of signal segments contained in each class; and generates a first preset number of test sound source segments based on the extracted signal segments. Generating each group of test sound source segments by selecting the highest-ranked signal segments after clustering is more reliable and representative.

[0013] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: the electronic device performs loudness normalization processing on each signal segment in the hearing threshold test signal library; the electronic device extracts time-domain features and frequency-domain features from the normalized signal segments; based on the time-domain and frequency-domain features of each normalized signal segment, the electronic device clusters the unnormalized signal segments to obtain a set of signal segments contained in each cluster. This method of clustering signal segments based on time-domain and frequency-domain features results in signal segments in the clustered signal segment sets that have more commonalities and more obvious features.

[0014] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: the electronic device detects the temperature of the acoustic coil of the electronic device through an intelligent power amplifier; if the temperature is greater than a first temperature threshold, the electronic device determines whether the temperature is greater than a second temperature threshold; if the temperature is greater than the second temperature threshold, the electronic device reduces the amplitude of the output audio signal according to a preset coefficient. The first temperature threshold is the temperature of the acoustic coil when the volume control (i.e., the system default volume control) is adjusted to maximum volume without relying on the user's minimum hearing threshold model; the second temperature threshold is greater than the first temperature threshold. The preset coefficient can be flexibly set by the user or those skilled in the art, for example, set to 0.7, 0.75, or 0.8. This method of reducing the amplitude of the output audio signal when the acoustic coil temperature exceeds the second temperature threshold can prevent serious damage to the acoustic device caused by excessive volume, thus protecting the reliability of the acoustic device in the electronic device.

[0015] According to the first aspect, or any implementation of the first aspect above, when the program instructions are executed by the processor, the electronic device performs the following steps: when the temperature is between a first temperature threshold and a second temperature threshold, the electronic device does not reduce the amplitude of the output audio signal. When the temperature of the acoustic device coil is between the first temperature threshold and the second temperature threshold, the probability of damage to the acoustic device is low, or even if damage occurs, the degree of damage is small. To ensure that the user perceives a high volume, the acoustic device can be sacrificed to a certain extent.

[0016] According to the first aspect, or any implementation of the first aspect above, the setting range of the first value is 5 to 200. Setting the setting range of the first value to 5 to 200 provides users with a large setting space, making it convenient for users to make personalized settings.

[0017] According to the first aspect, or any implementation of the first aspect above, the first preset quantity is 5, the second preset quantity range is 3 to 6, and the length of each signal segment is 3 to 5 seconds. This parameter setting method can ensure that the entire hearing threshold test is completed within 10 minutes, preventing consumers from feeling annoyed and ensuring the reliability of the test results.

[0018] Secondly, this application provides a volume adjustment method, wherein the method includes: an electronic device receiving a first input from a user to a volume setting control; the electronic device displaying a volume setting prompt box in response to the first input, wherein the volume setting prompt box includes a volume level quantity setting box; the electronic device determining the first value as the volume level quantity in response to the user inputting a first value in the volume level quantity setting box; the electronic device displaying a volume adjustment control matching the volume level quantity, wherein the volume adjustment control includes N sub-segments, each sub-segment corresponding to a sound pressure level, each sub-segment containing at least two volume levels, the volume increment of the volume level being an integer multiple of the minimum loudness difference threshold of the corresponding sound pressure level, and the sum of the volume levels contained in the N sub-segments being the first value.

[0019] According to the second aspect, when the volume setting prompt box includes a target volume level input box, the method further includes: the electronic device, in response to the user's input of a second value in the target volume level input box, determining the second value as the target volume level.

[0020] According to the second aspect, or any implementation of the second aspect above, the volume setting prompt box includes a target volume level input box, and the method further includes: the electronic device adjusting the cursor in the volume adjustment control to the target volume level.

[0021] According to the second aspect, or any implementation of the second aspect above, after the electronic device responds to the user's operation of inputting a first value in the volume level quantity setting box and determines the first value as the volume level quantity, it further includes: the electronic device determines the minimum loudness difference threshold of the sound pressure level corresponding to each sub-segment in the volume adjustment control to be displayed based on the minimum hearing threshold model generated by pre-testing. The minimum hearing threshold model includes the correspondence between the sound pressure level and the minimum loudness difference threshold.

[0022] According to the second aspect, or any implementation of the second aspect above, before the electronic device receives the user's first input to the volume setting control, the method further includes: the electronic device constructing a hearing threshold test signal library based on the user's historical music playback data; the electronic device generating a first preset number of test sound source segments based on the hearing threshold test signal library, wherein each set of sound source segments includes a second preset number of signal segments; the electronic device displaying a hearing threshold test interface in response to the user's request to start the hearing threshold test; the electronic device obtaining test data based on the user's input on the hearing threshold test interface, wherein the test data includes: the minimum loudness difference threshold corresponding to each sound pressure level generated during the testing of each set of sound source segments selected by the user; and the electronic device generating the user's minimum hearing threshold model based on the test data.

[0023] According to the second aspect, or any implementation of the second aspect above, the hearing threshold test interface includes: a test sound source segment selection item, a test sound pressure range setting item, a play switch, a gain adjustment bar, and a determine difference button; the electronic device obtains test data based on the user's input on the hearing threshold test interface, including: the electronic device responding to the user's second input on the test sound pressure range setting item, determining a test sound pressure range, the test sound pressure range including multiple sound pressure levels to be tested; the electronic device responding to the user's third input on the target test sound source segment selection item, determining the sound source segment group selected by the user; the electronic device, upon receiving the user turning on the play switch, looping the sound source segment group selected by the user; the electronic device detecting the user's adjustment operation on the gain adjustment bar during the playback of the sound source segment group; and the electronic device, upon receiving the user's fourth input on the determine difference button, determining the scale value indicated by the cursor in the gain adjustment bar as the minimum loudness difference threshold of the current sound pressure level to be tested.

[0024] According to the second aspect, or any implementation of the second aspect above, the electronic device generates a minimum hearing threshold model for the user based on test data, including: for each sound pressure level, the electronic device extracts the minimum loudness difference threshold corresponding to the sound pressure level obtained from testing each set of sound source segments selected by the user from the test data; the electronic device determines the weighted average of each minimum loudness difference threshold corresponding to the sound pressure level as the minimum loudness difference threshold corresponding to the sound pressure level; the electronic device generates a minimum hearing threshold model for the user based on the minimum loudness difference threshold corresponding to each sound pressure level.

[0025] According to the second aspect, or any implementation of the second aspect above, the electronic device generates a first preset number of test sound source segments based on the hearing threshold test signal library, including: the electronic device clusters each signal segment in the hearing threshold test signal library to obtain a set of signal segments contained in each class; the electronic device extracts signal segments that meet preset conditions from the set of signal segments contained in each class; and the electronic device generates a first preset number of test sound source segments based on the extracted signal segments.

[0026] According to the second aspect, or any implementation of the second aspect above, the electronic device clusters each signal segment in the hearing threshold test signal library to obtain a set of signal segments contained in each class, including: the electronic device performs loudness normalization processing on each signal segment in the hearing threshold test signal library; extracts time-domain features and frequency-domain features from the normalized signal segments; and clusters each signal segment before normalization based on the time-domain features and frequency-domain features of each normalized signal segment to obtain a set of signal segments contained in each class.

[0027] According to the second aspect, or any implementation of the second aspect above, the method further includes: the electronic device detecting the temperature of the acoustic device coil of the electronic device through an intelligent power amplifier in the electronic device; the electronic device determining whether the temperature is greater than a second temperature threshold when the temperature is greater than a first temperature threshold; and reducing the amplitude of the output audio signal according to a preset coefficient when the temperature is greater than the second temperature threshold.

[0028] According to the second aspect, or any implementation of the second aspect above, the method further includes: the electronic device not reducing the amplitude of the output audio signal when the temperature is between a first temperature threshold and a second temperature threshold.

[0029] According to the second aspect, or any implementation of the second aspect above, the first value is set in the range of 5 to 200.

[0030] According to the second aspect, or any implementation of the second aspect above, the first preset quantity is 5, the second preset quantity ranges from 3 to 6, and the length of each signal segment is 3 to 5 seconds.

[0031] The second aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the second aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0032] Thirdly, this application provides a computer-readable medium for storing a computer program including instructions for performing the methods in the second aspect or any possible implementation thereof.

[0033] Fourthly, this application provides a computer program including instructions for performing the methods in the second aspect or any possible implementation thereof.

[0034] Fifthly, this application provides a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals. Attached Figure Description

[0035] Figure 1 A schematic diagram of the hardware structure of an electronic device as an example;

[0036] Figure 2 A schematic diagram of the software structure of an electronic device as an example;

[0037] Figure 3 This is a schematic diagram illustrating the audio source segment generation process as an example.

[0038] Figure 4 This is a schematic diagram of an exemplary hearing threshold test interface;

[0039] Figure 5 This is a schematic diagram of a minimum hearing threshold model, as exemplarily shown.

[0040] Figure 6 This is a schematic diagram illustrating the steps of an exemplary volume adjustment method;

[0041] Figures 7a-7c This is a schematic diagram of the volume level adjustment process interface as an example.

[0042] Figure 8 This is a schematic flowchart illustrating the steps of a method for ensuring the reliability of acoustic devices in an electronic device. Detailed Implementation

[0043] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

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

[0045] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0046] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0047] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0048] Figure 1 A schematic diagram of the structure of the electronic device 100 is shown. It should be understood that... Figure 1 The electronic device 100 shown is merely an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0049] 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, antenna 1, 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, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0050] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0051] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0052] The DSP can include a Smart PA hardware circuit, a Smart PA algorithm module, and an audio algorithm module. The Smart PA, also known as an intelligent power amplifier, can detect the coil temperature of acoustic components and reduce the amplitude of the output audio signal. The audio algorithm module pre-constructs a hearing threshold test signal library based on the user's historical music playback data. Based on this library, it generates a first preset number of test audio source segments for subsequent hearing threshold monitoring tests. The audio algorithm generates a minimum hearing threshold model based on the test data obtained from the user's hearing threshold test. This model includes the minimum loudness difference threshold corresponding to each sound level.

[0053] When adjusting the volume, the application processor generates a volume adjustment command based on the user's operation. This command can carry the number of volume levels to be adjusted, which is the first value set by the user. The application processor sends the volume adjustment command to the audio algorithm module. The audio algorithm module responds to the command by determining the volume corresponding to each level. The volume increment for each level is a multiple of the minimum loudness difference threshold of the corresponding sound pressure level. This ensures that the user can perceive a change in volume with each adjustment.

[0054] The application processor displays the adjusted volume control and adjusts the volume to the target volume level based on the user-preset second value (i.e., the target volume level after adjustment) or the user's adjustment of the cursor in the volume control. After adjusting to the target volume level, the Smart PA hardware circuit polls and detects the coil temperature of the acoustic device at a first preset frequency. For each detected coil temperature, the Smart PA algorithm module determines whether to reduce the amplitude of the output audio signal. If it determines to reduce the amplitude of the output audio signal, the Smart PA hardware circuit reduces the amplitude of the output audio signal by a reduction factor that can be set to 0.7, 0.8, etc.

[0055] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0056] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In this embodiment, the application processor of the audio module 170 is set in the processor 110 as an example. After the volume is adjusted to the target volume level by the application processor, the audio signal is output through the audio module such as the speaker 170A, headphone jack 170D, or receiver 170B.

[0057] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include integrated circuit interfaces, integrated circuit built-in audio interfaces, pulse code modulation interfaces, universal asynchronous transceiver interfaces, mobile industry processor interfaces, universal input / output interfaces, user identity module interfaces, and / or universal serial bus interfaces, etc.

[0059] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0060] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0061] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0062] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0063] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0064] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.

[0065] The wireless communication module 160 can provide a wireless communication solution for use on the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via the antenna 2.

[0066] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0067] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0068] Display screen 194 is used to display interfaces, images, videos, etc.

[0069] Electronic device 100 can perform shooting functions through camera 193, video codec, GPU, display screen 194 and application processor.

[0070] The external storage 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 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0071] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.

[0072] The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function (such as sound playback, image playback, etc.). The data storage area may store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory, universal flash storage (UFS), etc.

[0073] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0074] The sensor module 180 can detect parameter information, and the sensor module 180 may include, but is not limited to, pressure sensors, touch sensors, etc.

[0075] A pressure sensor is used to sense pressure signals and converts them into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 100 may also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, when a touch operation with an intensity greater than or equal to a first pressure threshold is applied to the volume control, a command to increase or decrease the volume is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the volume setting control, a command to display the volume setting interface is executed.

[0076] A touch sensor, also known as a "touch panel," can be located on the display screen 194. The touch sensor and display screen 194 together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor may also be located on the surface of the electronic device 100, in a different position than the display screen 194.

[0077] Button 190 includes a power button, volume buttons, etc., wherein the volume buttons include a volume + button and a volume - button. Button 190 can be a mechanical button or a touch button. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100. For example, in this embodiment of the application, when electronic device 100 receives the user's first input to the volume setting control, electronic device 100 displays a volume setting prompt box, where the user can set the adjusted total volume level.

[0078] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0079] Figure 2 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0080] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0081] The application layer can include a series of application packages.

[0082] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and volume control. For example, the sensor application can realize the acquisition and transmission of scene recognition-related parameters in the embodiments of this application.

[0083] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0084] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0085] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0086] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0087] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0088] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0089] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0090] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0091] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0092] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0093] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0094] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), volume processing systems, etc.

[0095] The volume processing system is used to construct test audio clips based on the user's historical music playback data for the user to conduct hearing threshold tests; monitor the user's input during the hearing threshold test, obtain test data, and generate the user's minimum hearing threshold model based on the test data. During volume adjustment, the volume processing system is also used to adjust the number of volume levels and recalibrate the volume levels according to the minimum hearing threshold model.

[0096] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0097] Understandable, Figure 2 The components included in the system framework layer, system library, and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements.

[0098] Existing electronic devices use fixed volume levels, treating each individual without differentiation. However, due to differences in physiological and psychological characteristics, everyone's minimum volume perception threshold is different. Therefore, some consumers often encounter situations where increasing the volume by one notch is too loud, and decreasing it by one notch is too soft, making it impossible to adjust to a comfortable level. To address these issues in existing volume control methods, this embodiment first constructs a hearing threshold test signal library based on the user's historical music playback data. Then, typical sound source segments are selected from numerous hearing threshold test signals for user hearing threshold testing. The user then generates their minimum hearing threshold model based on the test data obtained from the hearing threshold test. If the user is dissatisfied with the volume change during adjustment, they can touch the volume setting control to trigger a volume setting prompt box. The user can then input the desired volume level in the prompt box. The electronic device combines the user-defined volume level and the user's minimum hearing threshold model to determine the most suitable volume adjustment scheme based on the user's physiological and psychological habits, and adjusts the volume of each level in the volume control according to the determined scheme. Users can readjust the volume using the adjusted volume control. During adjustment, users can perceive subtle changes in the loudness of each volume level, making it easier for them to adjust to the desired volume.

[0099] It should be noted that the volume adjustment method involved in the embodiments of this application can be triggered in any scenario. The volume adjustment scenarios in the embodiments of this application include, but are not limited to: scenarios where sound signals are output through a speaker, scenarios where sound signals are output through headphones, and scenarios where sound signals are output through a handset or receiver.

[0100] The volume adjustment scheme of this application allows users to customize and reset the number of volume levels when they are dissatisfied with the current volume adjustment. The system calibrates the volume increment of each volume level using a pre-tested model of the user's minimum hearing threshold and displays the adjusted volume control. Users can switch volume levels by adjusting the cursor in the volume control. Each adjustment is perceptible to the user without feeling an excessively large increase in volume. Therefore, users will not encounter the problem of increasing the volume too much or decreasing it too little, making it easy to adjust to a comfortable volume. Furthermore, the volume adjustment method provided in this application can also protect the acoustic components of electronic devices containing Smart-PA (intelligent power amplifiers), reducing the damage rate of these components.

[0101] The volume adjustment method provided in this application mainly includes three stages. The first stage is: performing a hearing threshold test on the user and generating a minimum hearing threshold model for the user based on the test data. The second stage is: after the user triggers the volume adjustment process, based on the user-defined number of volume levels and the user's minimum hearing threshold model, readjusting the volume corresponding to each volume level, and displaying volume adjustment controls matching the number of volume levels for the user to readjust the output volume. The third stage is: when the user locates the target volume level based on the adjusted volume adjustment controls, the acoustic components of the electronic device are protected for reliability. The relevant processes of the above three stages are described in detail below with reference to specific embodiments.

[0102] The following is combined Figures 3 to 5 The relevant procedures for the first phase will be explained.

[0103] The volume adjustment method provided in this application can adaptively adjust the volume increment based on physiological and psychological habits, so that the user can perceive a change in loudness with each volume adjustment. To achieve this, it is necessary to conduct a hearing threshold test on the user and generate a minimum hearing threshold model for the user based on the test data obtained from the hearing threshold test.

[0104] The minimum hearing threshold model includes the minimum loudness threshold corresponding to each sound pressure level. For example, a sound pressure level of 40 dB corresponds to a minimum loudness threshold of 0.5 dB, meaning that at a sound pressure level of 40 dB, a change in loudness greater than or equal to 0.5 dB is required for the user to perceive a change in loudness. To generate the user's minimum hearing threshold model, this application provides a terminal-based personalized binaural loudness threshold measurement scheme, which is described below in conjunction with... Figures 3 to 4 The measurement scheme is explained.

[0105] Personalized binaural loudness threshold measurement is also known as hearing threshold testing. The key to hearing threshold testing is the sound source segment used for testing. Therefore, before conducting hearing threshold testing, it is necessary to first generate the sound source segment for testing, then guide the user to conduct the hearing threshold test, and finally analyze the test data of the hearing threshold test to generate the user's minimum hearing threshold model.

[0106] Figure 3 This is an illustrative diagram illustrating the process of generating a sound source segment, as shown below. Figure 3 As shown, the process of generating audio source segments includes the following steps:

[0107] S301: Construct a hearing threshold test signal library.

[0108] One feasible way to construct a hearing threshold test signal library is to build the hearing threshold test signal library based on the user's historical music playback data.

[0109] Because different users have different physiological and psychological characteristics, their perceived minimum threshold for the same or different signals also varies. The differences in signals are mainly reflected in different frequency and amplitude distributions. Furthermore, since the hearing threshold testing scheme provided in this application is used among electronic device users, it is difficult to have users undergo extensive professional testing like in hospitals. Therefore, the inventors of this application have creatively constructed a hearing threshold testing signal library, generated multiple sets of sound source segments based on this library, and used these sound source segments to conduct hearing threshold tests on users, ultimately generating a minimum hearing threshold model that matches the user's physiological and psychological characteristics.

[0110] When building the hearing threshold test signal library, the system uses big data statistics to reflect what kind of audio users listen to most of the time, and then gradually expands the user's listening big data as the hearing threshold test signal library.

[0111] After creating the hearing threshold test signal library, the system generates a first preset number of test sound source segments based on the library. The process for generating test sound source segments based on the hearing threshold test signal library is detailed in S302 to S306.

[0112] The system can create a first preset number of sound source segments based on a hearing threshold test signal library. Each set of sound source segments includes a second preset number of signal segments, and the length of each signal segment is a third preset number of seconds. The specific values ​​of the first, second, and third preset numbers can be flexibly set by those skilled in the art, and no specific limitations are imposed on them in this embodiment.

[0113] For example, the first preset quantity can be set to 5 to 10 groups, the second preset quantity can be set to 3 to 6, and the third preset quantity can be set to 3 to 5 seconds. This numerical setting method can ensure that the entire hearing threshold test is completed within 10 minutes, without causing users to feel annoyed, and the test results are reliable.

[0114] S302: Loudness calculation.

[0115] In this step, the loudness of the signal segments in the hearing threshold test signal library is calculated to facilitate subsequent loudness normalization processing of the signal segments.

[0116] S303: Loudness normalization.

[0117] To ensure the accuracy of cluster analysis, loudness normalization can be performed on each signal segment in the hearing threshold test signal library. The normalized loudness value can be -14LUFS, where LUFS is the loudness unit.

[0118] S304: Extraction of time-domain and frequency-domain features.

[0119] Time-domain and frequency-domain features are extracted from the normalized signal segment. The extracted time-domain and frequency-domain features are shown in Table 1:

[0120] Table 1: Time and Frequency Domain Characteristics

[0121] Time Domain Short-time energy Calculate the sum of squares of the amplitudes of the sampled points within each frame of the signal. Time Domain Zero crossing rate The number of times the signal waveform crosses the zero level on the horizontal axis per unit time Time Domain Energy entropy Used to describe the abrupt change in the energy of an audio signal over time. Frequency domain Linear prediction coefficients Mainly distinguishing between foreground and background sound, or whether there is shouting. Frequency domain Log-linear prediction coefficients The main distinguishing features between vocal and non-vocal sounds Frequency domain Pitch Fundamental frequency characteristics of speech or music Frequency domain Sub-band energy The main focus is on spectral energy feature analysis of non-speech signals.

[0122] S305: Cluster analysis.

[0123] Based on the time-domain and frequency-domain features of each signal segment after normalization, the signal segments before normalization are clustered to obtain the set of signal segments contained in each class.

[0124] S302 to S305 represent a feasible implementation method for clustering each signal segment in the hearing threshold test signal library to obtain the set of signal segments contained in each class.

[0125] S306: Generate a test audio source segment.

[0126] After clustering the signal segments in the hearing threshold test signal library to obtain the set of signal segments contained in each class, it is necessary to extract the signal segments that meet the preset conditions from the set of signal segments contained in each class; based on the extracted signal segments, a first preset number of test sound source segments are generated.

[0127] The preset conditions can be set to randomly extract signal segments from the signal segment set, or to extract the top X signal segments from the category.

[0128] After the first preset number of test audio clips are generated, the user can perform a hearing threshold test based on the generated test audio clips, provided that the hearing threshold test activation timing is met. The hearing threshold test activation timing may include, but is not limited to: determining that the hearing threshold test activation timing is met when the user triggers a hearing threshold test instruction in the settings interface (e.g., receiving the selection of the "Hearing Threshold Test" option); determining that the hearing threshold test activation timing is met when the electronic device is detected to have completed power-on, and outputting a first guidance prompt message to guide the user to perform the hearing threshold test; determining that the hearing threshold test activation timing is met when the user is detected using an audio / video application, and outputting a second guidance prompt message to guide the user to perform the hearing threshold test.

[0129] The first and second guidance prompts can be the same or different, as long as they can ensure that the user is aware of the existence of the hearing threshold test function through the guidance prompts. In this embodiment, the specific content of the guidance prompts is not limited.

[0130] When a user wants to perform a hearing threshold test, they can click the preset button in the settings interface to submit a request to the system to start the hearing threshold test. The system will then respond to the user's request and display the hearing threshold test interface. Figure 4 This is an illustrative diagram of a hearing threshold test interface. The system monitors the user's hearing threshold test process based on the interface and a test audio clip, obtains test data, and generates the user's minimum hearing threshold model based on the test data.

[0131] The test data includes the minimum loudness difference threshold corresponding to each sound pressure level generated during the testing of each set of sound source segments selected by the user.

[0132] Sound pressure level (SPL) is a logarithmic measure of effective sound pressure relative to a reference value, expressed in decibels (dB). The human hearing threshold for 1 kHz is 20 μPa, which is typically used as the reference value for SPL. For example, the faintest sound audible to the human ear corresponds to a SPL of 0 dB, the sound of a pin dropping corresponds to 10 dB, the ticking of a watch corresponds to 20 dB, a quiet office corresponds to 40 dB, and normal conversation corresponds to 50 dB, etc.

[0133] A schematic diagram of an exemplary hearing threshold test interface is shown below. Figure 4 As shown, the hearing threshold test interface includes: a test sound source segment selection item 401, a test sound pressure level range setting item 402, a play switch 403, a gain adjustment bar 404, and a confirm difference button 405. After the system displays the hearing threshold test interface, the user can set the test sound pressure level range value by performing a second input on the test sound pressure level range setting item 402. The system responds to the user's second input on the test sound pressure level range setting item and determines the test sound pressure level range. The system first initializes the sound pressure level range and generates test sequences of different sound pressure levels based on the test sound source segment and the sound pressure level range. The test sound pressure level range includes multiple sound pressure levels to be tested; the interval between each sound pressure level can be set to 5dB. Figure 4 As shown in the image, the current sound pressure level prompt box displays 35dB, indicating that the current sound pressure level being tested is 35dB. After completing the current sound pressure level test, when the user manually clicks the next level button 406, the current sound pressure level prompt box will display 40dB.

[0134] The user selects any test audio source segment selection item 401. In response to the user's third input on the target test audio source segment selection item, the system determines the audio source segment group selected by the user. After selecting the audio source segment group, the user can turn on the playback switch 403. When the system receives the user's response to turn on the playback switch 403, it will play the audio source segment group selected by the user in a loop. During the playback of the audio source segment group, the system detects the user's adjustment operation on the gain adjustment bar 404. When the system receives the user's fourth input on the determine difference button 405, it determines the scale value indicated by the cursor in the gain adjustment bar as the minimum loudness difference threshold of the current sound pressure level to be tested.

[0135] In actual implementation, when the user clicks the play switch 403, the system will loop the test sequence of the current sound pressure level for this test group. During playback, the user can adjust the gain adjustment bar 404 on the right. The gain adjustment bar 404 includes 5 scales [0.5dB, 1dB, 1.5dB, 2dB, 3dB] until the user perceives a change in loudness. Once the user stops adjusting the gain adjustment bar 404, clicking the confirm difference button 405 indicates that the loudness change has been perceived. The system then sets the current scale of the cursor in the gain adjustment bar 404 as the minimum loudness difference threshold β corresponding to the current sound pressure level. ij , where i represents the i-th test group and j represents the j-th sound pressure level.

[0136] After completing the test of the minimum loudness difference threshold for a sound pressure level based on a set of audio source segments, the user can select the next step button 406. The user then repeats the above steps of clicking the play switch 403, adjusting the gain adjustment bar 404, and clicking the confirm difference button 405. The system can then determine the minimum loudness difference threshold corresponding to the adjusted sound pressure level. This process is repeated until the user selects another set of audio source segments to complete the test of the minimum loudness difference threshold for each sound pressure level based on that set of audio source segments. The user can select at least one set of audio source segments for this hearing threshold test until the system receives a user-triggered test generation button 407, at which point test data is generated.

[0137] It should be noted that when conducting a hearing threshold test, users may select only one set of sound source segments for testing, or they may select two, three, or all sets of sound source segments for this hearing threshold test. In this embodiment of the application, there is no specific limitation on the number of sound source segment groups selected by the user.

[0138] A feasible way to generate a user's minimum hearing threshold model based on test data is as follows:

[0139] For each sound pressure level, the minimum loudness difference threshold corresponding to that sound pressure level is extracted from the test data of each set of sound source segments selected by the user; the weighted mean of each minimum loudness difference threshold corresponding to that sound pressure level is determined as the minimum loudness difference threshold corresponding to that sound pressure level; finally, based on the minimum loudness difference threshold corresponding to each sound pressure level, the user's minimum hearing threshold model is generated.

[0140] Specifically, the minimum loudness difference threshold corresponding to a single sound pressure level can be determined using the following formula:

[0141]

[0142] α ij =k ij ×S ij

[0143] Where i represents the sound source segment used in the i-th test group, j represents the j-th sound pressure level, and α ij β is a weighting factor, related to the different sound pressure levels of different test sequences. ij S represents the minimum loudness difference threshold of the j-th level sound pressure level in the i-th group. ij β represents the sound pressure level of the j-th level in the i-th group. j k represents the minimum loudness difference threshold for the j-th sound pressure level. ij Only determine α ij One parameter, which is related to the different sound pressure levels of different test sequences, can be flexibly set by those skilled in the art, and no specific restrictions are imposed on it in this embodiment. After determining the minimum loudness difference threshold corresponding to each sound pressure level through the above formula, the user's minimum hearing threshold model can be generated based on the minimum loudness difference threshold corresponding to each sound pressure level. Figure 5 The diagram illustrates an exemplary minimum hearing threshold model, which is a sound pressure level curve representing the relationship between sound pressure level and the minimum loudness difference threshold. The horizontal axis represents sound pressure level, with adjacent sound pressure levels spaced 5 dB apart, and the vertical axis represents the minimum loudness difference threshold, in dB. The minimum hearing threshold model reveals the minimum loudness difference threshold corresponding to each sound pressure level. By determining this correspondence, the external sound pressure level at a given frequency (S) can be determined. ij At that time, how much should the volume change be at the next level to give the user a sense of difference in hearing?

[0144] Reference Figure 5Taking a sound pressure level (SPL) of 50 dB as an example, the minimum loudness difference threshold corresponding to this SPL is 1 dB. When the external speaker SPL is 50 dB, it can be determined that the user needs to change the volume by at least 1 dB for the next volume level to be perceived by the user. After generating a minimum hearing threshold model for the user based on the hearing threshold test, the volume level can be set based on this generated minimum hearing threshold model during subsequent volume adjustments. The adjusted volume level ensures that the user can perceive the volume change every time they adjust it.

[0145] Continue to refer to Figure 5 ,based on Figure 5 After setting the volume level in the minimum hearing threshold model shown, it is assumed that the volume adjustment control contains 16 volume levels. Among them, volume levels 1-5 correspond to the first sound pressure level of 30 dB, volume levels 6-10 correspond to the second sound pressure level of 35 dB, volume levels 11-13 correspond to the third sound pressure level of 40 dB, and volume levels 14-16 correspond to the fourth sound pressure level of 45 dB. The minimum loudness difference threshold for the first sound pressure level is 0.5 dB, the minimum loudness difference threshold for the second sound pressure level is 0.5 dB, the minimum loudness difference threshold for the third sound pressure level is 1 dB, and the minimum loudness difference threshold for the fourth sound pressure level is 1 dB. The volume increment of each volume level in the volume control is a multiple of 0.5 dB for levels 1-5, a multiple of 0.5 dB for levels 6-10, a multiple of 1 dB for levels 11-13, and a multiple of 1 dB for levels 14-16.

[0146] It should be noted that the volume increments of the volume levels contained in the same sound pressure level can be the same or different, but they are all integer multiples of the minimum loudness difference threshold corresponding to the sound pressure level.

[0147] The following is combined Figure 6 Figure 7 illustrates the relevant process for the second stage. For example... Figure 6 As shown, the volume adjustment method of this application embodiment includes the following steps:

[0148] S601: In response to a user setting a volume level, determine the adjusted volume level.

[0149] The execution subject of this application embodiment can be an electronic device. During the process of the electronic device outputting audio signals, if the user is not satisfied with the volume output by the electronic device, the user can customize the number of volume levels and trigger the electronic device to execute the volume adjustment related process.

[0150] A schematic diagram of an exemplary volume level setting process interface is shown below. Figures 7a-7b As shown, where, Figure 7a A schematic diagram of the interface before the user sets the volume level. Figure 7bThis is a schematic diagram of an interface that includes a volume level data settings box. (Example) Figure 7a As shown, during the output of audio signals by the electronic device, the user can adjust the output volume by pressing the "Volume +" and "Volume -" buttons 701. If the user is not satisfied with the adjusted output volume, they can perform a first input on the volume setting control 702. The electronic device receives the user's first input on the volume setting control 702 and displays a volume setting prompt box. The user can enter a custom number of volume levels, i.e., a first value, in the volume setting prompt box. More preferably, the user can also enter the target volume level, i.e., a second value. The first input can include, but is not limited to, single-click, double-click, swipe, or long-press operations. The range of the first value can be set by those skilled in the art according to actual needs. The setting range of the first value can be 5 to 200, that is, the minimum volume level that the user can set is 5, and the maximum volume level is 200.

[0151] An exemplary volume setting prompt box is as follows: Figure 7b As shown in 703, the volume setting prompt box includes: a volume level quantity setting box 7031, which includes a first value input area, an increase button, and a decrease button. The increase and decrease buttons allow adjustment of the first value within the first value input area. In actual implementation, the user can directly input the first value in the first value input area, which can also display a default value, such as 15. The user can then increase or decrease the value based on the default value by touching the increase or decrease button, and the adjusted first value is displayed in the first value input box.

[0152] In an optional embodiment, the volume setting prompt box further includes a target volume level input box 7032. The target volume level input box 7032 includes a second value input area, an increase button, and a decrease button. The increase and decrease buttons allow adjustment of the second value within the second value input area. After setting the first value, the user can also input a second value in the target volume level input box of the volume setting prompt box. In response to the user's input of the second value, the electronic device determines the second value as the target volume level. After adjusting the volume based on the first value, the cursor in the volume adjustment control is adjusted to the target volume level. This method of pre-setting the second value eliminates the need for the user to manually adjust the cursor in the volume adjustment control to accurately locate the target volume level, offering convenient operation and high adjustment accuracy.

[0153] like Figure 7b As shown, the first input value is 16 and the second input value is 6. After the electronic device readjusts the volume level, there are a total of 16 volume levels. The electronic device automatically adjusts the volume to the 6th volume level.

[0154] After determining the number of adjusted volume levels, the volume corresponding to each volume level needs to be determined based on the user's minimum hearing threshold model generated in the pre-test. For the specific process of determining the volume corresponding to each volume level, please refer to S302 to S303.

[0155] S602: Determine the minimum loudness difference threshold for each sound pressure level based on the minimum hearing threshold model generated by pre-testing.

[0156] The minimum hearing threshold model includes the correspondence between each sound pressure level and the minimum loudness difference threshold.

[0157] like Figure 5 As shown, the minimum hearing threshold model includes the correspondence between multiple sound pressure levels and minimum loudness difference thresholds. For each sound pressure level, a user can only perceive a change in sound loudness if the change exceeds the minimum loudness difference threshold.

[0158] S603: Based on the minimum loudness difference threshold of each sound pressure level, calibrate the volume of each volume level.

[0159] Each sound pressure level corresponds to multiple volume levels. The volume increment of each volume level is N times the minimum loudness difference threshold of that sound pressure level, where N is an integer greater than or equal to 1. The minimum loudness difference threshold of the sound pressure level can also be regarded as the minimum loudness difference threshold of the volume levels contained in that sound pressure level.

[0160] Reference Figure 5 As shown, taking the volume levels between sound pressure levels 40 / dB and 45 / dB as an example, the volume increment of the vector volume level is N times the minimum loudness difference threshold of 1dB corresponding to sound pressure level 40 / dB. If 5 volume levels are set between two sound pressure levels, the volume increment of each volume level is 1dB; if 1 volume level is set between two sound pressure levels, the volume increment of each volume level is 5dB.

[0161] S604: Displays volume control controls that match the number of volume levels.

[0162] The volume control includes a cursor and a volume adjustment progress bar. The cursor allows adjustment of the first volume level within the volume adjustment progress bar. For example, if the first value is 10, the volume adjustment progress bar can contain 10 volume levels. Users can adjust the volume of the output audio signal by adjusting the cursor in the volume control.

[0163] The volume adjustment control contains N sub-segments, each sub-segment corresponding to a sound pressure level. Each sub-segment contains at least two volume levels. The volume increment of each volume level is an integer multiple of the minimum loudness difference threshold of the corresponding sound pressure level. The sum of the volume levels contained in the N sub-segments is the first value.

[0164] like Figure 7b As shown, when the user sets the first value to 16 and the second value to 6, continue to refer to... Figure 5 ,based on Figure 5 The minimum hearing threshold model shown in the image, after setting the volume level, corresponds to a volume control as follows: Figure 7c As shown, the volume control comprises four sub-segments. The portion from the bottom of the volume control to the indicated dividing line 704 is considered the first sub-segment; the portion from the indicated dividing point 704 to the indicated dividing line 705 is considered the second sub-segment; the portion from the indicated dividing line 705 to the indicated dividing line 706 is considered the third sub-segment; and the portion from the indicated dividing line 706 to the top of the volume control is considered the fourth sub-segment. It should be noted that the indicated dividing lines are only for illustrating that the volume control contains multiple segments; in actual display, these indicated dividing lines may not be shown.

[0165] The first sub-segment corresponds to the first sound pressure level of 30 dB, and contains volume levels 1-5; the second sub-segment corresponds to the second sound pressure level of 35 dB, and contains volume levels 6-10; the third sub-segment corresponds to the third sound pressure level of 40 dB, and contains volume levels 11-13; the fourth sub-segment corresponds to the fourth sound pressure level of 45 dB, and contains volume levels 14-16.

[0166] like Figure 5 As shown, the minimum loudness difference threshold for the first sound pressure level (SPL) of 30 dB is 0.5 dB, for the second SPL of 35 dB it is 0.5 dB, for the third SPL of 40 dB it is 1 dB, and for the fourth SPL of 45 dB it is 1 dB. Therefore, the volume increment for each volume level in the volume control is a multiple of 0.5 dB for levels 1-5, a multiple of 0.5 dB for levels 6-10, a multiple of 1 dB for levels 11-13, and a multiple of 1 dB for levels 14-16.

[0167] S605: In response to the user's selection of a target volume level, adjust to the target volume level.

[0168] This step illustrates the example of the user manually adjusting the cursor to the target volume level. In actual implementation, it can also be done as follows: Figure 7b As shown, when a second value is entered in the second value input area of ​​the target volume level input box 7032, the system will automatically adjust the target volume level to the volume level indicated by the second value, without requiring the user to manually adjust the cursor.

[0169] There are no specific restrictions on how users select the target volume level.

[0170] The above-described S605 describes the process of a user adjusting the volume once using the volume control. In actual implementation, if the user is not satisfied with the adjusted volume, they can continue to manually adjust the cursor in the volume control until a satisfactory volume is achieved. Furthermore, if the user still cannot achieve a satisfactory volume after multiple adjustments of the cursor, they can return to S601 to S605 to reset the total number of adjusted volume levels (the first value), triggering the system to readjust the volume control. The user can then adjust the volume again using the cursor in the readjusted volume control. This volume adjustment process is repeated until a satisfactory volume is achieved.

[0171] After adjusting the volume to a level satisfactory to the user, the third stage of this application embodiment will begin: the stage of providing reliability protection for the acoustic components of the electronic device.

[0172] For example, Figure 8 A flowchart illustrating the steps of a method for ensuring the reliability of acoustic components in electronic devices.

[0173] like Figure 8 As shown, the method for reliability protection of acoustic components in electronic devices includes the following steps:

[0174] S801: Detects the temperature of the acoustic coil in electronic devices.

[0175] The detected acoustic device temperature can be represented as T_Loudn_extend. The loudness of the sound signal played by the acoustic device affects its temperature; the higher the loudness, the higher the temperature. For terminals equipped with Smart PA (Smart Power Amplifier), the Smart PA monitors the temperature of the acoustic device coil in real time, using this temperature as a crucial parameter for ensuring the reliability of the acoustic device.

[0176] S802: Determine if T_Loudn_extend is greater than T_Threshold_normal.

[0177] Wherein, T_Threshold_normal is the first temperature threshold. The first temperature threshold is the temperature of the acoustic device coil when the volume control (i.e., the system default volume control) is adjusted to the maximum volume without being generated based on the user's minimum hearing threshold model.

[0178] If T_Loudn_extend is less than or equal to T_Threshold_normal, the current process terminates and returns to step S801 after a first preset time interval.

[0179] S803: If T_Loudn_extend is greater than T_Threshold_normal, determine whether T_Loudn_extend is greater than T_Threshold_extend.

[0180] Among them, T_Threshold_extend is the second temperature threshold, also known as the bottom protection threshold temperature. If the temperature of the acoustic device coil exceeds the second temperature threshold, the acoustic device is more likely to be damaged. The second temperature threshold is greater than the first temperature threshold.

[0181] It should be noted that the specific values ​​of the first temperature threshold and the second temperature threshold can be flexibly adjusted and set by those skilled in the art according to the model of the acoustic device, and no specific restrictions are imposed on this in the embodiments of this application.

[0182] If T_Loudn_extend is less than or equal to T_Threshold_extend, the audio signal amplitude is not reduced, and the execution step S801 is returned after a first preset time interval.

[0183] S804: If T_Loudn_extend is greater than T_Threshold_extend, reduce the amplitude of the output audio signal according to the preset coefficient.

[0184] The preset coefficient can be set by those skilled in the art according to actual needs, for example, set to 0.7, 0.8 or 0.6, etc.

[0185] The preset condition is set so that the coil temperature of the acoustic device is greater than a second temperature threshold. The amplitude of the output audio signal is reduced only when the coil temperature of the acoustic device meets the preset condition, rather than when the coil temperature of the acoustic device is greater than a first temperature threshold. This is because if the amplitude of the output audio signal is reduced to avoid damage to the acoustic device when the coil temperature of the acoustic device exceeds the first temperature threshold, the output loudness of the electronic device will also decrease as the coil temperature of the acoustic device drops, and the actual output loudness may not meet the user's expectations. Therefore, in this embodiment, the temperature threshold is expanded from the first temperature threshold to the second temperature threshold for the scenario of expanding the volume, so as to balance the output loudness and the safety of the acoustic device.

[0186] S801 to S804 constitute a single process for reliability protection of acoustic devices. In actual implementation, S801 to S804 can be repeatedly executed at a first preset frequency. The first preset frequency can be set by those skilled in the art according to actual needs, for example, set to 30 seconds, 50 seconds, or 1 minute, etc., and no specific limitation is made in this embodiment.

[0187] It should be noted that, in addition to the methods listed above for reliability protection of acoustic devices based on coil temperature, reliability protection can also be achieved based on the real-time power of the acoustic device. For example, by detecting the real-time power of the acoustic device coil in an electronic device, and if the real-time power exceeds a preset power threshold, the amplitude of the output audio signal can be reduced according to a preset coefficient.

[0188] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0189] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the volume adjustment method in the above embodiment.

[0190] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the volume adjustment method described in the above embodiment.

[0191] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the volume adjustment method in the above method embodiments.

[0192] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0193] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.

[0194] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0195] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0196] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0197] Any content in the various embodiments of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0198] If the integrated unit is implemented as 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 solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0199] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0200] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.

[0201] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0202] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An electronic device, characterized in that, include: Memory and processor; The processor is coupled to the memory; The memory stores program instructions that, when executed by the processor, cause the electronic device to perform the following steps: Receive the user's first input to the volume setting control; In response to the first input, a volume setting prompt box is displayed, wherein the volume setting prompt box includes: a volume level number setting box and a target volume level input box; In response to the user entering a first value in the volume level quantity setting box, the first value is determined as the volume level quantity; In response to the user entering a second value in the target volume level input box, the second value is determined as the target volume level. Display a volume adjustment control matching the number of volume levels, and adjust the cursor of the volume adjustment control to the volume level indicated by the target volume level. The volume adjustment control contains N sub-segments, each sub-segment corresponding to a sound pressure level. Each sub-segment contains at least two volume levels. The volume increment of the volume level is an integer multiple of the minimum loudness difference threshold of the corresponding sound pressure level. The sum of the volume levels contained in the N sub-segments is the first value. The temperature of the acoustic coil in an electronic device is detected by using a smart power amplifier in the electronic device. If the temperature is greater than a first temperature threshold, determine whether the temperature is greater than a second temperature threshold. The first temperature threshold is the temperature of the acoustic coil of the electronic device when the volume setting control is at maximum volume before receiving the first input. If the temperature is greater than the second temperature threshold, the amplitude of the output audio signal is reduced according to a preset coefficient until the temperature is less than the second temperature threshold. The minimum loudness difference threshold is determined based on the minimum hearing threshold model generated by pre-testing, which determines the minimum loudness difference threshold of the sound pressure level corresponding to each sub-segment of the volume adjustment control to be displayed. The minimum hearing threshold model includes the correspondence between sound pressure level and minimum loudness difference threshold; The minimum hearing threshold model is constructed based on each user's historical music playback data to build a hearing threshold test signal library. Each signal segment in the hearing threshold test signal library is subjected to loudness calculation, loudness normalization, time domain feature extraction, frequency domain feature extraction, and cluster analysis. Based on preset conditions, multiple signal segments are extracted from the signal segments obtained by cluster analysis to generate multiple sets of test sound source segments. The minimum hearing threshold model is obtained by conducting hearing threshold tests on users based on multiple sets of test sound source segments. The preset conditions are random extraction and extraction by ranking. The step of sequentially performing loudness calculation, loudness normalization, time-domain feature extraction, frequency-domain feature extraction, and cluster analysis on each signal segment in the hearing threshold test signal library includes: The loudness of each signal segment in the hearing threshold test signal library is calculated to obtain the loudness value of each signal segment; The loudness value of each signal segment is normalized to obtain the normalized signal segment corresponding to each signal segment; Based on short-time energy, time-domain features are extracted from each normalized signal segment, and each signal segment before normalization is clustered based on the extracted features to obtain multiple signal segments with similar sampling point amplitudes. Based on the zero-crossing rate, time-domain features are extracted for each normalized signal segment, and each signal segment before normalization is clustered based on the extracted feature values ​​to obtain multiple classes of signal segments with the same number of zero crossings. Based on energy entropy, time-domain features are extracted from each of the normalized signal segments, and each of the signal segments before normalization is clustered based on the extracted features to obtain multiple signal segments with similar abrupt changes. Frequency domain features are extracted for each normalized signal segment based on linear prediction coefficients, and each signal segment before normalization is clustered based on the extracted features to obtain foreground sound signal segments, background sound signal segments, and shouting sound signal segments. Frequency domain features are extracted for each normalized signal segment based on log-linear prediction coefficients, and each unnormalized signal segment is clustered based on the extracted features to obtain voice-related signal segments and non-voice-related signal segments. Frequency domain features are extracted for each normalized signal segment based on the fundamental frequency pitch, and each signal segment before normalization is clustered based on the extracted features to obtain speech signal segments and music signal segments. Frequency domain features are extracted for each normalized signal segment based on subband energy, and each unnormalized signal segment is clustered based on the extracted features to obtain non-speech signal segments.

2. The electronic device according to claim 1, characterized in that, The volume setting prompt box includes a target volume level input box. When the program instruction is executed by the processor, the electronic device performs the following steps: Adjust the cursor in the volume control to the target volume level.

3. The electronic device according to claim 1, characterized in that, When the program instructions are executed by the processor, the electronic device performs the following steps: A hearing threshold test signal library was constructed based on users' historical music playback data. Based on the hearing threshold test signal library, a first preset number of test sound source segments are generated, wherein each set of sound source segments includes a second preset number of signal segments; In response to the user's request to start a hearing threshold test, the hearing threshold test interface is displayed; Based on the user's input on the hearing threshold test interface, test data is obtained, wherein the test data includes: the minimum loudness difference threshold corresponding to each sound pressure level generated during the test of each set of sound source segments selected by the user; Based on the test data, a minimum hearing threshold model for the user is generated.

4. The electronic device according to claim 3, characterized in that, The hearing threshold test interface includes: a test sound source segment selection option, a test sound pressure range setting option, a play switch, a gain adjustment bar, and a confirm difference button; when the program instructions are executed by the processor, the electronic device performs the following steps: In response to a second input from the user regarding the test sound pressure range setting, a test sound pressure range is determined, the test sound pressure range including multiple sound pressure levels to be tested; In response to the user's third input regarding the selection of target test audio segments, determine the group of audio segments selected by the user; Upon receiving a message from the user activating the playback switch, the user-selected audio source segment group is played in a loop. During the playback of the audio source segment group, the user's adjustment operation on the gain adjustment bar is detected; Upon receiving a fourth input from the user to the "Determine Difference" button, the scale value indicated by the cursor in the gain adjustment bar is determined as the minimum loudness difference threshold for the current sound pressure level to be tested.

5. The electronic device according to claim 4, characterized in that, When the program instructions are executed by the processor, the electronic device performs the following steps: For each sound pressure level, the minimum loudness difference threshold corresponding to the sound pressure level obtained from the test data for each set of sound source segments selected by the user is extracted; The weighted average of the minimum loudness difference thresholds corresponding to the sound pressure level is determined as the minimum loudness difference threshold corresponding to the sound pressure level. Based on the minimum loudness difference threshold corresponding to each sound pressure level, the minimum hearing threshold model of the user is generated.

6. The electronic device according to claim 1, characterized in that, When the program instructions are executed by the processor, the electronic device performs the following steps: When the temperature is between the first temperature threshold and the second temperature threshold, the amplitude of the output audio signal is not reduced.

7. The electronic device according to claim 1, characterized in that, The first value is set in the range of 5 to 200.

8. The electronic device according to claim 3, characterized in that, The first preset quantity is 5, the second preset quantity ranges from 3 to 6, and the length of each signal segment is 3 to 5 seconds.

9. A volume adjustment method, characterized in that, include: The electronic device receives the user's first input to the volume setting control; The electronic device responds to the first input by displaying a volume setting prompt box, wherein the volume setting prompt box includes: a volume level number setting box and a target volume level input box; The electronic device responds to the user's input of a first value in the volume level number setting box and determines the first value as the volume level number; In response to the user entering a second value in the target volume level input box, the second value is determined as the target volume level. The electronic device displays a volume adjustment control that matches the number of volume levels. The cursor of the volume adjustment control is adjusted to the volume level indicated by the target volume level. The volume adjustment control contains N sub-segments, each sub-segment corresponding to a sound pressure level. Each sub-segment contains at least two volume levels. The volume increment of the volume level is an integer multiple of the minimum loudness difference threshold of the corresponding sound pressure level. The sum of the volume levels contained in the N sub-segments is the first value. The temperature of the acoustic coil in an electronic device is detected by using a smart power amplifier in the electronic device. If the temperature is greater than a first temperature threshold, determine whether the temperature is greater than a second temperature threshold. The first temperature threshold is the temperature of the acoustic coil of the electronic device when the volume setting control is at maximum volume before receiving the first input. If the temperature is greater than the second temperature threshold, the amplitude of the output audio signal is reduced according to a preset coefficient until the temperature is less than the second temperature threshold. The minimum loudness difference threshold is determined based on the minimum hearing threshold model generated by pre-testing, which determines the minimum loudness difference threshold of the sound pressure level corresponding to each sub-segment of the volume adjustment control to be displayed. The minimum hearing threshold model includes the correspondence between sound pressure level and minimum loudness difference threshold; The minimum hearing threshold model is constructed based on each user's historical music playback data to build a hearing threshold test signal library. The signal segments in the hearing threshold test signal library are sequentially subjected to loudness calculation, loudness normalization, time domain feature extraction, frequency domain feature extraction, and cluster analysis. Based on preset conditions, multiple signal segments are extracted from the signal segments obtained by cluster analysis to generate multiple sets of test sound source segments. The minimum hearing threshold model is obtained by conducting hearing threshold tests on users based on the multiple sets of test sound source segments. The preset conditions are random extraction and extraction by ranking.

10. The method according to claim 9, characterized in that, The volume setting prompt box includes a target volume level input box, and the method further includes: The electronic device adjusts the cursor in the volume control to the target volume level.

11. The method according to claim 9, characterized in that, Before the electronic device receives the user's first input to the volume setting control, it also includes: The electronic device constructs a hearing threshold test signal library based on the user's historical music playback data; The electronic device generates a first preset number of test sound source segments based on the hearing threshold test signal library, wherein each set of sound source segments includes a second preset number of signal segments; The electronic device displays a hearing threshold test interface in response to a user's request to initiate a hearing threshold test. The electronic device obtains test data based on the user's input on the hearing threshold test interface, wherein the test data includes: the minimum loudness difference threshold corresponding to each sound pressure level generated during the test of each set of sound source segments selected by the user; The electronic device generates a minimum hearing threshold model for the user based on test data.

12. The method according to claim 11, characterized in that, The hearing threshold testing interface includes: a test sound source segment selection option, a test sound pressure range setting option, a play switch, a gain adjustment bar, and a confirm difference button; the electronic device obtains test data based on user input on the hearing threshold testing interface, including: The electronic device responds to a second input from the user regarding the test sound pressure range setting to determine a test sound pressure range, which includes multiple sound pressure levels to be tested. The electronic device responds to a third input from the user regarding the selection of target test audio source segments, and determines the group of audio source segments selected by the user. When the electronic device receives a message from the user turning on the playback switch, it continuously plays the audio source segment group selected by the user. During the playback of the audio source segment group, the electronic device detects the user's adjustment operation on the gain adjustment bar; When the electronic device receives a fourth input from the user to the "Determine Difference" button, it determines the scale value indicated by the vernier in the gain adjustment bar as the minimum loudness difference threshold for the current sound pressure level to be tested.

13. The method according to claim 12, characterized in that, The electronic device generates a minimum hearing threshold model for the user based on test data, including: For each sound pressure level, the electronic device extracts the minimum loudness difference threshold corresponding to the sound pressure level obtained from the test data for each set of sound source segments selected by the user. The electronic device determines the weighted average of the minimum loudness difference thresholds corresponding to the sound pressure level as the minimum loudness difference threshold corresponding to the sound pressure level. The electronic device generates the user's minimum hearing threshold model based on the minimum loudness difference threshold corresponding to each sound pressure level.

14. The method according to claim 9, characterized in that, The method further includes: The electronic device does not reduce the amplitude of the output audio signal when the temperature is between the first temperature threshold and the second temperature threshold.

15. The method according to claim 9, characterized in that, The first value is set in the range of 5 to 200.

16. The method according to claim 12, characterized in that, The first preset quantity is 5, the second preset quantity ranges from 3 to 6, and the length of each signal segment is 3 to 5 seconds.

17. A computer-readable storage medium comprising a computer program, characterized in that, When the computer program is run on an electronic device, it causes the electronic device to perform the volume adjustment method as described in any one of claims 9-16.