Temperature compensation method and device, playing device and readable storage medium

文档序号:1802618 发布日期:2021-11-05 浏览:26次 中文

阅读说明:本技术 温度补偿方法、装置、播放设备及可读存储介质 (Temperature compensation method and device, playing device and readable storage medium ) 是由 张清雪 郭世文 吴海全 彭久高 于 2020-10-28 设计创作,主要内容包括:本申请适用于音频处理技术领域,提供了温度补偿方法、装置、播放设备及可读存储介质,方法包括:在预设温度下播放预设信号,获取与预设温度对应的第一频率和响度关系式;在第一温度下播放预设信号,获取与第一温度对应的第二频率和响度关系式;根据第一频率和响度关系式和第二频率和响度关系式,计算预设温度和第一温度之间的频率补偿函数,并建立对应的补偿关系表;在检测到环境温度满足预设条件时,通过补偿关系表对目标频点进行温度补偿。预先建立预设温度和第一温度之间的补偿关系表,在检测到环境温度变化满足预设条件时,根据补偿关系表对目标频点进行温度补偿,避免了因温度变化导致的频响损失,提高音频播放质量,保护用户的听觉神经。(The application is applicable to the technical field of audio processing, and provides a temperature compensation method, a temperature compensation device, a playing device and a readable storage medium, wherein the method comprises the following steps: 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 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 the compensation relation table. The method comprises the steps of establishing a compensation relation table between a preset temperature and a first temperature in advance, and carrying out temperature compensation on a target frequency point according to the compensation relation table when the ambient temperature change is detected to meet a preset condition, so that 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.)

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;

and when the environment temperature is detected to meet the preset condition, performing temperature compensation on the target frequency point through the compensation relation table.

2. The temperature compensation method of claim 1, wherein the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relationship comprises a sub-frequency and loudness relationship corresponding to each sub-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, wherein the method comprises the following steps:

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;

and traversing all the sub-frequency and loudness relational expressions, obtaining a frequency compensation function between the preset temperature and all the sub-temperatures, and establishing a corresponding compensation relational table.

3. The method of temperature compensation according to claim 2, wherein said calculating a frequency compensation function between said preset temperature and said sub-temperature according to said first frequency and loudness relation and a sub-frequency and loudness relation corresponding to any one sub-temperature 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 to obtain a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness with the preset temperature at each frequency point.

4. The method of claim 1, wherein when it is detected that the ambient temperature satisfies a preset condition, performing temperature compensation on the target frequency point through the compensation relation table includes:

calculating a difference between the ambient temperature and a preset temperature;

and 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.

5. The method according to claim 4, wherein the performing temperature compensation on the target frequency point through the compensation relation table when detecting that the difference is greater than or equal to a preset threshold value includes:

when the difference value is detected to be larger than or equal to a preset threshold value, inquiring the compensation relation table;

determining a frequency compensation multiple of the target frequency point with the same loudness as the preset temperature at the ambient temperature;

and performing temperature compensation on the target frequency point according to the frequency compensation multiple.

6. A temperature compensation device, comprising:

the first obtaining module is used for playing a preset signal at a preset temperature and obtaining 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 calculation module is used for calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relational expression and the second frequency and loudness relational expression and establishing a corresponding compensation relational 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.

7. The temperature compensation apparatus of claim 6, wherein the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relationship comprises a sub-frequency and loudness relationship corresponding to each sub-temperature;

the calculation 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 sub-temperature;

and the establishing unit is used for traversing all the sub-frequency and loudness relational expressions, obtaining a frequency compensation function between the preset temperature and all the sub-temperatures and establishing a corresponding compensation relational table.

8. The temperature compensation apparatus of claim 7, wherein the first calculation 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 sub-temperature;

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 with the preset temperature at each frequency point.

9. 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 5 when executing the computer program.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.

Technical Field

The present application belongs to the technical field of audio processing, and in particular, to a temperature compensation method, apparatus, playing device and readable storage medium.

Background

When the audio and video playing device is used in different environments, the problem that the audio quality is influenced by temperature changes can occur. That is, in an extremely cold or hot environment, the played audio is easily distorted.

Disclosure of Invention

The embodiment of the application provides a temperature compensation method, a temperature compensation device, a playing device and a readable storage medium, and can solve the problem that 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, performing temperature compensation on the target frequency point through the compensation relation table.

In a second aspect, an embodiment of the present application provides a temperature compensation apparatus, including:

the first obtaining module is used for playing a preset signal at a preset temperature and obtaining 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 calculation module is used for calculating a frequency compensation function between the preset temperature and the first temperature according to the first frequency and loudness relational expression and the second frequency and loudness relational expression and establishing a corresponding compensation relational 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 aspect when executing the computer program.

In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the temperature compensation method according to any one of the first aspect.

In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the temperature compensation method according to any one of the first aspect.

The method comprises the steps of calculating and obtaining a frequency compensation function between a preset temperature and a first temperature by obtaining a first frequency and loudness relational expression for playing a preset signal at the preset temperature and a second frequency and loudness relational expression for playing the preset signal at the first temperature, and establishing a corresponding compensation relational table so as to perform temperature compensation on a target frequency point according to the compensation relational table when detecting that the change of the ambient temperature meets a preset condition, thereby avoiding frequency response loss caused by the change of the temperature, improving the audio playing quality and protecting the auditory nerve of a user.

It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a schematic flow chart of a temperature compensation method according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of step S103 of a temperature compensation method according to an embodiment of the present application;

fig. 3 is a schematic flowchart of step S1031 of a temperature compensation method according to an embodiment of the present application;

fig. 4 is a flowchart illustrating step S1042 of the temperature compensation method according to an embodiment of the disclosure;

FIG. 5 is a schematic structural diagram of a temperature compensation device according to an embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of a play-end device provided in 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 structures, 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 will 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 and includes any and all possible combinations of one or more of the associated listed items.

Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.

Reference throughout this 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 present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated 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 a Bluetooth headset, a tablet computer and a notebook computer, and the embodiment of the application does not limit the specific type of the terminal equipment.

Fig. 1 shows a schematic flow chart of a temperature compensation method provided by the present application, which may 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, a preset signal stored in a memory in advance is played through a playing end of the current player, a first frequency response curve corresponding to the preset temperature is obtained, and a relation between first frequency and loudness corresponding to the preset temperature is obtained based on the first frequency response curve.

It can be understood that, for accurately adjusting the external temperature and simultaneously ensuring that the audio signal is not interfered by noise, the steps S101 to S103 should be performed in an audio silencing lab having a temperature adjusting device capable of stably controlling the temperature before the compensation relation table is obtained.

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 the ambient temperature at which most users use the player. The predetermined temperature is generally set to a normal temperature of 27 ℃.

In a specific application, in order to improve the accuracy of temperature compensation, a frequency response curve of 1/6 octaves of a preset signal 20-20000HZ is set, and a function relationship of a first frequency and loudness is correspondingly obtained as f (x) ═ x20+ x40+ x80+ … + x 20000; wherein x is frequency, f (x) is loudness, x20 represents loudness when frequency point is 20hz, x40 represents loudness when frequency point is 40hz, 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 which is stored in a memory in advance through a playing end of the current player to obtain a second frequency response curve corresponding to the first temperature, and obtaining a relational expression of second frequency and loudness corresponding to the first temperature based on the second frequency response curve.

The first temperature comprises a plurality of sub-temperatures which are easy to cause frequency response loss and have a difference value larger than or equal to a preset threshold value with a preset temperature. The preset threshold is a threshold for measuring the change of the environmental temperature, and can be specifically set according to the actual situation.

For example, when the preset temperature is set to 27 ℃, and the difference between the preset temperature and the preset temperature is detected to be greater than or equal to 10 ℃ through experiments, frequency response loss is easily caused. The preset threshold is set to 10 ℃, i.e. 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 relational expression and the second frequency and loudness relational expression, and establishing a corresponding compensation relational table.

In specific application, according to a first frequency and loudness relational expression corresponding to a preset temperature and a second frequency and loudness relational expression corresponding to the first temperature, a frequency compensation function between the first temperature and the preset temperature when the loudness is the same as the preset temperature is determined, further, a frequency compensation multiple between the corresponding first temperature and the preset temperature is determined, and a corresponding compensation relational table is established according to the frequency compensation multiple. It can be understood that, at any sub-temperature, the frequency compensation multiple corresponding to each frequency point in the preset signal between the sub-temperature and the preset temperature is included, so that a two-dimensional matrix of the temperature-frequency compensation multiple can be established as a corresponding compensation relation table.

And S104, when the ambient 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, the sound source file to be played in the memory is converted into an electric signal through the single chip microcomputer in the player, the target frequency point of the sound source file is obtained, the frequency compensation multiple between the current environment temperature corresponding to the target frequency point and the preset temperature at the current environment temperature is determined through inquiring the compensation relation table, temperature compensation is carried out on the target frequency point according to the frequency compensation multiple (namely the electric signal is amplified through the circuit, and the playing end is driven to play the amplified electric signal), and 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 preset condition is a condition for judging whether the change of the environmental temperature can cause frequency response loss or not. In this embodiment, the preset condition is that the difference between the ambient temperature and the preset temperature is greater than or equal to a preset threshold.

In one embodiment, the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relationship includes a sub-frequency and loudness relationship corresponding to each sub-temperature.

In specific application, the variation range of the environmental temperature under different environments is large, so that a temperature compensation method under the environmental temperature with large variation needs to be considered, and the problem of audio distortion cannot occur even if a user uses the player under an extremely cold and extremely hot environment. Correspondingly, a plurality of different sub-temperatures are set as the first temperature to obtain a sub-frequency response curve corresponding to each sub-temperature, and further obtain a second frequency and loudness relational expression including the sub-frequency and loudness relational expression corresponding to each sub-temperature.

It can be understood that, for accurately calculating the frequency compensation multiple and improving the accuracy of temperature compensation, a 1/6 octave frequency response curve for obtaining the preset signal 20-20000HZ at each sub-temperature should be set, and each sub-frequency and loudness relation is obtained correspondingly, so that all sub-frequency and loudness relations and the first frequency and loudness relation are in a one-to-one mapping relation.

For example, the first temperature is set to include-10 ℃, 0 ℃, 10 ℃, 40 ℃, 50 ℃, 60 ℃, and therefore, the relationship of sub-frequency and loudness corresponding to-10 ℃ can be obtained: (x) a1x20+ a2x40+ a3x80+ … + anx 20000; obtaining the relationship of sub-frequency and loudness corresponding to 0 ℃: (x) b1x20+ b2x40+ b3x80+ … + bnx 20000; obtaining a relationship of sub-frequency and loudness corresponding to 10 ℃: (x) c1x20+ c2x40+ c3x80+ … + cnx 20000; obtaining a relationship of sub-frequency and loudness corresponding to 40 ℃: (x) d1x20+ d2x40+ d3x80+ … + dnx 20000; obtaining a relationship of sub-frequency and loudness corresponding to 50 ℃: (x) e1x20+ e2x40+ e3x80+ … + enx 20000; obtaining the relationship of sub-frequency and loudness corresponding to 60 ℃: f (x) f1x20+ f2x40+ f3x80+ … + fnx 20000.

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 first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any sub-temperature;

s1032, traversing all the sub-frequency and loudness relational expressions, obtaining a frequency compensation function between the preset temperature and all the sub-temperatures, and establishing a corresponding compensation relational table.

In specific application, any sub-temperature 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 sub-frequency and loudness relational expression corresponding to the target temperature and the first frequency and loudness relational expression corresponding to the preset temperature. And calculating to obtain a frequency compensation function between the target temperature and the preset temperature at each frequency point according to the frequency of the target temperature with the same loudness with the preset temperature at each frequency point. Traversing the relationship of the sub-frequency and the loudness corresponding to each sub-temperature, calculating to obtain the frequency compensation function between all the sub-temperatures and the preset temperature, and establishing a compensation relationship table between the temperature and the frequency compensation multiple according to the frequency compensation function between all the sub-temperatures and the preset temperature.

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 first frequency and loudness relation and the sub-frequency and loudness relation corresponding to any sub-temperature;

and S10312, calculating to obtain a frequency compensation function between the sub-temperature and the preset temperature according to the frequency of the sub-temperature with the same loudness with the preset temperature at each frequency point.

In specific application, determining the loudness and frequency of preset temperature at each frequency point and the frequency of target temperature with the same loudness at the frequency point and the preset temperature according to a first frequency and loudness relation and a sub-frequency and loudness relation corresponding to the target temperature by taking any sub-temperature as the target temperature; and calculating to obtain a frequency compensation multiple between the target temperature and the preset temperature at each frequency point 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, and correspondingly obtaining a frequency compensation function between the target temperature and the preset temperature.

For example, the functional relationship of the first frequency and loudness corresponding to 27 ℃ is f (x) ═ x20+ x40+ x80+ … + x 20000; wherein x20 represents the loudness at 20 hz; the relationship between sub-frequency and loudness corresponding to-10 ℃ is: (x) a1x20+ a2x40+ a3x80+ … + anx20000, where a1x20 represents the loudness at a frequency point of 20 hz; it will be appreciated that based on the relationship of sub-frequency and loudness corresponding to-10 ℃, an array of equal loudness curve coefficients corresponding to-10 ℃ can be obtained: (a1 … an), (i.e., an array of frequency compensation factors between-10 ℃ and 27 ℃ corresponding to each frequency bin); wherein, a1 is the frequency compensation multiple between-10 ℃ and 27 ℃ with the same loudness as 27 ℃ when the frequency point is 20hz, a2 is the frequency compensation multiple between-10 ℃ and 27 ℃ with the same loudness as 27 ℃ when the frequency point is 40hz, and the like.

In one embodiment, the step S104 includes:

s1041, calculating a difference value between the environment temperature and a preset temperature;

and S1042, 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.

In specific application, the current environment temperature is detected in real time through a temperature sensor arranged at a playing port of the player, the difference between the current environment temperature and the preset temperature is calculated, and the magnitude relation between the difference and the preset threshold is compared. When the difference is detected to be greater than or equal to the preset threshold, it is determined that the environmental temperature changes too much, and frequency response loss may occur, resulting in distortion of the audio played by the player. The method comprises the steps of obtaining a target frequency point of a sound source file to be played at present, obtaining a frequency compensation multiple corresponding to the target frequency point at present ambient temperature by inquiring a compensation relation table, and performing temperature compensation on the target frequency point according to the frequency compensation multiple, so that the loudness of playing the target frequency point at present ambient temperature is the same as the loudness of playing the same frequency point at preset temperature.

For example, when the preset temperature is 27 ℃, and 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. Acquiring a target frequency point of a sound source file to be played as 40hz, and inquiring an equal loudness curve coefficient array corresponding to-10 ℃ in a compensation relation table: (a1 … an), correspondingly, the frequency compensation multiple corresponding to the target frequency point 40hz when the front environment is-10 ℃ is a 2.

As shown in fig. 3, in an 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 that the target frequency point has the same loudness with the preset temperature at the ambient temperature;

and S10423, performing temperature compensation on the target frequency point according to the frequency compensation multiple.

In specific application, when the difference value between the current environment temperature and the preset temperature is detected to be larger than or equal to the preset threshold value, the compensation relation table is inquired to determine that the target frequency point is compensated to the frequency compensation multiple with the same loudness as the preset temperature at the same frequency point at the current environment temperature, and the temperature compensation is carried out 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.

The method comprises the steps of calculating and obtaining a frequency compensation function between a preset temperature and a first temperature by obtaining a first frequency and loudness relational expression for playing a preset signal at the preset temperature and a second frequency and loudness relational expression for playing the preset signal at the first temperature, and establishing a corresponding compensation relational table so as to perform temperature compensation on a target frequency point according to the compensation relational table when detecting that the change of the ambient temperature meets a preset condition, thereby avoiding frequency response loss caused by the change of the temperature, improving the audio playing quality and protecting the auditory nerve of a user.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

Fig. 5 shows a block diagram of a temperature compensation device 100 provided in an embodiment of the present application, corresponding to the temperature compensation method described in the above embodiment, and only shows a part related to the embodiment of the present application for convenience of description.

Referring to fig. 5, the temperature compensation device 100 includes:

the first obtaining module 101 is configured to play a preset signal at a preset temperature, and obtain a first frequency and loudness relation corresponding to the preset temperature;

the second obtaining module 102 is 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 it is detected that the ambient temperature meets a preset condition.

In one embodiment, the first temperature comprises a plurality of sub-temperatures; the second frequency and loudness relationship comprises a sub-frequency and loudness relationship 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 a sub-frequency and loudness relation corresponding to any one of the sub-temperatures;

the establishing unit 1032 is configured to traverse all the sub-frequency and loudness relations, obtain a 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 sub-temperature;

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 with 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 performing temperature compensation on the target frequency point through the compensation relation table when the difference value is detected to be greater 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 a frequency compensation multiple of the target frequency point, which 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 method comprises the steps of calculating and obtaining a frequency compensation function between a preset temperature and a first temperature by obtaining a first frequency and loudness relational expression for playing a preset signal at the preset temperature and a second frequency and loudness relational expression for playing the preset signal at the first temperature, and establishing a corresponding compensation relational table so as to perform temperature compensation on a target frequency point according to the compensation relational table when detecting that the change of the ambient temperature meets a preset condition, thereby avoiding frequency response loss caused by the change of the temperature, improving the audio playing quality and protecting the auditory nerve of a user.

It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.

Fig. 6 is a schematic structural diagram of a playing 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 desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The playback device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is only an example of the playing device 6, and does not constitute a limitation to the playing device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, and the like.

The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. 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 also be an external storage device of the playback device 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are equipped on the playback device 6. Further, the memory 61 may also include both an internal storage unit of the playback device 6 and an external storage device. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store 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-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of 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 processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.

The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.

The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an 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 apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.

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 implementation. 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 ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or 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 through some interfaces, devices or units, and may be in an electrical, mechanical 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.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:降噪处理方法及相关装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!