CN113613144B - Temperature compensation method, device, playing equipment and readable storage medium - Google Patents

Temperature compensation method, device, playing equipment and readable storage medium Download PDF

Info

Publication number
CN113613144B
CN113613144B CN202011176606.2A CN202011176606A CN113613144B CN 113613144 B CN113613144 B CN 113613144B CN 202011176606 A CN202011176606 A CN 202011176606A CN 113613144 B CN113613144 B CN 113613144B
Authority
CN
China
Prior art keywords
temperature
frequency
compensation
loudness
relation
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.)
Active
Application number
CN202011176606.2A
Other languages
Chinese (zh)
Other versions
CN113613144A (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.)
Shenzhen Guanping Electronics Co ltd
Shenzhen Guanxu Industrial Design Co ltd
Shenzhen Grandsun Electronics Co Ltd
Shenzhen Feikedi System Development Co Ltd
Original Assignee
Shenzhen Guanping Electronics Co ltd
Shenzhen Guanxu Industrial Design Co ltd
Shenzhen Grandsun Electronics Co Ltd
Shenzhen Feikedi System Development 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 Shenzhen Guanping Electronics Co ltd, Shenzhen Guanxu Industrial Design Co ltd, Shenzhen Grandsun Electronics Co Ltd, Shenzhen Feikedi System Development Co Ltd filed Critical Shenzhen Guanping Electronics Co ltd
Priority to CN202011176606.2A priority Critical patent/CN113613144B/en
Publication of CN113613144A publication Critical patent/CN113613144A/en
Application granted granted Critical
Publication of CN113613144B publication Critical patent/CN113613144B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/04Circuits for transducers, loudspeakers or microphones for correcting frequency response

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

The application is applicable to the technical field of audio processing, and provides a temperature compensation method, a device, a playing device and a readable storage medium, wherein the method comprises the following steps: playing a preset signal at a preset temperature to obtain a first frequency and loudness relation corresponding to the preset temperature; playing a preset signal at a first temperature, and acquiring a second frequency and loudness relation corresponding to the first temperature; calculating a frequency compensation function between a preset temperature and a first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table; and when the environment temperature is detected to meet the preset condition, performing temperature compensation on the target frequency point through a compensation relation table. When the environmental temperature change is detected to meet the preset condition, temperature compensation is carried out on the target frequency point according to the compensation relation table, so that frequency response loss caused by temperature change is avoided, audio playing quality is improved, and auditory nerves of a user are protected.

Description

Temperature compensation method, device, playing equipment and readable storage medium
Technical Field
The application belongs to the technical field of audio processing, and particularly relates to a temperature compensation method, a device, playing equipment and a readable storage medium.
Background
The problem of affecting the audio quality due to temperature changes can occur when using audio and video playback devices in different environments. I.e. in extremely cold or hot environments, the played audio is easily distorted.
Disclosure of Invention
The embodiment of the application provides a temperature compensation method, a device, playing equipment and a readable storage medium, which can solve the problem that the audio quality is affected due to temperature change.
In a first aspect, an embodiment of the present application provides a temperature compensation method, including:
playing a preset signal at a preset temperature, and acquiring a first frequency and loudness relation corresponding to the preset temperature;
playing a preset signal at a first temperature, and acquiring a second frequency and loudness relation corresponding to the first temperature;
calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table;
and when the environment temperature is detected to meet the preset condition, carrying out temperature compensation on the target frequency point through the compensation relation table.
In a second aspect, embodiments of the present application provide a temperature compensation device, including:
the first acquisition module is used for playing a preset signal at a preset temperature and acquiring a first frequency and loudness relation corresponding to the preset temperature;
the second acquisition module is used for playing a preset signal at a first temperature and acquiring a second frequency and loudness relation corresponding to the first temperature;
the calculating module is used for calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table;
and the compensation module is used for carrying out temperature compensation on the target frequency point through the compensation relation table when the environment temperature is detected to meet the preset condition.
In a third aspect, an embodiment of the present application provides a playback device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the temperature compensation method according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a temperature compensation method as in any one of the first aspects above.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to perform the temperature compensation method according to any one of the first aspects above.
The frequency compensation function between the preset temperature and the first temperature is calculated and obtained by acquiring a first frequency and loudness relation of playing the preset signal at the preset temperature and a second frequency and loudness relation of playing the preset signal at the first temperature, and a corresponding compensation relation table is established, so that when the environment temperature change is detected to meet the preset condition, the temperature compensation is carried out on the target frequency point according to the compensation relation table, the frequency response loss caused by the temperature change is avoided, the audio playing quality is improved, and the auditory nerve of a user is protected.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a temperature compensation method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of step S103 of the temperature compensation method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of step S1031 of the temperature compensation method according to an embodiment of the disclosure;
fig. 4 is a flowchart illustrating a step S1042 of a temperature compensation method according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a temperature compensation device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a playback device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The temperature compensation method provided by the embodiment of the application can be applied to terminal equipment such as Bluetooth headphones, tablet computers and notebook computers, and the specific type of the terminal equipment is not limited.
Fig. 1 shows a schematic flow chart of a temperature compensation method provided in the present application, which can be applied to the above-mentioned bluetooth headset by way of example and not limitation.
S101, playing a preset signal at a preset temperature, and acquiring a first frequency and loudness relation corresponding to the preset temperature.
In a specific application, the external temperature is adjusted to a preset temperature by a temperature adjusting device. When the external temperature is detected to be the preset temperature, playing a preset signal stored in a memory in advance through a playing end of the current player, acquiring a first frequency response curve corresponding to the preset temperature, and acquiring a relation between first frequency and loudness corresponding to the preset temperature based on the first frequency response curve.
It will be appreciated that steps S101-S103 should be performed in an audio silencing laboratory with a temperature regulation device capable of stably controlling the temperature before the compensation relation table is acquired in order to accurately regulate the external temperature while ensuring that the audio signal is not disturbed by noise.
The preset signal can be specifically set according to actual requirements. In this embodiment, the preset signal is a sinusoidal audio signal of 20-20000HZ audible to the human ear. The preset temperature is an ambient temperature at which most users use the player. The preset temperature is generally set at ambient temperature 27 ℃.
In a specific application, in order to improve the accuracy of temperature compensation, a frequency response curve of 1/6 octave of a preset signal 20-20000HZ is set, and the function relation of the corresponding obtained first frequency and loudness is f (x) =x20+x40+x80+ … +x20000; where x is the frequency, f (x) is the loudness, x20 is the loudness at 20hz of the frequency point, x40 is the loudness at 40hz of the frequency point, and so on.
S102, playing a preset signal at a first temperature, and acquiring a second frequency and loudness relation corresponding to the first temperature.
In a specific application, the external temperature is adjusted to the first temperature by an external temperature adjustment device. When the external temperature is detected to be the first temperature, playing a preset signal pre-stored in a memory through a playing end of the current player, acquiring a second frequency response curve corresponding to the first temperature, and acquiring a relation between the second frequency corresponding to the first temperature and the loudness based on the second frequency response curve.
Wherein the first temperature includes a plurality of sub-temperatures that easily cause a frequency response loss, and a difference from the preset temperature is greater than or equal to a preset threshold. The preset threshold is a threshold for measuring the change of the ambient temperature, and can be specifically set according to actual conditions.
For example, setting the preset temperature to 27 ℃ and detecting that the difference between the preset temperature and the preset temperature is greater than or equal to 10 ℃ through experiments is easy to cause frequency response loss. The preset threshold is set to 10 ℃, that is, the first temperature includes all sub-temperatures less than 17 ℃ and all sub-temperatures greater than 37 ℃.
S103, calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table.
In a specific application, according to a first frequency and loudness relation corresponding to a preset temperature and a second frequency and loudness relation corresponding to the first temperature, determining a frequency compensation function between the first temperature and the preset temperature when the loudness is the same as the preset temperature, further determining a frequency compensation multiple between the corresponding first temperature and the preset temperature, and establishing a corresponding compensation relation table according to the frequency compensation multiple. It can be understood that at any one sub-temperature, the frequency compensation multiple between the sub-temperature and the preset temperature corresponding to each frequency point in the preset signal is included, so that a two-dimensional matrix of temperature-frequency compensation multiple can be established as a corresponding compensation relation table.
And S104, when the environment temperature is detected to meet the preset condition, performing temperature compensation on the target frequency point through the compensation relation table.
In a specific application, during the use of the player, the current ambient temperature is detected in real time through a temperature sensor arranged at a playing port of the player. When the environment temperature is detected to meet the preset condition, converting a sound source file to be played in a memory into an electric signal through a singlechip in the player, acquiring a target frequency point of the sound source file, determining a frequency compensation multiple between the current environment temperature corresponding to the target frequency point and the preset temperature under the current environment temperature through inquiring a compensation relation table, and performing temperature compensation on the target frequency point according to the frequency compensation multiple (namely amplifying the electric signal through a circuit and driving a playing end to play the amplified electric signal), so that the loudness of playing the target frequency point under the current environment temperature is the same as the loudness of playing the same frequency point under the preset temperature. The preset condition is a condition for judging whether the change of the ambient temperature can cause frequency response loss. In this embodiment, the preset condition is that a difference between the ambient temperature and the preset temperature is greater than or equal to a preset threshold.
In one embodiment, the first temperature includes a plurality of sub-temperatures; the second frequency and loudness relationship includes a sub-frequency and loudness relationship corresponding to each sub-temperature.
In a specific application, the range of variation of the ambient temperature in different environments is large, so that a temperature compensation method in the ambient temperature with wide range of variation needs to be considered, and the problem that audio distortion does not occur even if a user uses a player in an extremely cold and extremely hot environment is solved. Correspondingly, a plurality of different sub-temperatures are set as the first temperature, so as to obtain a sub-frequency response curve corresponding to each sub-temperature, and further obtain a second frequency and loudness relation comprising a sub-frequency and loudness relation corresponding to each sub-temperature.
It can be understood that, in order to accurately calculate the frequency compensation multiple and improve the accuracy of temperature compensation, a frequency response curve of 1/6 octave of the preset signal 20-20000HZ at each sub-temperature should be set and obtained correspondingly to obtain each sub-frequency and loudness relation, so that all the sub-frequency and loudness relation and the first frequency and loudness relation are in a one-to-one mapping relation.
For example, setting the first temperature to include-10 ℃, 0 ℃, 10 ℃, 40 ℃, 50 ℃, 60 ℃, it is possible to obtain a sub-frequency and loudness relation corresponding to-10 ℃): f (x) =a1x20+a2x40+a3x80+ … +anx20000; obtaining a sub-frequency and loudness relation corresponding to 0 ℃): f (x) =b1x20+b2x40+b3x80+ … + bnx20000; obtaining a sub-frequency and loudness relation corresponding to 10 ℃): f (x) =c1x20+c2x40+c3x80+ … + cnx20000; obtaining a sub-frequency and loudness relation corresponding to 40 ℃): f (x) =d1x20+d2x40+d3x80+ … + dnx20000; obtaining a sub-frequency and loudness relation corresponding to 50 ℃): f (x) =e1x20+e2x40+e3x80+ … +enx20000; obtaining a sub-frequency and loudness relation corresponding to 60 ℃): f (x) =f1x20+f2x40+f3x80+ … + fnx20000.
As shown in fig. 2, in one embodiment, the step S103 includes:
s1031, calculating a frequency compensation function between the preset temperature and the sub-temperature according to the relation between the first frequency and the loudness and the relation between the sub-frequency and the loudness corresponding to any sub-temperature;
s1032, traversing all the sub-frequency and loudness relation, obtaining the frequency compensation function between the preset temperature and all the sub-temperatures, and establishing a corresponding compensation relation table.
In a specific application, any one of the sub-temperatures is taken as a target temperature, and the frequency of the target temperature with the same loudness as the preset temperature at each frequency point is determined according to the relation between the sub-frequency and the loudness corresponding to the target temperature and the relation between the first frequency and the loudness corresponding to the preset temperature. And calculating and obtaining a frequency compensation function between the target temperature and the preset temperature under each frequency point according to the frequency of the target temperature with the same loudness under each frequency point and the preset temperature. Traversing the relation between the sub-frequency and the loudness corresponding to each sub-temperature, calculating to obtain frequency compensation functions between all the sub-temperatures and preset temperatures, and establishing a compensation relation table between temperature and frequency compensation multiples according to the frequency compensation functions between all the sub-temperatures and the preset temperatures.
In one embodiment, the step S1031 includes:
s10311, determining the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point according to the relation between the first frequency and the loudness and the relation between the sub-frequency and the loudness corresponding to any sub-temperature;
s10312, calculating and obtaining a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point.
In a specific application, taking any one of the sub-temperatures as a target temperature, and determining the loudness and frequency of a preset temperature at each frequency point and the frequency of a target temperature with the same loudness as the preset temperature at the frequency point according to a first frequency and loudness relation and a sub-frequency and loudness relation corresponding to the target temperature; according to the frequency of the preset temperature at each frequency point and the frequency of the target temperature with the same loudness as the preset temperature, calculating to obtain the frequency compensation multiple between the target temperature and the preset temperature at each frequency point, and correspondingly obtaining the frequency compensation function between the target temperature and the preset temperature.
For example, the first frequency corresponding to 27 ℃ has a functional relationship f (x) =x20+x40+x80+ … +x20000; wherein x20 represents the loudness at 20 hz; the sub-frequency and loudness relationship corresponding to-10 ℃ is: f (x) =a1x20+a2x40+a3x80+ … +anx20000, wherein a1x20 represents the loudness at 20 hz; it will be appreciated that an array of equal loudness curve coefficients corresponding to-10 ℃ can be obtained based on the sub-frequency and loudness relation corresponding to-10 ℃): (a 1 … an), (i.e., an array of frequency compensation multiples between-10 ℃ and 27 ℃ corresponding to each frequency bin); wherein a1 is the frequency compensation multiple with the same loudness as 27 ℃ when the frequency point is 20hz, the frequency compensation multiple with the same loudness as 27 ℃ between-10 ℃ and 27 ℃, a2 is the frequency compensation multiple with the same loudness as 27 ℃ when the frequency point is 40hz, the frequency compensation multiple between-10 ℃ and 27 ℃ and so on.
In one embodiment, the step S104 includes:
s1041, calculating a difference value between the ambient temperature and a preset temperature;
and S1042, when the difference value is detected to be larger than or equal to a preset threshold value, carrying out temperature compensation on the target frequency point through the compensation relation table.
In a specific application, detecting the current environment temperature in real time through a temperature sensor arranged at a playing port of the player, calculating a difference value between the current environment temperature and a preset temperature, and comparing the difference value with a preset threshold value. When the difference value is detected to be larger than or equal to a preset threshold value, the situation that the ambient temperature is too large in change is judged, and frequency response loss possibly occurs, so that audio played by the player is distorted. The method comprises the steps of obtaining a target frequency point of a sound source file to be played currently, obtaining a frequency compensation multiple corresponding to the target frequency point at the current environment temperature by inquiring a compensation relation table, and carrying out temperature compensation on the target frequency point according to the frequency compensation multiple, so that the loudness of playing the target frequency point at the current environment temperature is the same as the loudness of playing the same frequency point at the preset temperature.
For example, the preset temperature is 27 ℃, and when the current environment is-10 ℃, it can be determined that the difference between the ambient temperature and the preset temperature is greater than the preset threshold. Obtaining a target frequency point of a sound source file to be played at 40hz, and inquiring an equal-loudness curve coefficient array corresponding to-10 ℃ in a compensation relation table: (a 1 … an), the frequency compensation multiple corresponding to the target frequency point 40hz at-10 ℃ in the pre-environment can be obtained as a2.
As shown in fig. 3, in one embodiment, the step S1042 includes:
s10421, inquiring the compensation relation table when the difference value is detected to be larger than or equal to a preset threshold value;
s10422, determining a frequency compensation multiple of which the target frequency point has the same loudness with the preset temperature at the ambient temperature;
s10423, performing temperature compensation on the target frequency point according to the frequency compensation multiple.
In a specific application, when detecting that the difference between the current environment temperature and the preset temperature is greater than or equal to a preset threshold value, inquiring a compensation relation table to determine that the target frequency point is compensated to a frequency compensation multiple with the same loudness as the preset temperature at the same frequency point, and performing temperature compensation on the target frequency point according to the frequency compensation multiple to realize that the loudness of playing the target frequency point at the current environment temperature is the same as the loudness of playing the same frequency point at the preset temperature.
The frequency compensation function between the preset temperature and the first temperature is calculated and obtained by acquiring a first frequency and loudness relation of playing the preset signal at the preset temperature and a second frequency and loudness relation of playing the preset signal at the first temperature, and a corresponding compensation relation table is established, so that when the environment temperature change is detected to meet the preset condition, the temperature compensation is carried out on the target frequency point according to the compensation relation table, the frequency response loss caused by the temperature change is avoided, the audio playing quality is improved, and the auditory nerve of a user is protected.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the temperature compensation method described in the above embodiments, fig. 5 shows a block diagram of the temperature compensation device 100 provided in the embodiment of the present application, and for convenience of explanation, only the portions related to the embodiment of the present application are shown.
Referring to fig. 5, the temperature compensation device 100 includes:
a first obtaining module 101, configured to play a preset signal at a preset temperature, and obtain a first frequency and loudness relation corresponding to the preset temperature;
a second obtaining module 102, configured to play a preset signal at a first temperature, and obtain a second frequency and loudness relation corresponding to the first temperature;
a calculating module 103, configured to calculate a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establish a corresponding compensation relation table;
and the compensation module 104 is configured to perform temperature compensation on the target frequency point through the compensation relation table when the detected ambient temperature meets a preset condition.
In one embodiment, the first temperature includes a plurality of sub-temperatures; the second frequency and loudness relation includes a sub-frequency and loudness relation corresponding to each sub-temperature;
the calculation module 103 includes:
a first calculating unit 1031, configured to calculate a frequency compensation function between the preset temperature and the sub-temperature according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any one of the sub-temperatures;
and the establishing unit 1032 is configured to traverse all the sub-frequencies and loudness relations, obtain the frequency compensation function between the preset temperature and all the sub-temperatures, and establish a corresponding compensation relation table.
In one embodiment, the first computing unit 1031 includes:
the determining subunit is used for determining the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any one of the sub-temperatures;
and the calculating subunit is used for calculating and obtaining a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point.
In one embodiment, the compensation module 104 includes:
a second calculation unit for calculating a difference between the ambient temperature and a preset temperature;
and the compensation unit is used for carrying out temperature compensation on the target frequency point through the compensation relation table when the difference value is detected to be larger than or equal to a preset threshold value.
In one embodiment, the compensation unit includes:
the inquiring subunit is used for inquiring the compensation relation table when the difference value is detected to be greater than or equal to a preset threshold value;
the determining subunit is used for determining the frequency compensation multiple of which the target frequency point has the same loudness with the preset temperature at the ambient temperature;
and the compensation subunit is used for carrying out temperature compensation on the target frequency point according to the frequency compensation multiple.
The frequency compensation function between the preset temperature and the first temperature is calculated and obtained by acquiring a first frequency and loudness relation of playing the preset signal at the preset temperature and a second frequency and loudness relation of playing the preset signal at the first temperature, and a corresponding compensation relation table is established, so that when the environment temperature change is detected to meet the preset condition, the temperature compensation is carried out on the target frequency point according to the compensation relation table, the frequency response loss caused by the temperature change is avoided, the audio playing quality is improved, and the auditory nerve of a user is protected.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
Fig. 6 is a schematic structural diagram of a playback device according to an embodiment of the present application. As shown in fig. 6, the playback device 6 of this embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various temperature compensation method embodiments described above when executing the computer program 62.
The playing device 6 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The playback device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of a playback device 6 and is not intended to limit the playback device 6, and may include more or fewer components than shown, or may combine certain components, or may include different components, such as input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the playback device 6, such as a hard disk or a memory of the playback device 6. The memory 61 may in other embodiments also be an external storage device of the playback device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card) or the like, which are provided on the playback device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the playback device 6. The memory 61 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. A method of temperature compensation, comprising:
playing a preset signal at a preset temperature, and acquiring a first frequency and loudness relation corresponding to the preset temperature;
playing a preset signal at a first temperature, and acquiring a second frequency and loudness relation corresponding to the first temperature;
calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table; establishing a two-dimensional matrix of temperature-frequency compensation multiples as a corresponding compensation relation;
when the environment temperature is detected to meet the preset condition, performing temperature compensation on the target frequency point through the compensation relation table;
when the detected ambient temperature meets the preset condition, performing temperature compensation on the target frequency point through the compensation relation table, including:
calculating a difference between the ambient temperature and a preset temperature;
when the difference value is detected to be larger than or equal to a preset threshold value, performing temperature compensation on the target frequency point through the compensation relation table;
and when the difference value is detected to be greater than or equal to a preset threshold value, performing temperature compensation on the target frequency point through the compensation relation table, including:
inquiring the compensation relation table when the difference value is detected to be larger than or equal to a preset threshold value;
determining a frequency compensation multiple of which the target frequency point has the same loudness with the preset temperature at the ambient temperature;
and carrying out temperature compensation on the target frequency point according to the frequency compensation multiple.
2. The temperature compensation method of claim 1, wherein the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relation includes a sub-frequency and loudness relation corresponding to each sub-temperature;
according to the first frequency and loudness relation and the second frequency and loudness relation, calculating a frequency compensation function between the preset temperature and the first temperature, and establishing a corresponding compensation relation table, wherein the frequency compensation function comprises:
calculating a frequency compensation function between the preset temperature and the sub-temperature according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any sub-temperature;
traversing all the sub-frequency and loudness relation formulas, obtaining a frequency compensation function between the preset temperature and all the sub-temperatures, and establishing a corresponding compensation relation table.
3. A temperature compensation method according to claim 2, wherein said calculating a frequency compensation function between said preset temperature and said sub-temperature based on said first frequency and loudness relation and a sub-frequency and loudness relation corresponding to any one of the sub-temperatures comprises:
determining the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any sub-temperature;
and calculating and obtaining a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point.
4. A temperature compensation device, comprising:
the first acquisition module is used for playing a preset signal at a preset temperature and acquiring a first frequency and loudness relation corresponding to the preset temperature;
the second acquisition module is used for playing a preset signal at a first temperature and acquiring a second frequency and loudness relation corresponding to the first temperature;
the calculating module is used for calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relation and the second frequency and loudness relation, and establishing a corresponding compensation relation table; establishing a two-dimensional matrix of temperature-frequency compensation multiples as a corresponding compensation relation;
the compensation module is used for carrying out temperature compensation on the target frequency point through the compensation relation table when the environment temperature is detected to meet the preset condition;
the compensation module comprises:
a second calculation unit for calculating a difference between the ambient temperature and a preset temperature;
the compensation unit is used for carrying out temperature compensation on the target frequency point through the compensation relation table when the difference value is detected to be larger than or equal to a preset threshold value;
the compensation unit includes:
the inquiring subunit is used for inquiring the compensation relation table when the difference value is detected to be greater than or equal to a preset threshold value;
the determining subunit is used for determining the frequency compensation multiple of which the target frequency point has the same loudness with the preset temperature at the ambient temperature;
and the compensation subunit is used for carrying out temperature compensation on the target frequency point according to the frequency compensation multiple.
5. The temperature compensation device of claim 4, wherein the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relation includes a sub-frequency and loudness relation corresponding to each sub-temperature;
the computing module comprises:
the first calculating unit is used for calculating a frequency compensation function between the preset temperature and the sub-temperature according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any one of the sub-temperatures;
the establishing unit is used for traversing all the sub-frequency and loudness relation formulas, obtaining the frequency compensation function between the preset temperature and all the sub-temperatures, and establishing a corresponding compensation relation table.
6. The temperature compensation device of claim 5, wherein the first computing unit comprises:
the determining unit is used for determining the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point according to the first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any one of the sub-temperatures;
and the calculating subunit is used for calculating and obtaining a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness as the preset temperature at each frequency point.
7. A playback device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
8. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 3.
CN202011176606.2A 2020-10-28 2020-10-28 Temperature compensation method, device, playing equipment and readable storage medium Active CN113613144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176606.2A CN113613144B (en) 2020-10-28 2020-10-28 Temperature compensation method, device, playing equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176606.2A CN113613144B (en) 2020-10-28 2020-10-28 Temperature compensation method, device, playing equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113613144A CN113613144A (en) 2021-11-05
CN113613144B true CN113613144B (en) 2024-01-12

Family

ID=78303183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176606.2A Active CN113613144B (en) 2020-10-28 2020-10-28 Temperature compensation method, device, playing equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113613144B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114388418B (en) * 2021-12-28 2022-12-13 凌波微步半导体设备(常熟)有限公司 Closed loop position compensation method and system of semiconductor wire bonding machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554629A (en) * 2015-12-17 2016-05-04 歌尔声学股份有限公司 Method and system for audio fidelity of loudspeaker
CN111225318A (en) * 2018-11-23 2020-06-02 北京小米移动软件有限公司 Audio adjusting method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2540199A (en) * 2015-07-09 2017-01-11 Nokia Technologies Oy An apparatus, method and computer program for providing sound reproduction

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554629A (en) * 2015-12-17 2016-05-04 歌尔声学股份有限公司 Method and system for audio fidelity of loudspeaker
CN111225318A (en) * 2018-11-23 2020-06-02 北京小米移动软件有限公司 Audio adjusting method and device and electronic equipment

Also Published As

Publication number Publication date
CN113613144A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
EP3373283A2 (en) Method and apparatus for adjusting backlight brightness of screen, and mobile terminal
US10284943B2 (en) Method and apparatus for adjusting sound field of an earphone and a terminal
CN109887522B (en) Microphone array gain adjusting method and device and terminal equipment
CN110308888B (en) Volume control method, electronic equipment and computer readable storage medium
US20060147059A1 (en) Smart volume adjusting method for a multi-media system
CN110809214A (en) Audio playing method, audio playing device and terminal equipment
CN112703781B (en) Wireless signal sending method, wireless signal sending device and terminal equipment
CN108600898B (en) Method for configuring wireless sound box, wireless sound box and terminal equipment
CN108263075B (en) Screen fine adjustment method and device, terminal equipment and readable storage medium
CN109348399B (en) Terminal and control method of stereo sound effect thereof
CN113613144B (en) Temperature compensation method, device, playing equipment and readable storage medium
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN111083289A (en) Audio playing method and device, storage medium and mobile terminal
CN103929692B (en) Audio information processing method and electronic equipment
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN108513206B (en) Sound system control method and device, terminal equipment and storage medium
CN108432216B (en) Volume adjustment method and device and electronic equipment
CN110611862A (en) Microphone gain adjusting method, device, system and storage medium
CN113613123B (en) Audio data processing method and device, earphone and storage medium
CN114879929A (en) Multimedia file playing method and device
CN106601268A (en) Multimedia data processing method and device
CN113613122B (en) Volume adjusting method, volume adjusting device, earphone and storage medium
CN111262538A (en) Audio signal gain adjustment method and device, terminal equipment and audio system
CN113543006B (en) Earphone testing method and device, electronic equipment and medium
CN115348656A (en) MiFi device, power adjusting method thereof, electronic device and system

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