Audio signal processing method and system, power amplifier, and electronic device

By detecting the available output power of the power amplifier and dynamically adjusting the gain coefficient, the signal distortion problem of the power amplifier when the power supply battery is insufficient is solved, ensuring that the output power of the audio signal does not exceed the available output power, and improving the power supply reliability of the power supply battery and the stability of electronic devices.

CN118972749APending Publication Date: 2024-11-15SHANGHAI AWINIC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411061941.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When the power amplifier is insufficient in power supply battery, the output signal is prone to distortion and may trigger the undervoltage protection of the power supply battery, causing abnormal shutdown or reset of the electronic device.

Method used

By detecting the available output power of the power amplifier, dynamically adjusting the gain coefficient, so that the signal amplitude of the input audio signal is inversely correlated with the reference signal amplitude, ensuring that the output power does not exceed the available output power and avoiding signal distortion.

Benefits of technology

It improves the power supply reliability of the power supply battery, prevents the output signal of the power amplifier, and improves the stability of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972749A_ABST
    Figure CN118972749A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an audio signal processing method and system, a power amplifier and electronic equipment. The audio signal processing method comprises the following steps: detecting available output power of a power amplifier in a current battery state, and determining a reference signal amplitude corresponding to the available output power, so that the output power of an audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier; detecting a current signal amplitude of an input audio signal of the power amplifier; comparing the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjusting a gain coefficient of the power amplifier, so that the current signal amplitude is inversely correlated with the corresponding gain coefficient; and performing gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an audio signal processing method and system, a power amplifier, and an electronic device. Background Art

[0002] A power amplifier is an electronic device whose main function is to amplify the voltage, current or power of the input audio signal to a level large enough to drive a speaker or other load device and produce the corresponding power at the output. Usually, power amplifiers serve as core components of electronic devices such as audio equipment.

[0003] For power amplifiers, different supply voltages will result in different performances. For example, when the supply current is insufficient, the signal amplification capability of the functional amplifier will be limited, causing distortion of the output signal of the power amplifier.

[0004] Furthermore, when the power amplifier is applied to a portable electronic device, the power battery provides voltage and current to the power amplifier. At this time, if a large audio signal passes through the electronic device, the power amplifier will draw a large current from the power battery. The large current draw will cause the terminal voltage of the power battery to drop sharply, which may further trigger abnormal undervoltage protection of the power battery. For example, the undervoltage protection of the power battery will stop working, causing abnormal shutdown or reset of the main processor of the electronic device. Summary of the invention

[0005] In view of this, embodiments of the present invention provide an audio signal processing method and system, a power amplifier, and an electronic device to solve the above problems.

[0006] According to a first aspect of an embodiment of the present invention, there is provided an audio signal processing method, comprising: detecting the available output power of a power amplifier in a current battery state, determining a reference signal amplitude corresponding to the available output power, so that the output power of an audio signal having the reference signal amplitude does not exceed the available output power of the power amplifier; detecting the current signal amplitude of an input audio signal of the power amplifier; comparing the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjusting a gain coefficient of the power amplifier, so that the current signal amplitude is inversely correlated with the corresponding gain coefficient; and performing gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.

[0007] According to a second aspect of an embodiment of the present invention, a power amplifier is provided, comprising: a first detection module, detecting the available output power of the power amplifier in a current battery state, and determining a reference signal amplitude corresponding to the available output power, so that the output power of an audio signal having the reference signal amplitude does not exceed the available output power of the power amplifier; a second detection module, detecting the current signal amplitude of an input audio signal of the power amplifier; a gain control module, comparing the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjusting the gain coefficient of the power amplifier, so that the current signal amplitude is inversely correlated with the corresponding gain coefficient; and an amplification module, performing gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.

[0008] According to a third aspect of an embodiment of the present invention, there is provided an audio signal processing system, comprising: an audio signal processing device; a speaker; and a power amplifier connected between the audio signal processing device and the speaker, for executing the method according to the first aspect.

[0009] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect.

[0010] According to a fifth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.

[0011] According to a sixth aspect of an embodiment of the present invention, there is provided a computer program product, comprising computer instructions, which, when executed by a processor, implement the method as described in the first aspect.

[0012] In the scheme of the embodiment of the present invention, the current signal amplitude of the input audio signal is compared with the reference signal amplitude to obtain the corresponding gain coefficient, so that the current signal amplitude and the corresponding gain coefficient are inversely correlated, that is, the gain coefficient when the current signal amplitude is greater than the reference signal amplitude is smaller than the gain coefficient when the current signal amplitude is not greater than the reference signal amplitude, thereby ensuring the performance of the power amplifier. In addition, since the output power of the audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier, it is ensured as much as possible that the output power of the audio signal is not greater than the available output power of the power amplifier, thereby improving the power supply reliability of the power supply battery.

[0013] [AW20230132ICN1][HS2410418CCN] BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0015] Figure 1 The present invention is a schematic structural diagram of an audio signal processing system applicable to some embodiments of the present invention.

[0016] Figure 2 The present invention is a flowchart of the steps of the audio signal processing method according to some embodiments of the present invention.

[0017] Figure 3 for Figure 2 A schematic block diagram of an audio signal processing method according to an embodiment of the present invention.

[0018] Figure 4 for Figure 2 A schematic graph of the gain control process of an embodiment.

[0019] Figure 5 is a structural block diagram of a power amplifier according to some other embodiments of the present invention.

[0020] Figure 6 Schematic diagram of the structure of electronic devices according to other embodiments of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.

[0022] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.

[0023] Figure 1The audio signal processing system 100 of some embodiments of the present invention is shown. The audio signal processing system 100 includes an audio signal processing device 110, a power amplifier 120 and a speaker 130. The audio signal processing system 100 can be configured in an electronic device, specifically, the electronic device can be a portable device such as a mobile phone, an MP3 player, an iPod, etc. carrying the audio signal processing system 100.

[0024] For example, the audio signal processing device 110 can monitor a voltage signal such as a song audio signal, perform audio signal processing according to the monitored audio voltage signal, and output the processed audio signal (e.g., a mixed song audio signal) to the power amplifier 120. The audio signal processing device 110 can be configured as a processor such as a digital signal processor (DSP), an application processor (AP), or a digital circuit such as an FPGA or an ASIC.

[0025] [AW20230132ICN1][HS2410418CCN]

[0026] The power amplifier 120 amplifies the audio voltage signal based on the power amplification gain to obtain an audio output signal, and inputs the audio output signal to the speaker 130. Furthermore, the speaker 130 converts the electrical energy of the audio output signal into mechanical energy through its own coil and diaphragm based on the principle of electromagnetic induction, so that it can be heard by the human ear.

[0027] When the power amplifier is used in a portable electronic device, the power supply battery provides voltage and current to the power amplifier. At this time, if a large audio signal passes through the electronic device, the power amplifier will draw a large current from the power supply battery. The large current draw will cause the terminal voltage of the power supply battery to drop sharply, which may further trigger the abnormal undervoltage protection of the power supply battery. For example, the undervoltage protection of the power supply battery will stop working, causing the main processor of the electronic device to shut down or reset abnormally. In some cases, when the power of the power supply battery is low, even if the undervoltage protection of the power supply battery is not triggered, the output power that the power supply battery can provide to the power amplifier is extremely limited, resulting in significant signal distortion in the output signal of the power amplifier.

[0028] To this end, the present invention provides a series of embodiments, which can improve the power supply reliability of the power supply battery while ensuring the performance of the power amplifier.

[0029] Figure 2 The present invention is a flowchart of the steps of the audio signal processing method according to some embodiments of the present invention. Figure 2The audio signal processing method can be used Figure 1 Specifically, the audio signal processing method includes:

[0030] S210: Detecting the available output power of the power amplifier in the current battery state, and determining a reference signal amplitude corresponding to the available output power, so that the output power of the audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier.

[0031] S220: Detect the current signal amplitude of the input audio signal of the power amplifier.

[0032] It should be understood that the input audio signal can be a digital audio signal or an analog audio signal. The input audio signal can be obtained from an audio signal processing device, and the audio signal processing device can be a main controller of an electronic device or an audio processor of an electronic device. In addition, when the input audio signal is a digital audio signal amplitude, the input audio signal can be converted into an analog audio signal in advance by a digital to analog converter (DAC).

[0033] It should also be understood that the envelope detection can be performed on the audio frame sequence of the audio signal to obtain the current signal amplitude, and the current signal amplitude can be the timestamp of the audio frame of the audio signal or the neighborhood where the audio frame is located.

[0034] [AW20230132ICN1][HS2410418CCN] The signal amplitude corresponding to the time period.

[0035] S230: Compare the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjust the gain coefficient of the power amplifier so that the current signal amplitude is inversely correlated with the corresponding gain coefficient.

[0036] It should be understood that when the current signal amplitude is greater than the reference signal amplitude, the gain coefficient is the first gain value, and when the current signal amplitude is less than the reference signal amplitude, the gain coefficient is the second gain value, and the first gain value is less than the second gain value.

[0037] It should also be understood that the gain coefficient can be associated with the signal amplitude based on the timestamp of the audio frame. For example, at least part of the timestamp can be marked as the first gain value or the second gain value to obtain the gain coefficient. For another example, the dynamic gain corresponding to the gain coefficient can be smoothed based on the time series to obtain the smoothed dynamic gain. In addition, in some examples, the gain coefficient of the signal amplitude can be processed to obtain the dynamic gain of the signal amplitude.

[0038] S240: Performing gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.

[0039] It should be understood that the gain coefficient corresponding to the timestamp can be applied to the audio frame corresponding to the timestamp in the dynamic gain or the smoothed dynamic gain to obtain the amplified audio signal. Then, the amplified audio signal can be output to a speaker or a subsequent audio processing device.

[0040] In the scheme of the embodiment of the present invention, the current signal amplitude of the input audio signal is compared with the reference signal amplitude to obtain the corresponding gain coefficient, so that the current signal amplitude is inversely correlated with the corresponding gain coefficient, that is, the gain coefficient when the current signal amplitude is greater than the reference signal amplitude is less than the gain coefficient when the current signal amplitude is not greater than the reference signal amplitude, thereby ensuring the performance of the power amplifier. In addition, since the output power of the audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier, it is ensured as much as possible that the output power of the audio signal is not greater than the available output power of the power amplifier, thereby improving the power supply reliability of the power supply battery. For example, when the power of the power supply battery is low, the power supply battery can also provide reliable output power for the power amplifier, which greatly avoids signal distortion in the output signal of the power amplifier.

[0041] In some embodiments, Figure 3 As shown, the input audio signal may be obtained from an audio signal processing device (eg, an MCU, a main controller of an electronic device, or a main processor).

[0042] Further, the input audio signal may be stored in the buffer 310, for example, at least one audio signal frame of the input audio signal of the power amplifier may be stored in the buffer. Then, the audio signal frame of the input audio signal may be read from the buffer 310, and the audio signal frame may be processed using a gain coefficient (for example, a dynamic gain after smoothing or a dynamic gain without smoothing), to obtain an audio signal frame of the output audio signal. For example, the audio signal frame of the output audio signal may be input into a device such as a speaker.

[0043] In addition, the current battery status of the input audio signal may be determined by the battery module 320, and the available output power of the power amplifier may be determined according to the current battery status.

[0044] Without loss of generality, as an example of detecting the available output power of the power amplifier in the current battery state, the power supply power of the power supply battery of the power amplifier in the current battery state can be detected, and then, based on the power supply power of the power supply battery, the available output power of the power amplifier in the current battery state is determined. For example, the available output power in the current battery state is less than the power supply power in the current battery state. More specifically, the available output power in the current battery state can be the product of the power supply power in the current battery state and the power conversion efficiency.

[0045] Specifically, as an example of detecting the power supply power of the power supply battery of the power amplifier, the current battery voltage of the power supply battery of the power amplifier in the current battery state can be detected, and the battery internal resistance corresponding to the current battery voltage can be determined based on the battery model of the power supply battery. Then, based on the current battery voltage, the battery internal resistance and the preset battery voltage lower limit, the power supply power of the power supply battery is determined. The battery model of the power supply battery can reflect the real-time status of the key performance parameters of the power supply battery. The power supply power of the power supply battery is determined by the battery model, which improves the calculation accuracy of the power supply power (for example, the upper limit of the power supply power).

[0046] It should be understood that the battery model is a mathematical model that describes the behavior and performance of the battery. As an energy storage device, the characteristics and properties of the battery change with use and the charging and discharging process. In order to better understand and predict the behavior of the battery, the battery model is used to describe the characteristics of the battery such as voltage, current and capacity. For example, the battery model indicates the correspondence between the battery voltage (i.e., terminal voltage), the open circuit voltage and the internal resistance of the battery of the power supply battery. More specifically, the current battery voltage is positively correlated with the power supply power, the battery internal resistance is negatively correlated with the power supply power, and the preset lower limit of the battery voltage is negatively correlated with the power supply power.

[0047] Furthermore, for example, the power supply power of the power supply battery can be calculated by the following formula 1:

[0048]

[0049] Among them, Pth represents the power supply; Voc represents the current open circuit voltage of the battery; Vmin represents the preset lower limit of the battery voltage; Vb represents the current battery voltage; and Rb represents the internal resistance of the battery.

[0050] Furthermore, the available output power of the power amplifier can be calculated by the following formula 2:

[0051] P max =P th *λ Formula 2

[0052] Wherein, Pmax represents the available output power of the power amplifier; λ represents the power conversion efficiency of the power supply battery, 0<λ<1.

[0053] In addition, the input audio signal can be processed by envelope detection 331 to obtain the current signal amplitude of the input audio signal, for example, the signal amplitude of the input audio signal is subjected to envelope detection to obtain the signal amplitude of the input audio signal. Then, the obtained current signal amplitude and the available output power output by the battery model 320 are processed by dynamic gain calculation 332 to obtain a gain coefficient. Furthermore, the dynamic gain corresponding to the gain coefficient is smoothed based on time series by gain smoothing 333.

[0054] Without loss of generality, as an example of determining a reference signal amplitude corresponding to the available output power, the mapping relationship between the signal amplitude of the audio signal of the power amplifier and the output power of the audio signal can be determined, and then, the corresponding signal amplitude having a mapping relationship with the available output power of the power amplifier is determined, and then, the reference signal amplitude is determined so that the reference signal amplitude is not greater than the corresponding signal amplitude. Therefore, such a reference signal amplitude can simultaneously ensure the gain effect of the audio signal and the power supply reliability of the power amplifier.

[0055] Further, in the mapping relationship, the signal amplitude is positively correlated with the output power, the ratio between the analog signal amplitude and the digital signal amplitude of the audio signal is positively correlated with the output power, and the load resistance of the power amplifier is negatively correlated with the output power. For example, the output power is positively correlated with the square of the analog signal amplitude. Specifically, the following formula 3 can be used to determine the above mapping relationship:

[0056]

[0057] Among them, Pout represents the output power of the audio signal; din represents the signal amplitude of the digital audio signal; M represents the proportional relationship between the signal amplitude of the analog audio signal of the power amplifier and the signal amplitude of the digital audio signal, that is, M can at least represent the ratio between the analog signal amplitude and the digital signal amplitude in the digital-to-analog conversion process; Re represents the load resistance of the power amplifier.

[0058] That is to say, when the audio signal is a digital audio signal amplitude, the mapping relationship between the output power of the output analog audio signal and the signal amplitude of the input digital audio signal can be determined by using Formula 3. For example, the current battery voltage is positively correlated with the power supply power, the battery internal resistance is negatively correlated with the power supply power, the preset battery voltage lower limit is negatively correlated with the power supply power, and the difference between the open circuit voltage of the power supply battery and the preset battery voltage lower limit is positively correlated with the power supply power. Accordingly, the available output power is equal to the product of the power conversion efficiency and the power supply power, the current battery voltage is positively correlated with the reference signal amplitude, the battery internal resistance is negatively correlated with the reference signal amplitude, the preset battery voltage lower limit is negatively correlated with the reference signal amplitude, and the difference between the open circuit voltage of the power supply battery and the preset battery voltage lower limit is positively correlated with the reference signal amplitude.

[0059] Alternatively, the reference signal amplitude may be determined by using the following formula 4:

[0060]

[0061] Wherein, when the available output power of the power amplifier is taken as the output power of the audio signal (when the variable Pout is assigned a constant Pmax), din max Indicates the reference signal amplitude.

[0062] In addition, as an example of performing gain processing on the current signal amplitude of the input audio signal, a dynamic gain can be determined based on the gain coefficient. Then, the dynamic gain is time-series smoothed to obtain the smoothed dynamic gain, and then, based on the smoothed dynamic gain, the current signal amplitude of the input audio signal is gain processed.

[0063] For example, in Figure 4 In the curve graph shown, the abscissa |din| represents the relative signal amplitude of the input audio signal, the ordinate |dout| represents the relative signal amplitude of the output audio signal, and the slope of the curve represents the gain coefficient.

[0064] It can be seen that when |din| is in [0, 0.8], the current signal amplitude is dynamically smaller than the reference signal amplitude, and accordingly, the gain coefficient between the signal amplitude of the output audio signal and the amplitude of the input audio signal is approximately 1 (an example of the first gain value). When |din| is in [0.8, 1], the current signal amplitude is dynamically larger than the reference signal amplitude, and accordingly, the gain coefficient between the signal amplitude of the output audio signal and the amplitude of the input audio signal is approximately 0 (an example of the second gain coefficient). It should be understood that in this example, the numerical values ​​of the first gain value and the second gain value are merely exemplary. It should be understood that, without loss of generality, the first gain value is smaller than the second gain value, and in some examples, the first gain value is less than 1, and the second gain value may be greater than 1, equal to 1, or may be less than 1. More specifically, the amplitude of the signal processed by the second gain value does not exceed the reference signal amplitude.

[0065] Further, as an example of performing gain processing on the current signal amplitude of the input audio signal, when determining the smoothed gain coefficient, at least one audio signal frame can be obtained from the buffer, and then, based on the smoothed gain coefficient, gain processing is performed on the signal amplitude of the at least one audio signal frame.

[0066] It should be understood that an audio signal generally represents the change in the amplitude of the audio over time. Gain coefficient temporal smoothing can reduce noise, sudden changes and unnecessary fluctuations in the audio signal to improve the audio quality or make the audio easier to be recognized and processed by subsequent processing algorithms. For example, the gain coefficient is smoothed using a smoothing operation (e.g., moving average, weighted moving average, filter, etc.) to reduce the impact of short-term fluctuations and noise. Smoothing generally takes into account the characteristics of the audio signal, such as the sensitivity of the human ear to audio changes and the frequency range of the audio signal.

[0067] More specifically, as an example of performing gain processing on the signal amplitude of at least one audio signal frame, a smoothed gain coefficient corresponding to the timestamp of at least one audio signal frame can be determined, and then, based on the corresponding gain coefficient, gain processing is performed on the signal amplitude of at least one audio signal frame, thereby achieving alignment and synchronization between the gain coefficient and the audio signal frame.

[0068] It should be understood that the smoothed gain coefficient indicates a mapping relationship between the gain coefficient and the timestamp of the audio frame sequence of the audio signal. Therefore, the timestamp of at least one audio signal frame in the audio frame sequence can be determined, and the gain coefficient having a mapping relationship with the timestamp can be determined, and then the gain coefficient is applied to the at least one audio signal frame.

[0069] Figure 5 is a structural block diagram of a power amplifier according to some other embodiments of the present invention. Figure 5 The power amplifiers include:

[0070] The first detection module 510 detects the available output power of the power amplifier under the current battery state, and determines a reference signal amplitude corresponding to the available output power, so that the output power of the audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier.

[0071] The second detection module 520 detects the current signal amplitude of the input audio signal of the power amplifier.

[0072] The gain control module 530 compares the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjusts the gain coefficient of the power amplifier so that the current signal amplitude is inversely correlated with the corresponding gain coefficient.

[0073] The amplification module 540 performs gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.

[0074] In the scheme of the embodiment of the present invention, the current signal amplitude of the input audio signal is compared with the reference signal amplitude to obtain the corresponding gain coefficient, so that the current signal amplitude and the corresponding gain coefficient are inversely correlated, that is, the gain coefficient when the current signal amplitude is greater than the reference signal amplitude is smaller than the gain coefficient when the current signal amplitude is not greater than the reference signal amplitude, thereby ensuring the performance of the power amplifier. In addition, since the output power of the audio signal with the reference signal amplitude does not exceed the available output power of the power amplifier, it is ensured as much as possible that the output power of the audio signal is not greater than the available output power of the power amplifier, thereby improving the power supply reliability of the power supply battery.

[0075] In some other embodiments, the gain control module is further used to: detect the power supply power of the power supply battery of the power amplifier in the current battery state; and determine the available output power of the power amplifier in the current battery state based on the power supply power of the power supply battery.

[0076] In other embodiments, the gain control module is specifically used to: detect the current battery voltage of the power supply battery of the power amplifier in the current battery state; determine the battery internal resistance corresponding to the current battery voltage based on the battery model of the power supply battery; and determine the power supply power of the power supply battery based on the current battery voltage, the battery internal resistance, and a preset battery voltage lower limit. For example, the current battery voltage is positively correlated with the power supply power, the battery internal resistance is negatively correlated with the power supply power, and the preset battery voltage lower limit is negatively correlated with the power supply power.

[0077] In some other embodiments, the gain control module is further used to: determine the mapping relationship between the signal amplitude of the audio signal of the power amplifier and the output power of the audio signal; determine the corresponding signal amplitude having the mapping relationship with the available output power of the power amplifier; determine the reference signal amplitude so that the reference signal amplitude is not greater than the corresponding signal amplitude. For example, in the mapping relationship, the signal amplitude is positively correlated with the output power, the ratio between the analog signal amplitude of the audio signal and the digital signal amplitude is positively correlated with the output power, and the load resistance of the power amplifier is negatively correlated with the output power.

[0078] In some other embodiments, the amplification module is specifically used to: perform time-series smoothing on the gain coefficient to obtain a smoothed gain coefficient; and perform gain processing on a current signal amplitude of the input audio signal based on the smoothed gain coefficient.

[0079] In some other embodiments, the amplification module is specifically used to: store at least one audio signal frame of the input audio signal of the power amplifier into a buffer; when determining the smoothed gain coefficient, obtain the at least one audio signal frame from the buffer; and perform gain processing on the signal amplitude of the at least one audio signal frame based on the smoothed gain coefficient.

[0080] In some other embodiments, the amplification module is specifically used to: determine a gain coefficient after smoothing and a gain coefficient corresponding to a timestamp of the at least one audio signal frame; and perform gain processing on a signal amplitude of the at least one audio signal frame based on the corresponding gain coefficient.

[0081] The specific implementation of each module in the power amplifier can refer to the corresponding description of the corresponding steps in the above method embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the power amplifier and its modules described above can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0082] Reference Figure 6 , shows a schematic structural diagram of an electronic device according to another embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0083] like Figure 6 As shown, the electronic device may include: a processor (processor) 602 for executing a program 610 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0084] The processor, the communication interface, and the memory communicate with each other via a communication bus.

[0085] Communication interface, used to communicate with other electronic devices or servers.

[0086] The processor is used to execute the program, and specifically can execute the relevant steps in the above method embodiment.

[0087] Specifically, the program may include program codes including computer operation instructions.

[0088] The processor may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0089] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0090] The program may include multiple computer instructions. Specifically, the program may enable the processor to execute operations corresponding to each audio signal processing method described in any of the aforementioned multiple method embodiments through the multiple computer instructions.

[0091] The specific implementation of each step in the program can refer to the corresponding description of the corresponding steps, modules or units in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device, equipment or module can refer to the corresponding process description in the above method embodiments, which will not be repeated here.

[0092] The embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.

[0093] An embodiment of the present invention further provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to each audio signal processing method in the above-mentioned multiple method embodiments.

[0094] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.

[0095] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.

[0096] The above-described method according to the embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and will be stored in a local recording medium, so that the method described herein can be stored in a computer program using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field-programmable

[0097] [AW20230132ICN1][HS2410418CCN] Such software processing on a recording medium of a Field Programmable Gate Array (FPGA). It is understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown herein, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown herein.

[0098] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.

[0099] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not intended to limit the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.

Claims

1. An audio signal processing method, characterized in that: include: Detecting an available output power of the power amplifier under a current battery state, and determining a reference signal amplitude corresponding to the available output power, so that an output power of an audio signal having the reference signal amplitude does not exceed the available output power of the power amplifier; Detecting a current signal amplitude of an input audio signal of the power amplifier; Comparing the magnitude relationship between the current signal amplitude and the reference signal amplitude, dynamically adjusting the gain coefficient of the power amplifier so that the current signal amplitude is inversely correlated with the corresponding gain coefficient; Based on the gain coefficient, gain processing is performed on the current signal amplitude of the input audio signal.

2. The method according to claim 1, characterized in that Detect the available output power of the power amplifier under the current battery status, including: Detecting the power supply power of the power supply battery of the power amplifier under the current battery state; Based on the power supply power of the power supply battery, the available output power of the power amplifier in the current battery state is determined.

3. The method according to claim 2, characterized in that Detecting the power supply power of the power supply battery of the power amplifier in the current battery state includes: Detecting a current battery voltage of a power supply battery of the power amplifier in a current battery state; Determining a battery internal resistance corresponding to the current battery voltage based on a battery model of the power supply battery; The power supply power of the power supply battery is determined based on the current battery voltage, the battery internal resistance and a preset battery voltage lower limit.

4. The method according to claim 3, characterized in that The current battery voltage is positively correlated with the power supply power, the battery internal resistance is negatively correlated with the power supply power, and the preset battery voltage lower limit is negatively correlated with the power supply power.

5. The method according to claim 1, characterized in that Determining a reference signal amplitude corresponding to the available output power includes: Determine a mapping relationship between a signal amplitude of an audio signal of the power amplifier and an output power of the audio signal [AW20230132ICN1][HS2410418CCN]; Determining a corresponding signal amplitude having the mapping relationship with the available output power of the power amplifier; The reference signal amplitude is determined so that the reference signal amplitude is not greater than the corresponding signal amplitude.

6. The method according to claim 5, characterized in that In the mapping relationship, the signal amplitude is positively correlated with the output power, the ratio between the analog signal amplitude and the digital signal amplitude of the audio signal is positively correlated with the output power, and the load resistance of the power amplifier is inversely correlated with the output power.

7. The method according to claim 1, characterized in that Based on the gain coefficient, performing gain processing on the current signal amplitude of the input audio signal includes: Performing time series smoothing on the dynamic gain corresponding to the gain coefficient to obtain a smoothed dynamic gain; Based on the smoothed dynamic gain, gain processing is performed on the current signal amplitude of the input audio signal.

8. The method according to claim 7, characterized in that The method further comprises: storing at least one audio signal frame of an input audio signal of the power amplifier into a buffer; Based on the smoothed dynamic gain, gain processing is performed on the current signal amplitude of the input audio signal, including: When determining the smoothed dynamic gain, obtaining the at least one audio signal frame from the buffer; Based on the smoothed dynamic gain, gain processing is performed on the signal amplitude of the at least one audio signal frame.

9. The method according to claim 8, characterized in that Based on the smoothed dynamic gain, gain processing is performed on the signal amplitude of the at least one audio signal frame, comprising: Determine a gain coefficient corresponding to the smoothed dynamic gain and the timestamp of the at least one audio signal frame; Based on the corresponding gain coefficient, gain processing is performed on the signal amplitude of the at least one audio signal frame.

10. A power amplifier, characterized in that: include: [AW20230132ICN1][HS2410418CCN] A first detection module, detecting an available output power of the power amplifier under a current battery state, and determining a reference signal amplitude corresponding to the available output power, so that an output power of an audio signal having the reference signal amplitude does not exceed the available output power of the power amplifier; A second detection module, detecting a current signal amplitude of an input audio signal of the power amplifier; A gain control module, comparing the magnitude relationship between the current signal amplitude and the reference signal amplitude, and dynamically adjusting the gain coefficient of the power amplifier so that the current signal amplitude is inversely correlated with the corresponding gain coefficient; The amplification module performs gain processing on the current signal amplitude of the input audio signal based on the gain coefficient.

11. An audio signal processing system, characterized in that: include: Audio signal processing device; speaker; A power amplifier, connected between the audio signal processing device and the speaker, for executing the method according to any one of claims 1-9.

12. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to any one of claims 1-9.

Citation Information

Cited By

  • Audio amplifier, driving control method thereof and related device

    CN121939943A