CN111885458A - Audio playing method, earphone and computer readable storage medium - Google Patents

Audio playing method, earphone and computer readable storage medium Download PDF

Info

Publication number
CN111885458A
CN111885458A CN202010703609.0A CN202010703609A CN111885458A CN 111885458 A CN111885458 A CN 111885458A CN 202010703609 A CN202010703609 A CN 202010703609A CN 111885458 A CN111885458 A CN 111885458A
Authority
CN
China
Prior art keywords
wind noise
audio
signal
parameter
earphone
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.)
Granted
Application number
CN202010703609.0A
Other languages
Chinese (zh)
Other versions
CN111885458B (en
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010703609.0A priority Critical patent/CN111885458B/en
Publication of CN111885458A publication Critical patent/CN111885458A/en
Application granted granted Critical
Publication of CN111885458B publication Critical patent/CN111885458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses an audio playing method, an earphone and a computer readable storage medium, wherein the audio playing method is applied to the earphone, and comprises the following steps: acquiring an audio signal detected by a microphone, and determining a wind noise signal in the audio signal; acquiring a filtering parameter corresponding to the wind noise signal; the audio signals are filtered according to the filtering parameters, the processed audio signals are transmitted to the loudspeaker of the earphone to be played, corresponding filtering parameters can be selected according to the wind noise signals, the audio signals are filtered and played according to the filtering parameters, and the process that the earphone plays the filtered audio information can change along with the intensity of the wind noise signals, so that the playing effect of the earphone is improved.

Description

Audio playing method, earphone and computer readable storage medium
Technical Field
The present invention relates to the field of hearing devices, and in particular, to an audio playing method, an earphone, and a computer-readable storage medium.
Background
The earphone can block the auditory canal when being worn at the ear to form a sound insulation effect, the sound insulation effect can reduce the perception capability of a wearer to sound information of the environment at the position of the wearer, in order to improve the situation, the earphone can often enhance the external sound and output the enhanced sound through the loudspeaker, however, in some windy scenes, the microphone perceives the flowing of the air flow to form wind noise, the wind noise is amplified after enhanced processing, the wearer hears the wind noise of louder sound, the interference is too large to hear other useful information, in the prior art, the process of enhanced processing is closed as long as the wind noise is detected, so that in some scenes with overlong wind, the function of the enhanced processing is overlooked, and the playing effect is poor.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an audio playing method, and aims to solve the technical problem that in the prior art, under the condition of wind noise, the playing effect of an earphone is poor
In order to achieve the above object, the present invention provides an audio playing method, where the audio playing method is applied to a headphone, and the audio playing method includes:
acquiring an audio signal detected by a microphone, and determining a wind noise signal in the audio signal;
acquiring a filtering parameter corresponding to the wind noise signal;
and carrying out filtering processing on the audio signal according to the filtering parameter, and transmitting the processed audio signal to a loudspeaker of the earphone for playing.
Optionally, the step of determining a wind noise signal in the audio signal comprises:
acquiring the ratio of the energy of a signal in a preset frequency band in the audio signal to the total energy of the audio signal;
determining the wind noise signal according to the ratio.
Optionally, the step of obtaining the filtering parameter corresponding to the wind noise signal includes:
acquiring a wind noise parameter of the wind noise signal, wherein the wind noise parameter comprises at least one of an energy spectrum of the wind noise signal and a spectral coherence of the audio signal detected by at least two microphones in the headset;
and acquiring the filtering parameter corresponding to the wind noise parameter.
Optionally, the wind noise parameter includes coherence of frequency spectrums of the audio signals detected by the at least two microphones, and the step of obtaining the wind noise parameter of the wind noise signal includes:
acquiring audio signals detected by at least two microphones;
acquiring the self-power spectral density of the audio signal detected by each microphone;
acquiring cross-power spectral density between the audio signal detected by each microphone and the audio signals detected by other microphones;
and determining the frequency spectrum coherence according to the self-power spectral density and the cross-power spectral density.
Optionally, the step of obtaining the wind noise parameter of the wind noise signal further includes:
and when the wind noise parameter is larger than a preset threshold value, executing the step of acquiring a filtering parameter corresponding to the wind noise parameter.
Optionally, the step of obtaining the wind noise parameter of the wind noise signal further includes:
and when the wind noise parameter is smaller than or equal to the preset threshold value, setting the filtering parameter as a default filtering parameter.
Optionally, the step of obtaining the filtering parameter corresponding to the wind noise parameter includes:
acquiring a wind noise parameter interval in which the wind noise parameter is positioned;
and determining the filtering parameters according to the wind noise parameter interval.
Optionally, the audio playing method includes:
detecting a wearing state of the earphone;
and when the earphone is in a worn state, the step of acquiring the audio signal detected by the microphone is executed.
In addition, to achieve the above object, the present invention further provides an earphone, where the earphone includes a speaker, a microphone, a memory, a processor, and an audio playing program stored in the memory and executable on the processor, the processor is connected to the speaker and the microphone, and the audio playing program, when executed by the processor, implements the steps of the audio playing method as described in any one of the above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, having an audio playing program stored thereon, where the audio playing program, when executed by a processor, implements the steps of the audio playing method described in any one of the above.
According to the audio playing method, the earphone and the computer readable storage medium provided by the invention, the audio signal detected by the microphone is obtained, the filtering parameter is determined according to the wind noise signal in the audio signal, the audio signal is filtered and played through the filtering parameter, the filtering parameter is determined according to the wind noise signal, when the wind noise signal changes, the filtering parameter changes along with the wind noise signal, when the wind is gradually enhanced or gradually weakened, the enhancing processing process of the audio signal by the earphone is gradually changed along with the wind noise signal, and the enhancing processing process of the audio signal by the earphone is not suddenly turned on, so that the playing effect of the earphone is improved.
Drawings
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a hardware architecture of a headset according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an audio playing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second audio playing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third exemplary embodiment of an audio playing method according to the present invention;
FIG. 5 is a flowchart illustrating a fourth exemplary embodiment of an audio playing method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth exemplary embodiment of an audio playing method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth exemplary embodiment of an audio playing method according to the present invention;
fig. 8 is a flowchart illustrating a seventh embodiment of an audio playing method according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a headset according to an embodiment of the present invention.
As shown in fig. 1, the headset may include: the processor 1001, for example a CPU, further includes a speaker 1002, a microphone 1003, a communication bus 1004, and a memory 1005, wherein the communication bus 1004 is used for implementing connection communication between these components, and the memory 1005 may also be a storage device independent of the processor 1001.
Those skilled in the art will appreciate that the earphone configuration shown in fig. 1 does not constitute a limitation of the earphone and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system and an audio playback program therein.
In the headphone shown in fig. 1, a filtering circuit structure as hardware may be further included, and the filtering circuit structure is connected to the processor, so that the preprocessor implements the relevant processing operation of the filtering parameters, and furthermore, it is understood that the filtering parameters may also exist in the memory 1005 in the form of software, and the processor 1001 may be configured to call up the audio playing program stored in the memory 1005 and perform the following operations:
acquiring an audio signal detected by a microphone, and determining a wind noise signal in the audio signal;
acquiring a filtering parameter corresponding to the wind noise signal;
and carrying out filtering processing on the audio signal according to the filtering parameter, and transmitting the processed audio signal to a loudspeaker of the earphone for playing.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
acquiring the ratio of the energy of a signal in a preset frequency band in the audio signal to the total energy of the audio signal;
determining the wind noise signal according to the ratio.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
acquiring a wind noise parameter of the wind noise signal, wherein the wind noise parameter comprises at least one of an energy spectrum of the wind noise signal and a coherence of frequency spectrums of the audio signal detected by at least two microphones in the headset;
and acquiring the filtering parameter corresponding to the wind noise parameter.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
acquiring audio signals detected by at least two microphones;
acquiring the self-power spectral density of the audio signal detected by each microphone;
acquiring cross-power spectral density between the audio signal detected by each microphone and the audio signals detected by other microphones;
and determining the frequency spectrum coherence according to the self-power spectral density and the cross-power spectral density.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
and when the wind noise parameter is larger than a preset threshold value, executing the step of acquiring a filtering parameter corresponding to the wind noise parameter.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
and when the wind noise parameter is smaller than or equal to the preset threshold value, setting the filtering parameter as a default filtering parameter.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
acquiring a wind noise parameter interval in which the wind noise parameter is positioned;
and determining the filtering parameters according to the wind noise parameter interval.
Further, the processor 1001 may call the audio playing program stored in the memory 1005, and further perform the following operations:
detecting a wearing state of the earphone;
and when the earphone is in a worn state, the step of acquiring the audio signal detected by the microphone is executed.
Referring to fig. 2, an embodiment of the present invention provides an audio playing method, where the audio playing method includes:
step S10, acquiring an audio signal detected by a microphone, and determining a wind noise signal in the audio signal;
the audio playing method is applied to earphones, the earphones are provided with at least one microphone, the microphone detects sound outside the earphones, the collected sound is converted into an electronic signal, an audio signal is obtained, the microphone is sensitive to airflow turbulence at a sound inlet of the microphone to form wind noise, the level of the wind noise signal is an index used for indicating the strength of the wind noise, the level of the wind noise signal can be determined through coherence of two audio signals detected by the two microphones, and can also be determined through a ratio of energy of a low-frequency-band signal detected by the microphone to total energy of the audio signal, wherein the level of the wind noise signal is used for indicating the strength of the wind noise.
The audio signal may also include a voice signal, the frequency band of the voice signal is generally distributed between 20Hz and 1000Hz, and according to the characteristic, the voice signal can be filtered by a low-pass filter to obtain a wind noise signal.
Step S20, obtaining a filtering parameter corresponding to the wind noise signal;
the filtering parameters comprise at least one of center frequency, quality factor Q value and gain, after the wind noise signal is determined, the filtering parameters corresponding to the wind noise signal can be determined according to the preset corresponding relation between the wind noise signal and the filtering parameters, and the corresponding relation can be measured in advance and stored in a memory of the earphone or received from other terminal equipment.
The corresponding relation may be a mapping relation between an energy spectrum or coherence of the wind noise signal and the filtering parameter, or a mapping relation between a wind level corresponding to the wind noise signal and a filtering parameter corresponding to the wind level. Generally speaking, the process of determining the filtering parameter according to the wind level is automatically performed by the earphone, however, under the condition that the earphone is connected with the terminal device, the earphone can also send the acquired wind level to the terminal device, and the current detected wind level of the earphone is displayed on the terminal device, so that the user can check the wind level detected by the earphone on the terminal device, and the wind level can be represented by decibel (dB) or "breeze" or "strong wind", and the form thereof is not limited; in addition, an interactive interface which enables a user to operate according to the wind level can be provided on the terminal equipment, the user can select whether to select corresponding filtering parameters according to the wind level detected by the earphone or select which filtering parameters to select according to the wind level according to the interactive interface, in order to enable the user to select the filtering parameters more conveniently, the terminal equipment can display the filtering parameters on the interactive interface as contents which are more in line with the principle of man-machine interaction, and the earphone can select the corresponding filtering parameters after receiving an instruction which is sent by the terminal equipment and selects the filtering parameters according to the wind level.
And step S30, filtering the audio signal according to the filtering parameter, and transmitting the processed audio signal to a loudspeaker of the earphone for playing.
After the filtering parameters are obtained, filtering the audio signal according to the filtering parameters, wherein the audio signal can be an analog signal or a digital signal, the filtering process is a process of processing the analog signal or the digital signal, the processing process can be a process of amplifying, eliminating a specific frequency signal or other processing on the audio signal, the filtered audio signal is obtained through the processing process, and the filtered audio signal is transmitted to a loudspeaker of the earphone to be played.
In a windy scene, if the intensity of the wind is gradually increased, the intensity of the wind noise signal detected by the microphone of the earphone is also gradually increased, and at this time, if the filtering process is amplifying the audio signal, the amplifying process of the audio signal will gradually change along with the increase of the wind noise signal, for example, the process of enhancing the audio signal may appear to gradually decrease along with the increase of the intensity of the wind noise signal, and since the frequency of detecting the wind noise signal by the microphone is higher, the process of enhancing or decreasing the audio signal is gradual.
In addition, the audio playing method of the present invention may also be used in hearing devices that amplify and play audio signals, such as hearing aids and cochlear implants.
In this embodiment, the audio signal detected by the microphone is acquired, the filtering parameter is determined according to the wind noise signal in the audio signal, the audio signal is filtered and played through the filtering parameter, the filtering parameter is determined according to the wind noise signal, when the wind noise signal changes, the filtering parameter changes accordingly, when the wind gradually increases or gradually decreases, the enhancing process of the earphone on the audio signal also gradually changes accordingly, and the earphone cannot be turned on suddenly, so that the playing effect of the earphone is improved.
Referring to fig. 3, based on the second embodiment proposed in the first embodiment, in this embodiment, step S10 in the first embodiment includes:
step S11, acquiring the ratio of the energy of the signal of the preset frequency band in the audio signal to the total energy of the audio signal;
the preset frequency band is a preset group of frequency intervals, the preset frequency band can be a low-frequency energy band, the wind noise signals are distributed more in the low-frequency energy band, for example, the energy band below 20Hz is set as the low-frequency energy band, the existence of the wind noise signals can be further determined according to the detected low-frequency signals lower than 20Hz, the high-frequency components higher than 20Hz are filtered out through a low-pass filter, the low-frequency signals can be obtained, the amplitude or the signal intensity of the low-frequency signals is smoothed, time-averaged or detected in other modes through an envelope detector to detect the envelope, the signal energy of the low-frequency signals is determined according to at least one value of the envelope detector, and the ratio of the signal energy to the total energy of the audio signals; in addition, the signal energy of the low-frequency signal can be obtained through the sensor without an envelope detector, and further the ratio can be obtained.
Step S12, determining the wind noise signal according to the ratio.
The method comprises the steps of comparing the ratio of the signal energy of a preset frequency band to the total energy of an audio signal with a preset ratio interval, for example, the energy proportion of a wind noise signal below 20Hz is large, determining the proportion of the energy of a group of wind noise signals below 20Hz in a laboratory based on the characteristic, determining the preset ratio interval, judging the existence condition of the wind noise signal according to the preset ratio interval, and determining the wind noise signal when the ratio is within the preset ratio interval.
In this embodiment, the wind noise signal is determined according to the ratio of the signal energy of the preset frequency band in the audio signal to the total energy of the audio signal, so that the wind noise signal is detected, the filtering parameter can be further selected according to the wind noise signal, the audio signal is filtered and played, and the playing effect of the earphone is improved.
Referring to fig. 4, a third embodiment is provided based on the first or second embodiment, in this embodiment, step S20 in the first and second embodiments includes:
step S21, obtaining a wind noise parameter of the wind noise signal, wherein the wind noise parameter includes at least one of an energy spectrum of the wind noise signal and coherence of frequency spectrums of the audio signal detected by at least two microphones in the headset;
the wind noise parameter is a parameter indicating the strength of a wind noise signal, and is also called energy spectrum density, the energy spectrum describes how energy of a signal or a time sequence is distributed along with frequency, energy of each frequency segment can be obtained according to the energy spectrum, in addition, the wind noise parameter can also be a power spectrum, the power spectrum describes the distribution condition of signal power in a frequency domain, coherence describes the interference degree between waveforms, the signal type in an audio signal can be determined through the coherence between audio signals detected by each microphone, wherein, a speech signal has higher coherence, a wind noise signal has lower coherence, in the case of calculating the coherence of the audio signals, the speech signal or the wind noise signal can be determined according to the above characteristics, in the case of the earphone being provided with at least two microphones, at least two audio signals detected by at least two microphones are obtained, the frequency spectrum of any one of the audio signals is determined and coherence is determined based on the frequency spectrum of each audio signal.
And step S22, acquiring the filtering parameter corresponding to the wind noise parameter.
The filtering parameters corresponding to the wind noise parameters may be preset, and the corresponding relationship between the wind noise parameters and the filtering parameters is stored in the memory, so that after the earphone acquires the wind noise parameters of the wind noise signals, the filtering parameters may be selected according to the corresponding relationship, the corresponding relationship is one group or more, for example, 5 groups of corresponding relationships may be preset, each group of corresponding relationships indicates a group of filtering parameters corresponding to an energy spectrum in a certain interval or a coherence in a certain interval, when the intensity of the wind noise signals detected by the microphone changes from weak to strong, the earphone selects each group of filtering parameters in turn, and at this time, the audio enhancement process by the earphone changes gradually.
In this embodiment, the filtering parameter corresponding to the wind noise parameter is obtained, and in a scene with wind, the intensity of wind tends to be gradual, so the change of the wind noise parameter is also gradual, and correspondingly, the change of the filtering parameter is also gradual, so the process of the earphone processing the audio through the filtering parameter to change the intensity of the audio signal is also gradual, thereby improving the playing effect of the earphone.
Referring to fig. 5, based on the third embodiment, in which the wind noise parameter is coherence of frequency spectrums of the audio signals detected by the at least two microphones, the step S21 includes:
step S211, acquiring audio signals detected by at least two microphones;
step S212, obtaining the self-power spectral density of the audio signal detected by each microphone;
step S213, obtaining cross power spectral density between the audio signal detected by each microphone and the audio signals detected by other microphones;
step S214, determining the spectrum coherence according to the self-power spectral density and the cross-power spectral density.
The earphone is provided with at least two microphones, the audio signal refers to the audio signal detected by any microphone, the audio signal detected by the microphones comprises a wind noise signal, the wind noise signal mainly comprises two parts, one part is noise generated by the interaction of the interior of air flow, the other part is noise generated by the interaction of the air flow and the tympanic membrane of the microphone, generally speaking, the frequency spectrum of the wind noise signal is a decreasing function of frequency, the energy of the wind noise signal is mainly distributed in a low frequency range, the wind noise signal has the characteristic of low coherence, the wind noise signal and the voice signal have extremely low coherence, the voice signal and the wind noise signal can be estimated to be irrelevant approximately, the voice signal has higher coherence, the coherence can be represented by a coherence coefficient, and the coherence coefficient T can be represented by the coherence coefficientx1x2=(Gx1x2)/(Gx1x1*Gx2x2) Where x1 and x2 are two signals, Tx1x2Is a coefficient of coherence, Gx1x2Cross power spectral density, G, of x1 and x2x1x1And Gx2x2The self-power spectral densities of x1 and x2, respectively, have coherence coefficients between 0 and 1, and since the coherence of the wind noise signal is low, a signal corresponding to coherence within a certain range can be defined as a wind noise signal, and for example, a signal having a coherence coefficient of 0.2 or less can be defined as a wind noise signal.
When the number of the microphones is more than three (including three), summing or other mathematical operations can be performed according to different weights on the frequency spectrum coherence of the detected audio signals of every two microphones to obtain the frequency spectrum coherence, and the microphones can be arranged at different positions of the earphone to obtain the audio signals at different angles, so that the wind noise at different positions can be detected, and the frequency spectrum coherence can be further obtained.
In this embodiment, the frequency spectrum coherence of the audio signal is determined by the audio signals detected by the at least two microphones, so that the wind noise signal can be further determined, the filtering parameter can be further selected, the audio signal can be processed and played according to the filtering parameter, and the playing effect of the earphone is improved.
Referring to fig. 6, based on the third embodiment, a fifth embodiment is provided, in this embodiment, after step S21 in the third embodiment, further including:
and step S23, when the wind noise parameter is larger than a preset threshold value, executing the step of obtaining the filtering parameter corresponding to the wind noise parameter.
The preset threshold is a value which is pre-stored in the memory and corresponds to the wind noise parameter, and is used for measuring whether the wind noise signal is in a reasonable range or not, when the wind noise signal is greater than the preset threshold, the wind noise signal is indicated to be out of the reasonable range, at the moment, the filtering parameter corresponding to the wind noise parameter is obtained, the audio signal is filtered according to the filtering parameter, and the processed audio signal is transmitted to the loudspeaker of the earphone to be played.
And step S24, when the wind noise parameter is less than or equal to the preset threshold value, setting the filtering parameter as a default filtering parameter.
When the wind noise parameter is smaller than or equal to the preset threshold, the wind noise parameter is within a reasonable range, the filtering parameter is set as a default filtering parameter at the moment, the default filtering parameter is a set of preset filtering parameters for adjusting the audio signal, the default filtering parameter is used for filtering the audio signal detected by the microphone when the wind noise parameter is smaller than or equal to the preset threshold, for example, amplification processing is carried out, so that the sound detected by the microphone is played at a higher sound intensity, and when the wind noise parameter is smaller than or equal to the preset threshold, the intensity of the wind noise signal is weaker, and at the moment, the default filtering processing process is kept beneficial to maintaining a stable playing effect of the earphone.
In this embodiment, whether the wind noise parameter is greater than the preset threshold is judged, when the wind noise parameter is greater than the preset threshold, the filtering parameter corresponding to the wind noise signal is obtained, the audio signal is processed according to the filtering parameter so that the change process of the audio signal is stable rather than abrupt change, when the wind noise parameter is not greater than the preset threshold, the audio signal is processed through the default filtering parameter so that the filtering process of the audio signal is maintained in a stable state, and the playing effect of the earphone in different scenes is improved.
Referring to fig. 7, a sixth embodiment is provided based on the first embodiment or the second embodiment, in this embodiment, step S20 in the first and second embodiments includes:
step S25, acquiring a wind noise parameter interval where the wind noise parameter is located;
the wind noise parameter interval is a range of preset wind noise parameters, each wind noise parameter interval corresponds to a group of filtering parameters, and the wind noise parameter interval is used for dividing the wind noise parameters into sets so as to further obtain the filtering parameters according to the sets.
The wind noise parameter interval can be sent to the terminal equipment matched with the earphone after the wind noise parameter interval is obtained, and the terminal equipment displays the wind noise parameter interval on an interface after the wind noise parameter interval is obtained, so that a user can know the wind noise parameter interval detected by the earphone through the terminal equipment.
And step S26, determining the filtering parameter according to the wind noise parameter interval.
Each wind noise parameter interval has corresponding filtering parameters, the corresponding relation between the wind noise parameter interval and the filtering parameters can be prestored in a memory of the earphone, and the corresponding relation can also be received from other terminal equipment, so that the filtering parameters are determined according to the corresponding relation.
In this embodiment, the filtering parameter is determined through the wind noise parameter interval where the wind noise parameter is located, so that the audio signal can be processed according to the filtering parameter, when the intensity of the wind noise signal changes gradually, the interval where the wind noise parameter is located changes gradually, the filtering parameter also changes gradually, the process is gradual, and the playing effect of the earphone is improved.
With reference to fig. 8, a seventh embodiment is provided based on any one of the first to sixth embodiments, in which the audio playing method includes:
step S13, detecting the wearing state of the earphone;
can detect the wearing state of earphone through the accelerometer, the accelerometer can detect acceleration data, can judge the wearing state of earphone through judging acceleration data whether in predetermineeing the within range, wherein, when acceleration data is in predetermineeing the within range, the earphone is in wearing the state, and when acceleration data is not in predetermineeing the within range, the earphone is in not wearing the state.
The acceleration data can be the acceleration data of three coordinate axes that triaxial accelerometer detected, can confirm through the contained angle between acceleration of gravity and each coordinate axis whether the earphone wears, when this contained angle is in the default range, the earphone is the state of wearing, when this contained angle is not in this default range, the earphone is the state of not wearing, also can judge the state of wearing according to the change of contained angle, the earphone is the state of wearing when the change of contained angle is greater than the default threshold value, the earphone is the state of not wearing when being less than or equal to the default threshold value.
In addition, whether the earphone is close to the ear or not can be judged through the proximity sensor, and whether the earphone is worn or not is judged through the accelerometer only when the distance value detected by the proximity sensor is smaller than a preset value so as to achieve the effect of saving electric quantity.
And step S14, when the earphone is in the worn state, executing the step of acquiring the audio signal detected by the microphone.
When the earphone is in a worn state, the step of acquiring the audio signal detected by the microphone and the subsequent steps are executed, so that the earphone can automatically judge the worn state and execute audio playing only when the earphone is worn.
In the embodiment, the wearing state of the headset is detected through the accelerometer, and the audio playing process is controlled only when the headset is in the worn state, so that the power consumption of the headset is reduced.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where an audio playing program is stored, and when the audio playing program is executed by a processor, the audio playing program implements the steps of the audio playing method according to any of the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. 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 system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM) as described above and includes instructions for causing a headset to perform the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An audio playing method is applied to earphones, and the audio playing method comprises the following steps:
acquiring an audio signal detected by a microphone, and determining a wind noise signal in the audio signal;
acquiring a filtering parameter corresponding to the wind noise signal;
and carrying out filtering processing on the audio signal according to the filtering parameter, and transmitting the processed audio signal to a loudspeaker of the earphone for playing.
2. The audio playback method of claim 1, wherein the step of determining the wind noise signal in the audio signal comprises:
acquiring the ratio of the energy of a signal in a preset frequency band in the audio signal to the total energy of the audio signal;
determining the wind noise signal according to the ratio.
3. The audio playing method according to claim 1, wherein the step of obtaining the filtering parameter corresponding to the wind noise signal comprises:
acquiring a wind noise parameter of the wind noise signal, wherein the wind noise parameter comprises at least one of an energy spectrum of the wind noise signal and a spectral coherence of the audio signal detected by at least two microphones in the headset;
and acquiring the filtering parameter corresponding to the wind noise parameter.
4. The audio playing method according to claim 3, wherein the wind noise parameter includes spectral coherence of the audio signal detected by at least two microphones, and the step of obtaining the wind noise parameter of the wind noise signal includes:
acquiring audio signals detected by at least two microphones;
acquiring the self-power spectral density of the audio signal detected by each microphone;
acquiring cross-power spectral density between the audio signal detected by each microphone and the audio signals detected by other microphones;
and determining the frequency spectrum coherence according to the self-power spectral density and the cross-power spectral density.
5. The audio playback method of claim 3, wherein the step of obtaining the wind noise parameter of the wind noise signal is followed by further comprising:
and when the wind noise parameter is larger than a preset threshold value, executing the step of acquiring a filtering parameter corresponding to the wind noise parameter.
6. The audio playback method of claim 3, wherein the step of obtaining the wind noise parameter of the wind noise signal is followed by further comprising:
and when the wind noise parameter is smaller than or equal to the preset threshold value, setting the filtering parameter as a default filtering parameter.
7. The audio playing method as claimed in claim 3, wherein the step of obtaining the filtering parameter corresponding to the wind noise parameter comprises:
acquiring a wind noise parameter interval in which the wind noise parameter is positioned;
and determining the filtering parameters according to the wind noise parameter interval.
8. The audio playback method of claim 1, wherein the audio playback method comprises:
detecting a wearing state of the earphone;
and when the earphone is in a worn state, the step of acquiring the audio signal detected by the microphone is executed.
9. An earphone, characterized in that the earphone comprises a loudspeaker, a microphone, a memory, a processor and an audio playback program stored on the memory and executable on the processor, the processor being connected to the loudspeaker and the microphone, the audio playback program, when executed by the processor, implementing the steps of the audio playback method as claimed in any one of claims 1-8.
10. A computer-readable storage medium, having stored thereon an audio playback program which, when executed by a processor, implements the steps of the audio playback method according to any one of claims 1 to 8.
CN202010703609.0A 2020-07-20 2020-07-20 Audio playing method, earphone and computer readable storage medium Active CN111885458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010703609.0A CN111885458B (en) 2020-07-20 2020-07-20 Audio playing method, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010703609.0A CN111885458B (en) 2020-07-20 2020-07-20 Audio playing method, earphone and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111885458A true CN111885458A (en) 2020-11-03
CN111885458B CN111885458B (en) 2022-04-22

Family

ID=73156059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010703609.0A Active CN111885458B (en) 2020-07-20 2020-07-20 Audio playing method, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111885458B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511963A (en) * 2020-11-25 2021-03-16 歌尔科技有限公司 Earphone edge tone detection method and device and airflow simulation device
CN113259799A (en) * 2021-04-23 2021-08-13 深圳市豪恩声学股份有限公司 Blocking effect optimization method, device, equipment and storage medium
CN113507668A (en) * 2021-06-30 2021-10-15 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113613145A (en) * 2021-08-09 2021-11-05 深圳分贝声学科技有限公司 Noise reduction processing method and related device
CN114815256A (en) * 2022-04-15 2022-07-29 青岛虚拟现实研究院有限公司 Screen parameter adjusting method and device of virtual reality head-mounted device and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060233391A1 (en) * 2005-04-19 2006-10-19 Park Jae-Ha Audio data processing apparatus and method to reduce wind noise
CN102254563A (en) * 2010-05-19 2011-11-23 上海聪维声学技术有限公司 Wind noise suppression method used for dual-microphone digital hearing-aid
US8515097B2 (en) * 2008-07-25 2013-08-20 Broadcom Corporation Single microphone wind noise suppression
JP2014102318A (en) * 2012-11-19 2014-06-05 Jvc Kenwood Corp Noise elimination device, noise elimination method, and program
CN104637489A (en) * 2015-01-21 2015-05-20 华为技术有限公司 Method and device for processing sound signals
CN204795532U (en) * 2015-07-24 2015-11-18 歌尔声学股份有限公司 Earphone of making an uproar falls in initiative
US20170347205A1 (en) * 2016-05-30 2017-11-30 Sivantos Pte. Ltd. Method for the automated ascertainment of parameter values for a hearing aid
US20180192191A1 (en) * 2016-11-09 2018-07-05 Bose Corporation Dual-Use Bilateral Microphone Array
CN109257675A (en) * 2018-10-19 2019-01-22 歌尔科技有限公司 A kind of radix saposhnikoviae method for de-noising, earphone and storage medium
US20190069074A1 (en) * 2017-08-31 2019-02-28 Bose Corporation Wind noise mitigation in active noise cancelling headphone system and method
CN110072175A (en) * 2018-01-23 2019-07-30 半导体组件工业公司 Control circuit and method for weakening wind noise
US20190253795A1 (en) * 2016-10-21 2019-08-15 Nokia Technologies Oy Detecting the presence of wind noise
US20200020313A1 (en) * 2018-07-16 2020-01-16 Apple Inc. Headphone transparency, occlusion effect mitigation and wind noise detection

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060233391A1 (en) * 2005-04-19 2006-10-19 Park Jae-Ha Audio data processing apparatus and method to reduce wind noise
US8515097B2 (en) * 2008-07-25 2013-08-20 Broadcom Corporation Single microphone wind noise suppression
CN102254563A (en) * 2010-05-19 2011-11-23 上海聪维声学技术有限公司 Wind noise suppression method used for dual-microphone digital hearing-aid
JP2014102318A (en) * 2012-11-19 2014-06-05 Jvc Kenwood Corp Noise elimination device, noise elimination method, and program
CN104637489A (en) * 2015-01-21 2015-05-20 华为技术有限公司 Method and device for processing sound signals
CN204795532U (en) * 2015-07-24 2015-11-18 歌尔声学股份有限公司 Earphone of making an uproar falls in initiative
US20170347205A1 (en) * 2016-05-30 2017-11-30 Sivantos Pte. Ltd. Method for the automated ascertainment of parameter values for a hearing aid
US20190253795A1 (en) * 2016-10-21 2019-08-15 Nokia Technologies Oy Detecting the presence of wind noise
US20180192191A1 (en) * 2016-11-09 2018-07-05 Bose Corporation Dual-Use Bilateral Microphone Array
US20190069074A1 (en) * 2017-08-31 2019-02-28 Bose Corporation Wind noise mitigation in active noise cancelling headphone system and method
CN110072175A (en) * 2018-01-23 2019-07-30 半导体组件工业公司 Control circuit and method for weakening wind noise
US20200020313A1 (en) * 2018-07-16 2020-01-16 Apple Inc. Headphone transparency, occlusion effect mitigation and wind noise detection
CN109257675A (en) * 2018-10-19 2019-01-22 歌尔科技有限公司 A kind of radix saposhnikoviae method for de-noising, earphone and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ELIAS NEMER: "Single-microphone wind noise reduction by adaptive postfiltering", 《 2009 IEEE WORKSHOP ON APPLICATIONS OF SIGNAL PROCESSING TO AUDIO AND ACOUSTICS》 *
袁军: "基于汽车风噪的主动噪声控制系统的研究与设计", 《重庆理工大学学报(自然科学)》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511963A (en) * 2020-11-25 2021-03-16 歌尔科技有限公司 Earphone edge tone detection method and device and airflow simulation device
CN113259799A (en) * 2021-04-23 2021-08-13 深圳市豪恩声学股份有限公司 Blocking effect optimization method, device, equipment and storage medium
CN113259799B (en) * 2021-04-23 2023-03-03 深圳市豪恩声学股份有限公司 Blocking effect optimization method, device, equipment and storage medium
CN113507668A (en) * 2021-06-30 2021-10-15 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113507668B (en) * 2021-06-30 2022-11-22 歌尔科技有限公司 Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN113613145A (en) * 2021-08-09 2021-11-05 深圳分贝声学科技有限公司 Noise reduction processing method and related device
CN114815256A (en) * 2022-04-15 2022-07-29 青岛虚拟现实研究院有限公司 Screen parameter adjusting method and device of virtual reality head-mounted device and storage medium
CN114815256B (en) * 2022-04-15 2023-10-03 青岛虚拟现实研究院有限公司 Screen parameter adjustment method, device and storage medium of virtual reality head-mounted device

Also Published As

Publication number Publication date
CN111885458B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN111885458B (en) Audio playing method, earphone and computer readable storage medium
US11244666B2 (en) Method and device for acute sound detection and reproduction
CN102124758B (en) Hearing aid, hearing assistance system, walking detection method, and hearing assistance method
EP3048779B1 (en) Sound volume adjusting method and device
CN112954115B (en) Volume adjusting method and device, electronic equipment and storage medium
EP3337190B1 (en) A method of reducing noise in an audio processing device
EP3777114B1 (en) Dynamically adjustable sidetone generation
CN215935067U (en) Wearable audio equipment
JP2012191293A (en) Hearing aid adjustment device
EP3703391A1 (en) A hearing device comprising a loop gain limiter
US20140064529A1 (en) Apparatus and method of shielding external noise for use in hearing aid device
CN105872884A (en) Headset as well as downlink noise reduction circuit and method for headset
CN106535024A (en) Power amplifier circuit, control method and earphone system
CN113259801A (en) Loudspeaker noise reduction method of intelligent earphone and related device
WO2023087468A1 (en) Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium
EP4047956A1 (en) A hearing aid comprising an open loop gain estimator
CN113630684A (en) Earphone with active noise reduction function and noise reduction method thereof
CN114071307A (en) Earphone volume adjusting method, device, equipment and medium
US8948429B2 (en) Amplification of a speech signal in dependence on the input level
JP2004173173A (en) Voice processing apparatus
JP2004032387A (en) Howling control unit and hearing aid
Kąkol et al. A study on signal processing methods applied to hearing aids
CN114125625B (en) Noise reduction adjustment method, earphone and computer readable storage medium
CN113645533B (en) Active noise reduction earphone and noise reduction method thereof
CN115767355A (en) Earphone volume adaptive compensation method and device, terminal equipment and storage medium

Legal Events

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