CN116782108A - Speaker control method, electronic device and computer readable storage medium - Google Patents

Speaker control method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN116782108A
CN116782108A CN202311063266.6A CN202311063266A CN116782108A CN 116782108 A CN116782108 A CN 116782108A CN 202311063266 A CN202311063266 A CN 202311063266A CN 116782108 A CN116782108 A CN 116782108A
Authority
CN
China
Prior art keywords
speakers
speaker
power consumption
audio
tablet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311063266.6A
Other languages
Chinese (zh)
Other versions
CN116782108B (en
Inventor
温玉磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311063266.6A priority Critical patent/CN116782108B/en
Publication of CN116782108A publication Critical patent/CN116782108A/en
Application granted granted Critical
Publication of CN116782108B publication Critical patent/CN116782108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a loudspeaker control method, electronic equipment and a computer readable storage medium, and relates to the technical field of loudspeakers. The speaker control method includes: the electronic equipment comprises N loudspeakers, N is an integer greater than or equal to 2, M loudspeakers in the N loudspeakers are in a working state, M is an integer greater than or equal to 1, and M is less than or equal to N, and the method comprises the following steps: acquiring battery information of the electronic equipment; if the electronic equipment is determined to be in a preset state based on the battery information, determining a speaker control strategy of the electronic equipment based on the battery information, wherein the speaker control strategy comprises L target speakers to be closed and Z with audio power consumption to be reduced in M speakers, and L is calculated according to Z; the preset state includes a low temperature and/or low power state; the L target speakers are turned off. Therefore, the electronic equipment can reduce the audio power consumption and ensure the better audio playing effect.

Description

Speaker control method, electronic device and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of speakers, in particular to a speaker control method, electronic equipment and a computer readable storage medium.
Background
With the advancement of technology, in order to enhance the audio playing effect of electronic devices, more and more audio devices (e.g., speakers) are provided in the electronic devices.
The audio device provided in the electronic apparatus has a certain power consumption in an operating state (i.e., a play audio state). If the electronic equipment is in a low-power or low-temperature working condition, the electronic equipment can limit the audio power consumption of the audio device so as to improve the endurance time of the electronic equipment or avoid the electronic equipment from being blocked. However, limiting the audio power consumption of the electronic device may result in poor audio playback of the electronic device.
Disclosure of Invention
The application provides a loudspeaker control method, electronic equipment and a computer readable storage medium, which can reduce audio power consumption of the electronic equipment and ensure better audio playing effect.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, a method for controlling speakers is provided, where the method is applied to an electronic device, the electronic device includes N speakers, N is an integer greater than or equal to 2, M speakers among the N speakers are in a working state, M is an integer greater than or equal to 1, and M is less than or equal to N, and the method includes: acquiring battery information of the electronic equipment; if the electronic equipment is determined to be in a preset state based on the battery information, determining a speaker control strategy of the electronic equipment based on the battery information, wherein the speaker control strategy comprises L target speakers to be closed and Z with audio power consumption to be reduced in M speakers, and L is calculated according to Z; the preset state includes a low temperature and/or low power state; the L target speakers are turned off.
In the scheme of the application, in order to improve the endurance time of the electronic equipment or ensure the running smoothness of the electronic equipment under the working condition of low electric quantity and/or low temperature, the total power consumption of the speakers (namely the sum of the power consumed by all the speakers on the electronic equipment) can be reduced by closing 1 or more speakers in the electronic equipment. The electronic equipment reduces the total power consumption of the speakers by closing 1 or more speakers, and the power of a single speaker of the speakers in the working state can not be reduced, so that the speakers in the working state still have a better audio playing effect, and the electronic equipment is ensured to have a better audio playing effect on the basis of reducing the power consumption of the speakers.
In another possible implementation manner of the first aspect, if the audio power consumption of each of the M speakers is the same, and the audio power consumption of each speaker is Z1, the number of target speakers to be turned off L is a rounded result of a ratio of Z to Z1.
In the scheme of the application, the electronic equipment reduces the total power consumption of the speakers by closing 1 or more speakers, and the power of a single speaker of the speakers in the working state can not be reduced, so that the speakers in the working state still have better audio playing effect, and the electronic equipment is ensured to have better audio playing effect on the basis of reducing the power consumption of the speakers.
In another possible implementation manner of the first aspect, the M speakers include M/2 first speakers and M/2 second speakers; the audio power consumption of the first loudspeaker is Z2, and the audio power consumption of the second loudspeaker is Z3, wherein Z2 is larger than Z3; if the audio power consumption Z to be reduced is more than or equal to Z2, the number L of the target speakers to be closed is the rounded result of the ratio of Z to Z2; or the number L of the target speakers to be closed is the rounded result of the ratio of Z to Z3; or the sum of a value a and a value b of the number L of the target speakers to be closed, wherein the value a and the value b are integers greater than or equal to 1, and the value a and the value b satisfy the following conditionsThe method comprises the steps of carrying out a first treatment on the surface of the Wherein a is the number of first speakers to be closed and b is the number of second speakers to be closed; if the audio power consumption Z to be reduced is greater than or equal to Z3 and smaller than Z2, the number L of the target speakers to be closed is the rounded result of the ratio of Z to Z3.
In the scheme of the application, the electronic equipment reduces the total power consumption of the speakers by closing 1 or more speakers, and the power of a single speaker of the speakers in the working state can not be reduced, so that the speakers in the working state still have better audio playing effect, and the electronic equipment is ensured to have better audio playing effect on the basis of reducing the power consumption of the speakers.
In the scheme of the application, if the audio power consumption Z to be reduced is greater than or equal to Z2, the number L of the target speakers to be closed is an integer part of a ratio result after dividing Z and Z2; if the audio power consumption Z to be reduced is larger than or equal to Z3 and the audio power consumption Z to be reduced is smaller than Z2, the number L of the target speakers to be closed is an integer part of the ratio result after dividing Z and Z3. The schemes can reduce the number of the closed loudspeakers as much as possible, so that the electronic equipment still has a good audio playing effect on the basis of reducing the power consumption of the loudspeakers.
In another possible implementation manner of the first aspect, M-L speakers other than the L target speakers of the M speakers are in an operating state, and a distance between each of the L target speakers and the user is greater than or equal to a distance between each of the M-L speakers and the user.
In the scheme of the application, a plurality of loudspeakers are arranged in the electronic equipment. In the process of using the electronic device by a user, the electronic device is generally inclined relative to the position of the human body, the distances between the plurality of speakers and the user (such as ears of the user) are different, and different audio effects can be generated by closing the speakers with different distances from the user. Thus, the distance of the speaker in the electronic device to the user may be taken into account for determining the target speaker to be turned off. In the scheme of the application, the loudspeaker far away from the user is determined as the target loudspeaker to be closed, namely, the target loudspeaker to be closed is determined by considering the distance factor, so that the electronic equipment still has a better audio playing effect on the basis of reducing the power consumption of the loudspeaker.
In another possible implementation manner of the first aspect, the L target speakers are symmetrically arranged.
In the scheme of the application, the symmetrical design of the loudspeaker can be used as a consideration factor for determining the target loudspeaker to be closed, so that the electronic equipment can be ensured to still have a better audio playing effect on the basis of reducing the power consumption of the loudspeaker.
In another possible implementation manner of the first aspect, the method further includes: reducing the audio power consumption of each of the (M-L) speakers by Z4/(M-L); wherein Z4 represents the audio power consumption to be reduced, and Z4 is the difference between the audio power consumption corresponding to Z and L target speakers.
In another possible implementation manner of the first aspect, the electronic device includes a power amplifier, and the power amplifier is connected to the speaker in a one-to-one correspondence; reducing the audio power consumption of each of the (M-L) speakers by Z4/(M-L), comprising: by reducing the audio gain of the power amplifier, the audio power consumption of each of the (M-L) speakers is reduced by Z4/(M-L).
In another possible implementation manner of the first aspect, if the audio power consumption Z to be reduced is smaller than the audio power consumption Z3 of the second speaker, L is 0, the method further includes: reducing the audio power consumption of each of the M speakers by Z/M;
In another possible implementation manner of the first aspect, the first side of the electronic device is provided with M/4 first speakers and M/4 second speakers, and the first speakers and the second speakers of the first side are disposed adjacent to each other; m/4 first speakers and M/4 second speakers are arranged on the second side of the electronic equipment, and the first speakers and the second speakers on the second side are adjacently arranged; the first loudspeaker of the first side and the first loudspeaker of the second side are oppositely arranged; the second speaker on the first side and the second speaker on the second side are disposed opposite to each other.
In another possible implementation manner of the first aspect, the first speaker is a woofer and the second speaker is a tweeter.
In another possible implementation manner of the first aspect, the battery information includes remaining power information of the electronic device and/or temperature information of the electronic device, the temperature information of the electronic device representing a temperature of an environment in which the battery in the electronic device is located; if the residual electric quantity information of the electronic equipment meets the preset standard electric quantity threshold condition, the electronic equipment is in a low-temperature state; if the temperature information of the electronic equipment meets the preset standard temperature threshold condition, the electronic equipment is in a low-power state.
In a second aspect, an electronic device is provided that includes a processor and a memory; the memory is used for storing code instructions; the processor is configured to execute code instructions to perform the method of speaker control as in any one of the possible designs of the first aspect.
In a third aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform a loudspeaker control method as in any of the possible designs of the first aspect.
In a fourth aspect, there is provided a computer program product comprising computer programs/instructions which when executed by a processor implement the method of any one of the possible designs of the first aspect.
The technical effects caused by any one of the design manners of the second aspect, the third aspect and the fourth aspect may be referred to the technical effects caused by the different design manners of the first aspect, which are not described herein.
Drawings
Fig. 1 shows a schematic structural diagram of an electronic device provided with 8 speakers;
fig. 2 shows a schematic diagram of the power consumption variation of a loudspeaker from 8A to 6A;
Fig. 3 shows a schematic structural diagram of the tablet pc 100;
fig. 4 shows a flow diagram of a method of speaker control;
fig. 5 shows a schematic diagram of 4 speaker control strategies with a 1dB reduction;
FIG. 6 shows a schematic diagram of the positional relationship of tablet 100 and a user;
fig. 7 shows a schematic diagram of 6 speaker control strategies with a 2dB reduction;
fig. 8 shows a schematic diagram of 6 speaker control strategies with 3dB reduction;
fig. 9 shows a schematic diagram of 5 speaker control strategies with a 4dB reduction;
fig. 10 shows a schematic diagram of 8 speaker control strategies with 5dB reduction;
FIG. 11 illustrates a schematic diagram of turning off a different number of speakers to reduce the power consumption of the speakers;
fig. 12 shows a schematic diagram of a speaker control scheme to reduce speaker power consumption;
fig. 13 shows a flow diagram of a method of speaker control.
Detailed Description
The following description of the technical solutions according to the embodiments of the present application will be given with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The following terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature.
In embodiments of the present application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the embodiment of the present application, "and/or" is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the description of the present application, it should be noted that, unless explicitly stated and limited otherwise, the terms "disposed," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; the specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
In order to better explain the technical scheme of the application, the following brief summary of terms related to the application is provided.
(1) Gain, gain generally refers to the degree to which current, voltage, or power to a component, circuit, device, or system is increased, such as by a magnification factor. Electronically, it is common for a system to have a ratio of signal output to signal input, such as an amplifier gain to represent the power amplification of the amplifier, a common logarithmic representation of the ratio of output power to input power, etc.
The gain is specified in decibels (dB), i.e., the unit of gain is typically in decibels (dB), which is a relative value. Logarithmic unity measure gain is often used electronically and is in units of bells (bels).
(2) The power amplifier is used for amplifying audio signals, and amplifies low-level audio signals into certain voltage and current to drive a loudspeaker, namely the power amplifier transmits the amplified electric power signals to the loudspeaker (commonly called a loudspeaker box), and the loudspeaker converts the electric power signals into sound signals to radiate to space to complete the sound amplifying function, namely the sound amplifying function. In short, the power amplifier may amplify the audio signal so that the speaker may play the sound at a sufficient volume. It will be appreciated that speakers are also known as boxes, horns. In the embodiment of the application, the gain of the power amplifier connected with the loudspeaker can be expressed as the common logarithm of the ratio of the output power to the input power, and the gain of the power amplifier connected with the loudspeaker can be simply called the gain of the audio.
(3) Power unit (unit of power), watt (W) is the unit of power.
In some embodiments, limiting power consumption of an audio device (e.g., audio amplifier, speaker) by the electronic device may result in poor audio playback of the electronic device under low-power or low-temperature conditions. For example, for multi-speaker electronics, power consumption limitations are placed on the speaker, such as reduced current consumption of the speaker, during low battery or low temperature conditions. Generally, the audio power consumption is reduced to different degrees under different battery electric quantity and temperatures, and the audio playing effect of the electronic equipment is poorer as the battery electric quantity is lower and the temperature is lower and the reducing degree is higher.
For example, fig. 1 shows a schematic configuration of an electronic device provided with 8 speakers. As shown in fig. 1, 8 speakers (speakers a-h, respectively) are provided in the electronic device. The voltage of 8 speakers can be 1 volt (V), and the 8 speakers are in a parallel structure.
In general, under normal temperature (e.g., 10 to 30 degrees) and normal power (e.g., more than 40% of the remaining battery power), it is assumed that the total current flowing through 8 speakers is 8A, that is, the average current flowing through each speaker is 1A (as shown in fig. 2), and the power of a single speaker is 1W (1 v×1A). When the electronic device is at a low power (e.g., the battery remaining power is less than 40%) or low temperature (e.g., 10 degrees below temperature), the electronic device limits the current flowing through the speakers from 8A to 6A, adjusts the current output to the speakers by each power amplifier to 0.75A, averages the current flowing through each speaker to 0.75A (as shown in fig. 2), and then the power of the individual speakers is 0.75W (1 v by 0.75A). It can be seen that the current through each speaker is reduced by 25%, the power of each speaker is reduced by 25%, and the audio playback effect of the speakers is reduced by 25%.
In order to solve the technical problems in the background art, an embodiment of the present application provides a speaker control method, including: in order to improve the endurance time of the electronic device or ensure the smoothness of operation of the electronic device under the low-power and/or low-temperature working condition, the total power consumption of the speakers (i.e. the sum of the power consumed by all the speakers on the electronic device) can be reduced by turning off 1 or more speakers in the electronic device. The electronic equipment has reduced the total power consumption of the speakers by closing 1 or more speakers, and the power of a single speaker of the speakers in the remaining operating state (i.e. playing audio) can not be reduced, so that the speakers in the remaining operating state still have better audio playing effect, and the electronic equipment is ensured to still have better audio playing effect on the basis of reducing the power consumption of the speakers.
For example, as shown in fig. 2, after the electronic device reduces the current flowing through the 8 speakers from 8A to 6A, instead of reducing the current flowing through each speaker, the electronic device actively turns off 2 speakers, so that the power flowing through each speaker that remains in operation is still 1A and each speaker is still 1W. Thus, the audio playing effect of 6A corresponding to 6 speakers to be presented to the outside is better than that of 6A corresponding to 8 speakers.
The following describes the principle that 6A corresponds to 6 speakers and the audio playing effect presented to the outside is better than 6A corresponds to 8 speakers.
The size of the sound pressure level (Sound pressure level, SPL) may be an evaluation factor of the quality level of the audio playing effect of the speaker, the higher the sound pressure level of the speaker, the better the audio playing effect of the speaker. The sound pressure level of a single speaker is linear with its power, while the superposition of sound pressure levels of multiple speakers is nonlinear with its power, and the sound pressure level calculation formula is described below.
If the sound pressure level of the current of the single speaker 1A is 100dB, the total sound pressure levels of 8A for 8 speakers, 6A for 8 speakers, and 6A for 6 speakers are respectively as shown in table 1 below:
TABLE 1
As shown in the above table, the sound pressure level of 6A corresponding to 6 speakers is 107.7815,6A corresponding to 8 speakers, the sound pressure level of 106.5309,6A corresponding to 6 speakers is greater than the sound pressure level of 6A corresponding to 8 speakers, and the audio playing effect of 6A corresponding to 6 speakers is significantly better than that of 6A corresponding to 8 speakers.
The following is a calculation formula for sound pressure levels of a plurality of speakers:
the total sound pressure formula of the loudspeaker is:
equation (1).
Wherein p represents the total sound pressure of the loudspeaker in units of
The sound pressure level calculation formula is:
equation (2).
Wherein:represents the sound pressure level of a single loudspeaker in db +.>Represents the reference sound pressure in units ofThe reference sound pressure is a preset value.
The total sound pressure level calculation formula is:
equation (3).
The sound pressure level of 1A for 1 speaker is:
based on the above formulas (1), (2) and (3), the total sound pressure levels of 8A for 8 speakers, 6A for 8 speakers, and 6A for 6 speakers can be calculated, respectively.
Wherein, 8A corresponds the sound pressure level of 8 speakers and is:
the sound pressure levels of the 8 speakers corresponding to 6A are:
the sound pressure levels of 6A for 6 speakers are:
therefore, on the premise of the same current supply, compared with the scheme of reducing the power consumption of each loudspeaker, the embodiment of the application has better audio playing effect of the electronic equipment even if the number of the working loudspeakers is reduced.
The electronic device may be a tablet computer, a mobile phone, a computer (such as a notebook computer), a wearable device, or the like with a speaker.
The structure of the electronic device will be described below taking the example that the electronic device is a tablet computer. Fig. 3 shows a schematic structural diagram of the tablet pc 100. As shown in fig. 3, tablet 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a user identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the tablet pc 100. In other embodiments of the application, tablet 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In the embodiment of the application, in order to improve the endurance time of the tablet personal computer 100 when the tablet personal computer 100 is in a low-power or low-temperature working condition, the power consumption of a speaker can be reduced. In order to ensure that the loudspeaker has better audio playing effect under the condition of reducing the power consumption of the loudspeaker, the power consumption of the loudspeaker can be reduced by turning off 1 or a plurality of loudspeakers. The processor 110 may not reduce the power of the individual speakers of the speakers remaining in operation by reducing the speaker power consumption by turning off 1 or several speakers, so that the speakers remaining in operation still have a better audio playback effect.
The controller may be a neural hub and a command center of the tablet computer 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not limit the structure of the tablet pc 100. In other embodiments of the present application, the tablet pc 100 may also adopt different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the tablet 100. The charging management module 140 may also supply power to the tablet pc through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the tablet computer 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in tablet 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on the tablet computer 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied on the tablet computer 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of tablet computer 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that tablet computer 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
Tablet 100 implements display functions through a GPU, display screen 194, and application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, tablet 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
Tablet 100 may implement shooting functionality through an ISP, camera 193, video codec, GPU, display 194, application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, tablet 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the tablet 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, etc.
Video codecs are used to compress or decompress digital video. Tablet 100 may support one or more video codecs. In this way, tablet 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the tablet 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the tablet computer 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the tablet 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
Tablet 100 may implement audio functionality through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and an application processor, among others. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. Tablet 100 may listen to music, or to hands-free conversations, through speaker 170A.
The number of speakers 170A is plural, for example, 8. In other words, the layout of speakers on the tablet computer 100 is described below. Tablet computer 100 may include N speakers, where N is an integer greater than or equal to 2. Some or all of the plurality of speakers may be in an operating state, that is, in a playing audio state, where M may represent the number of speakers in the operating state, and M may be some or all of the N speakers in the operating state, where M is an integer greater than or equal to 1 and M is less than or equal to N.
In some embodiments, the M speakers may include a first speaker (e.g., a woofer) and a second speaker (e.g., a tweeter). The number of the first speakers can be half M (M/2), the number of the second speakers can be half M (M/2), and the first speakers and the second speakers play audio signals in different frequency bands. A first side of the tablet computer 100 is provided with 4-fraction M (M/4) first speakers and M/4 second speakers, and the first speakers and the second speakers on the first side are adjacently arranged; a second side of the tablet computer 100 is provided with M (M/4) first speakers of 4 times and M (M/4) second speakers of 4 times, and the first speakers and the second speakers of the second side are adjacently arranged; the first loudspeaker of the first side and the first loudspeaker of the second side are oppositely arranged; the second speaker on the first side and the second speaker on the second side are disposed opposite to each other.
For example, taking 8 speakers in fig. 1 as an example, the tablet computer 100 includes 8 speakers, and 8 speakers among the 8 speakers are in an operating state. The 8 speakers include 4 woofers and 4 tweeters. At the current viewing angle shown in fig. 1, 2 woofers and 2 tweeters are provided on the left side of the tablet pc 100, speaker a and speaker c are woofers, and speaker b and speaker d are tweeters; the right side of the tablet computer 100 is provided with 2 woofers and 2 tweeters, the speaker e and the speaker g are woofers, and the speaker f and the speaker h are tweeters. That is, in the present application, the woofers and the tweeters on the same side may be disposed adjacently, which means that any one of the woofers on the same side has a tweeter adjacent to the woofer, or the woofers are disposed at a distance, and a tweeter is disposed between the two woofers.
In some embodiments, tablet 100 may also include an audio power amplifier for pushing the speaker to sound.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When tablet 100 is answering a phone call or voice message, voice may be received by placing receiver 170B close to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The tablet 100 may be provided with at least one microphone 170C. In other embodiments, the tablet pc 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the tablet 100 may further be provided with three, four or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording, etc.
The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile tablet platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The gyro sensor 180B may be used to determine a motion gesture of the tablet computer 100. In some embodiments, the angular velocity of tablet 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the tablet pc 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the tablet pc 100 through the reverse motion, thereby realizing anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the tablet pc 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the tablet 100 is stationary. The method can also be used for recognizing the gesture of the tablet personal computer, and is applied to the applications of horizontal and vertical screen switching, pedometers and the like.
The temperature sensor 180J is for detecting temperature. In some embodiments, tablet 100 performs a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, tablet 100 performs a reduction in the performance of a processor located near temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the tablet 100 may heat the battery 142 to avoid the low temperature causing the tablet 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the tablet 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. Tablet computer 100 may receive key inputs, generating key signal inputs related to user settings and function controls of tablet computer 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
If the total audio power consumption (or simply referred to as power consumption) of the speakers needs to be reduced in the low-power and/or low-temperature working condition of the tablet computer 100, the audio power consumption of each speaker may not be reduced, but 1 or a plurality of speakers are actively turned off according to the difference of the power and the temperature working condition of the tablet computer 100, so that the total audio power consumption of the speakers is reduced, and the power of a single speaker of the remaining workable speakers is ensured to be larger, so as to ensure the audio playing effect of the tablet computer. The speaker control method under this scheme will be specifically described below.
On the premise that the aforementioned M speakers are in an operating state, a speaker control method is shown below. Fig. 4 shows a schematic structural diagram of a speaker control method. As shown in fig. 4, the flow includes the steps of:
Step 401: the tablet pc 100 acquires battery information of the tablet pc 100.
In some embodiments, the battery information of the tablet computer 100 may include remaining power information of the tablet computer 100. It can be appreciated that the remaining power information of the tablet pc 100 may reflect the remaining endurance of the battery of the tablet pc 100. If the remaining power of the tablet pc 100 is smaller, in order to ensure the endurance time of the tablet pc 100, the power consumption of the tablet pc 100 may be reduced, for example, the power consumption of some or all speakers in a working state may be reduced. The strategy for reducing the power consumption of the loudspeaker in operation is specifically referred to in steps 402 to 403.
In other embodiments, the battery information of the tablet computer 100 may include temperature information of the environment in which the tablet computer 100 (e.g., the battery in the tablet computer 100) is located. The temperature information of the environment where the tablet computer 100 is located may reflect the quality of the environment where the battery is located in the tablet computer 100. The battery in the tablet pc 100 also reduces the activity of chemical substances in the battery of the tablet pc 100 in a low-temperature environment, and the discharge capacity is also reduced, so that the battery in the tablet pc 100 can provide less electric quantity for the speaker in a working state, and therefore, the power consumption of the tablet pc 100 can be reduced.
In other embodiments, the battery information of the tablet pc 100 may include, in addition to the remaining power information of the tablet pc 100, temperature information of the environment in which the tablet pc 100 (such as a battery in the tablet pc 100) is located. If the battery in the tablet pc 100 is in a low temperature environment, the activity of the chemical substances in the battery of the tablet pc 100 is reduced, and the discharge capacity is also reduced. Therefore, if the battery in the tablet pc 100 is still in a low-temperature environment on the basis of the low remaining power of the tablet pc 100, the battery in the tablet pc 100 can provide less power for the speaker in a working state. In the case where the battery in the tablet computer 100 provides less power to some or all of the speakers in an operating state, a speaker control strategy that reduces power consumption of the speakers in an operating state while guaranteeing audio playback effects of the speakers may be used. The speaker control strategy is specifically referred to in steps 402 through 403.
It is understood that the battery information of the tablet pc 100 may include, but is not limited to, remaining power information of the tablet pc 100 and/or temperature information of a battery in the tablet pc 100.
Step 402: the tablet pc 100 determines whether the tablet pc 100 is in a preset state based on the battery information.
The tablet pc 100 may determine that the tablet pc 100 is in a preset state (low-power and/or low-temperature working condition) based on the battery information (the remaining power information of the tablet pc 100 and/or the temperature information of the battery in the tablet pc 100), so that the tablet pc 100 may be triggered to determine a speaker control policy that can ensure a better audio playing effect under the condition of saving the power consumption of the tablet pc 100, see step 403 and step 404 in particular.
Specifically, in some embodiments, the tablet computer 100 may determine that the tablet computer 100 is under the low-power and low-temperature working conditions based on the obtained residual power of the tablet computer 100 and the temperature measured by the temperature sensor in the tablet computer 100, so that the tablet computer 100 may be triggered to determine a speaker control strategy that can ensure a better audio playing effect under the condition of saving the power consumption of the tablet computer 100, specifically, see step 403 and step 404.
In some embodiments, the tablet computer 100 may actively obtain the remaining power of the tablet computer 100 and the temperature measured by the temperature sensor in the tablet computer 100, determine whether the obtained remaining power of the tablet computer 100 is less than a first power threshold, and whether the temperature measured by the temperature sensor in the tablet computer 100 is less than a first temperature threshold, and if the obtained remaining power of the tablet computer 100 is less than the first power threshold, and the temperature measured by the temperature sensor in the tablet computer 100 is less than the first temperature threshold, determine that the tablet computer 100 is under the low power and low temperature conditions.
In other embodiments, a low-power and low-temperature work detection module is set in the tablet computer 100, the low-power and low-temperature work detection module actively acquires the residual power of the tablet computer 100 and the temperature measured by the temperature sensor in the tablet computer 100, judges whether the acquired residual power of the tablet computer 100 is smaller than a first power threshold value and whether the temperature measured by the temperature sensor in the tablet computer 100 is smaller than a first temperature threshold value, and if the acquired residual power of the tablet computer 100 is smaller than the first power threshold value and the temperature measured by the temperature sensor in the tablet computer 100 is smaller than the first temperature threshold value, determines that the tablet computer 100 is under the low-power and low-temperature working conditions and sends the result of determining that the tablet computer 100 is under the low-power and low-temperature working conditions to the tablet computer 100.
Similarly, the preset state may include a low battery state (or referred to as a low battery condition), and accordingly, the tablet pc 100 may determine whether to be in the low battery state based on the remaining power of the tablet pc 100. If the remaining power is less than the first power threshold, the tablet computer 100 determines that it is in a low power state.
The preset state may include a low temperature state (or referred to as a low temperature condition), and accordingly, the tablet pc 100 may determine whether to be in a low battery state based on a temperature measured by a temperature sensor of the tablet pc 100. For example, the temperature is less than the first temperature threshold, and the tablet 100 determines to be in a low temperature state.
The tablet pc 100 determines, based on the battery information (the remaining power information of the tablet pc 100 and/or the temperature information of the battery in the tablet pc 100), that the tablet pc 100 is in the preset state (low power and/or low temperature condition), and determines the speaker control policy of the tablet pc 100 based on the battery information, that is, step 403 is executed. If the tablet pc 100 determines that the tablet pc 100 is not in the preset state based on the battery information, step 401 is continuously performed.
Step 403: the tablet computer 100 determines a speaker control strategy of the tablet computer 100 based on the battery information, the speaker control strategy including L target speakers to be turned off among the M speakers and the audio power consumption Z to be reduced.
It will be appreciated that turning off the L target speakers serves to reduce the overall audio power consumption of the speakers. If the tablet computer 100 needs to reduce the total audio power consumption of the speakers under the low-power and/or low-temperature working conditions, and the power of each speaker is not reduced, the tablet computer 100 can actively turn off 1 or a plurality of speakers according to the difference of the electric quantity and the temperature working conditions of the tablet computer 100, so that the power of a single speaker of the remaining workable speakers is ensured to be larger, and the total audio power consumption of the speakers is reduced. In this way, a better audio playing effect can be ensured under the condition of saving the power consumption of the tablet computer 100.
In some embodiments, a speaker control policy query mechanism may be set in the tablet computer 100, where the speaker control policy query mechanism includes a mapping relationship between a remaining power of the tablet computer 100, a temperature measured by a temperature sensor in the tablet computer 100, and a speaker control policy, and the tablet computer 100 may determine, from the mapping relationship of the speaker control policy, a corresponding speaker control policy based on the obtained remaining power of the tablet computer 100 and the temperature measured by the temperature sensor in the tablet computer 100, where the speaker control policy includes determining a target speaker to be turned off.
It will be appreciated that turning off a different number of speakers may produce different audio effects and turning off a greater number of speakers may produce poorer audio effects. Therefore, in general, the number of the closed speakers is reduced as much as possible, so that the electronic device can be ensured to have a better audio playing effect on the basis of reducing the power consumption of the speakers. Specifically, in some embodiments, the audio power consumption of the first speaker is Z2 and the audio power consumption of the second speaker is Z3, where Z2 is greater than Z3; if the audio power consumption Z to be reduced is greater than or equal to Z2, dividing the number L of the target speakers to be closed by Z and Z2, and obtaining the integer part of the ratio result, namely obtaining the rounding result of the ratio of Z and Z2; if the audio power consumption Z to be reduced is greater than or equal to Z3 and the audio power consumption Z to be reduced is less than Z2, the number L of the target speakers to be closed is an integer part of the ratio result after dividing Z by Z3, namely the rounding result of the ratio of Z to Z3.
In other embodiments, the solution for reducing the total audio power consumption of the speakers without considering to turn off a smaller number of speakers may be that if the audio power consumption Z to be reduced is greater than or equal to Z2, the number L of target speakers to be turned off is an integer part of the ratio result after dividing Z by Z3. Or if the audio power consumption Z to be reduced is greater than or equal to Z2, the number L of the target speakers to be closed is the sum of a value a and a value b, wherein the value a and the value b are integers greater than or equal to 1, and the value a and the value b satisfy the following conditions. a is the number of first speakers to be turned off and b is the number of second speakers to be turned off.
It is understood that a plurality of speakers are provided in the tablet pc 100. In the process of using the tablet personal computer 100 by a user, the tablet personal computer 100 is in an inclined state relative to the position of a human body, the distances between the plurality of speakers and the user (such as ears of the user) are different, different audio effects can be generated by closing the speakers with different distances from the user, and the audio effects of closing the speakers with a larger distance from the user are better than those of closing the speakers with a smaller distance from the user. Accordingly, the distance of the speaker in the tablet 100 from the user may be taken into account in determining the target speaker to be turned off. Specifically, in some embodiments, M-L speakers other than the L target speakers of the M speakers are in an operating state, and a distance between each of the L target speakers and the user is equal to or greater than a distance between each of the M-L speakers and the user. In the scheme of the application, the loudspeaker far away from the user is determined as the target loudspeaker to be closed, namely, the target loudspeaker to be closed is determined by considering the distance factor, so that the electronic equipment still has a better audio playing effect on the basis of reducing the power consumption of the loudspeaker.
The plurality of speakers in the tablet pc 100 are generally designed symmetrically, and if the number of speakers on one side is large, the speakers in the working state are in an asymmetric state, so that the generated audio effect is poor. Therefore, the symmetrical design of the loudspeaker can be used as a consideration factor for determining the target loudspeaker to be closed, and the electronic equipment can still have a good audio playing effect on the basis of reducing the power consumption of the loudspeaker. In general, the relative symmetry among the remaining speakers in operation is ensured as much as possible after the target speaker is turned off. Specifically, in some embodiments, the L target speakers are symmetrically arranged.
It will be appreciated that any one or more of the foregoing number, distance, and symmetry factors may be considered in determining the speaker control strategy, but is not so limited. Therefore, on the basis of reducing the power consumption of the loudspeaker, the electronic equipment is ensured to still have a better audio playing effect.
The speaker control method provided by the embodiment of the present application will be further described in detail below by taking the speaker layout in which the first speaker is a woofer (assuming that Z2 corresponds to 2 dB), the second speaker is a tweeter (assuming that Z3 corresponds to 1 dB), N and M are equal, and both are 8 as an example.
Speaker a, speaker e, speaker c, and speaker g in fig. 1 may be woofers whose function is to reproduce a low frequency (long wave) signal (frequency range is generally 20Hz to 200 Hz) output from the frequency divider; speaker b, speaker f, speaker d, and speaker h may be tweeters. The tweeter is a device that plays back the high frequency signal (typically in the frequency range of 5KHz-10 KHz) output from the divider. The audio gain of one woofer corresponds to 2dB (e.g., z2=2 dB) and the audio gain of one tweeter corresponds to 1dB (e.g., z3=1 dB). The tablet pc 100 includes a power amplifier (or called audio power amplifier) corresponding to the speaker, where the power amplifier (abbreviated as power amplifier) is connected to the speaker in a one-to-one correspondence manner, as shown in fig. 2; in some embodiments, the audio gain of the speaker's power amplifier may be reduced by turning off the speaker to reduce the audio power consumption of the speaker.
Continuing with the example of 8 speakers in fig. 1, the speaker control strategy for 8 speakers in fig. 1 will be described in detail with varying degrees of audio power consumption (e.g., audio gain) reduction.
Fig. 5 shows a schematic diagram of 4 speaker control strategies with a 1dB reduction. As shown in fig. 5, Z is 1dB, indicating that a 1dB reduction is required. The audio gain of a tweeter corresponds to 1dB, i.e., z3=1 dB, and since Z is greater than or equal to Z3 (here 1 dB) and less than Z2 (here 2 dB), Z/z3=1, l=1, i.e., a tweeter is turned off.
Illustratively, tablet 100 may arbitrarily turn off one tweeter. For example, tweeter b, tweeter f, tweeter d, or tweeter h are turned off.
It will be appreciated that the tablet 100 is generally tilted with respect to the human body, and one side of the camera is farther from the user (e.g., the user's ear), and the side away from the camera is closer to the user. The speaker close to the camera is far away from the user, the speaker far away from the camera is far away from the user, and the audio effect generated by closing the speaker far away from the user is better than the audio effect generated by closing the speaker near to the user. Thus, in some embodiments, a speaker far from the user may be determined as the target speaker to be turned off, i.e., a speaker close to the camera may be determined as the target speaker to be turned off. For example, fig. 6 shows a schematic diagram of a positional relationship between the tablet computer 100 and the user, and as shown in fig. 6, the tweeter b or the tweeter f is far from the user, and the tweeter b or the tweeter f is turned off. In this way, a better audio effect can be obtained.
Fig. 7 shows a schematic diagram of 6 speaker control strategies with a 2dB reduction. As shown in fig. 7, Z is 2dB, indicating that a reduction of 2dB is required. The audio gain of a woofer corresponds to 2dB, i.e. z2=2 dB, and since Z is equal to Z2 (here 2 dB), Z/z2=1, l=1, i.e. a woofer is turned off.
Illustratively, tablet 100 may arbitrarily turn off one of the woofers. For example, woofer a, woofer e, woofer c or woofer g is turned off.
It can be appreciated that the tablet pc 100 is generally inclined with respect to the human body, and one side of the camera is farther from the user, and the other side of the tablet pc is closer to the user. The speaker close to the camera is far away from the user, the speaker far away from the camera is close to the user, and the audio effect generated by closing the speaker far away from the user is better than the audio effect generated by closing the speaker close to the user. Thus, in some embodiments, a speaker far from the user may be determined as the target speaker to be turned off, i.e., a speaker close to the camera may be determined as the target speaker to be turned off. For example, woofer a or woofer e is turned off. In this way, a better audio effect can be obtained.
In some embodiments, the minimum number of speakers to be turned off may be eliminated, and as long as a certain audio power consumption can be reduced, the 2dB reduction scheme may also be to arbitrarily turn off two tweeters. Z is 2dB, indicating a 2dB reduction is required. Z2 is 2dB, Z is equal to Z2, Z3 is 1dB, and accordingly, the number L of target speakers to be turned off may be an integer part of the ratio result after dividing Z by Z3, i.e., l=2, i.e., two tweeters are turned off.
Illustratively, tablet 100 may arbitrarily turn off both tweeters. For example, any two of the tweeter b, the tweeter f, the tweeter d, and the tweeter h are turned off. It can be appreciated that the plurality of speakers in the tablet pc 100 are generally symmetrically designed, and if the number of speakers on one side is relatively large, the speakers in the working state are in an asymmetric state, so that the generated audio effect is relatively poor. Thus, the speaker symmetry may be designed as a consideration in determining the target speaker to be turned off. In general, after the target speaker is closed as much as possible, the remaining speakers in the working state can be ensured to be in a relatively symmetrical relation, so that the electronic equipment can be ensured to still have a better audio playing effect on the basis of reducing the power consumption of the speakers. For example, the speaker in the working state can be in a symmetrical state by closing the tweeter b and the tweeter f or closing the tweeter d and the tweeter h, and the electronic device can still have better audio playing effect on the basis of reducing the power consumption of the speakers.
It will be appreciated that, considering the distance factor described above, if tweeter b and tweeter f are farther from the user than tweeter d and tweeter h, turning off the speakers farther from the user may produce better audio effects, and turning off tweeter b and tweeter f may have better audio effects than turning off tweeter d and tweeter h.
Fig. 8 shows a schematic diagram of 6 speaker control strategies with 3dB reduction. As shown in fig. 8, Z is 3dB, indicating that 3dB reduction is required. The audio gain of one woofer corresponds to 2dB, i.e. z2=2 dB, and the audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Since Z is greater than Z2,3dB (Z) =1 (a) x 2dB (Z2) +1 (b) x 1dB (Z3), l=1+1, i.e., one woofer and one tweeter are turned off.
For example, tablet 100 may arbitrarily turn off one woofer and one tweeter. For example, woofer e and tweeter b are turned off. As another example, woofer a and tweeter f are turned off. As another example, woofer c and tweeter h are turned off. As another example, woofer g and tweeter d are turned off.
It can be appreciated that the tablet pc 100 is generally inclined with respect to the human body, and one side of the camera is farther from the user, and the other side of the tablet pc is closer to the user. The speaker close to the camera is far away from the user, the speaker far away from the camera is far away from the user, and the audio effect generated by closing the speaker far away from the user is better than the audio effect generated by closing the speaker near to the user. Thus, in some embodiments, a speaker far from the user may be determined as the target speaker to be turned off, i.e., a speaker close to the camera may be determined as the target speaker to be turned off. For example, the two schemes of turning off the woofer e and tweeter b, and turning off the woofer a and tweeter f are superior to turning off the woofer c and tweeter h, and turning off the woofer g and tweeter d.
In some embodiments, Z is 3dB, indicating that a 3dB reduction is required. The audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Z/z3=1, and therefore l=3, i.e. three woofers are turned off.
Illustratively, tablet 100 may arbitrarily turn off three tweeters. For example, any three of the tweeter b, the tweeter f, the tweeter d, and the tweeter h are turned off. It can be appreciated that the tablet pc 100 is generally inclined with respect to the human body, and one side of the camera is farther from the user, and the other side of the tablet pc is closer to the user. The speaker close to the camera is far away from the user, the speaker far away from the camera is far away from the user, and the audio effect generated by closing the speaker far away from the user is better than the audio effect generated by closing the speaker near to the user. Thus, in some embodiments, a speaker far from the user may be determined as the target speaker to be turned off, i.e., a speaker close to the camera may be determined as the target speaker to be turned off. For example, tweeter b, tweeter f, and tweeter d are turned off. As another example, tweeter b, tweeter f, and tweeter h are turned off.
In some embodiments, since Z is 3dB, Z2 is 2dB, Z is greater than Z2, and L may also be the integer portion of the ratio result after dividing Z by Z2.
Fig. 9 shows a schematic diagram of 5 speaker control strategies with a 4dB reduction. As shown in fig. 9, Z is 4dB, indicating a 4dB reduction is required. The audio gain of one woofer corresponds to 2dB, i.e. z2=2 dB, since Z is equal to or greater than Z2 (here 2 dB), Z/z2=2, and therefore l=2, i.e. both woofers are turned off.
Illustratively, tablet 100 may arbitrarily turn off both woofers. For example, woofer a and woofer e are turned off. As another example, woofer e and woofer g are turned off. The speaker control strategy of closing the woofer a and the woofer a comprehensively considers the number factor, the distance factor and the symmetry factor on the basis of considering how to close the speakers to reduce the tablet computer 100 by 4dB, so that the audio effect corresponding to the speaker control strategy is better.
Because the speaker control strategy, i.e., the woofer e and the woofer g, is turned off, only the above-mentioned number factor and symmetry factor are considered and the distance factor is not considered on the basis of considering how to turn off the speakers so that the tablet pc 100 is lowered by 4dB, the audio effect corresponding to the above-mentioned speaker control strategy is inferior to the audio effect corresponding to the speaker control strategy in which the above-mentioned number factor, distance factor and symmetry factor are comprehensively considered.
In some embodiments, Z is 4dB, indicating a 4dB reduction is required. The audio gain of one woofer corresponds to 2dB, i.e. z2=2 dB, and the audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Since Z is greater than Z2,4dB (Z) =1 (a) x 2dB (Z2) +2 (b) x 1dB (Z3), l=1+2, i.e. one woofer and two tweeters are turned off.
For example, tablet 100 may arbitrarily turn off one woofer and two tweeters. For example, tablet computer 100 may turn off woofer a, tweeter b, and tweeter f. As another example, tablet computer 100 may turn off woofer e, tweeter b, and tweeter f.
Because the speaker control strategy only considers the above number factors and does not consider the distance factors and the symmetry factors on the basis of considering how to turn off the speaker so that the tablet pc 100 is reduced by 4dB, the audio effect corresponding to the speaker control strategy is poorer than the audio effect corresponding to the speaker control strategy which comprehensively considers the above number factors, distance factors and symmetry factors.
In some embodiments, Z is 4dB, indicating a 4dB reduction is required. The audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Since Z is greater than Z2, Z/z3=4, l=4, i.e. four tweeters are turned off.
Illustratively, the tablet 100 may arbitrarily turn off four tweeters. For example, tablet computer 100 turns off tweeter b, tweeter f, tweeter d, and tweeter h.
Because the speaker control strategy does not consider the above number factor and distance factor on the basis of considering how to turn off the speaker so that the tablet pc 100 is reduced by 4dB, the audio effect corresponding to the speaker control strategy is poorer than the audio effect corresponding to the speaker control strategy which comprehensively considers the above number factor, distance factor and symmetry factor.
Fig. 10 shows a schematic diagram of 8 speaker control strategies with a 5dB reduction. As shown in fig. 10, Z is 5dB, indicating a 5dB reduction is required. The audio gain of one woofer corresponds to 2dB, i.e. z2=2 dB, and the audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Since Z is greater than Z2,5dB (Z) =2 (a) x 2dB (Z2) +1 (b) x 1dB (Z3), l=2+1, i.e., two woofers and one tweeter are turned off.
For example, tablet 100 may arbitrarily turn off two woofers and one tweeter. For example, tablet computer 100 may turn off woofer a, woofer e, and tweeter b. As another example, tablet computer 100 may turn off woofer a, woofer e, and tweeter f. As another example, tablet computer 100 may turn off woofer c, woofer g, and tweeter b. As another example, tablet computer 100 may turn off woofer c, woofer g, and tweeter f.
Because the two speaker control strategies, namely the woofer a, the woofer e and the tweeter b, and the woofer a, the woofer e and the tweeter f, are closed, the number factors and the distance factors are comprehensively considered on the basis of considering how to close the speakers so that the tablet computer 100 is reduced by 5dB, and therefore the audio effects corresponding to the two speaker control strategies are better.
The four speaker control strategies of turning off woofer c and woofer g and tweeter b, turning off woofer c and woofer g and tweeter f, turning off woofer c and woofer g and tweeter d, turning off woofer c and woofer g and tweeter h, consider the above-mentioned number of factors on the basis of how turning off speakers causes tablet computer 100 to decrease by 5 dB.
Because these four speaker control strategies only consider the above-mentioned number factors and do not consider the distance factors on the basis of considering how to turn off the speakers so that the tablet pc 100 is reduced by 5dB, the audio effects corresponding to the foregoing four speaker control strategies are poorer than those corresponding to the speaker control strategies that comprehensively consider the above-mentioned number factors and distance factors.
It will be appreciated that one side of the camera is farther from the user and one side of the camera is nearer to the user. The speaker closer to the camera is farther from the user, the speaker farther from the camera is closer to the user, and closing the speaker closer to the user may produce a poorer audio effect. Tweeter d and tweeter h may be closer to the user than tweeter b and tweeter f, and closing the speaker closer to the user may result in a poorer audio effect, and thus, the speaker control strategy to close tweeter d or tweeter h may be less than the speaker control strategy to close tweeter b and tweeter f.
In other embodiments, Z is 5dB, indicating a 5dB reduction is required. The audio gain of one woofer corresponds to 2dB, i.e. z2=2 dB, and the audio gain of one tweeter corresponds to 1dB, i.e. z3=1 dB. Since Z is greater than Z2,5dB (Z) =1 (a) x 2dB (Z2) +1 (b) x 3dB (Z3), l=1+3, i.e., one woofer and three tweeters are turned off.
For example, tablet 100 may arbitrarily turn off one woofer and three tweeters. For example, tablet computer 100 may turn off woofer a, tweeter b, tweeter f, and tweeter h; as another example, tablet computer 100 may turn off woofer c, tweeter b, tweeter f, and tweeter d. The two speaker control strategies described above have poor audio performance because they only consider how to turn off the speaker, which reduces the tablet 100 by 5dB, but do not consider the number, distance, and symmetry factors described above.
It will be appreciated that if the audio power consumption of each of the M speakers is the same, and the audio power consumption of each speaker is Z1, the number of target speakers to be turned off L is an integer part of the ratio result after dividing Z by Z1. If the distance factor and the symmetry factor are further considered, the distance between the L target speakers and the user is greater than or equal to the distance between the M-L target speakers and the user, and the L target speakers are symmetrically arranged.
Step 404: the tablet 100 turns off the L target speakers.
It is appreciated that the tablet 100 turns off the L target speakers to reduce audio power consumption.
As previously described, if the M speakers include M/2 first speakers and M/2 second speakers; the audio power consumption of the first loudspeaker is Z2, and the audio power consumption of the second loudspeaker is Z3, wherein Z2 is larger than Z3. If the audio power consumption Z to be reduced is greater than or equal to Z2, the number L of target speakers to be turned off is a rounded result of the ratio of Z to Z2, then the target speakers are first speakers, and the tablet computer 100 may turn off the L first speakers;
or the number of target speakers to be turned off L is the rounded result of the ratio of Z to Z3, then the target speakers are second speakers, and the tablet computer 100 may turn off L second speakers.
Or the sum of a value a and a value b of the number L of the target speakers to be closed, wherein the value a and the value b are integers greater than or equal to 1, and the value a and the value b satisfy the following conditionsThe method comprises the steps of carrying out a first treatment on the surface of the Where a is the number of first speakers to be turned off and b is the number of second speakers to be turned off, then the tablet computer 100 may turn off a first speakers and b second speakers.
If the audio power consumption Z to be reduced is greater than or equal to Z3 and less than Z2, the number L of target speakers to be turned off is the rounded result of the ratio of Z to Z3, the target speakers are second speakers, and the tablet computer 100 may turn off the L second speakers.
Fig. 11 shows a schematic diagram of turning off a different number of speakers to reduce the power consumption of the speakers. As shown in fig. 11, the audio gains respectively corresponding to speaker a, speaker b, speaker c, speaker d, speaker e, speaker f, speaker g, and speaker h are 1dB, and 1dB can be reduced by turning off 1 speaker; 2 speakers are turned off, and the 2dB can be reduced; 3 speakers are turned off, so that 3dB can be reduced; turning off 6 speakers can reduce 6dB. The greater the number of speakers that are turned off, the greater the gain of the reduced audio. Thus, a certain power consumption reduction effect can be achieved by turning off the speaker.
It may be appreciated that, in other embodiments, the tablet computer 100 may determine whether a speaker control policy that can ensure a better audio playing effect under the condition of saving the power consumption of the tablet computer 100 exists under the residual power and the temperature directly based on the obtained residual power of the tablet computer 100 and the temperature measured by the temperature sensor in the tablet computer 100, and if the speaker control policy is determined to exist, the speaker is controlled based on the policy, and the speaker control policy that can ensure the better audio playing effect under the condition of saving the power consumption of the tablet computer 100 is not required to be triggered by the tablet computer 100 under the low power and low temperature conditions. The tablet pc 100 is also continuously used for determining the speaker control strategy when not in the low-power and low-temperature working condition, i.e. in the normal power and normal temperature without reducing the power consumption of the electronic device, which may cause unnecessary power consumption of the electronic device. The tablet computer 100 is triggered to determine the speaker control strategy under the low-power and/or low-temperature conditions, which can save power consumption.
Fig. 12 shows a schematic diagram of a speaker control scheme to reduce speaker power consumption. As shown in fig. 12, an approach, which has been described in detail above, is to achieve the purpose of reducing the power consumption of the speakers by reducing the number of speakers. In another scheme, on the basis of reducing the number of the loudspeakers, the audio power consumption of the loudspeakers is reduced. A scheme of reducing the audio power consumption of the speakers, i.e., a scheme of combining both the reduction of the number of speakers and the reduction of the gain of a single speaker, on the basis of the reduction of the number of speakers will be described in detail below.
A speaker control method is shown below on the premise that M speakers are in operation. Fig. 13 shows a flow diagram of a method of speaker control. As shown in fig. 13, the flow includes the steps of:
step 1301: the tablet pc 100 acquires battery information of the tablet pc 100.
The technical scheme of step 1301 is the same as that of step 401, and will not be described in detail here.
Step 1302: the tablet pc 100 determines whether the tablet pc 100 is in a preset state based on the battery information.
The technical solution of step 1302 is the same as that of step 402, and will not be described in detail here.
Step 1303: the tablet computer 100 determines a speaker control strategy of the tablet computer 100 based on the battery information, the speaker control strategy including L target speakers to be turned off among the M speakers and the audio power consumption Z to be reduced.
It can be understood that, when determining the number of the closed target speakers, the rounding result of the ratio may be utilized, so that the situation that the audio power consumption reduced by the target speakers to be closed cannot reach the audio power consumption Z to be reduced may occur, based on this, the audio power consumption except the audio power consumption reduced by the closed target speakers in the audio power consumption Z to be reduced (that is, the difference between the audio power consumption Z to be reduced and the audio power consumption corresponding to the L target speakers) may be averagely distributed to each speaker in the working state for reduction.
Specifically, if the audio power consumption corresponding to the L target speakers is smaller than the audio power consumption Z to be reduced, there is still audio power consumption Z4 to be reduced, where Z4 is smaller than Z, and the speaker control strategy further includes reducing the audio power consumption of each speaker of the (M-L) speakers by Z4/(M-L). The audio power consumption Z4 to be reduced is the difference between the audio power consumption Z to be reduced and the audio power consumption corresponding to the L target speakers. Tablet 100 includes a power amplifier that is connected in a one-to-one correspondence with speakers, as shown, for example, in fig. 2. In some embodiments, tablet 100 may reduce the audio power consumption of each of the (M-L) speakers by Z4/(M-L) by reducing the audio power consumption of the power amplifier.
It can be understood that if the audio power consumption to be reduced is smaller than the audio power consumption corresponding to turning off one speaker, the speaker may not be turned off, and the audio power consumption to be reduced may be averagely distributed to each speaker in an operating state for reduction. Specifically, if the audio power consumption Z to be reduced is smaller than Z3, L is taken to be 0, the speaker control strategy further includes reducing the audio power consumption of each of the M speakers by Z/M. The tablet computer 100 comprises power amplifiers, and the power amplifiers are connected with the loudspeakers in a one-to-one correspondence manner; in some embodiments, tablet 100 reduces the audio power consumption of each of the M speakers by Z/M by reducing the audio power consumption of the power amplifier.
How to determine the speaker control strategy based on the battery information will be described in connection with specific examples.
For example, table 2 shows a mapping table of the remaining power of the tablet pc 100, the temperature measured by the temperature sensor in the tablet pc 100, and the speaker control strategy.
TABLE 2
As shown in table 2, if the remaining power of the tablet pc 100 is 50% of the total power, and the temperature measured by the temperature sensor in the tablet pc 100 is 5 degrees, the number of the closed speakers is 0, and the audio power consumption corresponding to each speaker is reduced to 0, that is, the audio gain of the power amplifier corresponding to the speaker is not required to be reduced.
If the remaining power of the tablet computer 100 is 40% of the total power, the temperature measured by the temperature sensor in the tablet computer 100 is 0 ℃, the audio gain Z to be reduced is 0.5dB, and since 0.5dB is smaller than the audio power consumption corresponding to any one speaker, the number of speakers to be turned off is 0, and the number of speakers to be turned off is 0.5dB, that is, z4=0.5 dB, the audio power consumption of each speaker in 8 speakers in a working state can be reduced by 0.5 dB/8, that is, the audio gain of the power amplifier corresponding to the speaker is reduced by 0.5dB.
If the remaining power of the tablet pc 100 is 30% of the total power, the temperature measured by the temperature sensor in the tablet pc 100 is minus 5 degrees, z=1 dB, and Z3 is 1dB, and Z is equal to Z3, therefore, the number of closed speakers may be 1, and accordingly, z4=0.
If the remaining power of the tablet computer 100 is 25% of the total power, the temperature measured by the temperature sensor in the tablet computer 100 is minus 10 degrees, the gain of the audio to be reduced is 1.5, and the number of the closed speakers is 1. After turning off 1 speaker, there is still 0.5dB of audio power consumption to be reduced, i.e., z4=0.5 dB, each of the 7 speakers in operation can be reduced by 0.5 dB/7.
If the remaining power of the tablet pc 100 is 20% of the total power, the temperature measured by the temperature sensor in the tablet pc 100 is minus 15 degrees, z=2db, and Z2 is equal to 2dB, and Z is equal to Z2, therefore, the number of closed speakers may be 1, and correspondingly, z4=0.
If the remaining power of the tablet computer 100 is 15% of the total power, the temperature measured by the temperature sensor in the tablet computer 100 is minus 20 degrees, the gain of the audio to be reduced is 2.5, and the number of the closed speakers is 1. After 1 speaker is turned off, the audio power consumption of the speaker is still required to be reduced by 0.5dB, that is, z4=0.5 dB, and then the audio power consumption of each speaker of the 7 speakers in the working state can be reduced by 0.5 dB/7, that is, the audio gain of the power amplifier corresponding to the speaker is reduced by 0.5 dB/7.
If the remaining power of the tablet pc 100 is 10% of the total power, the temperature measured by the temperature sensor in the tablet pc 100 is minus 30 degrees, z=3 dB, and Z2 is equal to 2dB, Z2 is equal to 1dB, and Z is equal to 1Z 2 and 1Z 3 are added, so the number of closed speakers may be 2, and accordingly, z4=0.
If the remaining power of the tablet computer 100 is 5% of the total power, the temperature measured by the temperature sensor in the tablet computer 100 is minus 40 degrees, the gain of the audio to be reduced is 3.5, and the number of the closed speakers is 2. After 2 speakers are turned off, the audio power consumption of the speaker is still required to be reduced by 0.5 dB, that is, z4=0.5 dB, and then the audio power consumption of each speaker of the 6 speakers in the working state can be reduced by 0.5 dB/6, that is, the audio gain of the power amplifier (power amplifier for short) corresponding to the speaker is reduced by 0.5 dB/6.
If the remaining power of the tablet pc 100 is 0% of the total power, and the temperature measured by the temperature sensor in the tablet pc 100 is minus 50 degrees, the number of closed speakers is 3, z=2db, and Z2 is equal to 2dB, and Z is equal to 2Z 2, so the number of closed speakers may be 2, and accordingly, z4=0.
It will be appreciated that if the audio power consumption of each of the M speakers is the same, and the audio power consumption of each speaker is Z1, the number of target speakers to be turned off L is an integer part of the ratio result after dividing Z by Z1. If the distance factor and the symmetry factor are further considered, the distance between the L target speakers and the user is greater than or equal to the distance between the M-L target speakers and the user, and the L target speakers are symmetrically arranged.
Furthermore, in one scenario, if the audio power consumption Z to be reduced is smaller than Z1, turning off one speaker may result in excessive audio power consumption reduction, so that the audio power consumption Z to be reduced may be averagely split to M speakers in an operating state for reduction when the audio power consumption Z to be reduced is smaller than Z1. Thus, the purpose of accurately reducing the audio power consumption can be achieved. Specifically, if the audio power consumption Z to be reduced is smaller than Z1, the audio power consumption may be reduced without turning off the speakers, and L is taken to be 0, and the speaker control strategy further includes reducing the audio power consumption of each of the M speakers by Z/M. Tablet 100 includes a power amplifier that is connected in a one-to-one correspondence with speakers, as shown, for example, in fig. 2. In some embodiments, tablet 100 may reduce the audio power consumption of each of the M speakers by Z/M by reducing the audio power consumption of the power amplifier.
In another scenario, since the rounding result of the ratio may be used when determining the number of the closed target speakers, a situation may occur in which the audio power consumption reduced by the target speakers to be closed cannot reach the audio power consumption Z to be reduced, and based on this, the audio power consumption (i.e., the difference between the audio power consumption Z to be reduced and the audio power consumption corresponding to the L target speakers) except the audio power consumption reduced by the closed target speakers in the audio power consumption Z to be reduced may be equally distributed to each speaker in the operating state for reduction. Specifically, if the audio power consumption corresponding to the L target speakers is smaller than the audio power consumption Z to be reduced, there is still audio power consumption Z4 to be reduced, where Z4 is smaller than Z, and the speaker control strategy further includes reducing the audio power consumption of each speaker of the (M-L) speakers by Z4/(M-L). The audio power consumption Z4 to be reduced is the difference between the audio power consumption Z to be reduced and the audio power consumption corresponding to the L target speakers. Tablet 100 includes a power amplifier that is connected in a one-to-one correspondence with speakers, as shown, for example, in fig. 2. In some embodiments, tablet 100 may reduce the audio power consumption of each of the (M-L) speakers by Z4/(M-L) by reducing the audio power consumption of the power amplifier.
It should be noted that, the specific determination manner of turning off a certain number of speakers is referred to the foregoing description, and will not be repeated herein.
Step 1304: the tablet 100 turns off the L target speakers and reduces the audio power consumption of each speaker in an operating state based on the audio power consumption to be reduced Z4.
In some embodiments, if the audio power consumption corresponding to the closed L target speakers is smaller than the audio power consumption Z to be reduced, there is still audio power consumption Z4 to be reduced, where Z4 is smaller than Z, the speaker control strategy further includes reducing the audio power consumption of each of the M speakers by Z4/(M-L); the tablet 100 may turn off the L target speakers, reducing the audio power consumption of each of the M-L speakers by Z4/(M-L). Wherein the M-L loudspeakers are loudspeakers in working state.
In some embodiments, if the audio power consumption Z to be reduced is smaller than Z3, it indicates that the total power consumption corresponding to the speakers cannot be reduced by reducing the number of speakers in operation, so L is taken to be 0, and the speaker control strategy further includes reducing the audio power consumption of each of the M speakers by Z/M; the tablet 100 may turn off the L target speakers, reducing the audio power consumption of each of the M speakers by Z/M.
The related power reduction scheme generally reduces according to temperature and/or electric quantity, and for example, the following tables 3 and 4, different gear positions, and uniformly reduces the audio gain of each speaker in the tablet computer 100, so as to reduce the audio power consumption of the speaker:
TABLE 3 Table 3
As shown in table 3, when the temperature of the tablet pc 100 is 0 degrees, the audio gain Z to be reduced is 0.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 0.5/8, so as to achieve the purpose of reducing by 0.5 dB.
Under the condition that the temperature of the tablet personal computer 100 is minus 5 degrees, the audio gain Z to be reduced is 1dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 1.0/8 dB, so that the purpose of reducing 0.5dB is achieved.
Under the condition that the temperature of the tablet personal computer 100 is minus 10 degrees, the audio gain Z to be reduced is 1.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 1.5/8 dB, so that the purpose of reducing 1.5dB is achieved.
Under the condition that the temperature of the tablet personal computer 100 is minus 15 degrees, the audio gain Z to be reduced is 2dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 2/8 dB, so that the aim of reducing the audio gain Z by 2dB is fulfilled.
Under the condition that the temperature of the tablet personal computer 100 is minus 20 degrees, the audio gain Z to be reduced is 2.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 2.5/8 dB, so that the purpose of reducing the audio gain Z by 2.5dB is achieved.
Under the condition that the temperature of the tablet personal computer 100 is minus 30 degrees, the audio gain Z to be reduced is 3dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 3.0/8dB, so that the purpose of reducing 3dB is achieved.
Under the condition that the temperature of the tablet computer 100 is minus 40 degrees, the audio gain Z to be reduced is 3.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 3.5/8 dB, so that the purpose of reducing 3.5dB is achieved.
Under the condition that the temperature of the tablet personal computer 100 is minus 50 degrees, the audio gain Z to be reduced is 4dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 4/8 dB, so that the purpose of 04dB reduction is achieved.
TABLE 4 Table 4
As shown in table 4, when the remaining power of the tablet pc 100 is 40%, the audio gain Z to be reduced is 0.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 0.5/8, so as to achieve the purpose of reducing by 0.5 dB.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 30%, the audio gain Z to be reduced is 1dB, and the power amplifier corresponding to each loudspeaker in 8 loudspeakers is reduced by 1.0/8 dB, so that the purpose of reducing 0.5dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 25%, the audio gain Z to be reduced is 1.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 1.5/8 dB, so that the purpose of reducing 1.5dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 20%, the audio gain Z to be reduced is 2dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 2/8 dB, so that the purpose of reducing 2dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 15%, the audio gain Z to be reduced is 2.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 2.5/8 dB, so that the purpose of reducing the audio gain Z by 2.5dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 10%, the audio gain Z to be reduced is 3dB, and the power amplifier corresponding to each loudspeaker in 8 loudspeakers is reduced by 3.0/8dB, so that the purpose of reducing 3dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 5%, the audio gain Z to be reduced is 3.5dB, and the power amplifier corresponding to each of the 8 speakers is reduced by 3.5/8 dB, so that the purpose of reducing 3.5dB is achieved.
Under the condition that the residual electric quantity of the tablet personal computer 100 is 0%, the audio gain Z to be reduced is 4dB, and the power amplifier corresponding to each loudspeaker in the 8 loudspeakers is reduced by 4/8 dB, so that the purpose of 04dB reduction is achieved.
In the embodiment of the application, under the condition of low electric quantity and/or low temperature, the audio gain is not reduced, but 1 or a plurality of speakers are actively turned off according to the electric quantity and/or the low temperature, so that the single speaker power of the remaining workable speakers is ensured to be large enough, the influence of power consumption reduction on the audio effect is reduced, and the better audio playing effect can be ensured under the condition of saving the power consumption of the tablet personal computer 100.
In addition, the scheme for reducing the number of the loudspeakers is also an application scene, namely if one or a plurality of loudspeakers are damaged in the later use process, the scheme can be switched to an audio effect scheme corresponding to the number of the rest loudspeakers, and the frequency response curve of the rest loudspeakers is changed, so that the comprehensive audio effect of the product is not too bad and is the same as the audio playing effect before the loudspeakers are not damaged. On this basis, under the low-temperature and low-power conditions of the tablet pc 100, the determination of the speaker control strategy is the same as the above scheme, and will not be described herein.
The embodiment of the application also provides a computer readable storage medium, which comprises computer instructions, when the computer instructions run on the mobile terminal, the mobile terminal is caused to execute the functions or steps executed by the tablet computer 100 in the embodiment of the method.
Embodiments of the present application also provide a computer program product, which when run on a computer causes the computer to perform the functions or steps performed by the tablet pc 100 in the method embodiments described above. The computer may be the mobile terminal (e.g., tablet 100) described above.
Embodiments of the disclosed mechanisms may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as a computer program or program code that is executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (Digital Signal Processor, DSP), microcontroller, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Program code may also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in the present application are not limited in scope by any particular programming language. In either case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable storage media. Thus, a machine-readable storage medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, read-Only memories (CD-ROMs), magneto-optical disks, read-Only memories (ROMs), random access memories (Random Access Memory, RAMs), erasable programmable Read-Only memories (Erasable Programmable Read Only Memory, EPROMs), electrically erasable programmable Read-Only memories (Electrically Erasable Programmable Read-Only memories, EEPROMs), magnetic or optical cards, flash Memory, or tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of transmission signal based on the internet. Thus, a machine-readable storage medium includes any type of machine-readable storage medium suitable for storing or propagating electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module mentioned in each device is a logic unit/module, and in physical terms, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is only a key for solving the technical problem posed by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems posed by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (13)

1. The method is applied to electronic equipment, the electronic equipment comprises N speakers, N is an integer greater than or equal to 2, M speakers in the N speakers are in a working state, M is an integer greater than or equal to 1, and M is less than or equal to N, and the method comprises the following steps:
acquiring battery information of the electronic equipment;
if the electronic equipment is determined to be in a preset state based on the battery information, determining a speaker control strategy of the electronic equipment based on the battery information, wherein the speaker control strategy comprises L target speakers to be closed and Z with audio power consumption to be reduced in the M speakers, wherein L is calculated according to Z; the preset state includes a low temperature and/or low power state;
and closing the L target speakers.
2. The method of claim 1, wherein if the audio power consumption of each of the M speakers is the same and the audio power consumption of each speaker is Z1, the number of target speakers to be turned off L is a rounded result of a ratio of Z to Z1.
3. The method of claim 1, wherein the M speakers comprise M/2 first speakers and M/2 second speakers;
The audio power consumption of the first loudspeaker is Z2, and the audio power consumption of the second loudspeaker is Z3, wherein Z2 is larger than Z3;
if the audio power consumption Z to be reduced is larger than or equal to Z2, the number L of the target speakers to be closed is the rounding result of the ratio of Z to Z2;
or the number L of the target speakers to be closed is the rounded result of the ratio of Z to Z3;
or the sum of the number L of the target speakers to be closed to be a number a and a number b, wherein the number a and the number b are integers greater than or equal to 1, and the number a and the number b satisfy the following conditionsThe method comprises the steps of carrying out a first treatment on the surface of the Wherein a is the number of first speakers to be turned off and b is the number of second speakers to be turned off;
and if the audio power consumption Z to be reduced is more than or equal to Z3 and less than Z2, the number L of the target speakers to be closed is the rounded result of the ratio of Z to Z3.
4. A method according to claim 2 or 3, wherein M-L of the M speakers other than the L target speakers are in operation, and wherein the distance between each of the L target speakers and the user is greater than or equal to the distance between each of the M-L speakers and the user.
5. A method according to any one of claims 1, 2 and 3, wherein the L target loudspeakers are arranged symmetrically.
6. A method according to any one of claims 1, 2 and 3, wherein the method further comprises:
reducing the audio power consumption of each of the (M-L) speakers by Z4/(M-L); wherein, Z4 represents the audio power consumption to be reduced, and Z4 is the difference between the audio power consumption corresponding to Z and L target speakers.
7. The method of claim 6, wherein the electronic device comprises a power amplifier, the power amplifier being connected in one-to-one correspondence with the speaker;
the reducing the audio power consumption of each speaker of the (M-L) speakers by Z4/(M-L), comprising:
by reducing the audio gain of the power amplifier, the audio power consumption of each of the (M-L) speakers is reduced by Z4/(M-L).
8. A method according to claim 3, wherein if the audio power consumption to be reduced Z is smaller than the audio power consumption of the second speaker Z3, L is 0, the method further comprising:
the audio power consumption of each of the M speakers is reduced by Z/M.
9. The method of any one of claims 3, 7 and 8, wherein a first side of the electronic device is provided with M/4 first speakers and M/4 second speakers, the first and second speakers of the first side being disposed adjacent; m/4 first speakers and M/4 second speakers are arranged on the second side of the electronic equipment, and the first speakers and the second speakers on the second side are adjacently arranged; the first speaker of the first side and the first speaker of the second side are disposed opposite; the second speaker of the first side and the second speaker of the second side are disposed opposite.
10. The method of claim 9, wherein the first speaker is a woofer and the second speaker is a tweeter.
11. The method according to any one of claims 1, 2, 3, 7, 8 and 10, wherein the battery information includes remaining power information of the electronic device and/or temperature information of the electronic device, the temperature information of the electronic device representing a temperature of an environment in which a battery in the electronic device is located; if the residual electric quantity information of the electronic equipment meets the preset standard electric quantity threshold condition, the electronic equipment is in a low-temperature state; and if the temperature information of the electronic equipment meets the preset standard temperature threshold condition, the electronic equipment is in a low-power state.
12. An electronic device comprising a processor, a memory, and a plurality of speakers; the memory is used for storing code instructions; the processor is configured to execute the code instructions to cause the electronic device to perform the method of any of claims 1-11.
13. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-11.
CN202311063266.6A 2023-08-23 2023-08-23 Speaker control method, electronic device and computer readable storage medium Active CN116782108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311063266.6A CN116782108B (en) 2023-08-23 2023-08-23 Speaker control method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311063266.6A CN116782108B (en) 2023-08-23 2023-08-23 Speaker control method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116782108A true CN116782108A (en) 2023-09-19
CN116782108B CN116782108B (en) 2023-11-24

Family

ID=87989878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311063266.6A Active CN116782108B (en) 2023-08-23 2023-08-23 Speaker control method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116782108B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040091123A1 (en) * 2002-11-08 2004-05-13 Stark Michael W. Automobile audio system
CN1770928A (en) * 2004-10-01 2006-05-10 伯斯有限公司 Automobile audio system
CN110022515A (en) * 2019-04-30 2019-07-16 广州三星通信技术研究有限公司 Electronic equipment and its control method
CN113660599A (en) * 2020-04-29 2021-11-16 Oppo广东移动通信有限公司 Loudspeaker control method and device, mobile terminal and storage medium
CN113721753A (en) * 2021-08-30 2021-11-30 深圳市锐尔觅移动通信有限公司 Power amplifier control method and apparatus, storage medium, and electronic device
US20220078548A1 (en) * 2020-09-04 2022-03-10 Apple Inc. Smart Speaker Power Management
CN114727374A (en) * 2022-04-01 2022-07-08 潍坊歌尔丹拿电子科技有限公司 Control method and device of electric automobile and vehicle-mounted audio system
CN114816026A (en) * 2021-01-21 2022-07-29 华为技术有限公司 Low-power-consumption standby method, electronic equipment and computer-readable storage medium
CN115202606A (en) * 2021-04-09 2022-10-18 广东小天才科技有限公司 Audio signal control method and device
WO2023020050A1 (en) * 2021-08-19 2023-02-23 荣耀终端有限公司 Method for improving external playback sound effect and related apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040091123A1 (en) * 2002-11-08 2004-05-13 Stark Michael W. Automobile audio system
CN1770928A (en) * 2004-10-01 2006-05-10 伯斯有限公司 Automobile audio system
CN110022515A (en) * 2019-04-30 2019-07-16 广州三星通信技术研究有限公司 Electronic equipment and its control method
CN113660599A (en) * 2020-04-29 2021-11-16 Oppo广东移动通信有限公司 Loudspeaker control method and device, mobile terminal and storage medium
US20220078548A1 (en) * 2020-09-04 2022-03-10 Apple Inc. Smart Speaker Power Management
CN114816026A (en) * 2021-01-21 2022-07-29 华为技术有限公司 Low-power-consumption standby method, electronic equipment and computer-readable storage medium
CN115202606A (en) * 2021-04-09 2022-10-18 广东小天才科技有限公司 Audio signal control method and device
WO2023020050A1 (en) * 2021-08-19 2023-02-23 荣耀终端有限公司 Method for improving external playback sound effect and related apparatus
CN113721753A (en) * 2021-08-30 2021-11-30 深圳市锐尔觅移动通信有限公司 Power amplifier control method and apparatus, storage medium, and electronic device
CN114727374A (en) * 2022-04-01 2022-07-08 潍坊歌尔丹拿电子科技有限公司 Control method and device of electric automobile and vehicle-mounted audio system

Also Published As

Publication number Publication date
CN116782108B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN112789867B (en) Bluetooth connection method and equipment
WO2020192546A1 (en) Bluetooth transmission power control method and terminal device
WO2021169402A1 (en) Screen brightness adjustment method and electronic device
CN113890936B (en) Volume adjustment method, device and storage medium
US20230059427A1 (en) Bluetooth Communication Method and Apparatus
CN112737566B (en) Interface conversion circuit and electronic equipment
US11956607B2 (en) Method and apparatus for improving sound quality of speaker
CN112806092B (en) Microphone MIC switching method and device
WO2023015940A1 (en) Mobile terminal that prevents sound leakage and sound output method for mobile terminal
CN117528349A (en) Stereo pickup method, stereo pickup device, terminal device and computer-readable storage medium
US20240126224A1 (en) Switch Switching Method and Related Apparatus
CN111757451B (en) Method for adjusting Bluetooth output power and terminal equipment
EP4266208A1 (en) Video switching method and apparatus, storage medium, and device
WO2020077508A1 (en) Dynamic frequency adjustment method for internal memory, and electronic apparatus
CN113129916B (en) Audio acquisition method, system and related device
CN116782108B (en) Speaker control method, electronic device and computer readable storage medium
WO2023274180A1 (en) Method and apparatus for improving sound quality of speaker
CN113467747B (en) Volume adjusting method, electronic device and storage medium
US20230370718A1 (en) Shooting Method and Electronic Device
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN115714890A (en) Power supply circuit and electronic device
CN114915359A (en) Method, device, electronic equipment and readable storage medium for selecting channel
RU2796916C1 (en) Screen brightness adjustment method and electronic device
CN219834364U (en) Audio circuit and terminal equipment
WO2024001735A1 (en) Network connection method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant