Method and apparatus for switching audio power amplifier mode, terminal device and storage medium
By detecting battery voltage and adjusting the operating mode of the audio amplifier module, the problem of poor battery life during audio playback in terminal devices was solved, thus extending the device's battery life while playing high-quality audio.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG XIAOTIANCAI TECH CO LTD
- Filing Date
- 2021-05-17
- Publication Date
- 2026-04-21
AI Technical Summary
The terminal device has poor battery life during audio signal playback, mainly due to the excessive power consumption caused by the continuous high power output of the audio amplifier module.
By detecting the battery voltage of the terminal device, the audio amplifier module maintains a high-power output mode when the battery voltage is not lower than the first voltage threshold; when the battery voltage is lower than the first voltage threshold, it switches to a low-power output mode and adjusts the output parameters according to the power consumption rate and the battery status of the connected device.
While ensuring audio playback quality, the battery life of the terminal device has been extended. By dynamically adjusting the audio amplifier mode, power consumption has been reduced, thus improving the device's battery life.
Smart Images

Figure CN115373622B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal equipment technology, and in particular to a method, apparatus, terminal equipment and storage medium for switching audio power amplifier modes. Background Technology
[0002] With the development of terminal device technology, terminal devices such as smartwatches, smart bracelets and smartphones can realize functions such as voice audio playback or video audio playback. The realization of voice audio playback and video audio playback functions all require the use of audio power amplifier technology.
[0003] Currently, the audio amplifier module of terminal devices continuously consumes a lot of power during audio signal playback, resulting in poor battery life of the terminal devices during audio signal playback. Summary of the Invention
[0004] This application discloses an audio amplifier mode switching method, apparatus, terminal device, and storage medium, which can ensure audio playback quality and improve the battery life of the terminal device during audio signal playback.
[0005] The first aspect of this application discloses a method for switching audio amplifier modes, including:
[0006] Detect the battery voltage of the terminal device;
[0007] When the battery voltage is not lower than the first voltage threshold, the audio amplifier module of the terminal device is controlled to work in high power output mode.
[0008] When the battery voltage is lower than the first voltage threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode, wherein the audio volume output by the audio amplifier module in the high power output mode is greater than the audio volume output in the low power output mode.
[0009] In this embodiment, by detecting the battery voltage of the terminal device when the audio amplifier module is operating in high-power output mode, the audio amplifier module remains in high-power output mode when the battery voltage is not lower than a first voltage threshold. Conversely, when the battery voltage is lower than the first voltage threshold, the audio amplifier module is switched to low-power output mode. This embodiment uses the relationship between the terminal device's battery voltage and the first voltage threshold as the basis for switching the audio amplifier module's operating mode. This ensures audio playback quality even when the terminal device's battery capacity is small but the battery voltage is sufficiently high, and reduces audio playback quality when the battery voltage is insufficient, thereby improving the terminal device's battery life during audio signal playback.
[0010] As an optional implementation, in the first aspect of the embodiments of this application, after controlling the audio amplifier of the terminal device to switch to the low-power output mode when the battery voltage is lower than the first voltage threshold, the method further includes:
[0011] Detect whether the terminal device is connected to the charging device;
[0012] If the terminal device is connected to the charging device, the charging current input from the charging device to the battery of the terminal device is detected;
[0013] When the charging current is not lower than the current threshold, the audio amplifier of the terminal device is controlled to switch to high power output mode.
[0014] In this embodiment, when the terminal device's audio amplifier module is operating in low-power output mode, if the terminal device is connected to a charging device and the charging current is detected to be no less than the current threshold, the terminal device's audio amplifier mode is switched from low-power output mode to high-power output mode. This embodiment, when an external device is supplying power to the terminal device and the supply current is sufficiently large, switches the terminal device's audio amplifier module to high-power output mode, effectively ensuring both the terminal device's battery life and the current audio playback quality.
[0015] As an optional implementation, in the first aspect of the present application, the current threshold is the operating current of the audio power amplifier module.
[0016] In this embodiment, by limiting the current threshold to the operating current of the audio amplifier module, the operating mode of the audio amplifier module can be switched easily and effectively.
[0017] As an optional implementation, in the first aspect of the embodiments of this application, after controlling the audio amplifier module of the terminal device to switch to low-power output mode when the battery voltage is lower than the first voltage threshold, the following steps are included:
[0018] Output a prompt message, wherein the prompt message is used to prompt the audio amplifier module of the terminal device to switch to the low power output mode and confirm whether to switch back to the high power output mode;
[0019] If an audio amplifier mode switching command is received, the audio amplifier module is controlled to switch to the high-power output mode according to the audio amplifier mode switching command.
[0020] In this embodiment, after the audio amplifier module switches to low-power output mode, a prompt message is output to inform the terminal device user that the audio amplifier module is operating in low-power output mode and to allow the user to confirm whether they need to switch back to high-power output mode. After receiving the user's input command to switch the audio amplifier mode, the audio amplifier module is switched to high-power output mode. This allows the terminal device user to better understand the current operating mode of the audio amplifier module and thus select the appropriate operating mode based on the terminal device's battery life and audio playback quality.
[0021] As an optional implementation, in the first aspect of the embodiments of this application, after controlling the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than a first voltage threshold, the method further includes:
[0022] If the terminal device is connected to the playback device, the battery voltage of the playback device is detected, wherein the playback device and the terminal device jointly perform audio playback;
[0023] When the battery voltage of the playback device is lower than the second voltage threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode.
[0024] In this embodiment, when a terminal device with an audio amplifier module operating in high-power output mode is connected to a playback device, the battery voltage of the playback device is detected. When the battery voltage of the playback device is lower than the second battery threshold, the audio amplifier module of the terminal device is controlled to switch to low-power output mode. This allows the terminal device to comprehensively consider the battery life of each device during audio playback, thereby ensuring battery life and preventing the audio playback process from being interrupted.
[0025] As an optional implementation, in the first aspect of the embodiments of this application, after controlling the audio amplifier module of the terminal device to switch to low-power output mode when the battery voltage is lower than the first voltage threshold, the method further includes:
[0026] Detect the power consumption rate of the terminal device when controlling the audio amplifier module to output audio signals;
[0027] The output parameters of the audio amplifier module when it switches to low power output mode are determined based on the power consumption rate, and the audio amplifier module is controlled to output audio signals according to the output parameters.
[0028] The output parameters include one or more of volume gain, resistance value, and rated power.
[0029] In this embodiment, the parameters of the audio amplifier module operating in low-power output mode are adjusted by detecting the power consumption rate when the terminal device outputs an audio signal. The audio signal is then output based on the adjusted parameters. This ensures that within the low-power output mode range, the parameters are adjusted according to the power consumption rate, making the output audio signal more conducive to maintaining battery life.
[0030] As an optional implementation, in the first aspect of the present application, after controlling the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than a first voltage threshold, the method further includes:
[0031] Detect the power consumption rate of the terminal device;
[0032] When the power consumption rate is not lower than the power consumption rate threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode.
[0033] In this embodiment, the power consumption rate of the terminal device is detected. When the power consumption rate is not lower than the power consumption threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode. This allows the terminal device to switch to low power output mode when the power consumption rate is higher than expected during audio playback, which can effectively ensure the battery life of the terminal device.
[0034] The second aspect of this application discloses an audio amplifier mode switching device, comprising:
[0035] Voltage detection module, used to detect the battery voltage of terminal devices;
[0036] An audio switching module is used to control the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than a first voltage threshold.
[0037] When the battery voltage is lower than the first voltage threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode, wherein the volume output by the terminal device in the high power output mode is greater than the volume output in the low power output mode.
[0038] The third aspect of this application discloses a terminal device, including: a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to enable the processor to implement the audio amplifier mode switching method as described in the first aspect of this application.
[0039] The fourth aspect of this application discloses a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor to enable the processor to implement an audio amplifier mode switching method as disclosed in the first aspect of this application. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a flowchart illustrating a method for switching audio amplifier modes disclosed in an embodiment of this application;
[0042] Figure 2 This is a schematic diagram of the prompt display interface of the terminal device disclosed in the embodiments of this application;
[0043] Figure 3 This is a flowchart illustrating another method for switching audio amplifier modes disclosed in an embodiment of this application;
[0044] Figure 4 This is a block diagram of an audio amplifier mode switching device disclosed in an embodiment of this application;
[0045] Figure 5 This is a block diagram of another audio amplifier mode switching device disclosed in the embodiments of this application;
[0046] Figure 6 This is a block diagram of a terminal device disclosed in an embodiment of this application. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] It should be noted that the terms "first," "second," "third," and "fourth," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes 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 these processes, methods, products, or devices.
[0049] With the development of terminal device technology, terminal devices such as smartwatches, smart bracelets and smartphones can realize functions such as voice audio playback or video audio playback. The realization of voice audio playback and video audio playback functions all require the use of audio power amplifier technology.
[0050] During audio playback, the target terminal device's audio amplifier module consumes a lot of power continuously because the terminal device's battery capacity is generally small and the audio amplifier module is always working in a high-power output mode. This results in poor battery life for the terminal device during audio playback.
[0051] To address the aforementioned technical problems, this application discloses a method, apparatus, electronic device, and storage medium for switching audio amplifier modes, which can ensure audio playback quality, save power consumption, and improve user experience. The following is a detailed description in conjunction with the accompanying drawings.
[0052] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for switching audio amplifier modes disclosed in an embodiment of this application. Figure 1 As shown, the method for switching audio amplifier modes may include the following steps.
[0053] 101. Detect the battery voltage of the terminal device.
[0054] In this embodiment of the application, after detecting the battery voltage of the terminal device, the terminal device determines whether the battery voltage of the terminal device is lower than a first voltage threshold.
[0055] In this application embodiment, the terminal device can be various devices that people increasingly rely on in their work and life, such as mobile phones, mobile tablets, smartwatches, smart bracelets, personal digital assistants (PDAs), and mobile internet devices (MIDs). The terminal device can support, but is not limited to, the following network technologies: Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (W-CDMA), CDMA2000, IMT Single Carrier, Enhanced Data Rates for GSM Evolution (EDGE), Long Term Evolution (LTE), Advanced Long Term Evolution (LTE), Time-Division LTE (TD-LTE), High Performance Radio Local Area Network (HiperLAN), High Performance Radio Wide Area Network (HiperWAN), and Local Multipoint Distribution. Service, LMDS, WiMAX, ZigBee, Bluetooth, Orthogonal Frequency Division Multiplexing (OFDM), Massive Space Division Multiple Access (HC-SDMA), Universal Mobile Telecommunications System (UMTS), Universal Mobile Telecommunications System Time Division Duplex (UMTS-TDD), Evolved High Speed Packet Access (HSPA+), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Evolved Data Optimization (EV-DO), Digital Enhanced Cordless Communication (DECT) and others.
[0056] In this embodiment, the audio amplifier mode switching method is applicable to terminal devices such as smartwatches, mobile phones, and tablets. The terminal devices mentioned below can be any of the aforementioned terminal devices, and this embodiment does not limit them. The operating systems of the aforementioned terminal devices may include, but are not limited to, Android, iOS, Symbian, BlackBerry, Windows Phone 8, etc., and this embodiment does not limit them.
[0057] In this embodiment of the application, the terminal device may be provided with a user interface (UI), a radio interface layer (RIL), and a modem.
[0058] In this embodiment of the application, the terminal device may use 2G, 3G voice and audio playback technology or Voice over Long-Term Evolution (VoLTE) technology to implement the voice and audio playback function.
[0059] In this embodiment, the terminal device involves audio playback during voice audio playback, video audio playback, or audio file execution. The audio playback is achieved through an audio power amplifier module. The audio power amplifier module amplifies the audio signal, increasing its power, and then outputs the amplified audio signal to drive the speaker for audio playback. Specifically, the audio power amplifier module may include a power amplifier driver chip, an audio input circuit, and an audio amplification circuit.
[0060] In this embodiment of the application, the terminal device detects the battery voltage of the terminal device during or before playing audio.
[0061] In this embodiment of the application, the battery voltage of the terminal device can be detected by using a power management integrated circuit (PMIC) system fuel meter. The PMIC system can be used to manage the power devices in the terminal device.
[0062] 102. When the battery voltage is not lower than the first voltage threshold, the audio amplifier module of the control terminal device operates in high power output mode.
[0063] In this embodiment, the terminal device can store a first voltage threshold. When the terminal device detects the battery voltage, it can determine whether the battery voltage is lower than the stored first voltage threshold. If not, it controls the audio amplifier module to operate in high-power output mode. The first voltage threshold can be the voltage value corresponding to a certain battery life of the terminal device, and it can be set.
[0064] For example, the terminal device stores a first voltage threshold of 3.8V. During audio playback, if the detected battery voltage is 4.2V, it indicates the battery is in a high-voltage state, meaning it has sufficient power. In this case, the terminal device controls its audio amplifier module to operate in high-power output mode. The first voltage threshold can be determined by the minimum battery voltage required to maintain a certain battery life. For instance, a minimum battery voltage of 3.8V is required to maintain one hour of battery life. This one-hour battery life can be the battery life under the current state, which could be either an open application or standby mode.
[0065] In this embodiment, when the battery voltage of the terminal device is not lower than a first voltage threshold, it indicates that the battery of the terminal device is in a high-voltage state. This means that the battery power at the current moment is sufficient to support both long-term battery life and high-quality audio playback. Therefore, the terminal device sets the audio amplifier mode used during audio playback to high-power output mode. High-power output mode refers to one of the selectable audio playback modes of the terminal device's audio amplifier module. When the terminal device's audio amplifier module operates in high-power output mode, it can output higher volume and higher quality audio data, which also leads to higher power consumption. Audio playback quality can refer to clarity, sound effects, etc.
[0066] In this embodiment of the application, the audio amplifier module of the terminal device is set to operate in a high-power output mode. Specifically, one or more parameters in the audio amplifier module that enable volume adjustment and high-quality audio playback are set to one or a set of parameter values corresponding to the high-power output mode.
[0067] For example, the parameters in an audio amplifier module that enable volume adjustment and high-quality audio playback include gain (AO), resistance value, and rated power. To operate the audio amplifier module in high-power output mode, these three or more parameters related to volume and audio playback quality are set to a set of values corresponding to high-power output mode, such as a gain setting of 35dB, a resistance setting of 1kΩ, and a rated power setting of 100W.
[0068] In this embodiment, the audio amplifier mode of the terminal device can be preset to high-power output mode. This is because audio playback is a crucial function of the terminal device, and ensuring high-volume and high-quality audio playback is a fundamental requirement. Therefore, in the initial or preset stage, the audio amplifier mode needs to be set to high-power output mode by default. This means that parameters related to audio playback volume and quality in the audio amplifier module are initially set to the values corresponding to high-power output mode. This prioritizes ensuring high-volume and high-quality audio playback. Therefore, when the terminal device's battery voltage is not lower than the threshold voltage, the audio amplifier mode remains set to high-power output mode.
[0069] In this embodiment, the audio amplifier module has at least a high-power output mode and a low-power output mode. To enable the audio amplifier module to operate in either the high-power output mode or the low-power output mode, the relevant parameters of the audio amplifier module need to be set to the values corresponding to each mode.
[0070] 103. When the battery voltage is lower than the first voltage threshold, the audio amplifier module of the control terminal device switches to low power output mode. The audio volume output by the audio amplifier module in high power output mode is greater than the audio volume output in low power output mode.
[0071] In this embodiment of the application, the terminal device can store a first voltage threshold. When the terminal device detects the battery voltage of the terminal device, the terminal device can determine whether the battery voltage is lower than the first voltage threshold stored by the terminal device. If so, the terminal device's audio amplifier module is controlled to switch to low power output mode.
[0072] For example, the terminal device stores a first voltage threshold of 3.8V. If the detected battery voltage of the terminal device is 3.2V during audio playback, it indicates that the terminal device's battery is in a low-voltage state, that is, the terminal device's battery power is insufficient. In this case, the terminal device controls the terminal device's audio amplifier module to switch from high-power output mode to low-power output mode.
[0073] In this embodiment, when the battery voltage of the terminal device is lower than a first voltage threshold, it indicates that the battery is in a low-voltage state, meaning that the battery power is insufficient to support both long-term battery life and high-quality audio playback. Therefore, the terminal device switches the operating mode of its audio amplifier module from high-power output mode to low-power output mode. Both high-power and low-power output modes are selectable modes for audio playback by the terminal device's audio amplifier module. Operating in low-power output mode results in lower audio volume, lower audio quality, and lower power consumption. Note that the audio volume, quality, and power consumption when the audio amplifier module operates in high-power or low-power output mode are relative to the median values of these parameters when the audio amplifier module is operating.
[0074] For example, when an audio amplifier module is working, the audio playback volume range is 0-100, with a midpoint of 50. Therefore, in high-power output mode, the audio playback volume is high, specifically between 51 and 100; in low-power output mode, the audio playback volume is low, specifically between 0 and 49. Alternatively, if the audio playback volume range is 10 bars, with a midpoint of 5 bars, then in high-power output mode, the audio playback volume can be 6-10 bars, and in low-power output mode, the audio playback volume can be 0-4 bars. The same principle applies to audio playback quality and the power consumption of the terminal device.
[0075] In this embodiment of the application, the audio amplifier module of the terminal device is made to work in either a high-power output mode or a low-power output mode. Specifically, one or more parameters in the audio amplifier module that enable volume and audio playback quality adjustment are set to one or a set of parameter values corresponding to the high-power output mode or the low-power output mode.
[0076] For example, the parameters used to adjust volume in an audio amplifier module may include gain (AO), resistance value, and rated power. High-power output mode involves setting three or more of these parameters related to volume and audio playback quality, such as a gain setting of 35dB, a resistance setting of 1kΩ, and a rated power setting of 100W. Low-power output mode also involves setting three or more of these parameters, such as a gain setting of 25dB, a resistance setting of 10kΩ, and a rated power setting of 10W. While the parameter values differ between high-power and low-power output modes, the types and number of parameters are the same. Furthermore, when the audio amplifier module operates in different modes, the audio volume produced by the terminal device is louder when using the parameters corresponding to the high-power output mode than when using the parameters corresponding to the low-power output mode.
[0077] In this embodiment, the parameter values corresponding to the high-power output mode and the low-power output mode are stored in the terminal device. Furthermore, when the audio amplifier module of the terminal device switches its operating mode from high-power output mode to low-power output mode, the parameter values corresponding to the low-power output mode are used, and the parameter values corresponding to the high-power output mode are replaced accordingly.
[0078] This application embodiment uses the relationship between the battery voltage of the terminal device and the first voltage threshold as the basis for switching the working mode of the audio power amplifier module. This can ensure the audio playback quality when the battery capacity of the terminal device is small but the battery voltage is large enough, and reduce the audio playback quality when the battery voltage is insufficient, thereby improving the battery life of the terminal device during audio signal playback.
[0079] As an optional implementation, after the terminal device controls the audio amplifier module of the terminal device to switch to low-power output mode in step 103, the following steps can also be performed:
[0080] Output a prompt message, which prompts the terminal device’s audio amplifier module to switch to low power output mode and confirms whether to switch back to high power output mode.
[0081] If an audio amplifier mode switching command is received, the audio amplifier module is controlled to switch to high-power output mode according to the audio amplifier mode switching command.
[0082] In this embodiment, after the audio amplifier module of the terminal device switches to low-power output mode, a prompt message is generated and output. This prompt message is used to remind the audio amplifier module of the terminal device to switch to low-power output mode and to confirm whether to switch back to high-power output mode. The terminal device can display the prompt message on a screen, which can be a touchscreen or a non-touchscreen display; the terminal device can also output the prompt message to the audio amplifier module for playback.
[0083] In this embodiment of the application, the prompt information may include information such as the battery life in low power output mode, the current battery level of the terminal device, and the battery life in high power output mode.
[0084] For example, after the audio amplifier module of the terminal device switches to low-power output mode, the terminal device generates a prompt message and outputs it to the touchscreen for display. The prompt display interface is as follows: Figure 2 As shown. The display interface includes a terminal device 201 and an information prompt box 202. The information prompt box 202 contains three types of information: battery life in low power output mode, current battery level of the terminal device, and battery life in high power output mode. This allows the terminal device user to intuitively see the changes in battery life and audio playback quality when the terminal device is working in high power output mode and low power output mode, respectively.
[0085] In this embodiment, after the terminal device outputs a prompt message, it checks whether there is an audio amplifier mode switching command. The audio amplifier switching command is input by the user, which can be achieved by clicking the terminal device's display screen or a relevant button. The audio amplifier switching command is used to control the terminal device's audio amplifier module to switch from a low-power output mode to a high-power output mode. Therefore, if the terminal device receives an audio amplifier mode switching command, it controls the audio amplifier module to switch to high-power output mode according to the command.
[0086] In this embodiment, the parameter values corresponding to the high-power output mode and the low-power output mode are stored in the terminal device. Furthermore, when the audio amplifier module of the terminal device switches its operating mode from low-power output mode to high-power output mode, the parameter values corresponding to the high-power output mode are used to replace the parameter values corresponding to the low-power output mode.
[0087] The embodiments of this application enable terminal device users to better understand the operating mode of the audio amplifier module, and then comprehensively select the current operating mode of the audio amplifier module of the terminal device based on the terminal device's battery life and audio playback quality.
[0088] As an optional implementation, after controlling the audio amplifier module of the terminal device to operate in high-power output mode in step 102, the following steps can also be performed:
[0089] After the audio amplifier module of the control terminal device operates in high-power output mode when the battery voltage is not lower than the first voltage threshold, it also includes:
[0090] If the terminal device is connected to the playback device, the battery voltage of the playback device is detected. The playback device and the terminal device play audio together.
[0091] When the battery voltage of the playback device is lower than the second voltage threshold, the audio amplifier module of the control terminal device switches to low power output mode.
[0092] In this embodiment, the terminal device can be connected to a playback device. Audio playback is achieved jointly by the playback device and the terminal device; that is, the audio amplifier module of the terminal device amplifies the audio signal and transmits it to the playback device for playback. When the terminal device and the playback device are connected, the audio amplifier module of the terminal device operates in high-power output mode, which causes the playback device to consume power faster than the terminal device's audio amplifier module operating in low-power output mode. Therefore, the terminal device detects the battery voltage of the playback device.
[0093] In this embodiment, for detecting the battery voltage of the playback device, if the terminal device and the playback device are wired, an application on the terminal device or an external voltage detection device can be used to detect the voltage of the playback device through the wired connection interface, and the detected battery voltage value can be transmitted to the terminal device through the wired interface. If the terminal device and the playback device are wirelessly connected, relevant instructions can be sent to instruct the external voltage detection device to detect the battery voltage of the playback device or to instruct the playback device to detect its own battery voltage, and transmit the data to the terminal device through the wireless connection. No specific limitation is made to the method for detecting the battery voltage of the playback device.
[0094] In this embodiment, the terminal device can store a second voltage threshold. When the terminal device detects or receives the detected battery voltage of the playback device, it can determine whether the battery voltage of the playback device is lower than the second voltage threshold stored in the terminal device. If not, the terminal device controls the audio amplifier module to operate in high-power output mode; if so, the terminal device controls the audio amplifier module to switch to low-power output mode. The second voltage threshold can be the voltage value corresponding to a certain battery life of the playback device, and the second voltage threshold can be set.
[0095] For example, the terminal device stores a second voltage threshold of 4V for the playback device. During audio playback when the terminal and playback devices are connected, if the detected battery voltage of the playback device is 3V, it indicates that the playback device's battery is in a low-voltage state. In this case, the terminal device controls the audio amplifier module to operate in low-power output mode. The second voltage threshold can be obtained based on the minimum voltage required for the playback device to maintain a certain battery life. For example, the minimum voltage required for the playback device to maintain one hour of battery life is 4V. In other words, the one-hour battery life maintained by the playback device is the duration during which the playback device can achieve audio playback while the terminal device's audio amplifier module is in high-power output mode.
[0096] In this embodiment, when the battery voltage of the playback device is lower than the second voltage threshold, it indicates that the battery of the playback device is in a low-voltage state, meaning that the battery power of the playback device at that moment is insufficient to support a high-quality audio playback process together with the terminal device. Therefore, based on the battery voltage of the playback device, the terminal device switches the operating mode of the audio amplifier module used in the audio playback process from high-power output mode to low-power output mode.
[0097] In this embodiment of the application, when the operating mode of the audio amplifier module of the terminal device switches from high power output mode to low power output mode, the parameter values corresponding to the low power output mode are used, and the parameter values corresponding to the high power output mode are replaced accordingly.
[0098] In this embodiment, when the audio amplifier module of the terminal device switches from high power output mode to low power output mode, the playback device reduces the playback volume and audio quality during audio playback, thereby reducing the power consumption of the playback device.
[0099] In this embodiment, when a terminal device with an audio amplifier module operating in high-power output mode is connected to a playback device, the battery voltage of the playback device is detected. When the battery voltage of the playback device is lower than the second battery threshold, the audio amplifier module of the terminal device is controlled to switch to low-power output mode. This allows the terminal device to comprehensively consider the battery life of each device during audio playback, thereby ensuring battery life and preventing the audio playback process from being interrupted.
[0100] As an optional implementation, after the audio amplifier module of the control terminal device switches to low-power output mode in step 103, the method further includes:
[0101] The power consumption rate of the detection terminal device when controlling the audio amplifier module to output audio signals;
[0102] The output parameters of the audio amplifier module when it switches to low-power output mode are determined based on the power consumption rate, and the audio amplifier module is controlled to output audio signals according to the output parameters.
[0103] The output parameters include one or more of the following: volume gain, resistance value, and rated power.
[0104] In this embodiment, the terminal device detects the power consumption rate of the terminal device during the audio amplifier module's output of audio signals. Specifically, the power consumption rate during audio playback can be obtained by detecting and calculating the power difference between two adjacent moments during audio playback using software or hardware devices such as Power Monitor. Alternatively, the power consumption rate can be detected by software or hardware devices such as Power Monitor when different applications are running individually, when audio is played using different audio parameters, and when audio is played using different playback methods. The detected results are stored in the terminal device. The terminal device then sums up the power consumption rates according to the currently running application, the audio parameters used for audio playback, and the playback method to obtain the current power consumption rate of the terminal device. Different playback methods can include mono playback or stereo playback.
[0105] For example, the power consumption rate of a terminal device running application A alone is 0.5V / h, that of application B alone is 0.6V / h, and that of application C alone is 0.5V / h. The power consumption rate for audio playback using parameter 1 and playback mode a is 1V / h, using parameter 2 and playback mode b is 1.5V / h, using parameter 2 and playback mode a is 1.2V / h, and using parameter 2 and playback mode b is 2V / h. Therefore, when audio playback is performed using parameter 2 and playback mode b while application A is running simultaneously, the power consumption rate is 1.7V / h.
[0106] In this embodiment, the terminal device determines the value of the output parameter of the audio amplifier module based on the power consumption rate. The output parameter is one or more parameters in the audio amplifier module that enable volume adjustment, specifically one or more of volume gain, resistance value, and rated power. In other words, the terminal device determines the value of the output parameter used to adjust the audio volume played by the audio amplifier module based on the power consumption rate. There is a positive or negative correlation between the power consumption rate and the value of the audio amplifier module's output parameter. For output parameters whose values are positively correlated with audio playback volume and quality, the parameter is negatively correlated with the power consumption rate; for example, the volume gain parameter. Conversely, for output parameters whose values are negatively correlated with audio playback volume and quality, the parameter is positively correlated with the power consumption rate; for example, the resistance value parameter.
[0107] In this embodiment, after the terminal device determines the value of the output parameter of the audio amplifier module according to the power consumption rate, it replaces the value of the parameter in the low power output mode with the value of the output parameter and controls the audio amplifier module of the terminal device to play audio under the value of the output parameter.
[0108] In this embodiment, the terminal device can also pre-set and save the output parameter values of the audio amplifier module at different power consumption rates, and adjust and save the output parameter values of the audio amplifier module in different application scenarios under the same power consumption rate. The terminal device can obtain the current power consumption rate and the output parameters corresponding to the power consumption rate, and control the audio amplifier module to work (output audio data) according to the output parameters corresponding to the power consumption rate.
[0109] For example, for a power consumption rate of 1V / h, the terminal device can preset and save the corresponding output parameters, namely a gain setting of 15dB, a resistance setting of 20kΩ, and a rated power setting of 5W; for a power consumption rate of 2V / h, the terminal device can preset and save the corresponding output parameters, namely a gain setting of 20dB, a resistance setting of 10kΩ, and a rated power setting of 10W.
[0110] For the same rate of power consumption, there may be different application scenarios. These scenarios refer to the usage context corresponding to the audio data output by the audio amplifier module, such as in-car playback or outdoor playback. Different output parameters can be set for different application scenarios; for example, the noise level in different application scenarios will affect the required volume during audio playback.
[0111] For example, when the power consumption rate is 1V / h, there are different application scenarios: in-car playback and outdoor playback. Since the ambient noise in the in-car playback scenario is lower than that in the outdoor playback scenario, when the power consumption rate is 1V / h and the application scenario is in-car playback, the terminal device adjusts and saves the corresponding output parameters: gain set to 10dB, resistance set to 20kΩ, and rated power set to 5W. When the power consumption rate is 1V / h and the application scenario is outdoor playback, the terminal device adjusts and saves the corresponding output parameters: gain set to 20dB, resistance set to 20kΩ, and rated power set to 5W. The terminal device then uses the saved output parameter values to replace the low-power output mode output parameters, based on the power consumption rate and the application scenario.
[0112] In this embodiment, the parameters of the audio amplifier module operating in low-power output mode are adjusted by detecting the power consumption rate when the terminal device outputs an audio signal. The audio signal is then output based on the adjusted parameters. This ensures that within the low-power output mode range, the parameters are adjusted according to the power consumption rate, making the output audio signal more conducive to maintaining battery life.
[0113] As an optional implementation, after step 102 controls the audio amplifier of the control terminal device to operate in high-power output mode, the method further includes:
[0114] Detect the power consumption rate of the terminal device;
[0115] When the power consumption rate is not lower than the power consumption rate threshold, the audio amplifier module of the control terminal device switches to low power output mode.
[0116] In this embodiment, the terminal device detects the power consumption rate of the terminal device during the audio amplifier module's output of audio signals. Specifically, the power consumption rate during audio playback can be obtained by software detecting and calculating the power difference before and after audio playback; or it can be detected by hardware devices such as Power Monitor.
[0117] In this embodiment, the terminal device can store a power consumption rate threshold. When the terminal device detects that the power consumption rate is not lower than the power consumption rate threshold, the terminal device controls the audio amplifier module to switch to low-power output mode. The power consumption rate threshold can be the power consumption rate corresponding to the shortest possible battery life that the terminal device can maintain, and the power consumption rate threshold can be set. The shortest possible battery life can be less than or equal to the aforementioned certain battery life.
[0118] For example, if a terminal device stores a power consumption rate threshold of 3V / h, then at this rate, the shortest battery life is 1 hour. This minimum battery life is intended to give the user sufficient time to find a way to recharge the device. However, if the detected power consumption rate is 3.2V / h, then the audio amplifier module, operating at high power output at this rate, will reduce the device's battery life to less than 1 hour.
[0119] In this embodiment, the parameter values corresponding to the high-power output mode and the low-power output mode are stored in the terminal device. Furthermore, when the audio amplifier module of the terminal device switches its operating mode from high-power output mode to low-power output mode, the parameter values corresponding to the low-power output mode are used to replace the parameter values corresponding to the high-power output mode.
[0120] In this embodiment, the power consumption rate of the terminal device is detected. When the power consumption rate is not lower than the power consumption threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode. This allows the terminal device to switch to low power output mode when the power consumption rate is higher than expected during audio playback, which can effectively ensure the battery life of the terminal device.
[0121] Please see Figure 3 , Figure 3 This is a flowchart illustrating another method for switching audio amplifier modes disclosed in an embodiment of this application. Figure 3 As shown, the method for switching audio amplifier modes may include the following steps:
[0122] 301. Check if the terminal device is connected to the charging device. If yes, proceed to step 302. If no, end this process.
[0123] In this embodiment, when the battery voltage is lower than a first voltage threshold, after the audio amplifier of the control terminal device switches to low-power output mode, the terminal device can detect whether it is connected to the charging device, that is, whether the terminal device is charging. Since charging between the terminal device and the charging device can be wireless or wired, the connection method can be either wireless or wired. If the terminal device and the charging device are connected wiredly, the terminal device can be equipped with a Universal Serial Bus (USB) interface, allowing it to connect to the charging device. The connection is detected and identified by monitoring the USB interface information. When an external device is detected connected to the terminal device and that external device is a charging device, it is confirmed that the terminal device is charging. If the terminal device and the charging device are connected wirelessly, the terminal device can detect whether a charging device is connected by detecting whether the sensing disk is connected to a magnetic induction area or whether a charging circuit is formed.
[0124] 302. If the terminal device is connected to the charging device, the charging current input from the charging device to the battery of the terminal device is detected, and it is determined whether the charging current is lower than the current threshold.
[0125] In this embodiment, when the terminal device and the charging device are detected to be connected, that is, when the charging device inputs charging voltage / current to the terminal device's battery to charge the terminal device, the magnitude of the charging current input by the charging device to the terminal device's battery is detected. Regarding the detection of the charging current, when the terminal device is connected to the charging device via a USB interface or magnetic induction area, the terminal device can use an application or external device to detect the current or voltage at the USB interface or magnetic induction area, thereby determining the charging current or charging voltage. Alternatively, the terminal device can call its built-in modes to obtain the charging current or charging voltage. For example, an Android system terminal device can call its engineering mode, and by entering engineering mode, view information such as battery voltage and charging current to obtain the charging current or charging voltage. No specific limitations are made here.
[0126] 303. When the charging current is not lower than the current threshold, the audio amplifier module of the control terminal device switches to high power output mode.
[0127] In this embodiment, the terminal device can store a current threshold. After detecting the charging current, the terminal device compares the value of the charging current with the current threshold to determine whether the charging current is lower than the current threshold. If so, the terminal device's audio amplifier module is controlled to operate in low-power output mode; otherwise, the terminal device's audio amplifier module is controlled to switch from low-power output mode to high-power output mode.
[0128] In this embodiment, when the charging current of the terminal device is not lower than the current threshold, it indicates that the charging current helps improve the current battery life of the terminal device when it is being charged by the charging device. In other words, the current charging current of the terminal device is sufficient to support both long battery life and high-quality audio playback. Therefore, the terminal device switches the operating mode of the audio amplifier module used in the audio playback process from low-power output mode to high-power output mode.
[0129] In this embodiment, the high-power output mode or low-power output mode of the audio amplifier module of the terminal device is specifically one or a set of parameter values corresponding to one or more parameters in the audio amplifier module that can realize volume adjustment.
[0130] For example, the parameters used to adjust volume in an audio amplifier module may include gain (AO), resistance value, and rated power. High-power output mode involves setting three or more of these volume-related parameters, such as a gain setting of 35dB, a resistance setting of 1kΩ, and a rated power setting of 100W. Low-power output mode also involves setting three or more of these volume-related parameters, such as a gain setting of 25dB, a resistance setting of 10kΩ, and a rated power setting of 10W. The only difference between high-power and low-power output modes is the parameter values; the parameter types and number are the same. Furthermore, in terms of effect, when the audio amplifier module in the terminal device uses the parameter values corresponding to high-power output mode, the audio volume is louder than when the audio amplifier module uses the parameter values corresponding to low-power output mode.
[0131] In this embodiment, the parameter values corresponding to the high-power output mode and the low-power output mode are stored in the terminal device. Furthermore, when the audio amplifier module of the terminal device switches its operating mode from low-power output mode to high-power output mode, the parameter values corresponding to the high-power output mode are used to replace the parameter values corresponding to the low-power output mode.
[0132] In this embodiment, when an external device supplies power to the terminal device and the supply current is large enough, the terminal device's audio amplifier module is switched to high-power output mode, which can effectively ensure both the terminal device's battery life and the current audio playback quality.
[0133] As an optional implementation, the current threshold is the operating current of the audio power amplifier module.
[0134] In this embodiment, the operating current of the audio amplifier module is related to the format of the audio playback file, the playback method of the audio playback file, and the number of audio files being played. The higher the audio quality corresponding to the format of the audio playback file, the greater the operating current of the audio amplifier module when playing that file; the more audio files being played, the greater the operating current of the audio amplifier module.
[0135] In this embodiment, the operating current can be detected by connecting to an external device via an interface such as USB. The external device can then detect the current flowing into and out of the audio amplifier module in the terminal device through the USB interface, thus obtaining the operating current of the audio amplifier module. Alternatively, a current detection component can be built into the terminal device to detect the operating current of each module within the terminal device.
[0136] In this embodiment, the charging current input from the charging device to the terminal device is compared with the operating current of the audio amplifier module. This determines whether the energy input from the charging device can offset the energy consumed by the audio amplifier module during operation. The operating current of the audio amplifier module is the current consumed during audio playback. When the charging current of the terminal device is not lower than the operating current of the audio amplifier module, it indicates that when the terminal device is charged, even with the audio amplifier module operating simultaneously, the charging current can still improve the terminal device's battery life. In other words, the energy provided by the charging current can simultaneously maintain both the terminal device's battery life and the operation of the audio amplifier module.
[0137] In this embodiment, by limiting the current threshold to the operating current of the audio amplifier module, the operating mode of the audio amplifier module can be switched easily and effectively.
[0138] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an audio amplifier mode switching device disclosed in an embodiment of this application. Figure 4 As shown, the switching device may include a voltage detection module 401 and an audio switching module 402.
[0139] Voltage detection module 401 is used to detect the battery voltage of terminal devices;
[0140] The audio switching module 402 is used to control the audio amplifier module of the terminal device to operate in a high-power output mode when the battery voltage is not lower than a first voltage threshold; and to control the audio amplifier module of the terminal device to switch to a low-power output mode when the battery voltage is lower than the first voltage threshold, wherein the volume output by the terminal device in the high-power output mode is greater than the volume output in the low-power output mode.
[0141] As an optional implementation, after the audio switching module 402 controls the audio amplifier module of the terminal device to switch to low power output mode, it also includes an output prompt module 403. The module 402 is used to output prompt information, wherein the prompt information is used to prompt the audio amplifier module of the terminal device to switch to low power output mode and to confirm whether to switch back to high power output mode.
[0142] The audio switching module 402 is also used for:
[0143] If an audio amplifier mode switching command is received, the audio amplifier module is controlled to switch to high-power output mode according to the audio amplifier mode switching command.
[0144] In this embodiment, after obtaining the user's input audio amplifier mode switching command, the audio amplifier module is switched to high power output mode, so that the terminal device user can better understand the working mode of the audio amplifier module, and then select the current working mode of the audio amplifier module of the terminal device based on the terminal device's battery life and audio playback quality.
[0145] As an optional implementation, after the audio switching module 402 controls the audio amplifier module of the terminal device to operate in high-power output mode, the voltage detection module 401 is further used for:
[0146] If the terminal device is connected to the playback device, the battery voltage of the playback device is detected. The playback device and the terminal device play audio together.
[0147] The audio switching module 402 is also used for:
[0148] When the battery voltage of the playback device is lower than the second voltage threshold, the audio amplifier module of the control terminal device switches to low power output mode.
[0149] In this embodiment, when a terminal device with an audio amplifier module operating in high-power output mode is connected to a playback device, the battery voltage of the playback device is detected. When the battery voltage of the playback device is lower than the second battery threshold, the audio amplifier module of the terminal device is controlled to switch to low-power output mode. This allows the terminal device to comprehensively consider the battery life of each device during audio playback, thereby ensuring battery life and preventing the audio playback process from being interrupted.
[0150] As an optional implementation, after the audio switching module 402 controls the audio amplifier module of the terminal device to switch to low power output mode, a power detection module 404 is also included to detect the power consumption rate of the terminal device when controlling the audio amplifier module to output audio signals.
[0151] The audio switching module 402 is also used for:
[0152] The output parameters of the audio amplifier module when it switches to low-power output mode are determined based on the power consumption rate, and the audio amplifier module is controlled to output audio signals according to the output parameters.
[0153] The output parameters include one or more of the following: volume gain, resistance value, and rated power.
[0154] In this embodiment, the parameters of the audio amplifier module operating in low-power output mode are adjusted by detecting the power consumption rate when the terminal device outputs an audio signal. The audio signal is then output based on the adjusted parameters. This allows the parameters to be adjusted according to the power consumption rate within the low-power output mode range, making the output audio signal more conducive to ensuring battery life.
[0155] As an optional implementation, after the audio switching module 402 controls the audio amplifier module of the terminal device to operate in high-power output mode, the power detection module 404 is further used for:
[0156] Detect the power consumption rate of the terminal device;
[0157] The audio switching module 402 is also used for:
[0158] When the power consumption rate is not lower than the power consumption rate threshold, the audio amplifier module of the control terminal device switches to low power output mode.
[0159] In this embodiment, the power consumption rate of the terminal device is detected. When the power consumption rate is not lower than the power consumption threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode. This allows the terminal device to switch to low power output mode when the power consumption rate is higher than expected during audio playback, which can effectively ensure the battery life of the terminal device.
[0160] Please see Figure 5 , Figure 5 This is a schematic diagram of another audio amplifier mode switching device disclosed in an embodiment of this application. Figure 5 The switching device shown is composed of Figure 4 The switching device shown is a further optimized version. Figure 4 Compared to the switching devices shown, Figure 5 The audio amplifier mode switching device shown may also include:
[0161] The charging detection module 501 is used to detect whether the terminal device is connected to the charging device;
[0162] The current detection module 502 is used to detect the charging current input from the charging device to the battery of the terminal device if the terminal device is connected to the charging device.
[0163] The secondary switching module 503 is used to control the audio amplifier module of the terminal device to switch to high power output mode when the charging current is not lower than the current threshold.
[0164] In this embodiment, when an external device supplies power to the terminal device and the supply current is large enough, the terminal device's audio amplifier module is switched to high-power output mode, which can effectively ensure both the terminal device's battery life and the current audio playback quality.
[0165] As an optional implementation, the current threshold is the operating current of the audio power amplifier module.
[0166] In this embodiment, by limiting the current threshold to the operating current of the audio amplifier module, the operating mode of the audio amplifier module can be switched easily and effectively.
[0167] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a terminal device disclosed in an embodiment of this application.
[0168] like Figure 6 As shown, the terminal device may include:
[0169] Memory 601 storing executable program code;
[0170] Processor 602 coupled to memory 601;
[0171] Specifically, the processor 602 calls the executable program code stored in the memory 601 and executes it. Figures 1-3 Methods for switching between any audio amplifier modes.
[0172] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute... Figures 1-3 Methods for switching between any audio amplifier modes.
[0173] This application also discloses an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.
[0174] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0175] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0176] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0177] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0178] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of this application.
[0179] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0180] The above provides a detailed description of an audio amplifier mode switching method and terminal device disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for switching audio amplifier modes, characterized in that, The method includes: Detect the battery voltage of the terminal device; When the battery voltage is not lower than the first voltage threshold, the audio amplifier module of the terminal device is controlled to work in high power output mode. When the battery voltage is lower than the first voltage threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode, wherein the audio volume output by the audio amplifier module in the high power output mode is greater than the audio volume output in the low power output mode. Detect the power consumption rate of the terminal device when controlling the audio amplifier module to output audio signals; The output parameters of the audio amplifier module when it switches to low-power output mode are determined based on the power consumption rate and the application scenario, and the audio amplifier module is controlled to output audio signals according to the output parameters; wherein, the application scenario is the usage scenario corresponding to the audio data output by the audio amplifier module, and the output parameters include one or more of volume gain, resistance value, and rated power; After controlling the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than the first voltage threshold, the method further includes: Detect the power consumption rate of the terminal device; When the power consumption rate is not lower than the power consumption rate threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode.
2. The method according to claim 1, characterized in that, After controlling the audio amplifier of the terminal device to switch to the low-power output mode when the battery voltage is lower than the first voltage threshold, the method further includes: Detect whether the terminal device is connected to the charging device; If the terminal device is connected to the charging device, the charging current input from the charging device to the battery of the terminal device is detected; When the charging current is not lower than the current threshold, the audio amplifier module of the terminal device is controlled to switch to high power output mode.
3. The method according to claim 2, characterized in that, The current threshold is the operating current of the audio power amplifier module.
4. The method according to claim 1, characterized in that, After controlling the audio amplifier module of the terminal device to switch to low-power output mode when the battery voltage is lower than the first voltage threshold, the following steps are included: Output a prompt message, wherein the prompt message is used to prompt the audio amplifier module of the terminal device to switch to the low power output mode and confirm whether to switch back to the high power output mode; If an audio amplifier mode switching command is received, the audio amplifier module is controlled to switch to the high-power output mode according to the audio amplifier mode switching command.
5. The method according to claim 1, characterized in that, After controlling the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than the first voltage threshold, the method further includes: If the terminal device is connected to the playback device, the battery voltage of the playback device is detected, wherein the playback device and the terminal device jointly perform audio playback; When the battery voltage of the playback device is lower than the second voltage threshold, the audio amplifier module of the terminal device is controlled to switch to low power output mode.
6. A switching device for an audio power amplifier mode, characterized in that, include: Voltage detection module, used to detect the battery voltage of terminal devices; An audio switching module is used to control the audio amplifier module of the terminal device to operate in high-power output mode when the battery voltage is not lower than a first voltage threshold; and to control the audio amplifier module of the terminal device to switch to low-power output mode when the battery voltage is lower than the first voltage threshold, wherein the volume output by the terminal device in the high-power output mode is greater than the volume output in the low-power output mode. A power detection module is used to detect the rate at which the terminal device consumes power when controlling the audio amplifier module to output audio signals; The audio switching module is further configured to determine the output parameters of the audio amplifier module when it switches to low-power output mode based on the power consumption rate and the application scenario, and control the audio amplifier module to output audio signals according to the output parameters; wherein, the application scenario is the usage scenario corresponding to the audio data output by the audio amplifier module, and the output parameters include one or more of volume gain, resistance value, and rated power; The audio switching module is also used to control the audio amplifier module of the terminal device to switch to low power output mode when the power consumption rate is not lower than the power consumption rate threshold.
7. A terminal device, comprising: A memory and a processor, wherein the memory stores a computer program, characterized in that the computer program can be executed by the processor to enable the processor to implement the method for switching audio amplifier modes as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor such that the processor implements the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Control method for smart power amplifier, terminal and storage medium
CN107682551A