Audio playing method and device, electronic equipment and storage medium

By applying psychoacoustic models and auditory curves to electronic devices, audio processing parameters are dynamically adjusted to address the high power consumption issue during audio playback, achieving a balance between audio playback effect and quality, based on audio playback scenarios and user needs.

CN121644729APending Publication Date: 2026-03-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

As the playback performance of electronic devices improves, the power consumption during audio playback is also increasing. In existing technologies, fixed strategies based on auditory curves suppress sound energy processing, which affects the audio playback effect.

Method used

By dynamically adjusting audio processing parameters based on psychoacoustic models and auditory curves, the energy of audio signals is reduced according to different audio playback scenarios and user needs. Energy suppression processing is optimized by combining audio playback scenarios, dynamic range, and playback volume.

Benefits of technology

While reducing audio playback power consumption, it ensures audio playback quality and stability in different scenarios, achieving a balance between audio playback effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121644729A_ABST
    Figure CN121644729A_ABST
Patent Text Reader

Abstract

The invention discloses an audio playing method and device, electronic equipment and a storage medium, and the audio playing method comprises the steps: based on an audio playing scene corresponding to a to-be-played first audio signal, determining an audio processing parameter which corresponds to the first audio signal and is used for carrying out energy suppression processing, and taking the audio processing parameter as a target processing parameter, the energy reduction degree of the audio signal corresponding to the audio processing parameter is in negative correlation with the audio playing quality required by the audio playing scene; based on the target processing parameter and an auditory curve corresponding to the first audio signal, performing energy suppression processing on at least part of sub-audio signals in the first audio signal to obtain a second audio signal; and playing the second audio signal. According to the method, the playing effect of audio playing can be ensured while the power consumption caused by audio playing can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and more specifically, to an audio playback method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smartphones and tablets) have become commonplace in people's lives. Currently, electronic devices are frequently used for audio playback, and their playback performance is constantly improving. However, with this improvement in playback performance, the power consumption generated during audio playback is also increasing. Summary of the Invention

[0003] This application proposes an audio playback method, apparatus, electronic device, and storage medium that can reduce the power consumption of audio playback while ensuring the playback effect.

[0004] In a first aspect, embodiments of this application provide an audio playback method, the method comprising: determining, based on an audio playback scenario corresponding to a first audio signal to be played, audio processing parameters for energy suppression processing corresponding to the first audio signal as target processing parameters, wherein the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario; performing energy suppression processing on at least a portion of the sub-audio signals in the first audio signal based on the target processing parameters and the auditory curve corresponding to the first audio signal to obtain a second audio signal; and playing the second audio signal.

[0005] Secondly, embodiments of this application provide an audio playback device, comprising: a parameter determination module, an energy reduction module, and a playback execution module. The parameter determination module is used to determine, based on an audio playback scenario corresponding to a first audio signal to be played, audio processing parameters for energy suppression processing corresponding to the first audio signal, as target processing parameters. The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario. The energy reduction module is used to perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal based on the target processing parameters and the auditory curve corresponding to the first audio signal, to obtain a second audio signal. The playback execution module is used to play the second audio signal.

[0006] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to perform the audio playback method provided in the first aspect above.

[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be called by a processor to execute the audio playback method provided in the first aspect above.

[0008] The solution provided in this application obtains the auditory curve corresponding to a first audio signal to be played based on a psychoacoustic model. Based on the obtained auditory curve, and according to at least one of the audio information and playback information of the first audio signal, the energy of at least a portion of the sub-audio signals in the first audio signal is reduced to obtain a second audio signal, which is then played. Therefore, when reducing the power consumption of audio playback based on the auditory curve, the required audio playback quality in different audio playback scenarios is considered. This allows for reducing the power consumption of audio playback while maintaining the quality and stability of audio playback, thereby ensuring the optimal audio playback effect. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 A flowchart illustrating an audio playback method according to an embodiment of this application is shown.

[0011] Figure 2 A flowchart illustrating an audio playback method according to another embodiment of this application is shown.

[0012] Figure 3 A flowchart illustrating an audio playback method according to yet another embodiment of this application is shown.

[0013] Figure 4 A flowchart illustrating an audio playback method according to another embodiment of this application is shown.

[0014] Figure 5 A flowchart illustrating an audio playback method according to yet another embodiment of this application is shown.

[0015] Figure 6A schematic diagram illustrating the principle of the audio playback method provided in the embodiments of this application is shown.

[0016] Figure 7 A flowchart illustrating an audio playback method according to yet another embodiment of this application is shown.

[0017] Figure 8 A block diagram of an audio playback device according to an embodiment of this application is shown.

[0018] Figure 9 This is a block diagram of an electronic device for performing an audio playback method according to an embodiment of this application.

[0019] Figure 10 This is a storage unit in this application embodiment for storing or carrying program code that implements the audio playback method according to this application embodiment. Detailed Implementation

[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0021] Currently, electronic devices are frequently used for external playback, which refers to the process where electronic devices diffuse sound into the air through their built-in speakers, where it is then received by the human ear. With the continuous improvement of the playback performance of electronic devices, the power consumption during audio playback has increased exponentially. Therefore, reducing power consumption while maintaining audio signal playback quality has become a pressing problem. Currently, the most common power reduction method in the audio technology field is to use psychoacoustics to eliminate sound energy that is inaudible to the human ear. Psychoacoustics studies the relationship between sound and the auditory perception it evokes. Specifically, it uses auditory curves to suppress sound energy that is inaudible to the human ear, thereby achieving the goal of reducing power consumption while ensuring that the user can hear the sound.

[0022] However, in related technologies, when suppressing sound energy that is inaudible to the human ear based on the auditory curve, a fixed strategy is usually used to suppress sound energy that is inaudible to the human ear, which can affect the audio playback effect in some cases.

[0023] To address the aforementioned problems, the inventors have proposed the audio playback method, apparatus, electronic device, and storage medium provided in the embodiments of this application. These methods can reduce the power consumption of audio playback based on auditory curves while considering the audio playback quality requirements in different audio playback scenarios. This allows for the reduction of power consumption during audio playback while maintaining audio playback quality and stability, thereby ensuring the optimal audio playback effect. The specific audio playback method will be described in detail in the subsequent embodiments.

[0024] The audio playback method provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0025] Please see Figure 1 , Figure 1 A flowchart illustrating an embodiment of the audio playback method provided in this application is shown. In a specific embodiment, the audio playback method is applied to, for example... Figure 8 The audio playback device 700 shown and the electronic device 100 configured with the audio playback device 700 are also shown. Figure 9 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment can be a smartphone, tablet computer, smartwatch, e-reader, etc., and is not limited thereto. The following will focus on... Figure 1 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0026] Step S110: Based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters corresponding to the first audio signal for energy suppression processing as target processing parameters, wherein the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario.

[0027] In this embodiment of the application, the electronic device can acquire the audio signal to be played and use the acquired audio signal to be played as the first audio signal.

[0028] In some implementations, there can be multiple ways for an electronic device to acquire the audio signal to be played. For example, the electronic device can acquire the audio signal to be played locally, or it can acquire the audio signal to be played from an external device via a network. The specific method by which the electronic device acquires the audio signal to be played is not limited.

[0029] In one possible implementation, the electronic device can perform frame-segmentation processing on the audio signal stream to be played. Based on each frame of audio signal after frame-segmentation processing, each frame of audio signal is used as a first audio signal in sequence according to the timing of each frame of audio signal. For each frame of first audio signal, the audio processing method provided in the embodiments of this application is executed.

[0030] In some embodiments, after acquiring the first audio signal, the electronic device can preprocess the first audio signal. Preprocessing includes at least converting the audio signal from the time domain to the frequency domain using a fast Fourier transform (FFT), that is, converting the original time-domain first audio signal into a frequency-domain signal. Of course, preprocessing of the first audio signal may also include other processing, such as noise reduction.

[0031] For a first audio signal to be played, an electronic device can determine the audio playback scenario corresponding to the first audio signal, and based on the audio playback scenario, determine the audio processing parameters for energy suppression processing of the first audio signal, and use the determined audio processing parameters as the target processing parameters. The audio playback scenario can be a scenario defined according to the requirements for audio playback quality. For example, audio playback scenarios can include music playback scenarios, short video playback scenarios, movie scenarios, audiobook scenarios, map navigation broadcast scenarios, game sound playback, etc.; energy suppression processing of the above sub-audio signals can also be called attenuation processing, used to reduce the energy of the signal.

[0032] In this embodiment, the degree of energy reduction of the audio signal corresponding to the above audio processing parameters is negatively correlated with the audio playback quality required by the above audio playback scenario. That is, when energy suppression processing is performed on the audio signal based on the above audio processing parameters, the degree of energy reduction (i.e., the degree of energy reduction) is negatively correlated with the audio playback quality required by the above audio playback scenario. Specifically, the higher the required audio playback quality, the lower the degree of energy reduction, to ensure the playback quality and effect of the audio signal in that audio playback scenario. Conversely, the lower the required audio playback quality, the lower the degree of energy reduction, to minimize the power consumption of audio playback in that audio playback scenario.

[0033] In some implementations, the electronic device may pre-store a mapping relationship between audio playback scenarios and audio processing parameters; when the electronic device needs to determine the above audio processing parameters for the first audio signal, it can determine the audio processing parameters corresponding to the first audio signal based on the mapping relationship.

[0034] In one possible implementation, the above mapping relationship can be pre-tuned for different audio playback scenarios to determine audio processing parameters that can guarantee the required playback quality in each audio playback scenario. That is, for an audio playback scenario, after using the tunable audio processing parameters to perform energy suppression processing on the audio signal to be played in that audio playback scenario, the required playback quality and effect can be met.

[0035] For example, in music playback scenarios, users have high requirements for the fidelity of the external speaker effect, thus demanding high audio playback quality. Therefore, the energy reduction of the audio signal corresponding to the audio processing parameters in music playback scenarios can be relatively lower compared to other scenarios with lower audio playback quality requirements, thereby prioritizing the audio playback effect while the benefit of power consumption reduction is relatively low. In short video playback scenarios, users have lower requirements for the fidelity of the external speaker effect, thus demanding lower audio playback quality. Therefore, the energy reduction of the audio signal corresponding to the audio processing parameters in short video playback scenarios can be relatively higher compared to other scenarios with higher audio playback quality requirements, thereby prioritizing the benefit of power consumption reduction and ensuring that the audio playback effect perceived by the user does not change significantly.

[0036] In some implementations, the above audio processing parameters may be gain values, which are used for subsequent energy suppression processing of at least a portion of the sub-audio signals in the first audio signal. The gain value can be understood as a gain factor, which can be a value between 0 and 1. The gain factor is a value between 0 and 1, used to reduce the amplitude of the audio signal (when the gain value is less than 1) without amplifying the signal (because the gain value does not exceed 1).

[0037] In some implementations, considering that energy suppression processing of the audio signal to be played may affect the playback effect of the electronic device, the electronic device may determine the audio processing parameters corresponding to the first audio signal based on the audio playback scenario corresponding to the first audio signal to be played when the target playback function is on, and then execute subsequent steps; when the target playback function is off, the electronic device does not determine the audio processing parameters corresponding to the first audio signal based on the above audio playback scenario, but directly plays the first audio signal.

[0038] In one possible implementation, the electronic device may display a settings interface for the target playback function, which may include a setting switch control for the target playback function; the electronic device may control the target playback function to be on or off in response to a control operation on the setting switch control.

[0039] In one possible implementation, the electronic device can detect touch operations on the display interface. If a sliding operation of a target sliding trajectory is detected in the target touch area, the electronic device can respond to the sliding operation by controlling the target playback function to be turned on or off.

[0040] Step S120: Based on the target processing parameters and the auditory curve corresponding to the first audio signal, perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal to obtain the second audio signal.

[0041] In this embodiment, after determining the target processing parameters corresponding to the first audio signal, energy suppression processing can be performed on at least a portion of the sub-audio signals in the first audio signal based on the target processing parameters and the auditory curve corresponding to the first audio signal. The first audio signal after the suppression processing is then used as the second audio signal, i.e., the audio signal that actually needs to be played later. The auditory curve can be a human ear masking threshold curve, used to describe the minimum intensity (usually in decibels) required for a masked sound (i.e., the perceived sound) to be perceived by the human ear in the presence of a masking sound. It reflects the influence of the masking effect on sound perception, i.e., one sound (masking sound) can increase the perception threshold of another sound (masked sound).

[0042] In some implementations, electronic devices can acquire the auditory curve of a first audio signal in the frequency domain based on a psychoacoustic model. A psychoacoustic model is a mathematical representation of the statistical properties of human hearing, used to characterize the relationship between objective sound and subjective hearing. Psychoacoustic models can simulate the complex mechanisms of the human auditory system, including the nonlinear response of the cochlea, the binaural effect, and the masking effect, to more accurately describe and predict human perception of sound.

[0043] In one possible implementation, the electronic device can convert the first audio signal from the time domain to the frequency domain; then, based on a psychoacoustic model, identify the tonal and non-tonal components (components close to noise) in the frequency domain signal and calculate the auditory curve of the frequency domain signal in the Bark critical band.

[0044] In some implementations, after energy suppression processing is performed on at least a portion of the sub-audio signals in the first audio signal, the resulting audio signal can be subjected to an inverse fast fourier transform (IFFT) to obtain a time-domain signal, which serves as the second audio signal to be played.

[0045] Step S130: Play the second audio signal.

[0046] In this embodiment of the application, after performing energy suppression processing on at least a portion of the sub-audio signals in the first audio signal, a second audio signal is obtained. The obtained second audio signal is used to replace the first audio signal that needs to be played previously. The electronic device can play the second audio signal, thereby reducing the power consumption during audio playback. Furthermore, since the audio processing parameters used for energy suppression processing are determined based on the above audio playback scenario, the playback effect of audio playback in this audio playback scenario can be guaranteed.

[0047] In some implementations, considering the power consumption reduction during audio playback based on psychoacoustic principles and the human ear masking effect in related technologies, the control scheme is integrated into the power amplifier (PA) algorithm, and is usually implemented inside the digital signal processor (DSP). Therefore, it is impossible to obtain audio playback-related information such as the audio playback scene. Thus, the audio playback method provided in this application embodiment can be executed by the application processor (AP), so that the AP can obtain audio playback-related information such as the audio service layer below, and then determine the above audio processing parameters based on the audio playback-related information, and perform subsequent steps.

[0048] The audio playback method provided in this application embodiment can reduce the power consumption of audio playback based on the auditory curve, while taking into account the audio playback quality required in different audio playback scenarios. This can reduce the power consumption caused by audio playback while taking into account the quality and stability of audio playback, thereby ensuring the playback effect of audio playback.

[0049] Please see Figure 2 , Figure 2 A flowchart illustrating another embodiment of the audio playback method provided in this application is shown. This audio playback method is applied to the aforementioned electronic device, and will be discussed below. Figure 2 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0050] Step S210: Based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters that match the dynamic range of the first audio signal from the audio processing parameters corresponding to the audio playback scenario, and use them as the target processing parameters.

[0051] The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario, and the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the value of the dynamic range.

[0052] In this embodiment, when determining the audio processing parameters for energy suppression processing corresponding to the first audio signal, in addition to considering the audio playback scenario corresponding to the first audio signal, the dynamic range (DR) of the first audio signal can also be used. That is, the audio processing parameters are determined based on both the audio playback scenario and the dynamic range. Specifically, the electronic device can determine the audio processing parameters matching the dynamic range of the first audio signal from the audio processing parameters corresponding to the audio playback scenario, based on the audio playback scenario to be played, and use these as target processing parameters. Dynamic range refers to the difference between the maximum undistorted level and the noise level in an audio signal, usually expressed in decibels (dB). The size of the dynamic range can reflect the user's sensitivity to playback effects. Therefore, the dynamic range can also be combined to determine the above audio processing parameters, thereby performing energy suppression processing on the audio signal based on the determined audio processing parameters to ensure the audio playback effect.

[0053] Regarding the audio processing parameters mentioned above, the degree of energy reduction in the audio signal corresponding to these parameters is negatively correlated not only with the required audio playback quality for the aforementioned audio playback scenarios, but also with the dynamic range value. In other words, the higher the required audio playback quality for the aforementioned audio playback scenarios, the lower the energy reduction, to ensure the playback quality and effect of the audio signal in that scenario. Conversely, the lower the required audio playback quality for the aforementioned audio playback scenarios, the lower the energy reduction, to minimize the power consumption of audio playback in that scenario. Furthermore, the larger the dynamic range value, the more sensitive the user is to changes in playback effect, therefore the lower the energy reduction can be to ensure playback effect; conversely, the smaller the dynamic range value, the higher the energy reduction can be, to minimize the power consumption of audio playback.

[0054] In one possible implementation, the dynamic range can be calculated using envelope detection, utilizing the first N milliseconds of the audio signal. This calculated dynamic range can be considered the initial dynamic range. Furthermore, as playback progresses, the dynamic range is recalculated and updated in units of M milliseconds; that is, the dynamic range is recalculated every M milliseconds. Here, M is less than N; for example, M can be 5 milliseconds and N can be 200 milliseconds.

[0055] In the above embodiments, there are multiple ways to perform envelope detection. One method is to perform envelope detection by performing Hilbert transform on the audio signal. Another method is to perform envelope detection on the audio signal by combining local peak detection with spline fitting.

[0056] In some implementations, the electronic device can pre-store multiple sets of audio processing parameters corresponding to each audio scenario. Each set of audio processing parameters includes audio processing parameters corresponding to different dynamic range values. Based on this, when the electronic device needs to determine the above audio processing parameters for a first audio signal, it can determine a set of audio processing parameters corresponding to the audio playback scenario corresponding to the first audio signal, and then determine the audio processing parameters corresponding to the dynamic range of the first audio signal from that set of audio processing parameters.

[0057] In the above embodiments, the above sets of audio processing parameters are designed to satisfy the following: the degree of energy reduction of the audio signal is negatively correlated with the audio playback quality required by the audio playback scenario, and the corresponding degree of energy reduction is negatively correlated with the dynamic range value. Specifically, under the same audio playback scenario, the higher the dynamic range value of the audio signal, the lower the degree of energy reduction of the audio signal by the corresponding audio processing parameters; and under the same dynamic range value, the higher the audio playback quality required by the audio playback scenario, the lower the degree of energy reduction of the audio signal by the corresponding audio processing parameters.

[0058] For example, the audio playback scenario may include scenario 1 and scenario 2, and the dynamic range may be divided into multiple intervals based on the numerical range: interval 1, interval 2, and interval 3. The audio playback quality required in scenario 1 is lower than that required in scenario 2. The minimum value of interval 2 is greater than the maximum value of interval 1, and the minimum value of interval 3 is greater than the maximum value of interval 2. The audio processing parameters corresponding to different audio playback scenarios and dynamic ranges can be shown in the table below:

[0059] Interval 1 Interval 2 Interval 3 Scene 1 Parameter a Parameter c Parameter e Scene 2 Parameter b Parameter d Parameter f

[0060] For each of intervals 1, 2, and 3, the audio processing parameters for different dynamic ranges within the same interval are determined based on the interval to which that dynamic range belongs. The set of audio processing parameters for scenario 1 includes parameter a for interval 1, parameter c for interval 2, and parameter e for interval 3. The energy reduction degree for parameter a is higher than that for parameter c, and the energy reduction degree for parameter c is higher than that for parameter e. The set of audio processing parameters for scenario 2 includes parameter b for interval 1, parameter d for interval 2, and parameter f for interval 3. The energy reduction degree for parameter b is higher than that for parameter d, and the energy reduction degree for parameter d is higher than that for parameter f. Furthermore, when the dynamic range belongs to the same interval, for example, if the dynamic range belongs to interval 1, the energy reduction degree for parameter a is higher than that for parameter b; similarly, if the dynamic range belongs to interval 2, the energy reduction degree for parameter c is higher than that for parameter d; and if the dynamic range belongs to interval 3, the energy reduction degree for parameter e is higher than that for parameter f.

[0061] In some implementations, the electronic device may also pre-store audio playback scenarios and dynamic range values, along with audio processing parameters and mapping relationships. When the electronic device needs to determine the above audio processing parameters for the first audio signal, it can determine the audio processing parameters corresponding to the first audio signal based on the mapping relationship and the audio playback scenario and dynamic range values ​​corresponding to the first audio signal.

[0062] In one possible implementation, the above mapping relationship can be pre-tuned for different audio playback scenarios and combinations of dynamic range of audio signals to determine audio processing parameters that can guarantee the required playback quality and effect under each combination. That is, for each combination, after using the tunable audio processing parameters to perform energy suppression processing on the audio signal to be played under each combination, the required playback quality and effect when playing the audio signal with that dynamic range under that audio playback scenario can be met.

[0063] Step S220: Based on the target processing parameters and the auditory curve corresponding to the first audio signal, perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal to obtain the second audio signal.

[0064] Step S230: Play the second audio signal.

[0065] In the embodiments of this application, steps S220 and S230 can be referred to the contents of other embodiments, and will not be repeated here.

[0066] The audio playback method provided in this application can reduce the power consumption of audio playback based on the auditory curve. It not only considers the audio playback quality required in different audio playback scenarios, but also considers that the size of the dynamic range can reflect the user's sensitivity to the playback effect. Therefore, it combines the audio playback scenario and the dynamic range of the audio signal to perform energy suppression processing on the audio signal, thereby better reducing the power consumption caused by audio playback and ensuring the audio playback effect.

[0067] Please see Figure 3 , Figure 3 A flowchart illustrating another embodiment of the audio playback method provided in this application is shown. This audio playback method is applied to the aforementioned electronic device, and will be discussed below. Figure 3 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0068] Step S310: Based on the audio playback scenario corresponding to the first audio signal, determine the audio processing parameters that match the playback volume corresponding to the first audio signal from the audio processing parameters corresponding to the audio playback scenario, and use them as target processing parameters.

[0069] The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario and positively correlated with the playback volume.

[0070] In this embodiment, when determining the audio processing parameters for energy suppression processing corresponding to the first audio signal, in addition to the audio playback scenario corresponding to the first audio signal, the playback volume of the first audio signal can also be used. That is, the audio processing parameters corresponding to the first audio signal are determined based on the audio playback scenario and the playback volume. Specifically, the electronic device can determine the audio processing parameters matching the playback volume of the first audio signal from the audio processing parameters corresponding to the audio playback scenario of the first audio signal to be played, as the target processing parameters. The playback volume can refer to the volume used by the electronic device to play the first audio signal. With different playback volumes, the user's needs and sensitivity to playback effects vary. For example, with a higher playback volume, the masking effect is more pronounced, and the user is more inclined to hear the sound clearly. Therefore, energy suppression processing can be performed on the audio signal requiring energy suppression based on the playback volume, thereby ensuring the audio playback effect.

[0071] Regarding the above audio processing parameters, the degree of energy reduction in the audio signal corresponding to these parameters is not only negatively correlated with the required audio playback quality in the aforementioned audio playback scenarios, but also positively correlated with the playback volume. In other words, the higher the required audio playback quality in the aforementioned audio playback scenarios, the lower the energy reduction, to ensure the playback quality and effect of the audio signal in that scenario. Conversely, the lower the required audio playback quality in the audio playback scenarios, the lower the energy reduction, to minimize the power consumption of audio playback in that scenario. Furthermore, the higher the playback volume, the more pronounced the masking effect and the more users tend to hear the sound clearly; therefore, the higher the energy reduction can be to minimize the power consumption of audio playback. Conversely, the lower the playback volume, the lower the energy reduction can be to ensure playback effect.

[0072] In some implementations, the electronic device can pre-store multiple sets of audio processing parameters corresponding to each audio scenario, with each set including audio processing parameters corresponding to different playback volumes. Based on this, when the electronic device needs to determine the above audio processing parameters for a first audio signal, it can determine a set of audio processing parameters corresponding to the audio playback scenario corresponding to the first audio signal, and then determine the audio processing parameters corresponding to the playback volume of the first audio signal from that set of audio processing parameters.

[0073] In the above embodiments, the above sets of audio processing parameters are designed to satisfy the following: the degree of energy reduction of the audio signal is negatively correlated with the audio playback quality required by the audio playback scenario, and the corresponding degree of energy reduction is positively correlated with the playback volume. Specifically, under the same audio playback scenario, the higher the playback volume, the greater the degree of energy reduction of the audio signal by the corresponding audio processing parameters; at the same playback volume, the higher the audio playback quality required by the audio playback scenario, the lower the degree of energy reduction of the audio signal by the corresponding audio processing parameters.

[0074] For example, the audio playback scenario may include scenario 1 and scenario 2, and the playback volume may be divided into multiple volume ranges: volume range 1, volume range 2, and volume range 3. Scenario 1 requires a lower audio playback quality than scenario 2. The minimum value of volume range 2 is greater than the maximum value of volume range 1, and the minimum value of volume range 3 is greater than the maximum value of volume range 2. The audio processing parameters corresponding to different scenarios and playback modes are shown in the table below.

[0075] Volume range 1 Volume range 2 Volume range 3 Scene 1 Parameter a Parameter c Parameter e Scene 2 Parameter b Parameter d Parameter f

[0076] Specifically, for each of volume ranges 1, 2, and 3, the audio processing parameters for different dynamic ranges within the same volume range are determined based on the volume range to which that dynamic range belongs. The set of audio processing parameters corresponding to scenario 1 includes: parameter a for volume range 1, parameter c for volume range 2, and parameter e for volume range 3. The energy reduction degree corresponding to parameter a is lower than that corresponding to parameter c, and the energy reduction degree corresponding to parameter c is lower than that corresponding to parameter e. The set of audio processing parameters corresponding to scenario 2 includes: parameter b for volume range 1, parameter d for volume range 2, and parameter f for volume range 3. The energy reduction degree corresponding to parameter b is lower than that corresponding to parameter d, and the energy reduction degree corresponding to parameter d is lower than that corresponding to parameter f. Additionally, when the playback volume belongs to the same volume range, for example, when the playback volume belongs to volume range 1, the energy reduction corresponding to parameter a is greater than that corresponding to parameter b; similarly, when the playback volume belongs to volume range 2, the energy reduction corresponding to parameter c is greater than that corresponding to parameter d; and when the playback volume belongs to volume range 3, the energy reduction corresponding to parameter e is greater than that corresponding to parameter f.

[0077] In some implementations, the electronic device may also pre-store audio playback scenarios, playback volume, and audio processing parameters and their mapping relationship; when the electronic device needs to determine the above audio processing parameters for the first audio signal, it can determine the audio processing parameters corresponding to the first audio signal based on the mapping relationship and according to the audio playback scenario and playback volume corresponding to the first audio signal.

[0078] In one possible implementation, the above mapping relationship can be pre-tuned for different audio playback scenarios and combinations of playback volume to determine the audio processing parameters that can guarantee the required playback quality and effect under each combination. That is, for each combination, after using the tunable audio processing parameters to perform energy suppression processing on the audio signal to be played in each combination, the required playback quality and effect when playing the audio signal at that playback volume under that audio playback scenario can be met.

[0079] Step S320: Based on the target processing parameters and the auditory curve corresponding to the first audio signal, perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal to obtain the second audio signal.

[0080] Step S330: Play the second audio signal.

[0081] In the embodiments of this application, steps S320 and S330 can be referred to the contents of other embodiments, and will not be repeated here.

[0082] The audio playback method provided in this application can reduce the power consumption of audio playback based on the auditory curve. It not only considers the audio playback quality required in different audio playback scenarios, but also the different degrees of prominence of the masking effect when the playback volume is different, as well as the different user requirements for audio playback quality. Therefore, it combines the audio playback scenario and the playback volume to perform energy suppression processing on the audio signal, thereby better reducing the power consumption caused by audio playback and ensuring the audio playback effect.

[0083] Please see Figure 4 , Figure 4 A flowchart illustrating an audio playback method provided in another embodiment of this application is shown. This audio playback method is applied to the aforementioned electronic device, and will be discussed below. Figure 4 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0084] Step S410: Based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters corresponding to the first audio signal for energy suppression processing as target processing parameters, wherein the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario.

[0085] In this embodiment, step S410 can be referred to the content of other embodiments, and will not be repeated here.

[0086] Step S420: Based on the auditory curve, determine the frequency point to be adjusted in the first audio signal, wherein the energy corresponding to the frequency point to be adjusted is lower than the auditory masking threshold corresponding to the frequency point to be adjusted.

[0087] In this embodiment of the application, when the electronic device performs energy suppression processing on at least a portion of the sub-audio signals in the first audio signal based on the auditory curve corresponding to the first audio signal and according to the determined target processing parameters, it can first determine the at least a portion of the sub-audio signals in the first audio signal that need to be energy suppressed based on the above auditory curve.

[0088] The electronic device can determine the frequency points whose energy is lower than the auditory masking threshold in the auditory curve based on the above auditory curve, thus obtaining the frequency points to be adjusted. In other words, the energy of the determined frequency points to be adjusted is lower than the auditory masking threshold corresponding to that frequency point in the auditory curve. It should be noted that the frequency points to be adjusted are the frequency points in the first audio signal that require energy suppression processing. There may be one or more frequency points to be adjusted, and there is no limitation on this.

[0089] In some implementations, the electronic device can iterate through all frequency points for the first audio signal and compare the energy corresponding to each frequency point with the auditory masking threshold corresponding to that frequency point in the auditory curve. Based on the comparison result, if the energy corresponding to the frequency point is lower than the auditory masking threshold corresponding to that frequency point in the auditory curve, then the frequency point can be determined as a frequency point to be adjusted. If the energy corresponding to the frequency point is higher than or equal to the auditory masking threshold corresponding to that frequency point in the auditory curve, then the frequency point is not determined as a frequency point to be adjusted, that is, the sub-audio signal of that frequency point does not need to be subjected to energy suppression processing.

[0090] Step S430: Based on the target processing parameters, perform energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal to obtain the second audio signal.

[0091] In this embodiment of the application, after determining the frequency point to be adjusted that needs to be energy suppressed, the electronic device can perform energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted based on the target processing parameters, and use the first audio signal after the suppression processing as the second audio signal, that is, the audio signal that actually needs to be played later.

[0092] In some implementations, the target processing parameters may include processing parameters corresponding to different sub-frequency bands. When the electronic device performs energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal, it can determine the sub-processing parameters corresponding to the sub-frequency band to be adjusted from the target processing parameters based on the sub-frequency band to which the frequency point to be adjusted belongs; then, according to the determined sub-processing parameters, it performs energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal to obtain the second audio signal. That is to say, when performing energy suppression processing on the first audio signal, not only the audio playback scenario is considered, but also the frequency band to which the frequency point to be adjusted belongs is considered. Furthermore, since the requirements for the playback quality and effect of audio signals in different frequency bands are different under different audio playback scenarios, based on the above method, the power consumption of the electronic device can be better reduced while ensuring the audio playback effect.

[0093] In one possible implementation, the audible frequency band can be pre-divided into multiple sub-bands based on the expected playback quality and effect requirements of different frequency bands. For example, the audible frequency band is 20Hz (Hz) to 20kHz (kHz), which can be divided into five sub-bands with sub-frequency points set at 100Hz, 750Hz, 1.5kHz, and 6kHz, respectively.

[0094] In one possible implementation, among the above target processing parameters, the degree of energy reduction of the audio signal corresponding to the sub-processing parameter of each sub-band is negatively correlated with the audio playback quality of the audio signal of the sub-band required in the audio playback scenario. Thus, the requirements for the playback effect of different frequency bands of sound in the audio playback scenario can be guaranteed.

[0095] Optionally, the degree of energy reduction of the audio signal corresponding to the sub-processing parameters of each sub-band is negatively correlated with the minimum (or maximum) value of the sub-band. That is, the larger the minimum value of the sub-band, the lower the energy reduction of the corresponding sub-processing parameter; conversely, the smaller the minimum value of the sub-band, the higher the energy reduction of the corresponding sub-processing parameter. Understandably, the lower the frequency of the sound, the weaker the user's perception of changes in playback effects. Therefore, for lower frequency sounds, sub-processing parameters with a higher degree of energy reduction can be used, thereby better reducing the power consumption of electronic devices. For example, in a movie playback scenario, the played audio contains audio signals with a large dynamic range and high effect requirements. Users in movie playback scenarios generally pay more attention to the perception of sound field effects and atmosphere, as well as the clarity and loudness of dialogue. Since the user's perceptual attention is largely diverted to the presentation of the picture, subtle differences in low frequencies are not noticeable. Therefore, a higher degree of energy reduction can be applied to low-frequency audio signals, thereby better reducing the power consumption of electronic devices.

[0096] In some implementations, the above sub-processing parameters can be gain values, which can be understood as gain factors and can be values ​​between 0 and 1. Energy suppression processing of the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal can be performed based on the above gain values, i.e., adjusting the amplitude of the sub-audio signal to reduce its energy. Specifically, the amplitude of the sub-audio signal can be multiplied by the above gain value. Since the above gain value is between 0 and 1, it can reduce the amplitude of the sub-audio signal, thus achieving the effect of reducing its energy.

[0097] Step S440: Play the second audio signal.

[0098] In this embodiment, step S440 can be referred to the content of other embodiments, and will not be repeated here.

[0099] The audio playback method provided in this application can reduce the power consumption of audio playback based on the auditory curve, taking into account the audio playback quality requirements in different audio playback scenarios. This allows for reducing the power consumption of audio playback while maintaining the quality and stability of audio playback, thereby ensuring the playback effect. In addition, it also considers the playback effect requirements of audio signals in different sub-frequency bands. When suppressing the sub-audio signal of the frequency point to be adjusted in the audio signal to be played, it also takes into account the sub-frequency band to which the frequency point to be adjusted belongs, thereby better ensuring the audio playback quality.

[0100] Please see Figure 5 , Figure 5 A flowchart illustrating another embodiment of the audio playback method provided in this application is shown. This audio playback method is applied to the aforementioned electronic device, and will be discussed below. Figure 5 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0101] Step S510: If the playback volume corresponding to the first audio signal is greater than the volume threshold, then based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters corresponding to the first audio signal as the target processing parameters.

[0102] The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario.

[0103] In this embodiment, considering that energy suppression processing of audio signals may affect the playback effect of electronic devices, the electronic device can only execute the audio playback method provided in this embodiment under certain conditions. The electronic device can determine the playback volume corresponding to the first audio signal and compare the playback volume with a volume threshold, which serves as a threshold for triggering energy suppression processing of the audio signal to be played. If the playback volume corresponding to the first audio signal is greater than the volume threshold, the audio processing parameters corresponding to the first audio signal can be determined based on the audio playback scenario corresponding to the first audio signal to be played, and subsequent steps can be executed. If the playback volume corresponding to the first audio signal is less than or equal to the volume threshold, the audio processing parameters corresponding to the first audio signal are not determined based on the above audio playback scenario, and the first audio signal is played directly.

[0104] Understandably, when the playback volume is low, the electroacoustic power consumption generated by audio playback is small, so the benefit of energy suppression processing of the audio signal is low. Furthermore, considering that energy suppression processing of the audio signal may affect the playback effect of the electronic device, the audio processing parameters corresponding to the first audio signal can only be determined based on the audio playback scenario corresponding to the first audio signal to be played when the playback volume is greater than the volume threshold, and subsequent steps are executed to complete the energy suppression processing of the audio signal and reduce the power consumption caused by audio playback.

[0105] Step S520: Based on the target processing parameters and the auditory curve corresponding to the first audio signal, perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal to obtain the second audio signal.

[0106] Step S530: Play the second audio signal.

[0107] In the embodiments of this application, steps S520 and S530 can be referred to the contents of other embodiments, and will not be repeated here.

[0108] The audio playback method provided in this application can reduce the power consumption of audio playback based on the auditory curve, taking into account the audio playback quality requirements in different audio playback scenarios. This allows for the reduction of power consumption caused by audio playback while maintaining the quality and stability of audio playback, thereby ensuring the audio playback effect. Furthermore, power reduction is only performed when the playback volume exceeds a volume threshold, further guaranteeing the audio playback effect and better meeting user needs.

[0109] It should be noted that the audio playback methods provided in the foregoing embodiments can be combined. For example, when the playback volume is greater than a volume threshold, the electronic device can, based on the audio playback scenario corresponding to the first audio signal to be played, determine audio processing parameters that match the dynamic range and playback volume of the first audio signal from the audio processing parameters corresponding to the audio playback scenario, and use these as target processing parameters. The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario, and the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the value of the dynamic range, and positively correlated with the playback volume. After determining the target processing parameters, the frequency point to be adjusted in the first audio signal can be determined based on the auditory curve. Based on the sub-frequency band to which the frequency point to be adjusted belongs, the sub-processing parameters corresponding to the sub-frequency band can be determined from the target processing parameters. Then, based on the sub-processing parameters, energy suppression processing is performed on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal to obtain the second audio signal.

[0110] The audio playback method provided in the aforementioned embodiments will be further illustrated by examples below.

[0111] For example, please refer to Figure 6 When the playback volume of the audio signal by the electronic device exceeds a volume threshold, the audio playback method provided in the aforementioned application embodiment is executed to obtain an audio scene tag. The scene tag is used to indicate the current audio playback scene, such as a music playback scene, a movie playback scene, a short video playback scene, an audiobook scene, a game audio playback scene, etc. Based on the dynamic range of the audio signal to be played, audio processing parameters that match the dynamic range can be determined from the audio processing parameters corresponding to the audio playback scene. Then, based on the determined audio processing parameters, energy suppression processing is performed on the audio signal to be played, and the processed audio signal is played, thereby reducing the power consumption caused by audio playback while ensuring the playback effect of audio playback.

[0112] Please see Figure 7 , Figure 7 A flowchart illustrating an audio playback method according to yet another embodiment of this application is shown. This audio playback method is applied to the aforementioned electronic device, and will be discussed below. Figure 7 The process shown will be described in detail. The audio playback method may specifically include the following steps:

[0113] Step S610: If the playback scenario of the first audio signal is the target scenario and the remaining power of the electronic device is lower than the power threshold, then based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters for energy suppression processing corresponding to the first audio signal as the target processing parameters.

[0114] Wherein, the power consumption rate of the electronic device in the target scenario is greater than the speed threshold, and the degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario.

[0115] In this embodiment of the application, considering that energy suppression processing of audio signals may affect the playback effect of electronic devices, the electronic devices may execute the audio playback method provided in this embodiment of the application only when the corresponding conditions are met.

[0116] The electronic device can determine the playback scenario of the first audio signal, such as a music playback scenario, a short video playback scenario, a movie scenario, an audiobook scenario, a map navigation broadcast scenario, etc.; and the electronic device can also determine the current remaining battery power; the electronic device can match the current playback scenario with a target scenario, where the power consumption rate in the target scenario is greater than a speed threshold, for example, the target scenario may include a video playback scenario or a live broadcast scenario; in addition, it determines whether the remaining battery power of the electronic device is lower than a battery threshold, for example, the battery threshold is 40% of the maximum battery power; if the playback scenario is the target scenario and the remaining battery power of the electronic device is lower than the battery threshold, it means that the current power consumption rate of the electronic device is relatively fast and the remaining battery power is low. Therefore, in order to improve the battery life of the electronic device, the audio playback method provided in this application embodiment can be executed, that is, for the first audio signal to be played, based on the audio playback scenario corresponding to the first audio signal to be played, the audio processing parameters corresponding to the first audio signal are determined, and subsequent steps are executed; if the playback scenario is not the target scenario, and / or the remaining battery power of the electronic device is not lower than the battery threshold, the audio processing parameters corresponding to the first audio signal are not determined, and the first audio signal is played directly.

[0117] Step S620: Based on the target processing parameters and the auditory curve corresponding to the first audio signal, perform energy suppression processing on at least a portion of the sub-audio signals in the first audio signal to obtain the second audio signal.

[0118] Step S630: Play the second audio signal.

[0119] In the embodiments of this application, steps S620 and S630 can be referred to the contents of other embodiments, and will not be repeated here.

[0120] The audio playback method provided in this application can reduce the power consumption of audio playback based on the auditory curve, taking into account the audio playback quality requirements in different audio playback scenarios. This allows for the reduction of power consumption caused by audio playback while maintaining the quality and stability of audio playback, thereby ensuring the playback effect. Furthermore, the power reduction process is only performed when the electronic device is in a playback scenario with a high power consumption rate and the remaining power is below the power threshold, which further ensures the audio playback effect and better meets the user's needs.

[0121] Please see Figure 8This document illustrates a structural block diagram of an audio playback device 700 provided in an embodiment of this application. The audio playback device 700 utilizes the aforementioned electronic device and includes: a parameter determination module 710, an energy reduction module 720, and a playback execution module 730. The parameter determination module 710 determines, based on an audio playback scenario corresponding to a first audio signal to be played, audio processing parameters for energy suppression processing of the first audio signal, as target processing parameters. The degree of energy reduction of the audio signal corresponding to the audio processing parameters is negatively correlated with the audio playback quality required by the audio playback scenario. The energy reduction module 720 performs energy suppression processing on at least a portion of the sub-audio signals in the first audio signal based on the target processing parameters and the auditory curve corresponding to the first audio signal, obtaining a second audio signal. The playback execution module 730 plays the second audio signal.

[0122] In some implementations, the parameter determination module 710 may be specifically used to: based on the audio playback scenario corresponding to the first audio signal to be played, determine, from the audio processing parameters corresponding to the audio playback scenario, an audio processing parameter that matches the dynamic range of the first audio signal, as the target processing parameter, wherein the degree of energy reduction of the audio signal corresponding to the audio processing parameter is negatively correlated with the audio playback quality required by the audio playback scenario, and the degree of energy reduction of the audio signal corresponding to the audio processing parameter is negatively correlated with the value of the dynamic range.

[0123] In some implementations, the parameter determination module 710 may be specifically used to: based on the audio playback scenario corresponding to the first audio signal, determine, from the audio processing parameters corresponding to the audio playback scenario, an audio processing parameter that matches the playback volume corresponding to the first audio signal as a target processing parameter, wherein the degree of energy reduction of the audio signal corresponding to the audio processing parameter is negatively correlated with the audio playback quality required by the audio playback scenario and positively correlated with the playback volume.

[0124] In some implementations, the energy reduction module 720 may be specifically used to: determine the frequency point to be adjusted in the first audio signal based on the auditory curve, wherein the energy corresponding to the frequency point to be adjusted is lower than the auditory masking threshold corresponding to the frequency point to be adjusted; and perform energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal based on the target processing parameters to obtain a second audio signal.

[0125] In one possible implementation, the target processing parameters include processing parameters corresponding to different sub-frequency bands. The energy reduction module 720 can also be used to determine the sub-processing parameters corresponding to the sub-frequency band based on the sub-frequency band to which the frequency point to be adjusted belongs from the target processing parameters; and based on the sub-processing parameters, perform energy suppression processing on the sub-audio signal corresponding to the frequency point to be adjusted in the first audio signal to obtain the second audio signal.

[0126] In some implementations, the parameter determination module 710 may be specifically used to: if the playback volume corresponding to the first audio signal is greater than the volume threshold, determine the audio processing parameters corresponding to the first audio signal as target processing parameters based on the audio playback scenario corresponding to the first audio signal to be played.

[0127] In some embodiments, the audio playback device 700 may further include a curve acquisition module. The curve acquisition module is used to acquire the auditory curve corresponding to the first audio signal based on a psychoacoustic model before obtaining the second audio signal by reducing the energy of at least a portion of the sub-audio signals in the first audio signal based on the target processing parameters and the auditory curve corresponding to the first audio signal.

[0128] In some implementations, the parameter determination module 710 may be specifically used to: if the playback scenario of the first audio signal is a target scenario and the remaining power of the electronic device is lower than the power threshold, then based on the audio playback scenario corresponding to the first audio signal to be played, determine the audio processing parameters for energy suppression processing corresponding to the first audio signal as the target processing parameters.

[0129] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0130] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0131] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0132] In summary, the solution provided in this application obtains the auditory curve corresponding to the first audio signal to be played based on a psychoacoustic model. Based on the obtained auditory curve, and according to at least one of the audio information and playback information of the first audio signal, the energy of at least a portion of the sub-audio signals in the first audio signal is reduced to obtain a second audio signal, which is then played. Therefore, when reducing the power consumption of audio playback based on the auditory curve, the required audio playback quality in different audio playback scenarios is considered. This allows for reducing the power consumption of audio playback while maintaining the quality and stability of audio playback, thereby ensuring the optimal audio playback effect.

[0133] Please refer to Figure 9 This document illustrates a structural block diagram of an electronic device according to an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, smartwatch, e-reader, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more applications are configured to perform the methods described in the foregoing method embodiments.

[0134] Processor 110 may include one or more processing cores. Processor 110 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets, or instruction sets stored in memory 120, and by calling data stored in memory 120. Optionally, processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 110 and may be implemented separately using a communication chip.

[0135] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).

[0136] Please refer to Figure 10 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 800 stores program code that can be called by a processor to execute the methods described in the above method embodiments.

[0137] The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. An audio playback method, characterized by, The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene; performing energy suppression processing on at least part of sub-audio signals in the first audio signal based on the target processing parameter and an auditory curve corresponding to the first audio signal to obtain a second audio signal; playing the second audio signal.

2. The method of claim 1, wherein, The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range.

3. The method of claim 1, wherein, The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range.

4. The method of claim 1, wherein, The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises:

5. The method of claim 4, wherein, determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range. The method comprises: determining, based on an audio playing scene corresponding to a first audio signal to be played, an audio processing parameter corresponding to the first audio signal and used for energy suppression processing as a target processing parameter, wherein an energy reduction degree of an audio signal corresponding to the audio processing parameter is negatively correlated with an audio playing quality required by the audio playing scene, and the energy reduction degree of the audio signal corresponding to the audio processing parameter is negatively correlated with a value of a dynamic range.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The method further includes:

7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The method further includes:

8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The method further includes:

9. An audio playback device, characterized by The method further includes: The device includes: The parameter determination module is configured to determine, based on an audio playback scenario corresponding to the first audio signal to be played, an audio processing parameter corresponding to the first audio signal for performing energy suppression processing as a target processing parameter, where an energy reduction degree of the audio processing parameter on an audio signal is negatively correlated with an audio playback quality required by the audio playback scenario. The energy reduction module is configured to perform energy suppression processing on at least part of sub-audio signals in the first audio signal based on the target processing parameter and an auditory curve corresponding to the first audio signal to obtain a second audio signal.

10. An electronic device, comprising: The playback execution module is configured to play the second audio signal. The device includes: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the method in any one of claims 1-8.