CN104242850A - Audio signal processing method and electronic device - Google Patents

Audio signal processing method and electronic device Download PDF

Info

Publication number
CN104242850A
CN104242850A CN201410455520.1A CN201410455520A CN104242850A CN 104242850 A CN104242850 A CN 104242850A CN 201410455520 A CN201410455520 A CN 201410455520A CN 104242850 A CN104242850 A CN 104242850A
Authority
CN
China
Prior art keywords
gain coefficient
noise component
frequency domain
component
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410455520.1A
Other languages
Chinese (zh)
Inventor
齐峰岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410455520.1A priority Critical patent/CN104242850A/en
Publication of CN104242850A publication Critical patent/CN104242850A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an audio signal processing method and an electronic device. The audio signal processing method is applied to an electronic device provided with an audio playing unit and comprises the steps that an audio file to be processed is obtained, the noise component in the audio file is recognized, the noise component is processed by means of a first gain coefficient, and a noise-free component in the audio file is processed by means of a second gain coefficient, wherein the first gain coefficient is smaller than the second gain coefficient. By the adoption of the audio signal processing method or the electronic device, a noise signal in an audio signal is prevented from being amplified at the same amplitude when the audio signal is amplified, the gain of the noise signal in the audio signal is reduced, and thus the quality of sounds output by the electronic device is improved.

Description

A kind of acoustic signal processing method and electronic equipment
Technical field
The present invention relates to field of information processing, particularly relate to a kind of acoustic signal processing method and electronic equipment.
Background technology
Along with the technology development of electronic equipment, user is also more and more higher for the requirement of electronic equipment.For the electronic equipment with audio playing unit, the sound exported when user wishes electronic equipment audio plays usually has higher quality.
In prior art, acoustic signal processing method for improving sound quality mainly adopts dynamic range control (Dynamic range control, DRC) technology, adopt higher gain to amplify audio signal less for script volume, adopt lower gain to amplify audio signal larger for script volume.
Although this method can make user hear, script volume is less and not easily by the sound discovered, in the process of amplifying audio signal, be also exaggerated the noise components in audio signal, causes masked noise to be originally perceived by the user.
Summary of the invention
The object of this invention is to provide a kind of acoustic signal processing method and electronic equipment, can while audio signal be amplified, avoid the amplification noise signal in audio signal being carried out to equal extent, reduce the gain to the noise signal in audio signal, thus improve the sound quality of electronic equipment output.
For achieving the above object, the invention provides following scheme:
A kind of acoustic signal processing method, be applied to the electronic equipment with audio playing unit, described method comprises:
Obtain pending audio file;
Identify the noise component(s) in described audio file;
The first gain coefficient is adopted to process to described noise component(s);
The second gain coefficient is adopted to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
Optionally, before the noise component(s) in the described audio file of described identification, also comprise:
Whether the form judging described audio file is lossy compression method form, obtains the first judged result;
When the form that described first judged result represents described audio file is lossy compression method form, perform the step of the noise component(s) identified in described audio file.
Optionally, the noise component(s) in the described audio file of described identification, specifically comprises:
Extract the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency;
Determine that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength;
By sound component corresponding for the frequency domain parameter being all less than described first preset signal strength in continuous print frequency domain, be defined as described noise component(s).
Optionally, describedly adopt before the first gain coefficient processes to described noise component(s), also comprise:
Determine at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
In the number range that described 3rd gain coefficient and described 4th gain coefficient are formed, determine described first gain coefficient.
Optionally, describedly adopt before the first gain coefficient processes to described noise component(s), also comprise:
Determine at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at time domain scale; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
In the number range that described 5th gain coefficient and described 6th gain coefficient are formed, determine described first gain coefficient.
Optionally, describedly determine, at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient, specifically to comprise:
Determine the audio frame at described noise component(s) place;
Determine in the previous frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s);
Determine in the next frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
A kind of electronic equipment, described electronic equipment has audio playing unit, and described electronic equipment comprises:
Acquiring unit, for obtaining pending audio file;
Recognition unit, for identifying the noise component(s) in described audio file;
Noise component(s) processing unit, for adopting the first gain coefficient to process to described noise component(s);
Non-noise component processing unit, for adopting the second gain coefficient to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
Optionally, also comprise:
Judging unit, before identifying the noise component(s) in described audio file, judges whether the form of described audio file is lossy compression method form, obtains the first judged result;
Control unit, for when the form that described first judged result represents described audio file is lossy compression method form, controls the step that described recognition unit performs the noise component(s) identified in described audio file.
Optionally, described recognition unit, specifically comprises:
Frequency domain parameter extracts subelement, and for extracting the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency;
Frequency domain parameter determination subelement, for determining that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength;
Noise component(s) determination subelement, the sound component that the frequency domain parameter for being all less than described first preset signal strength in continuous print frequency domain is corresponding, is defined as described noise component(s).
Optionally, also comprise:
3rd gain coefficient and the 4th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
First gain coefficient first determining unit, in the number range that forms at described 3rd gain coefficient and described 4th gain coefficient, determines described first gain coefficient.
Optionally, also comprise:
5th gain coefficient and the 6th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at time domain scale; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
First gain coefficient second determining unit, in the number range that forms at described 5th gain coefficient and described 6th gain coefficient, determines described first gain coefficient.
Optionally, described 5th gain coefficient and the 6th gain coefficient determining unit, specifically comprise:
Noised audio frame determination subelement, for determining the audio frame at described noise component(s) place;
5th gain coefficient determination subelement, for determining in the previous frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s);
6th gain coefficient determination subelement, for determining in the next frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Acoustic signal processing method of the present invention and electronic equipment, by identifying the noise component(s) in described audio file; The first gain coefficient is adopted to process to described noise component(s); The second gain coefficient being greater than described first gain coefficient is adopted to process to the non-noise component in described audio file; While audio signal is amplified, the amplification noise signal in audio signal being carried out to equal extent can be avoided, reduce the gain to the noise signal in audio signal, thus improve the sound quality of electronic equipment output.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of acoustic signal processing method embodiment 1 of the present invention;
Fig. 2 is the flow chart of acoustic signal processing method embodiment 2 of the present invention;
Fig. 3 is the flow chart of acoustic signal processing method embodiment 3 of the present invention;
Fig. 4 is the flow chart of acoustic signal processing method embodiment 4 of the present invention;
Fig. 5 is the structure chart of the embodiment of electronic equipment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Acoustic signal processing method of the present invention, is applied to the electronic equipment with audio playing unit.Described electronic equipment can be the various equipment such as mobile phone, panel computer, desktop computer, television set, CD Player.Described audio playing unit can be loud speaker.
Fig. 1 is the flow chart of acoustic signal processing method embodiment 1 of the present invention.As shown in Figure 1, the method can comprise:
Step 101: obtain pending audio file;
Described audio file can be various types of audio file.Such as, described audio file can be MP3 format, also can be FLAC form.
Step 102: identify the noise component(s) in described audio file;
Noise component(s) can refer to the noise component(s) produced in the process compress original audio file.This noise component(s) has certain feature.According to above-mentioned feature, noise component(s) can be identified.
Such as, the volume of noise component(s) is less than non-noise component usually, and the frequency of noise component(s) also can be relatively-stationary frequency.When identifying the volume in a certain frequency range and being less than certain threshold value, just the sound component in this frequency range can be defined as noise component(s).
Step 103: adopt the first gain coefficient to process to described noise component(s);
Described first gain coefficient can be the coefficient regulated the volume of described noise component(s).When described first gain coefficient is greater than 1, the volume after expression regulates is greater than the volume before adjustment; When described first gain coefficient is less than 1, the volume after expression regulates is less than the volume before adjustment.
Step 104: adopt the second gain coefficient to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
Described second gain coefficient can be the coefficient regulated the volume of described non-noise component.
Under the condition that initial volume is identical, gain coefficient is larger, then the volume after adjustment is also larger.
In sum, in the present embodiment, by identifying the noise component(s) in described audio file; The first gain coefficient is adopted to process to described noise component(s); The second gain coefficient being greater than described first gain coefficient is adopted to process to the non-noise component in described audio file; While audio signal is amplified, the amplification noise signal in audio signal being carried out to equal extent can be avoided, reduce the gain to the noise signal in audio signal, thus improve the sound quality of electronic equipment output.
Fig. 2 is the flow chart of acoustic signal processing method embodiment 2 of the present invention.As shown in Figure 2, the method can comprise:
Step 201: obtain pending audio file;
Step 202: whether the form judging described audio file is lossy compression method form, obtains the first judged result;
For the form of audio file, be divided into nondestructive compression type and lossy compression method form.Nondestructive compression type, is utilize the statistical redundancy of data to compress, can recovers initial data completely and not cause any distortion.Therefore, for the audio file of nondestructive compression type, in compression process, noise can not be introduced.And lossy compression method, be make use of the mankind to the insensitive characteristic of some frequency content in image or sound wave, allow to lose certain information in compression process.Therefore, when the form of described audio file is lossy compression method form, need to suppress the noise component(s) in audio file.
Concrete, nondestructive compression type comprises: APE, FLAC etc.Lossy compression method form can comprise: MP3, WMA etc.
Step 203: when the form that described first judged result represents described audio file is lossy compression method form, identify the noise component(s) in described audio file;
In the present embodiment, when the form of described audio file is lossy compression method form, just perform the step of the noise component(s) identified in described audio file; When the form of described audio file is nondestructive compression type, the step of the noise component(s) identified in described audio file no longer can be performed.Because in the process of Lossless Compression, usually can not noise be introduced, so do not need to carry out identifying processing to the noise component(s) in audio file.
In the process that described audio file is processed, usually can obtain the spectrogram corresponding with described audio file.Described spectrogram changes in time and changes.Described spectrogram can represent the frequency spectrum of described audio file sound at a time.
On the other hand, the volume value of noise component(s) usually can be smaller, also may concentrate in some specific frequency range.
Therefore, identify the noise component(s) in described audio file, specifically can in the following ways:
Extract the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency; Determine that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength; By sound component corresponding for the frequency domain parameter being all less than described first preset signal strength in continuous print frequency domain, be defined as described noise component(s).
Step 204: adopt the first gain coefficient to process to described noise component(s);
Step 205: adopt the second gain coefficient to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
In the present embodiment, by judging whether the form of described audio file is lossy compression method form, obtains the first judged result; When the form that described first judged result represents described audio file is lossy compression method form, just perform the step of the noise component(s) identified in described audio file; The processing procedure only carrying out reducing noise component to the audio file of lossy compression method form can be realized, for the file of nondestructive compression type, this processing procedure can be performed, thus the efficiency of the acoustic signal processing method of the present embodiment can be improved.
In practical application, in order to avoid the gain coefficient adopted for noise component(s) is too small, cause the disappearance of the volume in frequency range corresponding to this noise component(s) to cause lofty sense acoustically to user, present invention also offers the following examples.
Fig. 3 is the flow chart of acoustic signal processing method embodiment 3 of the present invention.As shown in Figure 3, the method can comprise:
Step 301: obtain pending audio file;
Step 302: identify the noise component(s) in described audio file;
Step 303: determine at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
Suppose that the frequency range of noise component(s) is 100Hz to 200Hz, the frequency range that be adjacent and frequency is less than the first non-noise component of described noise component(s) is 1Hz to 100Hz, be adjacent and frequency is greater than the frequency range of the second non-noise component of described noise component(s) for being 200Hz to 300Hz, 3rd gain coefficient of described first non-noise component is 1.2,4th gain coefficient of described second non-noise component is 1.5, then the number range that described 3rd gain coefficient and described 4th gain coefficient are formed is 1.2 to 1.5.
Step 304: in the number range that described 3rd gain coefficient and described 4th gain coefficient are formed, determine described first gain coefficient.
In hypothesis above, from the number range of 1.2 to 1.5, described first gain coefficient can be determined.Such as, described first gain coefficient can be defined as 1.35.
Step 305: adopt the first gain coefficient to process to described noise component(s);
Step 306: adopt the second gain coefficient to process to the other non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
Other non-noise component in described audio file can refer to, removes the non-noise component outside described first non-noise component and described second non-noise component.
In the present embodiment, because described first gain coefficient determines in the number range formed at described 3rd gain coefficient and described 4th gain coefficient, therefore, the gain coefficient for noise component(s) employing can be avoided too small, and the volume reduced in frequency range corresponding to this noise component(s) reduces the lofty sense acoustically caused user.
It should be noted that, in embodiment 3, realization be smoothing process in frame when a frame audio-frequency information is processed.And audio file is when playing, also preferably relative smooth between different audio frames, therefore, can also carry out interframe smoothing processing to multiple continuous print audio frame.In order to carry out interframe smoothing processing to multiple continuous print audio frame, present invention also offers embodiment 4.
Fig. 4 is the flow chart of acoustic signal processing method embodiment 4 of the present invention.As shown in Figure 4, the method can comprise:
Step 401: obtain pending audio file;
Step 402: identify the noise component(s) in described audio file;
Step 403: determine at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at frequency domain; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
In the sound component that time domain scale is adjacent with described noise component(s), in the former frame that can refer to the audio frame at described noise component(s) place or multiframe, the sound component identical or close with the frequency of described noise component(s), and in a rear frame of the audio frame at described noise component(s) place or multiframe, the sound component identical or close with the frequency of described noise component(s).
Concrete, described 5th gain coefficient and described 6th gain coefficient can be determined in the following ways:
Determine the audio frame at described noise component(s) place; Determine in the previous frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s); Determine in the next frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
It should be noted that, in practical application, also can according in N before described audio frame (N is positive integer) frame audio frame, the mean value of the gain coefficient of the sound component of identical frequency domain is in as the 5th gain coefficient with described noise component(s), and in the rear N frame audio frame of described audio frame, be in the mean value of the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).In addition, in the front N frame audio frame of described audio frame, being in the sound component of identical frequency domain with described noise component(s), can be noise component(s), also can be non-noise component(s); In the rear N frame audio frame of described audio frame, being in the sound component of identical frequency domain with described noise component(s), can be noise component(s) equally, also can be non-noise component(s).
Step 404: in the number range that described 5th gain coefficient and described 6th gain coefficient are formed, determine described first gain coefficient.
Suppose that the frequency range of noise component(s) is 100Hz to 200Hz, in the previous frame audio frame of the audio frame at described noise component(s) place, the gain coefficient of the sound component of the frequency domain of 100Hz to 200Hz is 0.9, in the next frame audio frame of the audio frame at described noise component(s) place, the gain coefficient of the sound component of the frequency domain of 100Hz to 200Hz is 0.5, then in the number range of 0.5 to 0.9, described first gain coefficient can be determined.
Such as, described first gain coefficient can be defined as 0.7.
Step 405: adopt the first gain coefficient to process to described noise component(s);
Step 406: adopt the second gain coefficient to process to the other non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
The invention also discloses a kind of electronic equipment.Described electronic equipment can be the various equipment such as mobile phone, panel computer, desktop computer, television set, CD Player.Described audio playing unit can be loud speaker.
Fig. 5 is the structure chart of the embodiment of electronic equipment of the present invention.As shown in Figure 5, this electronic equipment can comprise:
Acquiring unit 501, for obtaining pending audio file;
Described audio file can be various types of audio file.Such as, described audio file can be MP3 format, also can be FLAC form.
Recognition unit 502, for identifying the noise component(s) in described audio file;
Noise component(s) can refer to the noise component(s) produced in the process compress original audio file.This noise component(s) has certain feature.According to above-mentioned feature, noise component(s) can be identified.
Such as, the volume of noise component(s) is less than non-noise component usually, and the frequency of noise component(s) also can be relatively-stationary frequency.When identifying the volume in a certain frequency range and being less than certain threshold value, just the sound component in this frequency range can be defined as noise component(s).
Noise component(s) processing unit 503, for adopting the first gain coefficient to process to described noise component(s);
Described first gain coefficient can be the coefficient regulated the volume of described noise component(s).When described first gain coefficient is greater than 1, the volume after expression regulates is greater than the volume before adjustment; When described first gain coefficient is less than 1, the volume after expression regulates is less than the volume before adjustment.
Non-noise component processing unit 504, for adopting the second gain coefficient to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
Described second gain coefficient can be the coefficient regulated the volume of described non-noise component.
Under the condition that initial volume is identical, gain coefficient is larger, then the volume after adjustment is also larger.
In sum, in the present embodiment, by identifying the noise component(s) in described audio file; The first gain coefficient is adopted to process to described noise component(s); The second gain coefficient being greater than described first gain coefficient is adopted to process to the non-noise component in described audio file; While audio signal is amplified, the amplification noise signal in audio signal being carried out to equal extent can be avoided, reduce the gain to the noise signal in audio signal, thus improve the sound quality of electronic equipment output.
In practical application, can also comprise:
Judging unit, before identifying the noise component(s) in described audio file, judges whether the form of described audio file is lossy compression method form, obtains the first judged result;
Control unit, for when the form that described first judged result represents described audio file is lossy compression method form, controls the step that described recognition unit 502 performs the noise component(s) identified in described audio file.
In practical application, described recognition unit 502, specifically can comprise:
Frequency domain parameter extracts subelement, and for extracting the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency;
Frequency domain parameter determination subelement, for determining that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength;
Noise component(s) determination subelement, the sound component that the frequency domain parameter for being all less than described first preset signal strength in continuous print frequency domain is corresponding, is defined as described noise component(s).
In practical application, can also comprise:
3rd gain coefficient and the 4th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
First gain coefficient first determining unit, in the number range that forms at described 3rd gain coefficient and described 4th gain coefficient, determines described first gain coefficient.
In practical application, can also comprise:
5th gain coefficient and the 6th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at time domain scale; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
First gain coefficient second determining unit, in the number range that forms at described 5th gain coefficient and described 6th gain coefficient, determines described first gain coefficient.
In practical application, described 5th gain coefficient and the 6th gain coefficient determining unit, specifically can comprise:
Noised audio frame determination subelement, for determining the audio frame at described noise component(s) place;
5th gain coefficient determination subelement, for determining in the previous frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s);
6th gain coefficient determination subelement, for determining in the next frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, can certainly all be implemented by hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For electronic equipment disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. an acoustic signal processing method, is applied to the electronic equipment with audio playing unit, it is characterized in that, described method comprises:
Obtain pending audio file;
Identify the noise component(s) in described audio file;
The first gain coefficient is adopted to process to described noise component(s);
The second gain coefficient is adopted to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
2. method according to claim 1, is characterized in that, before the noise component(s) in the described audio file of described identification, also comprises:
Whether the form judging described audio file is lossy compression method form, obtains the first judged result;
When the form that described first judged result represents described audio file is lossy compression method form, perform the step of the noise component(s) identified in described audio file.
3. method according to claim 1, is characterized in that, the noise component(s) in the described audio file of described identification, specifically comprises:
Extract the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency;
Determine that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength;
By sound component corresponding for the frequency domain parameter being all less than described first preset signal strength in continuous print frequency domain, be defined as described noise component(s).
4. method according to claim 1, is characterized in that, describedly adopts before the first gain coefficient processes to described noise component(s), also comprises:
Determine at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
In the number range that described 3rd gain coefficient and described 4th gain coefficient are formed, determine described first gain coefficient.
5. method according to claim 1, is characterized in that, describedly adopts before the first gain coefficient processes to described noise component(s), also comprises:
Determine at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at time domain scale; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
In the number range that described 5th gain coefficient and described 6th gain coefficient are formed, determine described first gain coefficient.
6. method according to claim 5, is characterized in that, describedly determines, at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient, specifically to comprise:
Determine the audio frame at described noise component(s) place;
Determine in the previous frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s);
Determine in the next frame audio frame of described audio frame, be in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
7. an electronic equipment, described electronic equipment has audio playing unit, it is characterized in that, described electronic equipment comprises:
Acquiring unit, for obtaining pending audio file;
Recognition unit, for identifying the noise component(s) in described audio file;
Noise component(s) processing unit, for adopting the first gain coefficient to process to described noise component(s);
Non-noise component processing unit, for adopting the second gain coefficient to process to the non-noise component in described audio file;
Wherein, described first gain is less than described second gain.
8. electronic equipment according to claim 7, is characterized in that, also comprises:
Judging unit, before identifying the noise component(s) in described audio file, judges whether the form of described audio file is lossy compression method form, obtains the first judged result;
Control unit, for when the form that described first judged result represents described audio file is lossy compression method form, controls the step that described recognition unit performs the noise component(s) identified in described audio file.
9. electronic equipment according to claim 7, is characterized in that, described recognition unit, specifically comprises:
Frequency domain parameter extracts subelement, and for extracting the frequency domain parameter of the audio frame of described audio file, a described frequency domain parameter is for representing the signal strength signal intensity that described audio frame is gone up at a specific frequency;
Frequency domain parameter determination subelement, for determining that signal strength signal intensity is less than the frequency domain parameter of the first preset signal strength;
Noise component(s) determination subelement, the sound component that the frequency domain parameter for being all less than described first preset signal strength in continuous print frequency domain is corresponding, is defined as described noise component(s).
10. electronic equipment according to claim 7, is characterized in that, also comprises:
3rd gain coefficient and the 4th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 3rd gain coefficient of the frequency domain non-noise component adjacent with described noise component(s) and the 4th gain coefficient; Wherein, described 3rd gain coefficient is the gain coefficient being less than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s), and described 4th gain coefficient is the gain coefficient being greater than the non-noise component of described noise component(s) in frequency domain and frequency adjacent with described noise component(s);
First gain coefficient first determining unit, in the number range that forms at described 3rd gain coefficient and described 4th gain coefficient, determines described first gain coefficient.
11. electronic equipments according to claim 7, is characterized in that, also comprise:
5th gain coefficient and the 6th gain coefficient determining unit, for adopting before the first gain coefficient processes to described noise component(s), determining at the 5th gain coefficient of the time domain scale sound component adjacent with described noise component(s) and the 6th gain coefficient; Wherein, described 5th gain coefficient is adjacent with described noise component(s) at time domain scale and the gain coefficient of sound component early than described noise component(s), and described 6th gain coefficient is adjacent with described noise component(s) and be later than the gain coefficient of the sound component of described noise component(s) at time domain scale; The described sound component adjacent with described noise component(s) at time domain scale, is in identical frequency domain with described noise component(s);
First gain coefficient second determining unit, in the number range that forms at described 5th gain coefficient and described 6th gain coefficient, determines described first gain coefficient.
12. electronic equipments according to claim 11, is characterized in that, described 5th gain coefficient and the 6th gain coefficient determining unit, specifically comprise:
Noised audio frame determination subelement, for determining the audio frame at described noise component(s) place;
5th gain coefficient determination subelement, for determining in the previous frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 5th gain coefficient with described noise component(s);
6th gain coefficient determination subelement, for determining in the next frame audio frame of described audio frame, is in the gain coefficient of the sound component of identical frequency domain as the 6th gain coefficient with described noise component(s).
CN201410455520.1A 2014-09-09 2014-09-09 Audio signal processing method and electronic device Pending CN104242850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410455520.1A CN104242850A (en) 2014-09-09 2014-09-09 Audio signal processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410455520.1A CN104242850A (en) 2014-09-09 2014-09-09 Audio signal processing method and electronic device

Publications (1)

Publication Number Publication Date
CN104242850A true CN104242850A (en) 2014-12-24

Family

ID=52230344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410455520.1A Pending CN104242850A (en) 2014-09-09 2014-09-09 Audio signal processing method and electronic device

Country Status (1)

Country Link
CN (1) CN104242850A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106328159A (en) * 2016-09-12 2017-01-11 合网络技术(北京)有限公司 Audio stream processing method and audio stream processing device
CN106448712A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and device for audio signals
CN109756198A (en) * 2017-11-02 2019-05-14 罗姆股份有限公司 Voicefrequency circuit, the vehicle-mounted audio device using it, audio component device, electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278172A1 (en) * 2004-06-15 2005-12-15 Microsoft Corporation Gain constrained noise suppression
CN1969320A (en) * 2004-06-18 2007-05-23 松下电器产业株式会社 Noise suppression device and noise suppression method
CN101185240A (en) * 2005-06-02 2008-05-21 索尼爱立信移动通讯股份有限公司 Device and method for audio signal gain control
CN101727910A (en) * 2008-10-24 2010-06-09 雅马哈株式会社 Noise suppression device and method
CN101930746A (en) * 2010-06-29 2010-12-29 上海大学 MP3 compressed domain audio self-adaptation noise reduction method
US20110064241A1 (en) * 2009-09-11 2011-03-17 Abhijit Kulkarni Methods and Systems for Reducing an Effect of Ambient Noise Within an Auditory Prosthesis System
CN102194464A (en) * 2010-03-16 2011-09-21 索尼公司 Sound processing apparatus, sound processing method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278172A1 (en) * 2004-06-15 2005-12-15 Microsoft Corporation Gain constrained noise suppression
CN1969320A (en) * 2004-06-18 2007-05-23 松下电器产业株式会社 Noise suppression device and noise suppression method
CN101185240A (en) * 2005-06-02 2008-05-21 索尼爱立信移动通讯股份有限公司 Device and method for audio signal gain control
CN101727910A (en) * 2008-10-24 2010-06-09 雅马哈株式会社 Noise suppression device and method
US20110064241A1 (en) * 2009-09-11 2011-03-17 Abhijit Kulkarni Methods and Systems for Reducing an Effect of Ambient Noise Within an Auditory Prosthesis System
CN102194464A (en) * 2010-03-16 2011-09-21 索尼公司 Sound processing apparatus, sound processing method, and program
CN101930746A (en) * 2010-06-29 2010-12-29 上海大学 MP3 compressed domain audio self-adaptation noise reduction method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106328159A (en) * 2016-09-12 2017-01-11 合网络技术(北京)有限公司 Audio stream processing method and audio stream processing device
CN106328159B (en) * 2016-09-12 2021-07-09 优酷网络技术(北京)有限公司 Audio stream processing method and device
CN106448712A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and device for audio signals
CN106448712B (en) * 2016-10-20 2019-06-25 广州视源电子科技股份有限公司 A kind of auto gain control method and device of audio signal
CN109756198A (en) * 2017-11-02 2019-05-14 罗姆股份有限公司 Voicefrequency circuit, the vehicle-mounted audio device using it, audio component device, electronic equipment
CN109756198B (en) * 2017-11-02 2023-03-21 罗姆股份有限公司 Audio circuit, and in-vehicle audio device, audio module device, and electronic device using the same

Similar Documents

Publication Publication Date Title
CN100555848C (en) Audio signal processing
US10109288B2 (en) Dynamic range and peak control in audio using nonlinear filters
CN108365827B (en) Band compression with dynamic threshold
US10827265B2 (en) Psychoacoustics for improved audio reproduction, power reduction, and speaker protection
JP2013537321A5 (en)
TW201338567A (en) Bass enhancement system and method thereof, and non-transitory physical electronic storage
CN115762579A (en) Sound processing method, device and equipment
CN108322868B (en) Method for improving sound quality of piano played by loudspeaker
CN1805278A (en) Method and apparatus to record a signal using a beam forming algorithm
US9749741B1 (en) Systems and methods for reducing intermodulation distortion
US20240177726A1 (en) Speech enhancement
US20150365061A1 (en) System and method for modifying an audio signal
CN104242850A (en) Audio signal processing method and electronic device
TWI543634B (en) Method and computer program product of processing voice segment and hearing aid
CN105869656B (en) Method and device for determining definition of voice signal
CN102576560B (en) electronic audio device
US20230360662A1 (en) Method and device for processing a binaural recording
CN111726730A (en) Sound playing device and method for adjusting output sound
WO2023287782A1 (en) Data augmentation for speech enhancement
US20190074805A1 (en) Transient Detection for Speaker Distortion Reduction
CN111370017B (en) Voice enhancement method, device and system
US8086448B1 (en) Dynamic modification of a high-order perceptual attribute of an audio signal
US20240048904A1 (en) Audio signal processing system, loudspeaker and electronics device
US10091582B2 (en) Signal enhancement
TWI584275B (en) Electronic device and method for analyzing and playing sound signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141224

RJ01 Rejection of invention patent application after publication