Sound field correction method and device and audio playing equipment

By performing audio acquisition and frequency response curve adjustment on the audio playback device, the sound field correction problem in the prior art that requires user intervention is solved, and the sound field adaptive correction without manual intervention is achieved, which improves the user experience.

CN120238803APending Publication Date: 2025-07-01ZHEJIANG FUTURE ELF ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202510286041.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

Existing audio playback equipment requires user intervention throughout the sound field correction process, resulting in poor user experience.

Method used

By collecting the current playback content, obtaining the current original audio file and echo cancellation audio file, determining the frequency response curve, and adjusting the echo cancellation frequency response curve according to the reference equalization curve to obtain the target frequency response curve, and then controlling the audio signal output according to the dynamic equalization curve to achieve adaptive sound field correction without manual intervention.

Benefits of technology

It realizes adaptive sound field correction without manual intervention in different acoustic environments, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238803A_ABST
    Figure CN120238803A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a sound field correction method and device and audio playing equipment. According to the embodiment of the invention, audio collection is carried out on the currently played content to obtain a current original audio file and a current echo cancellation audio file, and a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file are determined; and adjusting the current echo cancellation frequency response curve according to the reference equalization curve to obtain a target frequency response curve, determining a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve, and further controlling audio signal output according to the dynamic equalization curve. Wherein the reference equilibrium curve is used for representing the difference between the reference original frequency response curve and the reference echo cancellation frequency response curve. Therefore, according to the embodiment of the invention, the audio playing equipment can realize sound field self-adaptive correction on the premise of not needing manual intervention, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of acoustic technologies, and particularly to an acoustic field correction method, apparatus, and audio playback device. Background Art

[0002] With the development of acoustic technologies, people are paying more and more attention to the audio playback quality of audio playback devices. Among them, the audio playback quality of an audio playback device is affected not only by its own performance but also by the acoustic environment in which it is located. To this end, in order for users to enjoy playback content with the same sound quality when using an audio playback device in different acoustic environments, existing audio playback devices usually provide users with acoustic field correction services. However, the implementation of existing acoustic field correction basically requires the full intervention and cooperation of users, which results in a very poor user experience. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide an acoustic field correction method, apparatus, and audio playback device, so that the audio playback device can achieve acoustic field adaptive correction without manual intervention, thereby improving the user experience.

[0004] In a first aspect, an embodiment of the present invention aims to provide an acoustic field correction method, the method including:

[0005] Performing audio acquisition on the current playback content to obtain a current original audio file and a current echo cancellation audio file;

[0006] Determining a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file;

[0007] Adjusting the current echo cancellation frequency response curve according to a reference equalization curve to obtain a target frequency response curve, where the reference equalization curve is used to characterize the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve;

[0008] Determining a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve;

[0009] Controlling the output of an audio signal according to the dynamic equalization curve.

[0010] In a second aspect, an embodiment of the present invention aims to provide an acoustic field correction apparatus, the apparatus including:

[0011] An acquisition and obtaining unit, configured to perform audio acquisition on the current playback content to obtain a current original audio file and a current echo cancellation audio file;

[0012] A first frequency response curve determination unit, configured to determine a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file;

[0013] A second frequency response curve determination unit, configured to adjust the current echo cancellation frequency response curve according to a reference equalization curve to obtain a target frequency response curve, where the reference equalization curve is used to characterize the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve;

[0014] A dynamic equalization curve determination unit, configured to determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve;

[0015] An output control unit, configured to control the output of an audio signal according to the dynamic equalization curve.

[0016] In a third aspect, an embodiment of the present invention aims to provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method described in the first aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present invention aims to provide an audio playback device, and the device includes:

[0018] An audio playback component, configured to output an audio signal;

[0019] An audio acquisition component, configured to acquire an audio signal;

[0020] A memory, configured to store one or more computer program instructions;

[0021] A processor, and when the one or more computer program instructions are executed by the processor, the method described in the first aspect is implemented.

[0022] In a fifth aspect, an embodiment of the present invention aims to provide a computer program product, and when the computer program product runs on a computer, the computer is caused to execute the method described in the first aspect.

[0023] In the embodiments of the present invention, audio of the currently played content is collected to obtain the current original audio file and the current echo cancellation audio file, and the current original frequency response curve corresponding to the current original audio file and the current echo cancellation frequency response curve corresponding to the current echo cancellation audio file are determined. Then, the current echo cancellation frequency response curve is adjusted according to the reference equalization curve to obtain the target frequency response curve. Next, the dynamic equalization curve is determined based on the current original frequency response curve and the target frequency response curve, and further, the audio signal output is controlled according to the dynamic equalization curve. Wherein, the reference equalization curve is used to represent the difference between the reference original frequency response curve and the reference echo cancellation frequency response curve. Thus, the embodiments of the present invention can enable the audio playback device to achieve sound field self-adaptive correction without manual intervention, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Through the following description of the embodiments of the present invention with reference to the drawings, the above and other objects, features, and advantages of the present invention will become more apparent. In the drawings:

[0025] Figure 1 is a flowchart of the sound field correction method according to the embodiment of the present invention;

[0026] Figure 2 is a flowchart of the method for determining the dynamic equalization curve according to the embodiment of the present invention;

[0027] Figure 3 is a flowchart of the method for controlling the audio signal output according to the embodiment of the present invention;

[0028] Figure 4 is a flowchart of the method for determining the reference equalization curve according to the embodiment of the present invention;

[0029] Figure 5 is a flowchart of the method for determining the reference equalization curve according to the embodiment of the present invention;

[0030] Figure 6 is a flowchart of the method for verifying the reference equalization curve according to the embodiment of the present invention;

[0031] Figure 7 is a schematic diagram of the sound field correction device according to the embodiment of the present invention;

[0032] Figure 8 is a schematic diagram of the audio playback device according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] The present application will be described based on embodiments, but the present application is not limited to these embodiments. In the following detailed description of the present application, some specific details are described in detail. Those skilled in the art can fully understand the present application without the description of these details. In order to avoid obscuring the essence of the present application, well-known methods, processes, procedures, components, and circuits are not described in detail.

[0034] In addition, those of ordinary skill in the art should understand that the drawings provided herein are for illustrative purposes only, and the drawings are not necessarily drawn to scale.

[0035] Unless the context clearly requires otherwise, the words such as "including" and "comprising" in the entire application document should be interpreted as having an inclusive meaning rather than an exclusive or exhaustive meaning; that is, it means "including but not limited to".

[0036] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0037] For the solutions described in this specification and the embodiments, if they involve personal information processing, they will be processed on the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for performing a contract, etc.), and will only be processed within the specified or agreed scope. If the user refuses to process personal information other than the necessary information required for the basic functions, it will not affect the user's use of the basic functions.

[0038] Figure 1 This is a flowchart of the sound field correction method according to an embodiment of the present invention. It should be noted that the execution subject of the sound field correction method can be any audio playback device that simultaneously has an audio playback function and an audio acquisition function. Optionally, the audio playback device can be a mobile phone, a tablet computer, a speaker, a smart wearable device, a music player, a microphone device, etc., and the present application does not limit this. By executing the sound field correction method, the audio playback device can achieve sound field adaptive correction without manual intervention, thereby improving the user experience.

[0039] As Figure 1 shown, the sound field correction method may specifically include the following steps:

[0040] Step S100: Perform audio acquisition on the currently played content to obtain the current original audio file and the current echo cancellation audio file.

[0041] Specifically, when acoustic field correction is required, the audio playback device can first perform audio acquisition on the currently played content to obtain the current original audio file and the current echo cancellation audio file. Among them, the currently played content can be the content currently played by the audio playback device under the user's instruction, which can be music, audiobook, radio broadcast, conference recording, guiding voice, or sound effect, etc., and this application does not limit this. The original audio file can refer to the unprocessed audio data directly collected by the audio acquisition component (for example, microphone array). The echo cancellation audio file can refer to the audio data obtained after performing echo cancellation processing on the original audio file.

[0042] It should be noted that in the related art, in order to implement acoustic field correction, the audio playback device usually needs to first play specific content (for example, a test audio signal covering a certain frequency range), and then implement acoustic field correction based on the audio file obtained by performing audio acquisition on the specific content. Compared with the related art, in this embodiment, the audio playback device does not need to play specific content, but can implement acoustic field correction only relying on the audio file obtained by performing audio acquisition on any content currently played. Thus, the embodiment of the present invention can implement acoustic field correction without the user's awareness, thereby improving the user experience.

[0043] Optionally, in this embodiment, in addition to the user being able to judge whether the audio playback device needs to perform acoustic field correction, the audio playback device can also judge by itself whether acoustic field correction is required. Specifically, the audio playback device can be pre-set with corresponding acoustic field correction conditions. When it is detected that the acoustic field correction conditions are met, the audio playback device can confirm that acoustic field correction is currently required and start performing audio acquisition on the currently played content to obtain the current original audio file and the current echo cancellation audio file. Schematically, as a setting method, the satisfaction of the acoustic field correction conditions can be set to include a change in the placement position of the audio playback device, a change in the frequency response curve, and / or a mutation in the audio signal amplitude value. Among them, the detection of whether its own placement position has changed can be achieved by the audio playback device by using the corresponding sensors (for example, acceleration sensors) mounted on itself. The detection of whether the frequency response curve has changed and whether the audio signal amplitude value has mutated can be achieved by the audio playback device through audio acquisition and analysis of the played content. It should be understood that the above-given setting method of the acoustic field correction conditions is only for illustration, and in actual application, the acoustic field correction conditions can also be set to include other contents, and this application does not specifically limit this.

[0044] Optionally, in this embodiment, to ensure the accuracy of sound field calibration, whenever audio acquisition is required, the audio playback device can perform audio acquisition at a fixed sampling rate. Schematically, the specific value of this sampling rate can be set to 48 kHz. Optionally, in this embodiment, the time length of the audio file collected by the audio playback device for sound field calibration can be set according to actual situations (such as hardware parameters such as the maximum buffer capacity of the audio playback device), and this application does not limit this. Schematically, the time length of this audio file can be 3 - 5 s.

[0045] Step S200: Determine the current original frequency response curve corresponding to the current original audio file and the current echo cancellation frequency response curve corresponding to the current echo cancellation audio file.

[0046] Specifically, after obtaining the current original audio file and the current echo cancellation audio file, the audio playback device can determine the current original frequency response curve corresponding to the current original audio file and the current echo cancellation frequency response curve corresponding to the current echo cancellation audio file. Among them, the frequency response curve can also be called the frequency response curve, which can be used to characterize the amplitude gain or amplitude attenuation of the output signal relative to the input signal when the audio playback device plays audio signals of different frequencies. It should be noted that the frequency response curve of the audio playback device is not only affected by the device's own performance, but also by the acoustic environment in which it is located. In this embodiment, the original frequency response curve can be regarded as the frequency response curve of the audio playback device when it is affected by both. The echo cancellation frequency response curve can be regarded as the frequency response curve of the audio playback device when the acoustic environment influence is eliminated and it is only affected by its own performance.

[0047] Optionally, in step S200, the current original frequency response curve can be obtained by the audio playback device through analysis and processing of the current original audio file, and the current echo cancellation frequency response curve can be obtained by the audio playback device through analysis and processing of the current echo cancellation audio file. Among them, the analysis and processing method adopted by the audio playback device can include Fourier transform processing. The Fourier transform processing can be used to convert the audio signal from the time domain (time domain) to the frequency domain (frequency domain).

[0048] Step S300: Adjust the current echo cancellation frequency response curve according to the reference equalization curve to obtain the target frequency response curve.

[0049] Specifically, after determining the current original frequency response curve and the current echo cancellation frequency response curve, the audio playback device can adjust the current echo cancellation frequency response curve according to the reference equalization curve to obtain the target frequency response curve. Among them, the reference equalization curve can be pre-determined by the audio playback device, and it can be used to characterize the difference between the reference original frequency response curve and the reference echo cancellation frequency response curve (that is, to characterize the amplitude value difference between the two at each frequency).

[0050] It should be understood that here, the reference original frequency response curve can refer to the original frequency response curve determined when the audio playback device is placed in a reference acoustic environment (for example, a standard listening room), covering a preset frequency range (here, as a numerical setting method of a preset frequency range, the preset frequency range can be set as the sound frequency range that the human ear can perceive, that is, 20 Hz to 20 kHz). The reference echo cancellation frequency response curve can refer to the echo cancellation frequency response curve determined when the audio playback device is placed in a reference acoustic environment, covering the preset frequency range. In this embodiment, in order to ensure that the audio playback device can play music of the same quality in different acoustic environments, the audio playback device can use the reference original frequency response curve as the target for frequency response curve adjustment, so that when in different acoustic environments, it can adjust its own original frequency response curve to be consistent with the reference original frequency response curve through sound field correction. It should be noted that the current playback content of the audio playback device is any content specified by the user, and it does not necessarily cover all frequency ranges. Therefore, the current original frequency response curve and the current echo cancellation frequency response curve obtained by the audio playback device through audio collection and analysis of the current playback content actually only cover part of the frequency range. The so-called adjustment of the original frequency response curve to be consistent with the reference original frequency response curve mainly refers to making the amplitude values of the two consistent at the frequencies they commonly cover through sound field correction.

[0051] It should be understood that when the covered frequency ranges are the same, the audio playback device can directly compare the current original frequency response curve with the reference original frequency response curve to obtain the corresponding equalization curve, and then adjust its own original frequency response curve according to the corresponding equalization curve (the corresponding equalization curve can be used to adjust the original frequency response curve of the audio playback device by performing additional filtering on the input signal of the audio playback device). However, in this embodiment, since the covered frequency ranges are different, the audio playback device cannot directly compare the current original frequency response curve with the reference original frequency response curve to obtain the corresponding equalization curve. To solve this problem, in this embodiment, the audio playback device utilizes the characteristic that the frequency response curve of echo cancellation remains unchanged (that is, although different frequency response curves of echo cancellation cover different frequency ranges, for the same frequency covered, the amplitude values of different frequency response curves of echo cancellation at this frequency are the same), so as to adjust the current frequency response curve of echo cancellation according to the reference equalization curve, thereby obtaining a target frequency response curve that can be compared with the current original frequency response curve. Among them, the frequency range covered by the target frequency response curve is the same as the frequency range covered by the current original frequency response curve. It should be noted that in this embodiment, the frequency ranges covered by the target frequency response curve and the current original frequency response curve can be any part of the preset frequency range, and the present application does not limit this. Taking the preset frequency range from 20 Hz to 20 kHz as an example, the frequency ranges covered by the target frequency response curve and the current original frequency response curve can be from 20 Hz to 200 Hz, or from 100 Hz to 10 kHz, or from 200 Hz to 20 kHz, etc., and no more examples will be given here.

[0052] Step S400: Determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve.

[0053] Specifically, after obtaining the target frequency response curve, the audio playback device can determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve. Among them, the dynamic equalization curve can be used to represent the difference between the current original frequency response curve and the target frequency response curve (that is, represent the difference in amplitude values at each frequency of the two).

[0054] Figure 2 It is a flowchart of the method for determining the dynamic equalization curve according to the embodiment of the present invention. It should be understood that by executing the method for determining the dynamic equalization curve as Figure 2 shown, the audio playback device can determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve, that is, implement the above step S400. As Figure 2 shown, the method for determining the dynamic equalization curve can specifically include the following steps:

[0055] Step S410: Determine a third difference parameter based on the current original frequency response curve and the target frequency response curve.

[0056] Specifically, when determining the dynamic equalization curve, the audio playback device may first determine a third difference parameter according to the current original frequency response curve and the target frequency response curve. Among them, the third difference parameter can be used to represent the average amplitude difference between the current original frequency response curve and the target frequency response curve within the entire covered frequency range.

[0057] Optionally, since the frequency range covered by the current original frequency response curve is the same as the frequency range covered by the target frequency response curve, in step S410, the audio playback device may first calculate the average amplitude of the current original frequency response curve and the target frequency response curve within the entire covered frequency range, and then calculate the difference between the average amplitudes of the two frequency response curves to obtain the third difference parameter.

[0058] Step S420: Adjust the target frequency response curve according to the third difference parameter.

[0059] Specifically, after determining the third difference parameter, the audio playback device may adjust the target frequency response curve according to the third difference parameter. It should be understood that adjusting the target frequency response curve according to the third difference parameter may specifically refer to increasing or decreasing the overall amplitude of the target frequency response curve according to the third difference parameter.

[0060] Step S430: Compare the adjusted target frequency response curve with the current original frequency response curve to determine a plurality of fourth difference parameters.

[0061] Specifically, after adjusting the target frequency response curve according to the third difference parameter, the audio playback device may compare the adjusted target frequency response curve with the current original frequency response curve to determine a plurality of fourth difference parameters. Among them, the plurality of fourth difference parameters can be used to represent the amplitude difference between the adjusted target frequency response curve and the current original frequency response curve at each covered frequency, and / or to represent the average amplitude difference between the adjusted target frequency response curve and the current original frequency response curve within each covered frequency interval. For example, the plurality of fourth difference parameters can be used to represent that the amplitude difference between the target frequency response curve and the current original frequency response curve at 100 Hz is -8.5 dB, the average amplitude difference within 146 Hz - 166 Hz is 8.5 dB, the average amplitude difference within 219 Hz - 231 Hz is 10.5 dB, and the average amplitude difference within 170 Hz - 190 Hz is -0.5 dB. It should be understood that the above given fourth difference parameters are only for illustration, and they are not limited to this in actual applications.

[0062] Step S440: Generate the dynamic equalization curve according to the third difference parameter and the plurality of fourth difference parameters.

[0063] Specifically, after determining the third difference parameter and multiple fourth difference parameters, the audio playback device may generate a dynamic equalization curve based on the third difference parameter and the multiple fourth difference parameters.

[0064] Step S500: Control the output of the audio signal according to the dynamic equalization curve.

[0065] Specifically, after determining the dynamic equalization curve, the audio playback device may control the output of the audio signal according to the dynamic equalization curve.

[0066] Figure 3 It is a flowchart of the audio signal output control method according to an embodiment of the present invention. It should be understood that by executing the audio signal output control method as Figure 3 shown, the audio playback device may control the output of the audio signal according to the dynamic equalization curve, that is, the above step S500. As Figure 3 shown, the audio signal output control method may specifically include the following steps:

[0067] Step S510: Obtain the audio signal to be played.

[0068] Specifically, the audio playback device may obtain the audio signal to be played. Wherein, the audio signal to be played is the audio signal that the audio playback device needs to play at the next moment. It should be understood that the audio signal to be played may be any audio signal indicated by the user to be played, and the present application does not limit this.

[0069] Step S520: Adjust the audio signal to be played according to the dynamic equalization curve.

[0070] Specifically, after obtaining the audio signal to be played, the audio playback device may adjust the audio signal to be played according to the dynamic equalization curve. It should be understood that adjusting the audio signal to be played according to the dynamic equalization curve may specifically refer to adjusting the amplitude values corresponding to different frequencies in the audio signal to be played according to the dynamic equalization curve. This adjustment process may be implemented by the audio playback device by calling an equalizer tool.

[0071] Step S530: Play the adjusted audio signal to be played.

[0072] Specifically, after adjusting the audio signal to be played, the audio playback device may play the adjusted audio signal to be played.

[0073] Optionally, after determining the dynamic equalization curve, the audio playback device may also store the currently determined dynamic equalization curve. It should be understood that since it is the first dynamic equalization curve determined after the sound field correction condition is satisfied, before storing the currently determined dynamic equalization curve, the audio playback device may first delete the stored historical dynamic equalization curve. It should be understood that until the next sound field correction condition is satisfied, the stored dynamic equalization curve can be retrieved by the audio playback device at any time for adjusting the audio signal to be played.

[0074] Optionally, the applicable frequency range of the dynamic equalization curve determined by the audio playback device during a sound field correction process is actually related to the currently played content that is the object of audio collection, and it is specifically equal to the frequency coverage range of the currently played content. In this embodiment, as a way to update the applicable frequency range of the dynamic equalization curve, when the audio playback device detects its own played content covering a new frequency range, it may perform audio collection on the played content covering the new frequency range, determine a new dynamic equalization curve by performing the above related processes, and then update the original dynamic equalization curve with the newly determined dynamic equalization curve. It should be understood that before the next sound field correction condition is satisfied, the audio playback device can continuously update the applicable frequency range of the dynamic equalization curve to expand its applicable frequency range (the maximum can be expanded to the preset frequency range).

[0075] Figure 4 It is a flowchart of the method for determining the reference equalization curve according to the embodiment of the present invention. It should be understood that Figure 4 The shown method for determining the reference equalization curve can be executed by the audio playback device during the production test phase. By executing the method for determining the reference equalization curve as Figure 4 shown, the audio playback device can determine the reference equalization curve applicable to it.

[0076] As Figure 4 shown, the method for determining the reference equalization curve may specifically include the following steps:

[0077] Step S110: Play a test audio signal.

[0078] Specifically, the audio playback device can be placed in a reference acoustic environment. After being placed in the reference acoustic environment, the audio playback device can determine the reference equalization curve applicable to it with the help of relevant testers. When determining the reference equalization curve, the audio playback device can first play a test audio signal. Among them, in order to ensure that the subsequently determined reference equalization curve can cover the preset frequency range, the test audio signal can be an audio signal that covers the preset frequency range and has the same energy density at different frequencies.

[0079] Optionally, since the reference equalization curve will be used as the target for adjusting the frequency response curve of the audio playback device in different acoustic environments, in order to ensure the audio playback quality of the audio playback device, the reference equalization curve here can specifically be the original frequency response curve of the audio playback device after acoustic calibration. Specifically, before executing the reference equalization curve determination method, the audio playback device can also be acoustically calibrated in advance with the help of relevant testers to adjust its original frequency response curve to an optimal frequency response curve. Among them, the acoustic calibration method adopted by the relevant testers can be to determine the corresponding equalization curve for the audio playback device, and the audio playback device adjusts its original frequency response curve according to the corresponding equalization curve.

[0080] Step S120: Perform audio acquisition on the test audio signal to determine a reference original audio file and a reference echo cancellation audio file.

[0081] Specifically, while playing the test audio signal, the audio playback device can perform audio acquisition on the test audio signal to determine a reference original audio file and a reference echo cancellation audio file.

[0082] Step S130: Determine a reference original frequency response curve corresponding to the reference original audio file and a reference echo cancellation frequency response curve corresponding to the reference echo cancellation audio file.

[0083] Specifically, after determining the reference original audio file and the reference echo cancellation audio file, the audio playback device can determine a reference original frequency response curve corresponding to the reference original audio file and a reference echo cancellation frequency response curve corresponding to the reference echo cancellation audio file. Optionally, in step S130, the reference original frequency response curve can be obtained by the audio playback device through analysis and processing of the reference original audio file, and the reference echo cancellation frequency response curve can be obtained by the audio playback device through analysis and processing of the reference echo cancellation audio file. Among them, the analysis and processing method adopted by the audio playback device can be Fourier transform processing. The Fourier transform processing can be used to convert the audio signal from the time domain (time domain) to the frequency domain (frequency domain). It should be noted that since acoustic calibration has been performed in advance, the reference original frequency response curve obtained here can be regarded as the optimal frequency response curve of the audio playback device.

[0084] Step S140: Determine the reference equalization curve according to the reference original frequency response curve and the reference echo cancellation frequency response curve.

[0085] Specifically, after determining the reference original frequency response curve and the reference echo cancellation frequency response curve, the audio playback device can determine the reference equalization curve according to the reference original frequency response curve and the reference echo cancellation frequency response curve.

[0086] Figure 5This is a flowchart of the method for determining the reference equalization curve according to an embodiment of the present invention. It should be understood that by executing the reference equalization curve as shown in Figure 5 the audio playback device can determine the reference equalization curve based on the reference original frequency response curve and the reference echo cancellation frequency response curve, that is, the above step S140 is implemented. As shown in Figure 5 the method for determining the reference equalization curve may specifically include the following steps:

[0087] Step S141: Determine a first difference parameter according to the reference original frequency response curve and the reference echo cancellation frequency response curve.

[0088] Specifically, the audio playback device can determine the first difference parameter according to the reference original frequency response curve and the reference echo cancellation frequency response curve. Among them, the first difference parameter can be used to characterize the average amplitude difference between the reference original frequency response curve and the reference echo cancellation frequency response curve within the entire covered frequency range. It should be understood that since the first difference parameter and the third difference parameter only have different covered frequency ranges, the third difference parameter will not be elaborated here.

[0089] Step S142: Adjust the reference echo cancellation frequency response curve according to the first difference parameter.

[0090] Specifically, after determining the first difference parameter, the audio playback device can adjust the reference echo cancellation frequency response curve according to the first difference parameter.

[0091] Step S143: Determine a plurality of second difference parameters according to the reference original frequency response curve and the adjusted reference echo cancellation frequency response curve.

[0092] Specifically, after adjusting the reference echo cancellation frequency response curve, the audio playback device can determine a plurality of second difference parameters according to the reference original frequency response curve and the adjusted reference echo cancellation frequency response curve. Among them, the plurality of second difference parameters can be used to characterize the amplitude difference between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve at each covered frequency, and / or to characterize the average amplitude difference between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve within each covered frequency interval. It should be understood that since the plurality of second difference parameters and the plurality of fourth difference parameters only have different covered frequency ranges, the second difference parameters will not be elaborated here.

[0093] Step S144: Determine the reference equalization curve according to the first difference parameter and the plurality of second difference parameters.

[0094] Specifically, after determining the first difference parameter and the plurality of second difference parameters, the audio playback device can determine the reference equalization curve according to the first difference parameter and the plurality of second difference parameters.

[0095] Optionally, after determining the reference equalization curve, in order to ensure the accuracy of the determined reference equalization curve, the audio playback device may also verify the determined reference equalization curve.

[0096] Figure 6 The flowchart of the reference equalization curve verification method according to the embodiment of the present invention. It should be understood that by executing the reference equalization curve verification method as Figure 6 shown, the audio playback device can verify the determined reference equalization curve. As Figure 6 shown, the reference equalization curve verification method may specifically include the following steps:

[0097] Step S151: Adjust the reference echo cancellation frequency response curve according to the reference equalization curve.

[0098] Specifically, the audio playback device may adjust the reference echo cancellation frequency response curve according to the reference equalization curve. It should be understood that adjusting the reference echo cancellation frequency response curve according to the reference equalization curve may specifically refer to adjusting the amplitude values corresponding to different frequencies in the reference echo cancellation frequency response curve according to the reference equalization curve. This adjustment process may be implemented by the audio playback device by calling an equalizer tool.

[0099] Step S152: Perform similarity matching between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve.

[0100] Specifically, after adjusting the reference echo cancellation frequency response curve, the audio playback device may perform similarity matching between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve. Optionally, in this embodiment, the audio playback device may use relevant parameters such as the maximum amplitude difference between the two frequency response curves at the same frequency, or the average amplitude difference between the two frequency response curves within the covered frequency range as the similarity evaluation criterion, and the present application does not limit this.

[0101] Step S153: In response to detecting that the similarity between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve meets a preset similarity threshold, store the reference equalization curve.

[0102] Specifically, when detecting that the similarity between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve meets the preset similarity threshold, the audio playback device may confirm that the verification of the reference equalization curve is passed and store the reference equalization curve. Among them, the preset similarity threshold may be set in advance by relevant personnel, and the present application does not limit this.

[0103] In the embodiments of the present invention, audio of the current playing content is collected to obtain a current original audio file and a current echo cancellation audio file, and a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file are determined. Then, the current echo cancellation frequency response curve is adjusted according to a reference equalization curve to obtain a target frequency response curve. Next, a dynamic equalization curve is determined based on the current original frequency response curve and the target frequency response curve, and further, the output of the audio signal is controlled according to the dynamic equalization curve. Wherein, the reference equalization curve is used to represent the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve. Thus, the embodiments of the present invention can enable an audio playback device to achieve sound field adaptive correction without manual intervention, thereby improving the user experience.

[0104] Figure 7 It is a schematic diagram of the sound field correction device according to the embodiments of the present invention. As Figure 7 shown, the sound field correction device according to the embodiments of the present invention includes an acquisition unit 71, a first frequency response curve determination unit 72, a second frequency response curve determination unit 73, a dynamic equalization curve determination unit 74, and an output control unit 75.

[0105] Specifically, the acquisition unit 71 is configured to collect audio of the current playing content to obtain a current original audio file and a current echo cancellation audio file;

[0106] The first frequency response curve determination unit 72 is configured to determine a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file;

[0107] The second frequency response curve determination unit 73 is configured to adjust the current echo cancellation frequency response curve according to a reference equalization curve to obtain a target frequency response curve, where the reference equalization curve is used to represent the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve;

[0108] The dynamic equalization curve determination unit 74 is configured to determine a dynamic equalization curve based on the current original frequency response curve and the target frequency response curve;

[0109] The output control unit 75 is configured to control the output of the audio signal according to the dynamic equalization curve.

[0110] In the embodiments of the present invention, audio of the currently played content is collected to obtain the current original audio file and the current echo cancellation audio file, and the current original frequency response curve corresponding to the current original audio file and the current echo cancellation frequency response curve corresponding to the current echo cancellation audio file are determined. Then, the current echo cancellation frequency response curve is adjusted according to the reference equalization curve to obtain the target frequency response curve. Next, the dynamic equalization curve is determined based on the current original frequency response curve and the target frequency response curve, and further, the audio signal output is controlled according to the dynamic equalization curve. Wherein, the reference equalization curve is used to represent the difference between the reference original frequency response curve and the reference echo cancellation frequency response curve. Thus, the embodiments of the present invention can enable the audio playback device to achieve sound field adaptive correction without manual intervention, thereby improving the user experience.

[0111] Figure 8 is a schematic diagram of the audio playback device according to the embodiments of the present invention. As Figure 8 shown, the audio playback device includes: at least one processor 81, and a memory 82, an audio playback component 83, an audio collection component 84, and a communication component 85 that are communicatively connected to the at least one processor 81. Wherein, the memory 82 stores instructions executable by the at least one processor 81, and the instructions are executed by the at least one processor 81 to implement the above-mentioned sound field correction method. The audio playback component 83 is used to output an audio signal under the control of the processor 81, the audio collection component 84 is used to collect an audio signal under the control of the processor 81, and the communication component 85 receives and sends data under the control of the processor 81.

[0112] Specifically, the audio playback device includes: one or more processors 81, a memory 82, an audio playback component 83, an audio collection component 84, and a communication component 85. Figure 8 Taking one processor 81 as an example. The processor 81, the memory 82, the audio playback component 83, the audio collection component 84, and the communication component 85 can be connected through a bus or other means, Figure 8 taking the connection through a bus as an example. The memory 82, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 81 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in the memory 82, that is, implements the above-mentioned sound field correction method.

[0113] The memory 82 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store an option list and the like. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 82 may optionally include a memory remotely disposed relative to the processor 81, and these remote memories may be connected to external devices through a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0114] One or more modules are stored in the memory 82 and, when executed by one or more processors 81, perform the sound field correction method in any of the above method embodiments.

[0115] The above product can execute the method provided in the embodiments of the present application, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in the embodiments of the present application.

[0116] In an embodiment of the present invention, audio of the current played content is collected to obtain a current original audio file and a current echo cancellation audio file, and a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file are determined. Then, the current echo cancellation frequency response curve is adjusted according to a reference equalization curve to obtain a target frequency response curve, and a dynamic equalization curve is determined according to the current original frequency response curve and the target frequency response curve. Furthermore, an audio signal output is controlled according to the dynamic equalization curve. The reference equalization curve is used to represent the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve. Thus, the embodiment of the present invention can enable an audio playback device to achieve sound field adaptive correction without manual intervention, thereby improving the user experience.

[0117] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program, and the computer-readable program is used for a computer to execute the above partial or all method embodiments.

[0118] That is, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0119] The foregoing are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and changes can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A sound field correction method, characterized in that: The method comprises: Perform audio capture on the currently playing content to obtain the current original audio file and the current echo-cancelled audio file; Determine a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file; Adjusting the current echo cancellation frequency response curve according to a reference equalization curve to obtain a target frequency response curve, wherein the reference equalization curve is used to characterize the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve; Determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve; The audio signal output is controlled according to the dynamic equalization curve.

2. The method according to claim 1, characterized in that The reference equilibrium curve is determined based on the following method: Playing a test audio signal, wherein the test audio signal is an audio signal covering a preset frequency range and having the same energy density at different frequencies; Performing audio sampling on the test audio signal to determine a reference original audio file and a reference echo-cancelled audio file; Determine a reference original frequency response curve corresponding to the reference original audio file and a reference echo cancellation frequency response curve corresponding to the reference echo cancellation audio file; The reference equalization curve is determined according to the reference original frequency response curve and the reference echo cancellation frequency response curve.

3. The method according to claim 1, characterized in that Determining the reference equalization curve according to the reference original frequency response curve and the reference echo cancellation frequency response curve comprises: Determine a first difference parameter according to the reference original frequency response curve and the reference echo cancellation frequency response curve, wherein the first difference parameter is used to characterize an average amplitude difference between the reference original frequency response curve and the reference echo cancellation frequency response curve in the entire covered frequency range; adjusting the reference echo cancellation frequency response curve according to the first difference parameter; Determine a plurality of second difference parameters according to the reference original frequency response curve and the adjusted reference echo cancellation frequency response curve, wherein the plurality of second difference parameters are used to characterize the amplitude difference between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve at each covered frequency, and / or are used to characterize the average amplitude difference between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve in each covered frequency interval; The reference equalization curve is determined according to the first difference parameter and the plurality of second difference parameters.

4. The method according to claim 2, characterized in that: After determining the reference equalization curve according to the reference original frequency response curve and the reference echo cancellation frequency response curve, the method further includes: Adjusting the reference echo cancellation frequency response curve according to the reference equalization curve; Performing similarity matching between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve; In response to detecting that the similarity between the adjusted reference echo cancellation frequency response curve and the reference original frequency response curve meets a preset similarity threshold, the reference equalization curve is stored.

5. The method according to claim 1, characterized in that The audio collection of the currently played content to obtain the current original audio file and the current echo-cancelled audio file includes: In response to detecting that the sound field correction condition is met, audio collection is performed on the currently played content to obtain the current original audio file and the current echo-cancelled audio file.

6. The method according to claim 1, characterized in that The sound field correction condition is satisfied including that the placement position of the audio playback device changes, the frequency response curve changes, and / or the amplitude value of the audio signal suddenly changes.

7. The method according to claim 1, characterized in that Determining a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve comprises: Determine a third difference parameter according to the current original frequency response curve and the target frequency response curve, wherein the third difference parameter is used to characterize the average amplitude difference between the current original frequency response curve and the target frequency response curve in the entire covered frequency range; Adjusting the target frequency response curve according to the third difference parameter; Comparing the adjusted target frequency response curve with the current original frequency response curve to determine a plurality of fourth difference parameters, wherein the plurality of fourth difference parameters are used to characterize the amplitude difference between the adjusted target frequency response curve and the current original frequency response curve at each covered frequency, and / or are used to characterize the average amplitude difference between the adjusted target frequency response curve and the current original frequency response curve in each covered frequency interval; The dynamic equalization curve is generated according to the third difference parameter and the plurality of fourth difference parameters.

8. The method according to claim 1, characterized in that The controlling the audio signal output according to the dynamic equalization curve comprises: Get the audio signal to be played; Adjusting the audio signal to be played according to the dynamic equalization curve; Play the adjusted audio signal to be played.

9. The method according to claim 1, characterized in that: The determining of the current original frequency response curve corresponding to the current original audio file and the current echo cancellation frequency response curve corresponding to the current echo cancellation audio file comprises: Performing Fourier transform processing on the current original audio file to determine the current original frequency response curve; Performing Fourier transform processing on the current echo cancellation audio file to determine the current echo cancellation frequency response curve.

10. The method according to claim 1, characterized in that After determining a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve, the method further includes: The dynamic equalization curve is stored.

11. A sound field correction device, characterized in that: The device comprises: The acquisition unit is used to acquire audio of the currently played content to obtain the current original audio file and the current echo-cancelled audio file; A first frequency response curve determining unit, configured to determine a current original frequency response curve corresponding to the current original audio file and a current echo cancellation frequency response curve corresponding to the current echo cancellation audio file; A second frequency response curve determination unit, configured to adjust the current echo cancellation frequency response curve according to a reference equalization curve to obtain a target frequency response curve, wherein the reference equalization curve is used to characterize the difference between a reference original frequency response curve and a reference echo cancellation frequency response curve; A dynamic equalization curve determining unit, used to determine a dynamic equalization curve according to the current original frequency response curve and the target frequency response curve; An output control unit is used to control the output of the audio signal according to the dynamic equalization curve.

12. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 10 when executed by a processor.

13. An audio playback device, characterized in that: The device comprises: An audio playback component, used to output audio signals; An audio acquisition component, used for acquiring audio signals; a memory for storing one or more computer program instructions; A processor, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Sound box self-calibration method and system based on cooperation of webpage end and sound box end

    CN122317524A

  • A speaker self-calibration method and system based on cooperation of a webpage end and a speaker end

    CN122317524B