Audio playing method and device, storage medium, chip and earphone

By using loudness compensation data in the headset to adjust the audio loudness, the sound effect difference caused by individual differences in headset users is solved, and the audio effect consistency of the headset for different users is achieved, and the headset performance and user experience are improved.

CN120075673APending Publication Date: 2025-05-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311607845.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The sound effects differences caused by individual ear canals of different earphone users affect the consistency of headphone performance evaluation and user experience.

Method used

By determining the audio to be played from the currently played audio when the headset is in the audio playback state, and obtaining the target loudness compensation value of each target frequency point from the pre-stored loudness compensation data, the target standby loudness of each target frequency point in the played audio is determined based on these values, and the audio is played according to the loudness.

Benefits of technology

The same audio effect is achieved for different headset users, eliminating the sound effect differences caused by individual headset users, which is conducive to improving headset performance and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075673A_ABST
    Figure CN120075673A_ABST
Patent Text Reader

Abstract

The invention relates to an audio playing method and device, a storage medium, a chip and an earphone, under the condition that it is determined that the earphone is in an audio playing state, an audio to be played is determined from currently played audios, and a target loudness compensation value corresponding to each target frequency point in the audio to be played is obtained from pre-stored loudness compensation data, the target to-be-used loudness of each target frequency point in the to-be-played audio is determined according to the target loudness compensation value, and the to-be-played audio is played according to the target to-be-used loudness of each target frequency point in the to-be-played audio, so that the target to-be-used loudness of each target frequency point in the to-be-played audio can be determined according to the target loudness compensation value; and the to-be-played audio is played by the earphone through the target to-be-used loudness of each target frequency point, and the same audio effect can be generated for different earphone users, so that the sound effect difference caused by the individual difference of the earphone users is eliminated, the earphone performance is further improved, and the earphone user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of earphones, and particularly to an audio playback method, apparatus, storage medium, chip and earphone. Background Art

[0002] With the development of technology, users' requirements for the performance of earphones are getting higher and higher. From wired earphones to wireless earphones, most earphone users pay more attention to performance such as the sound quality, frequency response range and sound insulation effect of earphones. However, earphones may produce different audio effects for different earphone users, which may lead to inconsistent performance evaluations of the same earphone by different earphone users, and is not conducive to the experience of earphone users. Summary of the Invention

[0003] To overcome the problems in the related art, the present disclosure provides an audio playback method, apparatus, storage medium, chip and earphone.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an audio playback method, which is applied to an earphone. The method includes:

[0005] When it is determined that the earphone is in an audio playback state, determine the audio to be played from the currently played audio, and obtain the target loudness compensation value corresponding to each target frequency point in the audio to be played from the pre-stored loudness compensation data, where the loudness compensation data includes the loudness compensation values corresponding to multiple frequency points;

[0006] Determine the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value;

[0007] Play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

[0008] Optionally, the loudness compensation data is pre-determined in the following manner:

[0009] When the earphone plays a test audio, obtain the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio;

[0010] Determine the loudness compensation value of each frequency point according to the target loudness and the audio loudness.

[0011] Optionally, the determining the loudness compensation value of each frequency point according to the target loudness and the audio loudness includes:

[0012] Determine the difference between the target loudness and the audio loudness corresponding to each frequency point in the test audio;

[0013] Taking the difference corresponding to each frequency point as the loudness compensation value of the frequency point, so as to obtain the loudness compensation value of each frequency point in the test audio.

[0014] Optionally, the determining the loudness compensation value of each frequency point according to the target loudness and the audio loudness further includes:

[0015] Generating a first curve according to each frequency point in the test audio and the target loudness corresponding to the frequency point;

[0016] Generating a second curve according to each frequency point in the test audio and the audio loudness corresponding to the frequency point;

[0017] Determining the loudness compensation value corresponding to each frequency point in the test audio according to the first curve and the second curve.

[0018] Optionally, determining the target standby loudness of each target frequency point in the to-be-played audio according to the target loudness compensation value includes:

[0019] Determining the initial standby loudness of each target frequency point in the to-be-played audio;

[0020] For each target frequency point, determining the sum value of the initial standby loudness and the target loudness compensation value to obtain the target standby loudness of each target frequency point.

[0021] Optionally, the obtaining the target loudness compensation value corresponding to each target frequency point in the to-be-played audio from the pre-stored loudness compensation data includes:

[0022] Determining the standby loudness compensation value corresponding to the target frequency point from the loudness compensation data;

[0023] Taking the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

[0024] Optionally, the determining the to-be-played audio from the currently playing audio includes:

[0025] Dividing the currently playing audio into multiple sub-audios under multiple time windows;

[0026] Taking the sub-audio corresponding to the current time window as the to-be-played audio.

[0027] According to a second aspect of the embodiments of the present disclosure, there is provided an audio playback device, which is applied to a headset, and the device includes:

[0028] A first acquisition module is configured to, when determining that the earphone is in an audio playing state, determine the audio to be played from the currently played audio, and acquire a target loudness compensation value corresponding to each target frequency point in the audio to be played from pre-stored loudness compensation data, wherein the loudness compensation data includes loudness compensation values ​​corresponding to a plurality of frequency points;

[0029] A first determination module is configured to determine a target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value;

[0030] The second determining module is configured to play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

[0031] Optionally, the device further comprises:

[0032] A second acquisition module is configured to acquire, when the earphone plays the test audio, the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio;

[0033] The third determination module is configured to determine a loudness compensation value for each frequency point according to the target loudness and the audio loudness.

[0034] Optionally, the third determining module is configured to:

[0035] Determine a difference between the target loudness corresponding to each frequency point in the test audio and the audio loudness;

[0036] The difference corresponding to each frequency point is used as the loudness compensation value of the frequency point to obtain the loudness compensation value of each frequency point in the test audio.

[0037] Optionally, the third determining module is configured to:

[0038] generating a first curve according to each frequency point in the test audio and the target loudness corresponding to the frequency point;

[0039] generating a second curve according to each frequency point in the test audio and the audio loudness corresponding to the frequency point;

[0040] A loudness compensation value corresponding to each frequency point in the test audio is determined according to the first curve and the second curve.

[0041] Optionally, the first determining module is configured to:

[0042] Determine the initial standby loudness of each target frequency point in the audio to be played;

[0043] For each target frequency point, determine the sum of the initial standby loudness and the target loudness compensation value to obtain the target standby loudness for each target frequency point.

[0044] Optionally, the first acquisition module is configured to:

[0045] Determine the standby loudness compensation value corresponding to the target frequency point from the loudness compensation data;

[0046] Use the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

[0047] Optionally, the first acquisition module is configured to:

[0048] Divide the currently playing audio into multiple sub-audios under multiple time windows;

[0049] Use the sub-audio corresponding to the current time window as the audio to be played.

[0050] According to the third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0051] According to the fourth aspect of the embodiments of the present disclosure, there is provided a chip, including a processor and an interface; the processor is used to read instructions to execute the method described in the first aspect.

[0052] According to the fifth aspect of the embodiments of the present disclosure, there is provided a headset, the headset includes: the device described in the second aspect above, or the chip described in the fourth aspect.

[0053] In the above technical solution, when it is determined that the headset is in the audio playback state, the audio to be played is determined from the currently playing audio, and the target loudness compensation value corresponding to each target frequency point in the audio to be played is obtained from the pre-stored loudness compensation data, where the loudness compensation data includes loudness compensation values corresponding to multiple frequency points. The target standby loudness of each target frequency point in the audio to be played is determined according to the target loudness compensation value, and the audio to be played is played according to the target standby loudness of each target frequency point in the audio to be played. In this way, the target standby loudness of each target frequency point in the audio to be played can be determined according to the target loudness compensation value, so that the headset plays the audio to be played through the target standby loudness of each target frequency point, and the same audio effect can be generated for different headset users, thereby eliminating the sound effect difference caused by individual differences of headset users, which is beneficial to further improving the headset performance and enhancing the headset user experience.

[0054] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0056] Figure 1 is a flowchart of an audio playback method shown according to an exemplary embodiment;

[0057] Figure 2 is a spectrogram of audio data shown according to an exemplary embodiment;

[0058] Figure 3 is according to Figure 1 shown in the embodiment shown is a flowchart of an audio playback method;

[0059] Figure 4 is a block diagram of a headset shown according to an exemplary embodiment;

[0060] Figure 5 is a block diagram of an audio playback device shown according to an exemplary embodiment;

[0061] Figure 6 is a block diagram of another audio playback device shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0062] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0063] Before introducing the specific embodiments of the present disclosure in detail, the application scenarios of the present disclosure are described as follows. The present disclosure is applied to an earphone, and the earphone may include an FB (Feed Back) microphone and an earphone speaker. Generally, an adaptive EQ (Equalizer) can be used to compensate for different leakage differences of earphone users, so that different leakages achieve similar bass effects, and hearing loss compensation can be performed for the hearing loss differences of earphone users. The principle can be to play audio with different frequencies and loudness, let the earphone user judge whether they can hear, and then generate a hearing loss curve corresponding to the individual earphone user in turn, and perform corresponding compensation to make up for the high-frequency loss caused by the hearing loss of the earphone user. However, there are certain differences in the ear canals of earphone users. This individual difference in the ear canals will cause certain differences in the audio effects generated after different earphone users resonate with the same audio, making it impossible to determine the quality of the generated audio effects. This uncertain audio effect often leads to inconsistent performance evaluations of the same earphone by earphone users, which is not conducive to improving the performance of the earphone. Moreover, there is no technical solution in the prior art to solve the defect that the individual differences in the ear canals of earphone users cause different sound effects after the sound waves emitted by the earphone resonate with the ear canals of different earphone users.

[0064] To solve the above technical problems, the present disclosure provides an audio playback method, device, storage medium, chip and earphone. When it is determined that the earphone is in the audio playback state, the audio to be played is determined from the currently played audio, and the target loudness compensation value corresponding to each target frequency point in the audio to be played is obtained from the pre-stored loudness compensation data. The loudness compensation data includes the loudness compensation values corresponding to multiple frequency points. The target standby loudness of each target frequency point in the audio to be played is determined according to the target loudness compensation value, and the audio to be played is played according to the target standby loudness of each target frequency point in the audio to be played. In this way, the target standby loudness of each target frequency point in the audio to be played can be determined according to the target loudness compensation value, so that the earphone plays the audio to be played according to the target standby loudness of each target frequency point, and the same audio effect can be generated for different earphone users, thereby eliminating the sound effect difference caused by the individual differences of earphone users, which is beneficial to further improving the performance of the earphone and enhancing the earphone user experience.

[0065] Figure 1 is a flowchart of an audio playback method shown according to an exemplary embodiment. As Figure 1 shown, the audio playback method may include the following steps:

[0066] In step 101, when it is determined that the earphone is in an audio playing state, audio to be played is determined from the currently playing audio, and a target loudness compensation value corresponding to each target frequency point in the audio to be played is obtained from pre-stored loudness compensation data.

[0067] The loudness compensation data includes loudness compensation values ​​corresponding to multiple frequency points. The target frequency point can be understood as the frequency point included in the audio to be played, and the target frequency point corresponds to the frequency in the frequency spectrum of the audio to be played. The target loudness compensation value can be understood as a compensation value used to compensate the loudness corresponding to the target frequency point in the audio to be played.

[0068] It should be noted that one audio data may include multiple different frequency points, and different audio data may include the same frequency point. For example, Figure 2 As shown, Figure 2 The present invention is a spectrum diagram of audio data according to an exemplary embodiment. The spectrum diagram uses frequency as the horizontal axis and loudness as the vertical axis. Each horizontal axis can be a frequency point. For example, frequency point 1 can indicate that the frequency of the audio to be played is 40 Hz, frequency point 2 can indicate that the frequency of the audio to be played is 450 Hz, and frequency point 3 can indicate that the frequency of the audio to be played is 720 Hz.

[0069] In this step, the target loudness compensation value corresponding to each target frequency point in the audio to be played may be obtained from the pre-stored loudness compensation data by determining a standby loudness compensation value corresponding to the target frequency point from the loudness compensation data, and using the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

[0070] In this step, an implementation method of determining the audio to be played from the currently playing audio may be: dividing the currently playing audio into multiple sub-audio segments under multiple time windows; and using the sub-audio corresponding to the current time window as the audio to be played.

[0071] It should be noted that the duration of the currently playing audio can be divided into multiple time windows, so that the currently playing audio can be divided into multiple sub-audios under multiple time windows, and the sub-audios corresponding to the current time window are used as the audio to be played.

[0072] For example, the duration of the currently played audio may be 3 minutes, and the duration of 3 minutes may be divided into 30 6-second time windows, and the sub-audio corresponding to the current 6-second time window may be used as the audio to be played.

[0073] Another implementation of determining the audio to be played from the currently playing audio in this step may be: using the currently playing audio as the audio to be played.

[0074] For example, the duration of the currently played audio may be 2.5 minutes, and the currently played audio may be directly used as the audio to be played.

[0075] It should be noted that the above two implementation methods of determining the audio to be played from the currently playing audio in this step can be used simultaneously. For example, if the duration of the currently playing audio is greater than 3 minutes, the currently playing audio is divided into multiple sub-audios under multiple time windows, and the sub-audios corresponding to the current time window are used as the audio to be played; if the duration of the currently playing audio is less than or equal to 3 minutes, the currently playing audio is used as the audio to be played. Loudness compensation values ​​corresponding to multiple frequency points are pre-stored in the earphone, that is, loudness compensation data. When the earphone is in the audio playing state, it can be searched from the loudness compensation data to obtain the standby loudness compensation value corresponding to the target frequency point of the currently playing audio, and the standby loudness compensation value is used as the target loudness compensation value corresponding to the target frequency point to compensate the loudness corresponding to the target frequency point.

[0076] For example, the loudness compensation value corresponding to frequency point 1 in the loudness compensation data may be 0.10 dB, and the loudness compensation value corresponding to frequency point 2 may be -0.15 dB. The loudness compensation value 0.10 dB corresponding to frequency point 1 in the loudness compensation data may be used as the target loudness compensation value corresponding to frequency point 1 in the audio to be played, and the loudness compensation value -0.15 dB corresponding to frequency point 2 in the loudness compensation data may be used as the target loudness compensation value corresponding to frequency point 2 in the audio to be played.

[0077] In step 102, a target standby loudness of each target frequency point in the audio to be played is determined according to the target loudness compensation value.

[0078] The specific implementation method of this step may be: determining the initial standby loudness of each target frequency point in the audio to be played, and determining the sum of the initial standby loudness and the target loudness compensation value for each target frequency point to obtain the target standby loudness of each target frequency point.

[0079] The initial standby loudness may be understood as the loudness without adjusting the loudness corresponding to the target frequency point in the audio to be played.

[0080] It should be noted that, when the target loudness compensation value corresponding to the target frequency is determined, the initial standby loudness of each target frequency in the audio to be played is determined, and the initial standby loudness of the target frequency is added to the target loudness compensation value corresponding to the target frequency to obtain the sum of the initial standby loudness of the target frequency and the target loudness compensation value corresponding to the target frequency, and the sum can be used as the target standby loudness of each target frequency.

[0081] Exemplarily, the target loudness compensation value corresponding to frequency point 1 in the audio to be played can be 0.10 dB, and the initial standby loudness of frequency point 1 in the audio to be played can be 1 dB. Adding the target loudness compensation value corresponding to frequency point 1 in the audio to be played to the initial standby loudness of frequency point 1 in the audio to be played, the target standby loudness of frequency point 1 in the audio to be played can be obtained as 1.10 dB. The target loudness compensation value corresponding to frequency point 2 in the audio to be played can be -0.15 dB, and the initial standby loudness corresponding to frequency point 2 in the audio to be played can be 0.90 dB. Adding the target loudness compensation value corresponding to frequency point 2 in the audio to be played to the initial standby loudness corresponding to frequency point 2 in the audio to be played, the target standby loudness of frequency point 2 in the audio to be played can be obtained as 0.75 dB.

[0082] In step 103, play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

[0083] It should be noted that, in the case of obtaining the target standby loudness of each target frequency point in the audio to be played, the headset plays the audio to be played through the target standby loudness of each target frequency point in the audio to be played, and can generate the same loudness for different headset users.

[0084] Exemplarily, the target standby loudness of frequency point 1 in the audio to be played can be 1.10 dB, and the headset plays the loudness of frequency point 1 in the audio to be played with the target standby loudness of 1.10 dB of frequency point 1 in the audio to be played. The target standby loudness of frequency point 2 in the audio to be played can be 0.75 dB, and the headset plays the loudness of frequency point 2 in the audio to be played with the target standby loudness of 0.75 dB of frequency point 2 in the audio to be played.

[0085] The above technical solution can determine the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value, so that the headset plays the audio to be played through the target standby loudness of each target frequency point, and can generate the same audio effect for different headset users, thereby eliminating the sound effect difference caused by the individual differences of headset users, which is beneficial to further improving the headset performance and enhancing the headset user experience.

[0086] Figure 3 is based on Figure 1 shown in the flowchart of an audio playback method according to the illustrated embodiment, as Figure 3 shown, Figure 1 The loudness compensation data described in step 101 in

[0087] S1. When the headset plays a test audio, obtain the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio.

[0088] Among them, the test audio can be the audio pre-set in the earphone, and the test audio can be a piece of music, voice, or other types of audio.

[0089] It should be noted that a test audio can be pre-set in the earphone. When the earphone plays the test audio, the FB microphone in the earphone can collect the audio loudness after the test audio resonates with the ear canal.

[0090] S2. Determine the loudness compensation value of each frequency point according to the target loudness and the audio loudness.

[0091] One implementation manner of this step can be: determine the difference between the target loudness and the audio loudness corresponding to each frequency point in the test audio; use the difference corresponding to each frequency point as the loudness compensation value of the frequency point to obtain the loudness compensation value of each frequency point in the test audio.

[0092] Another implementation manner of this step can be: generate a first curve according to each frequency point in the test audio and the target loudness corresponding to the frequency point; generate a second curve according to each frequency point in the test audio and the audio loudness corresponding to the frequency point; determine the loudness compensation value corresponding to each frequency point in the test audio according to the first curve and the second curve.

[0093] It should be noted that a first curve is generated with the frequency points in the test audio as the abscissa and the target loudness corresponding to the frequency points as the ordinate, and a second curve is generated with the frequency points in the test audio as the abscissa and the audio loudness corresponding to the frequency points as the ordinate. For the same frequency point, the difference between the ordinate of the first curve corresponding to the frequency point and the ordinate of the second curve corresponding to the frequency point can be calculated, and this difference is used as the loudness compensation value corresponding to the frequency point. In this way, the loudness compensation values corresponding to each frequency point in the test audio are obtained in turn.

[0094] Through the above technical solutions, by obtaining the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio, the loudness compensation value of each frequency point is accurately determined according to the target loudness and the audio loudness, and the loudness of each frequency point is accurately compensated, so that the earphone generates the same loudness for different earphone users, which is beneficial to further improving the performance of the earphone.

[0095] Figure 4 is a block diagram of an earphone shown according to an exemplary embodiment, as Figure 4As shown, the earphone may include: a DSP (Digital Signal Processing) chip, a DAC (Digital-to-Analog Converter), a speaker, and an FB microphone. The output end of the DSP can be connected to the speaker through the DAC. The DSP can pre-store a test audio. When the earphone plays the test audio, the DSP can send the test audio to the DAC in the form of a digital signal, so that the DAC converts the test audio into a voltage signal and sends the voltage signal to the speaker to drive the speaker to play the test audio stored by the DSP. The output end of the FB microphone is connected to the input end of the DSP. The FB microphone detects the resonant audio in the ear canal to obtain the audio loudness of the resonant audio and sends the audio loudness to the DSP. When the DSP receives the audio loudness sent by the FB microphone, it can obtain the target loudness corresponding to the test audio, determine the difference between the audio loudness of each frequency point and the target loudness corresponding to the frequency point, and use the difference as the loudness compensation value of the frequency point, so as to obtain the loudness compensation value corresponding to each frequency point in the test audio. The DSP can store the loudness compensation value corresponding to each frequency point in the test audio in the form of loudness compensation data. When the earphone is in the audio playback state, the DSP can determine the audio to be played from the currently played audio, obtain the target loudness compensation value corresponding to each target frequency point in the audio to be played from the pre-stored loudness compensation data, determine the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value, play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played, and send the target standby loudness to the speaker through the DAC, so that the speaker plays the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

[0096] It should be noted that if the FB microphone does not have the function of converting the collected audio loudness into a digital signal, the earphone may further include an ADC (Analog-to-Digital Converter). The ADC is connected between the output end of the FB microphone and the input end of the DSP and is used to convert the analog audio signal of the FB microphone into a digital audio signal and transmit the digital audio signal to the DSP.

[0097] The above technical solution can receive the audio loudness collected by the FB microphone through the DSP, determine the loudness compensation value corresponding to each frequency point in the test audio according to the audio loudness and the target loudness corresponding to the test audio, and store the loudness compensation value in the form of loudness compensation data; when the earphone is in the audio playing state, determine the audio to be played from the currently playing audio, obtain the target loudness compensation value corresponding to each target frequency point in the audio to be played from the pre-stored loudness compensation data, determine the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value, play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played, and send the target standby loudness to the speaker through the DAC, so that the speaker plays the audio to be played according to the target standby loudness of each target frequency point in the audio to be played, so that the earphone produces the same loudness and the same audio effect for different earphone users, thereby eliminating the sound effect difference caused by individual differences of earphone users, which is conducive to further improving the performance of the earphone and enhancing the user experience of the earphone.

[0098] Figure 5 5 is a block diagram of an audio playback device according to an exemplary embodiment, which is applied to headphones. As shown in FIG. 5 , the audio playback device includes:

[0099] The first acquisition module 401 is configured to, when it is determined that the earphone is in an audio playing state, determine the audio to be played from the currently played audio, and acquire a target loudness compensation value corresponding to each target frequency point in the audio to be played from pre-stored loudness compensation data, wherein the loudness compensation data includes loudness compensation values ​​corresponding to multiple frequency points;

[0100] A first determination module 402 is configured to determine a target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value;

[0101] The second determining module 403 is configured to play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

[0102] Figure 5 is a block diagram of another audio playback device according to an exemplary embodiment, which is applied to headphones, such as Figure 5 As shown, the audio playback device may further include:

[0103] The second acquisition module 404 is configured to acquire, when the earphone plays the test audio, the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio;

[0104] The third determination module 405 is configured to determine a loudness compensation value for each frequency point according to the target loudness and the audio loudness.

[0105] Optionally, the third determination module 405 is configured to:

[0106] Determine the difference between the target loudness corresponding to each frequency point in the test audio and the audio loudness;

[0107] Use the difference corresponding to each frequency point as the loudness compensation value for the frequency point, so as to obtain the loudness compensation value for each frequency point in the test audio.

[0108] Optionally, the third determination module 405 is configured to:

[0109] Generate a first curve according to each frequency point in the test audio and the target loudness corresponding to the frequency point;

[0110] Generate a second curve according to each frequency point in the test audio and the audio loudness corresponding to the frequency point;

[0111] Determine the loudness compensation value corresponding to each frequency point in the test audio according to the first curve and the second curve.

[0112] Optionally, the first determination module 402 is configured to:

[0113] Determine the initial standby loudness of each target frequency point in the audio to be played;

[0114] For each target frequency point, determine the sum of the initial standby loudness and the target loudness compensation value, so as to obtain the target standby loudness of each target frequency point.

[0115] Optionally, the first acquisition module 401 is configured to:

[0116] Determine the standby loudness compensation value corresponding to the target frequency point from the loudness compensation data;

[0117] Use the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

[0118] Optionally, the first acquisition module 401 is configured to:

[0119] Determine the standby loudness compensation value corresponding to the target frequency point from the loudness compensation data;

[0120] Use the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

[0121] Optionally, the first acquisition module 401 is configured to:

[0122] Divide the currently played audio into multiple sub-audios under multiple time windows;

[0123] The sub-audio corresponding to the current time window is used as the audio to be played.

[0124] The above technical scheme can determine the target standby loudness of each target frequency point in the currently played audio according to the target loudness compensation value, so that the headset plays the currently played audio at the target standby loudness of each target frequency point, and can produce the same audio effect for different headphone users, thereby eliminating the sound effect differences caused by individual differences of headphone users, which is conducive to further improving the performance of the headphone and enhancing the headphone user experience.

[0125] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0126] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and when the program instructions are executed by a processor, the present disclosure provides Figure 1 or Figure 2 The steps of the audio playing method.

[0127] Above Figure 4The earphone shown can be not only an independent earphone device, but also a part of an independent earphone device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip. The integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or code) to implement the above-mentioned audio playback method. The executable instructions can be stored in the integrated circuit or chip, or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory and, when executed by the processor, implement the above-mentioned audio playback method; or, the integrated circuit or chip can receive the executable instructions through the interface and transmit them to the processor for execution to implement the above-mentioned audio playback method.

[0128] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned audio playback method when executed by the programmable device.

[0129] Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0130] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. An audio playback method, characterized in that, applied to headphones, the method includes: When it is determined that the headphones are in the audio playback state, determine the audio to be played from the currently played audio, and obtain the target loudness compensation value corresponding to each target frequency point in the audio to be played from the pre-stored loudness compensation data, where the loudness compensation data includes the loudness compensation values corresponding to multiple frequency points; Determine the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value; Play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

2. The audio playback method according to claim 1, characterized in that, The loudness compensation data is pre-determined in the following manner: When the headphones play a test audio, obtain the audio loudness after the test audio resonates with the ear canal and the target loudness corresponding to the test audio; Determine the loudness compensation value of each frequency point according to the target loudness and the audio loudness.

3. The audio playback method according to claim 2, characterized in that, The determining the loudness compensation value of each frequency point according to the target loudness and the audio loudness includes: Determine the difference between the target loudness and the audio loudness corresponding to each frequency point in the test audio; Use the difference corresponding to each frequency point as the loudness compensation value of the frequency point to obtain the loudness compensation value of each frequency point in the test audio.

4. The audio playback method according to claim 2, characterized in that, The determining the loudness compensation value of each frequency point according to the target loudness and the audio loudness further includes: Generate a first curve according to each frequency point in the test audio and the target loudness corresponding to the frequency point; Generate a second curve according to each frequency point in the test audio and the audio loudness corresponding to the frequency point; Determine the loudness compensation value corresponding to each frequency point in the test audio according to the first curve and the second curve.

5. The audio playback method according to claim 1, characterized in that, The determining the target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value includes: Determine the initial standby loudness of each target frequency point in the audio to be played; For each target frequency point, determine the sum of the initial standby loudness and the target loudness compensation value to obtain the target standby loudness of each target frequency point.

6. The audio playback method according to claim 1, characterized in that, The obtaining the target loudness compensation value corresponding to each target frequency point in the audio to be played from the pre-stored loudness compensation data includes: Determine the standby loudness compensation value corresponding to the target frequency point from the loudness compensation data; Use the standby loudness compensation value as the target loudness compensation value corresponding to the target frequency point.

7. The audio playback method according to claim 1, characterized in that, The determining the audio to be played from the currently played audio includes: Divide the currently played audio into multiple sub-audios under multiple time windows; Use the sub-audio corresponding to the current time window as the audio to be played.

8. An audio playback device, It is characterized in that Applied to headphones, the device comprises: A first acquisition module is configured to, when determining that the earphone is in an audio playing state, determine the audio to be played from the currently played audio, and acquire a target loudness compensation value corresponding to each target frequency point in the audio to be played from pre-stored loudness compensation data, wherein the loudness compensation data includes loudness compensation values ​​corresponding to a plurality of frequency points; A first determination module is configured to determine a target standby loudness of each target frequency point in the audio to be played according to the target loudness compensation value; The second determining module is configured to play the audio to be played according to the target standby loudness of each target frequency point in the audio to be played.

9. A computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. A chip, It is characterized in that The method comprises a processor and an interface; the processor is used to read instructions to execute the method according to any one of claims 1 to 7.

11. A headset, It is characterized in that The earphone comprises: the device described in claim 8 or the chip described in claim 10.