Data processing method and device, terminal and storage medium
By dynamically determining the over-standard frequency band and performing DRC processing, the problem of signal distortion and poor frequency response caused by suppressing a single frequency band when the overall amplitude of the signal in the prior art is solved, and the sound quality and user experience are improved.
Patent Information
- Application Number
- CN202010601664.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2024-11-05
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN113852893B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a data processing method and device, a terminal and a storage medium. Background Art
[0002] Dynamic Range Control (DRC) is a technology that detects the amplitude of the input signal in the time domain and controls the amplitude of the output signal to not exceed the standard. It is mainly used to control the gain of the audio output to meet the requirement of not exceeding the speaker power.
[0003] DRC technology protects the speaker by presetting fixed frequency bands and DRC parameters such as the amplitude adjustment size corresponding to these frequency bands. However, the above method has the problem of poor frequency response and affects the user experience. Summary of the invention
[0004] The present disclosure provides a data processing method and device, a terminal and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a data processing method, including:
[0006] Determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0007] If the amplitude of the input signal exceeds the standard, determining an excessive frequency band of the input signal where the amplitude exceeds the standard;
[0008] A dynamic range control (DRC) process is performed on the signal in the excess frequency band in the input signal.
[0009] Optionally, determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal includes:
[0010] When the number of sampling points with amplitude exceeding the standard in the input signal is greater than or equal to a threshold of the number of sampling points exceeding the standard, it is determined that the amplitude of the input signal exceeds the standard.
[0011] Optionally, when the number of sampling points in the input signal where the amplitude exceeds the standard is greater than or equal to a threshold of the number of sampling points exceeding the standard, determining that the amplitude of the input signal exceeds the standard includes:
[0012] When the number of sampling points in the input signal where the amplitude exceeds the standard is greater than or equal to one, it is determined that the amplitude of the input signal exceeds the standard.
[0013] Optionally, if the amplitude of the input signal exceeds the standard, determining an excessive frequency band of the input signal in which the amplitude exceeds the standard includes:
[0014] If the amplitude of the input signal exceeds the standard, the amplitude of the input signal is compared with the amplitude of a historical signal whose amplitude has been determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal;
[0015] At least one frequency band with the largest amplitude increase value is determined and selected as the excessive frequency band with excessive amplitude.
[0016] Optionally, the method further includes:
[0017] Convert the input signal and the historical signal with the amplitude reaching the standard into the frequency domain;
[0018] The step of comparing the amplitude of the input signal with the amplitude of a historical signal whose amplitude has been determined to meet the standard to obtain an amplitude increase value between the input signal and the historical signal includes:
[0019] In the frequency domain, the amplitude of the preset frequency band in the input signal is compared 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.
[0020] Optionally, the method further includes:
[0021] The input signal is filtered by using a bandpass filter to separate the signal in the frequency band exceeding the standard and the signal in the frequency band meeting the standard whose amplitude meets the standard in the input signal.
[0022] Optionally, the method further includes:
[0023] Mixing the processed signal of the signal in the frequency band exceeding the standard with the signal in the frequency band meeting the standard in the input signal;
[0024] The mixed signal is output to the audio component.
[0025] Optionally, the method further includes:
[0026] If the amplitude of the input signal does not exceed the limit, the input signal is output to the audio component.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing device, including:
[0028] A first determination module is configured to determine whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0029] A second determination module is configured to determine an excessive frequency band of the input signal where the amplitude exceeds the standard if the amplitude of the input signal exceeds the standard;
[0030] The processing module is configured to perform a dynamic range control (DRC) process on the signal in the out-of-standard frequency band in the input signal.
[0031] Optionally, the first determination module is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points with exceeding amplitude in the input signal is greater than or equal to a threshold number of exceeding sampling points.
[0032] Optionally, the first determination module is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points with amplitude exceeding the standard in the input signal is greater than or equal to one.
[0033] Optionally, the second determination module is specifically configured to compare the amplitude of the input signal with the amplitude of a historical signal whose amplitude has been determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal if the amplitude of the input signal exceeds the standard; and determine to select at least one frequency band with the largest amplitude increase value as the exceeding frequency band with the amplitude exceeding the standard.
[0034] Optionally, the device further comprises:
[0035] A conversion module, configured to convert the input signal and the historical signal with amplitude reaching the standard into a frequency domain;
[0036] The second determination module is specifically configured to compare, in the frequency domain, the amplitude of the 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.
[0037] Optionally, the device further comprises:
[0038] The filtering module is configured to filter the input signal using a bandpass filter to separate the signal in the frequency band exceeding the standard and the signal in the frequency band meeting the standard whose amplitude meets the standard in the input signal.
[0039] Optionally, the device further comprises:
[0040] a mixing module configured to mix a signal processed by performing the DRC processing on the signal in the frequency band exceeding the standard with a signal in the frequency band meeting the standard in the input signal;
[0041] The first output module is configured to output the mixed signal to the audio component.
[0042] Optionally, the device further comprises:
[0043] The second output module is configured to output the input signal to the audio component if the amplitude of the input signal does not exceed the standard.
[0044] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, including:
[0045] processor;
[0046] a memory for storing processor-executable instructions;
[0047] Wherein, the processor is configured to execute the data processing method as described in the first aspect above.
[0048] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:
[0049] When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the data processing method as described in the first aspect above.
[0050] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0051] In the embodiment of the present disclosure, it is determined in advance whether the overall amplitude of the input signal exceeds the standard. When the overall amplitude of the input signal exceeds the standard, the frequency band of the input signal with the amplitude exceeding the standard is determined, and the signal of the frequency band with the amplitude exceeding the standard is subjected to DRC processing. In this way, compared with the method of using the corresponding amplitude determination standard for each frequency division interval according to a fixed frequency division interval and performing DRC processing, the present disclosure can perform processing according to the overall amplitude characteristics of the input signal. When the overall amplitude exceeds the standard, the signal of the frequency band with the amplitude exceeding the standard is subjected to DRC processing, thereby improving the flexibility of DRC processing, reducing the signal distortion caused by the fixed frequency division, suppressing a single frequency band when the overall amplitude of the signal does not exceed the standard, and suppressing a certain frequency in the frequency band when the amplitude does not exceed the standard, reducing the distortion of the input signal after processing, and improving the sound quality of the processed input signal.
[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] 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 present disclosure.
[0054] Figure 1 This is a data processing method flow shown in the embodiment of the present disclosure Figure 1 .
[0055] Figure 2 This is a data processing method flow shown in the embodiment of the present disclosure Figure 2 .
[0056] Figure 3This is a data processing method flow shown in the embodiment of the present disclosure Figure 3 .
[0057] Figure 4 The figure is a diagram of a data processing device according to an exemplary embodiment.
[0058] Figure 5 It is a block diagram of a terminal shown in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0060] Figure 1 This is a data processing method flow shown in the embodiment of the present disclosure Figure 1 ,like Figure 1 As shown, the data processing method applied in the terminal includes the following steps:
[0061] S11, determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0062] S12, if the amplitude of the input signal exceeds the standard, determining an excessive frequency band of the input signal where the amplitude exceeds the standard;
[0063] S13: Performing a dynamic range control (DRC) process on the signal in the frequency band exceeding the standard in the input signal.
[0064] In the embodiments of the present disclosure, the terminal device includes: a mobile device and a fixed device; the mobile device includes: a mobile phone, a tablet computer, etc. The fixed device includes but is not limited to a personal computer (PC). The terminal includes an audio component, which may include: an audio input component and / or an audio component, such as a microphone and / or a speaker. For example, the speaker is a loudspeaker that can play music or voice, etc.
[0065] In the embodiments of the present disclosure, the input signal refers to an audio signal to be input to the audio component, and the input signal is a digital signal, such as a digital signal of music to be played. The digital signal is processed by DRC, and then converted into an analog signal by a digital to analog converter (DAC) and input to the audio component, and then output to the user through the audio component; or, the input audio is processed by DRC and stored as an audio file that can be played later.
[0066] The role of DRC is to reduce audio distortion and protect audio components. If the amplitude of the signal input to the audio component exceeds the standard, it may cause peak clipping when DRC processing is not used, that is, the signal of the frequency band with excessive amplitude is directly cut off, causing signal distortion; or if DRC processing and peak clipping are not performed, the audio component may be damaged.
[0067] In the disclosed embodiment, it is first determined whether the amplitude of the input signal exceeds the standard. The input signal includes a signal sampled within a continuous period of time, for example, a sampled signal including 512 to 2048 frames. The frequency bands of signals at different sampling times may be different, wherein the frequency band refers to the frequency (HZ) range, for example, for audio data, it can be divided into low frequency, medium frequency and high frequency, etc. The frequency range that the human ear can usually perceive is 20HZ to 20KHZ, of which 20HZ to 1KHZ may be a low frequency band, 1KHZ to 10KHZ may be a medium frequency band, and 10KHZ to 20KHZ may be a high frequency band.
[0068] 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. Exceeding the standard means that the amplitude of the signal exceeds the preset amplitude threshold.
[0069] In an embodiment of the present disclosure, when determining whether the amplitude of the input signal exceeds the standard based on the signal amplitude of the input signal, the determination can be based on the amplitude of any one or more sampling points in the input signal. For example, as long as the amplitude of one sampling point exceeds a preset amplitude threshold, it is determined that the amplitude of the input signal exceeds the standard. It can also be determined based on the amplitudes of all sampling points in the input signal. For example, the average of the amplitudes of the sampling points is determined. If the average exceeds the preset amplitude threshold, it is determined that the amplitude of the input signal exceeds the standard.
[0070] In step S12, if the amplitude of the input signal exceeds the standard, an excessive frequency band of the input signal with an excessive amplitude is determined. In the embodiment of the present disclosure, the excessive frequency band refers to a frequency band where the signal amplitude exceeds a preset amplitude threshold.
[0071] In one embodiment, the over-standard frequency band can be directly determined based on the current input signal and the 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, it is determined as the over-standard frequency band.
[0072] In another embodiment, the frequency band exceeding the standard can also be dynamically determined based on the current input signal and the historical signal. The historical signal includes but is not limited to the audio signal buffered in the terminal, which is also a digital signal. By comparing the amplitude values of each frequency band of the input signal and the historical signal, the frequency band with the largest increase in amplitude value is determined as the frequency band exceeding the standard.
[0073] The historical signal may not be the audio signal currently buffered, but has been discarded from the buffer, but the amplitude of the historical signal is recorded. In this way, the over-standard frequency band can be determined based on the amplitude of the current input signal and the historical signal.
[0074] In step S13, after the frequency band exceeding the standard is determined, the signal of the frequency band exceeding the standard in the input signal is subjected to DRC processing, and the amplitude of the signal of the frequency band exceeding the standard after the DRC processing does not exceed the standard.
[0075] For example, if the amplitude of the signal in the frequency band exceeding the standard is higher than a preset amplitude threshold, the amplitude of the signal in the frequency band exceeding the standard is reduced.
[0076] As described in the background technology, in one way, the DRC implementation method is to pre-set the DRC action frequency band range and adjustment parameters. However, if the overall amplitude of the audio signal does not exceed the standard, DRC suppression will still be performed, which will cause signal distortion, thereby affecting the user's auditory experience. In addition, if a fixed frequency band is suppressed, audio signals that are included in the same frequency band but do not exceed the standard will be suppressed together, resulting in poor frequency response of sounds at certain frequencies, thereby affecting the user's experience.
[0077] In the present disclosure, it is determined in advance whether the overall amplitude of the input signal exceeds the standard. When the overall amplitude of the input signal exceeds the standard, the frequency band of the input signal with the amplitude exceeding the standard is determined, and the signal of the frequency band with the amplitude exceeding the standard is subjected to DRC processing. In this way, compared with the method of using a corresponding amplitude judgment standard for each frequency division interval and performing DRC processing based on a fixed frequency division interval, the present disclosure can process based on the overall amplitude characteristics of the input signal. When the overall amplitude exceeds the standard, the signal of the frequency band with the amplitude exceeding the standard is subjected to DRC processing. Therefore, the flexibility of DRC processing can be improved, and the signal distortion caused by the fixed frequency division, the suppression of a single frequency band when the overall amplitude of the signal does not exceed the standard, and the suppression when the amplitude does not exceed the standard can be reduced, thereby improving the user experience.
[0078] It should be noted that, in the embodiment of the present disclosure, when the signal of the out-of-standard frequency band is subjected to DRC processing, if the amplitude of the out-of-standard frequency band returns to the normal range, the DRC processing of the frequency band is cancelled.
[0079] In one embodiment, determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal includes:
[0080] When the number of sampling points with amplitude exceeding the standard in the input signal is greater than or equal to a threshold of the number of sampling points exceeding the standard, it is determined that the amplitude of the input signal exceeds the standard.
[0081] In this embodiment, whether the amplitude of the input signal exceeds the standard is determined based on the number of sampling points with exceeding amplitude in the input signal. When the number of sampling points with exceeding amplitude is greater than or equal to the exceeding sampling point number threshold, it is determined that the amplitude of the input signal exceeds the standard.
[0082] By setting the sampling point threshold, the judgment can be made according to the accuracy requirement of judging whether the amplitude exceeds the standard, which is flexible.
[0083] In one embodiment, when the sampling points of the input signal having an amplitude exceeding the standard are greater than or equal to a threshold number of sampling points exceeding the standard, determining that the amplitude of the input signal exceeds the standard includes:
[0084] When the number of sampling points in the input signal where the amplitude exceeds the standard is greater than or equal to one, it is determined that the amplitude of the input signal exceeds the standard.
[0085] In this embodiment, when the amplitude of a sampling point exceeds the standard, it is possible that the amplitude of the input signal exceeds the standard. Therefore, the threshold of the number of sampling points exceeding the standard can be set to 1. In this way, the frequency band exceeding the standard can be determined from the input signal as much as possible, and the signal of the frequency band exceeding the standard is processed by DRC, which can reduce signal distortion and speaker damage.
[0086] In one embodiment, if the amplitude of the input signal exceeds the standard, determining the exceeding frequency band of the input signal in which the amplitude exceeds the standard includes:
[0087] If the amplitude of the input signal exceeds the standard, the amplitude of the input signal is compared with the amplitude of a historical signal whose amplitude has been determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal;
[0088] At least one frequency band with the largest amplitude increase value is determined and selected as the excessive frequency band with excessive amplitude.
[0089] 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 a historical signal whose amplitude has been determined to meet the standard, and at least one frequency band with the largest amplitude increase value is determined as the exceeding frequency band with the amplitude exceeding the standard.
[0090] It should be noted that the historical signal with amplitude reaching the standard is a historical signal collected continuously with the input signal, and the input signal uses the same method as the current input signal to determine whether the amplitude exceeds the standard. As mentioned above, the historical signal is an audio signal cached in the terminal, and the audio signal is also a digital signal.
[0091] In an embodiment of the present disclosure, at least one frequency band with the largest amplitude increase value may be an excess frequency band determined according to a number threshold after sorting the amplitude increase values between the input signal and the historical signal in order of magnitude.
[0092] For example, when the number threshold is 1, the selected frequency band that exceeds the standard is the frequency band with the largest amplitude increase value; if the number threshold is 3, the selected frequency bands that exceed the standard are the three frequency bands with the largest amplitude increase values.
[0093] By comparing the input signal with the historical signal whose amplitude does not exceed the standard, the frequency band with the amplitude exceeding the standard is determined. That is, real-time dynamic detection is performed, and the DRC action frequency band is dynamically adjusted according to the amplitude of each frequency band, avoiding the impact on the frequency band that does not exceed the standard. Therefore, the frequency response of the output signal can be better, improving the user experience.
[0094] In one embodiment, the method further comprises:
[0095] Convert the input signal and the historical signal with the amplitude reaching the standard into the frequency domain;
[0096] The step of comparing the amplitude of the input signal with the amplitude of a historical signal whose amplitude has been determined to meet the standard to obtain an amplitude increase value between the input signal and the historical signal includes:
[0097] In the frequency domain, the amplitude of the preset frequency band in the input signal is compared 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.
[0098] In this embodiment, the input signal and the historical signal with amplitude reaching the standard are converted into the frequency domain, and the amplitude increase value between the input signal and the historical signal is determined in the frequency domain.
[0099] The frequency domain gives the corresponding relationship between frequency and amplitude, so the amplitude increase value corresponding to each preset frequency band can be easily determined through the frequency domain. Among them, the preset frequency band can include multiple frequency bands. The more preset frequency bands there are, the more precise the over-standard frequency band determined based on the amplitude increase value, the more precise the corresponding DRC processing is, and the better the audio processing effect will be. For example, the preset frequency band can be more than 10 frequency bands.
[0100] When converting the input signal and the historical signal with the amplitude meeting the standard to the frequency domain, the Fourier transform method can be used. For the historical signal with the amplitude meeting the standard, the amplitude of each preset frequency band is saved after the Fourier transform. For the input signal, after the Fourier transform, the amplitude value of each preset frequency band is compared with the amplitude value of each preset frequency band of the corresponding stored historical signal to obtain the amplitude increase value of the input signal in each preset frequency band relative to the historical signal. According to the amplitude increase value, it is determined which preset frequency band has a larger amplitude increase, resulting in the overall amplitude exceeding the standard, and the preset frequency band is considered to be the exceeding frequency band.
[0101] For example, taking the frequency band in the range of 20HZ to 20KHZ as an example, the preset frequency band may include 15 frequency bands, including 200HZ to 400HZ, 401HZ to 500HZ, 501HZ to 1KHZ, 1.1KHZ to 2KHZ, etc. When playing the song "Crossing", Tsai Chin's singing voice is between 500Hz and 2KHz, and the sound of the drum is within 400Hz. Tsai Chin's singing voice is continuous, and the sound of the drum appears occasionally. If the current input signal includes the sound of the drum, it may cause the overall amplitude to exceed the standard. Comparing the amplitude of the preset frequency band in the historical signal (Tsai Chin's singing voice) whose amplitude does not exceed the standard, because there is no 200HZ to 400HZ frequency band signal in the historical signal, it is found that when the overall amplitude of the current input signal exceeds the standard, the amplitude increase value of the signal including the 400Hz frequency band is the largest, so the frequency band to which the drum sound belongs is determined as the frequency band that exceeds the standard.
[0102] In one embodiment, when DRC processing is performed based on a fixed frequency band, in the same frequency division interval, there may be both signals with amplitudes exceeding the standard, such as 18KHz, and normal sound signals with amplitudes within the standard, such as 18.5KHz. Because the signals with amplitudes exceeding the standard and the signals with amplitudes within the standard are both in the same frequency division interval, they will be suppressed together after DRC processing, resulting in abnormal sound changes and poor frequency response.
[0103] For example, in the song "Crossing the River", Tsai Chin's bass and the sound of the drums are both in the low-frequency range. When the sound of the drums is played, if the amplitude of the superposition of Tsai Chin's bass and the sound of the drums exceeds the amplitude corresponding to the low-frequency range, then under the action of DRC, Tsai Chin's singing voice will be suppressed together. Because Tsai Chin's singing voice is continuous, while the sound of the drums is discontinuous, the volume of Tsai Chin's singing voice will be louder and lower.
[0104] In the embodiments of the present invention, by comparing with historical signals whose amplitude does not exceed the standard, the frequency band with excessive amplitude is dynamically determined, and DRC processing is performed only on the excessive frequency band (for example, the excessive frequency band is determined to be the frequency band where the drum sound is located, and only the frequency band of the drum sound is suppressed), while the remaining frequency bands are not subjected to DRC processing, thereby avoiding the influence on the frequency band that does not exceed the standard, that is, the signal for DRC suppression is selected more precisely, and the processing of unnecessary frequency bands is reduced, thereby improving the user experience.
[0105] In one embodiment, the method further comprises:
[0106] The input signal is filtered by using a bandpass filter to separate the signal in the frequency band exceeding the standard and the signal in the frequency band meeting the standard whose amplitude meets the standard in the input signal.
[0107] The bandpass filter allows waves in a specific frequency band to pass through. Therefore, in this embodiment, the bandpass filter can be used to filter the input signal to separate the signals in the input signal in the frequency band that exceeds the standard and the signals in the frequency band that meets the standard amplitude.
[0108] It can be understood that, by using a bandpass filter, it is convenient to separate the signal in the frequency band exceeding the standard in the input signal, and the terminal can perform DRC processing on the signal in the frequency band exceeding the standard.
[0109] It should be noted that, in an embodiment of the present disclosure, the filtering parameters of the bandpass filter are adjustable, and the filtering of signals in different over-standard frequency bands is achieved by using the bandpass filter with adjustable filtering parameters.
[0110] In another embodiment, a plurality of bandpass filters may also be provided in the terminal, and the terminal may select a filter corresponding to the frequency band that exceeds the standard according to the determined frequency band that exceeds the standard, to separate the signal of the frequency band that exceeds the standard from the signal of the frequency band that meets the standard amplitude. For example, filters that can filter signals of different frequency bands are stored in different paths, and according to the currently determined frequency band that exceeds the standard, a bandpass filter of the corresponding path is selected to process the input signal.
[0111] Figure 2 This is a data processing method flow shown in the embodiment of the present disclosure Figure 2 ,like Figure 2 As shown, the data processing method applied in the terminal includes the following steps:
[0112] S11, determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0113] S12, if the amplitude of the input signal exceeds the standard, determining an excessive frequency band of the input signal where the amplitude exceeds the standard;
[0114] S13, performing a dynamic range control (DRC) process on the signal in the frequency band exceeding the standard in the input signal;
[0115] S14, mixing the processed signal of the signal in the frequency band exceeding the standard with the signal in the frequency band meeting the standard in the input signal;
[0116] S15. Output the mixed signal to the audio component.
[0117] In this embodiment, after steps S11 to S13 determine the excessive frequency band with excessive amplitude, and perform DRC processing on the signal in the excessive frequency band, the processed signal after DRC processing can be mixed with the signal in the standard frequency band of the input signal, and the mixed signal can be output to the audio component. In this way, the signal input to the audio component is not lost.
[0118] Figure 3 This is a data processing method flow shown in the embodiment of the present disclosure Figure 3 ,like Figure 3 As shown, the data processing method applied in the terminal includes the following steps:
[0119] S11, determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0120] S16: If the amplitude of the input signal does not exceed the standard, output the input signal to the audio component.
[0121] In this embodiment, if the amplitude of the input signal does not exceed the standard, it means that when the input signal is output through the audio component, the audio component will not be damaged, and the output volume will not cause discomfort to the user. Therefore, in the embodiment of the present disclosure, if the amplitude of the input signal does not exceed the standard, the input signal is directly output to the audio component.
[0122] It can be understood that, through this method, there is no need to perform DRC suppression on the signal of a single frequency band with an amplitude exceeding the standard when the overall amplitude of the input signal does not exceed the standard, thereby reducing signal distortion and affecting the user experience.
[0123] Figure 4 FIG. 1 is a diagram showing a data processing device according to an exemplary embodiment. Figure 4 , the data processing device comprises:
[0124] A first determination module 101 is configured to determine whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0125] The second determination module 102 is configured to determine an excessive frequency band of the input signal where the amplitude exceeds the standard if the amplitude of the input signal exceeds the standard;
[0126] The processing module 103 is configured to perform a dynamic range control (DRC) process on the signal in the out-of-standard frequency band in the input signal.
[0127] Optionally, the first determination module 101 is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points with exceeding amplitude in the input signal is greater than or equal to a threshold of the number of exceeding sampling points.
[0128] Optionally, the first determination module 101 is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points with the amplitude exceeding the standard in the input signal is greater than or equal to one.
[0129] Optionally, the second determination module 102 is specifically configured to compare the amplitude of the input signal with the amplitude of a historical signal whose amplitude has been determined to meet the standard, to obtain an amplitude increase value between the input signal and the historical signal if the amplitude of the input signal exceeds the standard; and determine to select at least one frequency band with the largest amplitude increase value as the exceeding frequency band with the exceeding amplitude.
[0130] Optionally, the device further comprises:
[0131] A conversion module 104, configured to convert the input signal and the historical signal with amplitude reaching the standard into a frequency domain;
[0132] The second determination module 102 is specifically configured to compare the amplitude of the preset frequency band in the input signal with the amplitude of the preset frequency band in the historical signal in the frequency domain to obtain the amplitude increase value of the input signal and the historical signal in the preset frequency band.
[0133] Optionally, the device further comprises:
[0134] The filtering module 105 is configured to filter the input signal using a bandpass filter to separate the signal in the frequency band exceeding the standard from the signal in the frequency band meeting the standard with amplitude meeting the standard.
[0135] Optionally, the device further comprises:
[0136] A mixing module 106, configured to mix the signal processed by the DRC processing on the signal of the frequency band exceeding the standard with the signal of the frequency band meeting the standard in the input signal;
[0137] The first output module 107 is configured to output the mixed signal to the audio component.
[0138] Optionally, the device further comprises:
[0139] The second output module 108 is configured to output the input signal to the audio component if the amplitude of the input signal does not exceed the limit.
[0140] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0141] Figure 5 8 is a block diagram of a mobile terminal device 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
[0142] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0143] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0144] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0145] The power component 806 provides power to the various components of the device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0146] The multimedia component 808 includes a screen that provides an output interface between the device 800 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 input signals from the 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 boundaries of the 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 camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0147] The audio component 810 is configured to output and / or input audio data. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive external audio data. The received audio data can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio data.
[0148] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as 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.
[0149] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The 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 an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0150] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can 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 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0151] 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, microcontrollers, microprocessors or other electronic components to perform the above method.
[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0153] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform a control method, the method comprising:
[0154] Determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal;
[0155] If the amplitude of the input signal exceeds the standard, determining an excessive frequency band of the input signal where the amplitude exceeds the standard;
[0156] A dynamic range control (DRC) process is performed on the signal in the excess frequency band in the input signal.
[0157] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0158] It should be understood that the present disclosure is not limited to the exact structures that have been 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.
Claims
1. A data processing method, characterized in that: The method comprises: Determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal; Convert the input signal and the historical signal whose amplitude has been determined to meet the standard into the frequency domain; If the amplitude of the input signal exceeds the standard, in the frequency domain, the amplitude of the preset frequency band in the input signal is compared with the amplitude of the preset frequency band in the historical signal to obtain an amplitude increase value of the input signal and the historical signal in the preset frequency band; wherein the historical signal includes a cached audio signal; Determine and select the frequency band with the largest amplitude increase value as the frequency band exceeding the standard where the amplitude exceeds the standard; A dynamic range control (DRC) process is performed on the signal in the excess frequency band in the input signal.
2. The method according to claim 1, characterized in that The step of determining whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal includes: When the number of sampling points whose amplitude exceeds the standard in the input signal is greater than or equal to a threshold of the number of sampling points exceeding the standard, it is determined that the amplitude of the input signal exceeds the standard.
3. The method according to claim 2, characterized in that When the number of sampling points in the input signal whose amplitude exceeds the standard is greater than or equal to a threshold of the number of sampling points exceeding the standard, determining that the amplitude of the input signal exceeds the standard includes: When the number of sampling points in the input signal whose amplitude exceeds the standard is greater than or equal to 1, it is determined that the amplitude of the input signal exceeds the standard.
4. The method according to claim 1, characterized in that The method further comprises: The input signal is filtered by using a bandpass filter to separate the signal in the frequency band exceeding the standard and the signal in the frequency band meeting the standard whose amplitude meets the standard in the input signal.
5. The method according to claim 4, characterized in that The method further comprises: Mixing the processed signal of the signal in the frequency band exceeding the standard with the signal in the frequency band meeting the standard in the input signal; The mixed signal is output to the audio component.
6. The method according to claim 1, characterized in that The method further comprises: If the amplitude of the input signal does not exceed the limit, the input signal is output to the audio component.
7. A data processing device, characterized in that: The device comprises: A first determination module is configured to determine whether the amplitude of the input signal exceeds a standard according to the signal amplitude of the input signal; A conversion module, configured to convert the input signal and the historical signal whose amplitude has been determined to meet the standard into a frequency domain; The second determination module is configured to compare the amplitude of a preset frequency band in the input signal with the amplitude of the preset frequency band in the historical signal in the frequency domain to obtain an amplitude increase value of the input signal and the historical signal in the preset frequency band if the amplitude of the input signal exceeds the standard; determine and select the frequency band with the largest amplitude increase value as the frequency band with the amplitude exceeding the standard; wherein the historical signal includes a cached audio signal; The processing module is configured to perform dynamic range control (DRC) processing on the signal in the out-of-standard frequency band in the input signal.
8. The device according to claim 7, characterized in that The first determination module is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points with exceeding amplitude in the input signal is greater than or equal to a threshold of the number of exceeding sampling points.
9. The device according to claim 8, characterized in that The first determination module is specifically configured to determine that the amplitude of the input signal exceeds the standard when the number of sampling points in the input signal whose amplitude exceeds the standard is greater than or equal to one.
10. The device according to claim 7, characterized in that The device also includes: The filtering module is configured to filter the input signal using a bandpass filter to separate the signal in the frequency band exceeding the standard and the signal in the frequency band meeting the standard whose amplitude meets the standard in the input signal.
11. The device according to claim 10, characterized in that The device also includes: a mixing module configured to mix a signal processed by performing the DRC processing on the signal in the frequency band exceeding the standard with a signal in the frequency band meeting the standard in the input signal; The first output module is configured to output the mixed signal to the audio component.
12. The device according to claim 7, characterized in that The device also includes: The second output module is configured to output the input signal to the audio component if the amplitude of the input signal does not exceed the standard.
13. A terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the data processing method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the data processing method according to any one of claims 1 to 6.
