CN113076075A - Audio signal adjusting method and device, terminal and storage medium - Google Patents

Audio signal adjusting method and device, terminal and storage medium Download PDF

Info

Publication number
CN113076075A
CN113076075A CN202010004944.1A CN202010004944A CN113076075A CN 113076075 A CN113076075 A CN 113076075A CN 202010004944 A CN202010004944 A CN 202010004944A CN 113076075 A CN113076075 A CN 113076075A
Authority
CN
China
Prior art keywords
frequency response
audio
audio signal
module
parameter
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.)
Pending
Application number
CN202010004944.1A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010004944.1A priority Critical patent/CN113076075A/en
Publication of CN113076075A publication Critical patent/CN113076075A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The disclosure relates to an audio signal adjusting method, an audio signal adjusting device, a terminal and a storage medium, which are applied to a mobile terminal, wherein the method comprises the following steps: determining standard frequency response parameters of the audio module; adjusting the environmental frequency response parameters of the audio module in the target environment according to the target environment; comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result; adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter; and outputting the audio signal by using the output frequency response parameter. According to the audio playing method and device, the standard frequency response parameters can be adjusted to obtain the output frequency response parameters based on the comparison result of the standard frequency response parameters and the environmental frequency response parameters, the influence of the environment on the frequency response of the audio module can be corrected by using the audio signals output by the output frequency response parameters, and the audio playing effect of the audio module is improved.

Description

Audio signal adjusting method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an audio signal adjusting method and apparatus, a mobile terminal, and a storage medium.
Background
With the development of electronic technology, more and more terminals have audio modules for audio playing, such as mobile phones, tablet computers, and the like. After the audio module plays audio, the audio effect played is different from the audio effect of the sound source in the audio module due to the influence of various factors, so how to improve the audio playing effect becomes a technical problem that needs to be solved urgently.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an audio signal adjusting method, an audio signal adjusting device, a mobile terminal, and a storage medium, where the technical solution is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an audio signal adjusting method for a mobile terminal, including:
determining standard frequency response parameters of the audio module;
determining an environmental frequency response parameter of the audio module in a target environment according to the target environment;
comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
and outputting the audio signal by using the output frequency response parameter.
Optionally, the determining, according to the target environment, an environmental frequency response parameter of the audio module in the environment includes:
outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio is an audio signal comprising the standard frequency response parameters of the audio module;
acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the environmental effect;
and determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
Optionally, the adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter includes:
determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to the comparison result;
and compensating or filtering the standard frequency response parameters of the audio module on the different frequency bands by adopting a band-pass filter to obtain the output frequency response parameters.
Optionally, the standard frequency response parameters corresponding to different standard environments are different.
Optionally, the determining, according to a target environment, an environmental frequency response parameter of the audio module in the target environment includes:
determining an environmental parameter of the target environment according to the target environment; wherein the environmental parameters include: material parameters and/or structural parameters of a target object of the environment;
and determining the environmental frequency response parameters according to the environmental parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting an audio signal, for a mobile terminal, including:
the first determining module is configured to determine standard frequency response parameters of the audio module;
the second determining module is configured to determine an environmental frequency response parameter of the audio module in a target environment according to the target environment;
the comparison module is configured to compare the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
the adjusting module is configured to adjust the standard frequency response parameter of the audio module according to the comparison result so as to obtain an output frequency response parameter;
a first output module configured to output an audio signal using the output frequency response parameter.
Optionally, the second determining module is further configured to:
outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio signal is an audio signal comprising the standard frequency response parameters of the audio module;
acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the target environment;
and determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
Optionally, the adjusting module is further configured to:
determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to a comparison result;
and compensating or filtering the standard frequency response parameters of the audio module on the different frequency bands by adopting a band-pass filter to obtain the output frequency response parameters.
Optionally, the standard frequency response parameters corresponding to different standard environments are different.
Optionally, the second determining module is further configured to:
determining an environmental parameter of the target environment according to the target environment; wherein the environmental parameters include: material parameters and/or structural parameters of a target object of the environment;
and determining the environmental frequency response parameters according to the environmental parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided a mobile terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining standard frequency response parameters of the audio module;
determining an environmental frequency response parameter of the audio module in a target environment according to the target environment;
comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
and outputting the audio signal by using the output frequency response parameter.
In a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, where instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the steps of implementing any of the above-mentioned audio signal adjusting methods.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the audio module can receive the influence of environment to the audio parameter of the audio signal of audio module output at the external process of playing, for example, the environment can produce the influence to the frequency response parameter of audio module, for example the environment probably absorbs more sound intensity on some frequency points of audio signal, also probably can amplify sound intensity on some frequency points. Therefore, in the audio playing process, the audio parameters of the played audio signal are far from the audio parameters of the audio signal in the sound source; and in different play-out environments, the influence of the environment on the audio parameters is different, so that the audio play-out effect is unstable.
The method comprises the steps of determining standard frequency response parameters of an audio module; determining an environmental frequency response parameter of the audio module in a target environment according to the target environment; comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result; adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter; and outputting the audio signal by using the output frequency response parameter. That is to say, this disclosure can adjust the standard frequency response parameter of the audio module by comparing the comparison result of the standard frequency response parameter and the environmental frequency response parameter, thereby obtaining the output frequency response parameter, for example, for some frequency points where the environment absorbs the sound intensity, adjust by increasing the sound intensity of these frequency points, for some frequency points where the environment can enhance the sound intensity, adjust by attenuating the sound intensity of these frequency points, so as to correct the influence of the environment on the standard frequency response parameter of the audio module. Therefore, the audio parameters of the audio signal output by the audio module in the target environment are the same as or similar to the audio parameters of the audio signal of the sound source standard, wherein the audio signal output by the audio module in the target environment is generated by the audio signal output by the audio module based on the adjusted output frequency response parameter through the environment. And then make the audio frequency module can both maintain stable external playing effect in any environment, promoted user's sense of hearing and experienced, finally promoted the user who has the terminal of this audio frequency module.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flow chart illustrating a method of adjusting an audio signal according to an exemplary embodiment;
FIG. 2 is another flow chart illustrating a method of adjusting an audio signal according to an exemplary embodiment;
FIG. 3 is a graph of frequency response of an adjustment method for an audio signal according to an exemplary embodiment;
fig. 4 is a block diagram illustrating an apparatus for adjusting an audio signal according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The audio signal processing method is provided for correcting the influence of the environment on the standard frequency response parameters of the audio module, improving the stability of the audio playing effect of the audio module and improving the auditory perception of a user.
The method is applied to a terminal, wherein the terminal can be a mobile terminal, a desktop computer, intelligent household equipment and the like; the mobile terminal can be a mobile phone, a tablet computer or a notebook computer; the intelligent household equipment can be a television and the like. It will be appreciated that the method can be applied to any terminal having an audio module.
Fig. 1 is a flow chart illustrating a method of adjusting an audio signal according to an exemplary embodiment, the method comprising the steps of, as shown in fig. 1:
step 101: determining standard frequency response parameters of the audio module;
step 102: determining an environmental frequency response parameter of the audio module in a target environment according to the target environment;
step 103: comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
step 104: adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
step 105: and outputting the audio signal by using the output frequency response parameter.
It can be understood that the target environment includes information about an influence factor that the target environment can have on the audio signal, and therefore, the target environment can influence the standard frequency response parameter of the audio module.
Here, the frequency response is used electronically to describe the difference in the processing power of an instrument for signals of different frequencies. Like distortion, frequency response is a very important parameter indicator. The frequency response is also called a frequency response curve, and refers to a variation curve of the gain along with the frequency. Any sound equipment or carrier (object recording the sound signal) has its own frequency response curve. The sound intensity can be seen to increase or decrease with the change of frequency through the frequency response curve. The frequency response parameter may include at least one of: frequency generation range of the frequency response, coefficient of sound intensity increase or decrease with frequency. And the frequency response parameter can be used for describing a frequency response curve corresponding to the frequency response. In the embodiments of the present disclosure, the frequency response parameter may be simply referred to as a frequency response parameter.
Because any environment can affect the audio parameters of the audio signals played by the audio module, for example, the pre-calibrated standard frequency response parameters of the audio module, based on the comparison result of the standard frequency response parameters and the environmental frequency response parameters, the standard frequency response parameters of the audio module can be adjusted to obtain the output frequency response parameters, and the audio signals are output by the output frequency response parameters, so that the influence of the current environment on the audio parameters of the sound source is at least corrected, that is, the influence of the current environment on the standard frequency response parameters of the audio module is corrected. For example, assuming that the sound intensity attenuation of the current environment to the frequency point a is 0.1dB, the sound intensity of the audio module at the frequency point a is adjusted, for example, the sound intensity is increased by 0.1dB at the frequency point a, so that the attenuation of the environment to the sound intensity of the frequency point a can be corrected, so that the standard frequency response parameter of the audio module is adjusted based on the current environment parameter to obtain the output frequency response parameter, and then the audio signal is output by using the output frequency response parameter, thereby realizing the correction of the influence of the audio parameter to the sound source under the current environment, enabling the audio module to maintain a stable external playing effect in any environment, improving the auditory perception of the user, and finally improving the user experience of the terminal with the audio module.
Based on this, it is understood that the environmental frequency response parameters may include frequency response parameters of the target environment to different frequencies. The frequency response parameters of the target environment to the different frequencies can at least characterize the degree of influence of the target environment on the sound intensity at the different frequencies of the audio signal.
In some embodiments, referring to fig. 2, fig. 2 is another flowchart illustrating an audio signal adjusting method according to an exemplary embodiment, where as shown in fig. 2, the determining an environmental frequency response parameter of the audio module in the target environment according to the target environment may include:
step 1021: outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio signal is an audio signal comprising the standard frequency response parameters of an audio module;
step 1022: acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the target environment;
step 1023: and determining an environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
In this embodiment, an environmental frequency response parameter is obtained by using the first test audio signal, where the environmental frequency response parameter is a frequency response parameter of an environment, so that the degree of influence of the environment on the sound intensity of the audio signal at different frequencies can be determined, and then the standard frequency response parameter of the audio module is adjusted according to a comparison result between the environmental frequency response parameter and the standard frequency response parameter.
The environmental frequency response parameters are obtained by real-time testing based on the target environment of the audio module, so that the influence of the target environment of the audio module on the frequency response of the audio signal can be accurately determined, the standard frequency response parameters of the audio module can be more accurately adjusted, and more accurate output frequency response parameters capable of correcting the environmental influence can be obtained.
In another embodiment, the outputting, with the audio module, a first test audio signal in the target environment includes: and outputting a first test audio signal in the target environment according to a preset time interval by using an audio module. Here, the predetermined time interval may be one day, one week, one month, or the like. It can be understood that, because influences such as weather, temperature, the environment may have changes, in order to more accurate adjustment the standard frequency response parameter of audio frequency module, this embodiment outputs first test audio signal according to predetermined time interval, obtains an environmental frequency response parameter of this target environment that corresponds at different time points, thereby adjusts according to the environmental frequency response parameter of the corresponding environment of different time points the standard frequency response parameter of audio frequency module, makes the adjustment result to the standard frequency response parameter of audio frequency module more accurate, thereby makes the output frequency response parameter that obtains also more accurate.
It is understood that, here, the standard frequency response parameter is a relevant parameter for the frequency response of the audio module outputting the audio signal without the environmental absorption; and the environmental frequency response parameters are related parameters of the frequency response of the audio frequency after the output audio signal of the audio frequency module is absorbed by the environment.
Comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result; and adjusting the standard frequency response parameters of the audio module according to the comparison result to obtain output frequency response parameters.
As an optional embodiment, the adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter includes: determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to the comparison result; and compensating or filtering the standard frequency response parameters of the audio module by adopting a band-pass filter to obtain output frequency response parameters.
Here, the influence of the environment on the audio frequency of each frequency band can be seen through the comparison result of the frequency response curve graph corresponding to the standard frequency response parameter and the frequency response curve graph corresponding to the environment frequency response parameter. For example, under the condition that the influence of the high-frequency band on the audio frequency is high, the high-frequency band-pass filter is connected to the audio frequency module to enhance or weaken the audio frequency output of the high-frequency band, so that the influence of the environment on the audio frequency parameters of the high-frequency band is corrected; under the condition that the influence of the low frequency band on the audio frequency is high, the low frequency band-pass filter is connected to the audio frequency module, the audio frequency output of the low frequency band can be enhanced or weakened, and therefore the influence of the environment on the audio frequency parameter of the low frequency band can be corrected, wherein the audio frequency parameter can be the sound intensity.
In the embodiment, the band-pass filter is adopted to enhance or weaken the output of the audio frequency in the corresponding frequency band, so that the influence of the environment on the audio frequency parameters of the corresponding frequency band is corrected, and the realization is simple and convenient.
Specifically, in some embodiments, please refer to fig. 3, fig. 3 is a frequency response curve graph of an audio signal adjustment method according to an exemplary embodiment, and as shown in fig. 3, a frequency response curve graph 31 corresponding to a standard frequency response parameter and a frequency response curve graph 32 corresponding to an environmental frequency response parameter are set in the same coordinate plane, so that a difference frequency band existing between the standard frequency response parameter and the environmental frequency response parameter can be visually seen. Obviously, in the present embodiment, the environmental frequency response parameter is attenuated between the frequency band a and the frequency band B, and attenuated between the frequency band C and the frequency band D.
Therefore, in some embodiments, the terminal may determine, according to a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter, an upper limit frequency and a lower limit frequency of the difference frequency band, and determine a cut-off frequency of the band-pass filter, thereby constructing the band-pass filter having the cut-off frequency.
It is to be understood that the cut-off frequency refers to a boundary frequency at which the output signal of a system can start to drop substantially or rise substantially in a band-stop filter. It is understood that the cut-off frequency is an index of the band-pass filter, and represents the upper limit frequency and the lower limit frequency of the band-pass filter.
In this embodiment, the terminal may construct two band pass filters, where an upper limit frequency of a cut-off frequency of the first band pass filter is B, a lower limit frequency of the cut-off frequency is B, an upper limit frequency of a cut-off frequency of the second band pass filter is D, and a lower limit frequency of the cut-off frequency is C. And the second band-pass filter is used for gaining the sound intensity between the frequency band C and the frequency band D so as to compensate the influence of the target environment on the standard frequency response parameters.
In this embodiment, the difference frequency band between the standard frequency response parameter and the environmental frequency response parameter is determined first, and then, based on the difference frequency band, the frequency point where the endpoint of the difference frequency band is located is respectively used as the upper limit frequency and the lower limit frequency of the cut-off frequency of the band-pass filter. In this way, the influence of the environment on the audio parameters of the respective frequency bands of the audio can be accurately corrected.
It should be added that, in fact, the standard frequency response parameter of the audio module is used as a reference frequency response parameter, and can be obtained from the cloud server by the terminal having the audio module.
It is to be understood that the standard frequency response parameters may actually be determined according to the standard environment. And the standard frequency response parameters corresponding to different standard environments are different.
In some embodiments, the terminal may output a third test audio signal in a standard environment by using the audio acquisition module, where the third test audio signal is an audio signal including the original audio response parameters of the audio module; acquiring a fourth test audio signal, wherein the fourth test audio signal is generated after the third test audio signal passes through the standard environment; and determining the standard frequency response parameter according to the audio parameter of the third test audio signal and the audio parameter of the fourth test audio signal.
Here, the standard environment can be selected according to actual conditions, and the influence of the environment under the standard environment on the frequency response of the audio module is obtained, so that the audio module can be determined without depending on a network under a network-free environment, and the standard frequency response parameters of the audio module can be adjusted based on other environments.
Additionally, the method further comprises: the standard environment is selected according to the user's attributes.
It will be appreciated that the requirements of the standard environment may be different for different user attributes and therefore the standard environment that may be selected may also be different. Specifically, the standard environment that can be selected may be different according to the age, sex, occupation, and the like of different users. For example, for a common young person in a building room, such as a room in a home, a conference room in an office, etc., the audio heard can satisfy the listening sensation requirement, and therefore, the building room can be taken as a standard environment; for a music player, the hearing requirement can be met for the heard audio in a completely sound-proof environment, such as a recording room, and therefore the recording room can be used as a standard environment; or, for older people, a room with a certain sound insulation environment may be needed as a standard environment; therefore, in the embodiment, different standard frequency response parameters are determined by selecting different standard environments, so that the method can be adapted to different types of user requirements, and realize personalized customization standards, thereby realizing personalized adjustment of the standard frequency response parameters of the audio module, and finally realizing a personalized playing effect.
Of course, the same standard environment may be selected for the attributes of different users, and is not limited herein.
In an optional embodiment, the determining, according to the target environment, an environmental frequency response parameter of the audio module in the target environment includes: determining an environmental parameter of the target environment according to the target environment; wherein the environmental parameters comprise material parameters and/or structural parameters of a target object of the target environment; and determining the environmental frequency response parameters according to the environmental parameters.
Specifically, the determining, according to the environment, an environmental frequency response parameter of the audio module in the environment may include: and acquiring the material parameters and/or the structure parameters of the target object of the environment where the audio module is located according to the target environment.
Here, the target object includes: objects surrounding the audio module and/or objects within the environment. Here, the object surrounding the audio module may be, for example, a wall in a room surrounding the audio module; the object in the environment can be a desk for placing the terminal with the audio module, and the like.
It will be appreciated that when the sound wave encounters a wall or other obstruction, a portion of the sound energy is reflected, a portion of the sound energy is absorbed by the wall or obstruction and converted into heat energy for consumption, and a small portion of the sound energy is transmitted to the other side. And the sound absorption capacity of a certain material or structure may be understood as the sound absorption coefficient. Thus, different materials and/or structures may have different sound absorption capabilities. The material parameters and/or structural parameters of the target object can characterize the sound absorption coefficient of the target object at different frequencies.
For example, glass fibers have an acoustic absorption coefficient of 0.15 at a frequency of 125Hz, 0.38 at a frequency of 250Hz, and 0.81 at 500 Hz; polyurethane (foam type) has an acoustic absorption coefficient of 0.11 at a frequency of 125Hz, 0.13 at 250Hz, and 0.27 at 500 Hz.
For example, three plywood panels with wall spacing of 5cm and keel spacing of 40 x 45cm, with an acoustic absorption coefficient of 0.21 at a frequency of 125Hz, 0.73 at 250Hz, and 0.21 at 500 Hz; three splints with a wall spacing of 10cm and a keel spacing of 40 x 45cm, an acoustic absorption coefficient of 0.59 at a frequency of 125Hz, 0.38 at 250Hz, and 0.18 at 500 Hz.
In this embodiment, the material parameter and/or the structural parameter of the target object are obtained and are used as the environmental parameter of the target environment. Compared with a mode of sending a test audio signal, the standard frequency response parameter of the audio module is adjusted by directly using the material parameter and/or the structure parameter of the object around the environment where the audio module is located as the environment parameter, so that the test process is omitted, and the adjustment process is simplified.
Here, the material parameter and/or the structural parameter of the target object may be input by a user through a user interface of a terminal having the audio module; or, the space type of the environment, for example, whether the environment is an indoor room of a common building or a recording room, may be input through the user interface, and then the material parameters and/or the structural parameters of the target object in the environment are obtained from the cloud server.
Further, the present disclosure provides a specific embodiment to further understand the method for adjusting the audio signal provided by the embodiment of the present disclosure.
The method of the embodiment is particularly applied to a mobile terminal, particularly a mobile phone; the audio module described in this embodiment includes a speaker of the mobile phone and a microphone of the mobile phone.
The effect of the mobile phone loudspeaker is often influenced by the environment, and when the sound absorption coefficient of the material or the structure of the object around the environment where the mobile phone is located to a certain frequency is high, sound waves of the frequency in the loudspeaker are absorbed, so that the external radiation effect is influenced.
The embodiment provides a method for dynamically adjusting the external frequency response of a mobile phone according to the environment of the mobile phone, which is used for adjusting the external frequency response of the mobile phone in a targeted manner according to the environmental parameters of the surrounding environment, so that the influence on the environment is compensated, and the stability of the external frequency response effect of the mobile phone is improved.
Here, the above-mentioned external frequency response may be understood as the standard frequency response parameter described in the above-mentioned embodiment.
In this embodiment, first, in a standard listening environment where a mobile phone is tuned, a speaker of a mobile phone of a user plays a segment of a test sound source, a microphone of the mobile phone receives a test audio signal generated through the standard listening environment based on the test sound source, and a frequency response of a transfer function from the speaker to the microphone is calculated as a standard frequency response.
Here, the standard listening environment corresponds to the standard environment described in the above embodiments. It can be understood that the standard frequency response corresponds to the first frequency response, which is the outer frequency response of the audio module in the standard environment. Here, the mobile phone speaker plays a section of test audio source in the standard environment, which is equivalent to the above embodiment that the audio acquisition module is used to output a third test audio signal in the standard environment. Here, receiving, by the microphone of the mobile phone, the test audio signal generated by the standard listening environment based on the test sound source is equivalent to acquiring the fourth test audio signal, where the fourth test audio signal is generated after the third test audio signal passes through the standard listening environment. Here, the frequency response of the transfer function from the speaker to the microphone is calculated as a standard frequency response, which is equivalent to determining the standard frequency response parameter from the audio parameter of the third test audio signal and the audio parameter of the fourth test audio signal as described in the above embodiment.
Secondly, in the user listening environment, a mobile phone loudspeaker plays a section of test sound source, a mobile phone microphone receives a test audio signal generated by the test sound source through the listening environment, the frequency response of the user in the listening environment is calculated and compared with the standard frequency response parameter sum.
Here, the listening environment corresponds to the target environment of the audio module described in the above embodiments. Here, the mobile phone speaker plays a section of test audio source, which is equivalent to the above embodiment that the audio module is used to output the first test audio signal in the environment. Here, the receiving of the test audio signal generated by the listening environment based on the test sound source by the microphone of the mobile phone is equivalent to the capturing of the second test audio signal generated after the first test audio signal passes through the environment. Here, the frequency response in the listening environment of the user is calculated, which corresponds to determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal as described in the above embodiments. Here, the calculated frequency response in the listening environment of the user is compared with the standard frequency response, which is equivalent to the comparison of the environmental frequency response parameter and the standard frequency response parameter described in the above embodiment, so as to obtain the comparison result.
And finally, accessing a band-pass filter in a frequency band in which the frequency response in the user listening environment is different from the standard frequency response, and adjusting the frequency response in the user listening environment. For example, in the frequency band f1-f2, the frequency response of the user is lower than the standard frequency response, in this embodiment, a band-pass filter with a cut-off frequency f1-f2 is connected to the audio module to gain the frequency band, so that the frequency response of the user in the listening environment is improved, the influence of the listening environment on the audio is compensated, and the listening feeling is improved.
According to the adjusting method of the audio signal, the external frequency response of the mobile phone can be adjusted in a targeted manner according to the environmental parameters of the surrounding environment, so that the influence on the environment is compensated, the stability of the external playing effect of the mobile phone is improved, the hearing of a user is improved, and the user experience of the mobile phone is finally improved.
Fig. 4 is a diagram illustrating an apparatus for adjusting an audio signal according to an exemplary embodiment, and referring to fig. 4, the apparatus includes: a first determining module 41, a second determining module 42, a comparing module 43, an adjusting module 44 and a first output module 45;
the first determining module 41 is configured to determine a standard frequency response parameter of the audio module;
the second determining module 42 is configured to determine, according to a target environment, an environmental frequency response parameter of the audio module in the environment;
the comparing module 43 is configured to compare the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
the adjusting module 44 is configured to adjust the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
the first output module 45 is configured to output an audio signal by using the output frequency response parameter.
In an optional embodiment, the second determination module 42 is further configured to:
outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio signal comprises an audio signal of the standard frequency response parameter of the audio module;
acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the target environment;
and determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
In an optional embodiment, the adjustment module 44 is further configured to:
determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to the comparison result;
and compensating or filtering the standard frequency response parameters of the audio module on the different frequency bands by adopting a band-pass filter to obtain output frequency response parameters.
In an alternative embodiment, the standard frequency response parameters corresponding to different standard environments are different.
In an optional embodiment, the second determining module 42 is further configured to:
determining an environmental parameter of the target environment according to the target environment; wherein the environmental parameters include: material parameters and/or structural parameters of a target object of the environment;
and determining the environmental frequency response parameters according to the environmental parameters.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating a terminal 500 according to an example embodiment. For example, the terminal 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, terminal 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the terminal 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the terminal 500. Examples of such data include instructions for any application or method operating on terminal 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 506 provides power to the various components of terminal 500. Power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 500.
The multimedia component 508 includes a screen providing an output interface between the terminal 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 500 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the terminal 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the terminal 500. For example, sensor assembly 514 can detect an open/closed state of terminal 500, relative positioning of components, such as a display and keypad of terminal 500, position changes of terminal 500 or a component of terminal 500, presence or absence of user contact with terminal 500, orientation or acceleration/deceleration of terminal 500, and temperature changes of terminal 300. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communications between the terminal 500 and other devices in a wired or wireless manner. The terminal 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the terminal 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the page display method according to the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. An audio signal adjusting method, used for a mobile terminal, includes:
determining standard frequency response parameters of the audio module;
determining an environmental frequency response parameter of the audio module in a target environment according to the target environment;
comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
and outputting the audio signal by using the output frequency response parameter.
2. The method according to claim 1, wherein the determining the environmental frequency response parameter of the audio module in the target environment according to the target environment comprises:
outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio signal is an audio signal comprising the standard frequency response parameters of the audio module;
acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the target environment;
and determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
3. The method of claim 1, wherein the adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter comprises:
determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to the comparison result;
and compensating or filtering the standard frequency response parameters of the audio module on the different frequency bands by adopting a band-pass filter to obtain the output frequency response parameters.
4. The method of claim 1, further comprising: and the standard frequency response parameters corresponding to different standard environments are different.
5. The method according to claim 1, wherein the determining the environmental frequency response parameter of the audio module in the target environment according to the target environment comprises:
determining an environmental parameter of the target environment according to the target environment; wherein the target environment parameters include: material parameters and/or structural parameters of a target object of the environment;
and determining the environmental frequency response parameters according to the environmental parameters.
6. An apparatus for adjusting an audio signal, for a mobile terminal, comprising:
the first determining module is configured to determine standard frequency response parameters of the audio module;
the second determining module is configured to determine an environmental frequency response parameter of the audio module under the environment according to a target environment;
the comparison module is configured to compare the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
the adjusting module is configured to adjust the standard frequency response parameter of the audio module according to the comparison result so as to obtain an output frequency response parameter;
a first output module configured to output an audio signal using the output frequency response parameter.
7. The apparatus of claim 6, wherein the second determining module is further configured to:
outputting a first test audio signal in the target environment by using the audio module; wherein the first test audio signal comprises an audio signal of the standard frequency response parameter of the audio module;
acquiring a second test audio signal, wherein the second test audio signal is generated after the first test audio signal passes through the target environment;
and determining the environmental frequency response parameter according to the audio parameter of the first test audio signal and the audio parameter of the second test audio signal.
8. The apparatus of claim 6, wherein the adjustment module is further configured to:
determining a difference frequency band between the standard frequency response parameter and the environmental frequency response parameter according to the comparison result;
and compensating or filtering the standard frequency response parameters of the audio module on the different frequency bands by adopting a band-pass filter to obtain the output frequency response parameters.
9. The apparatus of claim 6, wherein: and the standard frequency response parameters corresponding to different standard environments are different.
10. The apparatus of claim 6, wherein the second determining module is further configured to:
determining an environmental parameter of the target environment according to the target environment; wherein the environmental parameters include: material parameters and/or structural parameters of a target object of the environment;
and determining the environmental frequency response parameters according to the environmental parameters.
11. A mobile terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining standard frequency response parameters of the audio module;
determining an environmental frequency response parameter of the audio module in a target environment according to the target environment;
comparing the standard frequency response parameter with the environmental frequency response parameter to obtain a comparison result;
adjusting the standard frequency response parameter of the audio module according to the comparison result to obtain an output frequency response parameter;
and outputting the audio signal by using the output frequency response parameter.
12. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the steps of the adaptation method of an audio signal implementing any of claims 1 to 5.
CN202010004944.1A 2020-01-03 2020-01-03 Audio signal adjusting method and device, terminal and storage medium Pending CN113076075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010004944.1A CN113076075A (en) 2020-01-03 2020-01-03 Audio signal adjusting method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010004944.1A CN113076075A (en) 2020-01-03 2020-01-03 Audio signal adjusting method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113076075A true CN113076075A (en) 2021-07-06

Family

ID=76608650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010004944.1A Pending CN113076075A (en) 2020-01-03 2020-01-03 Audio signal adjusting method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113076075A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095829A (en) * 2021-11-08 2022-02-25 广州番禺巨大汽车音响设备有限公司 Control method and control device for sound integration with HDMI (high-definition multimedia interface)
WO2023044608A1 (en) * 2021-09-22 2023-03-30 京东方科技集团股份有限公司 Audio adjustment method, apparatus and device, and storage medium
WO2023103503A1 (en) * 2021-12-10 2023-06-15 荣耀终端有限公司 Frequency response consistency calibration method and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473005A (en) * 2013-09-29 2013-12-25 深圳Tcl新技术有限公司 Method and device for performing sound effect control on played audio frequency
CN104464764A (en) * 2014-11-12 2015-03-25 小米科技有限责任公司 Audio data broadcasting method and device
CN105101013A (en) * 2015-06-30 2015-11-25 小米科技有限责任公司 Method and device for playing voice signals
CN107231598A (en) * 2017-06-21 2017-10-03 惠州Tcl移动通信有限公司 A kind of adaptive audio adjustment method, system and mobile terminal
CN108269578A (en) * 2018-02-05 2018-07-10 百度在线网络技术(北京)有限公司 For handling the method and apparatus of information
CN108430003A (en) * 2018-03-30 2018-08-21 广东欧珀移动通信有限公司 Audio compensation method and device, readable storage medium storing program for executing, terminal
CN109889955A (en) * 2019-01-28 2019-06-14 中科上声(苏州)电子有限公司 A kind of the robustness automatic balancing method and system of vehicle interior sound field

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473005A (en) * 2013-09-29 2013-12-25 深圳Tcl新技术有限公司 Method and device for performing sound effect control on played audio frequency
CN104464764A (en) * 2014-11-12 2015-03-25 小米科技有限责任公司 Audio data broadcasting method and device
CN105101013A (en) * 2015-06-30 2015-11-25 小米科技有限责任公司 Method and device for playing voice signals
CN107231598A (en) * 2017-06-21 2017-10-03 惠州Tcl移动通信有限公司 A kind of adaptive audio adjustment method, system and mobile terminal
CN108269578A (en) * 2018-02-05 2018-07-10 百度在线网络技术(北京)有限公司 For handling the method and apparatus of information
CN108430003A (en) * 2018-03-30 2018-08-21 广东欧珀移动通信有限公司 Audio compensation method and device, readable storage medium storing program for executing, terminal
CN109889955A (en) * 2019-01-28 2019-06-14 中科上声(苏州)电子有限公司 A kind of the robustness automatic balancing method and system of vehicle interior sound field

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023044608A1 (en) * 2021-09-22 2023-03-30 京东方科技集团股份有限公司 Audio adjustment method, apparatus and device, and storage medium
CN114095829A (en) * 2021-11-08 2022-02-25 广州番禺巨大汽车音响设备有限公司 Control method and control device for sound integration with HDMI (high-definition multimedia interface)
CN114095829B (en) * 2021-11-08 2023-06-09 广州番禺巨大汽车音响设备有限公司 Sound integrated control method and control device with HDMI interface
WO2023103503A1 (en) * 2021-12-10 2023-06-15 荣耀终端有限公司 Frequency response consistency calibration method and electronic device

Similar Documents

Publication Publication Date Title
CN107493500B (en) Multimedia resource playing method and device
JP6314286B2 (en) Audio signal optimization method and apparatus, program, and recording medium
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
JP2018500859A (en) Volume adjustment method, apparatus and terminal
CN107749925B (en) Audio playing method and device
CN113076075A (en) Audio signal adjusting method and device, terminal and storage medium
CN108806714B (en) Method and device for adjusting volume
CN106060707B (en) Reverberation processing method and device
CN105721705B (en) Call quality control method and device and mobile terminal
CN108600503B (en) Voice call control method and device
CN112770248B (en) Sound box control method and device and storage medium
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
CN111294704B (en) Audio processing method, device and storage medium
CN106101441B (en) Terminal control method and device
CN111698593B (en) Active noise reduction method and device, and terminal
CN112019948B (en) Intercommunication method for intercom equipment, intercom equipment and storage medium
WO2018058331A1 (en) Method and apparatus for controlling volume
CN114040285B (en) Method and device for generating feedforward filter parameters of earphone, earphone and storage medium
CN114598970A (en) Audio processing method and device, electronic equipment and storage medium
CN112637416A (en) Volume adjusting method and device and storage medium
CN111337120A (en) Sound testing method, device and storage medium
CN109712629B (en) Audio file synthesis method and device
CN111225318A (en) Audio adjusting method and device and electronic equipment
CN113495713B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
CN114040284B (en) Noise processing method, noise processing device, terminal and storage medium

Legal Events

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