CN109658952B - Audio signal processing method, device and storage medium - Google Patents
Audio signal processing method, device and storage medium Download PDFInfo
- Publication number
- CN109658952B CN109658952B CN201811527955.7A CN201811527955A CN109658952B CN 109658952 B CN109658952 B CN 109658952B CN 201811527955 A CN201811527955 A CN 201811527955A CN 109658952 B CN109658952 B CN 109658952B
- Authority
- CN
- China
- Prior art keywords
- amplitude
- audio
- frequency
- audio signal
- vibration
- 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.)
- Active
Links
- 230000005236 sound signal Effects 0.000 title claims abstract description 153
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 230000009467 reduction Effects 0.000 claims abstract description 93
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000009826 distribution Methods 0.000 claims abstract description 28
- 230000003321 amplification Effects 0.000 claims description 19
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 19
- 238000012360 testing method Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 claims description 18
- 230000001133 acceleration Effects 0.000 claims description 12
- 238000006073 displacement reaction Methods 0.000 claims description 10
- 238000011038 discontinuous diafiltration by volume reduction Methods 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 abstract description 13
- 238000012545 processing Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003139 buffering effect Effects 0.000 description 2
- 239000006260 foam Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0316—Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0316—Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
- G10L21/0324—Details of processing therefor
- G10L21/034—Automatic adjustment
Landscapes
- Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Circuit For Audible Band Transducer (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
The embodiment of the application provides an audio signal processing method, audio signal processing equipment and a storage medium, wherein the method comprises the following steps: acquiring the frequency distribution range of an audio signal to be played by audio playing equipment; if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount; adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency; and outputting the audio signal with the adjusted amplitude value through the audio playing equipment. In the embodiment of the application, the amplitude value on the target frequency causing resonance in the audio signal can be reduced, and the audio signal with the adjusted amplitude can be played, so that abnormal sound generated by the audio playing device due to resonance when the audio signal is played can be reduced.
Description
Technical Field
The present application relates to the field of sound processing technologies, and in particular, to an audio signal processing method, an audio signal processing apparatus, and a storage medium.
Background
At present, when audio playing products on the market play audio, when the frequency of the audio is just in the range of the resonant frequency of the audio playing products, the audio playing products can be caused to generate abnormal sounds such as tremolo, which will affect the user experience. For example, resonance can cause the enclosure to produce a large amount of spurious sound.
In the prior art, the abnormal sound of audio playing products is reduced by adopting physical structures such as foam pads and the like through a buffering mode. However, the production process of this method is complicated and the production cost is high.
Disclosure of Invention
Aspects of the present disclosure provide an audio signal processing method, device and storage mechanism for reducing abnormal sounds generated in an audio playback device due to resonance.
The embodiment of the application provides an audio signal processing method, which comprises the following steps:
acquiring the frequency distribution range of an audio signal to be played by audio playing equipment;
if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount;
adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
and outputting the audio signal with the adjusted amplitude value through the audio playing equipment.
The embodiment of the application also provides audio playing equipment, which comprises a processor and a loudspeaker;
the processor is used for acquiring the frequency distribution range of an audio signal to be played by the audio playing equipment; if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount; adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
the loudspeaker is used for outputting the audio signal with the adjusted amplitude value.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions that, when executed by one or more processors, cause the one or more processors to perform the aforementioned audio signal processing method.
In the embodiment of the application, before the audio signal is played, whether the audio playing equipment resonates due to the playing of the audio signal is determined according to the frequency distribution range of the audio signal, and when the audio playing equipment resonates due to the playing of the audio signal is determined, the amplitude value of the audio signal at the target frequency causing the resonance is reduced, and the audio signal with the adjusted amplitude is played, so that abnormal sound caused by the resonance of the audio playing equipment during the playing of the audio signal can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating an audio signal processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an audio playing device according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of another audio playing device according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of another audio playing device according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, the abnormal sound of audio playing products is reduced by adopting physical structures such as foam pads and the like through a buffering mode. However, the production process of this method is complicated and the production cost is high. In some embodiments of the present application: before the audio signal is played, whether the audio signal is played to cause the audio playing equipment to resonate is determined according to the frequency distribution range of the audio signal, when the audio signal is determined to cause the audio playing equipment to resonate, the amplitude value of the audio signal on the target frequency causing the resonance is reduced, and the audio signal with the adjusted amplitude is played, so that abnormal sound generated by the audio playing equipment due to the resonance when the audio signal is played can be reduced.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating an audio signal processing method according to an embodiment of the present application. As shown in fig. 1, the method includes:
100. acquiring the frequency distribution range of an audio signal to be played by audio playing equipment;
101. if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount;
102. adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
103. and outputting the audio signal with the adjusted amplitude value through the audio playing equipment.
The audio signal processing method provided in this embodiment may be applied to various scenes in which it is required to improve abnormal sound generated by the audio playing device due to resonance, and this embodiment does not limit this. The audio playing device may be a sound box, an earphone, a television, and the like, which is not limited in this embodiment. In addition, the audio signal in this embodiment may be a music signal, a voice signal, or the like, which is not limited in this embodiment.
In this embodiment, the frequency distribution range of the audio signal to be played by the audio playing device can be obtained. The audio signal to be played by the audio playing device may be an audio signal corresponding to a music piece in a song, or an audio signal corresponding to a word in a segment of speech, and the specification of the audio signal is not limited in this embodiment.
In addition, the embodiment does not limit the time distance between the audio signal to be played by the audio playing device and the current processing time, as long as the amplitude adjustment is completed before the audio signal is played. For example, for a song, the process of playing the song by the audio playing device has time duration, so if the music piece on the 5 th s of the song is played by the audio playing device at the current processing time, the music piece on the 6 th s of the song can be taken as the audio signal to be played by the audio playing device. Of course, the music piece of the 7 th s of the song can also be used as the audio signal to be played by the audio playing device. The music pieces of 8 th to 10 th s of the song can be used as audio signals to be played by audio playing equipment.
In this embodiment, the frequency distribution range of the audio signal to be played by the audio playing device can be obtained from multiple ways. For example, the frequency distribution range of the audio signal may be downloaded from other processing devices that process the audio signal before it is delivered to the audio playback device. For another example, the frequency distribution range of the audio signal can be obtained by analyzing the audio signal in the process that the audio signal is transmitted to the audio playing device and is not compensated by the equalizer EQ before being played. Of course, the frequency distribution range of the audio signal to be played by the audio playing device may also be obtained from other approaches, which is not limited in this embodiment.
According to the obtained frequency distribution range of the audio signal to be played by the audio playing equipment, the frequency distribution range of the audio signal can be matched with the resonance frequency of the audio playing equipment, and if the frequency distribution range of the audio signal has a target frequency matched with the resonance frequency of the audio playing equipment, the audio playing equipment is characterized to resonate when the audio signal is played. In some implementations, the resonant frequency of the audio playback device may be characterized in the form of a frequency range. Therefore, whether the frequency distribution range of the audio signal to be played by the audio playing equipment is intersected with the resonance frequency range of the audio playing equipment or not can be judged, and the target frequency can be determined.
Based on the determined target frequency, the amplitude reduction amount corresponding to the target frequency can be determined according to the preset corresponding relation between the resonance frequency of the audio playing device and the amplitude reduction amount. The amplitude reduction amount corresponding to the target frequency is the reduction degree of the amplitude value of the audio signal on the target frequency.
According to the determined amplitude reduction amount, the amplitude value of the audio signal on the target frequency can be reduced, so that the amplitude of the vibration amplitude of the audio playing device on the target frequency can be reduced when the audio playing device outputs the audio signal with the adjusted amplitude value.
In addition, in this embodiment, the audio signal without the target frequency may be played according to a default amplitude value.
In this embodiment, before the audio signal is played, whether the audio signal is played to cause the audio playing device to resonate is determined according to the frequency distribution range of the audio signal, and when it is determined that the audio signal is played to cause the audio playing device to resonate, the amplitude value at the target frequency causing the resonance in the audio signal is reduced, and the audio signal with the adjusted amplitude is played, so that abnormal sound generated by the audio playing device due to the resonance when the audio signal is played can be reduced.
In the foregoing or following embodiments, the vibration amplitude of the audio playing device when outputting the audio signal with the adjusted amplitude value may be detected; and if the vibration amplitude does not meet the vibration amplitude tolerance condition corresponding to the target frequency, increasing the amplitude reduction corresponding to the target frequency in the corresponding relation between the resonance frequency and the amplitude reduction.
In this embodiment, when the audio playing device outputs the audio signal with the adjusted amplitude value, the vibration amplitude of the audio playing device can be detected. In one practical application, the acceleration sensor may be used to detect the vibration amplitude of the audio playback device: the vibration displacement of the audio playing equipment can be detected by using the acceleration sensor when the audio playing equipment outputs the audio signal with the adjusted amplitude value; and calculating the vibration amplitude of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value according to the vibration displacement of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value. The acceleration sensor may be disposed at a position in contact with the audio playing device, for example, at a bottom wall of the audio playing device, but of course, other positions are also possible, and are not limited herein. The acceleration sensor may be a capacitance-variable acceleration sensor, a piezoelectric acceleration sensor, or the like, which is not limited herein.
Based on the detected vibration amplitude of the audio playing device, whether the vibration amplitude meets the vibration amplitude tolerance condition corresponding to the target frequency can be judged. The vibration amplitude tolerance condition of the target device may be preset, and the preset process will be described in detail later. When the detected vibration amplitude of the audio playing device does not meet the vibration amplitude tolerance condition corresponding to the target frequency, the representation shows that the expected effect cannot be obtained when the amplitude adjustment of the audio signal is carried out according to the amplitude reduction corresponding to the target frequency in the corresponding relation between the resonance frequency and the amplitude reduction. Accordingly, in the present embodiment, the amplitude reduction amount corresponding to the target frequency in the correspondence relationship between the resonance frequency and the amplitude reduction amount can be increased.
The amplitude reduction corresponding to the target frequency in the corresponding relationship between the resonance frequency and the amplitude reduction is increased in order to further improve the processing effect of the subsequent audio signal of the audio signal to be played by the audio playing device. This mainly takes into account that the initial parameters of different sound source signals may be different. For example, for the same song, the initial frequency spectrums corresponding to the sound source signals of the song acquired from different sound sources may be different, which results in that, in different sound source signals, the same abnormal sound reduction effect cannot be obtained when the same target frequency is subjected to the same amplitude reduction amount, and of course, different abnormal sound reduction effects may be caused by other factors. Therefore, in this embodiment, the adaptation degree of the amplitude adjustment scheme and the corresponding sound source signal can be continuously optimized by dynamically adjusting the amplitude reduction amount corresponding to the target frequency in the corresponding relationship between the resonance frequency and the amplitude reduction amount, so as to obtain a better processing effect.
For example, if the audio playing device is playing a song, when a segment of audio signal in the song is processed, the amplitude reduction amount corresponding to the target frequency is determined to be 5DB according to the corresponding relationship between the resonance frequency and the amplitude reduction amount, and the audio signal is output after the amplitude value at the target frequency is reduced by 5 DB. If the vibration amplitude of the audio playing device is detected not to meet the amplitude tolerance condition corresponding to the target frequency when the audio signal is output, the amplitude reduction amount corresponding to the target frequency in the corresponding relation between the resonance frequency and the amplitude reduction amount can be increased to 6 DB. Therefore, when the frequency distribution range of the subsequent audio signal contains the target frequency, the audio signal can be processed according to the heavier amplitude reduction strength of 6DB, the vibration amplitude of the audio playing equipment can be continuously detected, and if the vibration amplitude still does not meet the vibration amplitude tolerance condition corresponding to the target frequency, the amplitude reduction amount corresponding to the target frequency in the corresponding relationship between the resonance frequency and the amplitude reduction amount can be continuously improved.
Accordingly, the amplitude reduction corresponding to the target frequency in the corresponding relationship between the resonant frequency and the amplitude reduction is a dynamically updated value, which ensures that the amplitude adjustment process of the audio signal to be played by the audio playing device is a process with continuously improved accuracy. The amplitude reduction corresponding to the target frequency in the corresponding relation between the resonance frequency and the amplitude reduction can be improved in a stepped manner, so that the most suitable amplitude reduction of the target frequency can be determined more quickly and accurately.
In addition, in this embodiment, the music signal without the target audio may be processed according to the default power amplification factor. Accordingly, if the target frequency exists in the previous audio signal such that the power amplification is reduced, the power amplification may be restored to a default value after the previous audio signal is played, so as to process the audio signal at the default power amplification.
In the above or the following embodiments, before the audio signal is sent to the power amplifier, the power amplification factor of the power amplifier of the audio playing device may be reduced according to the amplitude reduction amount corresponding to the target frequency, so as to reduce the amplitude value of the audio signal at each frequency, where each frequency includes the target frequency.
In this embodiment, after determining that the target frequency exists in the audio signal and determining the amplitude reduction amount corresponding to the target frequency, the amplification factor of the power amplifier of the audio playing device may be set according to the determined amplitude reduction amount. The reduction of the amplitude value of the audio signal at each frequency is achieved by reducing the amplification of the power amplifier. For example, if the default power amplification factor of the audio playing device is N, when the audio signal to be played by the audio playing device has a target frequency, the power amplification factor for the audio signal may be reduced to M according to the amplitude reduction amount corresponding to the target frequency, where M < N, and M and N are rational numbers, so that the amplitude value of the audio signal at each frequency may be lower than the amplitude value processed according to the default power amplification factor, thereby achieving reduction of the amplitude value of the audio signal at each frequency.
Optionally, in this embodiment, when determining the power amplification factor of the power amplifier, the power amplification factor may be reduced according to a maximum value of the amplitude reduction amounts corresponding to the target frequencies, which may ensure that each target frequency may obtain a better effect of reducing the amplitude value. Of course, other principles may also be used to determine the amplification factor of the power amplifier, for example, the average value of the amplitude reduction amount corresponding to each target frequency may be used, and this embodiment is not limited thereto.
In this embodiment, the volume of the audio signal is reduced by reducing the power amplification factor of the power amplifier, so that the reduction of the amplitude value of the audio signal at the target frequency can be realized.
It should be noted that the above-mentioned manner of reducing the amplitude value of the target frequency by using the power amplifier is only an optional implementation manner, and in this embodiment, other implementation manners may also be adopted to reduce the amplitude value of the target frequency, for example, the EQ compensation amount may be reduced in the EQ compensation process, and the present embodiment is not limited thereto.
In the above or below embodiments, the correspondence between the resonance frequency and the amount of amplitude reduction may be configured in advance.
In this embodiment, a test signal may be input to the audio playing device, and the vibration amplitude and the vibration frequency of the audio playing device at each playing time in the process of playing the test signal are detected; acquiring at least one vibration frequency with the vibration amplitude larger than a preset threshold value compared with the amplitude of the vibration amplitude at the previous playing time from the vibration frequencies at all the playing times as the resonance frequency of the audio playing equipment; and determining the amplitude reduction amount corresponding to at least one resonance frequency according to the vibration amplitude tolerance condition corresponding to at least one resonance frequency so as to generate the corresponding relation between the resonance frequency and the amplitude reduction amount.
The test signal may be a frequency sweep signal, and may also be other types of audio signals, which is not limited in this embodiment. In this embodiment, a test signal may be input to the audio playing device, and the vibration amplitude and the vibration frequency of the audio playing device during playing the test signal may be determined, when a sudden increase in vibration amplitude at some vibration frequency occurs at a certain playing time, that the audio playing device resonates at the playing time may be determined, and accordingly, the vibration frequency at which the sudden increase in vibration amplitude occurs at the playing time may be determined as the resonant frequency of the audio playing device.
Therefore, the resonance frequency of the audio playing device can be determined by detecting the vibration amplitude and the vibration frequency of the audio playing device at each playing time in the process of playing the test signal. In some practical applications, the interval range of the resonant frequency corresponding to the audio playing device may be determined according to the detected discrete at least one vibration frequency causing the audio playing device to transmit resonance. Accordingly, in the using process of the audio playing device, whether the target frequency exists in the audio signal can be determined by judging whether each frequency of the audio signal to be played belongs to the interval range of the resonant frequency of the audio signal.
Of course, the above implementation manner is only exemplary, and in this embodiment, other implementation manners may also be adopted to determine the resonant frequency of the audio playing device, and the embodiment is not limited thereto.
On the basis of determining the resonant frequency of the audio playing device, the amplitude reduction amount corresponding to each resonant frequency can be further determined.
In this embodiment, for each resonant frequency, the volume of the test signal at the playing time may be reduced in a stepwise manner from the original volume of the test signal at the playing time to which the resonant frequency belongs until it is detected that the vibration amplitude of the audio playing device at the resonant frequency meets the vibration amplitude tolerance condition; and taking the volume reduction when the vibration amplitude meets the vibration amplitude tolerance condition as the amplitude reduction corresponding to the resonance frequency.
The amplitude reduction amount corresponding to each resonance frequency can be determined according to the amplitude tolerance condition, and the vibration amplitude tolerance condition can be flexibly set according to actual needs. For example, according to the tolerance degree of the human ear to the abnormal sound generated when the audio playing device resonates, the difference between the vibration amplitude detected at the resonant frequency and the actual amplitude of the audio signal does not exceed the preset threshold value as the vibration amplitude tolerance condition. The difference between the vibration amplitude detected on the resonance frequency and the actual amplitude of the audio signal can represent the vibration amplitude amplification caused by resonance, and the influence degree of the resonance on the audio signal playing can be reflected. Therefore, the difference can be reduced by adjusting the volume of the playing time of the resonance frequency in the test signal in a stepwise manner or in other manners, so that the amplitude of vibration caused by resonance is reduced, and the influence degree of the resonance on the playing of the audio signal is reduced.
Because the volume reduction or other ways of reducing the amplitude value of the audio signal at the resonance frequency may affect the sound quality of the audio signal, the amplitude reduction can be set to just meet the vibration amplitude tolerance condition, and the setting is not required to be too large, so as to avoid causing serious influence on the sound quality of the audio signal.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 101 to 103 may be device a; for another example, the execution subject of steps 101 and 102 may be device a, and the execution subject of step 103 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se.
Fig. 2 is a schematic structural diagram of an audio playing device according to another embodiment of the present application. As shown in fig. 2, the audio playback apparatus includes: a processor 20 and a speaker 21.
The processor 20 is configured to obtain a frequency distribution range of an audio signal to be played by the audio playing apparatus; if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount; adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
the speaker 21 is used to output the audio signal with the adjusted amplitude value.
In this embodiment, before the audio signal is played, it is determined whether the audio signal is played to cause the audio playing device to resonate according to the frequency distribution range of the audio signal, and when it is determined that the audio signal is played to cause the audio playing device to resonate, the amplitude value on the target frequency causing the resonance in the audio signal is reduced, and the audio signal with the adjusted amplitude is played, so that abnormal sound generated by the audio playing device due to the resonance when the audio signal is played can be reduced.
In an alternative embodiment, processor 20 is further configured to:
detecting the vibration amplitude of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value;
and if the vibration amplitude does not meet the vibration amplitude tolerance condition corresponding to the target frequency, increasing the amplitude reduction corresponding to the target frequency in the corresponding relation between the resonance frequency and the amplitude reduction.
FIG. 3 is a schematic structural diagram of another audio playing device according to another embodiment of the present application, such as
As shown in fig. 3, the audio playing device further includes an acceleration sensor 24, and the acceleration sensor 24 is in contact with the audio playing device;
the acceleration sensor 24 is configured to detect a vibration displacement of the audio playing device when outputting the audio signal with the adjusted amplitude value, and send the detected vibration displacement of the audio playing device when outputting the audio signal with the adjusted amplitude value to the processor;
and the processor 20 is configured to calculate a vibration amplitude of the audio playing device when the audio playing device outputs the audio signal with the adjusted amplitude value according to the vibration displacement of the audio playing device when the audio playing device outputs the audio signal with the adjusted amplitude value.
Fig. 4 is a schematic structural diagram of another audio playing device according to another embodiment of the present application, and as shown in fig. 4, the audio playing device further includes a power amplifier 25;
when the processor 20 adjusts the amplitude value of the audio signal at the target frequency according to the amplitude reduction amount corresponding to the target frequency, the processor is configured to reduce the power amplification factor of the power amplifier 25 according to the amplitude reduction amount corresponding to the target frequency before sending the audio signal to the power amplifier 25;
and a power amplifier 25 for performing power amplification on the audio signal according to the reduced power amplification factor to reduce the amplitude value of the audio signal at each frequency, each frequency including the target frequency.
In an alternative embodiment, the processor 20 is further configured to, before determining the amplitude reduction corresponding to the target frequency according to the corresponding relationship between the resonance frequency and the amplitude reduction:
inputting a test signal to the audio playing equipment, and detecting the vibration amplitude and the vibration frequency of the audio playing equipment at each playing moment in the process of playing the test signal;
acquiring at least one vibration frequency with the vibration amplitude larger than a preset threshold value compared with the amplitude of the vibration amplitude at the previous playing time from the vibration frequencies at all the playing times as the resonance frequency of the audio playing equipment; and
and determining the amplitude reduction amount corresponding to at least one resonance frequency according to the vibration amplitude tolerance condition corresponding to at least one resonance frequency so as to generate the corresponding relation between the resonance frequency and the amplitude reduction amount.
In an alternative embodiment, the processor 20, when determining the amplitude reduction amount corresponding to each of the at least one resonant frequency according to the vibration amplitude tolerance condition corresponding to each of the at least one resonant frequency, is configured to:
for each resonant frequency, starting from the original volume of the test signal at the playing time of the resonant frequency, reducing the volume of the test signal at the playing time in a stepwise manner until the vibration amplitude of the audio playing equipment at the resonant frequency is detected to meet the vibration amplitude tolerance condition;
and taking the volume reduction when the vibration amplitude meets the vibration amplitude tolerance condition as the amplitude reduction corresponding to the resonance frequency.
Further, as shown in fig. 2, the audio playing device further includes: communication components 22, power components 23, and the like. Only some of the components are schematically shown in fig. 2, and it is not meant that the audio playback device includes only the components shown in fig. 2.
Wherein the communication component 22 is configured to facilitate wired or wireless communication between the device in which the communication component is located and other devices. The device in which the communication component is located may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component may be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technology to facilitate short-range communications.
The power supply unit 23 supplies power to various components of the device in which the power supply unit is installed. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
Accordingly, the present application further provides a computer-readable storage medium storing a computer program, where the computer program is capable of implementing the steps that can be executed by the audio playing device in the foregoing method embodiments when executed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (9)
1. An audio signal processing method, comprising:
acquiring the frequency distribution range of an audio signal to be played by audio playing equipment;
if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount;
adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
outputting the audio signal with the adjusted amplitude value through the audio playing equipment;
before determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relationship between the resonance frequency and the amplitude reduction amount, the method further includes:
inputting a test signal to the audio playing equipment, and detecting the vibration amplitude and the vibration frequency of the audio playing equipment at each playing moment in the process of playing the test signal;
acquiring at least one vibration frequency with the vibration amplitude larger than a preset threshold value compared with the amplitude of the vibration amplitude at the previous playing time from the vibration frequencies at all the playing times as the resonance frequency of the audio playing equipment; and
and determining the amplitude reduction amount corresponding to the at least one resonance frequency according to the vibration amplitude tolerance condition corresponding to the at least one resonance frequency so as to generate the corresponding relation between the resonance frequency and the amplitude reduction amount.
2. The method of claim 1, further comprising:
detecting the vibration amplitude of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value;
and if the vibration amplitude does not meet the vibration amplitude tolerance condition corresponding to the target frequency, increasing the amplitude reduction corresponding to the target frequency in the corresponding relationship between the resonance frequency and the amplitude reduction.
3. The method according to claim 2, wherein the detecting the vibration amplitude of the audio playing device when outputting the audio signal with the adjusted amplitude value comprises:
detecting the vibration displacement of the audio playing equipment when outputting the audio signal with the adjusted amplitude value by using an acceleration sensor;
and calculating the vibration amplitude of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value according to the vibration displacement of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value.
4. The method of claim 1, wherein the adjusting the amplitude value of the audio signal at the target frequency according to the amplitude reduction amount corresponding to the target frequency comprises:
before the audio signal is sent to a power amplifier, according to the amplitude reduction amount corresponding to the target frequency, reducing the power amplification factor of the power amplifier of the audio playing device so as to reduce the amplitude value of the audio signal on each frequency, wherein each frequency comprises the target frequency.
5. The method of claim 1, wherein determining the amplitude reduction amount corresponding to each of the at least one resonant frequency according to the vibration amplitude tolerance condition corresponding to each of the at least one resonant frequency comprises:
for each resonant frequency, starting from the original volume of the test signal at the playing time to which the resonant frequency belongs, reducing the volume of the test signal at the playing time in a stepped manner until the vibration amplitude of the audio playing device at the resonant frequency is detected to meet the vibration amplitude tolerance condition;
and taking the volume reduction when the vibration amplitude meets the vibration amplitude tolerance condition as the amplitude reduction corresponding to the resonance frequency.
6. An audio playback device comprising a processor and a speaker;
the processor is used for acquiring the frequency distribution range of an audio signal to be played by the audio playing equipment; if the target frequency matched with the resonance frequency of the audio playing equipment exists in the frequency distribution range, determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relation between the resonance frequency and the amplitude reduction amount; adjusting the amplitude value of the audio signal on the target frequency according to the amplitude reduction amount corresponding to the target frequency;
the loudspeaker is used for outputting the audio signal with the adjusted amplitude value;
before determining the amplitude reduction amount corresponding to the target frequency according to the corresponding relationship between the resonance frequency and the amplitude reduction amount, the processor is further configured to:
inputting a test signal to the audio playing equipment, and detecting the vibration amplitude and the vibration frequency of the audio playing equipment at each playing moment in the process of playing the test signal;
acquiring at least one vibration frequency with the vibration amplitude larger than a preset threshold value compared with the amplitude of the vibration amplitude at the previous playing time from the vibration frequencies at all the playing times as the resonance frequency of the audio playing equipment; and
and determining the amplitude reduction amount corresponding to the at least one resonance frequency according to the vibration amplitude tolerance condition corresponding to the at least one resonance frequency so as to generate the corresponding relation between the resonance frequency and the amplitude reduction amount.
7. The device of claim 6, wherein the processor is further configured to:
detecting the vibration amplitude of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value;
and if the vibration amplitude does not meet the vibration amplitude tolerance condition corresponding to the target frequency, increasing the amplitude reduction corresponding to the target frequency in the corresponding relationship between the resonance frequency and the amplitude reduction.
8. The device of claim 7, further comprising an acceleration sensor in contact with the audio playback device;
the acceleration sensor is used for detecting the vibration displacement of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value and sending the detected vibration displacement of the audio playing equipment when the audio playing equipment outputs the audio signal with the adjusted amplitude value to the processor;
the processor is configured to calculate a vibration amplitude of the audio playing device when the audio playing device outputs the audio signal with the adjusted amplitude value according to the vibration displacement of the audio playing device when the audio playing device outputs the audio signal with the adjusted amplitude value.
9. A computer-readable storage medium storing computer instructions, which when executed by one or more processors, cause the one or more processors to perform the audio signal processing method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527955.7A CN109658952B (en) | 2018-12-13 | 2018-12-13 | Audio signal processing method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527955.7A CN109658952B (en) | 2018-12-13 | 2018-12-13 | Audio signal processing method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109658952A CN109658952A (en) | 2019-04-19 |
CN109658952B true CN109658952B (en) | 2020-10-09 |
Family
ID=66114457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527955.7A Active CN109658952B (en) | 2018-12-13 | 2018-12-13 | Audio signal processing method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109658952B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111726728A (en) * | 2020-06-30 | 2020-09-29 | 联想(北京)有限公司 | Resonance suppression method and device |
CN111967105B (en) * | 2020-08-18 | 2024-05-28 | 上海华兴数字科技有限公司 | Resonance elimination method and device, readable storage medium and electronic equipment |
CN112133332B (en) * | 2020-09-23 | 2022-04-12 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device and equipment for playing audio |
CN112817227B (en) * | 2020-12-31 | 2022-05-31 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN113470632A (en) * | 2021-05-20 | 2021-10-01 | 江铃汽车股份有限公司 | Audio processing method and system for reducing resonance of door metal plate and loudspeaker |
CN113847689B (en) * | 2021-09-23 | 2023-05-26 | 佛山市顺德区美的电子科技有限公司 | Air conditioner resonance control method and device, air conditioner and storage medium |
CN115437599A (en) * | 2022-08-31 | 2022-12-06 | 高创(苏州)电子有限公司 | Audio playing device and audio playing method thereof, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1065370A (en) * | 1991-03-27 | 1992-10-14 | 休斯航空公司 | Public address intelligibility system |
WO2005027570A1 (en) * | 2003-09-16 | 2005-03-24 | Koninklijke Philips Electronics N.V. | High efficiency audio transducer |
CN101297588A (en) * | 2005-10-24 | 2008-10-29 | 皇家飞利浦电子股份有限公司 | A device for and a method of audio data processing |
CN104183260A (en) * | 2014-07-29 | 2014-12-03 | 冯文强 | Aviation audio player and aviation alarm system |
CN108269578A (en) * | 2018-02-05 | 2018-07-10 | 百度在线网络技术(北京)有限公司 | For handling the method and apparatus of information |
-
2018
- 2018-12-13 CN CN201811527955.7A patent/CN109658952B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1065370A (en) * | 1991-03-27 | 1992-10-14 | 休斯航空公司 | Public address intelligibility system |
WO2005027570A1 (en) * | 2003-09-16 | 2005-03-24 | Koninklijke Philips Electronics N.V. | High efficiency audio transducer |
CN101297588A (en) * | 2005-10-24 | 2008-10-29 | 皇家飞利浦电子股份有限公司 | A device for and a method of audio data processing |
CN104183260A (en) * | 2014-07-29 | 2014-12-03 | 冯文强 | Aviation audio player and aviation alarm system |
CN108269578A (en) * | 2018-02-05 | 2018-07-10 | 百度在线网络技术(北京)有限公司 | For handling the method and apparatus of information |
Also Published As
Publication number | Publication date |
---|---|
CN109658952A (en) | 2019-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109658952B (en) | Audio signal processing method, device and storage medium | |
CN109714663B (en) | Earphone control method, earphone and storage medium | |
US9859858B2 (en) | Correction of unknown audio content | |
KR102686742B1 (en) | Object-based audio signal balancing | |
CN109410975B (en) | Voice noise reduction method, device and storage medium | |
US9773492B2 (en) | Selective suppression of audio emitted from an audio source | |
CN108882092A (en) | Earphone noise reduction method and feedback noise reduction system | |
US20170366152A1 (en) | Facilitation of headphone audio enhancement | |
CN102638742A (en) | Sound signal output apparatus and sound signal output method | |
US20230054864A1 (en) | Methods and Apparatus for Audio Equalization Based on Variant Selection | |
US9860641B2 (en) | Audio output device specific audio processing | |
US11375311B2 (en) | Methods and apparatus for audio equalization based on variant selection | |
KR100842618B1 (en) | Method and device for playing music files | |
US9053710B1 (en) | Audio content presentation using a presentation profile in a content header | |
CN109672961B (en) | Volume adjusting method, device and storage medium | |
EP3614375B1 (en) | Combined active noise cancellation and noise compensation in headphone | |
EP3920049A1 (en) | Techniques for audio track analysis to support audio personalization | |
KR100999647B1 (en) | Volume automatic control method and system | |
US20180070175A1 (en) | Management device and sound adjustment management method, and sound device and music reproduction method | |
CN107799138B (en) | Audio recording method and device | |
EP3794840A1 (en) | Loudspeaker excursion protection | |
US9886232B2 (en) | Mobile electronic device and method for controlling a media player device to play back media | |
US20230239523A1 (en) | Dynamic visual intensity rendering | |
CN112673648B (en) | Processing device, processing method, reproduction method, and storage medium | |
US20140205118A1 (en) | Method of determining operation mode of hearing device and hearing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |