CN112423176A - Earphone noise reduction method and device, storage medium and noise reduction earphone - Google Patents
Earphone noise reduction method and device, storage medium and noise reduction earphone Download PDFInfo
- Publication number
- CN112423176A CN112423176A CN201910770219.2A CN201910770219A CN112423176A CN 112423176 A CN112423176 A CN 112423176A CN 201910770219 A CN201910770219 A CN 201910770219A CN 112423176 A CN112423176 A CN 112423176A
- Authority
- CN
- China
- Prior art keywords
- noise reduction
- information
- audio data
- scene information
- current scene
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1083—Reduction of ambient noise
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2410/00—Microphones
- H04R2410/01—Noise reduction using microphones having different directional characteristics
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Soundproofing, Sound Blocking, And Sound Damping (AREA)
Abstract
The embodiment of the application discloses a method and a device for reducing noise of an earphone, a storage medium and a noise reducing earphone, wherein after communication connection with an external device is established, audio data of a current position is collected, current scene information corresponding to the current position is determined according to the collected audio data, then own device information is further obtained, finally the obtained current scene information and the obtained device information are sent to the external device, noise reducing parameters which are matched with the current scene information and the device information and are returned by the external device are received, the noise reducing parameters are loaded, and therefore noise reducing processing is carried out by utilizing the noise reducing parameters. Therefore, the noise reduction earphone can acquire the noise reduction parameters matched with the actual scene and the hardware of the noise reduction earphone, noise can be reduced more flexibly, and the noise reduction effect can be improved.
Description
Technical Field
The application relates to the technical field of noise reduction, in particular to a method and a device for reducing noise of an earphone, a storage medium and a noise reducing earphone.
Background
With the development of noise reduction technology, noise reduction earphones are widely applied to the life of people. The noise reduction techniques adopted by noise reduction earphones are generally classified into passive noise reduction and active noise reduction, wherein the passive noise reduction is to eliminate a noise signal by adopting physical methods such as earplugs or earmuffs, and the active noise reduction is to actively generate an audio signal in an opposite phase to the noise signal to offset the noise signal. However, when the noise reduction earphone performs active noise reduction, fixed noise reduction parameters are often adopted to generate an audio signal for canceling a noise signal, and the flexibility is poor.
Disclosure of Invention
The embodiment of the application provides a method and a device for reducing noise of an earphone, a storage medium and a noise-reducing earphone, which can flexibly reduce noise and improve the noise reduction effect.
The method for reducing the noise of the earphone comprises the following steps:
after establishing communication connection with external equipment, acquiring audio data of a current position;
identifying current scene information corresponding to the current position according to the audio data;
acquiring own equipment information, and sending the equipment information and the current scene information to the external equipment;
and receiving a noise reduction parameter which is returned by the external equipment and is matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameter so as to carry out noise reduction processing according to the noise reduction parameter.
The earphone noise reduction device that this application embodiment provided includes:
the audio acquisition module is used for acquiring external audio data after establishing communication connection with external equipment;
the scene identification module is used for determining current scene information of a current position according to the audio data;
the information providing module is used for acquiring own equipment information and sending the equipment information and the current scene information to the external equipment;
and the noise reduction control module is used for receiving noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameters so as to carry out noise reduction processing according to the noise reduction parameters.
The storage medium of the embodiment of the present application has a computer program stored thereon, which, when called by a processor, causes the processor to execute the headphone noise reduction method as provided by the embodiment of the present application.
The noise reduction earphone provided by the embodiment of the application comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the noise reduction method of the earphone provided by the embodiment of the application by calling the computer program.
In the embodiment of the application, after communication connection with an external device is established, audio data of a current position is collected, current scene information corresponding to the current position is determined according to the collected audio data, then own device information is further obtained, finally the obtained current scene information and the obtained device information are sent to the external device, noise reduction parameters which are matched with the current scene information and the device information and are returned by the external device are received, the noise reduction parameters are loaded, and therefore noise reduction is performed by the aid of the noise reduction parameters. Therefore, the noise reduction earphone can acquire the noise reduction parameters matched with the actual scene and the hardware of the noise reduction earphone, noise can be reduced more flexibly, and the noise reduction effect can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of a noise reduction method for a headphone according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a noise reduction method for a headphone according to an embodiment of the present disclosure.
Fig. 3 is another schematic flow chart of a noise reduction method for a headphone according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a noise reduction device for a headphone according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a noise reduction earphone according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application provides a noise reduction method for a headset, a noise reduction device for the headset, a storage medium and a noise reduction headset, wherein an execution main body of the noise reduction method for the headset can be the noise reduction device for the headset provided by the embodiment of the application or the noise reduction headset integrated with the noise reduction device for the headset, and the noise reduction device for the headset can be realized in a hardware or software mode.
Referring to fig. 1, fig. 1 is a scene schematic diagram of a noise reduction method for an earphone according to an embodiment of the present application, for example, after a noise reduction earphone establishes a communication connection with an external device (e.g., an electronic device with an audio output capability such as a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer), acquires audio data of a current location, determines current scene information corresponding to the current location according to the acquired audio data, further acquires device information of the noise reduction earphone, and finally sends the acquired current scene information and the device information to the external device, receives a noise reduction parameter, which is returned by the external device and is matched with the current scene information and the device information at the same time, and loads the noise reduction parameter, so as to perform noise reduction processing by using the noise reduction parameter.
It should be noted that the scene schematic diagram of the headphone noise reduction method shown in fig. 1 is only an example, and the scene of the headphone noise reduction method described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not form a limitation to the technical solution provided in the embodiment of the present application.
Referring to fig. 2, fig. 2 is a schematic flow chart of a noise reduction method for an earphone according to an embodiment of the present disclosure. The noise reduction method for the earphone is applied to the noise reduction earphone provided by the embodiment of the present application, as shown in fig. 2, the flow of the noise reduction method for the earphone provided by the embodiment of the present application may be as follows:
and 101, after communication connection with an external device is established, acquiring audio data of a current position.
It should be noted that the noise reduction earphone mentioned in the embodiments of the present application is an earphone with an active noise reduction function, and at least includes a processor, an audio output unit, and an audio acquisition unit, for example, the noise reduction earphone acquires external sound through the audio acquisition unit to obtain external audio data, then provides the acquired external audio data to the processor, generates a noise reduction audio data according to noise reduction parameters by the processor, and finally outputs the noise reduction audio data through the audio output unit to cancel external noise, thereby implementing active noise reduction.
For example, when the noise reduction earphone is a wired noise reduction earphone, a user can directly insert an earphone plug of the wired noise reduction earphone into an audio interface of the external device, so that wired communication connection is established between the wired noise reduction earphone and the external device; for another example, when the noise reduction earphone is a wireless noise reduction earphone, the user may operate the wireless noise reduction earphone to initiate a connection establishment request, and the external device responds to the connection establishment request to establish a wireless communication connection with the wireless noise reduction earphone.
Correspondingly, after the noise reduction earphone establishes communication connection with the external equipment, the audio data of the current position is acquired through the set audio acquisition unit.
And 102, identifying current scene information corresponding to the current position according to the audio data.
For example, after the noise reduction earphone acquires the audio data of the current position through the audio acquisition unit, the acquired audio data is provided to the processor, the processor identifies the current scene information of the current position according to a preset scene identification strategy, and the current scene information is used for describing the current scene corresponding to the current position of the noise reduction earphone.
And 103, acquiring own device information, and sending the device information and the current scene information to the external device.
After the current scene information corresponding to the current position is identified, the noise reduction earphone further acquires the own equipment information. The device information comprises manufacturer information, model information, processor information, audio output unit information and/or audio acquisition unit information of the noise reduction earphone.
After the device information of the noise reduction earphone is acquired, the noise reduction earphone is further connected with the external device through communication, and the acquired device information and the identified current scene information are sent to the external device together.
Illustratively, in the embodiment of the present application, a server is configured to maintain noise reduction parameters in a unified manner, and the server is provided with a noise reduction parameter library, where multiple sets of noise reduction parameters are stored in the noise reduction parameter library, and a correspondence between < device information, current scene information > and the noise reduction parameters is preset. The group of < device information, current scene information > may correspond to a plurality of groups of noise reduction parameters, or may correspond to a group of noise reduction parameters, which may be specifically set by a person skilled in the art according to actual needs.
The noise reduction earphone can generate a noise reduction parameter acquisition request according to a message format agreed with external equipment in advance, wherein the noise reduction parameter acquisition request carries the equipment information acquired by the noise reduction earphone and the identified current scene information; then, the generated noise reduction parameter acquisition request is transmitted to the external device through communication connection with the external device.
On the other hand, after receiving the noise reduction parameter acquisition request from the noise reduction earphone, the external device firstly identifies whether the noise reduction parameters which are simultaneously matched with the device information and the current scene information carried in the noise reduction parameter acquisition request are stored locally, if not, the noise reduction parameter acquisition request is sent to the server, the server is instructed to return the noise reduction parameters which are simultaneously matched with the device information and the current scene information carried in the noise reduction parameter acquisition request, and the noise reduction parameters are returned to the noise reduction earphone.
In addition, when the external device identifies that the noise reduction parameters matched with the device information and the current scene information are stored locally, the noise reduction parameters are directly returned to the noise reduction earphone.
And 104, receiving a noise reduction parameter which is returned by the external equipment and is matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameter so as to carry out noise reduction processing according to the noise reduction parameter.
Correspondingly, the noise reduction earphone receives noise reduction parameters which are returned from the outside and are matched with the equipment information and the current scene information at the same time, and loads the noise reduction parameters, so that noise reduction processing can be carried out according to the noise reduction parameters.
The noise reduction earphone is used for configuring an audio output unit according to the acoustic EQ parameter, acquiring external audio data in real time through an audio acquisition unit, filtering the external audio data according to the noise reduction filter coefficient by a processor to generate noise reduction audio data, and playing the noise reduction audio data and audio data to be played from external equipment together, so that noise reduction playing is realized.
As can be seen from the above, in the embodiment of the present application, after the noise reduction earphone establishes a communication connection with an external device, the noise reduction earphone acquires audio data of a current location, determines current scene information corresponding to the current location according to the acquired audio data, further acquires device information of the noise reduction earphone, finally sends the acquired current scene information and device information to the external device, receives a noise reduction parameter, which is returned by the external device and is matched with the current scene information and the device information at the same time, and loads the noise reduction parameter, so that noise reduction is performed by using the noise reduction parameter. Therefore, the noise reduction earphone can acquire the noise reduction parameters matched with the actual scene and the hardware of the noise reduction earphone, noise can be reduced more flexibly, and the noise reduction effect can be improved.
In one embodiment, "identifying current scene information corresponding to a current location from audio data" includes:
(1) comparing the audio data with pre-stored sample audio data corresponding to different scene information;
(2) and determining scene information corresponding to the sample audio data matched with the audio data as current scene information.
In the embodiment of the application, sample audio data corresponding to different pieces of scene information are stored in the noise reduction earphone in advance, when the current scene information corresponding to the current position is identified according to the audio data, the noise reduction earphone compares the acquired audio data of the current position with the sample audio data corresponding to the plurality of pieces of scene information respectively, and determines the sample audio data matched with the audio data, so that the scene information corresponding to the sample audio data is determined as the current scene information corresponding to the current position.
The comparison between the audio data includes comparison between multiple dimensions, for example, in the embodiment of the present application, the comparison between the frequency spectrum dimension and the amplitude dimension is performed, so as to obtain the similarity between the audio data and the sample audio data in the frequency spectrum dimension and the similarity between the amplitude dimension, then the overall similarity between the audio data and the sample audio data is obtained by weighting according to the weights predefined in the frequency spectrum dimension and the amplitude dimension, and then, whether the similarity reaches the preset similarity is determined, if yes, it is determined that the audio data is matched with the sample audio data, otherwise, it is not matched.
In one embodiment, "identifying the current scene information corresponding to the current position according to the audio data" further includes:
(1) calling a pre-trained scene recognition model;
(2) and inputting the audio data into a scene recognition model for scene recognition to obtain current scene information corresponding to the current position.
It should be noted that, in the embodiment of the present application, a scene recognition model is also trained in advance.
For example, sample audio data of different scenes are collected firstly, a sample training set is constructed according to the collected sample audio data, then supervised training is carried out according to the sample training set by adopting a preset machine learning algorithm to obtain a scene recognition model, and then the trained scene recognition model is implanted into a noise reduction earphone.
Therefore, the noise reduction earphone can call a pre-trained scene recognition model when recognizing the current scene information corresponding to the current position according to the audio data, and then input the acquired audio data into the scene recognition model for scene recognition. The scene recognition model outputs a plurality of pieces of scene information possibly corresponding to the audio data and the probability corresponding to each piece of scene information, and correspondingly, the noise reduction earphone takes the scene information with the highest probability in the plurality of pieces of scene information output by the scene recognition model as the current scene information corresponding to the current position.
In an embodiment, before "acquiring the own device information", the method further includes:
(1) identifying whether the external equipment runs a target application corresponding to the current scene information;
(2) and if the external equipment runs with the target application, acquiring the equipment information of the external equipment.
It should be noted that, in the embodiment of the present application, a corresponding relationship between a scene and an application that will normally run in the scene is also preset according to experience, for example, taking a commuting scene as an example, if a user would habitually run a news reading-type application through an external device to browse current news, the commuting scene would correspond to the news reading-type application.
Accordingly, the noise reduction headphone can verify the accuracy of scene recognition from the side by recognizing whether a connected external device is running a target application corresponding to current scene information.
The noise reduction earphone generates an application identification request according to a message format agreed with the external equipment, and sends the generated application identification request to the external equipment through communication connection with the external equipment to indicate the external equipment to identify whether the external equipment operates a target application corresponding to the current scene information.
On the other hand, after receiving the application identification request from the noise reduction earphone, the external device identifies whether the external device runs the target application, and returns the identification result.
Correspondingly, the noise reduction earphone receives an identification result returned by the external device, if the identification result is that the target application runs in the external application, the identified current scene information is judged to be accurate, and the self device information is further acquired at the moment; if the recognition result is that the external application does not run the target application, the recognized current scene information is judged to be possibly inaccurate, at the moment, the audio data is sent to the external equipment, the external equipment is instructed to recognize candidate current scene information corresponding to the current position according to the audio data, then, whether the candidate current scene information is consistent with the current scene information or not is judged, if yes, the recognized current scene information is judged to be accurate, and at the moment, the own equipment information is further obtained.
In one embodiment, "loading noise reduction parameters" includes:
and when the noise reduction parameters returned by the external equipment are multiple, loading the noise reduction parameters with the highest corresponding score in the multiple noise reduction parameters.
In the embodiment of the application, when the noise reduction parameters returned by the external device are multiple, the noise reduction earphone screens the noise reduction parameters with the highest corresponding score values from the multiple noise reduction parameters, and loads the noise reduction parameters as the optimal noise reduction parameters.
When the server historically sends the noise reduction parameters to other electronic devices, the score is obtained according to user scores fed back by the other electronic devices, for example, taking a certain noise reduction parameter as an example, the server may accumulate user scores returned by all other devices receiving the noise reduction parameter, and the accumulated sum is used as the score of the noise reduction parameter.
In an embodiment, before "sending the device information and the current context information to the external device", the method further includes:
(1) identifying whether noise reduction parameters matched with the equipment information and the current scene information are stored locally or not;
(2) and if the noise reduction parameters are not stored locally, sending the equipment information and the current scene information to external equipment.
The noise reduction earphone sends device information and current scene information to external equipment, firstly identifies whether noise reduction parameters matched with the device information and the current scene information are stored locally or not, and then sends the device information and the current scene information to the external equipment when the fact that the noise reduction parameters matched with the device information and the current scene information are not stored locally is identified, and the noise reduction parameters matched with the device information and the current scene information are obtained from the external equipment. Therefore, the noise reduction earphone can be prevented from repeatedly acquiring the noise reduction parameters.
In an embodiment, after "receiving the noise reduction parameters matched with the device information and the current scene information simultaneously returned by the external device", the method further includes:
and storing the noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time according to a preset storage path.
In the embodiment of the application, after the noise reduction earphone receives the noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time, the noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time are stored according to the preset storage path, so that the noise reduction parameters can be directly obtained from the local place when needing to be obtained next time, and the noise reduction parameters do not need to be repeatedly obtained from the external equipment.
It should be noted that, in the embodiment of the present application, the setting of the preset storage path is not specifically limited, and may be set by a person skilled in the art according to actual needs.
Referring to fig. 3, fig. 3 is another schematic flow chart of a noise reduction method for a headphone according to an embodiment of the present application, and as shown in fig. 3, the flow chart of the noise reduction method for a headphone may include:
201, after establishing communication connection with an external device, the noise reduction earphone collects the audio data of the current position.
It should be noted that the noise reduction earphone mentioned in the embodiments of the present application is an earphone with an active noise reduction function, and at least includes a processor, an audio output unit, and an audio acquisition unit, for example, the noise reduction earphone acquires external sound through the audio acquisition unit to obtain external audio data, then provides the acquired external audio data to the processor, generates a noise reduction audio data according to noise reduction parameters by the processor, and finally outputs the noise reduction audio data through the audio output unit to cancel external noise, thereby implementing active noise reduction.
For example, when the noise reduction earphone is a wired noise reduction earphone, a user can directly insert an earphone plug of the wired noise reduction earphone into an audio interface of the external device, so that wired communication connection is established between the wired noise reduction earphone and the external device; for another example, when the noise reduction earphone is a wireless noise reduction earphone, the user may operate the wireless noise reduction earphone to initiate a connection establishment request, and the external device responds to the connection establishment request to establish a wireless communication connection with the wireless noise reduction earphone.
Correspondingly, after the noise reduction earphone establishes communication connection with the external equipment, the audio data of the current position is acquired through the set audio acquisition unit.
202, the noise reduction earphone compares the collected audio data with pre-stored sample audio data corresponding to different scene information.
And 203, determining the scene information corresponding to the sample audio data matched with the audio data as the current scene information corresponding to the current position by the noise reduction earphone.
In the embodiment of the application, sample audio data corresponding to different scene information is stored in the noise reduction earphone in advance, after the audio data of the current position is acquired, the noise reduction earphone compares the acquired audio data with the sample audio data corresponding to the plurality of scene information respectively, and determines the sample audio data matched with the audio data, so that the scene information corresponding to the sample audio data is determined as the current scene information corresponding to the current position.
The comparison between the audio data includes comparison between multiple dimensions, for example, in the embodiment of the present application, the comparison between the frequency spectrum dimension and the amplitude dimension is performed, so as to obtain the similarity between the audio data and the sample audio data in the frequency spectrum dimension and the similarity between the amplitude dimension, then the overall similarity between the audio data and the sample audio data is obtained by weighting according to the weights predefined in the frequency spectrum dimension and the amplitude dimension, and then, whether the similarity reaches the preset similarity is determined, if yes, it is determined that the audio data is matched with the sample audio data, otherwise, it is not matched.
And 204, the noise reduction earphone acquires the own equipment information and sends the equipment information and the current scene information to the external equipment.
After the current scene information corresponding to the current position is identified, the noise reduction earphone further acquires the own equipment information. The device information comprises manufacturer information, model information, processor information, audio output unit information and/or audio acquisition unit information of the noise reduction earphone.
After the device information of the noise reduction earphone is acquired, the noise reduction earphone is further connected with the external device through communication, and the acquired device information and the identified current scene information are sent to the external device together.
Illustratively, in the embodiment of the present application, a server is configured to maintain noise reduction parameters in a unified manner, and the server is provided with a noise reduction parameter library, where multiple sets of noise reduction parameters are stored in the noise reduction parameter library, and a correspondence between < device information, current scene information > and the noise reduction parameters is preset. The group of < device information, current scene information > may correspond to a plurality of groups of noise reduction parameters, or may correspond to a group of noise reduction parameters, which may be specifically set by a person skilled in the art according to actual needs.
The noise reduction earphone can generate a noise reduction parameter acquisition request according to a message format agreed with external equipment in advance, wherein the noise reduction parameter acquisition request carries the equipment information acquired by the noise reduction earphone and the identified current scene information; then, the generated noise reduction parameter acquisition request is transmitted to the external device through communication connection with the external device.
On the other hand, after receiving the noise reduction parameter acquisition request from the noise reduction earphone, the external device firstly identifies whether the noise reduction parameters which are simultaneously matched with the device information and the current scene information carried in the noise reduction parameter acquisition request are stored locally, if not, the noise reduction parameter acquisition request is sent to the server, the server is instructed to return the noise reduction parameters which are simultaneously matched with the device information and the current scene information carried in the noise reduction parameter acquisition request, and the noise reduction parameters are returned to the noise reduction earphone.
In addition, when the external device identifies that the noise reduction parameters matched with the device information and the current scene information are stored locally, the noise reduction parameters are directly returned to the noise reduction earphone.
And 205, the noise reduction earphone receives noise reduction parameters which are matched with the device information and the current scene information and are returned by the external device.
206, when the number of the noise reduction parameters returned by the external device is multiple, loading the noise reduction parameter with the highest corresponding score value in the multiple noise reduction parameters, so as to perform noise reduction processing according to the noise reduction parameter.
In the embodiment of the application, when the noise reduction parameters returned by the external device are multiple, the noise reduction earphone screens the noise reduction parameters with the highest corresponding score values from the multiple noise reduction parameters, and loads the noise reduction parameters as the optimal noise reduction parameters.
When the server historically sends the noise reduction parameters to other electronic devices, the score is obtained according to user scores fed back by the other electronic devices, for example, taking a certain noise reduction parameter as an example, the server may accumulate user scores returned by all other devices receiving the noise reduction parameter, and the accumulated sum is used as the score of the noise reduction parameter.
In the embodiment of the application, the noise reduction parameter is composed of two parts, namely a noise reduction filter coefficient and an acoustic EQ parameter, the noise reduction earphone firstly configures the audio output unit according to the acoustic EQ parameter, then, external audio data are collected in real time through the audio collection unit, the external audio data are filtered by the processor according to the noise reduction filter coefficient, noise elimination audio data are generated, the noise elimination audio data and audio data to be played from external equipment are played together, and therefore noise reduction playing is achieved.
The embodiment of the application also provides a device for reducing the noise of the earphone. Referring to fig. 4, fig. 4 is a schematic structural diagram of a noise reduction device for a headset according to an embodiment of the present disclosure. The noise reduction device for the earphone is applied to noise reduction earphones, and comprises an audio acquisition module 301, a scene recognition module 302, an information providing module 303 and a noise reduction control module 304, and comprises the following steps:
the audio acquisition module 301 is configured to acquire audio data of a current location after establishing a communication connection with an external device;
a scene recognition module 302, configured to recognize, according to the audio data, current scene information corresponding to a current location;
the information providing module 303 is configured to obtain device information of the information providing module, and send the device information and current scene information to an external device;
and the noise reduction control module 304 is configured to receive a noise reduction parameter, which is returned by the external device and is matched with the device information and the current scene information at the same time, and load the noise reduction parameter, so as to perform noise reduction processing according to the noise reduction parameter.
In an embodiment, when the current scene information corresponding to the current position is identified according to the audio data, the scene identification module 302 is configured to:
comparing the audio data with pre-stored sample audio data corresponding to different scene information;
and determining scene information corresponding to the sample audio data matched with the audio data as current scene information.
In an embodiment, when the current scene information corresponding to the current position is identified according to the audio data, the scene identification module 302 is further configured to:
calling a pre-trained scene recognition model;
and inputting the audio data into a scene recognition model for scene recognition to obtain current scene information corresponding to the current position.
In an embodiment, before obtaining the device information of the noise reduction headphone, the information providing module 303 is further configured to:
identifying whether the external equipment runs a target application corresponding to the current scene information;
and if the external equipment runs with the target application, acquiring the equipment information of the external equipment.
In one embodiment, when loading the noise reduction parameters, the noise reduction control module 304 is configured to:
and when the noise reduction parameters returned by the external equipment are multiple, loading the noise reduction parameters with the highest corresponding score in the multiple noise reduction parameters.
In an embodiment, before sending the device information and the current context information to the external device, the information providing module 303 is further configured to:
identifying whether noise reduction parameters matched with the equipment information and the current scene information are stored locally or not;
and if the noise reduction parameters are not stored locally, sending the equipment information and the current scene information to external equipment.
In an embodiment, after receiving the noise reduction parameters returned by the external device and matching the device information and the current scene information at the same time, the noise reduction control module 304 is further configured to:
and storing the noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time according to a preset storage path.
It should be noted that the earphone noise reduction device provided in the embodiment of the present application and the earphone noise reduction method in the above embodiment belong to the same concept, and any method provided in the embodiment of the earphone noise reduction method may be run on the earphone noise reduction device, and a specific implementation process thereof is detailed in the embodiment of the earphone noise reduction method, and is not described herein again.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when the stored computer program is executed on a computer, causes the computer to execute the steps in the noise reduction method for a headset as provided by the embodiment of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
Referring to fig. 5, the noise reduction earphone includes a processor 401 and a memory 402, wherein the processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the noise reducing headphone, connects the respective parts of the entire noise reducing headphone by various interfaces and lines, executes various functions of the noise reducing headphone and processes data by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the noise reduction headphone, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the noise reduction headphone loads instructions corresponding to one or more computer program processes into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
after establishing communication connection with external equipment, acquiring audio data of a current position;
identifying current scene information corresponding to the current position according to the audio data;
acquiring self equipment information, and sending the equipment information and the current scene information to external equipment;
and receiving a noise reduction parameter which is returned by the external equipment and is matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameter so as to carry out noise reduction processing according to the noise reduction parameter.
In one embodiment, when the current scene information corresponding to the current position is identified according to the audio data, the processor 401 performs:
comparing the audio data with pre-stored sample audio data corresponding to different scene information;
and determining scene information corresponding to the sample audio data matched with the audio data as current scene information.
In an embodiment, when the current scene information corresponding to the current position is identified according to the audio data, the processor 401 further performs:
calling a pre-trained scene recognition model;
and inputting the audio data into a scene recognition model for scene recognition to obtain current scene information corresponding to the current position.
In an embodiment, before obtaining the device information of the noise reduction headphone, the processor 401 further performs:
identifying whether the external equipment runs a target application corresponding to the current scene information;
and if the external equipment runs with the target application, acquiring the equipment information of the external equipment.
In one embodiment, in loading the noise reduction parameters, processor 401 performs:
and when the noise reduction parameters returned by the external equipment are multiple, loading the noise reduction parameters with the highest corresponding score in the multiple noise reduction parameters.
In one embodiment, before sending the device information and the current context information to the external device, the processor 401 performs:
identifying whether noise reduction parameters matched with the equipment information and the current scene information are stored locally or not;
and if the noise reduction parameters are not stored locally, sending the equipment information and the current scene information to external equipment.
In an embodiment, after receiving the noise reduction parameters returned by the external device and matching the device information and the current scene information at the same time, the processor 401 further performs:
and storing the noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time according to a preset storage path.
It should be noted that the noise reduction headphone provided in the embodiment of the present application and the noise reduction method in the embodiment above belong to the same concept, and any method provided in the noise reduction method embodiment of the headphone may be run on the noise reduction headphone, and the specific implementation process thereof is detailed in the feature extraction method embodiment, and is not described herein again.
It should be noted that, for the earphone noise reduction method of the embodiment of the present application, it may be understood by a person skilled in the art that all or part of the process of implementing the earphone noise reduction method of the embodiment of the present application may be completed by controlling related hardware through a computer program, where the computer program may be stored in a computer-readable storage medium, such as a memory of the noise reduction earphone, and executed by at least one processor in the noise reduction earphone, and during the execution, the process of the embodiment of the earphone noise reduction method may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the earphone noise reduction device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a method, an apparatus, a storage medium, and a noise reduction headphone provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A noise reduction method for a headset is applied to a noise reduction headset, and is characterized by comprising the following steps:
after establishing communication connection with external equipment, acquiring audio data of a current position;
identifying current scene information corresponding to the current position according to the audio data;
acquiring own equipment information, and sending the equipment information and the current scene information to the external equipment;
and receiving a noise reduction parameter which is returned by the external equipment and is matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameter so as to carry out noise reduction processing according to the noise reduction parameter.
2. The method of claim 1, wherein the identifying current scene information corresponding to the current position according to the audio data comprises:
comparing the audio data with pre-stored sample audio data corresponding to different scene information;
and determining scene information corresponding to the sample audio data matched with the audio data as the current scene information.
3. The method of claim 1, wherein the identifying current scene information corresponding to the current position according to the audio data further comprises:
calling a pre-trained scene recognition model;
and inputting the audio data into the scene recognition model for scene recognition to obtain current scene information corresponding to the current position.
4. The headphone noise reduction method of claim 1, wherein the loading the noise reduction parameters comprises:
and when a plurality of noise reduction parameters are returned by the external equipment, loading the noise reduction parameter with the highest corresponding score value in the plurality of noise reduction parameters.
5. The method for reducing noise of a headphone according to any one of claims 1 to 4, wherein before obtaining the device information of the headphone, the method further comprises:
identifying whether the external equipment runs a target application corresponding to the current scene information;
and if the target application runs on the external equipment, acquiring the equipment information.
6. The method of reducing noise in a headphone according to any one of claims 1 to 4, wherein before sending the device information and the current scene information to the external device, the method further comprises:
identifying whether the noise reduction parameters are stored locally;
and if the noise reduction parameters are not stored locally, sending the equipment information and the current scene information to the external equipment.
7. The method of claim 6, wherein after receiving the noise reduction parameters returned by the external device and matching the device information and the current scene information at the same time, the method further comprises:
and storing the noise reduction parameters which are returned by the server and matched with the equipment information and the current scene information at the same time according to a preset storage path.
8. A noise reduction device for a headphone is applied to a noise reduction headphone, and the noise reduction device for the headphone comprises:
the audio acquisition module is used for acquiring external audio data after establishing communication connection with external equipment;
the scene identification module is used for determining current scene information of a current position according to the audio data;
the information providing module is used for acquiring own equipment information and sending the equipment information and the current scene information to the external equipment;
and the noise reduction control module is used for receiving noise reduction parameters which are returned by the external equipment and are matched with the equipment information and the current scene information at the same time, and loading the noise reduction parameters so as to carry out noise reduction processing according to the noise reduction parameters.
9. A storage medium having stored thereon a computer program, characterized in that, when the computer program is invoked by a processor, it causes the processor to execute the headphone noise reduction method according to any one of claims 1 to 7.
10. A noise reducing headphone comprising a processor and a memory, the memory storing a computer program, and the processor being configured to execute the headphone noise reducing method according to any one of claims 1 to 7 by calling the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910770219.2A CN112423176A (en) | 2019-08-20 | 2019-08-20 | Earphone noise reduction method and device, storage medium and noise reduction earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910770219.2A CN112423176A (en) | 2019-08-20 | 2019-08-20 | Earphone noise reduction method and device, storage medium and noise reduction earphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112423176A true CN112423176A (en) | 2021-02-26 |
Family
ID=74779949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910770219.2A Pending CN112423176A (en) | 2019-08-20 | 2019-08-20 | Earphone noise reduction method and device, storage medium and noise reduction earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112423176A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113115195A (en) * | 2021-04-22 | 2021-07-13 | 东莞市声强电子有限公司 | Automatic production test method and device for active noise reduction earphone |
CN113411711A (en) * | 2021-06-29 | 2021-09-17 | 紫优科技(深圳)有限公司 | Intelligent earphone noise reduction method and system |
WO2023070899A1 (en) * | 2021-10-28 | 2023-05-04 | 歌尔科技有限公司 | Self-adaptive noise reduction method, system and device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140314245A1 (en) * | 2011-11-09 | 2014-10-23 | Sony Corporation | Headphone device, terminal device, information transmitting method, program, and headphone system |
CN104581535A (en) * | 2015-01-26 | 2015-04-29 | 深圳市冠旭电子有限公司 | Headset noise reduction method and device |
CN105163221A (en) * | 2015-09-30 | 2015-12-16 | 广州三星通信技术研究有限公司 | Method for executing active noise reduction for earphone in electronic terminal and electronic terminal thereof |
CN106371800A (en) * | 2016-09-21 | 2017-02-01 | 乐视控股(北京)有限公司 | Audio output method and device |
CN106572411A (en) * | 2016-09-29 | 2017-04-19 | 乐视控股(北京)有限公司 | Noise cancelling control method and relevant device |
CN108462895A (en) * | 2017-02-21 | 2018-08-28 | 阿里巴巴集团控股有限公司 | Sound effect treatment method, device and machine readable media |
-
2019
- 2019-08-20 CN CN201910770219.2A patent/CN112423176A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140314245A1 (en) * | 2011-11-09 | 2014-10-23 | Sony Corporation | Headphone device, terminal device, information transmitting method, program, and headphone system |
CN104581535A (en) * | 2015-01-26 | 2015-04-29 | 深圳市冠旭电子有限公司 | Headset noise reduction method and device |
CN105163221A (en) * | 2015-09-30 | 2015-12-16 | 广州三星通信技术研究有限公司 | Method for executing active noise reduction for earphone in electronic terminal and electronic terminal thereof |
CN106371800A (en) * | 2016-09-21 | 2017-02-01 | 乐视控股(北京)有限公司 | Audio output method and device |
CN106572411A (en) * | 2016-09-29 | 2017-04-19 | 乐视控股(北京)有限公司 | Noise cancelling control method and relevant device |
CN108462895A (en) * | 2017-02-21 | 2018-08-28 | 阿里巴巴集团控股有限公司 | Sound effect treatment method, device and machine readable media |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113115195A (en) * | 2021-04-22 | 2021-07-13 | 东莞市声强电子有限公司 | Automatic production test method and device for active noise reduction earphone |
CN113115195B (en) * | 2021-04-22 | 2022-04-29 | 东莞市声强电子有限公司 | Automatic production test method and device for active noise reduction earphone |
CN113411711A (en) * | 2021-06-29 | 2021-09-17 | 紫优科技(深圳)有限公司 | Intelligent earphone noise reduction method and system |
CN113411711B (en) * | 2021-06-29 | 2022-08-02 | 紫优科技(深圳)有限公司 | Intelligent earphone noise reduction method and system |
WO2023070899A1 (en) * | 2021-10-28 | 2023-05-04 | 歌尔科技有限公司 | Self-adaptive noise reduction method, system and device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11450337B2 (en) | Multi-person speech separation method and apparatus using a generative adversarial network model | |
US11074466B2 (en) | Anti-counterfeiting processing method and related products | |
CN112423176A (en) | Earphone noise reduction method and device, storage medium and noise reduction earphone | |
CN109151211B (en) | Voice processing method and device and electronic equipment | |
CN107610698A (en) | A kind of method for realizing Voice command, robot and computer-readable recording medium | |
CN112423175B (en) | Earphone noise reduction method and device, storage medium and electronic equipment | |
CN110808041B (en) | Voice recognition method, intelligent projector and related product | |
CN110364156A (en) | Voice interactive method, system, terminal and readable storage medium storing program for executing | |
KR102512614B1 (en) | Electronic device audio enhancement and method thereof | |
US11636867B2 (en) | Electronic device supporting improved speech recognition | |
CN111323783A (en) | Scene recognition method and device, storage medium and electronic equipment | |
CN111933167A (en) | Noise reduction method and device for electronic equipment, storage medium and electronic equipment | |
CN109346102B (en) | Method and device for detecting audio beginning crackle and storage medium | |
CN112230779B (en) | Operation response method, device, equipment and storage medium | |
CN113709629A (en) | Frequency response parameter adjusting method, device, equipment and storage medium | |
CN104735249A (en) | Information processing method and electronic equipment | |
CN111800700A (en) | Method and device for prompting object in environment, earphone equipment and storage medium | |
CN105740056A (en) | Information processing method and electronic device | |
CN107154996B (en) | Incoming call interception method and device, storage medium and terminal | |
CN113766385B (en) | Earphone noise reduction method and device | |
CN111599360B (en) | Wake-up control method and device, storage medium and electronic equipment | |
CN113436613A (en) | Voice recognition method and device, electronic equipment and storage medium | |
CN112820302A (en) | Voiceprint recognition method and device, electronic equipment and readable storage medium | |
CN110677927A (en) | Method and device for automatically connecting wearable device, storage medium and electronic device | |
CN117135254B (en) | Voice call method and electronic equipment |
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 |