CN111510814A - Noise reduction mode control method and device, electronic equipment and storage medium - Google Patents

Noise reduction mode control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111510814A
CN111510814A CN202010357364.0A CN202010357364A CN111510814A CN 111510814 A CN111510814 A CN 111510814A CN 202010357364 A CN202010357364 A CN 202010357364A CN 111510814 A CN111510814 A CN 111510814A
Authority
CN
China
Prior art keywords
noise reduction
preset
earphone
reduction mode
traffic 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
Application number
CN202010357364.0A
Other languages
Chinese (zh)
Inventor
刘善朴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010357364.0A priority Critical patent/CN111510814A/en
Publication of CN111510814A publication Critical patent/CN111510814A/en
Priority to PCT/CN2021/079131 priority patent/WO2021218377A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/13Acoustic transducers and sound field adaptation in vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The application discloses a noise reduction mode control method, a noise reduction mode control device, electronic equipment and a storage medium, and relates to the technical field of noise reduction, wherein the method comprises the following steps: monitoring current environmental sounds and trigger information of a preset application, wherein the preset application is suitable for running in a preset traffic scene; if at least one of first trigger information and appointed environment sound is monitored, determining that the earphone is located in the preset traffic scene, wherein the first trigger information is used for representing that a wearer of the earphone arrives at the station, and the appointed environment sound is the environment sound matched with the preset traffic scene; and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to the preset traffic scene. According to the method and the device, whether the earphone is in the preset traffic scene or not is automatically identified through monitoring the environment sound and presetting the trigger information of the application, so that the manual configuration of a user is not needed, the noise reduction mode can be automatically configured according to the preset traffic scene, the noise reduction effect is guaranteed, meanwhile, the operation of the earphone application is simplified, and the user experience is improved.

Description

Noise reduction mode control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of noise reduction technologies, and in particular, to a noise reduction mode control method and apparatus, an electronic device, and a storage medium.
Background
Active noise reduction is a noise reduction method, and the principle is that sound waves with completely opposite or approximately opposite phases are emitted according to noise received at a specified position, so that the two sound waves partially cancel each other when meeting, and the noise is weakened and reduced.
Due to the fact that the noise of different scenes is greatly different, if the noise of different scenes (such as subway scenes, airplane scenes and the like) needs to be well reduced, sound waves emitted by the noise reduction earphone in different scenes can be different. Therefore, a solution for automatically recognizing a specific scene and performing targeted noise reduction on noise in the specific scene is needed.
Disclosure of Invention
The embodiment of the application provides a noise reduction mode control method and device, electronic equipment and a storage medium, which can automatically identify a specific scene and automatically configure a noise reduction mode according to the scene.
In a first aspect, an embodiment of the present application provides a noise reduction mode control method, where the method includes: monitoring current environmental sounds and trigger information of a preset application, wherein the preset application is suitable for running in a preset traffic scene; if at least one of first trigger information and appointed environment sound is monitored, determining that the earphone is located in the preset traffic scene, wherein the first trigger information is used for representing that a wearer of the earphone arrives at the station, and the appointed environment sound is the environment sound matched with the preset traffic scene; and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to the preset traffic scene.
In a second aspect, an embodiment of the present application provides a noise reduction mode control apparatus, including: the information monitoring module is used for monitoring current environmental sounds and trigger information of a preset application, and the preset application is suitable for running in a preset traffic scene; the scene determining module is used for determining that the earphone is in the preset traffic scene if at least one of first trigger information and appointed environment sound is monitored, wherein the first trigger information is used for representing that a wearer of the earphone arrives at the station, and the appointed environment sound is the environment sound matched with the preset traffic scene; and the mode configuration module is used for configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to the preset traffic scene.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory; one or more processors coupled with the memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the noise reduction mode control method provided by the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the noise reduction mode control method provided in the first aspect.
According to the noise reduction mode control method, the noise reduction mode control device, the electronic equipment and the storage medium, the current environment sound and the trigger information of the preset application which is suitable for running in the preset traffic scene are monitored, if at least one of the first trigger information used for representing the arrival of a wearer of the earphone and the appointed environment sound is monitored, the earphone is determined to be in the preset traffic scene, the appointed environment sound is the environment sound matched with the preset traffic scene, and the noise reduction mode of the earphone is configured to be the traffic noise reduction mode corresponding to the preset traffic scene. Therefore, whether the earphone is in the preset traffic scene or not is automatically identified by monitoring the environmental sound and presetting the trigger information of the application, and when the earphone is in the preset traffic scene, the corresponding traffic noise reduction mode is automatically configured, so that the user does not need to manually configure, the noise reduction mode can be automatically configured according to the preset traffic scene, the noise reduction effect is guaranteed, meanwhile, the operation of the earphone application is simplified, and the user experience is 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 shows an interface schematic of an application of a noise reduction headphone.
Fig. 2 is a schematic view illustrating an application scenario of the noise reduction mode control method according to an embodiment of the present application.
Fig. 3 shows a flowchart of a noise reduction mode control method according to an embodiment of the present application.
Fig. 4 shows a flowchart of a noise reduction mode control method according to another embodiment of the present application.
Fig. 5 is a flowchart illustrating a method for generating trigger information according to an exemplary embodiment of the present application.
FIG. 6 is a schematic diagram illustrating an interface for a prompt to enter a station according to an exemplary embodiment of the present application
Fig. 7 illustrates a flowchart of step S240 in fig. 4 according to an exemplary embodiment of the present application.
Fig. 8 illustrates a flowchart of step S240 in fig. 4 according to an exemplary embodiment of the present application.
Fig. 9 is a flowchart illustrating a noise reduction mode control method according to another embodiment of the present application.
Fig. 10 is a flowchart illustrating a noise reduction mode control method according to still another embodiment of the present application.
Fig. 11 shows a block diagram of a noise reduction mode control apparatus according to an embodiment of the present application.
Fig. 12 shows a block diagram of an electronic device provided in an embodiment of the present application.
Fig. 13 illustrates a storage unit for storing or carrying a program code for implementing the noise reduction mode control method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Definition of terms
Active noise reduction curve: the active noise reduction curve is a curve which shows the active noise reduction capability of the noise reduction device on a sound wave frequency spectrogram and is used for showing the noise reduction capability of active noise reduction in each frequency band of sound.
Wherein the noise reduction capability of the noise reduction means is the degree to which audible sound waves are reduced before reaching the eardrum of a person. The noise reduction amplitude of the active noise reduction to sound waves of different frequency points is not completely the same. The noise reduction amplitude of the noise reduction device at each frequency point can be measured by a standardized professional instrument, and a curve formed by connecting the noise reduction amplitude values of the frequency points is called a noise reduction curve, so that the noise reduction capability of any frequency point can be accurately described.
The spectrogram is a representation of a time-domain sound signal in a frequency domain, and may be obtained by performing fourier transform on the signal, and the obtained result may be a graph with an amplitude as a vertical axis and a frequency as a horizontal axis, respectively.
With the development of noise reduction technology, noise reduction earphones capable of actively reducing noise are more and more common in the market, and the forms are more and more diverse. The noise reduction earphone is an earphone which reduces noise by using a certain method. At present, the noise reduction earphone mainly has two types according to the difference of noise reduction modes: active noise reduction headphones and passive noise reduction headphones.
The active noise reduction earphone generates reverse sound waves with the same phase as external noise and completely or approximately opposite phase through a noise reduction system, and neutralizes the noise, so that the noise is weakened and reduced. The active noise reduction earphone is provided with a noise reduction circuit which is resistant to external noise, most of the active noise reduction earphone adopts a head-wearing design with a large volume, the external noise can be blocked by utilizing structures such as earplug cotton and an earphone shell, the first round of sound insulation is carried out, and meanwhile, the active noise reduction circuit and a power supply are arranged in enough space.
The passive noise reduction earphone mainly forms a closed space by surrounding ears, or adopts sound insulation materials such as silica gel earplugs and the like to block outside noise. Because the noise is not processed by the noise reduction circuit or the noise reduction chip, the noise can only be blocked from high-frequency noise generally, and the noise reduction effect on low-frequency noise is not obvious.
With the rapid development of deep learning, the deep learning algorithm is more and more widely applied in the visual direction. And through data acquisition of specific sounds of a specific scene, an algorithm model for actively denoising certain specific scenes based on a deep learning algorithm is also applied to a plurality of noise reduction earphones.
However, when the same model is used to perform noise reduction on multiple scenes, it is difficult to achieve a good noise reduction effect on each scene. If the scene is subdivided, different models are utilized to perform targeted noise reduction on different scenes (such as subway, airplane and other scenes), so that a better noise reduction effect can be obtained. However, although the noise reduction of a model corresponding to one scene is better, the noise reduction of the noise of multiple scenes is required, which means that an Application program (APP) corresponding to the noise reduction earphone needs to provide multiple noise reduction modes for a user to select, and at this time, the user needs to manually select the noise reduction intensity or the noise reduction mode, which is not convenient enough. Therefore, how to perform targeted noise reduction on the current scene by identifying the current scene and matching different noise reduction algorithm models is a problem faced by the current noise reduction earphones.
Fig. 1 shows a schematic interface diagram of an application program of a noise reduction headphone, based on which ambient sound can be controlled, and different levels correspond to different noise reduction strengths, currently shown as level 3 in fig. 1. Based on the interface shown in fig. 1, if the noise reduction strength needs to be adjusted to achieve a higher noise reduction effect, the user needs to manually control, for example, by dragging or clicking the strength adjustment bar, to select the noise reduction strength.
Based on the above problems, embodiments of the present application provide a noise reduction mode control method, apparatus, electronic device, and computer-readable storage medium, where by monitoring current environmental sounds and trigger information of a preset application suitable for running in a preset traffic scene, if at least one of first trigger information for characterizing that a wearer of an earphone is approaching a station and an appointed environmental sound is monitored, it is determined that the earphone is in the preset traffic scene, where the appointed environmental sound is an environmental sound matched with the preset traffic scene, and a noise reduction mode of the earphone is configured as a traffic noise reduction mode corresponding to the preset traffic scene. Therefore, whether the earphone is in the preset traffic scene or not is automatically identified by monitoring the environmental sound and presetting the trigger information of the application, and when the earphone is in the preset traffic scene, the corresponding traffic noise reduction mode is automatically configured, so that the user does not need to manually configure, the noise reduction mode can be automatically configured according to the preset traffic scene, the noise reduction effect is guaranteed, meanwhile, the operation of the earphone application is simplified, and the user experience is improved.
For convenience of detailed description, an application scenario to which the embodiments of the present application are applied is described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic view illustrating an application scenario of the noise reduction mode control method according to the embodiment of the present application, where the application scenario includes a noise reduction mode control system 10 according to the embodiment of the present application. The noise reduction mode control system 10 includes: a terminal 100 and an earphone 200.
The terminal 100 may be, but not limited to, a mobile phone, a tablet computer, an MP3 player (Moving picture experts Group Audio L player iii, motion video compression standard Audio layer 3), an MP4 player (Moving picture experts Group Audio L player iv, motion video compression standard Audio layer 4), a notebook computer, or a wearable electronic device, and the like.
In some embodiments, an application capable of playing audio may be installed in the terminal 100, and specifically, the application may be audio playing software, video playing software, or call software. The terminal 100 transmits the audio to be played to the headset 200, and the headset 200 plays the audio.
The terminal 100 and the earphone 200 may be connected through a wired or wireless connection, and optionally, if the terminal 100 and the earphone 200 are connected through a wireless connection, the terminal 100 and the earphone 200 may be connected through a Bluetooth (Bluetooth) or a wireless network, so as to implement data transmission, for example, the earphone 200 may obtain sound source data through the terminal 100 to play, and obtain control information to configure. Alternatively, the Wireless network may be a mobile communication network or a Wireless Fidelity (WiFi) network.
The earphone 200 is provided with a noise reduction circuit to support noise reduction. The headset 200 may be a wired headset or a wireless headset. Optionally, the headset 200 may also be embodied as a True Wireless Stereo (TWS) headset. Wherein, two earphones in the left and right sides of a pair of TWS earphone need not the cable connection, can independent work through realizing the wireless separation of left and right sound track.
It should be noted that fig. 2 shows only one earphone, which is only a schematic diagram of the earphone 200 and does not constitute a limitation to the embodiment of the present application, and in practical applications, a person skilled in the art may select a pair of earphones and select another earphone different from the earphone shown in fig. 2 to implement the present solution by referring to the solution of the embodiment of the present application.
In some embodiments, the terminal 100 may also be installed with an application capable of controlling the headset, based on which the headset may be configured, e.g., based on which the user may select the noise reduction intensity of the headset and also the noise reduction mode of the headset. The terminal 100 may obtain a selection instruction of the user, and send corresponding control information to the headset 200 according to the instruction, so as to configure corresponding parameters of the headset 200.
In some embodiments, the noise reduction mode control method provided by the embodiment of the present application may be applied to the terminal 100, wherein a preset application may be run on the terminal 100, and the current environmental sound may be collected by the terminal 100 or the headset 200.
In other embodiments, the noise reduction mode control method provided in the embodiment of the present application may also be applied to the headset 200, and then the preset application may be run on the headset 200, and the headset 200 may be used to collect the current ambient sound.
The information processing method, apparatus, electronic device and storage medium provided by the embodiments of the present application will be described in detail by specific embodiments.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a noise reduction mode control method according to an embodiment of the present application, and the method is applied to an electronic device, where the electronic device may be the terminal or the earphone. The flow shown in fig. 3 will be described in detail below. The noise reduction mode control method may include the steps of:
step S110: and monitoring the current environment sound and the trigger information of the preset application.
The current environmental sound is the environmental sound that can be collected by the audio collection device based on the current position, and the audio collection device is used for collecting audio, and may be a microphone or other device capable of collecting audio, for example.
In some embodiments, the audio collecting device may be disposed at the terminal, and the terminal collects the current environmental sound through the audio collecting device to monitor whether the current environmental sound matches the designated environmental sound, so as to determine whether the designated environmental sound is monitored.
In other embodiments, the audio collection device may be disposed in the earphone, so that the earphone can collect the current environmental sound, and as a mode, the earphone can transmit the collected current environmental sound to the terminal, and the terminal executes the subsequent steps. Alternatively, a processor may be disposed in the earphone, and the earphone collects the current environmental sound through the audio collecting device, and transmits the current environmental sound to the processor, so that the processor can perform the subsequent steps.
It should be noted that, in the embodiment of the present application, traffic scenes in which the earphones may be located are classified in advance, and optionally, because there may be a great difference in noise existing on or near different vehicles, the traffic scenes may be classified according to the difference of the vehicles, and the preset traffic scenes may include, but are not limited to, a subway scene, a bus scene, an airplane scene, and the like. The preset application is configured and adapted to run in a preset traffic scenario, which may be any of the aforementioned scenarios.
In some embodiments, the preset application may be a ride application, a payment application, and the like, which is not limited in this embodiment.
For example, the preset application may be a bus taking application, and is suitable for running in a bus scene. The bus taking application can be used for generating a taking identifier for a user to take a bus in a code brushing mode, and for example, the terminal can run the bus taking application.
For example, the preset application may be a subway taking application, and is suitable for running in a subway scene. The subway taking application can be used for generating taking identification, and a user can take a subway by swiping a code. And in a specific example, when the bus identifier generated by the subway bus application is scanned under different conditions, the subway bus application may generate the trigger information of whether the user is currently out of the station or in the station.
For example, the preset application may also be a payment application, the payment application may be configured with a plurality of electronic cards, each electronic card may be a radio frequency card simulated based on a transportation card and may support Near Field Communication (NFC) payment, in some examples, an NFC module may be built in the terminal, and may perform data interaction with an NFC reading device based on the NFC module, and when a user takes a transportation vehicle, the user may bring the terminal close to the NFC reading device, and the NFC reading device may read the transportation card configured by the payment application to perform payment.
It is understood that when the preset application is running, the headset may be in a preset traffic scene corresponding to the preset application. In the embodiment of the application, specific information generated in the running process of the preset application is used as trigger information for determining the scene where the earphone is located.
For example, when the preset application is a subway taking application, the trigger information may be description information generated when a taking identifier generated by the subway taking application is scanned, and the taking identifier may be a two-dimensional code that needs to be swiped when a user takes a subway.
Step S120: and if at least one of the first trigger information and the designated environment sound is monitored, determining that the earphone is in a preset traffic scene.
The first trigger information is used for representing the arrival of a wearer of the earphone, and the specified environment sound is the environment sound matched with the preset traffic scene. In practical application, the inventor finds that a user can go in and out of a preset traffic scene through a preset application or not, for example, taking a subway scene as an example, the user can enter a station by swiping a code through a subway bus application or by swiping a card through a traffic card such as shenzhen, ewell and the like, at this time, if the electronic device only monitors trigger information of the subway bus application, a situation that the user actually enters the station and is in the preset traffic scene but is not recognized may occur, that is, a missed detection occurs. Therefore, the embodiment of the application monitors the trigger information of the preset application and the current environment sound, the missing rate can be greatly reduced, and the identification accuracy of the preset traffic scene is improved.
When a user needs to take a vehicle, the user may need to open the preset application for entering and exiting or paying with a high probability, so that whether the earphone is in a preset traffic scene or not can be determined by monitoring the trigger information of the preset application, and automatic scene identification is realized.
In an embodiment, the first trigger information may be an application opening instruction for opening a preset application, and it may be determined that the headset is in a preset traffic scene by monitoring whether the preset application is opened and when the application opening instruction for opening the preset application is monitored.
In another embodiment, the first trigger information may also be information generated by the electronic device based on a preset application, and the information is used to indicate that the wearer of the headset is approaching, and it may be determined that the headset is in a preset traffic scene by monitoring whether the information generated based on the preset application is available to indicate that the wearer of the headset is approaching, and when it is detected that the information generated based on the preset application is available to indicate that the wearer of the headset is approaching. Therefore, the accuracy rate of judging that the earphone is in the preset traffic scene can be improved. The detailed description of the embodiments can be seen in the following examples, which are not repeated herein.
In addition, when the earphone is in a preset traffic scene, the earphone can generally monitor the environmental sound matched with the preset traffic scene, so that the scene can be automatically identified by monitoring the current environmental sound and judging whether the appointed environmental sound is monitored.
In some embodiments, the electronic device may collect current environmental sounds, match audio features of the current environmental sounds with audio features of designated environmental sounds, and determine that the earphone is in a preset traffic scene if the designated environmental sounds are currently monitored if the matching is successful. In some embodiments, the specified environmental sound may be a sound of a vehicle opening and closing a door, for example, a subway door opening and closing sound corresponding to a subway scene; for example, the sound of opening and closing the door of the bus corresponding to the bus scene is not limited herein. In other embodiments, the designated environmental sound may also be a broadcast sound of the vehicle, such as various prompting messages including station information, etc., for example, "a train is coming to a station", "do not get close to a screen door", "please wait in line and take care of a gap between the train and the station" which may correspond to a subway scene; for another example, the "getting-off passenger please get up your luggage items and get off from the back door" may correspond to the bus scene.
In an embodiment, the electronic device may pre-store a Spectrogram (Spectrogram) of the specified environmental sound, and when the current environmental sound is monitored, the acquired Spectrogram of the current environmental sound may be matched with the Spectrogram of the specified environmental sound, and if the matching degree is higher than a preset threshold, it may be determined that the matching is successful, that is, it may be determined that the specified environmental sound is currently monitored. The preset threshold value can be determined according to actual needs, can be preset by a program, can be customized by a user, and is not limited herein.
Step S130: and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to a preset traffic scene.
When the earphone is determined to be in the preset traffic scene, the noise reduction mode of the earphone can be configured to be the traffic noise reduction mode corresponding to the preset traffic scene. It should be noted that different scenes correspond to different noise reduction modes, and different traffic noise reduction modes can be corresponding to different traffic scenes, so that the corresponding traffic noise reduction modes are configured according to the scenes, and the noise of each scene can be reduced in a targeted manner, thereby achieving a better noise reduction effect.
In some embodiments, if the terminal performs step S120, when the terminal determines that the earphone is in the preset traffic scene, the terminal may send mode opening information to the earphone, where the mode opening information is used to instruct the earphone to open a traffic noise reduction mode corresponding to the preset traffic scene. As one way, the terminal may send the mode on information to the headset based on a wireless communication protocol, for example, the terminal may communicate with the headset through bluetooth for data transmission with the headset.
In other embodiments, if the headset performs step S120, when the headset determines that the headset is in the preset traffic scene, the noise reduction mode of the headset may be configured as a traffic noise reduction mode corresponding to the preset traffic scene.
In some embodiments, the headset may support multiple noise reduction modes, and when it is determined that the headset is in a preset traffic scene, it may be determined whether the headset currently starts the noise reduction mode, or whether the current noise reduction mode is a traffic noise reduction mode corresponding to the preset traffic scene; if the noise reduction mode is not started, the traffic noise reduction mode corresponding to the preset traffic scene can be started; if the noise reduction mode is started, but the current noise reduction mode is not the traffic noise reduction mode corresponding to the preset traffic scene, the current noise reduction mode can be closed, and the traffic noise reduction mode corresponding to the preset traffic scene is started.
According to the noise reduction mode control method provided by the embodiment of the application, the current environment sound and the trigger information of the preset application which is suitable for running in the preset traffic scene are monitored, if at least one of the first trigger information for representing the arrival of a wearer of the earphone and the appointed environment sound is monitored, the earphone is determined to be in the preset traffic scene, wherein the appointed environment sound is the environment sound matched with the preset traffic scene, and the noise reduction mode of the earphone is configured to be the traffic noise reduction mode corresponding to the preset traffic scene. Therefore, whether the earphone is in the preset traffic scene or not is automatically identified by monitoring the environmental sound and presetting the trigger information of the application, and when the earphone is in the preset traffic scene, the corresponding traffic noise reduction mode is automatically configured, so that the user does not need to manually configure, the noise reduction mode can be automatically configured according to the preset traffic scene, the noise reduction effect is guaranteed, meanwhile, the operation of the earphone application is simplified, and the user experience is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a noise reduction mode control method according to another embodiment of the present application, where the method is applicable to the electronic device, and the method may include:
step S210: and monitoring the current environment sound and the trigger information of the preset application.
Step S220: and if at least one of the first trigger information and the designated environment sound is monitored, determining that the earphone is in a preset traffic scene.
In some embodiments, before step S220, step S221 to step S223 may further be included, specifically, referring to fig. 5, fig. 5 shows a schematic flow chart of a trigger information generating method provided in an exemplary embodiment of the present application, which is described below with a subway scene as an example, and before step S220, the method may include:
step S221: and acquiring an application opening instruction and starting the preset application.
Step S222: and generating the riding identification for the outbound and inbound based on the preset application.
Step S223: and if the riding identification is scanned, generating trigger information.
In some traffic scenes such as subway scenes, a user can access the station by swiping a code through a preset application, the preset application can be a subway taking application, and the subway taking application can generate a taking identifier for accessing the station. In some examples, the form of the ride identifier may be a two-dimensional code, and the specific form of the ride identifier is not limited in this embodiment. If the user enters the station and swipes the code, the preset application can be opened, the bus identifier generated by the preset application is used for swiping the code to the reading device, when the bus identifier is scanned by the reading device, the preset application can generate trigger information, and in some examples, information such as the station name of the user entering the station can be identified. For example, when a user takes a subway in the sea, the user generally uses a metropolitan application, and a successful inbound information interface pops up after the code swiping is successful, wherein the information interface is generated according to first trigger information generated by the code swiping. Therefore, if the first trigger information is monitored, the earphone can be determined to be in a preset traffic scene.
In some embodiments, the trigger information may be used to generate a display interface, such as User Interface (UI) information, and the electronic device may monitor the trigger information, and analyze the trigger information to characterize an inbound or an outbound according to the trigger information, where the inbound may be determined to indicate that the headset is in a preset traffic scene, and the outbound may be determined to be determined not to be in the preset traffic scene. In some examples, monitoring or listening to an event in the running process of a preset application may be implemented through a system site, and the first trigger information is set as an event needing attention, so that when the event occurs, that is, when the first trigger information is generated, the event may be captured by the electronic device, that is, may be monitored by the electronic device.
In an embodiment, after the bus identifier is scanned, the preset application may further determine information such as a site name of the current site. For example, if it is monitored that the UI information is id/tvoutname (textview) - "successful inbound-tornado way", the UI information is second trigger information representing that a wearer of the headset is inbound, at this time, it is determined that the headset is in a preset traffic scene, and the current inbound site name is tornado way.
In some embodiments, the first trigger information may be used to generate an interface for characterizing inbound, for example, the interface may display information such as "inbound success", a name of a currently inbound site, and the like, as shown in fig. 6, where fig. 6 illustrates an interface diagram of an inbound prompt provided in an exemplary embodiment of the present application.
It should be noted that the subway taking application may be an independent subway taking application, for example, a metropolitan application used for taking a subway in the open sea; the method may also be an applet, for example, a ride code applet used in taking a subway in shenzhen, and the specific type of subway ride application is not limited in this embodiment.
In addition, in some embodiments, the preset application may also be a WiFi connection application for connecting a hotspot, when the WiFi connection switch is turned on, the hotspot around the electronic device may be scanned to obtain hotspot information of the hotspot, and then the electronic device may pre-store specified hotspot information corresponding to a preset traffic scene, taking a subway scene as an example, if the subway station has a fixed WiFi device, the information such as BSSID of the WiFi device at the station may be collected at an earlier stage, and the obtained information may be stored in the terminal or the headset as the specified hotspot information corresponding to the subway scene. Therefore, the headset is determined to be in a preset traffic scene when the scanned hotspot information contains the appointed hotspot information by monitoring the hotspot information scanned by the WiFi connection application. Monitoring can be realized through system embedding points.
In addition, the BSSID uniquely represents a WiFi device and can be used for accurately identifying a station, so that whether the headset is in a preset traffic scene is determined through the BSSID, and scene identification accuracy can be improved.
In other embodiments, the preset application may also be an application, such as a map application, which may be used to obtain current geographical location information of the terminal or headset, such as GPS location information. Taking a subway scene as an example, if the subway station is a ground station, the GPS signal is good, and the GPS position information of the station can be acquired at the earlier stage and stored in the terminal or the earphone in correspondence with the subway scene. Therefore, the geographical position information of the electronic equipment can be acquired, and when the current station is determined to be the ground station according to the geographical position information, the earphone is determined to be in the preset traffic scene, so that accurate scene identification of the ground station can be realized.
Step S230: and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to a preset traffic scene.
In some embodiments, a traffic noise reduction model may be pre-constructed, and the noise reduction model corresponds to the traffic noise reduction mode, and when the traffic noise reduction mode is turned on, the noise reduction may be performed based on the corresponding traffic noise reduction model. For example, the traffic noise reduction model may be obtained by using a Convolutional-Recurrent Neural Networks (Convolutional-Recurrent Neural Networks) algorithm, and the noise reduction of the subway noise may be implemented by respectively acquiring the subway noise and the human voice as training sets and outputting the human voice as a result. In other embodiments, other algorithms may also be used to construct a traffic noise reduction model to reduce noise of traffic noise, which is not limited in this embodiment.
Step S240: and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode.
In some embodiments, step S240 may include steps S241 to S242 to determine whether the headset is not in the preset traffic scene by monitoring the trigger information of the preset application when the noise reduction mode of the headset is the traffic noise reduction mode. Specifically, referring to fig. 7, fig. 7 is a schematic flowchart illustrating step S240 in fig. 4 according to an exemplary embodiment of the present application, where step S240 may include:
step S241: and if the second trigger information is monitored, determining that the earphone is not in the preset traffic scene.
Step S242: and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode.
When the earphone is in a preset traffic scene, if the riding identifier is scanned, second trigger information can be generated, wherein the second trigger information is used for representing that a wearer of the earphone is out of the station. If the second trigger information is monitored, it can be determined that the earphone is not in the preset traffic scene, and the traffic noise reduction mode corresponding to the preset traffic scene does not need to be continuously started, and at the moment, the traffic noise reduction mode can be closed.
In some embodiments, if the terminal performs step S242, when the terminal determines that the headset is not in the preset traffic scene, the terminal may send mode closing information to the headset, where the mode closing information is used to instruct the headset to close the traffic noise reduction mode corresponding to the preset traffic scene. As one way, the terminal may transmit the mode off information to the headset based on the wireless communication protocol.
In other embodiments, if the headset performs step S242, the traffic noise reduction mode corresponding to the preset traffic scene may be turned off when the headset determines that the headset is not in the preset traffic scene.
In some embodiments, according to the second trigger information, the electronic device may generate an interface characterizing the outbound, for example, the interface may display information such as "outbound success", a name of a currently outbound site, and the like.
In some embodiments, step S240 may include steps S243 to S245 to determine whether the headset is not in the preset traffic scene by continuously monitoring whether the specified ambient sound may be monitored again within the preset time period when the noise reduction mode of the headset is the traffic noise reduction mode. Therefore, the condition that the station is not taken out through the preset application can be monitored, the missing rate is reduced, and the scene recognition accuracy rate is improved. Specifically, referring to fig. 8, fig. 8 shows a schematic flowchart of step S240 in fig. 4 according to an exemplary embodiment of the present application, where step S240 may include:
step S243: when the earphone is in a preset traffic scene, the current environment sound is monitored.
Step S244: and if the specified environment sound is not monitored in the preset time period, determining that the earphone is not in the preset traffic scene.
Step S245: and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode.
After the earphone is determined to be in the preset traffic scene, the current environment sound can be monitored, timing can be started after the current environment sound is monitored for the first time, if the appointed environment sound is not monitored in the preset time period after the timing is started, the earphone can be determined not to be in the preset traffic scene, and then the traffic noise reduction mode is closed. In the running process of the subway, the door is opened and closed at least once when the user stops at one station every time, so that the electronic equipment can monitor at least one specified environment sound when the user takes the subway and stops at one station every time, and if the specified environment sound is not monitored in a preset time period, the user possibly leaves the subway, so that the earphone can be accurately monitored when the earphone is not in a preset traffic scene by the method, and the noise reduction mode is switched along with the switching of the scene.
The preset time period can be determined according to actual needs, for example, the time length of the preset time period can be determined according to the driving time interval required by the subway to drive between the stations, taking the next station of the station a as the station B for example, and the time required by the subway to drive from the station a to the station B is the driving time interval required by the subway to drive between the station a and the station B. In addition, the preset time period may also be preset by a program, or may be user-defined, and is not limited herein.
In some embodiments, the time length of the preset time period may be set to be equal to or greater than the maximum travel time interval, for example, the time length of the preset time period may be 3 minutes, 5 minutes, 10 minutes, and the like, which is not limited in this embodiment.
In addition, because the driving time intervals of subways on different lines may be different, in other embodiments, the preset time length may also be adjusted according to the current station or the subway line corresponding to the current station, so that an event that the headset is not in the preset traffic scene may be monitored more accurately and timely, and the corresponding traffic noise reduction mode may be turned off in time.
In addition, in some embodiments, when the headset is in a preset traffic scene, the trigger information of the preset application may be monitored, the current environmental sound may also be monitored, and when the second trigger information of the preset application is monitored, or when the specified environmental sound is not monitored within a preset time period, it is determined that the headset is not in the preset traffic scene, and the traffic noise reduction mode is turned off.
In other embodiments, when the headset is in a preset traffic scene, only one of the trigger information of the preset application or the current ambient sound may be monitored, so as to reduce the power consumption of the electronic device while improving the noise reduction experience.
In some embodiments, if the electronic device determines that the earphone is in the preset traffic scene by monitoring the first trigger information of the preset application, when the earphone is in the preset traffic scene, or when the current noise reduction mode of the earphone is the traffic noise reduction mode corresponding to the preset traffic scene, only the second trigger information of the preset application may be monitored, and the audio acquisition device is controlled to be turned off or dormant, so that the audio acquisition device does not acquire audio, thereby reducing power consumption of the electronic device. Because the user generally can brush the sign indicating number and come out of the station after brushing the sign indicating number and coming in the station, so through monitoring the user and brushing the sign indicating number and come in the station and open the traffic and fall the mode of making an uproar, only continue monitoring the action that the user brushed the sign indicating number and come out of the station, can accurately monitor whether the earphone still is in and predetermines the traffic scene, then this moment through closing audio acquisition device or dormancy, reduce the consumption, prolong electronic equipment's stand-by time when improving and falling the experience of making an uproar.
In other embodiments, if the electronic device determines that the earphone is in the preset traffic scene by monitoring the specified environmental sound, when the earphone is in the preset traffic scene, or the noise reduction mode of the current earphone is the traffic noise reduction mode corresponding to the preset traffic scene, only the current environmental sound may be monitored without monitoring the trigger information of the preset application, and if the specified environmental sound is not monitored within the preset time period, it is determined that the earphone is not in the preset traffic scene, and the traffic noise reduction mode is closed.
It should be noted that, for parts not described in detail in this embodiment, reference may be made to the foregoing embodiments, and details are not described herein again.
On the basis of the foregoing embodiment, when the earphone is in the preset traffic scene, at least one of the trigger information of the preset application and the specified environmental sound is monitored again within the preset time period by continuing to monitor, and when at least one of the second trigger information and the specified environmental sound is not monitored again within the preset time period, it is determined that the earphone is not in the preset traffic scene, and when the earphone is not in the preset traffic scene, the traffic noise reduction mode corresponding to the preset traffic scene is automatically closed, so that the noise reduction mode is automatically opened and closed when the earphone enters or exits the preset traffic scene, the operation of a user is further simplified, manual configuration of the user is not required, and user experience is improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating a noise reduction mode control method according to another embodiment of the present application, where the method is applicable to the electronic device, and the method includes:
step S310: and monitoring the current environment sound and the trigger information of the preset application.
Step S320: and if the first trigger information is monitored, judging whether the appointed environment sound is monitored.
If the first trigger information is monitored, it is determined whether the designated environmental sound is monitored, and if the designated environmental sound is monitored, step S330 may be designated.
In some possible embodiments, if the specified environmental sound is not monitored, the headset is not determined to be in the preset traffic scene, and the noise reduction mode of the headset is not configured to be the traffic noise reduction mode corresponding to the preset traffic scene, so that a scene recognition error caused by misoperation can be avoided, and the scene recognition accuracy rate is improved.
Step S330: and if the specified environment sound is monitored, determining that the earphone is in a preset traffic scene.
Step S340: and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to a preset traffic scene.
In some embodiments, when the headset is in a preset traffic scene or the noise reduction mode of the headset is a traffic noise reduction mode, whether the headset leaves or is not in the preset traffic scene may be monitored according to the method described in the above embodiments, and when the headset is not in the preset traffic scene, the traffic noise reduction mode corresponding to the preset traffic scene is closed. Therefore, the traffic noise reduction mode can be automatically turned on or off according to the scene.
It should be noted that, for parts not described in detail in this embodiment, reference may be made to the foregoing embodiments, and details are not described herein again.
In the noise reduction mode control method provided by this embodiment, by monitoring the current environmental sound and the trigger information of the preset application, and if the first trigger information is monitored, whether the specified environmental sound is monitored is judged, and when the specified environmental sound is monitored, it is determined that the earphone is in the preset traffic scene, and the noise reduction mode of the earphone is configured as the traffic noise reduction mode corresponding to the preset traffic scene. Further, when the earphone is in the preset traffic scene or the noise reduction mode of the earphone is the traffic noise reduction mode, whether the earphone leaves or is not in the preset traffic scene can be monitored according to the method in the embodiment, and when the earphone is not in the preset traffic scene, the traffic noise reduction mode corresponding to the preset traffic scene is closed. Therefore, the traffic noise reduction mode can be automatically turned on or off according to the scene.
Referring to fig. 10, fig. 10 shows a flow diagram of a noise reduction mode control method according to another embodiment of the present application, and specifically, the method may include:
s1: and whether to swipe the code to enter the station.
If the user enters the station and scans the two-dimensional code, the name of the station where the user enters the station can be identified through analyzing the UI information, and then the mobile phone is judged to be in a subway mode, namely the earphone is in a subway scene. For example, when a user takes a subway in the sea, the user can generally use an information interface which can be used for entering the station by applying the code swiping in a metropolitan area and pop up the successful entering after the code swiping is successful, as shown in fig. 6. The terminal can obtain the destination UI information through the system embedded point, and the destination UI information can correspond to the first trigger information.
S2: and monitoring the sound of opening and closing the door of the subway.
If the user does not enter the station by swiping the code, whether the user enters the subway can be identified according to the sound of opening and closing the door of the subway. And a spectrogram of sound of opening and closing the subway door can be collected in advance to obtain the alarm bell sound characteristic of opening and closing the subway door.
S3: and judging whether the sound of opening and closing the door of the subway is detected.
If the door opening and closing sound of the subway is detected, the step S4 can be executed, and if the door opening and closing sound of the subway is not detected, the monitoring can be continued.
S4: and sending subway mode starting information.
S5: and starting a subway noise reduction mode.
And after the terminal determines to be in the subway mode at the moment, the terminal can send subway mode starting information, and after the earphone service receives the subway mode starting information, the subway noise reduction mode of the earphone can be opened through communication between the Bluetooth and the earphone. The headset service may be a background service of the terminal.
S6: and whether to swipe the code and go out of the station.
S7: and monitoring the sound of opening and closing the door of the subway.
S8: whether subway door opening and closing sounds exist within a period of time is detected.
S9: and sending subway mode closing information.
S10: and closing the subway noise reduction mode.
When the user leaves the subway after leaving the station, if the user leaves the station by applying the code swiping, the identification method is similar to the entering station, and is not described in detail. And for non-code-swiping outbound, the door opening and closing sound of the subway can be monitored, whether the door opening and closing sound of the subway is detected within a recent period of time (such as within 10 minutes) or not is detected, and if the door opening and closing sound of the subway is not detected within a period of time, the fact that the user is currently outbound, namely that the earphone is not in the subway scene, is determined. When the user goes out of the station, the subway mode closing information is sent, after the earphone service receives the subway mode closing information, the subway noise reduction mode is closed, the user can be switched to the default noise reduction mode to reduce noise of common environmental sound, other noise reduction modes can be switched to, and any noise reduction mode can not be started.
It should be noted that, for parts not described in detail in this embodiment, reference may be made to the foregoing embodiments, and details are not described herein again.
The noise reduction mode control method provided by this embodiment detects whether the user is currently in the subway by combining the user code swiping entry and the recognition of the subway door opening and closing sound. Then, the switch information of the subway mode is sent to the earphone service for automatically turning on and off the earphone subway noise reduction mode, so that the operation of earphone application is simplified, and the user experience is improved. Specifically, whether a user swipes a code to enter the station is determined by a preset application and page information thereof when the user swipes the code to enter the station; and for the non-code-swiping user, identifying the subway mode by identifying the door opening and closing sound of the subway. After the subway mode is identified, the broadcast started in the subway mode is sent to the earphone service through a wireless communication protocol, and the current noise reduction mode of the earphone is switched to the subway noise reduction mode. When the condition that the codes are refreshed and the subway door opening and closing sound cannot be detected within a period of time is monitored, the broadcast of the subway closing mode is sent to the earphone service, the subway noise reduction mode which is currently started by the earphone service is closed, and the subway noise reduction mode is switched to the default noise reduction mode or the noise reduction mode is not started. Therefore, intelligent switching of the subway noise reduction mode of the noise reduction earphone is achieved, and user experience is improved.
Referring to fig. 11, a block diagram of a noise reduction mode control apparatus 1200 according to an embodiment of the present disclosure is shown, where the noise reduction mode control apparatus 1200 is applicable to the mobile terminal, and the noise reduction mode control apparatus 1200 may include: the information monitoring module 1210, the scenario determination module 1220, and the mode configuration module 1230, specifically:
the information monitoring module 1210 is configured to monitor current environmental sounds and trigger information of a preset application, where the preset application is suitable for running in a preset traffic scene;
a scene determining module 1220, configured to determine that the earphone is located in the preset traffic scene if at least one of first trigger information and a specified environmental sound is monitored, where the first trigger information is used to represent that a wearer of the earphone arrives at the station, and the specified environmental sound is an environmental sound matched with the preset traffic scene;
a mode configuration module 1230, configured to configure the noise reduction mode of the headset to a traffic noise reduction mode corresponding to the preset traffic scene.
Further, the noise reduction mode control apparatus 1200 further includes: the device comprises an application opening module, an identification generation module, an information generation module, a second information generation module and a mode closing module, wherein:
the application opening module is used for acquiring an application opening instruction and starting the preset application;
the identification generation module is used for generating a riding identification for the incoming and outgoing stations based on the preset application;
and the information generation module is used for generating trigger information if the riding identifier is scanned, wherein the trigger information comprises first trigger information.
And the second information generation module is used for generating second trigger information if the riding identifier is scanned when the earphone is in the preset traffic scene, wherein the second trigger information is used for representing the appearance of the user wearing the earphone.
And the mode closing module is used for closing the traffic noise reduction mode if the earphone is not in the preset traffic scene, and the traffic noise reduction mode is used for carrying out noise reduction processing on the noise in the preset traffic scene.
Further, the mode shutdown module includes: a first scene determination sub-module and a first mode shutdown sub-module, wherein:
the first scene determining submodule is used for determining that the earphone is not in the preset traffic scene if second trigger information is monitored;
and the first mode closing submodule is used for closing the traffic noise reduction mode if the earphone is not in the preset traffic scene.
Further, the mode shutdown module further comprises: an ambient sound monitoring sub-module, a second scene determination sub-module, and a second mode shutdown sub-module, wherein:
the environment sound monitoring submodule is used for monitoring the current environment sound when the earphone is in the preset traffic scene;
the second scene determining submodule is used for determining that the earphone is not in the preset traffic scene if the specified environment sound is not monitored in a preset time period;
and the second mode closing submodule is used for closing the traffic noise reduction mode if the earphone is not in the preset traffic scene.
Further, the scene determining module 1220 further includes: designating a detection sub-module and a scene determination sub-module, wherein:
the appointed detection submodule is used for judging whether the appointed environment sound is monitored or not if the first trigger information is monitored;
and the scene determining submodule is used for determining that the earphone is in the preset traffic scene if the specified environment sound is monitored.
The noise reduction mode control device provided in the embodiment of the present application is used to implement the corresponding noise reduction mode control method in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 12, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 1300 may be a smart phone, a tablet computer, an electronic book, a notebook computer, a personal computer, or other electronic devices capable of running an application program, and may also be an earphone. The electronic device 1300 in the present application may include one or more of the following components: a processor 1310, a memory 1320, and one or more applications, wherein the one or more applications may be stored in the memory 1320 and configured to be executed by the one or more processors 1310, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
The processor 1310 may include one or more Processing cores, the processor 1310 may be coupled to various components throughout the electronic device 1300 using various interfaces and lines to perform various functions and process data of the electronic device 1300 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1320 and calling data stored in the memory 1320, the processor 1310 may optionally be implemented in the form of at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), Programmable logic Array (Programmable L analog Array, P L A), the processor 1310 may be implemented in the form of at least one of a hardware, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, or the like.
The Memory map 1220 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory map 1220 may be used to store instructions, programs, code sets, or instruction sets. The memory map 1220 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use of the electronic device diagram 1200 (e.g., phone book, audio-video data, chat log data), and the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 1400 has stored therein program code that can be called by a processor to execute the method described in the above embodiments.
The computer-readable storage medium 1400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1400 includes a non-volatile computer-readable storage medium. The computer readable storage medium 1400 has storage space for program code 1410 for performing any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 1410 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for noise reduction mode control, the method comprising:
monitoring current environmental sounds and trigger information of a preset application, wherein the preset application is suitable for running in a preset traffic scene;
if at least one of first trigger information and appointed environment sound is monitored, determining that the earphone is located in the preset traffic scene, wherein the first trigger information is used for representing that a wearer of the earphone arrives at the station, and the appointed environment sound is the environment sound matched with the preset traffic scene;
and configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to the preset traffic scene.
2. The method of claim 1, wherein if at least one of the first trigger information and the specified ambient sound is monitored, the method further comprises determining that the headset is in the predetermined traffic scene:
acquiring an application opening instruction, and starting the preset application;
generating a riding identifier for the incoming and outgoing stations based on the preset application;
and if the riding identification is scanned, generating trigger information, wherein the trigger information comprises first trigger information.
3. The method of claim 2, further comprising:
and when the earphone is in the preset traffic scene, generating second trigger information if the riding identifier is scanned, wherein the second trigger information is used for representing the appearance of the user wearing the earphone.
4. The method of claim 1, further comprising:
and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode, wherein the traffic noise reduction mode is used for carrying out noise reduction processing on the noise in the preset traffic scene.
5. The method of claim 3 or 4, wherein the turning off the traffic noise reduction mode if the headset is not in the predetermined traffic scene comprises:
if second trigger information is monitored, determining that the earphone is not in the preset traffic scene;
and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode.
6. The method of claim 4, wherein the turning off the traffic noise reduction mode if the headset is not in the predetermined traffic scene comprises:
monitoring current environmental sounds when the earphone is in the preset traffic scene;
if the specified environment sound is not monitored in a preset time period, determining that the earphone is not in the preset traffic scene;
and if the earphone is not in the preset traffic scene, closing the traffic noise reduction mode.
7. The method of any one of claims 1-4, wherein determining that the headset is in the predetermined traffic scenario if at least one of the first trigger information and a specified ambient sound is monitored, further comprises:
if the first trigger information is monitored, judging whether the specified environment sound is monitored;
and if the specified environment sound is monitored, determining that the earphone is in the preset traffic scene.
8. A noise reduction mode control apparatus, characterized in that the apparatus comprises:
the information monitoring module is used for monitoring current environmental sounds and trigger information of a preset application, and the preset application is suitable for running in a preset traffic scene;
the scene determining module is used for determining that the earphone is in the preset traffic scene if at least one of first trigger information and appointed environment sound is monitored, wherein the first trigger information is used for representing that a wearer of the earphone arrives at the station, and the appointed environment sound is the environment sound matched with the preset traffic scene;
and the mode configuration module is used for configuring the noise reduction mode of the earphone into a traffic noise reduction mode corresponding to the preset traffic scene.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any of claims 1-7.
CN202010357364.0A 2020-04-29 2020-04-29 Noise reduction mode control method and device, electronic equipment and storage medium Pending CN111510814A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010357364.0A CN111510814A (en) 2020-04-29 2020-04-29 Noise reduction mode control method and device, electronic equipment and storage medium
PCT/CN2021/079131 WO2021218377A1 (en) 2020-04-29 2021-03-04 Noise reduction mode control method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010357364.0A CN111510814A (en) 2020-04-29 2020-04-29 Noise reduction mode control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111510814A true CN111510814A (en) 2020-08-07

Family

ID=71878288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010357364.0A Pending CN111510814A (en) 2020-04-29 2020-04-29 Noise reduction mode control method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111510814A (en)
WO (1) WO2021218377A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935583A (en) * 2020-08-24 2020-11-13 Oppo(重庆)智能科技有限公司 Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium
CN111970609A (en) * 2020-08-27 2020-11-20 Oppo广东移动通信有限公司 Sound quality adjusting method, sound quality adjusting system, electronic device, earphone, and computer-readable storage medium
CN113115164A (en) * 2021-05-11 2021-07-13 深圳市美恩微电子有限公司 Conversation bluetooth headset based on ANC falls and makes an uproar
CN113411711A (en) * 2021-06-29 2021-09-17 紫优科技(深圳)有限公司 Intelligent earphone noise reduction method and system
CN113596671A (en) * 2021-09-29 2021-11-02 翱捷科技(深圳)有限公司 Method and system for obtaining noise reduction parameters of earphone chip
WO2021218377A1 (en) * 2020-04-29 2021-11-04 Oppo广东移动通信有限公司 Noise reduction mode control method and apparatus, electronic device and storage medium
CN115277931A (en) * 2022-06-27 2022-11-01 北京小米移动软件有限公司 Information presentation method, information presentation device, and storage medium
CN115567817A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Method for setting working mode of audio output equipment and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116367063B (en) * 2023-04-23 2023-11-14 郑州大学 Bone conduction hearing aid equipment and system based on embedded
CN117041803B (en) * 2023-08-30 2024-03-22 江西瑞声电子有限公司 Earphone playing control method, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554236A (en) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Terminal scene processing method and device and terminal
CN106572411A (en) * 2016-09-29 2017-04-19 乐视控股(北京)有限公司 Noise cancelling control method and relevant device
CN107750027A (en) * 2017-11-30 2018-03-02 会听声学科技(北京)有限公司 scene adaptive active noise reduction earphone and scene adaptive active noise reduction design method
CN108093367A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
US20190066652A1 (en) * 2017-08-30 2019-02-28 Fortemedia, Inc. Electronic device and control method of earphone device
CN109817236A (en) * 2019-02-01 2019-05-28 安克创新科技股份有限公司 Audio defeat method, apparatus, electronic equipment and storage medium based on scene
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method and device, storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10283104B2 (en) * 2015-01-26 2019-05-07 Shenzhen Grandsun Electronic Co., Ltd. Method and apparatus for controlling earphone noise reduction
CN106126183B (en) * 2016-06-30 2019-07-26 联想(北京)有限公司 Electronic equipment and audio-frequency processing method
CN106792315B (en) * 2017-01-05 2023-11-21 歌尔科技有限公司 Method and device for counteracting environmental noise and active noise reduction earphone
CN111510814A (en) * 2020-04-29 2020-08-07 Oppo广东移动通信有限公司 Noise reduction mode control method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554236A (en) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Terminal scene processing method and device and terminal
CN106572411A (en) * 2016-09-29 2017-04-19 乐视控股(北京)有限公司 Noise cancelling control method and relevant device
US20190066652A1 (en) * 2017-08-30 2019-02-28 Fortemedia, Inc. Electronic device and control method of earphone device
CN107750027A (en) * 2017-11-30 2018-03-02 会听声学科技(北京)有限公司 scene adaptive active noise reduction earphone and scene adaptive active noise reduction design method
CN108093367A (en) * 2017-12-13 2018-05-29 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN109817236A (en) * 2019-02-01 2019-05-28 安克创新科技股份有限公司 Audio defeat method, apparatus, electronic equipment and storage medium based on scene
CN110825446A (en) * 2019-10-28 2020-02-21 Oppo广东移动通信有限公司 Parameter configuration method and device, storage medium and electronic equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021218377A1 (en) * 2020-04-29 2021-11-04 Oppo广东移动通信有限公司 Noise reduction mode control method and apparatus, electronic device and storage medium
CN111935583A (en) * 2020-08-24 2020-11-13 Oppo(重庆)智能科技有限公司 Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium
CN111970609A (en) * 2020-08-27 2020-11-20 Oppo广东移动通信有限公司 Sound quality adjusting method, sound quality adjusting system, electronic device, earphone, and computer-readable storage medium
CN111970609B (en) * 2020-08-27 2022-07-12 Oppo广东移动通信有限公司 Sound quality adjusting method, sound quality adjusting system and computer readable storage medium
CN113115164A (en) * 2021-05-11 2021-07-13 深圳市美恩微电子有限公司 Conversation bluetooth headset based on ANC falls and makes an uproar
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
CN113596671A (en) * 2021-09-29 2021-11-02 翱捷科技(深圳)有限公司 Method and system for obtaining noise reduction parameters of earphone chip
CN115567817A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Method for setting working mode of audio output equipment and electronic equipment
CN115567817B (en) * 2022-02-24 2023-09-29 荣耀终端有限公司 Audio output equipment working mode setting method and electronic equipment
CN115277931A (en) * 2022-06-27 2022-11-01 北京小米移动软件有限公司 Information presentation method, information presentation device, and storage medium

Also Published As

Publication number Publication date
WO2021218377A1 (en) 2021-11-04

Similar Documents

Publication Publication Date Title
CN111510814A (en) Noise reduction mode control method and device, electronic equipment and storage medium
CN109445739A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN108156550B (en) Playing method and device of headset
US10224019B2 (en) Wearable audio device
CN108710615B (en) Translation method and related equipment
US12014716B2 (en) Method for reducing occlusion effect of earphone, and related apparatus
CN108763901B (en) Ear print information acquisition method and device, terminal, earphone and readable storage medium
CN109379491A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN108320751B (en) Voice interaction method, device, equipment and server
CN114245267B (en) Method and system for multi-device cooperative work and electronic device
CN109062535A (en) Sounding control method, device, electronic device and computer-readable medium
CN108111698A (en) A kind of incoming call reminding method and smart machine
US20240096343A1 (en) Voice quality enhancement method and related device
CN111081275B (en) Terminal processing method and device based on sound analysis, storage medium and terminal
CN110727821A (en) Method, apparatus, system and computer storage medium for preventing device from being awoken by mistake
CN113194383A (en) Sound playing method and device, electronic equipment and readable storage medium
CN112947886A (en) Method and device for protecting user hearing and electronic equipment
CN113949956A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
CN106686496B (en) Play mode control method of wearable device and wearable device
CN109102816A (en) Coding control method, device and electronic equipment
CN104769966A (en) Receiver device
CN104980583A (en) Event reminding method and terminal
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
WO2023124248A1 (en) Voiceprint recognition method and apparatus
CN115209298A (en) Audio playing method, device, earphone and storage medium

Legal Events

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

Application publication date: 20200807