Audio signal output method and device, electronic equipment and storage medium
By constructing an audio output channel and adjusting the audio equalizer parameters according to device attributes and environmental characteristics, a digital filter chain is generated to finely adjust the audio signal, solving the problem of inconsistent auditory experience in existing audio playback systems and achieving a good auditory experience in different devices and environments.
Patent Information
- Application Number
- CN202511119271.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2026-01-06
AI Technical Summary
Existing audio playback systems struggle to provide a consistent and detailed listening experience across different devices and environments, resulting in significant differences in the listening experience.
By constructing an audio output channel, adjusting the audio equalizer parameters according to device attributes and environmental characteristics, and generating a digital filter chain, the audio signal can be finely adjusted.
It delivers a superior listening experience across different devices and environments, satisfying sophisticated listening needs.
Smart Images

Figure CN121284449A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of audio signal processing technology, and in particular to an audio signal output method, apparatus, electronic device, and storage medium. Background Technology
[0002] An audio playback system is a system that integrates multiple audio playback devices for centralized control. It is widely used in home theaters, monitoring systems, cinemas, and shopping malls. Due to differences in the type, placement, configuration, and frequency response of different devices within the system, it is often difficult to obtain a consistent listening experience.
[0003] Existing technologies typically take a holistic approach, adjusting a set of calibration parameters for the audio playback system to match the characteristics of its environment, thereby reducing playback differences between different audio playback devices. However, this method is too coarse, only providing a good auditory experience in specific situations and failing to meet refined listening needs. Summary of the Invention
[0004] In view of this, the purpose of this disclosure is to provide an audio signal output method, apparatus, electronic device, and storage medium to meet the needs of refined listening and enable the listener to obtain a good auditory experience in any position.
[0005] In a first aspect, embodiments of this disclosure provide an audio signal output method applied to an audio playback system. The method includes: in response to an audio playback device access event of the audio playback system, constructing an audio output channel for the accessed audio playback device; determining initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel; adjusting the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain target audio equalizer parameters; generating a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters; and when the accessed audio playback device plays audio, adjusting the audio signal to be played through the digital filter chain, and outputting the adjusted audio signal through the audio output channel.
[0006] Secondly, embodiments of this disclosure provide an audio signal output device applied to an audio playback system. The device includes: a construction module, configured to construct an audio output channel of an accessed audio playback device in response to an audio playback device access event of the audio playback system; a determination module, configured to determine initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel; an adjustment module, configured to adjust the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain target audio equalizer parameters; a generation module, configured to generate a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters; and an output module, configured to adjust the audio signal to be played through the digital filter chain and output the adjusted audio signal through the audio output channel when the accessed audio playback device plays audio.
[0007] Thirdly, embodiments of this disclosure provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described audio signal output method.
[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are invoked and executed by a processor, the computer-executable instructions cause the processor to implement the aforementioned audio signal output method.
[0009] The embodiments disclosed herein bring the following beneficial effects:
[0010] The aforementioned audio signal output method, device, electronic device, and storage medium construct different audio output channels for devices in different access systems. By combining the channel attribute configuration and the environmental characteristics of the device, matching EQ parameters are generated, and then a corresponding digital filter chain is generated to adjust the audio signal. This enables audio playback to be precisely adjusted according to the different access devices, output channels, and environmental characteristics, meeting refined listening needs and allowing listeners to obtain a good listening experience in any location.
[0011] Other features and advantages of this disclosure will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the disclosure. The objects and other advantages of this disclosure are realized and obtained through the structures particularly pointed out in the description, claims and drawings.
[0012] To make the above-mentioned objects, features and advantages of this disclosure more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 This is a flowchart of one embodiment of the audio signal output method in this disclosure;
[0015] Figure 2 A schematic diagram of an audio signal output device provided in an embodiment of this disclosure;
[0016] Figure 3 This is a schematic diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0018] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in this disclosure, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] For ease of understanding, the specific process of the embodiments of this disclosure is described below. Please refer to [link / reference]. Figure 1 This disclosure applies to an audio playback system. One embodiment of the audio signal output method in this disclosure includes:
[0020] Step S10: In response to the audio playback device access event of the audio playback system, construct the audio output channel of the accessed audio playback device;
[0021] An audio playback system is a system that can integrate multiple audio playback devices for centralized control. The audio playback system can be used as the execution subject of the embodiments of this disclosure, and the server can also be used as the execution subject of the embodiments of this disclosure. The specific implementation is not limited here.
[0022] An audio playback system can connect to multiple audio playback devices. When the audio playback system detects that an audio playback device has been connected, it triggers an audio playback device connection event and responds accordingly. The connected audio playback device can be either a device connecting to the audio playback system for the first time or a device that has connected before; the specific type is not limited here.
[0023] When determining whether an audio playback device is being connected to the audio playback system for the first time, you can check whether the device identifier, driver information, channel identifier of the corresponding audio output channel, and channel type of the connected audio playback device already exist in the historical access device information. If they already exist, it means that the connected audio playback device is not being connected for the first time; otherwise, it means that it is being connected for the first time.
[0024] In this embodiment, if there are access devices and constructed audio output channels that are the same as the audio playback devices currently accessed in the historical access device information, it can be determined that the device has been connected to the audio playback system in the past. In subsequent processes, the processing efficiency can be improved by using its historical records.
[0025] For example, when determining the initial audio equalizer parameters corresponding to the audio output channel of an audio playback device that is not accessing the audio playback system for the first time, the target audio equalizer parameters corresponding to the accessed audio playback device determined in the historical records can be used as the initial audio equalizer parameters for this access, thereby skipping the processing in step S20 and improving the output efficiency of the audio signal.
[0026] Similarly, the results obtained in steps S10-S50 of this embodiment can all be saved to the historical record corresponding to the accessed audio playback device. When the audio playback device accesses the audio playback system again, any result can be directly obtained for calculation or audio signal output. For example, the digital filter chain corresponding to the accessed audio playback device can be obtained from the historical record. When the accessed audio playback device plays audio, the digital filter chain in the historical record can be used to adjust the audio signal to be played, and the adjusted audio signal can be output through the audio output channel.
[0027] Audio playback device access events can be physical connection events or wireless connection events. For example, physical connection events can be events where a headphone is plugged into the headphone jack, a High Definition Multimedia Interface (HDMI) is plugged into a qualified connector, or a digital audio transmission interface is plugged into a qualified connector, etc., where the physical interface of the audio playback system is connected to a qualified connector of the audio playback device. Wireless connection events can be events where wireless audio playback devices such as Bluetooth headphones or Bluetooth speakers wirelessly connect to the audio playback system. The specific event is not limited here.
[0028] An audio output channel is an independent and dedicated audio signal output path corresponding to an audio playback device. The same audio playback device can build the same number of audio output channels according to the number of its channels. For example, the left and right channels of headphones can each build two independent audio output channels. In a surround sound audio playback system, the main speaker, surround speakers, center speaker, etc., can each correspond to an independent audio output channel. The specifics are not limited here.
[0029] Building an audio output channel includes not only establishing an audio signal output path, but also allocating resources for the connected audio playback device, such as buffers, driver interfaces, and communication paths with the system, to provide a good resource foundation for the audio playback device.
[0030] Step S20: Determine the initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel;
[0031] In this embodiment, a set of initial digital equalizer (EQ) parameters is preloaded onto the audio output channels, which are the initial audio equalizer parameters. In the audio playback system, each audio output channel corresponds to its own dedicated audio equalizer parameters. The target audio equalizer parameters obtained from step S30 of this embodiment can be used as the dedicated audio equalizer parameters corresponding to the audio output channel of the connected audio playback device. By configuring different EQ parameters for different audio output channels, different output paths can obtain optimal equalization adjustment according to their characteristics, optimizing each audio playback device in a targeted manner to meet refined listening needs and enable listeners to obtain a good listening experience in any position.
[0032] The attribute configuration of the audio output channel can include the type and model of the connected audio playback device, the role of the audio output channel, etc. By using the above type and model, the frequency response characteristics of different connected devices can be determined, which is used to match the initial audio equalizer parameters that match the frequency response characteristics. Similarly, other attribute configurations can also be used to match the set of EQ parameters with the closest attribute configuration from the preset EQ parameter library as the initial audio equalizer parameters.
[0033] For example, suppose a certain model of headphones is connected to an audio playback system as an audio playback device. Based on the headphone model, the frequency response characteristics of the headphones are determined to be "less frequency response and slightly darker high frequencies". Then, based on this characteristic, the initial audio equalizer parameters matched from the preset EQ parameter library can be a +4dB boost to the 60Hz-120Hz frequency band and a +2dB boost to the frequency band above 8kHz, thereby obtaining the initial audio equalizer parameters.
[0034] The initial audio equalizer parameters can include a set of equalizer parameters corresponding to multiple frequency bands. A set of equalizer parameters can include the center frequency, gain, Q factor / bandwidth, filter type, and slope, but the specifics are not limited here.
[0035] In one implementation, assuming an audio output channel contains i attribute configurations, the initial audio equalizer parameter EQ_i(f) at frequency band f can be determined by the following algorithm:
[0036] EQ_i(f)=EQ_b(f)+α×∑[ω_i×δ_i(f)]
[0037] Here, EQ_b(f) represents the basic audio equalizer parameters for frequency band f, α represents the weighting coefficient of the audio output channel or the connected audio playback device, ω_i represents the weighting coefficient of the i-th attribute configuration, and δ_i(f) represents the preset influence function of the i-th attribute configuration on frequency band f, which is a pre-constructed mathematical influence model. This algorithm integrates the influence functions of different attribute configurations on the frequency band, enabling more accurate calculation and determination of the audio equalizer parameters matched to the audio output channels with different attribute configurations, resulting in a better audio listening experience.
[0038] Step S30: Based on the environmental characteristics of the accessed audio playback device, adjust the initial audio equalizer parameters for environmental adaptability to obtain the target audio equalizer parameters.
[0039] Different actual acoustic conditions in the listening environment will have different effects on the listening effect. This embodiment takes into account the actual acoustic conditions of the listening environment and further optimizes and adjusts the initial EQ parameters (i.e., the initial audio equalizer parameters) to obtain target audio equalizer parameters that are more suitable for the current environment.
[0040] The environmental characteristics of the connected audio playback device can include the frequency response characteristics, reverberation characteristics, noise level, and spectrum of the environment. These environmental characteristics can be obtained through acoustic measurement and analysis techniques. Based on the measurement or analysis results, the initial EQ parameters can be adjusted compensatorily or adaptively to obtain the target EQ parameters (i.e., the target audio equalizer parameters).
[0041] Specifically, the target audio equalizer parameter EQ_t(f) at frequency band f can be determined using the following algorithm:
[0042]
[0043] Where EQ_i(f) represents the initial audio equalizer parameters at frequency band f, γ represents the environmental compensation intensity coefficient, R(f) represents the room frequency response deviation at frequency band f, λ represents the reverberation time decay coefficient, and T60(f) represents the reverberation time at frequency band f. The noise compensation coefficient is represented by N(f), and the ambient noise level at frequency band f is represented by N(f). This algorithm integrates multiple environmental characteristic factors, making the audio playback more adaptable to different environments.
[0044] In one implementation, an artificial intelligence model can be pre-trained to generate an EQ parameter adjustment range based on the characteristics of the environment (i.e., environmental features) of the accessed audio playback device. Then, based on the generated EQ parameter adjustment range, the initial audio equalizer parameters can be adjusted accordingly to obtain the target audio equalizer parameters.
[0045] When training the above artificial intelligence model, the EQ parameter adjustment range corresponding to different environmental characteristics can be used as training samples. The EQ parameter adjustment range is used to eliminate the negative impact of environmental acoustic characteristics on sound quality (such as standing waves and reverberation), so that each channel can present the best frequency response in any listening environment, bringing higher clarity, sound layering and spatial sense, thereby providing a more realistic and immersive high-fidelity audio experience.
[0046] Step S40: Generate a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters.
[0047] A digital filter is a type of digital signal processor (DSP). It is the underlying processor that actually adjusts the frequency of audio signals. Compared to the equalizer, which is located at the application layer, the digital filter can adjust the audio signal by performing a series of multiplication and addition operations. It is the underlying implementation of the equalizer.
[0048] A digital filter chain may contain at least one type of digital filter structure, such as an infinite impulse response (IIR) filter and a finite impulse response (FIR) filter, but the specific type is not limited here.
[0049] When generating a digital filter chain, the number, type, and connection order of digital filters in the digital filter chain can be determined based on the target audio equalizer parameters. The number of digital filters can be the same as, more than, or less than, the number of frequency bands in the target audio equalizer parameters. The type of digital filter can correspond to the frequency bands in the target audio equalizer parameters, and the connection order can be the same as the adjustment order of the frequency bands in the target audio equalizer parameters. No specific restrictions are imposed here.
[0050] After determining the number, type, and connection order of digital filters in the digital filter chain, the EQ parameters corresponding to each frequency band in the target audio equalizer parameters can be converted into digital filters corresponding to each frequency band. Then, the digital filters corresponding to each frequency band are connected to obtain the digital filter chain. The digital filter chain is used to adjust the frequency bands of the audio signal to be played in sequence, so that the adjusted audio signal output by the audio output channel has a better listening experience.
[0051] Step S50: When playing audio on the connected audio playback device, the audio signal to be played is adjusted through a digital filter chain, and the adjusted audio signal is output through the audio output channel.
[0052] After obtaining the digital filter chain, when playing audio on the connected audio playback device, the frequency of the audio signal to be played can be adjusted by the digital filter chain. The audio signal adjusted by the digital filter chain is output from the audio output channel, and the sound can be emitted by the connected audio playback device. This enables audio playback to be adjusted in a targeted and precise manner according to the different characteristics of the connected device, output channel, and environment, so as to meet the fine listening needs and allow the listener to obtain a good listening experience in any position.
[0053] The audio signal output method provided by the above embodiments constructs different audio output channels for devices in different access systems. Combining the channel attribute configuration and the environmental characteristics of the device, matching EQ parameters are generated, and then a corresponding digital filter chain is generated to adjust the audio signal. This enables audio playback to be adjusted in a targeted and refined manner according to the different access devices, output channels, and environmental characteristics, meeting the fine listening needs and allowing listeners to obtain a good listening experience in any position.
[0054] Next, we will explain the specific output method of the audio signal.
[0055] In one implementation, the target audio equalizer parameters include a set of equalizer parameters corresponding to multiple frequency bands. The step of generating a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters includes: determining a digital filter coefficient calculation algorithm for each frequency band based on each frequency band and the equalizer parameters corresponding to each frequency band in the target audio equalizer parameters; converting each set of equalizer parameters in the target audio equalizer parameters into filter coefficients using the digital filter coefficient calculation algorithm for each frequency band to obtain the digital filter coefficients corresponding to each frequency band; substituting the digital filter coefficients corresponding to each frequency band into a specified filter to obtain the digital filter corresponding to each frequency band; and connecting the digital filters corresponding to each frequency band in a specified order to obtain the digital filter chain corresponding to the audio output channel.
[0056] The frequency bands in the initial audio equalizer parameters or the target audio equalizer parameters can be pre-divided. For example, they can be pre-divided into three or five bands. The five bands can include low frequency band, mid-low frequency band, mid frequency band, mid-high frequency band, and high frequency band. The specific frequency band range is not limited here.
[0057] The correspondence between different frequency bands and the corresponding EQ parameters and digital filter coefficient calculation algorithms can also be determined through a preset mapping relationship. When determining the digital filter coefficient calculation algorithm corresponding to each frequency band, it can be obtained from the preset mapping relationship. The specifics will not be elaborated here.
[0058] This implementation converts the target audio equalizer parameters into a digital filter chain. In this process, the digital filter coefficient calculation algorithm that can be used for each frequency band can be determined first based on the frequency bands contained in the target audio equalizer parameters and the EQ parameters corresponding to each frequency band. The actual function of the digital filter coefficient calculation algorithm is to convert the EQ parameters of the corresponding frequency band into digital filter coefficients to generate digital filters. Then, the frequency of the audio signal is directly adjusted to match the corresponding EQ parameters.
[0059] The digital filter coefficient calculation algorithm is used to convert EQ parameters into the underlying mathematical coefficients required by the digital filter. The digital filter defines the frequency response of the audio signal through a set of mathematical coefficients. In this embodiment, after obtaining the digital filter coefficients corresponding to each frequency band, the digital filter coefficients can be substituted into the specified filter to obtain the digital filter corresponding to each frequency band. By connecting these digital filters in a certain order, the digital filter chain corresponding to the audio output channel can be obtained.
[0060] When adjusting the audio signal to be played through a digital filter chain, the output of the previous digital filter in the digital filter chain is used as the input of the next digital filter, and so on, until the output of the last digital filter is used as the output of the audio output channel.
[0061] A specified filter is a digital filter with a specified structure type, such as an IIR filter or an FIR filter. The digital filter coefficients corresponding to different frequency bands can be substituted into digital filters of different structure types. For example, the digital filter coefficients corresponding to the first frequency band can be substituted into an IIR filter, and the digital filter coefficients corresponding to the second frequency band can be substituted into an FIR filter. The specifics are not limited here.
[0062] When substituting the digital filter coefficients corresponding to each frequency band into a specified filter, you can first create a digital filter instance of the corresponding structure type, and then load or configure the corresponding digital filter coefficients into the corresponding digital filter instance to obtain a digital filter with equalization processing capability for a specific frequency band, thus forming a digital filter chain.
[0063] In one implementation, the step of determining the digital filter coefficient calculation algorithm corresponding to each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameters corresponding to each frequency band includes: determining the filter type corresponding to each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters corresponding to each frequency band; and determining the second-order infinite impulse response filter coefficient calculation formula corresponding to the filter type of each frequency band as the digital filter coefficient calculation algorithm for the corresponding frequency band.
[0064] The frequency bands and corresponding EQ parameters in the target audio equalizer parameters can be used to determine the required filter shape / type for that frequency band. For example, if a set of EQ parameters contains three variable parameters—center frequency, gain, and Q value—and the gain is not 0dB, it can be determined that a peak / notch filter is needed for that frequency band.
[0065] In one implementation, an artificial intelligence model can be used to identify the filter type of each frequency band in the target audio equalizer parameters and the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters of each frequency band. The artificial intelligence model performs well in complex parameter classification and can be used to accurately determine the filter type corresponding to each frequency band.
[0066] A second-order infinite impulse response (IIRL) filter is a general-purpose second-order digital filter structure and a concrete implementation of an IIR filter, such as the Biquad second-order IRL filter. Due to its versatility, it can be used to simulate most filter types. Therefore, in this embodiment, the formulas for calculating the coefficients of the second-order IIRL filters corresponding to different filter types can be used as algorithms for calculating the coefficients of the corresponding digital filters in the corresponding frequency bands, making digital filter generation smoother and more adaptable.
[0067] A concrete example is as follows: Suppose the EQ parameters of the first frequency band include: center frequency 1.5kHz, gain +4dB, and Q value Q1.2. This frequency band is determined to be a peak filter type. The preset peak equalizer Biquad coefficient calculation standard formula can be called, using 1.5kHz, +4dB, 1.2 and the current sampling rate (e.g., 48kHz) as input parameters to calculate the a and b coefficients of the Biquad filter for this frequency band. These are the digital filter coefficients corresponding to this frequency band. Substituting the calculated a and b coefficients into the Biquad second-order infinite impulse response filter, the digital filter corresponding to this frequency band can be obtained.
[0068] In one implementation, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain the target audio equalizer parameters includes: measuring the frequency response of the environment in which the accessed audio playback device is located to obtain the frequency response measurement results; performing reverberation analysis on the environment in which the accessed audio playback device is located to obtain the reverberation analysis results; and adjusting the initial audio equalizer parameters for environmental adaptability based on the frequency response measurement results and the reverberation analysis results to obtain the target audio equalizer parameters.
[0069] This implementation adjusts the environmental adaptability of EQ parameters from two aspects: frequency response and reverberation. First, frequency response measurement and reverberation analysis are performed on the environment where the connected audio playback device is located to obtain the frequency response measurement results and reverberation analysis results. Then, based on these two results, the negative impact value of the environmental EQ parameters is determined. By adjusting the negative impact value, the negative impact of the environment on the listening experience is offset by the EQ parameters, and the adjusted EQ parameters are obtained, which can be used as the target audio equalizer parameters.
[0070] When performing frequency response measurements, the test signal can be played through any audio playback device in the audio playback system. The sound of the test signal being played is collected through the connected audio playback device to obtain the collected signal. Depending on the type of test signal being played, different methods can be used to obtain the frequency response measurement results. The frequency response measurement results can be used to indicate the frequency response characteristics of the environment, but no specific limitations are made here.
[0071] As an example, and not a limitation, the types of test signals can include: pulse signals, maximum length sequence (MLS) pseudo-random binary signals, logarithmic or linear sweep sine signals (chirp signals), etc. Taking MLS signals as an example, by deconvolving the acquired signal obtained during playback, the pulse signal of the environment can be derived, and the frequency response measurement results can be obtained.
[0072] When performing reverberation analysis, ambient sound can be collected for reverberation analysis. Specifically, the collected ambient sound can be decomposed into multiple independent frequency bands (such as through an octave band or a third octave band filter), and then the reverberation time of each frequency band can be calculated using a blind source separation algorithm to obtain the reverberation analysis results. The reverberation analysis results can be used to indicate the reverberation characteristics of the environment, but the specifics are not limited here.
[0073] When adjusting for environmental adaptability, you can first adjust the initial audio equalizer parameters based on the frequency response measurement results. Then, based on the reverberation analysis results, you can make further adjustments to obtain the target audio equalizer parameters. Alternatively, you can adjust the initial audio equalizer parameters separately based on the frequency response measurement results and the reverberation analysis results, and then merge the two adjustments to obtain the target audio equalizer parameters.
[0074] In one embodiment, the step of measuring the frequency response of the environment in which the connected audio playback device is located and obtaining the frequency response measurement result includes: playing a preset pulse signal through the connected audio playback device, collecting the sound of the environment when the pulse signal is played, and obtaining the collected signal; and plotting the frequency response curve of the environment through a Fourier transform function to obtain the frequency response measurement result.
[0075] The preset pulse signal is a test signal. When the preset pulse signal is played, the environment's response to the pulse signal is collected to obtain the collected signal. The collected signal contains the direct sound wave of the pulse signal and all the sound waves reflected back from the environment. These superimposed signals form the environmental impulse response (IR) signal.
[0076] The Fourier Transform Function (FTF) can decompose an impulse response into its various frequency components and their respective amplitudes (intensities) and phases. By performing a Fourier Transform on the acquired impulse response signal, a frequency response curve can be obtained in the frequency domain. The horizontal axis of the curve represents the frequency (e.g., 20Hz to 20kHz), and the vertical axis represents the gain or attenuation at that frequency. This curve is used to represent the effect of a room on enhancing or weakening sound at different frequencies.
[0077] In this embodiment, the time-domain information can be accurately converted into the frequency-domain information through Fourier transform, and a high-resolution frequency response curve can be plotted. This allows for the identification of very subtle frequency peaks and valleys, providing a precise basis for subsequent EQ compensation.
[0078] In one embodiment, the step of performing reverberation analysis on the environment of the accessed audio playback device and obtaining the reverberation analysis result includes: playing a preset second test signal through the accessed audio playback device, measuring the time required for the sound field to decay to a specified decibel, and obtaining the reverberation analysis result.
[0079] When performing reverberation analysis, the same type of test signal as described above can be played. By acquiring the sound of the environment in which the test signal is played, the acquired signal is obtained. By measuring the time required for the sound field to decay to a specified decibel, the reverberation analysis result can be obtained. This implementation method can identify the frequency range in which the reverberation problem occurs, allowing subsequent EQ adjustments to precisely attenuate or optimize the Q value of the problem frequency, avoiding unnecessary adjustments to the entire spectrum and thus maintaining the naturalness of the sound quality.
[0080] The specified decibel is a preset standard attenuation amount, such as 60dB, 20dB, or 30dB. If the specified decibel is 60dB, then the measured time is RT60. If it is specified as 20dB or 30dB, then it corresponds to T20 or T30 respectively. These are all variations of RT60 and are often used to estimate reverberation time more reliably under background noise.
[0081] For example, if the T20 value in the key frequency range of human voice (such as 500Hz-2kHz) is higher than a certain threshold, it indicates that there is too much early reverberation. The clarity of the speech can be improved by adjusting the EQ parameters. If the reverberation time of the RT60 or T30 value in the 50Hz-200Hz frequency band exceeds the reverberation time of other frequency bands, it indicates that there is a low-frequency reverberation problem. It can be attenuated by adjusting the EQ parameters.
[0082] In one embodiment, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on frequency response measurement results and reverberation analysis results to obtain target audio equalizer parameters includes: determining an adjustable first audio equalizer parameter and its adjustment range based on the frequency response measurement results; determining an adjustable second audio equalizer parameter and its adjustment range based on the reverberation analysis results; adjusting the first audio equalizer parameter and the second audio equalizer parameter within the initial audio equalizer parameters according to their respective adjustment ranges to obtain the target audio equalizer parameters.
[0083] Based on the frequency response measurement results, frequency points or bands with frequency amplitude deviations greater than a certain threshold can be identified. Then, based on the preset correspondence between this deviation and EQ parameters, the adjustable first audio equalizer parameters and the corresponding adjustment range can be determined.
[0084] For example, assuming the frequency response measurement indicates a +7dB standing wave peak at 120Hz, the gain adjustment range for the center frequency of 120Hz can be set to -10dB to +10dB and the Q value range to 0.7 to 5, based on the above preset correspondence. When adjusting, any value within the range can be selected, and no specific limitation is made here.
[0085] Based on the reverberation analysis results, frequency points or bands where the reverberation decay time deviation exceeds a certain threshold can be identified. Then, based on the preset correspondence between this deviation and the EQ parameters, the adjustable second audio equalizer parameters and the corresponding adjustment range can be determined.
[0086] For example, assuming that the reverberation analysis results indicate that the RT60 value at 1kHz (the core frequency band of human voice) is greater than the preset standard value and the deviation is too large, then according to the above preset correspondence, the gain adjustment range of the center frequency at 1kHz can be set to -6dB to 0dB, and the Q value range can be set to 1.5 to 5. When adjusting, any value within the range can be selected, and no specific limitation is made here.
[0087] Finally, the initial audio equalizer parameters are adjusted within the corresponding adjustment ranges of the first and second audio equalizer parameters to obtain the target audio equalizer parameters. This simultaneously addresses issues such as device characteristics, uneven frequency response, and reverberation. Adjusting within the specified range also ensures the rationality of the final EQ parameters.
[0088] For the corresponding method embodiments described above, see [link to relevant documentation]. Figure 2The diagram illustrates an audio signal output device applied to an audio playback system. The device includes: a construction module 20, configured to construct an audio output channel for an accessed audio playback device in response to an audio playback device access event; a determination module 22, configured to determine initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel; an adjustment module 24, configured to adjust the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device, thereby obtaining target audio equalizer parameters; a generation module 26, configured to generate a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters; and an output module 28, configured to adjust the audio signal to be played through the digital filter chain and output the adjusted audio signal through the audio output channel when the accessed audio playback device plays audio.
[0089] The aforementioned audio signal output device constructs different audio output channels for devices in different access systems. Combining the channel's attribute configuration and the environmental characteristics of the device, it generates matching EQ parameters and then generates a corresponding digital filter chain to adjust the audio signal. This enables audio playback to be precisely adjusted according to the different access devices, output channels, and environmental characteristics, meeting refined listening needs and allowing listeners to obtain a good listening experience in any location.
[0090] Optionally, the target audio equalizer parameters include a set of equalizer parameters corresponding to multiple frequency bands; the generation module 26 includes: a determining unit, used to determine a digital filter coefficient calculation algorithm corresponding to each frequency band based on each frequency band and the equalizer parameters corresponding to each frequency band in the target audio equalizer parameters; a conversion unit, used to convert each set of equalizer parameters in the target audio equalizer parameters into filter coefficients through the digital filter coefficient calculation algorithm corresponding to each frequency band, to obtain the digital filter coefficients corresponding to each frequency band; a substitution unit, used to substitute the digital filter coefficients corresponding to each frequency band into a specified filter, to obtain the digital filter corresponding to each frequency band; and a connection unit, used to connect the digital filters corresponding to each frequency band in a specified order to obtain the digital filter chain corresponding to the audio output channel.
[0091] Optionally, the aforementioned determining unit is specifically used to: determine the filter type corresponding to each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters of each frequency band; and determine the second-order infinite impulse response filter coefficient calculation formula corresponding to the filter type of each frequency band as the digital filter coefficient calculation algorithm for the corresponding frequency band.
[0092] Optionally, the determining module 22 is specifically used to: perform channel feature recognition on the audio output channel according to the attribute configuration of the audio output channel to obtain the feature data of the audio output channel; obtain the target equalizer parameter model that matches the feature data from the preset equalizer parameter model library to obtain the initial audio equalizer parameters corresponding to the audio output channel.
[0093] Optionally, the adjustment module 24 includes: a measurement unit for measuring the frequency response of the environment in which the accessed audio playback device is located, and obtaining the frequency response measurement result; an analysis unit for performing reverberation analysis on the environment in which the accessed audio playback device is located, and obtaining the reverberation analysis result; and an adjustment unit for adjusting the initial audio equalizer parameters according to the frequency response measurement result and the reverberation analysis result to obtain the target audio equalizer parameters.
[0094] Optionally, the above measurement unit is specifically used to: play a preset pulse signal through the accessed audio playback device, collect the sound of the environment when the pulse signal is played, and obtain the collected signal; and draw the frequency response curve of the environment through the Fourier transform function to obtain the frequency response measurement result.
[0095] Optionally, the analysis unit is specifically used to: play a preset test signal through the accessed audio playback device, measure the time required for the sound field to decay to a specified decibel, and obtain reverberation analysis results.
[0096] Optionally, the adjustment unit is specifically used for: determining adjustable first audio equalizer parameters and their adjustment range based on the frequency response measurement results; determining adjustable second audio equalizer parameters and their adjustment range based on the reverberation analysis results; adjusting the first audio equalizer parameter in the initial audio equalizer parameters according to its corresponding adjustment range, and adjusting the second audio equalizer parameter in the initial audio equalizer parameters according to its corresponding adjustment range, to obtain the target audio equalizer parameters.
[0097] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described audio signal output method. This electronic device can be a server or a terminal device.
[0098] See Figure 3 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-described audio signal output method.
[0099] Furthermore, Figure 3 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0100] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0101] The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 100 or by instructions in software form. The processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101. The processor 100 reads information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments, for example:
[0102] In response to an audio playback device access event in the audio playback system, the system constructs an audio output channel for the accessed audio playback device; determines the initial audio equalizer parameters corresponding to the audio output channel based on its attribute configuration; adjusts the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain the target audio equalizer parameters; generates a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters; when the accessed audio playback device plays audio, the system adjusts the audio signal to be played through the digital filter chain and outputs the adjusted audio signal through the audio output channel.
[0103] In this approach, different audio output channels are built for devices in different access systems. By combining the channel's attribute configuration and the environmental characteristics of the device, matching EQ parameters are generated, and then a corresponding digital filter chain is generated to adjust the audio signal. This enables audio playback to be adjusted in a targeted and refined manner according to the different access devices, output channels, and environmental characteristics, meeting the fine listening needs and allowing listeners to obtain a good listening experience in any position.
[0104] Optionally, the target audio equalizer parameters include a set of equalizer parameters corresponding to multiple frequency bands. The step of generating a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters includes: determining a digital filter coefficient calculation algorithm for each frequency band based on each frequency band and the equalizer parameters corresponding to each frequency band in the target audio equalizer parameters; converting each set of equalizer parameters in the target audio equalizer parameters into filter coefficients using the digital filter coefficient calculation algorithm for each frequency band to obtain the digital filter coefficients corresponding to each frequency band; substituting the digital filter coefficients corresponding to each frequency band into a specified filter to obtain the digital filter corresponding to each frequency band; and connecting the digital filters corresponding to each frequency band in a specified order to obtain the digital filter chain corresponding to the audio output channel.
[0105] Optionally, the step of determining the digital filter coefficient calculation algorithm for each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameters corresponding to each frequency band includes: determining the filter type corresponding to each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters of each frequency band; and determining the second-order infinite impulse response filter coefficient calculation formula corresponding to the filter type of each frequency band as the digital filter coefficient calculation algorithm for the corresponding frequency band.
[0106] Optionally, the step of determining the initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel includes: performing channel feature recognition on the audio output channel based on the attribute configuration of the audio output channel to obtain the feature data of the audio output channel; obtaining the target equalizer parameter model that matches the feature data from the preset equalizer parameter model library to obtain the initial audio equalizer parameters corresponding to the audio output channel.
[0107] Optionally, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain the target audio equalizer parameters includes: measuring the frequency response of the environment in which the accessed audio playback device is located and obtaining the frequency response measurement results; performing reverberation analysis on the environment in which the accessed audio playback device is located and obtaining the reverberation analysis results; and adjusting the initial audio equalizer parameters for environmental adaptability based on the frequency response measurement results and the reverberation analysis results to obtain the target audio equalizer parameters.
[0108] Optionally, the step of measuring the frequency response of the environment in which the connected audio playback device is located and obtaining the frequency response measurement results includes: playing a preset pulse signal through the connected audio playback device, collecting the sound of the environment when the pulse signal is played, and obtaining the collected signal; and plotting the frequency response curve of the environment through a Fourier transform function to obtain the frequency response measurement results.
[0109] Optionally, the step of performing reverberation analysis on the environment of the connected audio playback device and obtaining the reverberation analysis results includes: playing a preset test signal through the connected audio playback device, measuring the time required for the sound field to decay to a specified decibel, and obtaining the reverberation analysis results.
[0110] Optionally, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on the frequency response measurement results and reverberation analysis results to obtain the target audio equalizer parameters includes: determining an adjustable first audio equalizer parameter and its adjustment range based on the frequency response measurement results; determining an adjustable second audio equalizer parameter and its adjustment range based on the reverberation analysis results; adjusting the first audio equalizer parameter and the second audio equalizer parameter in the initial audio equalizer parameters according to their corresponding adjustment ranges to obtain the target audio equalizer parameters.
[0111] This embodiment also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are invoked and executed by a processor, they cause the processor to implement the aforementioned audio signal output method, for example:
[0112] In response to an audio playback device access event in the audio playback system, the system constructs an audio output channel for the accessed audio playback device; determines the initial audio equalizer parameters corresponding to the audio output channel based on its attribute configuration; adjusts the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain the target audio equalizer parameters; generates a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters, wherein the digital filter chain includes at least two ordered digital filters; when the accessed audio playback device plays audio, the system adjusts the audio signal to be played through the digital filter chain and outputs the adjusted audio signal through the audio output channel.
[0113] In this approach, different audio output channels are built for devices in different access systems. By combining the channel's attribute configuration and the environmental characteristics of the device, matching EQ parameters are generated, and then a corresponding digital filter chain is generated to adjust the audio signal. This enables audio playback to be adjusted in a targeted and refined manner according to the different access devices, output channels, and environmental characteristics, meeting the fine listening needs and allowing listeners to obtain a good listening experience in any position.
[0114] Optionally, the target audio equalizer parameters include a set of equalizer parameters corresponding to multiple frequency bands. The step of generating a digital filter chain corresponding to the audio output channel based on the target audio equalizer parameters includes: determining a digital filter coefficient calculation algorithm for each frequency band based on each frequency band and the equalizer parameters corresponding to each frequency band in the target audio equalizer parameters; converting each set of equalizer parameters in the target audio equalizer parameters into filter coefficients using the digital filter coefficient calculation algorithm for each frequency band to obtain the digital filter coefficients corresponding to each frequency band; substituting the digital filter coefficients corresponding to each frequency band into a specified filter to obtain the digital filter corresponding to each frequency band; and connecting the digital filters corresponding to each frequency band in a specified order to obtain the digital filter chain corresponding to the audio output channel.
[0115] Optionally, the step of determining the digital filter coefficient calculation algorithm for each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameters corresponding to each frequency band includes: determining the filter type corresponding to each frequency band based on each frequency band in the target audio equalizer parameters and the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters of each frequency band; and determining the second-order infinite impulse response filter coefficient calculation formula corresponding to the filter type of each frequency band as the digital filter coefficient calculation algorithm for the corresponding frequency band.
[0116] Optionally, the step of determining the initial audio equalizer parameters corresponding to the audio output channel based on the attribute configuration of the audio output channel includes: performing channel feature recognition on the audio output channel based on the attribute configuration of the audio output channel to obtain the feature data of the audio output channel; obtaining the target equalizer parameter model that matches the feature data from the preset equalizer parameter model library to obtain the initial audio equalizer parameters corresponding to the audio output channel.
[0117] Optionally, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain the target audio equalizer parameters includes: measuring the frequency response of the environment in which the accessed audio playback device is located and obtaining the frequency response measurement results; performing reverberation analysis on the environment in which the accessed audio playback device is located and obtaining the reverberation analysis results; and adjusting the initial audio equalizer parameters for environmental adaptability based on the frequency response measurement results and the reverberation analysis results to obtain the target audio equalizer parameters.
[0118] Optionally, the step of measuring the frequency response of the environment in which the connected audio playback device is located and obtaining the frequency response measurement results includes: playing a preset pulse signal through the connected audio playback device, collecting the sound of the environment when the pulse signal is played, and obtaining the collected signal; and plotting the frequency response curve of the environment through a Fourier transform function to obtain the frequency response measurement results.
[0119] Optionally, the step of performing reverberation analysis on the environment of the connected audio playback device and obtaining the reverberation analysis results includes: playing a preset test signal through the connected audio playback device, measuring the time required for the sound field to decay to a specified decibel, and obtaining the reverberation analysis results.
[0120] Optionally, the step of adjusting the initial audio equalizer parameters for environmental adaptability based on the frequency response measurement results and reverberation analysis results to obtain the target audio equalizer parameters includes: determining an adjustable first audio equalizer parameter and its adjustment range based on the frequency response measurement results; determining an adjustable second audio equalizer parameter and its adjustment range based on the reverberation analysis results; adjusting the first audio equalizer parameter and the second audio equalizer parameter in the initial audio equalizer parameters according to their corresponding adjustment ranges to obtain the target audio equalizer parameters.
[0121] The computer program product of the audio signal output method, apparatus, electronic device and storage medium provided in the embodiments of this disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0123] Furthermore, in the description of the embodiments of this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific circumstances.
[0124] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] In the description of this disclosure, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0126] Finally, it should be noted that the above embodiments are merely specific implementations of this disclosure, used to illustrate the technical solutions of this disclosure, and not to limit it. The protection scope of this disclosure is not limited thereto. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this disclosure. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure, and should all be covered within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the protection scope of the claims.
Claims
1. An output method of an audio signal, applied to an audio playing system, characterized in that, The method comprises: in response to an audio playback device access event of the audio playback system, constructing an audio output channel of the accessed audio playback device; determining initial audio equalizer parameters corresponding to the audio output channel according to the attribute configuration of the audio output channel; based on the environmental characteristics of the accessed audio playback device, adjusting the initial audio equalizer parameters for environmental adaptability to obtain target audio equalizer parameters; generating a digital filter chain corresponding to the audio output channel according to the target audio equalizer parameters, wherein the digital filter chain comprises at least two digital filters in order; when the accessed audio playback device plays audio, adjusting the to-be-played audio signal through the digital filter chain, and outputting the adjusted audio signal through the audio output channel.
2. The method of claim 1, wherein, The target audio equalizer parameters comprise a set of equalizer parameters corresponding to a plurality of frequency bands respectively; The step of generating a digital filter chain corresponding to the audio output channel according to the target audio equalizer parameters comprises: determining a digital filter coefficient calculation algorithm corresponding to each frequency band according to each frequency band in the target audio equalizer parameters and the equalizer parameters corresponding to each frequency band; converting each set of equalizer parameters in the target audio equalizer parameters into filter coefficients through the digital filter coefficient calculation algorithm corresponding to each frequency band to obtain the digital filter coefficients corresponding to each frequency band; substituting the digital filter coefficients corresponding to each frequency band into a specified filter to obtain the digital filter corresponding to each frequency band; connecting the digital filters corresponding to each frequency band in a specified order to obtain the digital filter chain corresponding to the audio output channel.
3. The method of claim 2, wherein, The step of determining a digital filter coefficient calculation algorithm corresponding to each frequency band according to each frequency band in the target audio equalizer parameters and the equalizer parameters corresponding to each frequency band comprises: determining the filter type corresponding to each frequency band according to the equalizer parameter changes of the corresponding frequency band indicated by the equalizer parameters corresponding to each frequency band in the target audio equalizer parameters; determining the second-order infinite impulse response filter coefficient calculation formula corresponding to the filter type of each frequency band as the digital filter coefficient calculation algorithm of the corresponding frequency band.
4. The method of claim 1, wherein, The step of determining initial audio equalizer parameters corresponding to the audio output channel according to the attribute configuration of the audio output channel comprises: performing channel feature recognition on the audio output channel according to the attribute configuration of the audio output channel to obtain feature data of the audio output channel; obtaining the initial audio equalizer parameters corresponding to the audio output channel from a preset equalizer parameter model library by matching the target equalizer parameter model with the feature data.
5. The method of claim 1, wherein, The step of adjusting the initial audio equalizer parameters for environmental adaptability based on the environmental characteristics of the accessed audio playback device to obtain target audio equalizer parameters comprises: performing frequency response measurement on the environment of the accessed audio playback device to obtain a frequency response measurement result; perform reverberation analysis on an environment where the accessed audio playback device is located, to obtain a reverberation analysis result; perform environment adaptability adjustment on the initial audio equalizer parameters according to the frequency response measurement result and the reverberation analysis result, to obtain target audio equalizer parameters.
6. The method of claim 5, wherein, The step of performing frequency response measurement on an environment where the accessed audio playback device is located, to obtain a frequency response measurement result, includes: playing a preset impulse signal through the accessed audio playback device, collecting sound in the environment when the impulse signal is played, to obtain a collection signal; drawing a frequency response curve of the environment through a Fourier transform function, to obtain a frequency response measurement result.
7. The method of claim 5, wherein, The step of performing reverberation analysis on an environment where the accessed audio playback device is located, to obtain a reverberation analysis result, includes: playing a preset test signal through the accessed audio playback device, measuring a time length required for sound field attenuation to a specified decibel, to obtain a reverberation analysis result.
8. The method of claim 5, wherein, The step of performing environment adaptability adjustment on the initial audio equalizer parameters according to the frequency response measurement result and the reverberation analysis result, to obtain target audio equalizer parameters, includes: determining an adjustable first audio equalizer parameter and an adjustment range of the first audio equalizer parameter based on the frequency response measurement result; determining an adjustable second audio equalizer parameter and an adjustment range of the second audio equalizer parameter based on the reverberation analysis result; adjusting the first audio equalizer parameter in the initial audio equalizer parameters within the corresponding adjustment range and adjusting the second audio equalizer parameter in the initial audio equalizer parameters within the corresponding adjustment range, to obtain target audio equalizer parameters.
9. An output device of an audio signal, applied to an audio playing system, characterized in that, The apparatus includes: a construction module configured to, in response to an audio playback device access event of an audio playback system, construct an audio output channel of an accessed audio playback device; a determination module configured to determine initial audio equalizer parameters corresponding to the audio output channel according to an attribute configuration of the audio output channel; an adjustment module configured to, based on an environment feature where the accessed audio playback device is located, perform environment adaptability adjustment on the initial audio equalizer parameters, to obtain target audio equalizer parameters; a generation module configured to generate a digital filter chain corresponding to the audio output channel according to the target audio equalizer parameters, wherein the digital filter chain includes at least two digital filters in sequence; an output module configured to, when the accessed audio playback device performs audio playback, adjust a to-be-played audio signal through the digital filter chain, and output the adjusted audio signal through the audio output channel.
10. An electronic device, comprising: The apparatus includes a processor and a memory, the memory stores machine executable instructions executable by the processor, and the processor executes the machine executable instructions to implement the output method of the audio signal in any one of claims 1-8.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions, which when invoked and executed by the processor, cause the processor to implement the output method of the audio signal according to any one of claims 1-8.
Citation Information
Patent Citations
Audio balancing processing method and device and electronic device
CN108769864A
Filter cascade frequency response fitting method and device, equipment and storage medium
CN118174695A
Audio correction method and system and storage medium
CN118785044A
Methods and Systems for Automatically Equalizing Audio Output based on Room Characteristics
US20190103848A1
A device for and a method of processing audio data
WO2008155725A1
Cited By
Balancing system supporting multi-output independent configuration and output method thereof
CN121560270A