CN109714663B - Earphone control method, earphone and storage medium - Google Patents

Earphone control method, earphone and storage medium Download PDF

Info

Publication number
CN109714663B
CN109714663B CN201811572726.7A CN201811572726A CN109714663B CN 109714663 B CN109714663 B CN 109714663B CN 201811572726 A CN201811572726 A CN 201811572726A CN 109714663 B CN109714663 B CN 109714663B
Authority
CN
China
Prior art keywords
noise
signal
noise reduction
earphone
environmental
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
Application number
CN201811572726.7A
Other languages
Chinese (zh)
Other versions
CN109714663A (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 CN201811572726.7A priority Critical patent/CN109714663B/en
Publication of CN109714663A publication Critical patent/CN109714663A/en
Application granted granted Critical
Publication of CN109714663B publication Critical patent/CN109714663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application provides a control method of an earphone, the earphone and a storage medium, wherein the method comprises the following steps: collecting a current environmental noise signal by using a microphone of the earphone; determining the noise type of the environmental noise signal according to the signal characteristics of the environmental noise signal; determining a target noise reduction level matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction level; and adjusting the noise reduction level of the earphone to the target noise reduction level, and performing noise reduction processing on the useful signal played by the earphone according to the target noise reduction level. In this embodiment, to different noise types, can for the earphone configuration most suitable noise reduction level to improve and lead to the problem that the user can't perceive the potential safety hazard in the external environment because of making an uproar, and then improve the factor of safety when wearing the earphone.

Description

Earphone control method, earphone and storage medium
Technical Field
The present application relates to the field of earphone technologies, and in particular, to a control method for an earphone, and a storage medium.
Background
With the development of active noise reduction technology, noise reduction earphones are more and more widely applied. Based on the noise reduction function of the noise reduction earphone, the noise reduction signal with the same value and opposite phase with the ambient noise signal can be used for offsetting the ambient noise signal outside the earphone, so that a user can hear an audio signal with higher quality as much as possible.
However, the noise reduction effect of the existing noise reduction earphone is not intelligent enough, and potential safety hazards are possibly brought.
Disclosure of Invention
Aspects of the present disclosure provide a control method for an earphone, and a storage medium, so as to improve a safety factor when wearing the earphone.
The embodiment of the application provides a control method of an earphone, which comprises the following steps:
collecting a current environmental noise signal by using a microphone of the earphone;
determining the noise type of the environmental noise signal according to the signal characteristics of the environmental noise signal;
determining a target noise reduction level matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction level;
and adjusting the noise reduction level of the earphone to the target noise reduction level, and reducing the noise of the useful signal played by the earphone according to the target noise reduction level.
The embodiment of the application also provides an earphone, which comprises a microphone and a processor;
the microphone is used for acquiring a current environmental noise signal and sending the acquired environmental noise signal to the processor;
the processor is used for determining the noise type of the environment noise signal according to the signal characteristics of the environment noise signal;
determining a target noise reduction level matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction level;
and adjusting the noise reduction level of the earphone to the target noise reduction level, and reducing the noise of the useful signal played by the earphone according to the target noise reduction level.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to execute the aforementioned control method of a headset.
In the embodiment of the application, based on the pre-configured association relationship between the noise type and the noise reduction level, the noise type of the environmental noise signal in the current environment of the earphone can be determined through analysis of the environmental noise signal, and the target noise reduction level corresponding to the noise type is further determined; the noise reduction level of the earphone is adjusted to the target noise reduction level, so that the earphone can be controlled to reduce noise of the useful signal according to the target noise reduction level. This makes, to different noise types, can for the earphone configuration optimum noise reduction level to improve and fall and lead to the problem that the user can't perceive the potential safety hazard in the external environment because of making an uproar, and then improve the factor of safety when wearing the earphone.
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 schematic flowchart of a control method of an earphone according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an earphone 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.
At present, the noise reduction effect of the noise reduction earphone is not intelligent enough, and potential safety hazards are possibly brought. In some embodiments of the present application: based on the incidence relation between the pre-configured noise type and the noise reduction grade, the noise type of the environmental noise signal in the current environment of the earphone can be determined through the analysis of the environmental noise signal, and the target noise reduction grade corresponding to the noise type is further determined; the noise reduction level of the earphone is adjusted to the target noise reduction level, so that the earphone can be controlled to reduce noise of the useful signal according to the target noise reduction level. This makes, to different noise types, can for the earphone configuration optimum noise reduction level to improve and fall and lead to the problem that the user can't perceive the potential safety hazard in the external environment because of making an uproar, and then improve the factor of safety when wearing the earphone.
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 schematic flowchart of a method for controlling an earphone according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
100. collecting a current environmental noise signal by using a microphone of the earphone;
101. determining the noise type of the environmental noise signal according to the signal characteristics of the environmental noise signal;
102. determining a target noise reduction grade matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction grade;
103. and adjusting the noise reduction level of the earphone to a target noise reduction level, and reducing the noise of the useful signal played by the earphone according to the target noise reduction level.
The control method of the earphone provided by the embodiment of the application can be applied to various types of earphones, such as: wired earphones, wireless earphones and the like to intelligently control the perception capability of a user to the external environment when wearing the earphones. The present embodiment does not limit the application scenario. In addition, the control method of the earphone provided in this embodiment may be used as an additional function of the earphone, that is, the user may selectively turn on the function of the earphone according to the use requirement to implement the method, which is not limited in this embodiment.
In this embodiment, the ambient noise signal may be collected by a microphone based on the earphone, and in order to improve the accuracy of the collected ambient noise signal, the ambient noise signal may be collected by a noise microphone of the earphone, where the noise microphone is a microphone that is different from the main microphone for communication and is far away from the mouth and nose of the user. For example, the noise microphone may be a feed-forward microphone of a noise reduction headset. Of course, the present embodiment is not limited thereto.
Based on the signal characteristics of the ambient noise signal collected by the microphone, the noise type of the ambient noise signal may be determined. This is mainly based on the fact that different noise types usually have different signal characteristics, and therefore, the noise type of the ambient noise signal can be accurately determined according to the signal characteristics.
In one implementation, the ambient noise signal may be fourier transformed to determine a frequency spectrum of the ambient noise signal; acquiring a target standard spectrum with the similarity of the spectrum of the environmental noise signal meeting specified conditions from standard spectrums corresponding to various noise types respectively; and taking the noise type corresponding to the target standard spectrum as the noise type of the environmental noise signal.
The standard frequency spectrum corresponding to each noise type can be obtained from public channels. For example, it can be queried from the standard spectrum of various signals published on the network. Of course, it may also be obtained in an experimental environment by simulating correlated types of noise. This embodiment is not limited to this. In addition, the standard spectrum corresponding to each of the various noise types may be stored in the local storage area of the headset, so that the standard spectrum corresponding to each of the various noise types may be directly read from the local storage area of the headset when the above step 102 is performed. Of course, the standard spectrum corresponding to each of the various noise types may be stored in a storage location other than the headset, in which case, when the above-mentioned step 102 is performed, it is necessary to remotely read the standard spectrum corresponding to each of the various noise types in the relevant storage location.
By comparing the frequency spectrum of the ambient noise signal collected by the microphone with each standard frequency spectrum, the similarity between the frequency spectrum of the ambient noise signal collected by the microphone and each standard frequency spectrum can be obtained. In this practical application, it can be determined whether the highest similarity is greater than a preset similarity threshold value, so as to determine whether the target standard frequency spectrum exists. The preset similarity threshold may be set according to actual conditions, for example, the preset similarity threshold may be 80%, 90%, or other values, which is not limited in this embodiment.
If the standard spectrum corresponding to each noise type has the target standard spectrum, it represents that the environment noise signal of the specified noise type exists in the environment where the earphone is currently located, and it should be understood that the specified noise type refers to any noise type in the association relationship between the noise type and the noise reduction level.
In this embodiment, the specified noise type may be wind noise, footstep sound, human speaking sound, automobile whistling sound, alarm buzzer sound, running sound, or automobile driving sound. Wherein the running sound may be a sound of a human or animal running; the automobile running sound may be a combined sound of wind noise generated during the running of the automobile and ground friction sound. The incidence relation between the noise type and the noise reduction level can be configured according to the potential safety hazard levels corresponding to different noise types.
In one implementation, a first noise reduction level may be assigned to wind noise, footsteps, or human speech, a second noise reduction level may be assigned to car whistling sounds or siren beeps, and a third noise reduction level may be assigned to running sounds or car driving sounds, wherein the noise reduction levels of the first, second, and third noise reduction levels are sequentially reduced.
For example, the safety hazard level of wind noise, footstep sound or human speaking sound is low, and the environmental noise signals of the noise types can be eliminated as much as possible according to a high noise reduction level, so that the playing quality of useful signals of the earphone is improved. For another example, the running sound or the car running sound has a high safety risk level, and the environmental noise signals of the noise types can be reserved as much as possible according to a low noise reduction level, so that the user can hear the environmental noise signals of the noise types. Alternatively, the third noise reduction level may correspond to stopping the noise reduction operation, that is, when the target noise reduction level matching the ambient noise signal is the third noise reduction level, the earphone may be controlled to stop the noise reduction operation to completely retain the ambient noise signal.
It should be noted that the number of noise reduction levels is not limited in this embodiment, and four, five, thirteen or other numbers of noise reduction levels may be provided in addition to the three noise reduction levels provided in the above practical application. The association relationship between the noise reduction type and the noise reduction level is not limited to the configuration in the above-described practical application. Moreover, the technical solutions based on the configuration ideas provided by the present embodiment should all fall within the protection scope of the present application.
In this embodiment, different noise reduction levels may correspond to different noise reduction parameters, and based on the different noise reduction parameters, the useful signal played by the headphone is subjected to noise reduction according to different noise reduction degrees. Accordingly, the noise reduction parameters of the noise reduction filter of the earphone can be updated according to the noise reduction parameters corresponding to the target noise reduction level; and generating a noise reduction signal by using a noise reduction filter based on the updated noise reduction parameters so as to perform noise reduction processing on the useful signal played by the earphone. By updating the noise reduction parameters of the noise reduction filter, parameters such as the power of the noise reduction signal output by the noise reduction filter can be adjusted, thereby adjusting the noise reduction degree of the useful signal.
It can be understood that, based on the foregoing various settings, when the noise reduction level is higher, the corresponding noise reduction degree is higher, the residual signal of the environmental noise signal obtained after noise reduction is less, and accordingly, the perception degree of the external environment by the user is lower.
In order to reduce the influence of the noise reduction level adjustment on the hearing of the user, in this embodiment, the noise reduction level of the headphone may be adjusted to the target noise reduction level in a stepwise manner starting from the current noise reduction level of the headphone. In the above example of configuring the third noise reduction level for the vehicle driving sound, if the earphone is in the first noise reduction level, and it is detected that the ambient noise signal collected by the microphone is the vehicle driving sound, the noise reduction level of the earphone may be adjusted from the first noise reduction level to the second noise reduction level, and then adjusted from the second noise reduction level to the third noise reduction level. The process of stepwise adjusting the noise reduction level may be completed within a preset time, for example, within 3s, although the embodiment is not limited thereto.
In this embodiment: based on the incidence relation between the pre-configured noise type and the noise reduction grade, the noise type of the environmental noise signal in the current environment of the earphone can be determined through the analysis of the environmental noise signal, and the target noise reduction grade corresponding to the noise type is further determined; the noise reduction level of the earphone is adjusted to the target noise reduction level, so that the earphone can be controlled to reduce noise of the useful signal according to the target noise reduction level. This makes, to different noise types, can for the earphone configuration optimum noise reduction level to improve and fall and lead to the problem that the user can't perceive the potential safety hazard in the external environment because of making an uproar, and then improve the factor of safety when wearing the earphone.
In the above or following embodiments, in addition to adjusting the degree of perception of the user to the external environment by adjusting the noise reduction level, a target volume reduction amount matched with the environmental noise signal may be determined according to the noise type of the environmental noise signal and the correlation between the noise type and the volume reduction amount; and adjusting the playing volume of the useful signal according to the target volume reduction amount.
In this embodiment, according to different noise types, the playing volume of the useful signal can be adjusted to different degrees, so as to highlight the environmental noise signal and improve the attention of the user to the environmental noise signal.
For example, a first volume reduction may be configured for the aforementioned automobile driving sound, and the first volume reduction may be to adjust the playing volume of the useful signal to zero, that is, when the automobile driving sound exists in the external environment, the user will not hear the useful signal any more, but only hear the ambient noise signal, so that the user can focus on the ambient noise signal completely.
For another example, a second volume reduction may be provided for the aforementioned automobile whistling sound, and the second volume reduction may reduce the amount of useful signals to be played by half, thereby improving the ability of the user to recognize the automobile whistling sound.
For another example, a third volume reduction amount can be configured for the aforementioned footstep sound, and the third volume reduction amount can keep the playing volume of the useful signal unchanged or increased, so that the user can enjoy the useful signal more without any need to take care of the external environment noise.
From this, it can be appreciated that for noise types with higher levels of safety hazards, a higher volume reduction can be configured to better highlight the ambient noise signal.
In the above or following embodiments, if the noise type of the current ambient noise signal is the preset noise reduction type, after the noise reduction level of the earphone is adjusted to the target noise reduction level, the microphone may be further used to continue to collect the ambient noise signal; if the noise type of the environmental noise signal continuously acquired by the microphone is consistent with the noise type of the current environmental noise signal, determining the sound source direction and the sound source distance of the continuously acquired environmental noise signal; if the time length of the variation range of the sound source direction kept in the preset threshold range exceeds the preset time length, judging whether the sound source distance is approaching or not; if the judgment result is yes, the earphone is controlled to output a warning signal.
The method comprises the steps of utilizing each microphone in a microphone array on the earphone to continuously collect an environmental noise signal, and determining the sound source direction and the sound source distance of the environmental noise signal. Of course, other methods may also be used to determine the ambient noise signal, and determine the sound source direction and the sound source distance of the ambient noise signal, which is not limited in this embodiment.
In this embodiment, the preset noise type may be the noise type with the higher potential safety hazard level. For example, the aforementioned running sound or running sound of the automobile may be set as a preset noise type. Of course, the present embodiment is not limited thereto.
When the time length of the variation range of the sound source direction of the continuously acquired environmental noise signal, which is kept in the preset threshold range, exceeds the preset time length, the characteristic indicates that the user may not notice the potential safety hazard reflected by the environmental noise signal, and therefore, whether the sound source distance of the environmental noise signal is reduced or not can be further judged, that is, whether the potential safety hazard is continuously close to the user or not can be judged. If the judgment result is yes, the representation is that the potential safety hazard is not released and the representation is continuously close to the user, and the earphone can be controlled to output a warning signal and remind the user of the potential safety hazard in the external environment.
Wherein, can adopt multiple implementation to control the earphone to output warning signal.
In one implementation, the environmental noise signals collected continuously can be subjected to forward superposition to obtain forward-superposed environmental noise signals; and controlling the earphone to output the environment noise signal after forward superposition.
In this implementation, the ambient noise signal is enhanced in a forward superposition manner to warn the user that the potential safety hazard is approaching.
In another implementation, an alarm prompt tone signal may be generated and the earphone may be controlled to output the alarm prompt tone signal.
In this implementation, the alert tone signal may be generated, for example, the alert tone signal may be pre-stored in the local storage area of the headset, and the alert tone signal in the local storage area of the headset may be directly called in this implementation. The alarm prompt tone signal can be a section of voice or a section of alarm sound, and the implementation mode does not limit the above.
In the embodiment, when potential safety hazards exist in the external environment, the attention and the identification capability of the user on the environmental noise signals are improved in a mode of highlighting the environmental noise signals, so that the user can timely sense the potential safety hazards in the external environment, and safety accidents are avoided.
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. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Fig. 2 is a schematic structural diagram of an earphone according to another embodiment of the present application. As shown in fig. 2, the headset comprises a microphone 21 and a processor 20.
The microphone 21 is configured to collect a current ambient noise signal and send the collected ambient noise signal to the processor 20;
the processor 20 is configured to determine a noise type of the ambient noise signal according to a signal characteristic of the ambient noise signal;
determining a target noise reduction grade matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction grade;
and adjusting the noise reduction level of the earphone to a target noise reduction level, and reducing the noise of the useful signal played by the earphone according to the target noise reduction level.
The earphone in this embodiment may be various types of earphones, and this embodiment does not limit this.
In the embodiment of the application, based on the pre-configured association relationship between the noise type and the noise reduction level, the noise type of the environmental noise signal in the current environment of the earphone can be determined through analysis of the environmental noise signal, and the target noise reduction level corresponding to the noise type is further determined; the noise reduction level of the earphone is adjusted to the target noise reduction level, so that the earphone can be controlled to reduce noise of the useful signal according to the target noise reduction level. This makes, to different noise types, can for the earphone configuration optimum noise reduction level to improve and fall and lead to the problem that the user can't perceive the potential safety hazard in the external environment because of making an uproar, and then improve the factor of safety when wearing the earphone.
In an alternative embodiment, the processor 20, when determining the noise type of the ambient noise signal from the signal characteristic of the ambient noise signal, is configured to:
performing a fourier transform on the ambient noise signal to determine a frequency spectrum of the ambient noise signal;
acquiring a target standard spectrum with the similarity of the spectrum of the environmental noise signal meeting specified conditions from standard spectrums corresponding to various noise types respectively;
and taking the noise type corresponding to the target standard spectrum as the noise type of the environmental noise signal.
In an alternative embodiment, the processor 20, when adjusting the noise reduction level of the headphone to the target noise reduction level, is configured to:
and starting from the current noise reduction level of the earphone, the noise reduction level of the earphone is adjusted to a target noise reduction level in a stepped mode.
In an alternative embodiment, processor 20 is further configured to:
determining a target volume reduction matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the volume reduction;
and adjusting the playing volume of the useful signal according to the target volume reduction amount.
In an alternative embodiment, if the noise type of the current ambient noise signal is the preset noise reduction type, the processor 20 is further configured to, after adjusting the noise reduction level of the headphone to the target noise reduction level:
continuing to collect the ambient noise signal by using the microphone 21;
if the noise type of the environmental noise signal continuously acquired by the microphone 21 is consistent with the noise type of the current environmental noise signal, determining the sound source direction and the sound source distance of the continuously acquired environmental noise signal;
if the time length of the variation range of the sound source direction kept in the preset threshold range exceeds the preset time length, judging whether the sound source distance is approaching or not;
if the judgment result is yes, the earphone is controlled to output a warning signal.
In an alternative embodiment, the processor 20, when controlling the earphone to output the warning signal, is configured to:
carrying out forward superposition on the continuously acquired environmental noise signals to obtain forward superposed environmental noise signals; controlling the earphone to output the environmental noise signal after forward superposition; or
And generating an alarm prompt tone signal and controlling the earphone to output the alarm prompt tone signal.
In an alternative embodiment, the headphone further comprises a noise reduction filter 25, and the processor 20, when performing noise reduction processing on the useful signal played by the headphone according to the target noise reduction level, is configured to:
updating the noise reduction parameters of the noise reduction filter 25 of the earphone according to the noise reduction parameters corresponding to the target noise reduction level;
based on the updated noise reduction parameters, a noise reduction signal is generated by the noise reduction filter 25 to perform noise reduction processing on the useful signal played by the headphone.
In an alternative embodiment, the noise type is wind noise, footstep sound, human speaking sound, car whistling sound, siren beeping sound, running sound, or car driving sound;
in the incidence relation between the noise type and the noise reduction grade, wind noise, footstep sound or human speaking sound corresponds to a first noise reduction grade, automobile whistling sound obtains alarm beep sound corresponding to a second noise reduction grade, running sound or automobile driving sound corresponds to a third noise reduction grade, wherein the noise reduction degrees of the first noise reduction grade, the second noise reduction grade and the third noise reduction grade are reduced in sequence.
Further, as shown in fig. 2, the headset further includes: memory 22, power supply component 23, audio component 24, keypad 26, and the like. Only some of the components are shown schematically in fig. 2 and it is not meant that the headset comprises only the components shown in fig. 2.
Wherein the memory 22 is used for storing computer programs and may be configured to store other various data to support operations on the headset. The memory 22 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
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.
Wherein the microphone 21 is configured to receive external audio signals when the headset is in an operational mode, such as a call mode, a recording mode and a speech recognition mode.
The audio component 24 may include a speaker for outputting a desired signal.
The key set 26 may include an on-off key, a volume adjusting key, etc. for manually adjusting the on-off state and volume of the earphone.
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 headset in the above 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. A method of controlling a headset, comprising:
collecting a current environmental noise signal by using a microphone of the earphone;
determining the noise type of the environmental noise signal according to the signal characteristics of the environmental noise signal;
determining a target noise reduction level matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction level;
adjusting the noise reduction level of the earphone to the target noise reduction level, and performing noise reduction processing on the useful signal played by the earphone according to the target noise reduction level;
if the current noise type of the ambient noise signal is a preset noise reduction type, after the noise reduction level of the earphone is adjusted to the target noise reduction level, the method further includes: continuously collecting an environmental noise signal by using the microphone; if the noise type of the environmental noise signal continuously acquired by the microphone is consistent with the current noise type of the environmental noise signal, determining the sound source direction and the sound source distance of the continuously acquired environmental noise signal; if the time length of the variation range of the sound source direction kept in the preset threshold range exceeds the preset time length, judging whether the sound source distance is approaching or not; if the judgment result is yes, controlling the earphone to output a warning signal;
the controlling the earphone to output the warning signal includes: carrying out forward superposition on the continuously acquired environmental noise signals to obtain forward superposed environmental noise signals; and controlling the earphone to output the environment noise signal after the forward superposition.
2. The method of claim 1, wherein determining the noise type of the ambient noise signal based on the signal characteristic of the ambient noise signal comprises:
fourier transforming the ambient noise signal to determine a frequency spectrum of the ambient noise signal;
acquiring a target standard spectrum with the similarity of the spectrum of the environmental noise signal meeting a specified condition from standard spectrums corresponding to various noise types respectively;
and taking the noise type corresponding to the target standard frequency spectrum as the noise type of the environmental noise signal.
3. The method of claim 1, wherein the adjusting the noise reduction level of the headset to the target noise reduction level comprises:
and starting from the current noise reduction level of the earphone, the noise reduction level of the earphone is adjusted to the target noise reduction level in a stepped mode.
4. The method of claim 1, further comprising:
determining a target volume reduction matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the volume reduction;
and adjusting the playing volume of the useful signal according to the target volume reduction.
5. The method of claim 1, wherein denoising the desired signal played by the headphones according to the target denoising level comprises:
updating the noise reduction parameters of the noise reduction filter of the earphone according to the noise reduction parameters corresponding to the target noise reduction level;
and generating a noise reduction signal by using the noise reduction filter based on the updated noise reduction parameters so as to perform noise reduction processing on the useful signal played by the earphone.
6. The method according to any one of claims 1 to 5, wherein the type of noise is wind noise, footstep sound, human speaking sound, car whistling sound, siren beeping sound, running sound, or car driving sound;
in the incidence relation between the noise type and the noise reduction grade, the wind noise, the footstep sound or the human speaking sound corresponds to a first noise reduction grade, the automobile whistling flute sound obtains an alarm beep sound corresponding to a second noise reduction grade, the running sound or the automobile driving sound corresponds to a third noise reduction grade, wherein the noise reduction degrees of the first noise reduction grade, the second noise reduction grade and the third noise reduction grade are sequentially reduced.
7. An earphone, comprising a microphone and a processor;
the microphone is used for acquiring a current environmental noise signal and sending the acquired environmental noise signal to the processor;
the processor is used for determining the noise type of the environment noise signal according to the signal characteristics of the environment noise signal;
determining a target noise reduction level matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the noise reduction level;
adjusting the noise reduction level of the earphone to the target noise reduction level, and performing noise reduction processing on the useful signal played by the earphone according to the target noise reduction level;
if the current noise type of the ambient noise signal is a preset noise type, after the processor adjusts the noise reduction level of the earphone to the target noise reduction level, the microphone is further configured to: continuously acquiring an environmental noise signal, and generating the continuously acquired environmental noise signal to the processor;
the processor is further configured to: if the noise type of the continuously acquired environmental noise signal is consistent with the current noise type of the environmental noise signal, determining the sound source direction and the sound source distance of the continuously acquired environmental noise signal; if the time length of the variation range of the sound source direction kept in the preset threshold range exceeds the preset time length, judging whether the sound source distance is approaching or not; if the judgment result is yes, controlling the earphone to output a warning signal;
the processor is used for controlling the earphone to output the warning signal, and is specifically used for: carrying out forward superposition on the continuously acquired environmental noise signals to obtain forward superposed environmental noise signals; and controlling the earphone to output the environment noise signal after the forward superposition.
8. The headset of claim 7, wherein the processor is further configured to:
determining a target volume reduction matched with the environmental noise signal according to the noise type of the environmental noise signal and the incidence relation between the noise type and the volume reduction;
and adjusting the playing volume of the useful signal according to the target volume reduction.
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 method of controlling a headset of any of claims 1-6.
CN201811572726.7A 2018-12-21 2018-12-21 Earphone control method, earphone and storage medium Active CN109714663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811572726.7A CN109714663B (en) 2018-12-21 2018-12-21 Earphone control method, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811572726.7A CN109714663B (en) 2018-12-21 2018-12-21 Earphone control method, earphone and storage medium

Publications (2)

Publication Number Publication Date
CN109714663A CN109714663A (en) 2019-05-03
CN109714663B true CN109714663B (en) 2020-05-22

Family

ID=66257063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811572726.7A Active CN109714663B (en) 2018-12-21 2018-12-21 Earphone control method, earphone and storage medium

Country Status (1)

Country Link
CN (1) CN109714663B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460921A (en) * 2019-07-15 2019-11-15 中国第一汽车股份有限公司 A kind of pick-up control method, device, vehicle and storage medium
CN110996205A (en) * 2019-11-28 2020-04-10 歌尔股份有限公司 Earphone control method, earphone and readable storage medium
CN111128113A (en) * 2019-12-31 2020-05-08 上海工程技术大学 Active noise reduction method and system for passenger plane cabin of civil aviation
US10863261B1 (en) * 2020-02-27 2020-12-08 Pixart Imaging Inc. Portable apparatus and wearable device
CN113450750B (en) * 2020-03-26 2023-04-28 北京钛方科技有限责任公司 Noise control method and device
CN111698602A (en) * 2020-06-19 2020-09-22 青岛歌尔智能传感器有限公司 Earphone, earphone control method and device and readable storage medium
CN112309359B (en) * 2020-07-14 2024-04-30 深圳市逸音科技有限公司 Intelligent scene switching active noise reduction method of high-speed audio coder and earphone
CN114449393B (en) * 2020-10-31 2023-10-13 华为技术有限公司 Sound enhancement method, earphone control method, device and earphone
CN112767908B (en) * 2020-12-29 2024-05-21 安克创新科技股份有限公司 Active noise reduction method based on key voice recognition, electronic equipment and storage medium
CN112804612B (en) * 2021-03-25 2022-06-21 潍坊歌尔电子有限公司 Earphone control method, earphone control device, earphone and computer readable storage medium
CN113223508B (en) * 2021-03-29 2023-08-04 深圳市芯中芯科技有限公司 Management method of dual-mode TWS Bluetooth headset
CN113115157B (en) * 2021-04-13 2024-05-03 北京安声科技有限公司 Active noise reduction method and device for earphone and semi-in-ear active noise reduction earphone
CN113490089B (en) * 2021-06-02 2022-07-29 安克创新科技股份有限公司 Noise reduction control method, electronic device and computer readable storage device
CN114095817B (en) * 2021-09-24 2024-02-13 北京小米移动软件有限公司 Noise reduction method and device for earphone, earphone and storage medium
CN113891209A (en) * 2021-09-27 2022-01-04 深圳艾创力科技有限公司 Earphone noise reduction method, system, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333199A (en) * 2017-07-21 2017-11-07 京东方科技集团股份有限公司 Earphone control device, earphone and headset control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7903826B2 (en) * 2006-03-08 2011-03-08 Sony Ericsson Mobile Communications Ab Headset with ambient sound
US9191744B2 (en) * 2012-08-09 2015-11-17 Logitech Europe, S.A. Intelligent ambient sound monitoring system
CN105979415B (en) * 2016-05-30 2019-04-12 歌尔股份有限公司 A kind of noise-reduction method, device and the noise cancelling headphone of the gain of automatic adjusument noise reduction
CN107750027A (en) * 2017-11-30 2018-03-02 会听声学科技(北京)有限公司 scene adaptive active noise reduction earphone and scene adaptive active noise reduction design method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333199A (en) * 2017-07-21 2017-11-07 京东方科技集团股份有限公司 Earphone control device, earphone and headset control method

Also Published As

Publication number Publication date
CN109714663A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109714663B (en) Earphone control method, earphone and storage medium
US11501772B2 (en) Context aware hearing optimization engine
US10834493B2 (en) Time heuristic audio control
US10466957B2 (en) Active acoustic filter with automatic selection of filter parameters based on ambient sound
US9703524B2 (en) Privacy protection in collective feedforward
US20150373474A1 (en) Augmented reality sound system
US20080240458A1 (en) Method and device configured for sound signature detection
US9736264B2 (en) Personal audio system using processing parameters learned from user feedback
US20180233125A1 (en) Wearable audio device
JP2015129931A (en) Earplug for selectively providing sound to user
CN109658952B (en) Audio signal processing method, device and storage medium
US10531178B2 (en) Annoyance noise suppression
US20180160211A1 (en) Sports headphone with situational awareness
US11218796B2 (en) Annoyance noise suppression
KR20200113058A (en) Apparatus and method for operating a wearable device
CN114747233A (en) Content and context aware ambient noise compensation
JP2008167319A (en) Headphone system, headphone drive controlling device, and headphone
JP6716397B2 (en) Audio processing device, audio processing method and program
CN111464902A (en) Information processing method, information processing device, earphone and storage medium
JP4977066B2 (en) Voice guidance device for vehicles
CN108270913A (en) A kind of mobile terminal and method for protecting hearing ability
US9678709B1 (en) Processing sound using collective feedforward
KR20220054504A (en) Vehicle and control method for the same
JP2020052145A (en) Voice recognition device, voice recognition method and voice recognition program
KR102009383B1 (en) Adjusting system of audio output considering users' characteristics and adjusting method therefor

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