Data processing method and device, terminal and storage medium

文档序号:452672 发布日期:2021-12-28 浏览:2次 中文

阅读说明:本技术 数据处理方法及装置、终端和存储介质 (Data processing method and device, terminal and storage medium ) 是由 金涛 于 2020-06-28 设计创作,主要内容包括:本公开是关于一种数据处理方法及装置、终端和存储介质。该方法包括:根据输入信号的信号振幅,确定所述输入信号的振幅是否超标;若所述输入信号的振幅超标,确定所述输入信号中振幅超标的超标频段;对所述输入信号中所述超标频段的信号,进行动态范围控制DRC处理。通过该方法,能减少信号失真现象发生,提升用户使用体验。(The disclosure relates to a data processing method and apparatus, a terminal and a storage medium. The method comprises the following steps: determining whether the amplitude of an input signal exceeds a standard or not according to the signal amplitude of the input signal; if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal; and performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency band in the input signals. By the method, the occurrence of signal distortion can be reduced, and the user experience is improved.)

1. A method of data processing, the method comprising:

determining whether the amplitude of an input signal exceeds a standard or not according to the signal amplitude of the input signal;

if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal;

and performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency band in the input signals.

2. The method of claim 1, wherein determining whether the amplitude of the input signal is out of limits based on the signal amplitude of the input signal comprises:

and when the sampling point with the amplitude exceeding the standard in the input signal is greater than or equal to the threshold of the number of the sampling points with the amplitude exceeding the standard, determining that the amplitude of the input signal exceeds the standard.

3. The method of claim 2, wherein determining that the amplitude of the input signal is out of limits when the sample points of the input signal with out of limits amplitude are greater than or equal to an out of limits sample point number threshold comprises:

and when the amplitude exceeding sampling points in the input signal are more than or equal to 1, determining that the amplitude of the input signal exceeds the standard.

4. The method of claim 1, wherein said determining an out-of-limit frequency band of said input signal with said out-of-limit amplitude if said input signal with said out-of-limit amplitude comprises:

if the amplitude of the input signal exceeds the standard, comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude meeting the standard to obtain the amplitude increase value of the input signal compared with the amplitude increase value of the historical signal;

and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

5. The method of claim 4, further comprising:

converting the input signal and the amplitude-qualified historical signal to a frequency domain;

the comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude standard to obtain the amplitude increase value between the input signal and the historical signal comprises the following steps:

and in the frequency domain, comparing the amplitude of a preset frequency band in the input signal with the amplitude of the preset frequency band in the historical signal to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

6. The method of claim 1, further comprising:

and performing filtering processing on the input signal by using a band-pass filter, and separating the signal of the standard exceeding frequency band and the signal of the standard reaching frequency band with the amplitude reaching the standard in the input signal.

7. The method of claim 6, further comprising:

mixing the processed signal subjected to the DRC processing on the signal in the standard exceeding frequency band with the signal in the standard reaching frequency band in the input signal;

outputting the mixed signal to an audio component.

8. The method of claim 1, further comprising:

and if the amplitude of the input signal does not exceed the standard, outputting the input signal to an audio component.

9. A data processing apparatus, characterized in that the apparatus comprises:

a first determination module configured to determine whether an amplitude of an input signal is out of limits according to the signal amplitude of the input signal;

the second determining module is configured to determine an overproof frequency band with overproof amplitude in the input signal if the amplitude of the input signal exceeds the standard;

and the processing module is configured to perform Dynamic Range Control (DRC) processing on the signals of the superstandard frequency band in the input signals.

10. The apparatus of claim 9,

the first determining module is specifically configured to determine that the amplitude of the input signal exceeds a standard when a sampling point with an exceeding amplitude in the input signal is greater than or equal to a threshold of a number of exceeding sampling points.

11. The apparatus of claim 10,

the first determining module is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of amplitude exceeding sampling points in the input signal is greater than or equal to 1.

12. The apparatus of claim 9,

the second determining module is specifically configured to, if the amplitude of the input signal exceeds a standard, compare the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude meeting the standard, and obtain an amplitude increase value between the input signal and the historical signal; and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

13. The apparatus of claim 12, further comprising:

a conversion module configured to convert the input signal and the amplitude qualified historical signal to a frequency domain;

the second determining module is specifically configured to compare, in the frequency domain, an amplitude of a preset frequency band in the input signal with an amplitude of the preset frequency band in the historical signal, so as to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

14. The apparatus of claim 9, further comprising:

and the filtering module is configured to perform filtering processing on the input signal by using a band-pass filter, and separate the signal of the standard exceeding frequency band and the signal of the standard reaching frequency band with the amplitude reaching the standard in the input signal.

15. The apparatus of claim 14, further comprising:

a mixing module configured to mix the processed signal subjected to the DRC processing on the signal in the above-standard frequency band with the signal in the up-to-standard frequency band in the input signal;

a first output module configured to output the mixed signal to an audio component.

16. The apparatus of claim 9, further comprising:

and the second output module is configured to output the input signal to an audio component if the amplitude of the input signal does not exceed the standard.

17. A terminal, comprising:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the data processing method of any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a computer, enable the computer to perform the data processing method of any one of claims 1 to 8.

Technical Field

The present disclosure relates to the field of electronic device technologies, and in particular, to a data processing method and apparatus, a terminal, and a storage medium.

Background

Dynamic Range Control (DRC) is a technique that detects the amplitude of an input signal and controls the amplitude of an output signal not to exceed a standard in a time domain. The method is mainly used for controlling the gain of audio output so as to meet the requirement that the power of the loudspeaker does not exceed the standard.

The DRC technology realizes the protection of the loudspeaker by presetting fixed frequency bands and DRC parameters such as amplitude adjustment sizes corresponding to the frequency bands. However, the above method has the problems that the frequency response is not good and the user experience is affected.

Disclosure of Invention

The disclosure provides a data processing method and device, a terminal and a storage medium.

According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including:

determining whether the amplitude of an input signal exceeds a standard or not according to the signal amplitude of the input signal;

if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal;

and performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency band in the input signals.

Optionally, the determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal includes:

and when the sampling point with the amplitude exceeding the standard in the input signal is greater than or equal to the threshold of the number of the sampling points with the amplitude exceeding the standard, determining that the amplitude of the input signal exceeds the standard.

Optionally, when the sampling point of the input signal whose amplitude exceeds the standard is greater than or equal to the threshold of the number of sampling points exceeding the standard, determining that the amplitude of the input signal exceeds the standard includes:

and when the amplitude exceeding sampling points in the input signal are more than or equal to 1, determining that the amplitude of the input signal exceeds the standard.

Optionally, if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band where the amplitude of the input signal exceeds the standard includes:

if the amplitude of the input signal exceeds the standard, comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude meeting the standard to obtain the amplitude increase value of the input signal compared with the amplitude increase value of the historical signal;

and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

Optionally, the method further includes:

converting the input signal and the amplitude-qualified historical signal to a frequency domain;

the comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude standard to obtain the amplitude increase value between the input signal and the historical signal comprises the following steps:

and in the frequency domain, comparing the amplitude of a preset frequency band in the input signal with the amplitude of the preset frequency band in the historical signal to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

Optionally, the method further includes:

and performing filtering processing on the input signal by using a band-pass filter, and separating the signal of the standard exceeding frequency band and the signal of the standard reaching frequency band with the amplitude reaching the standard in the input signal.

Optionally, the method further includes:

mixing the processed signal subjected to the DRC processing on the signal in the standard exceeding frequency band with the signal in the standard reaching frequency band in the input signal;

outputting the mixed signal to an audio component.

Optionally, the method further includes:

and if the amplitude of the input signal does not exceed the standard, outputting the input signal to an audio component.

According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including:

a first determination module configured to determine whether an amplitude of an input signal is out of limits according to the signal amplitude of the input signal;

the second determining module is configured to determine an overproof frequency band with overproof amplitude in the input signal if the amplitude of the input signal exceeds the standard;

and the processing module is configured to perform Dynamic Range Control (DRC) processing on the signals of the superstandard frequency band in the input signals.

Optionally, the first determining module is specifically configured to determine that the amplitude of the input signal exceeds a standard when a sampling point of the input signal whose amplitude exceeds a standard is greater than or equal to a standard sampling point threshold.

Optionally, the first determining module is specifically configured to determine that the amplitude of the input signal exceeds the standard when amplitude exceeding sampling points in the input signal are greater than or equal to 1.

Optionally, the second determining module is specifically configured to, if the amplitude of the input signal exceeds a standard, compare the amplitude of the input signal with the amplitude of the historical signal whose amplitude is determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal; and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

Optionally, the apparatus further comprises:

a conversion module configured to convert the input signal and the amplitude qualified historical signal to a frequency domain;

the second determining module is specifically configured to compare, in the frequency domain, an amplitude of a preset frequency band in the input signal with an amplitude of the preset frequency band in the historical signal, so as to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

Optionally, the apparatus further comprises:

and the filtering module is configured to perform filtering processing on the input signal by using a band-pass filter, and separate the signal of the standard exceeding frequency band and the signal of the standard reaching frequency band with the amplitude reaching the standard in the input signal.

Optionally, the apparatus further comprises:

a mixing module configured to mix the processed signal subjected to the DRC processing on the signal in the above-standard frequency band with the signal in the up-to-standard frequency band in the input signal;

a first output module configured to output the mixed signal to an audio component.

Optionally, the apparatus further comprises:

and the second output module is configured to output the input signal to an audio component if the amplitude of the input signal does not exceed the standard.

According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the data processing method as described in the first aspect above.

According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium including:

the instructions in the storage medium, when executed by a processor of a computer, enable the computer to perform the data processing method as described in the first aspect above.

The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:

in the embodiment of the disclosure, whether the amplitude of the whole input signal exceeds the standard or not is determined in advance, the exceeding frequency band with the exceeding amplitude in the input signal is determined under the condition that the amplitude of the whole input signal exceeds the standard, and DRC processing is performed on the signal in the exceeding frequency band. By the method, compared with a method of determining standards and performing DRC (decision control and data rate) processing by adopting respective corresponding amplitudes for each frequency division interval according to a fixed frequency division interval, the method can perform processing according to the overall amplitude characteristic of an input signal, and perform DRC processing on signals in an overproof frequency band with overproof amplitudes under the condition that the overall amplitude exceeds the standard, so that the flexibility of DRC processing can be improved, the phenomena of signal distortion caused by pressing a single frequency band when the overall amplitude of the signal does not exceed the standard and pressing a certain frequency amplitude in the frequency band after the amplitude does not exceed the standard due to fixed frequency division are reduced, the distortion phenomenon after the input signal is processed is reduced, and the tone quality of the processed input signal is improved.

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 present disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a flowchart of a data processing method according to an embodiment of the present disclosure.

Fig. 2 is a flowchart of a data processing method according to an embodiment of the present disclosure.

Fig. 3 is a flowchart of a data processing method shown in the embodiment of the present disclosure.

FIG. 4 is a diagram illustrating a data processing apparatus according to an example embodiment.

Fig. 5 is a block diagram of a terminal shown in an embodiment of the present disclosure.

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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

Fig. 1 is a flowchart of a data processing method shown in an embodiment of the present disclosure, and as shown in fig. 1, the data processing method applied in a terminal includes the following steps:

s11, determining whether the amplitude of the input signal exceeds the standard or not according to the signal amplitude of the input signal;

s12, if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal;

and S13, performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency bands in the input signals.

In an embodiment of the present disclosure, a terminal device includes: a mobile device and a stationary device; the mobile device includes: mobile phones, tablet computers, and the like. The stationary device includes, but is not limited to, a Personal Computer (PC). The terminal comprises an audio component, and the audio component can comprise: audio input components and/or audio components such as a microphone and/or a speaker. For example, the speaker is a loudspeaker, and can play music or voice.

In the embodiments of the present disclosure, the input signal refers to an audio signal to be input to an audio component, and the input signal is a digital signal, for example, a digital signal of music to be played. After the Digital signal is processed by DRC, the Digital signal is converted into an analog signal by a Digital-to-analog converter (DAC) and input to an audio component, and the analog signal is output to a user by the audio component; or, the input audio is stored as a subsequent playable audio file after being subjected to DRC processing.

The DRC functions to reduce audio distortion and protect audio components. If the amplitude of the signal input to the audio component exceeds the standard, peak clipping may be caused when DRC processing is not adopted, namely, the signal of the frequency band with the exceeding amplitude is directly clipped, so that signal distortion is caused; or do not perform DRC processing and peak-canceling processing, causing audio component damage.

In the disclosed embodiment, it is first determined whether the amplitude of the input signal exceeds a standard. The input signal comprises a signal sampled within a continuous time period, for example, a sampled signal comprising 512-2048 frames. The frequency band of the signal at different sampling instants may be different, wherein the frequency band refers to a frequency (HZ) range, and for example, for audio data, the frequency band may be divided into a low frequency, an intermediate frequency, a high frequency, and the like. The frequency range that human ear can feel usually is 20 Hz-20 KHZ, wherein 20 Hz-1 KHZ may be the low frequency band, 1 KHZ-10 KHZ may be the middle frequency band, and 10 KHZ-20 KHZ may be the high frequency band.

In step S11, the terminal determines whether the amplitude of the input signal exceeds the standard according to the signal amplitude of the input signal, that is, determines whether the amplitude of the input signal exceeds the standard according to the amplitude of each sampling point. The exceeding refers to that the amplitude of the signal exceeds a preset amplitude threshold.

In the embodiment of the disclosure, when determining whether the amplitude of the input signal exceeds the standard according to the signal amplitude of the input signal, the amplitude may be determined based on the amplitude of any one or more sampling points in the input signal, for example, if the amplitude of one sampling point exceeds a preset amplitude threshold, the amplitude of the input signal is determined to exceed the standard; the amplitude of the input signal may also be determined according to the amplitudes of all the sampling points in the input signal, for example, an average value of the amplitudes of the sampling points is determined, and if the average value exceeds a preset amplitude threshold, it is determined that the amplitude of the input signal exceeds a standard.

In step S12, if the amplitude of the input signal exceeds the standard, the exceeding frequency band with the exceeding amplitude in the input signal is determined. In the embodiments of the present disclosure, the out-of-limit frequency band refers to a frequency band in which the signal amplitude exceeds a preset amplitude threshold.

In one embodiment, the out-of-limit frequency band may be determined directly according to the current input signal and an amplitude threshold, for example, when the amplitude of a signal in a certain frequency band in the input signal exceeds the amplitude threshold corresponding to the frequency band, the out-of-limit frequency band is determined.

In another embodiment, the out-of-limits frequency band may also be dynamically determined based on the current input signal and the historical signal. The historical signal includes, but is not limited to, an audio signal buffered in the terminal, which is also a digital signal. And determining the frequency band with the most increased amplitude value as an overproof frequency band by comparing the amplitude values of the frequency bands of the input signal and the historical signal.

The history signal may also be not the currently buffered audio signal but has been discarded from the buffer, but the amplitude of the history signal is recorded. Therefore, the superscalar frequency band can be determined according to the amplitudes of the current input signal and the historical signal.

In step S13, after the out-of-standard frequency band is determined, DRC processing is performed on the out-of-standard frequency band signal in the input signal, and the amplitude of the out-of-standard frequency band signal after DRC processing does not exceed the standard.

For example, if the amplitude of the signal in the out-of-limit frequency band is higher than the preset amplitude threshold, the amplitude of the signal in the out-of-limit frequency band is reduced.

As described in the background, in one mode, DRC is implemented by presetting DRC action frequency range and adjustment parameters. However, if the amplitude of the entire audio signal does not exceed the standard and DRC suppression is still performed, the signal is distorted, and the auditory experience of the user is affected. In addition, if the fixed frequency band range is suppressed, audio signals which are contained in the same frequency band range but do not exceed the standard are suppressed together, so that the frequency response of sound with certain frequencies is poor, and the user experience is affected.

In the present disclosure, it is determined in advance whether the amplitude of the entire input signal exceeds the standard, and in the case where the amplitude of the entire input signal exceeds the standard, a standard exceeding frequency band in which the amplitude of the input signal exceeds the standard is determined, and DRC processing is performed on a signal in the standard exceeding frequency band. Through this kind of mode, for according to fixed frequency division interval, adopt the mode of each corresponding amplitude judgement standard and doing DRC processing to each frequency division interval, this disclosure can do the processing according to the whole amplitude characteristic of input signal, under the circumstances that holistic amplitude exceeds standard, do DRC processing to the signal of the frequency channel that exceeds standard that the amplitude exceeds standard, therefore can promote DRC processing's flexibility, reduce because of fixed frequency division, do the suppression to single frequency channel when the whole amplitude of signal does not exceed standard, and the phenomenon emergence of the signal distortion that still does the suppression after the amplitude does not exceed standard, thereby promote user experience.

It should be noted that, in the embodiment of the present disclosure, after performing DRC processing on a signal in an excess frequency band, the amplitude of the excess frequency band is restored to a normal range, and then the DRC processing on the frequency band is cancelled.

In one embodiment, the determining whether the amplitude of the input signal is out of limits based on the signal amplitude of the input signal comprises:

and when the sampling point with the amplitude exceeding the standard in the input signal is greater than or equal to the threshold of the number of the sampling points with the amplitude exceeding the standard, determining that the amplitude of the input signal exceeds the standard.

In the embodiment, whether the amplitude of the input signal exceeds the standard is determined according to the number of sampling points with exceeding amplitude in the input signal, and when the number of the sampling points with exceeding amplitude is greater than or equal to the threshold of the number of the sampling points with exceeding amplitude, the amplitude of the input signal is determined to exceed the standard.

The judgment is carried out by setting the sampling point threshold value, so that the regulation can be carried out according to the requirement on the accuracy of judging whether the amplitude exceeds the standard, and the flexibility is realized.

In one embodiment, the determining that the amplitude of the input signal exceeds the standard when the sampling point with the exceeding amplitude in the input signal is greater than or equal to a threshold of exceeding sampling points includes:

and when the amplitude exceeding sampling points in the input signal are more than or equal to 1, determining that the amplitude of the input signal exceeds the standard.

In this embodiment, when the amplitude of one sampling point exceeds the standard, it is possible to make the amplitude of the input signal exceed the standard. Therefore, the superscalar sample point number threshold may be set to 1. By the method, the exceeding frequency band can be determined from the input signal as much as possible, DRC processing is carried out on the signal of the exceeding frequency band, and the phenomena of signal distortion and loudspeaker damage can be reduced.

In one embodiment, the determining an out-of-limit frequency band in the input signal with an out-of-limit amplitude if the amplitude of the input signal is out-of-limit comprises:

if the amplitude of the input signal exceeds the standard, comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude meeting the standard to obtain the amplitude increase value of the input signal compared with the amplitude increase value of the historical signal;

and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

In this embodiment, when the amplitude of the input signal exceeds the standard, the amplitude increase value is determined by comparing the amplitude of the input signal with the amplitude of the historical signal whose amplitude is determined to meet the standard, and at least one frequency band in which the amplitude increase value is the largest is determined as an exceeding frequency band in which the amplitude exceeds the standard.

It should be noted that the historical signal whose amplitude meets the standard is a historical signal collected continuously with the input signal, and the input signal determines whether the amplitude exceeds the standard in the same way as the current input signal. As mentioned before, the history signal is an audio signal buffered in the terminal, which is also a digital signal.

In the embodiment of the present disclosure, the at least one frequency band with the largest amplitude increase value may be an out-of-standard frequency band determined according to a number threshold after the amplitude increase values between the input signal and the historical signal are sorted according to the magnitude order.

For example, when the number threshold is 1, the selected superstandard frequency band is the frequency band with the largest amplitude increment value; if the number threshold is 3, the selected exceeding frequency bands are the three frequency bands with the maximum amplitude increase value.

And comparing the input signal with the historical signal with the amplitude not exceeding the standard to determine the frequency band with the amplitude exceeding the standard. The DRC action frequency band is dynamically adjusted according to the amplitude condition of each frequency band, so that the influence on the frequency band which does not exceed the standard is avoided. Therefore, the frequency response of the output signal is better, and the user experience is improved.

In one embodiment, the method further comprises:

converting the input signal and the amplitude-qualified historical signal to a frequency domain;

the comparing the amplitude of the input signal with the amplitude of the historical signal with the determined amplitude standard to obtain the amplitude increase value between the input signal and the historical signal comprises the following steps:

and in the frequency domain, comparing the amplitude of a preset frequency band in the input signal with the amplitude of the preset frequency band in the historical signal to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

In this embodiment, the input signal and the amplitude conditioned historical signal are converted to the frequency domain where the amplitude increase between the input signal and the historical signal is determined.

The frequency domain gives the corresponding relation between the frequency and the amplitude, so that the amplitude added value corresponding to each preset frequency band can be conveniently determined through the frequency domain. The preset frequency band can comprise a plurality of frequency bands, and the more the number of the preset frequency bands is, the more the superstandard frequency band determined based on the amplitude increment value is, the more the corresponding DRC processing is, so that the audio processing effect is better. For example, the preset frequency band may be more than 10 frequency bands.

When the input signal and the historical signal with the qualified amplitude are converted into a frequency domain, a Fourier transform mode can be adopted. And for the historical signals with the amplitude up to the standard, storing the amplitude of each preset frequency band after Fourier transform. And after Fourier transformation is carried out on the input signal, comparing the amplitude value of each preset frequency band with the amplitude value of each preset frequency band of the corresponding stored historical signal, and obtaining the amplitude added value of the input signal in each preset frequency band relative to the historical signal. And determining which preset frequency band has more amplitude increase according to the amplitude increase value, so that the integral amplitude exceeds the standard, and considering the preset frequency band as the standard exceeding frequency band.

For example, taking the frequency band in the range of 20Hz to 20KHZ as an example, the predetermined frequency band may include 15 frequency bands, including 200Hz to 400Hz, 401Hz to 500Hz, 501Hz to 1KHZ, 1.1KHZ to 2KHZ, etc. When the "ferry" song is played, the singing voice of the cai qin is between 500Hz and 2KHz, and the sound of the drum is within 400 Hz. The singing of a cai is continuous and the sound of the drum is occasional. If the current input signal includes drum sounds, the overall amplitude may be exceeded. Comparing the amplitude of a preset frequency band in a historical signal (singing of a cai piano) with the amplitude not exceeding the standard, finding that the integral amplitude of the current input signal exceeds the standard due to the fact that 200 HZ-400 HZ frequency band signals do not exist in the historical signal, and determining the frequency band to which the drum sound belongs as the exceeding frequency band, wherein the amplitude increase value of the signal with the 400Hz frequency band is the largest.

In one embodiment, when DRC processing is performed according to a fixed frequency band range, there may be signals with excessive amplitudes in the same frequency division interval, such as: 18KHz, there are also normal sound signals whose amplitudes do not exceed the standard, such as: 18.5 KHz. The signal with the excessive amplitude and the signal with the non-excessive amplitude are both in a frequency division interval, so the signals are suppressed together after DRC processing, and the sound changes abnormally and the frequency response is not good.

For example: in the "ferry" song, the bass of the cai's organ and the sound of the drum are both in the low frequency range. When the sound of knocking the drum appears, if the superposed amplitude of the bass of the Chuaiqin and the sound of the drum exceeds the amplitude corresponding to the low-frequency range, the singing sound of the Chuaiqin is suppressed together under the action of DRC. Since the singing of a cai is continuous and the sound of the drum is discontinuous, this results in a singing of a cai that is a little and a little louder.

In the embodiment of the disclosure, compared with the historical signal whose amplitude does not exceed the standard, the exceeding frequency band whose amplitude exceeds the standard is dynamically determined, and DRC processing is only performed on the exceeding frequency band (for example, it is determined that the exceeding frequency band is the frequency band where the drumbeats are located, and only the frequency band of the drumbeats are suppressed), while DRC processing is not performed on the rest frequency bands, so that the influence on the not exceeding frequency band is avoided, that is, the selection of the signal for DRC suppression is more precise, and the processing on unnecessary frequency bands is reduced, thereby improving the use experience of users.

In one embodiment, the method further comprises:

and performing filtering processing on the input signal by using a band-pass filter, and separating the signal of the standard exceeding frequency band and the signal of the standard reaching frequency band with the amplitude reaching the standard in the input signal.

The band-pass filter allows the wave of a specific frequency band to pass through, so in this embodiment, the band-pass filter can be used to filter the input signal, and separate the signal of the out-of-standard frequency band and the signal of the up-to-standard frequency band with the up-to-standard amplitude in the input signal.

It can be understood that, through the band-pass filter, the signal of the exceeding frequency band in the input signal is conveniently separated, and the terminal can perform DRC processing on the signal of the exceeding frequency band.

It should be noted that, in an embodiment of the present disclosure, the filtering parameters of the band-pass filter are adjustable, and the filtering of signals in different superscalar frequency bands is implemented by the band-pass filter with adjustable filtering parameters.

In another embodiment, the terminal may also be provided with a plurality of band-pass filters, and the terminal may select a filter corresponding to the out-of-standard frequency band according to the determined out-of-standard frequency band to separate the signals of the out-of-standard frequency band and the signals of the up-to-standard frequency band whose amplitude meets the standard. For example, filters capable of filtering signals of different frequency bands are stored in different paths, and according to the currently determined standard exceeding frequency band, a band-pass filter of the corresponding path is selected to process the input signal.

Fig. 2 is a flowchart of a data processing method shown in the embodiment of the present disclosure, and as shown in fig. 2, the data processing method applied in the terminal includes the following steps:

s11, determining whether the amplitude of the input signal exceeds the standard or not according to the signal amplitude of the input signal;

s12, if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal;

s13, performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency bands in the input signals;

s14, mixing the processed signal of DRC processing on the signal of the standard exceeding frequency band with the signal of the standard reaching frequency band in the input signal;

and S15, outputting the mixed signal to an audio component.

In this embodiment, the excessive frequency band with excessive amplitude is determined through steps S11 to S13, and the signal in the excessive frequency band is subjected to DRC processing, so that the processed signal subjected to DRC processing can be mixed with the signal in the frequency band that meets the standard in the input signal, and the mixed signal is output to the audio component.

Fig. 3 is a flowchart of a data processing method shown in the embodiment of the present disclosure, and as shown in fig. 3, the data processing method applied in the terminal includes the following steps:

s11, determining whether the amplitude of the input signal exceeds the standard or not according to the signal amplitude of the input signal;

and S16, if the amplitude of the input signal is not out of standard, outputting the input signal to an audio component.

In this embodiment, if the amplitude of the input signal does not exceed the standard, it means that the audio component is not damaged when the input signal is output through the audio component, and the output volume does not cause discomfort to the user. Thus, in embodiments of the present disclosure, if the amplitude of the input signal is not out of specification, the input signal is directly output to the audio component.

It can be understood that, by the mode, the DRC suppression of the signal of the single frequency band with the overproof amplitude is not needed when the integral amplitude of the input signal is not overproof, so that the phenomena of signal distortion and influence on user experience can be reduced.

FIG. 4 is a diagram illustrating a data processing apparatus according to an example embodiment. Referring to fig. 4, the data processing apparatus includes:

a first determining module 101 configured to determine whether an amplitude of an input signal exceeds a standard according to the signal amplitude of the input signal;

a second determining module 102, configured to determine, if the amplitude of the input signal exceeds a standard, an exceeding frequency band in which the amplitude of the input signal exceeds the standard;

and the processing module 103 is configured to perform Dynamic Range Control (DRC) processing on the signal in the superscalar frequency band in the input signal.

Optionally, the first determining module 101 is specifically configured to determine that the amplitude of the input signal exceeds a standard when a sampling point of the input signal whose amplitude exceeds a standard is greater than or equal to a standard sampling point threshold.

Optionally, the first determining module 101 is specifically configured to determine that the amplitude of the input signal exceeds the standard when amplitude exceeding sampling points in the input signal are greater than or equal to 1.

Optionally, the second determining module 102 is specifically configured to, if the amplitude of the input signal exceeds the standard, compare the amplitude of the input signal with the amplitude of the historical signal whose amplitude is determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal; and determining that at least one frequency band with the maximum amplitude increase value is selected as the superstandard frequency band with superstandard amplitude.

Optionally, the apparatus further comprises:

a conversion module 104 configured to convert the input signal and the amplitude-qualified historical signal into a frequency domain;

the second determining module 102 is specifically configured to compare, in the frequency domain, an amplitude of a preset frequency band in the input signal with an amplitude of the preset frequency band in the historical signal, so as to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.

Optionally, the apparatus further comprises:

the filtering module 105 is configured to perform filtering processing on the input signal by using a band-pass filter, and separate the signal in the out-of-standard frequency band from the signal in the up-to-standard frequency band whose amplitude meets the standard in the input signal.

Optionally, the apparatus further comprises:

a mixing module 106 configured to mix the processed signal subjected to the DRC processing on the signal in the out-of-standard frequency band with the signal in the up-to-standard frequency band in the input signal;

a first output module 107 configured to output the mixed signal to an audio component.

Optionally, the apparatus further comprises:

a second output module 108 configured to output the input signal to an audio component if the amplitude of the input signal is not out of limits.

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 mobile terminal apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.

Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.

The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 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 components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.

The multimedia component 808 includes a screen that provides an output interface between the device 800 and a 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 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting 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 810 is configured to output and/or input audio data. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio data when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio data may further be stored in memory 804 or transmitted via communications component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio data.

The I/O interface 812 provides an interface between the processing component 802 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 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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 apparatus 800 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 804 comprising instructions, executable by the processor 820 of the device 800 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, instructions in which, when executed by a processor of a terminal, enable the terminal to perform a control method, the method comprising:

determining whether the amplitude of an input signal exceeds a standard or not according to the signal amplitude of the input signal;

if the amplitude of the input signal exceeds the standard, determining an exceeding frequency band with the exceeding amplitude in the input signal;

and performing Dynamic Range Control (DRC) processing on the signals of the superscalar frequency band in the input signals.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:耳机

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!