CN113805681A - Sound effect adjusting method and device, storage medium and terminal - Google Patents

Sound effect adjusting method and device, storage medium and terminal Download PDF

Info

Publication number
CN113805681A
CN113805681A CN202110887184.8A CN202110887184A CN113805681A CN 113805681 A CN113805681 A CN 113805681A CN 202110887184 A CN202110887184 A CN 202110887184A CN 113805681 A CN113805681 A CN 113805681A
Authority
CN
China
Prior art keywords
sound effect
terminal
strategy
temperature
adjusting
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
CN202110887184.8A
Other languages
Chinese (zh)
Other versions
CN113805681B (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.)
Realme Mobile Telecommunications Shenzhen Co Ltd
Original Assignee
Realme Mobile Telecommunications Shenzhen 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 Realme Mobile Telecommunications Shenzhen Co Ltd filed Critical Realme Mobile Telecommunications Shenzhen Co Ltd
Priority to CN202110887184.8A priority Critical patent/CN113805681B/en
Publication of CN113805681A publication Critical patent/CN113805681A/en
Application granted granted Critical
Publication of CN113805681B publication Critical patent/CN113805681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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 embodiment of the application discloses a sound effect adjusting method and device, a storage medium and a terminal, and belongs to the technical field of terminals. The method comprises the following steps: the method comprises the steps of obtaining the operation temperature of a terminal, determining a target sound effect adjusting strategy corresponding to the operation temperature of the terminal based on the corresponding relation between the temperature range and the sound effect adjusting strategy, adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, and outputting an audio signal by the adjusted sound effect. By adopting the embodiment of the application, different sound effect adjusting strategies are selected to adjust the sound effect of the terminal based on the operation temperature value of the terminal, the operation temperature of the terminal is reduced by adjusting the sound effect of the terminal, the performance of the terminal cannot be influenced in the process, and the service life of the terminal can be prolonged.

Description

Sound effect adjusting method and device, storage medium and terminal
Technical Field
The present application relates to the field of computer technologies, and in particular, to a sound effect adjusting method and apparatus, a storage medium, and a terminal.
Background
With the continuous progress and development of science and technology, the performance of terminals (such as mobile phones, tablets, notebook computers, etc.) is more and more powerful due to the continuous update and iteration of various terminals, and high performance is usually accompanied by high power consumption and high heat generation. When a terminal product handles high-performance and high-load tasks (such as games or 4K ultra-high-definition video playing), high heat is often generated to raise the temperature of the terminal, the service life of the terminal can be shortened when the terminal product is in a high-temperature working environment for a long time, and even explosion is caused to harm the personal safety of users in severe cases. Therefore, it is very necessary to control the operating temperature of the terminal.
The existing terminal operation strategy generally realizes the control of the operation temperature by adding a heat radiation piece or reducing the performance of the terminal (performing frequency reduction processing on a central processing unit and an image processor), wherein the former can increase the heat radiation cost, and the latter can cause the problems of blocking and the like to influence the use of users.
Disclosure of Invention
The embodiment of the application provides a sound effect adjusting method, a sound effect adjusting device, a storage medium and a terminal, and the sound effect of the terminal can be adjusted by selecting a proper sound effect adjusting strategy based on the operating temperature of the terminal so as to reduce the operating temperature of the terminal.
The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a sound effect adjusting method, where the method is applied to a terminal, and the method includes:
acquiring the operating temperature of the terminal;
determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy to output the audio signal by the adjusted sound effect.
In a second aspect, an embodiment of the present application provides a sound effect adjusting apparatus, where the sound effect adjusting apparatus includes:
the temperature acquisition module is used for acquiring the operating temperature of the terminal;
the sound effect strategy determining module is used for determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
and the sound effect adjusting module is used for adopting the target sound effect adjusting strategy to adjust the sound effect of the terminal so as to output the adjusted sound effect to the audio signal.
In a third aspect, embodiments of the present application provide a storage medium having at least one instruction stored thereon, where the at least one instruction is adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores at least one instruction adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
by adopting the sound effect adjusting method provided by the embodiment of the application, the operation temperature of the terminal is obtained, then the target sound effect adjusting strategy corresponding to the operation temperature of the terminal is determined based on the corresponding relation between the temperature range and the sound effect adjusting strategy, the sound effect of the terminal is adjusted by adopting the target sound effect adjusting strategy, and the sound effect output audio signal after adjustment is used for realizing that the operation temperature of the terminal is reduced by adjusting the sound effect of the terminal, so that the performance of the terminal can not be influenced in the process, and the service life of the terminal can be prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a sound effect adjusting method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a sound effect adjusting method according to an embodiment of the present disclosure;
FIG. 3 provides an exemplary diagram of a temperature range and an effect adjustment strategy according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an example of sound effect adjustment according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a sound effect adjusting apparatus according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a sound effect adjusting apparatus according to an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of a sound effect adjusting apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Before describing the embodiments of the present invention more clearly, some concepts of the present invention will be described in detail to better understand the present invention.
With the progress and development of science and technology, terminals have increasingly merged into the lives of the public, and with the development of mobile networks, terminals are widely applied, such as a series of activities of working, shopping, leisure and entertainment, social contact and the like can be carried out by using the terminals.
Any electronic equipment has the problems of heating, large power consumption and high power consumption under overload operation, and the terminal is no exception. For example, when executing high-computation-intensity tasks such as playing games, ultra-high-definition video playing, multitasking, and the like, hardware of the terminal is in high-load operation, and a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU) operate at high speed, so that power consumption and temperature of the terminal increase. The temperature at terminal is too high, and on the one hand the user is when operating terminal, and the high temperature scalds the hand and causes uncomfortable user experience, and on the other hand can harm the life of the inside hardware of terminal, and then reduces the life at terminal. In severe cases, the hardware in the terminal is in a high temperature state for a long time, which may cause explosion and harm personal safety. Therefore, when the terminal temperature is high, it is necessary to cool the terminal so that the terminal temperature can be maintained in a reasonable temperature range.
In the related art, the power consumption and the temperature are generally reduced by reducing the frequency of a CPU and a GPU or turning off part of the core number and limiting the performance release of the CPU and the GPU, but such performance-limiting modes can significantly reduce the user experience, for example, frames and blocks may fall off during playing games, the video definition may be reduced during playing videos, background tasks may be killed in a multi-task scene, and the user experience is seriously reduced.
In fact, in the case of audio amplification of the terminal, the power consumption of the audio system may occupy 10% -20% of the overall power consumption at the maximum, i.e. the audio system also generates a large amount of temperature release. Therefore, the sound effect can be dynamically reduced by reading the whole temperature of the terminal based on the application of the current audio sound effect processing technology, so that the power consumption and the temperature release of an audio system are reduced, and the temperature of the terminal is further reduced; further, different temperature ranges are set based on the operating temperature of the terminal, different sound effect adjusting strategies are formulated according to the different temperature ranges, the sound effect is reduced by selecting a proper sound effect adjusting strategy gradient under the condition that the perception of a user is not obvious, and the user experience in use is guaranteed while the temperature of the terminal is reduced.
The sound effect adjusting method provided by each embodiment of the application is applied to a terminal, and the terminal can be a smart phone, a tablet Computer, a Personal Computer (PC), a smart band or other electronic equipment. Optionally, the sound effect adjusting method provided by the embodiment of the application can be applied to all scenes including audio playing, such as game sound playing scenes, video sound playing scenes, audio playing scenes during charging, multi-task audio playing scenes and the like.
The following embodiments are described in detail with reference to specific embodiments, and for convenience of description, the following embodiments are all described by taking a terminal as an example of a smart phone. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. The flow diagrams depicted in the figures are merely exemplary and need not be performed in the order of the steps shown. For example, some steps are parallel, and there is no strict sequence relationship in logic, so the actual execution sequence is variable.
Referring to fig. 1, a flow chart of a sound effect adjusting method according to an embodiment of the present application is provided. The execution main body of the embodiment of the application is a terminal. As shown in fig. 1, the sound effect adjusting method may include the following steps S101 to S103.
S101, acquiring the operating temperature of the terminal;
specifically, when it is detected that an audio signal is output, it is determined that an audio system of the terminal is in a working state, and then the current operating temperature of the terminal is obtained.
Optionally, the operating temperature of the terminal may refer to an operating temperature of a processor of the terminal.
In one possible implementation, when an audio signal output is detected, the operating temperature of the processor of the terminal is obtained by reading the value of a temperature sensor disposed in the vicinity of the processor.
Optionally, the operating temperature of the terminal may also refer to an operating temperature of a Power Management Integrated Circuit (PMIC) of the terminal.
In one possible implementation manner, when an audio signal output is detected, the operating temperature of the PMIC of the terminal is obtained by reading a value of a temperature sensor disposed near the PMIC, where the PMIC is used to manage a power supply device in the terminal, such as a smartphone, and the power supply device is a battery of the smartphone.
Optionally, the operating temperature of the terminal may also refer to an operating temperature of a charging Integrated Circuit (IC) of the terminal.
In one possible implementation, when an audio signal output is detected, the operating temperature of a charging IC of the terminal is obtained by reading a value of a temperature sensor disposed in the vicinity of the charging IC, which is applied to charge management of the terminal.
Optionally, the operating temperature of the terminal may also refer to an average temperature of a whole casing of the terminal.
In one possible implementation manner, when the audio signal output is detected, the operating temperature of the processor of the terminal is obtained by reading the value of the temperature sensor arranged near the processor, the operating temperature of the PMIC of the terminal is obtained by reading the value of the temperature sensor arranged near the PMIC, the operating temperature of the charging IC of the terminal is obtained by reading the value of the temperature sensor arranged near the charging IC, the operating temperature of the main board of the terminal is obtained by reading the value of the temperature sensor arranged near the main board, and the average temperature of the whole casing of the terminal is calculated according to a preset calculation algorithm based on the processor, the main board, the PMIC, the charging IC and other main heat sources.
Optionally, the operating temperature of the terminal may also be the temperature of other heat source positions of the terminal, and the embodiment of the present application is not limited to the specific attribute of the operating temperature of the terminal.
S102, determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
specifically, the corresponding relation between different temperature ranges and different sound effect adjusting strategies is preset, and according to the temperature range of the operating temperature of the terminal, the sound effect adjusting strategy corresponding to the temperature ranges is determined to be the target sound effect adjusting strategy corresponding to the operating temperature.
Different sound effect adjusting strategies are set for different temperature ranges, the sound effect adjusting strategies can include one or a combination of several sound effect adjusting sub-strategies such as not performing sound effect adjusting processing, performing cutoff processing on high-frequency signals of audio signals, performing attenuation processing on low-frequency signals of the audio signals, performing amplitude limiting processing on hardware used for playing the audio signals, and performing voltage limiting and current limiting processing on the hardware used for playing the audio signals, and the embodiments of the application are not limited. The operation temperature of the terminal is in different temperature ranges, different sound effect adjusting strategies are adopted, for example, when the operation temperature is in a first temperature range, the sound effect of the terminal is adjusted by adopting a first sound effect adjusting strategy, and the sound effect adjustment is not carried out by the first sound effect adjusting strategy; when the operation temperature is in a second temperature range, adjusting the sound effect of the terminal by adopting a second sound effect adjusting strategy, wherein the second sound effect adjusting strategy comprises the step of carrying out cutoff processing on a high-frequency signal of the audio signal; when the operation temperature is in a third temperature range, adjusting the sound effect of the terminal by adopting a third sound effect adjusting strategy, wherein the third sound effect adjusting strategy comprises the steps of carrying out cutoff processing on a high-frequency signal of the audio signal and carrying out attenuation processing on a low-frequency signal of the audio signal; when the operating temperature is in a fourth temperature range, adjusting the sound effect of the terminal by adopting a fourth sound effect adjusting strategy, wherein the fourth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on a high-frequency signal of an audio signal, carrying out attenuation processing on a low-frequency signal of the audio signal and carrying out amplitude limiting processing on hardware used for playing the audio signal, and the lower temperature limit of the fourth temperature range is greater than or equal to the upper temperature limit of the third temperature range; and when the operating temperature is in a fifth temperature range, adjusting the sound effect of the terminal by adopting a fifth sound effect adjusting strategy, wherein the fifth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on a high-frequency signal of the audio signal, carrying out attenuation processing on a low-frequency signal of the audio signal, and carrying out amplitude limiting processing and voltage limiting and current limiting processing on hardware used for playing the audio signal.
S103, the target sound effect adjusting strategy is adopted to adjust the sound effect of the terminal, and the adjusted sound effect is output to the audio signal.
Specifically, the target sound effect adjustment strategy may be one or a combination of the following sound effect adjustment sub-strategies: the method comprises the steps of not adjusting sound effect, cutting off high-frequency signals of audio signals, attenuating low-frequency signals of the audio signals, carrying out amplitude limiting processing on hardware used for playing the audio signals, and carrying out voltage limiting and current limiting processing on the hardware used for playing the audio signals.
In a possible implementation manner, the adjusting the sound effect of the terminal by using the target sound effect adjusting strategy may be to cut off a high-frequency signal of an audio signal.
In a possible implementation manner, the adjusting the sound effect of the terminal by using the target sound effect adjusting strategy may be performing cutoff processing on a high-frequency signal of an audio signal and performing attenuation processing on a low-frequency signal of the audio signal.
In a possible implementation manner, the adjusting the sound effect of the terminal by using the target sound effect adjusting strategy may be performing cutoff processing on a high-frequency signal of an audio signal, performing attenuation processing on a low-frequency signal of the audio signal, and performing amplitude limiting processing on hardware used for playing the audio signal.
In a possible implementation manner, the adjusting the sound effect of the terminal by using the target sound effect adjusting strategy may be performing cutoff processing on a high-frequency signal of an audio signal, performing attenuation processing on a low-frequency signal of the audio signal, performing amplitude limiting processing on hardware used for playing the audio signal, and performing voltage limiting and current limiting processing on the hardware used for playing the audio signal.
In this application embodiment, through the operating temperature who acquires the terminal, set up different temperature ranges to formulate different audio regulation strategies according to different temperature ranges, select suitable audio regulation strategy to adjust the audio at terminal for use according to the operating temperature at terminal, and output audio signal with the audio after the regulation, and then realized reducing the operating temperature at terminal through adjusting the audio, can not influence the performance at terminal and can prolong terminal life at this in-process.
In one possible implementation, the developer defines several different prominence adjustment strategies based on different temperature ranges. The following embodiments focus on what sound effect adjustment strategy should be selected for different temperature ranges.
Referring to fig. 2, a flow chart of a sound effect adjusting method according to an embodiment of the present application is provided. The execution main body of the embodiment of the application is a terminal. As shown in fig. 2, the sound effect adjusting method may include the following steps.
S201, collecting at least one temperature range and at least one sound effect regulation strategy;
specifically, several temperature ranges and several sound effect adjustment sub-strategies are preset, one temperature range corresponds to at least one sound effect adjustment sub-strategy, the sound effect adjustment sub-strategy can include: the method comprises the steps of not adjusting the sound effect of the terminal, cutting off the high-frequency signal of the audio signal, attenuating the low-frequency signal of the audio signal, limiting the amplitude of hardware used for playing the audio signal, limiting the voltage and limiting the current of the hardware used for playing the audio signal and the like.
Furthermore, the sound effect adjusting sub-strategy can be further finely divided, for example, the attenuation degree of the high-frequency signal and the low-frequency signal can be adjusted, and the sound effect adjusting sub-strategies with different attenuation degrees can be obtained.
S202, arranging and combining the sound effect adjusting sub-strategies according to the priority order of the sound effect adjusting sub-strategies to generate different sound effect adjusting strategies, wherein each sound effect adjusting strategy comprises at least one sound effect adjusting sub-strategy;
specifically, in the embodiment of the present application, according to each sound effect adjustment sub-strategy, the adjustment effect on the temperature and the perception degree of the sound effect after the sound effect adjustment sub-strategy is adjusted by the human ear are performed, priority ranking is performed on each sound effect adjustment sub-strategy, and different sound effect adjustment strategies are generated by performing permutation and combination according to the priority ranking.
In this embodiment of the application, the sound effect adjustment sub-strategy may include: the method comprises the steps of not adjusting the sound effect of the terminal, cutting off the high-frequency signal of the audio signal, attenuating the low-frequency signal of the audio signal, carrying out amplitude limiting processing on hardware used for playing the audio signal and carrying out voltage limiting and current limiting processing on the hardware used for playing the audio signal. The priority ordering of the sound effect adjusting sub-strategies is as follows: the sound effect of the terminal is not adjusted, the high-frequency signal of the audio signal is cut off, the low-frequency signal of the audio signal is attenuated, the hardware for playing the audio signal is subjected to amplitude limiting, and the hardware for playing the audio signal is subjected to voltage limiting and current limiting. The priority ordering is that the perception degree of the sound effect adjusted by the sound effect adjusting sub-strategy is from low to high for human ears and the adjusting effect of each sound effect adjusting sub-strategy on the temperature is from low to high.
S203, generating a corresponding relation between the temperature range and the sound effect adjusting strategy;
specifically, when the temperature is in a smaller temperature range, a sound effect adjusting strategy with a slightly lower temperature adjusting effect is used, and the sound effect adjusted by the sound effect adjusting strategy is not easy to influence the hearing experience of human ears; and when being in higher temperature range, show that the cooling is handled in urgent need, the sense of hearing of people's ear should not be considered this moment, can use the higher audio regulation strategy of temperature regulation effect.
S204, acquiring the operating temperature of the terminal;
specifically, when it is detected that an audio signal is output, it is determined that an audio system of the terminal is in an operating state, the operating temperature of the processor of the terminal is obtained by reading a value of a temperature sensor disposed near the processor, the operating temperature of the PMIC of the terminal is obtained by reading a value of a temperature sensor disposed near the PMIC, the operating temperature of a charging IC of the terminal is obtained by reading a value of a temperature sensor disposed near the charging IC, the operating temperature of a main board of the terminal is obtained by reading a value of a temperature sensor disposed near the main board, an average temperature of a complete machine housing of the terminal is calculated according to a preset calculation algorithm based on several main heat sources such as the processor, the main board, the PMIC, and the charging IC, and the average temperature of the complete machine housing of the terminal is taken as the operating temperature.
In an embodiment, further, after the operation temperature of the terminal is obtained, it may be determined whether the operation temperature of the terminal is greater than a temperature threshold, and if the operation temperature of the terminal is greater than a preset temperature threshold, the terminal is considered to be in a high temperature state, and the first amplitude of the audio signal that is not subjected to the sound effect processing at this time is obtained. If the first amplitude is greater than the first amplitude threshold, the step S206 is executed continuously.
The first amplitude is an amplitude of Pulse Code Modulation (PCM) data obtained by directly reading compressed data from a hard disk or a network stream and decoding the compressed data, and the PCM data may be an audio signal without any sound effect processing.
The first amplitude may be a Root Mean Square (RMS) effective value of the PCM data.
Judging whether the first amplitude is larger than a preset first amplitude threshold value or not, and determining the sound effect adjusting strategy corresponding to the temperature range to be the target sound effect adjusting strategy corresponding to the operating temperature according to the corresponding relation between different temperature ranges and different sound effect adjusting strategies and the temperature range where the operating temperature of the terminal is located only when the first amplitude is larger than the first amplitude threshold value. And when the first amplitude is not larger than the first amplitude threshold, the established sound effect adjusting strategy is not executed, so that sound effect adjustment is avoided according to the preset sound effect adjusting strategy under the condition that the amplitude of the audio signal is too small, the effect playing is further reduced with very small volume, and the user experience is influenced.
S205, if the operating temperature belongs to a first temperature range, taking a first sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the first sound effect adjusting strategy is that the sound effect of the terminal is not adjusted, and the first temperature range is the minimum temperature range in the set temperature range;
s206, if the operating temperature belongs to a second temperature range, taking a second sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the second sound effect adjusting strategy comprises the step of cutting off the high-frequency signal of the audio signal, and the lower temperature limit of the second temperature range is greater than or equal to the upper temperature limit of the first temperature range;
s207, if the operating temperature belongs to a third temperature range, taking a third sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the third sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of audio signals and carrying out attenuation processing on low-frequency signals of the audio signals, and the lower temperature limit of the third temperature range is greater than or equal to the upper temperature limit of the second temperature range;
s208, if the operating temperature is in a fourth temperature range, taking a fourth sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the fourth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals, carrying out attenuation processing on low-frequency signals of the audio signals and carrying out amplitude limiting processing on hardware used for playing the audio signals, and the lower temperature limit of the fourth temperature range is greater than or equal to the upper temperature limit of the third temperature range;
s209, if the operating temperature is in a fifth temperature range, taking a fifth sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the fifth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on a high-frequency signal of an audio signal, carrying out attenuation processing on a low-frequency signal of the audio signal, and carrying out amplitude limiting processing and voltage limiting and current limiting processing on hardware used for playing the audio signal, and the lower temperature limit of the fifth temperature range is greater than or equal to the upper temperature limit of the fourth temperature range;
specifically, steps S206 to S210 are specific implementation manners of sound effect adjustment strategies, and in the embodiment of the present application, a total five-gear temperature range is set to correspond to the five sound effect adjustment strategies to perform sound effect adjustment on the terminal.
The first temperature range is the minimum temperature range, and the operating temperature at the terminal is in this temperature range, shows that the terminal need not lower the temperature, consequently when the operating temperature is located first temperature range, adopts the sound effect of first sound effect regulation strategy regulation terminal, and first sound effect regulation strategy is for not carrying out the sound effect regulation.
And when the operating temperature of the terminal is in the second temperature range, the sound effect of the terminal is adjusted by adopting a second sound effect adjusting strategy, and the second sound effect adjusting strategy is used for carrying out cutoff processing on the high-frequency signal of the audio signal.
The lower temperature limit of the third temperature range is greater than or equal to the upper temperature limit of the second temperature range, when the operating temperature of the terminal is in the third temperature range, the sound effect of the terminal is adjusted by adopting a third sound effect adjusting strategy, and the third sound effect adjusting strategy is to cut off the high-frequency signal of the audio signal and attenuate the low-frequency signal of the audio signal;
the lower temperature limit of the fourth temperature range is greater than or equal to the upper temperature limit of the third temperature range, when the operating temperature of the terminal is in the fourth temperature range, the sound effect of the terminal is adjusted by adopting a fourth sound effect adjusting strategy, and the fourth sound effect adjusting strategy is to cut off the high-frequency signal of the audio signal, attenuate the low-frequency signal of the audio signal and limit the amplitude of the hardware;
and when the operating temperature of the terminal is in the fifth temperature range, a fifth sound effect adjusting strategy is adopted to adjust the sound effect of the terminal, namely, the fifth sound effect adjusting strategy is used for carrying out cutoff processing on a high-frequency signal of the audio signal, carrying out attenuation processing on a low-frequency signal of the audio signal and carrying out amplitude limiting processing and voltage limiting and current limiting processing on the hardware.
The hardware for playing the audio signal may refer to a speaker, and performing amplitude limiting processing and voltage limiting and current limiting processing on the hardware for playing the audio signal may be understood as performing amplitude limiting and voltage limiting and current limiting on the speaker.
Further, if the operating temperature is greater than the upper temperature limit of the fifth temperature range, the audio signal is stopped from being output.
It can be understood that the upper temperature limit of the fifth temperature range may be a maximum temperature threshold, and if the operating temperature is greater than the upper temperature limit of the fifth temperature range, the terminal may be damaged, and at this time, the temperature should be immediately reduced, so that the operating state of the audio system in the terminal is directly turned off, so as to achieve the best cooling effect achieved by adjusting the sound effect.
Preferably, the cutting-off processing on the high-frequency signal of the audio signal may be performing 10db attenuation on the audio signal above 10 khz.
Preferably, the attenuation processing on the low-frequency signal of the audio signal may be performing 3db attenuation on the audio signal of 200 hz and 500 hz.
Preferably, the hardware may be a speaker, and the limiting process performed on the hardware may be to reduce the maximum amplitude of the speaker by 0.03 mm.
Preferably, the voltage limiting and current limiting processing on the hardware may be to reduce the boost voltage of the hardware by 2V and reduce the maximum current flowing through the hardware by 0.5A.
The method is characterized in that the sound effect adjusting mode adopted by the terminal from low to high operation temperature is respectively to cut off the high-frequency signal of the audio signal; cutting off a high-frequency signal of the audio signal and attenuating a low-frequency signal of the audio signal; cutting off a high-frequency signal of the audio signal, attenuating a low-frequency signal of the audio signal, and limiting the hardware; cutting off the high-frequency signal of the audio signal, attenuating the low-frequency signal of the audio signal, and performing amplitude limiting and voltage limiting and current limiting on the hardware. The terminal sound effect is adjusted in the sound effect adjusting mode that is difficult for being perceived by the user, along with the rising of operating temperature, the adjusting degree of the sound effect of the terminal is gradually strengthened to realize the maximum effect income between user experience and power consumption temperature control.
It will be appreciated that the human ear is primarily focused on the content of sound, whether in games, video, or speech, and the content is generally focused on the mid-frequency signal, so the human ear is not sensitive to the low and high frequency signals of the audio signal. Therefore, when the operating temperature at the terminal is higher and needs to be cooled down, the high-frequency signals in the audio signals are preferentially attenuated, then the sound effect processing effect is further enhanced along with the continuous increase of the temperature, the low-frequency signals in the audio signals are increased to be attenuated, the low-frequency signals in the audio signals are continuously increased along with the terminal operating temperature, the hardware used for playing the audio signals is further subjected to amplitude limiting and voltage limiting and current limiting, the damage and the influence of the terminal operating temperature to the terminal are increased, the sound effect adjusting degree is continuously enhanced, and the maximum effect gain of sound effect adjustment between user experience and temperature control is realized.
The fifth-gear temperature range is divided, and sound effect adjustment is performed by adopting a sound effect adjustment strategy corresponding to the fifth-gear temperature range so as to adjust the operating temperature of the terminal. Optionally, a finer temperature range may be further divided for sound effect adjustment, for example, ten temperature ranges are divided and ten sound effect adjustment strategies corresponding to the ten temperature ranges are set for sound effect adjustment, so as to achieve finer temperature control measures. The present embodiment is not limited to this.
S210, outputting the audio signal by the adjusted sound effect;
preferably, taking the average temperature of the whole machine housing with the operating temperature as the terminal as an example, the embodiment of the application provides an exemplary temperature range setting method and a corresponding sound effect adjusting strategy setting method. As shown in fig. 3, an exemplary diagram of a temperature range and an effect adjustment strategy is provided for the embodiment of the present application. The first temperature range is set to be 35-40 degrees, the second temperature range to be 40-42 degrees, the third temperature range to be 42-44 degrees, the fourth temperature sub-range to be 44-46 degrees and the fifth temperature range to be 46-48 degrees. The first temperature range corresponds to a first sound effect adjustment strategy, which corresponds to no sound effect adjustment; the second temperature range corresponds to a second sound effect adjusting strategy, and the second sound effect adjusting strategy corresponds to the cutoff treatment of the high-frequency signal of the audio signal; the third temperature range corresponds to a third sound effect adjustment strategy, which corresponds to a cut-off processing of a high-frequency signal of the audio signal and an attenuation processing of a low-frequency signal of the audio signal; the fourth temperature range corresponds to a fourth sound effect adjusting strategy, and the fourth sound effect adjusting strategy corresponds to the steps of carrying out cutoff processing on high-frequency signals of the audio signals, carrying out attenuation processing on low-frequency signals of the audio signals and carrying out amplitude limiting processing on the hardware; the fifth temperature range corresponds to a fifth sound effect adjustment strategy, which corresponds to performing cutoff processing on a high-frequency signal of the audio signal, performing attenuation processing on a low-frequency signal of the audio signal, and performing amplitude limiting processing and voltage limiting and current limiting processing on the hardware. In a possible application scenario, when there is an audio signal output at the terminal and the temperature gradually increases from low to high, please refer to fig. 4 on the basis of fig. 4, which provides an exemplary illustration of sound effect adjustment for the embodiment of the present application.
As shown in fig. 4, the initial operating temperature of the terminal is 35 °, a large audio signal is always output during the terminal operation, the operating temperature of the terminal is not high, a first audio adjustment strategy is adopted, audio adjustment is not performed, when the terminal temperature rises to 40 °, the terminal automatically adopts a second audio adjustment strategy to perform audio adjustment of the terminal, when the terminal temperature rises to 42 °, the terminal automatically adopts a third audio adjustment strategy to perform audio adjustment of the terminal, when the terminal temperature rises to 44 °, the terminal automatically adopts a fourth audio adjustment strategy to perform audio adjustment of the terminal, when the terminal temperature rises to 46 °, the terminal automatically adopts a fifth audio adjustment strategy to perform audio adjustment of the terminal, and when the terminal temperature exceeds 48 °, the terminal automatically stops audio output, i.e., muting.
S211, obtaining the amplitude of the output audio signal, and stopping adjusting the sound effect of the terminal if the amplitude is smaller than an amplitude threshold value.
Specifically, the output audio signal refers to an audio signal subjected to sound effect adjustment, and the amplitude of the audio signal subjected to sound effect adjustment is calculated, where the amplitude may be an RMS value. It is easy to understand that if the amplitude is smaller than the preset amplitude threshold, the adjustment of the sound effect of the terminal is stopped, and the influence on the user experience caused by too small played audio volume can be avoided.
In the embodiment of the application, firstly, the temperature range and the sound effect adjusting sub-strategies are collected, the sound effect adjusting sub-strategies are arranged and combined according to the priority level of each sound effect adjusting sub-strategy, different sound effect adjusting strategies are generated, then, the corresponding relation between the temperature range and the sound effect adjusting strategy is generated, then, the operation temperature of the terminal is obtained, the average temperature of the whole machine shell of the terminal which can be sensed by a user is used as the operation temperature, the operation temperature is closer to the reality of the user, then, the target sound effect adjusting strategy corresponding to the operation temperature is determined based on the corresponding relation between the temperature range and the sound effect adjusting strategy, the different temperature ranges correspond to different sound effect adjusting strategies, the sound effect is reduced from the first temperature sub-range to the fifth temperature sub-range, the sound effect is reduced from low to high gradient, and the power consumption and the temperature of the terminal are reduced under the condition that the perception of the user is not obvious, the performance of the terminal is not influenced in the process, and the service life of the terminal can be prolonged; furthermore, the amplitude of the output audio signal is obtained, if the amplitude is smaller than the amplitude threshold value, the sound effect of the terminal is stopped being adjusted, the situation that the volume of the audio signal output in the sound effect adjusting process is too small is avoided, and it is guaranteed that a user can hear clear audio playing.
Please refer to fig. 5, which provides a schematic structural diagram of a sound effect adjusting apparatus according to an embodiment of the present application. As shown in fig. 5, the sound effect adjusting apparatus 1 may be implemented by software, hardware, or a combination of both as all or a part of a terminal. According to some embodiments, the sound effect adjusting apparatus 1 includes a temperature obtaining module 11, a sound effect policy determining module 12, and a sound effect adjusting module 13, and specifically includes:
the temperature acquisition module 11 is configured to acquire an operating temperature of the terminal;
the sound effect strategy determining module 12 is configured to determine a target sound effect adjustment strategy corresponding to the operating temperature based on a corresponding relationship between the temperature range and the sound effect adjustment strategy;
and the sound effect adjusting module 13 is used for adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy so as to output the adjusted sound effect to the audio signal.
Optionally, as shown in fig. 6, the apparatus further includes a corresponding relationship determining module, where the corresponding relationship determining module 14 is specifically configured to:
collecting at least one temperature range and at least one sound effect regulation strategy;
the sound effect adjustment sub-strategies are arranged and combined according to the priority order of the sound effect adjustment sub-strategies to generate different sound effect adjustment strategies, and each sound effect adjustment strategy comprises at least one sound effect adjustment sub-strategy;
and generating a corresponding relation between the temperature range and the sound effect adjusting strategy.
Optionally, the sound effect adjusting module 13 is specifically configured to:
if the operating temperature belongs to a first temperature range, then take a first sound effect adjusting strategy as a target sound effect adjusting strategy, adopt the target sound effect adjusting strategy to adjust the sound effect of the terminal, the first sound effect adjusting strategy is not right the sound effect of the terminal is adjusted, and the first temperature range is the minimum temperature range in the set temperature range.
Optionally, the sound effect adjusting module 13 is specifically configured to:
if the operating temperature belongs to a second temperature range, a second sound effect adjusting strategy is taken as a target sound effect adjusting strategy, the target sound effect adjusting strategy is adopted to adjust the sound effect of the terminal, the second sound effect adjusting strategy comprises the step of carrying out cutoff processing on high-frequency signals of audio signals, and the lower temperature limit of the second temperature range is larger than or equal to the upper temperature limit of the first temperature range.
Optionally, the sound effect adjusting module 13 is specifically configured to:
if the operating temperature belongs to a third temperature range, taking a third sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the third sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals and carrying out attenuation processing on low-frequency signals of the audio signals, and the lower temperature limit of the third temperature range is greater than or equal to the upper temperature limit of the second temperature range.
Optionally, the sound effect adjusting module 13 is specifically configured to:
if the operating temperature is located the fourth temperature range, then regard fourth audio regulation strategy as target audio regulation strategy, adopt target audio regulation strategy adjusts the audio at terminal, fourth audio regulation strategy includes right the high frequency signal of audio signal cuts off processing, right the low frequency signal of audio signal carries out attenuation processing and is used for the broadcast the hardware of audio signal carries out amplitude limiting processing, the temperature lower limit of fourth temperature range is greater than or equal to the temperature upper limit of third temperature range
Optionally, the sound effect adjusting module 13 is specifically configured to:
if the operating temperature is in a fifth temperature range, a fifth sound effect adjusting strategy is used as a target sound effect adjusting strategy, the sound effect of the terminal is adjusted by the target sound effect adjusting strategy, the fifth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals, carrying out attenuation processing on low-frequency signals of the audio signals, and carrying out amplitude limiting processing and voltage limiting and current limiting processing on hardware used for playing the audio signals, and the lower temperature limit of the fifth temperature range is larger than or equal to the upper temperature limit of the fourth temperature range.
Optionally, as shown in fig. 7, the apparatus further includes a negative feedback module 15, where the negative feedback module 15 is specifically configured to:
acquiring the amplitude of the output audio signal;
and if the amplitude is smaller than the amplitude threshold value, stopping adjusting the sound effect of the terminal.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, firstly, the temperature range and the sound effect adjusting sub-strategies are collected, the sound effect adjusting sub-strategies are arranged and combined according to the priority level of each sound effect adjusting sub-strategy, different sound effect adjusting strategies are generated, then, the corresponding relation between the temperature range and the sound effect adjusting strategy is generated, then, the operation temperature of the terminal is obtained, the average temperature of the whole machine shell of the terminal which can be sensed by a user is used as the operation temperature, the operation temperature is closer to the reality of the user, then, the target sound effect adjusting strategy corresponding to the operation temperature is determined based on the corresponding relation between the temperature range and the sound effect adjusting strategy, the different temperature ranges correspond to different sound effect adjusting strategies, the sound effect is reduced from the first temperature sub-range to the fifth temperature sub-range, the sound effect is reduced from low to high gradient, and the power consumption and the temperature of the terminal are reduced under the condition that the perception of the user is not obvious, the performance of the terminal is not influenced in the process, and the service life of the terminal can be prolonged; furthermore, the amplitude of the output audio signal is obtained, if the amplitude is smaller than the amplitude threshold value, the sound effect of the terminal is stopped being adjusted, the situation that the volume of the audio signal output in the sound effect adjusting process is too small is avoided, and it is guaranteed that a user can hear clear audio playing.
The embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the sound effect adjusting method according to the embodiment shown in fig. 1 to 4, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 4, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded by the processor and executes the sound effect adjusting method according to the embodiment shown in fig. 1 to 4, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 4, and is not described herein again.
Referring to fig. 8, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. A terminal in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire terminal using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In the embodiment of the present application, the input device 130 may be a temperature sensor for acquiring an operating temperature of the terminal. The output device 140 may be a speaker for outputting audio signals.
In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the embodiment of the present application, the main body of execution of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or another operating system, which is not limited in this embodiment of the present application.
The terminal of the embodiment of the application can also be provided with a display device, and the display device can be various devices capable of realizing a display function, for example: a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like.
In the terminal shown in fig. 8, the processor 110 may be configured to call the sound effect adjustment program stored in the memory 120, and specifically perform the following operations:
acquiring the operating temperature of the terminal;
determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy to output the audio signal by the adjusted sound effect.
In an embodiment, before the obtaining of the operating temperature of the terminal, the processor 110 specifically performs the following operations:
collecting at least one temperature range and at least one sound effect regulation strategy;
the sound effect adjustment sub-strategies are arranged and combined according to the priority order of the sound effect adjustment sub-strategies to generate different sound effect adjustment strategies, and each sound effect adjustment strategy comprises at least one sound effect adjustment sub-strategy;
and generating a corresponding relation between the temperature range and the sound effect adjusting strategy.
In an embodiment, when the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting policy, the following operations are specifically performed:
if the operating temperature belongs to a first temperature range, then take a first sound effect adjusting strategy as a target sound effect adjusting strategy, adopt the target sound effect adjusting strategy to adjust the sound effect of the terminal, the first sound effect adjusting strategy is not right the sound effect of the terminal is adjusted, and the first temperature range is the minimum temperature range in the set temperature range.
In an embodiment, when the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting policy, the following operations are specifically performed:
if the operating temperature belongs to a second temperature range, a second sound effect adjusting strategy is taken as a target sound effect adjusting strategy, the target sound effect adjusting strategy is adopted to adjust the sound effect of the terminal, the second sound effect adjusting strategy comprises the step of carrying out cutoff processing on high-frequency signals of audio signals, and the lower temperature limit of the second temperature range is larger than or equal to the upper temperature limit of the first temperature range.
In an embodiment, when the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting policy, the following operations are specifically performed:
if the operating temperature belongs to a third temperature range, taking a third sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the third sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals and carrying out attenuation processing on low-frequency signals of the audio signals, and the lower temperature limit of the third temperature range is greater than or equal to the upper temperature limit of the second temperature range.
In an embodiment, when the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting policy, the following operations are specifically performed:
if the operating temperature is located the fourth temperature range, then regard fourth audio regulation strategy as target audio regulation strategy, adopt target audio regulation strategy adjusts the audio at terminal, fourth audio regulation strategy includes right audio signal's high frequency signal cuts off processing, right audio signal's low frequency signal carries out attenuation processing and is used for the broadcast audio signal's hardware carries out amplitude limiting processing, the temperature lower limit of fourth temperature range is greater than or equal to the temperature upper limit of third temperature range.
In an embodiment, when the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting policy, the following operations are specifically performed:
if the operating temperature is in a fifth temperature range, a fifth sound effect adjusting strategy is used as a target sound effect adjusting strategy, the sound effect of the terminal is adjusted by the target sound effect adjusting strategy, the fifth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals, carrying out attenuation processing on low-frequency signals of the audio signals, and carrying out amplitude limiting processing and voltage limiting and current limiting processing on hardware used for playing the audio signals, and the lower temperature limit of the fifth temperature range is larger than or equal to the upper temperature limit of the fourth temperature range.
In one embodiment, after the processor 110 performs the adjusting of the sound effect of the terminal by using the target sound effect adjusting strategy to output the audio signal with the adjusted sound effect, the following operations are further performed:
acquiring the amplitude of the output audio signal;
and if the amplitude is smaller than the amplitude threshold value, stopping adjusting the sound effect of the terminal.
In the embodiment of the application, firstly, the temperature range and the sound effect adjusting sub-strategies are collected, the sound effect adjusting sub-strategies are arranged and combined according to the priority level of each sound effect adjusting sub-strategy, different sound effect adjusting strategies are generated, then, the corresponding relation between the temperature range and the sound effect adjusting strategy is generated, then, the operation temperature of the terminal is obtained, the average temperature of the whole machine shell of the terminal which can be sensed by a user is used as the operation temperature, the operation temperature is closer to the reality of the user, then, the target sound effect adjusting strategy corresponding to the operation temperature is determined based on the corresponding relation between the temperature range and the sound effect adjusting strategy, the different temperature ranges correspond to different sound effect adjusting strategies, the sound effect is reduced from the first temperature sub-range to the fifth temperature sub-range, the sound effect is reduced from low to high gradient, and the power consumption and the temperature of the terminal are reduced under the condition that the perception of the user is not obvious, the performance of the terminal is not influenced in the process, and the service life of the terminal can be prolonged; furthermore, the amplitude of the output audio signal is obtained, if the amplitude is smaller than the amplitude threshold value, the sound effect of the terminal is stopped being adjusted, the situation that the volume of the audio signal output in the sound effect adjusting process is too small is avoided, and it is guaranteed that a user can hear clear audio playing.
It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-ProgrammaBLE Gate Array (FPGA), an Integrated Circuit (IC), or the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

1. A sound effect adjusting method is applied to a terminal, and comprises the following steps:
acquiring the operating temperature of the terminal;
determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy so as to output an audio signal by the adjusted sound effect.
2. The method of claim 1, wherein before obtaining the operating temperature of the terminal, the method further comprises:
collecting at least one temperature range and at least one sound effect regulation strategy;
the sound effect adjustment sub-strategies are arranged and combined according to the priority order of the sound effect adjustment sub-strategies to generate different sound effect adjustment strategies, and each sound effect adjustment strategy comprises at least one sound effect adjustment sub-strategy;
and generating a corresponding relation between the temperature range and the sound effect adjusting strategy.
3. The method according to claim 2, wherein the adjusting the sound effect of the terminal using the target sound effect adjustment strategy comprises:
if the operating temperature belongs to a first temperature range, then take a first sound effect adjusting strategy as a target sound effect adjusting strategy, adopt the target sound effect adjusting strategy to adjust the sound effect of the terminal, the first sound effect adjusting strategy is not right the sound effect of the terminal is adjusted, and the first temperature range is the minimum temperature range in the set temperature range.
4. The method according to claim 3, wherein the adjusting the sound effect of the terminal using the target sound effect adjustment strategy comprises:
if the operating temperature belongs to a second temperature range, a second sound effect adjusting strategy is taken as a target sound effect adjusting strategy, the target sound effect adjusting strategy is adopted to adjust the sound effect of the terminal, the second sound effect adjusting strategy comprises the step of carrying out cutoff processing on high-frequency signals of audio signals, and the lower temperature limit of the second temperature range is larger than or equal to the upper temperature limit of the first temperature range.
5. The method according to claim 4, wherein the adjusting the sound effect of the terminal using the target sound effect adjustment strategy comprises:
if the operating temperature belongs to a third temperature range, taking a third sound effect adjusting strategy as a target sound effect adjusting strategy, and adjusting the sound effect of the terminal by adopting the target sound effect adjusting strategy, wherein the third sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals and carrying out attenuation processing on low-frequency signals of the audio signals, and the lower temperature limit of the third temperature range is greater than or equal to the upper temperature limit of the second temperature range.
6. The method according to claim 5, wherein the adjusting the sound effect of the terminal using the target sound effect adjustment strategy comprises:
if the operating temperature is located the fourth temperature range, then regard fourth audio regulation strategy as target audio regulation strategy, adopt target audio regulation strategy adjusts the audio at terminal, fourth audio regulation strategy includes right audio signal's high frequency signal cuts off processing, right audio signal's low frequency signal carries out attenuation processing and is used for the broadcast audio signal's hardware carries out amplitude limiting processing, the temperature lower limit of fourth temperature range is greater than or equal to the temperature upper limit of third temperature range.
7. The method according to claim 6, wherein the adjusting the sound effect of the terminal using the target sound effect adjustment strategy comprises:
if the operating temperature is in a fifth temperature range, a fifth sound effect adjusting strategy is used as a target sound effect adjusting strategy, the sound effect of the terminal is adjusted by the target sound effect adjusting strategy, the fifth sound effect adjusting strategy comprises the steps of carrying out cutoff processing on high-frequency signals of the audio signals, carrying out attenuation processing on low-frequency signals of the audio signals, and carrying out amplitude limiting processing and voltage limiting and current limiting processing on hardware used for playing the audio signals, and the lower temperature limit of the fifth temperature range is larger than or equal to the upper temperature limit of the fourth temperature range.
8. The method according to any one of claims 1 to 7, wherein after the adjusting the sound effect of the terminal by using the target sound effect adjusting strategy to output the audio signal with the adjusted sound effect, the method further comprises:
acquiring the amplitude of the output audio signal;
and if the amplitude is smaller than the amplitude threshold value, stopping adjusting the sound effect of the terminal.
9. An audio effect adjustment apparatus, the apparatus comprising:
the temperature acquisition module is used for acquiring the operating temperature of the terminal;
the sound effect strategy determining module is used for determining a target sound effect adjusting strategy corresponding to the operating temperature based on the corresponding relation between the temperature range and the sound effect adjusting strategy;
and the sound effect adjusting module is used for adopting the target sound effect adjusting strategy to adjust the sound effect of the terminal so as to output the adjusted sound effect to the audio signal.
10. A storage medium having at least one instruction stored thereon, wherein the at least one instruction when executed by a processor implements the steps of the method of any one of claims 1 to 8.
11. A terminal, comprising: a processor and a memory; wherein the memory stores at least one instruction adapted to be loaded by the processor and to perform the steps of the method according to any of claims 1 to 8.
CN202110887184.8A 2021-08-03 2021-08-03 Sound effect adjusting method, device, storage medium and terminal Active CN113805681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110887184.8A CN113805681B (en) 2021-08-03 2021-08-03 Sound effect adjusting method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110887184.8A CN113805681B (en) 2021-08-03 2021-08-03 Sound effect adjusting method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN113805681A true CN113805681A (en) 2021-12-17
CN113805681B CN113805681B (en) 2024-01-26

Family

ID=78893320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110887184.8A Active CN113805681B (en) 2021-08-03 2021-08-03 Sound effect adjusting method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN113805681B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060729A (en) * 2016-06-27 2016-10-26 联想(北京)有限公司 Control method and electronic equipment
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN111373726A (en) * 2018-10-15 2020-07-03 华为技术有限公司 Parameter adjustment method and terminal for audio service
CN112965683A (en) * 2019-11-27 2021-06-15 宇龙计算机通信科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060729A (en) * 2016-06-27 2016-10-26 联想(北京)有限公司 Control method and electronic equipment
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium
CN111373726A (en) * 2018-10-15 2020-07-03 华为技术有限公司 Parameter adjustment method and terminal for audio service
CN112965683A (en) * 2019-11-27 2021-06-15 宇龙计算机通信科技(深圳)有限公司 Volume adjusting method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113805681B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
RU2657862C2 (en) Method and apparatus for reducing energy consumption in mobile electronic device
CN105487780A (en) Display method and device for control
US20080133956A1 (en) Power consumption management for functional preservation in a battery-powered electronic device
JP7100696B2 (en) Battery charging method, battery charging device and storage medium
US8320586B2 (en) System and method for reducing volume spike in an electronic device
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
US10027301B2 (en) Method and electronic device for controlling volume
KR20160075060A (en) Method for controlling function based on battery information and electronic device thereof
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN107425568B (en) Method and device for preventing over-discharge of battery, mobile terminal and storage medium
CN104393848A (en) Method and device for adjusting volume
CN107122156A (en) A kind of method for controlling volume and terminal
CN111446753A (en) Charging control method, device, equipment and storage medium
WO2022199518A1 (en) Audio signal processing method and apparatus, electronic device, and storage medium
CN104735248A (en) Temperature rise control method and device of mobile terminal
WO2023284430A1 (en) Volume adjustment method, terminal device, and computer readable storage medium
CN112585998B (en) Headset system and method for simulating audio performance of a headset model
CN109391869B (en) Earphone and ear canal judging and accessing method
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN113805681A (en) Sound effect adjusting method and device, storage medium and terminal
CN111580774A (en) Sound effect adjusting method, device, equipment and storage medium
WO2020082387A1 (en) Method for changing audio channel, and related device
CN110392878B (en) Sound control method and mobile terminal
CN108024016B (en) Volume adjusting method and device, storage medium and electronic equipment
US10721551B1 (en) Adjusting a size of headphone cushions

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