WO2022135071A1 - Earphone playback control method and apparatus, and electronic device and storage medium - Google Patents

Earphone playback control method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2022135071A1
WO2022135071A1 PCT/CN2021/134003 CN2021134003W WO2022135071A1 WO 2022135071 A1 WO2022135071 A1 WO 2022135071A1 CN 2021134003 W CN2021134003 W CN 2021134003W WO 2022135071 A1 WO2022135071 A1 WO 2022135071A1
Authority
WO
WIPO (PCT)
Prior art keywords
scene
parameter
controlled
headset
noise reduction
Prior art date
Application number
PCT/CN2021/134003
Other languages
French (fr)
Chinese (zh)
Inventor
汶晨光
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022135071A1 publication Critical patent/WO2022135071A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • 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

Definitions

  • the present application relates to the field of computers, for example, to a headphone playback control method, apparatus, electronic device, and storage medium.
  • terminal devices such as laptops, tablet computers, mobile phones and even wearable devices for entertainment anytime, anywhere.
  • end users can listen to music and watch videos through terminal devices to relax. Spirit.
  • users will choose to wear headphones. Headphones can effectively isolate the noise in the external environment, thereby providing users with better audio playback services, especially when the headphones are noise-cancelling headphones with noise reduction function, they can reduce ambient noise in real time and maximize their own audio output. , showing the best listening effect.
  • earphones especially noise-cancelling earphones, not only isolate the ambient noise, but also isolate the sounds that are more important to the user in the environment, which can easily make the user miss important sound information in the environment.
  • the existence of the noise earphone may make the user unable to hear the announcement of the public transport station, which will bring great inconvenience to the user in some scenarios.
  • the headphone playback control method, device, electronic device and storage medium provided by the present application mainly solve the technical problem that the external environmental sound isolated by the headphone in a specific scene cannot be known.
  • the present application provides a headphone playback control method, including:
  • the present application also provides a headphone playback control device, including:
  • the detection unit is set to detect the real-time scene parameters of the scene where the headset is currently located; the matching unit is set to match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, wherein at least one of the to-be-controlled scene parameters in the parameter library
  • the control scene parameter is the scene parameter of the scene where the headset is learned when the headset is executed the first anti-noise reduction operation; the anti-noise reduction unit is set to be between the real-time scene parameters and the parameter library After the parameters of the first to-be-controlled scene are successfully matched, the second anti-noise reduction operation is performed.
  • the present application also provides an electronic device, the electronic device includes a processor, a memory and a communication bus;
  • the communication bus is configured to realize the connection and communication between the processor and the memory; the processor is configured to execute one or more computer programs stored in the memory, so as to realize the above-mentioned headphone playback control method.
  • the present application also provides a storage medium, where one or more computer programs are stored in the storage medium, and the one or more computer programs can be executed by one or more processors, so as to implement the above-mentioned headphone playback control method.
  • FIG. 1 is a flowchart of a method for controlling playback of headphones according to an embodiment of the present application
  • FIG. 2 is a flowchart of identifying a scene to be controlled and storing parameters of the scene to be controlled provided by an embodiment of the present application;
  • FIG. 3 is a flow chart of verifying whether an associated scene parameter is suitable as a to-be-controlled scene parameter according to an embodiment of the present application
  • FIG. 4 is a control flow diagram after the second anti-noise reduction operation is realized by automatically reducing the output sound energy of the earphone according to an embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of a headphone playback control device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of an earphone according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a headphone playback control system according to an embodiment of the present application.
  • the main practice in the related art is to pre-set some sounds before the headphones leave the factory, and store the audio data of these sounds in the memory of the headphones. ;
  • the audio acquisition unit collects the ambient sound signal, and matches the collected ambient sound signal with the preset audio data. If the matching is successful, the collected ambient sound signal is played to the user through the headset , so that the user can hear the ambient sound.
  • this embodiment provides a headphone playback control method.
  • the headphone playback control method can be implemented by one electronic device, or by the cooperation of two or even more than two electronic devices. Please refer to the headphone shown in FIG. 1 .
  • the so-called real-time scene parameters refer to the scene parameters of the current scene.
  • the real-time scene parameters of the headset can represent the scene where the headset is currently located.
  • the sound in the environment is different in different scenarios. For example, when the user is working in the office, there will be keyboard tapping sounds; when the user is on public transportation, there will be site announcement sounds in the environment; when the user is walking on the roadside , there will basically be the sound of the car engine and the whistle. Therefore, in some examples, the scene in which the headset is located can be represented by detecting ambient sound signals.
  • the scene in which the headset is located may be reflected by its state information, for example, whether the headset is in a wearing state or not, whether it is in a motion state or a static state, etc. If the headset is in a wearing state, And at the same time in a state of motion, the user should be moving while wearing the headset.
  • the state information of the headset may include other state information, such as temperature state information, humidity state information, and the like, in addition to at least one of wearing state information and motion state information. Furthermore, even the motion state information can be refined into multiple levels according to the size of the motion speed.
  • the ambient sound signal can be collected by an audio collection unit, the audio collection unit can be set on the earphone or on the terminal communicatively connected to the earphone, or the audio collection unit can exist independently of the earphone and the terminal.
  • the audio collection unit can be located on the terminal or earphone, and considering that the ambient sound signal collected by the terminal, especially the mobile terminal, such as mobile phone, wearable device, etc. in some scenarios, does not match the actual ambient sound signal of the user For example, when the mobile phone is placed in the pocket of the user's clothes, it will produce friction sound with the clothes pocket. This friction sound will be collected by the audio collection sheet of the mobile phone, and because the pocket blocks the external sound, the friction sound will become a The main ambient sound collected by the mobile phone audio collection unit.
  • the ambient sound of the environment where the user is located is quite different from the ambient sound of the environment where the mobile phone is located.
  • the ambient sound signal collected by the audio collection unit on the mobile phone cannot be used as the sound signal of the environment where the user is located.
  • the electronic device can use the audio collection unit on the earphone to perform the environmental sound. Collection of sound signals.
  • the earphone state information can be collected by sensors, such as at least one of a pressure sensor, a temperature sensor, an infrared sensor, a gravity sensor (gyroscope), and the like.
  • the sensor set to detect the wearing state information of the headset is set on the headset.
  • the sensor set to detect the motion state information of the headset may be located on the headset.
  • the mobile terminal considering that the headset will move with the user's movement While moving, the mobile terminal is usually carried by the user. Therefore, the sensor deployed on the mobile terminal can also be used to detect the motion state information of the earphone.
  • sensors configured to collect motion state information of the headset are deployed on both the headset and the terminal, and the electronic device can collect the state information of the headset through the sensors on the headset and the sensor on the terminal jointly.
  • the real-time scene parameters of the headset may only include ambient sound signals, and in other examples, the real-time scene parameters of the headset may only include status information of the headset.
  • the real-time scene parameter of the earphone may include both the ambient sound signal and the state information of the earphone.
  • S104 Match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library.
  • the electronic device can match the real-time scene parameters with the to-be-controlled scene parameters pre-stored in the parameter library to determine whether the real-time scene parameters match any to-be-controlled scene parameters in the parameter library match.
  • the scene to be controlled refers to a scene that needs to improve the probability of the ambient sound being received. Therefore, the scene parameter to be controlled is actually the real-time scene parameter corresponding to the scene to be controlled by the headset.
  • One or more scene parameters to be controlled can be stored in the parameter library, and each scene parameter to be controlled corresponds to a scene to be controlled.
  • at least one scene to be controlled is automatically identified by the electronic device, and correspondingly, the parameter of at least one scene to be controlled in the parameter library is also automatically determined by the electronic device, and does not require manual settings by programmers or users: parameter library
  • the at least one scene parameter to be controlled pre-stored in is the scene parameter of the scene where the headset is learned when it is detected that the headset is subjected to the first anti-noise reduction operation.
  • the “noise reduction operation” is an operation that reduces the probability that the user hears the ambient sound
  • the “anti-noise reduction operation” is the operation that can increase the probability that the user hears the ambient sound.
  • at least two approaches can be adopted: first, the operation of reducing the sound energy output by the earphone to the user's ear; second, collecting the ambient sound signal and passing the ambient sound signal through the Headphone output.
  • the "first anti-noise reduction operation” refers to an operation of manually increasing the probability of ambient sound being received.
  • there is also a second anti-noise reduction operation and the second anti-noise reduction operation refers to an anti-noise reduction operation performed automatically without a manual operation by the user.
  • the first anti-noise reduction operation may include a manual sound energy limiting operation and an operation of manually controlling the earphone to output an ambient sound signal.
  • the manual sound energy limiting operation is a user operation, which is an operation performed by the user in order to reduce the sound energy of the earphones received by his ears.
  • the manual sound energy limiting operation can be an operation that the user manually reduces the output volume of the earphone, or can also be manually controlled by the user.
  • the operation of stopping the audio playback and in some other examples, the manual sound energy limiting operation may be an operation of the user taking off the earphone in the wearing state during the earphone playing.
  • the manual sound energy limiting operation may be a combination of the above three operations: for example, when the user manually reduces the output volume of the earphone, he removes the earphone that was originally in the wearing state, which is also regarded as a manual sound. It can limit the operation; in other examples, the user manually controls the audio playback to stop and then immediately takes off the headphones that were originally in the wearing state. This operation can also be regarded as a manual sound energy limiting operation.
  • the operation of manually controlling the earphone to output the ambient sound signal may include the user issuing an instruction to instruct the electronic device to collect the ambient sound signal, and then play the ambient sound signal through the earphone.
  • an ambient sound collection control button is set on the earphone. If the user wants to hear the ambient sound, he can press the button. After the earphone receives the user's instruction, it can detect the ambient sound. The signal is collected, and the collected sound signal is output to the user.
  • the ambient sound signal may also be collected by the terminal communicatively connected to the earphone according to the user's instruction.
  • S202 Detect real-time scene parameters of the scene where the headset is currently located, and monitor the first anti-noise reduction operation for the headset.
  • the electronic device may detect scene parameters of the scene where the earphone is located in real time, and monitor the first anti-noise reduction operation for the earphone. Both the process of detecting the real-time scene parameter and the process of detecting the first anti-noise reduction operation may be performed periodically, but the detection periods of the two detection processes may be the same or different.
  • S204 Determine whether the first anti-noise reduction operation is monitored.
  • S206 Determine a scene parameter corresponding to the first anti-noise reduction operation in time as the associated scene parameter of the first anti-noise reduction operation.
  • the electronic device needs to determine the real-time scene parameters corresponding to the first anti-noise reduction operation, and, usually, the user is because the environment has appeared more important to him. Only sound will perform the first anti-noise reduction operation. Therefore, when the electronic device determines the real-time scene parameters corresponding to the detected first anti-noise reduction operation, it is actually backtracking to the earphone before and when the first anti-noise reduction operation occurs. scene parameters. Therefore, after detecting the first anti-noise reduction operation, the electronic device can associate the scene parameter corresponding to the first anti-noise reduction operation in time with the first anti-noise reduction operation as the first anti-noise reduction operation the associated scene parameters.
  • the electronic device After determining the relevant scene parameters of the first anti-noise reduction operation, the electronic device can directly store the relevant scene parameters as the to-be-controlled scene parameters, because the user has recently been in the scene corresponding to the relevant scene parameters, and has the ability to limit the sound energy of the headphones. Therefore, the user is very likely to have the need to limit the sound energy of headphones in the corresponding scene in the future. Therefore, the scene corresponding to the associated scene parameter can be used as the scene to be controlled. On this basis, the associated scene parameter is the Control scene parameters.
  • the electronic device can detect the first anti-noise reduction operation, and can also determine the associated scene parameter corresponding to the first anti-noise reduction operation based on the detection of the real-time scene parameter.
  • the associated scene parameter is not suitable as the scene parameter to be controlled, because the user will not be stopped to ask for directions every time in the usual scene, so if the electronic device regards the associated scene parameter as the scene parameter to be controlled After storage, there will be no ambient sound that is important to the user in subsequent scenes.
  • the real-time scene parameters of the headset match the stored parameters of the scene to be controlled, the corresponding scene will also be identified as the scene to be controlled. control the scene.
  • this embodiment provides a process of learning the scene parameters of the scene where the headset is located, and obtaining the scene parameters to be controlled, as shown in Figure 3:
  • the electronic device determines the real-time scene parameters corresponding to the first anti-noise reduction operation, and the determined real-time scene parameter The scene parameter is the associated scene parameter corresponding to the first anti-noise reduction operation.
  • S304 Continue to detect real-time scene parameters of the scene where the headset is located, and match the detected real-time scene parameters with associated scene parameters.
  • the electronic device Since the first anti-noise reduction operation performed by the user in the scene corresponding to the associated scene parameter is occasional, in order to avoid using the scene parameter corresponding to the occasional first anti-noise reduction operation as the scene parameter to be controlled, in this embodiment After the electronic device obtains the associated scene parameters, it will continue to detect the real-time scene parameters of the scene where the headset is located, so as to verify the associated scene parameters. The verification of the associated scene parameter by the electronic device is actually to determine whether the user will perform the first anti-noise reduction operation again when the scene corresponding to the associated scene parameter appears again.
  • the user performs the first anti-noise reduction operation again it means that the user's first anti-noise reduction operation in this scenario is not accidental, and the user does have a high probability of reducing the sound energy of the earphones in this scenario. Therefore, , the corresponding associated scene parameters can be used as the scene parameters to be controlled. Conversely, if the user does not perform the first anti-noise reduction operation again, it means that the user's previous first anti-noise reduction operation is accidental, and the corresponding associated scene parameters should not be stored as the scene parameters to be controlled.
  • the electronic device obtains the real-time scene parameters of the headset, matches the real-time scene parameters with the associated scene parameters, and also determines whether the scene corresponding to the associated scene parameters is reproduced.
  • the electronic device detects the first anti-noise reduction operation and determines the associated scene parameter corresponding to the first anti-noise reduction operation, it is uncertain when the associated scene parameter will be detected again.
  • the associated scene parameter may be stored first, but the associated scene parameter needs to be stored separately from the to-be-controlled scene parameter in the electronic device.
  • the electronic device monitors the first anti-noise reduction operation for the earphone within the first preset time period.
  • the electronic device monitors the first anti-noise reduction operation for the earphone, in fact, it monitors whether the user will manually reduce the sound energy output by the earphone to the ear again or manually control the earphone to output the ambient sound signal in the reproduced associated scene.
  • the first preset duration may be calculated after the electronic device determines that the real-time scene parameter and the associated scene parameter are successfully matched.
  • the first preset duration can be set by the programmer, or can be defined by the user.
  • the electronic device detects the user's first anti-noise reduction operation within the first preset time period, it means that the user performs the first anti-noise reduction operation in the same associated scene is not accidental. Therefore, the associated scene should be If the scene is identified as the scene to be controlled, the associated scene parameter corresponding to the associated scene should be used as the scene parameter to be controlled. Therefore, in this case, the electronic device will store the associated scene parameters as the scene parameters to be controlled.
  • the first anti-noise reduction operation performed by the user in the associated scene for the first time may be different from the first anti-noise reduction operation performed in the reproduced associated scene. For example, the user takes off the wearing headphones in the associated scene for the first time
  • the first anti-noise reduction operation is implemented, but in the associated scene of reproduction, the user can complete the first anti-noise reduction operation by controlling the audio playback to stop.
  • the electronic device fails to detect the user's first anti-noise reduction operation within the first preset time period, it means that the user previously performed the first anti-noise reduction operation in the associated scene by accident. Therefore, the associated scene should not If it is identified as a scene to be controlled, the electronic device can discard the corresponding associated scene parameters.
  • the electronic device may automatically perform the second anti-noise reduction operation.
  • the second anti-noise reduction operation may reduce the output sound energy of the earphone, for example, reduce the output volume of the earphone, or pause audio playback. Because the output sound energy of the earphone itself is reduced, the output sound energy of the earphone received by the user's ear is reduced. In this case, the user's ear can hear more other sounds, including sounds in the external environment.
  • the second anti-noise reduction operation may be implemented by the electronic device collecting the ambient sound signal, and then outputting the collected ambient sound signal to the user's ear through the earphone.
  • the output sound energy of the earphone itself does not need to be reduced, but because the content played by the earphone itself contains the ambient sound, the probability of the user hearing the ambient sound is greatly improved.
  • the headset plays the ambient sound signal to the user
  • the audio that is originally playing can be paused, or the two can be played together.
  • the earphone superimposes and plays the audio originally being played together with the ambient sound signal, the volume of the original audio can be appropriately reduced.
  • the headset playback control method can automatically learn and determine the scene that requires the user to pay attention to the ambient sound based on the user's historical operations without relying on artificially setting the scene or audio, and based on the real-time scene of the headset.
  • the scene data identifies these scenes, and then automatically limits the sound energy of the headphones in these scenes, preventing users from missing important sounds in the environment and improving the user experience.
  • pre-detecting the first anti-noise reduction operation and obtaining the scene parameters corresponding to the headset when the first anti-noise reduction operation is detected, it can identify the scene where the user needs to improve the probability of the ambient sound being received and heard.
  • scenarios you need to listen to the ambient sound take these scenarios as the scenarios to be controlled, and store the scene parameters corresponding to these scenarios in the parameter library as the parameters of the scenarios to be controlled.
  • the real-time scene parameters of the scene where the headset is currently located are detected, and the real-time scene parameters are matched with the parameters of the scene to be controlled pre-stored in the parameter library, so as to determine whether the current scene is a scene that needs to improve the received ambient sound. That is, whether it is the scene to be controlled that needs to perform the second anti-noise reduction operation on the earphone.
  • the second anti-noise reduction operation is automatically performed, and the probability of the user hearing the ambient sound is increased through the second anti-noise reduction operation.
  • the scenarios where the user performs the first anti-noise reduction operation on the headphones are usually scenarios where the user needs to listen to the ambient sound. Therefore, the electronic device can automatically learn and summarize the user needs to listen to the ambient sound based on the user's manual operation combined with the real-time scene parameters of the headphones.
  • Scenarios to be controlled so as to automatically and accurately identify the to-be-controlled scenarios with sound energy limitations in the subsequent process, and automatically perform the second anti-noise reduction operation on the headphones in these to-be-controlled scenarios to prevent users from missing important sounds in the environment .
  • the induction of the scene to be controlled is based on the user's historical operations, which is in line with the user's habits, which is equivalent to "personalized scene customization" for the user, thus improving the intelligence of the playback control of the headset, making the external environment isolated by the headset in a specific scene. The voice was heard.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the user's habits will keep changing.
  • the scene parameters of a scene are stored by the electronic device as the scene parameters to be controlled, it does not mean that any real-time scene parameters matching the scene parameters to be controlled will be detected at any time in the future.
  • the influence of the second anti-noise reduction operation may be manually eliminated.
  • the second anti-noise reduction operation performed by the electronic device is an operation to limit the output sound energy of the headphones
  • the user may perform the first sound energy boosting operation. , which controls the headset to boost the sound energy it outputs to the user's ears.
  • This situation indicates that the user's habits may have changed, and the corresponding scene parameters to be controlled may have become invalid. Therefore, the electronic device needs to determine whether the user's habits have changed based on the detection, and whether the pre-stored scene parameters to be controlled need to be adjusted.
  • S402 Monitor the first sound energy boosting operation for the earphone within a second preset time period.
  • the "first sound energy boosting operation” is an operation detected by a sensor or an input unit to boost the sound energy output from the earphone to the ear, and it is an operation for the user to manually boost the sound energy output from the earphone to the ear.
  • the first sound energy boosting operation may include: putting on the earphone that was originally taken off during the earphone playing, manually increasing the output volume of the earphone, and manually controlling the start of audio playback.
  • the second preset duration may be calculated from the time when the electronic device automatically performs the second anti-noise reduction operation.
  • the second preset duration can be set by the programmer, or can be defined by the user.
  • S404 Determine whether the first sound energy boosting operation is detected within the second preset time period.
  • S406 Record the cumulative number of times the first sound energy boosting operation is performed for the target scene parameter to be controlled.
  • the "target scene parameters to be controlled” referred to here refer to the scene parameters to be controlled that are previously matched from the pre-stored scene parameters to be controlled.
  • the scene parameter c to be controlled, the real-time scene parameter of the headset obtained by the electronic device at one moment is successfully matched with the scene parameter a to be controlled, then the scene parameter a to be controlled is the target scene parameter to be controlled, and the electronic device automatically executes the second step according to the matching result. After the anti-noise reduction operation, it will determine whether the first sound energy boosting operation is detected within the second preset time period. If the judgment result is yes, the electronic device will perform the accumulation of the first sound energy boosting operation for the scene parameter a to be controlled. The number of times is incremented by "1".
  • S408 Determine whether the accumulated number of times corresponding to the target to-be-controlled scene parameter has been preset.
  • the preset number of times can be set by the programmer, or can be set by the user.
  • the size of the preset number of times reflects the difficulty of the electronic device in determining a parameter of a scene to be controlled as invalid: the higher the value of the preset number of times If the value of the preset times is larger, it is more difficult for the parameter of the scene to be controlled to be determined to be invalid.
  • the electronic device If it is determined that the number of times the user has manually boosted sound energy after the electronic device performs the second anti-noise reduction operation has exceeded the preset number of times under the parameters of the target scene to be controlled, it means that the parameters of the target scene to be controlled have become invalid, and the electronic device can Delete the target scene parameter to be controlled.
  • S412 Determine whether the real-time scene parameters of the headset match the target scene parameters to be controlled.
  • S414 Perform a second sound energy boosting operation to boost the output sound energy of the earphone.
  • the electronic device can automatically perform the sound energy boosting operation, that is, perform the second sound energy boosting operation, so as to convert the output sound energy of the earphone. For example, in some examples of this embodiment, the electronic device performs the second sound energy boosting operation.
  • the boost operation is enabled, the headphone output sound energy can be restored to the level before the second anti-noise reduction operation was performed.
  • the electronic device determines that the scene parameters corresponding to the headphones are successfully matched with the scene parameter b to be controlled, and the electronic device will reduce the volume of the headphones. For example, the output volume is reduced to k2; after the electronic device determines that the scene parameter corresponding to the headset and the scene parameter b to be controlled no longer match, the electronic device can control the headset again to play audio according to the output volume of k1.
  • the electronic device determines that the scene parameter corresponding to the headset successfully matches the scene parameter b to be controlled, it controls the audio playback to stop, then after determining that the scene parameter corresponding to the headset and the scene parameter b to be controlled no longer match, the electronic device can Control the headset to continue audio playback at the previous output volume k1.
  • the electronic device may also pre-store the user's voice feature information, and then collect the environment sound signal, and based on pre-stored sound feature information to identify whether the ambient sound signal contains the user's voice. If the user's voice is recognized, the electronic device may automatically perform the second anti-noise reduction operation.
  • the electronic device in this embodiment may be the headset itself, a terminal connected to the headset, or even other devices independent of the headset and the terminal.
  • the headset is connected to the mobile phone for communication, while the electronic device
  • the device is a wearable device that is connected to a headset and a mobile phone, respectively.
  • the functions of the aforementioned electronic devices can also be jointly implemented by two or even more physical devices.
  • part of the process of the aforementioned headset playback control method can be implemented by the headset, and another part of the process can be implemented by a terminal communicatively connected to the headset.
  • the headset may detect real-time scene parameters of the scene where the headset is currently located. Then, the collected real-time scene parameters are transmitted to the terminal. After receiving the real-time scene parameters, the terminal matches the real-time scene parameters with the pre-stored parameters of the scene to be controlled.
  • the second anti-noise operation increases the probability of users hearing ambient sounds.
  • the electronic device can monitor the validity of the pre-stored scene parameters to be controlled based on user operations, and promptly clear the parameters of the scene to be controlled that have expired, so as to avoid erroneously restricting the sound energy of the headset based on the scene parameters to be controlled, and improve the The accuracy of scene recognition to be controlled is conducive to enhancing user experience.
  • the headphone playback control apparatus 50 includes a detection unit 502, a matching unit 504 and an anti-noise reduction unit 506, wherein the detection unit 502 is configured to detect the current scene where the headphones are located the real-time scene parameters; the matching unit 504 is set to match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, and at least one to-be-controlled scene parameter in the parameter library is the first reverse scene parameter when the headset is executed The scene parameters of the scene where the headset is learned during the noise reduction operation; the anti-noise reduction unit 506 is configured to execute a second anti-noise after the real-time scene parameters are successfully matched with any to-be-controlled scene parameters in the parameter library. In the noise reduction operation, the first anti-noise reduction operation and the second anti-noise reduction operation are both used to increase the probability of ambient sound being received.
  • the headphone playback control device 50 can implement the flow of the foregoing headphone playback control method, and the details of executing the headphone playback control method may refer to the introduction of the foregoing embodiments, which will not be repeated here.
  • the headset playback control device 50 may be deployed on the headset, or may be deployed on a terminal that is communicatively connected to the headset as an audio source for the headset. Even in some other examples, the headset playback control apparatus 50 may also be deployed on a device independent of the headset and the terminal, and the device may be communicatively connected with the headset and the terminal.
  • the present embodiments provide a storage medium including volatile or non-volatile implemented in any method or technology arranged to store information, such as computer readable instructions, data structures, computer program modules or other data volatile, removable or non-removable media.
  • Storage media include but are not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable read only memory, EEPROM), flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Video Disc (DVD) or other optical disk storage, magnetic cartridge, tape, magnetic disk storage or other magnetic storage device , or any other medium that can be configured to store the desired information and that can be accessed by a computer.
  • RAM Random Access Memory
  • ROM read-only memory
  • EEPROM Electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM Compact Disc Read-Only Memory
  • DVD Digital Video
  • the storage medium may store one or more computer programs that can be read, compiled and executed by one or more processors, and in this embodiment, the storage medium may store a headphone playback control program.
  • the headphone playback control program can be used by one or more processors to execute any flow of headphone playback control described in the foregoing embodiments.
  • This embodiment also provides a computer program product, including a computer-readable device, where the computer program as shown above is stored on the computer-readable device.
  • the computer-readable device may include the computer-readable storage medium as described above.
  • the computer program product includes an electronic device.
  • this embodiment provides an electronic device, as shown in FIG. 6 : the electronic device 6 includes a processor 61 , a memory 62 , and a communication device configured to connect the processor 61 and the memory 62 The bus 63, wherein the memory 62 may be the aforementioned storage medium storing the earphone playback control program.
  • the processor 61 may read the headphone playback control program, compile and execute the process of implementing the headphone playback control method described in the foregoing embodiments.
  • This embodiment also provides an earphone and a terminal.
  • the earphone and the terminal cooperate with each other to implement the earphone playback control method provided by this embodiment:
  • the headset 70 shown in FIG. 7 includes a detection unit 71 , an audio output unit 72 , a first communication unit 73 and a controller 74 , wherein the detection unit 71 , the audio output unit 72 and the first communication unit 73 are all connected with The controller 74 is communicatively connected.
  • the earphone 70 is communicatively connected to the terminal through the first communication unit 73 .
  • the communication connection between the earphone 70 and the terminal may be a wired connection or a wireless connection.
  • the audio output unit 72 is configured to, under the control of the controller 74, output the audio data received by the first communication unit 73 from the terminal, such as the sound of playing a song or a video.
  • the detection unit 71 is configured to detect real-time scene parameters of the scene where the headset 70 is currently located under the control of the controller 74 .
  • the detection unit 71 may include at least one of a sound detection unit and a state detection unit, and in some examples, the detection unit 71 may include both a sound detection unit and a state detection unit, wherein the sound detection unit
  • the unit is configured to collect ambient sound signals of the environment where the earphone 70 is located.
  • the sound detection unit may be a microphone deployed on the earphone 70 .
  • the state detection unit may include multiple types of sensors deployed on the headset, including at least one of pressure sensors, temperature sensors, humidity sensors, infrared sensors, gravity sensors, acceleration sensors, and the like.
  • the first communication unit 73 can also transmit the real-time scene parameters collected by the detection unit 71 to the terminal, so that the terminal can match the real-time scene parameters with the pre-stored scene parameters to be controlled.
  • the terminal 80 includes a second communication unit 81 , a processor 82 , and a memory 83 , the processor 82 is communicatively connected to the second communication unit 81 and the memory 83 , and the terminal 80 is communicatively connected to the headset through the second communication unit 81 .
  • the second communication unit 81 is configured to transmit audio data to the earphone under the control of the processor 82, and realize audio playback through the earphone; in addition, the second communication unit 81 is also configured to receive the real-time scene parameter transmitted by the earphone and representing the scene where the earphone is currently located. .
  • the processor 82 is set to match the real-time scene parameters with the to-be-controlled scene parameters pre-stored in the memory 83.
  • the to-be-controlled scene parameters are the scene parameters corresponding to the earphones when the first anti-noise reduction operation was previously detected, and the first anti-noise reduction operation was passed.
  • the real-time scene parameters acquired by the processor 82 may be partly from the headset and partly from the acquisition unit of the terminal 80 itself.
  • the terminal 80 is also provided with an audio acquisition unit, such as a microphone, with multiple types of sensors.
  • the processor 82 can combine the real-time scene parameters collected by the acquisition unit on the terminal 80 and the real-time scene parameters received from the headset to obtain comprehensive scene parameters, which are obtained by combining two kinds of real-time scene parameters from different sources. More accurately determine the scene the headset is currently in.
  • the processor 82 may monitor the first anti-noise reduction operation for the headset. When the first anti-noise reduction operation is detected, the processor 82 determines the scene parameter corresponding to the first anti-noise reduction operation in time as the relevant scene parameter of the first anti-noise reduction operation, and then uses the relevant scene parameter as the scene to be controlled The parameters are stored in the memory 83 .
  • the processor 82 may also match the real-time scene parameters with the associated scene parameters. If the real-time scene parameters and the associated scene parameters are successfully matched, the processor 82 monitors the first anti-noise reduction operation for the earphone within the first preset time period; if the first anti-noise reduction operation is detected within the first preset time period, Then, the processor 82 stores the associated scene parameters in the memory 83 as the scene parameters to be controlled.
  • the memory 83 also stores the voice feature information of the user, and the processor 82 can collect the ambient sound signal through the microphone of the terminal 80 or the microphone on the earphone, and then according to the sound signal stored in the memory 83 The sound feature information identifies the user's voice in the collected ambient sound signal. After recognizing the user's voice, the processor 82 automatically performs the second anti-noise reduction operation.
  • the processor 82 when the processor 82 automatically performs the second anti-noise reduction operation, it may transmit a control instruction to the earphone through the second communication unit 81, instructing the earphone to reduce its output sound energy. For example instructing the headset to lower its output volume.
  • the processor 82 may directly control the audio to stop playing, so that the second communication unit 81 temporarily stops transmitting audio data to the earphone.
  • the processor 82 may collect the ambient sound signal through the microphone of the terminal 80 itself or the microphone on the earphone, and control the second communication unit 81 to transmit the collected ambient sound signal to the earphone, so that the earphone outputs the collected ambient sound signal. to the ambient sound signal.
  • the manual sound energy lifting operation is an operation of manually increasing the sound energy output by the earphone to the user's ear.
  • the processor 82 If the processor 82 detects the manual sound energy boosting operation within the second preset time period, it records the cumulative number of times the manual sound energy boosting operation is performed for the target scene parameter to be controlled; if the accumulated number of times corresponding to the target scene parameter to be controlled exceeds the preset number If the number of times is set, the processor 82 deletes the target scene parameter to be controlled from the memory 83 .
  • the processor 82 automatically restores the output sound energy of the earphones to the second preset time period. The level before the denoising operation.
  • the aforementioned headset 70 and the terminal 80 can cooperate with each other to implement the headset playback control method in the aforementioned embodiment.
  • the details of the headset playback control method implemented by the headset 70 and the terminal 80 please refer to the introduction of the aforementioned embodiment, which will not be repeated here.
  • the earphone playback control system 9 includes an earphone 70 and a terminal 80 communicatively connected to the earphone 70 , wherein the earphone 70 is the corresponding earphone in FIG. 7 . , the terminal 80 is the corresponding terminal in FIG. 8 .
  • FIG. 9 is only used to illustrate the connection between the earphone 70 and the terminal 80 .
  • the earphone 70 is not limited to the wired earphone shown in FIG.
  • the earphone 70 may be a wireless earphone, such as a Bluetooth earphone.
  • the headphone playback control system, headphone, terminal, electronic device, and storage medium provided in this embodiment can automatically summarize the to-be-controlled scene in which the user needs to listen to the ambient sound based on the user's manual operation combined with the real-time scene parameters of the headphone, for use in the subsequent process. Automatically and accurately identify to-be-controlled scenes with sound energy limitations, and automatically limit the sound energy of headphones in these to-be-controlled scenes to prevent users from missing important sounds in the environment.
  • the induction of the scenes to be controlled is based on the user's historical operations, which is in line with the user's habits, which is equivalent to "personalized customization of the scenes to be controlled" for the user, thereby improving the intelligence of the headset playback control and enhancing the user experience.
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by computer program codes executable by a computing device) , firmware, hardware, and their appropriate combination.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively.
  • Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
  • communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery, as is well known to those of ordinary skill in the art medium. Therefore, the present application is not limited to any particular combination of hardware and software.

Abstract

An earphone playback control method and apparatus, and an electronic device and a storage medium. The earphone playback control method comprises: detecting a real-time scene parameter of a scene where earphones are currently located (S102); matching the real-time scene parameter with scene parameters to be controlled in a parameter library (S104), wherein at least one scene parameter to be controlled in the parameter library is a scene parameter of the scene where the earphones are located learned under the condition that a first anti-noise reduction operation is performed on the earphones; and after the real-time scene parameter is successfully matched with any one of the scene parameters to be controlled in the parameter library, performing a second anti-noise reduction operation (S106).

Description

耳机播放控制方法、装置、电子设备及存储介质Headphone playback control method, device, electronic device and storage medium 技术领域technical field
本申请涉及计算机领域,例如,涉及一种耳机播放控制方法、装置、电子设备及存储介质。The present application relates to the field of computers, for example, to a headphone playback control method, apparatus, electronic device, and storage medium.
背景技术Background technique
随着计算机技术的发展,人们可以随时随地地通过笔记本电脑、平板电脑、手机甚至是穿戴式设备等终端设备进行娱乐,例如,在闲暇时光,终端用户可以通过终端设备听音乐、看视频来舒缓精神。为了获得更好的听觉感受,也为了避免影响到同一空间下的其他人们,用户会选择佩戴耳机。耳机能够有效隔绝外部环境中的噪声,从而向用户提供更优质的音频播放服务,尤其是当耳机是具有降噪功能的降噪耳机时,其可以实时降低环境噪音而让自身的音频输出达到最大,呈现最佳收听效果。With the development of computer technology, people can use terminal devices such as laptops, tablet computers, mobile phones and even wearable devices for entertainment anytime, anywhere. For example, in their spare time, end users can listen to music and watch videos through terminal devices to relax. Spirit. In order to obtain a better hearing experience and avoid affecting other people in the same space, users will choose to wear headphones. Headphones can effectively isolate the noise in the external environment, thereby providing users with better audio playback services, especially when the headphones are noise-cancelling headphones with noise reduction function, they can reduce ambient noise in real time and maximize their own audio output. , showing the best listening effect.
不过,耳机尤其是降噪耳机,不仅隔绝了环境噪声,同时也隔绝了环境中对用户而言比较重要的声音,容易使得用户错过环境中重要的声音信息,例如,用户乘坐公共交通时,降噪耳机的存在可能使得用户听不见公共交通工具的站点播报,这在一些场景下会给用户带来巨大不便。However, earphones, especially noise-cancelling earphones, not only isolate the ambient noise, but also isolate the sounds that are more important to the user in the environment, which can easily make the user miss important sound information in the environment. The existence of the noise earphone may make the user unable to hear the announcement of the public transport station, which will bring great inconvenience to the user in some scenarios.
发明内容SUMMARY OF THE INVENTION
本申请提供的耳机播放控制方法、装置、电子设备及存储介质,主要解决的技术问题是:无法获知特定场景下耳机所隔绝的外部环境声音。The headphone playback control method, device, electronic device and storage medium provided by the present application mainly solve the technical problem that the external environmental sound isolated by the headphone in a specific scene cannot be known.
本申请提供一种耳机播放控制方法,包括:The present application provides a headphone playback control method, including:
检测耳机当前所处场景的实时场景参数;将所述实时场景参数与参数库中的待控场景参数进行匹配,其中,所述参数库中的至少一个待控场景参数为在所述耳机被执行第一反降噪操作的情况下学习到的所述耳机所处场景的场景参数;在所述实时场景参数与所述参数库中一待控场景参数匹配成功后,执行第二反降噪操作。Detect the real-time scene parameters of the scene where the headset is currently located; match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, wherein at least one to-be-controlled scene parameter in the parameter library is executed in the headset The scene parameters of the scene where the headset is located, learned in the case of the first anti-noise reduction operation; after the real-time scene parameters are successfully matched with the parameters of a scene to be controlled in the parameter library, the second anti-noise reduction operation is performed .
本申请还提供一种耳机播放控制装置,包括:The present application also provides a headphone playback control device, including:
检测单元,设置为检测耳机当前所处场景的实时场景参数;匹配单元,设置为将所述实时场景参数与参数库中的待控场景参数进行匹配,其中,所述参数库中的至少一个待控场景参数为在所述耳机被执行第一反降噪操作的情况下 学习到的所述耳机所处场景的场景参数;反降噪单元,设置为在所述实时场景参数与所述参数库中一待控场景参数匹配成功后,执行第二反降噪操作。The detection unit is set to detect the real-time scene parameters of the scene where the headset is currently located; the matching unit is set to match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, wherein at least one of the to-be-controlled scene parameters in the parameter library The control scene parameter is the scene parameter of the scene where the headset is learned when the headset is executed the first anti-noise reduction operation; the anti-noise reduction unit is set to be between the real-time scene parameters and the parameter library After the parameters of the first to-be-controlled scene are successfully matched, the second anti-noise reduction operation is performed.
本申请还提供一种电子设备,电子设备包括处理器、存储器及通信总线;The present application also provides an electronic device, the electronic device includes a processor, a memory and a communication bus;
通信总线设置为实现处理器和存储器之间的连接通信;处理器设置为执行存储器中存储的一个或者多个计算机程序,以实现上述耳机播放控制方法。The communication bus is configured to realize the connection and communication between the processor and the memory; the processor is configured to execute one or more computer programs stored in the memory, so as to realize the above-mentioned headphone playback control method.
本申请还提供一种存储介质,该存储介质存储有一个或者多个计算机程序,一个或者多个计算机程序可被一个或者多个处理器执行,以实现上述耳机播放控制方法。The present application also provides a storage medium, where one or more computer programs are stored in the storage medium, and the one or more computer programs can be executed by one or more processors, so as to implement the above-mentioned headphone playback control method.
附图说明Description of drawings
图1为本申请实施例提供的一种耳机播放控制方法的流程图;FIG. 1 is a flowchart of a method for controlling playback of headphones according to an embodiment of the present application;
图2为本申请实施例提供的一种识别待控场景并存储待控场景参数的流程图;2 is a flowchart of identifying a scene to be controlled and storing parameters of the scene to be controlled provided by an embodiment of the present application;
图3为本申请实施例提供的一种对关联场景参数是否适宜作为待控场景参数进行验证的流程图;FIG. 3 is a flow chart of verifying whether an associated scene parameter is suitable as a to-be-controlled scene parameter according to an embodiment of the present application;
图4为本申请实施例提供的一种通过自动减小耳机的输出声能实现第二反降噪操作后的控制流程图;FIG. 4 is a control flow diagram after the second anti-noise reduction operation is realized by automatically reducing the output sound energy of the earphone according to an embodiment of the present application;
图5为本申请实施例提供的一种耳机播放控制装置的结构示意图;FIG. 5 is a schematic structural diagram of a headphone playback control device according to an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的硬件结构示意图;6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;
图7为本申请实施例提供的一种耳机的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of an earphone according to an embodiment of the present application;
图8为本申请实施例提供的一种终端的结构示意图;FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application;
图9为本申请实施例提供的一种耳机播放控制系统的结构示意图。FIG. 9 is a schematic structural diagram of a headphone playback control system according to an embodiment of the present application.
具体实施方式Detailed ways
下面通过具体实施方式结合附图对本申请实施例进行说明。此处所描述的具体实施例仅仅用以解释本申请。The embodiments of the present application will be described below through specific implementations in conjunction with the accompanying drawings. The specific embodiments described herein are merely used to explain the present application.
实施例一:Example 1:
为了避免用户在佩戴耳机听音的过程中错过外部环境中的重要声音,相关技术中主要的做法是:在耳机出厂前,预先设置一些声音,并将这些声音的音频数据存储在耳机的存储器中;在用户使用耳机的过程中,音频采集单元采集环境声音信号,并将采集到的环境声音信号与预设音频数据进行匹配,如果匹 配成功,则将采集到的环境声音信号通过耳机播放给用户,从而使得用户听到环境声音。不过在这种方案中,用户能否听到对其重要的环境声音,取决于耳机厂家是否能将对用户而言较为重要的声音的音频数据存储在耳机中,但对于不同用户而言,同一环境中的重要声音不同,对于一个用户而言,不同环境中的重要声音也不同,因此耳机厂家很难兼顾到每一个用户、每一种场景,所以,这种方案中耳机不可能识别出对用户而言所有的重要声音,用户还是很容易因错过环境中重要声音而遭遇尴尬处境。In order to prevent users from missing important sounds in the external environment when wearing headphones to listen to audio, the main practice in the related art is to pre-set some sounds before the headphones leave the factory, and store the audio data of these sounds in the memory of the headphones. ; During the process of the user using the headset, the audio acquisition unit collects the ambient sound signal, and matches the collected ambient sound signal with the preset audio data. If the matching is successful, the collected ambient sound signal is played to the user through the headset , so that the user can hear the ambient sound. However, in this solution, whether the user can hear the important ambient sound depends on whether the headset manufacturer can store the audio data of the sound that is more important to the user in the headset, but for different users, the same The important sounds in the environment are different, and for a user, the important sounds in different environments are also different, so it is difficult for headset manufacturers to take into account every user and every scene. For all the important sounds to the user, it is still easy for the user to encounter an embarrassing situation by missing the important sound in the environment.
对此,本实施例提供一种耳机播放控制方法,该耳机播放控制方法可以通过一个电子设备实现,也可以通过两个甚至两个以上的电子设备配合实现,请参见图1示出的该耳机播放控制方法的流程图:In this regard, this embodiment provides a headphone playback control method. The headphone playback control method can be implemented by one electronic device, or by the cooperation of two or even more than two electronic devices. Please refer to the headphone shown in FIG. 1 . Flow chart of playback control method:
S102:检测耳机当前所处场景的实时场景参数。S102: Detect real-time scene parameters of the scene where the headset is currently located.
所谓实时场景参数是指当前场景的场景参数,在本实施例中,耳机的实时场景参数能够表征耳机当前所处的场景。不同场景中环境中的声音不同,例如,当用户在办公室工作的场景中,会存在键盘敲击声音;当用户在公共交通工具上,环境中就存在站点播报声音;当用户在路边行走时,基本都会有汽车引擎响动以及鸣笛声。所以在一些示例中,可以通过检测环境声音信号来体现耳机所处的场景。The so-called real-time scene parameters refer to the scene parameters of the current scene. In this embodiment, the real-time scene parameters of the headset can represent the scene where the headset is currently located. The sound in the environment is different in different scenarios. For example, when the user is working in the office, there will be keyboard tapping sounds; when the user is on public transportation, there will be site announcement sounds in the environment; when the user is walking on the roadside , there will basically be the sound of the car engine and the whistle. Therefore, in some examples, the scene in which the headset is located can be represented by detecting ambient sound signals.
在本实施例的另外一些示例中,耳机所处的场景可以通过其状态信息来体现,例如,耳机是处于佩戴状态还是未佩戴状态,是处于运动状态还是静止状态等,如果耳机处于佩戴状态,而且同时处于运动状态,那么用户应该是佩戴着耳机在移动。在本实施例的其他一些示例中,耳机的状态信息除了包括佩戴状态信息与运动状态信息中的至少一种以外,还可以包括其他状态信息,例如温度状态信息、湿度状态信息等。而且,即便是运动状态信息,也可以根据运动速度的大小细化为多个等级。In other examples of this embodiment, the scene in which the headset is located may be reflected by its state information, for example, whether the headset is in a wearing state or not, whether it is in a motion state or a static state, etc. If the headset is in a wearing state, And at the same time in a state of motion, the user should be moving while wearing the headset. In some other examples of this embodiment, the state information of the headset may include other state information, such as temperature state information, humidity state information, and the like, in addition to at least one of wearing state information and motion state information. Furthermore, even the motion state information can be refined into multiple levels according to the size of the motion speed.
环境声音信号可以通过音频采集单元进行采集,该音频采集单元可以设置在耳机上,也可以设置在与耳机通信连接的终端上,或者该音频采集单元还可以独立于耳机与终端存在。通常情况下,音频采集单元可以位于终端或耳机上,而且,考虑到终端,尤其是移动终端,例如手机、穿戴式设备等在一些场景下采集到的环境声音信号与用户实际的环境声音信号不符,例如,当手机被用户放在衣服口袋内时,会与衣服口袋产生摩擦声,这种摩擦声会被手机的音频采集单采集到,而且因为口袋对外界声音的阻挡,会使得摩擦声成为手机音频采集单元采集到的比较主要的环境声音。但事实上,用户即便不佩戴耳机,也是听不到这种摩擦声的,所以,在该情况下,用户所处环境的环境声音与手机所处环境的环境声音存在较大差异,因此,采用手机上音频采集单元采集到的环 境声音信号不能作为用户所处环境的声音信号。但通常情况下,用户佩戴耳机时,耳机所处环境的环境声音与用户所处环境的环境声音是一致的,因此,在本实施例中,电子设备可以采用耳机上的音频采集单元来进行环境声音信号的采集。The ambient sound signal can be collected by an audio collection unit, the audio collection unit can be set on the earphone or on the terminal communicatively connected to the earphone, or the audio collection unit can exist independently of the earphone and the terminal. Usually, the audio collection unit can be located on the terminal or earphone, and considering that the ambient sound signal collected by the terminal, especially the mobile terminal, such as mobile phone, wearable device, etc. in some scenarios, does not match the actual ambient sound signal of the user For example, when the mobile phone is placed in the pocket of the user's clothes, it will produce friction sound with the clothes pocket. This friction sound will be collected by the audio collection sheet of the mobile phone, and because the pocket blocks the external sound, the friction sound will become a The main ambient sound collected by the mobile phone audio collection unit. But in fact, the user cannot hear the friction sound even if he does not wear headphones. Therefore, in this case, the ambient sound of the environment where the user is located is quite different from the ambient sound of the environment where the mobile phone is located. The ambient sound signal collected by the audio collection unit on the mobile phone cannot be used as the sound signal of the environment where the user is located. But in general, when the user wears the earphone, the ambient sound of the environment where the earphone is located is consistent with the ambient sound of the environment where the user is located. Therefore, in this embodiment, the electronic device can use the audio collection unit on the earphone to perform the environmental sound. Collection of sound signals.
耳机状态信息可以通过传感器进行采集,例如压力传感器、温度传感器、红外传感器、重力传感器(陀螺仪)等几种中的至少一种。其中设置为检测耳机佩戴状态信息的传感器设置在耳机上,在本实施例中,设置为检测耳机运动状态信息的传感器可以位于耳机上,在另一些示例中,考虑到耳机会随着用户的移动而移动,移动终端也通常是被用户随身携带的,因此,也可以采用部署在移动终端上的传感器来检测耳机的运动状态信息。还有一些示例中,耳机与终端上均部署有设置为采集耳机运动状态信息的传感器,电子设备可以通过耳机上的传感器与终端上的传感器共同采集耳机的状态信息。The earphone state information can be collected by sensors, such as at least one of a pressure sensor, a temperature sensor, an infrared sensor, a gravity sensor (gyroscope), and the like. The sensor set to detect the wearing state information of the headset is set on the headset. In this embodiment, the sensor set to detect the motion state information of the headset may be located on the headset. In other examples, considering that the headset will move with the user's movement While moving, the mobile terminal is usually carried by the user. Therefore, the sensor deployed on the mobile terminal can also be used to detect the motion state information of the earphone. In some other examples, sensors configured to collect motion state information of the headset are deployed on both the headset and the terminal, and the electronic device can collect the state information of the headset through the sensors on the headset and the sensor on the terminal jointly.
在一些示例中,耳机的实时场景参数可以仅包括环境声音信号,在另一些示例中,耳机的实时场景参数可以仅包括耳机的状态信息。不过,在本实施例中,耳机的实时场景参数可以同时包括环境声音信号与耳机的状态信息。In some examples, the real-time scene parameters of the headset may only include ambient sound signals, and in other examples, the real-time scene parameters of the headset may only include status information of the headset. However, in this embodiment, the real-time scene parameter of the earphone may include both the ambient sound signal and the state information of the earphone.
S104:将实时场景参数与参数库中的待控场景参数进行匹配。S104: Match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library.
在本实施例中,电子设备获取到耳机的实时场景参数后,可以将实时场景参数与参数库预先存储的待控场景参数进行匹配,确定实时场景参数是否与参数库中任一待控场景参数匹配。其中,待控场景是指需要提升环境声音被接收到的概率的场景,因此,待控场景参数实际上就是耳机在待控场景对应的实时场景参数。In this embodiment, after acquiring the real-time scene parameters of the headset, the electronic device can match the real-time scene parameters with the to-be-controlled scene parameters pre-stored in the parameter library to determine whether the real-time scene parameters match any to-be-controlled scene parameters in the parameter library match. Among them, the scene to be controlled refers to a scene that needs to improve the probability of the ambient sound being received. Therefore, the scene parameter to be controlled is actually the real-time scene parameter corresponding to the scene to be controlled by the headset.
参数库中可以存储一个或一个以上的待控场景参数,每一个待控场景参数对应一种待控场景。在本实施例中,至少一个待控场景是由电子设备自动识别出的,对应地,参数库中至少一个待控场景参数也是电子设备自动确定的,不需要程序人员或者用户手动设置:参数库中预存的至少一个待控场景参数是检测到耳机被执行第一反降噪操作时学习到的耳机所处场景的场景参数。“降噪操作”就是减小用户听到环境声音的概率的操作,那么,“反降噪操作”就是能够提升用户听到环境声音的概率的操作。为了提升环境声音被用户耳朵听到的概率,至少可以采用这样两种途径:第一,减小耳机输出到用户耳朵的声能的操作;第二,采集环境声音信号,并将环境声音信号通过耳机输出。在本实施例中,“第一反降噪操作”是指通过手动方式提升环境声音被接收到的概率的操作。与第一反降噪操作对应的还有第二反降噪操作,第二反降噪操作是指在无须用户手动操作情况下自动执行的反降噪操作。One or more scene parameters to be controlled can be stored in the parameter library, and each scene parameter to be controlled corresponds to a scene to be controlled. In this embodiment, at least one scene to be controlled is automatically identified by the electronic device, and correspondingly, the parameter of at least one scene to be controlled in the parameter library is also automatically determined by the electronic device, and does not require manual settings by programmers or users: parameter library The at least one scene parameter to be controlled pre-stored in is the scene parameter of the scene where the headset is learned when it is detected that the headset is subjected to the first anti-noise reduction operation. The "noise reduction operation" is an operation that reduces the probability that the user hears the ambient sound, then the "anti-noise reduction operation" is the operation that can increase the probability that the user hears the ambient sound. In order to improve the probability that the ambient sound is heard by the user's ears, at least two approaches can be adopted: first, the operation of reducing the sound energy output by the earphone to the user's ear; second, collecting the ambient sound signal and passing the ambient sound signal through the Headphone output. In this embodiment, the "first anti-noise reduction operation" refers to an operation of manually increasing the probability of ambient sound being received. Corresponding to the first anti-noise reduction operation, there is also a second anti-noise reduction operation, and the second anti-noise reduction operation refers to an anti-noise reduction operation performed automatically without a manual operation by the user.
在本实施例中,第一反降噪操作可以包括手动声能限制操作与手动控制耳 机输出环境声音信号的操作。In this embodiment, the first anti-noise reduction operation may include a manual sound energy limiting operation and an operation of manually controlling the earphone to output an ambient sound signal.
手动声能限制操作是用户操作,是用户为了减小其耳朵所接收的耳机声能的操作,例如,手动声能限制操作可以是用户手动降低耳机输出音量的操作,或者也可以是用户手动控制音频播放停止的操作,还有一些示例中,手动声能限制操作可以是用户在耳机播放期间摘下处于佩戴状态的耳机的操作。在一些示例中,手动声能限制操作可以是以上三种操作中几种的组合:例如用户在手动降低耳机的输出音量的同时摘下了原本处于佩戴状态的耳机,这也算是一种手动声能限制操作;在另一些示例中,用户手动控制音频播放停止后又立即摘下原本处于佩戴状态的耳机,这种操作也算是一种手动声能限制操作。The manual sound energy limiting operation is a user operation, which is an operation performed by the user in order to reduce the sound energy of the earphones received by his ears. For example, the manual sound energy limiting operation can be an operation that the user manually reduces the output volume of the earphone, or can also be manually controlled by the user. The operation of stopping the audio playback, and in some other examples, the manual sound energy limiting operation may be an operation of the user taking off the earphone in the wearing state during the earphone playing. In some examples, the manual sound energy limiting operation may be a combination of the above three operations: for example, when the user manually reduces the output volume of the earphone, he removes the earphone that was originally in the wearing state, which is also regarded as a manual sound. It can limit the operation; in other examples, the user manually controls the audio playback to stop and then immediately takes off the headphones that were originally in the wearing state. This operation can also be regarded as a manual sound energy limiting operation.
手动控制耳机输出环境声音信号的操作可以包括用户下发指令,指示电子设备采集环境声音信号,然后将环境声音信号通过耳机播放。例如,在本实施例的一种示例中,耳机上设置有环境声音采集控制按键,用户若想听到环境声音,则可以按下该按键,耳机接收到用户的指令后,就可以对环境声音信号进行采集,并将采集到的声音信号输出给用户。当然,在本实施例的其他一些示例中,环境声音信号也可以由与耳机通信连接的终端根据用户指令采集。The operation of manually controlling the earphone to output the ambient sound signal may include the user issuing an instruction to instruct the electronic device to collect the ambient sound signal, and then play the ambient sound signal through the earphone. For example, in an example of this embodiment, an ambient sound collection control button is set on the earphone. If the user wants to hear the ambient sound, he can press the button. After the earphone receives the user's instruction, it can detect the ambient sound. The signal is collected, and the collected sound signal is output to the user. Of course, in some other examples of this embodiment, the ambient sound signal may also be collected by the terminal communicatively connected to the earphone according to the user's instruction.
下面结合图2示出的流程对电子设备识别待控场景,存储待控场景参数的流程进行说明:The following describes the process of identifying the scene to be controlled by the electronic device and storing the parameters of the scene to be controlled in conjunction with the process shown in FIG. 2 :
S202:检测耳机当前所处场景的实时场景参数并监测针对耳机的第一反降噪操作。S202: Detect real-time scene parameters of the scene where the headset is currently located, and monitor the first anti-noise reduction operation for the headset.
在本实施例中,电子设备可以在检测到终端与耳机建立通信连接之后,实时检测耳机所处场景的场景参数,并监测针对耳机的第一反降噪操作。检测实时场景参数的过程和检测第一反降噪操作的过程均可以周期性执行,不过,这两个检测过程的检测周期可以相同,也可以不相同。In this embodiment, after detecting that the terminal has established a communication connection with the earphone, the electronic device may detect scene parameters of the scene where the earphone is located in real time, and monitor the first anti-noise reduction operation for the earphone. Both the process of detecting the real-time scene parameter and the process of detecting the first anti-noise reduction operation may be performed periodically, but the detection periods of the two detection processes may be the same or different.
S204:判断是否监测到第一反降噪操作。S204: Determine whether the first anti-noise reduction operation is monitored.
若检测结果为是,则执行S206,若检测结果为否,则继续执行S202。If the detection result is yes, execute S206, and if the detection result is negative, continue to execute S202.
S206:确定与第一反降噪操作在时间上对应的场景参数作为第一反降噪操作的关联场景参数。S206: Determine a scene parameter corresponding to the first anti-noise reduction operation in time as the associated scene parameter of the first anti-noise reduction operation.
如果检测到了第一反降噪操作,则电子设备需要确定与该第一反降噪操作对应的实时场景参数,而且,通常情况下,用户是因为环境中已经出现了对其而言较为重要的声音才会执行第一反降噪操作,因此,电子设备确定与检测到的第一反降噪操作对应的实时场景参数,实际上是在回溯第一反降噪操作发生前、发生时耳机的场景参数。所以,在检测到第一反降噪操作后,电子设备可以将在时间上与该第一反降噪操作对应的场景参数与该第一反降噪操作关联, 作为该第一反降噪操作的关联场景参数。If the first anti-noise reduction operation is detected, the electronic device needs to determine the real-time scene parameters corresponding to the first anti-noise reduction operation, and, usually, the user is because the environment has appeared more important to him. Only sound will perform the first anti-noise reduction operation. Therefore, when the electronic device determines the real-time scene parameters corresponding to the detected first anti-noise reduction operation, it is actually backtracking to the earphone before and when the first anti-noise reduction operation occurs. scene parameters. Therefore, after detecting the first anti-noise reduction operation, the electronic device can associate the scene parameter corresponding to the first anti-noise reduction operation in time with the first anti-noise reduction operation as the first anti-noise reduction operation the associated scene parameters.
S208:将关联场景参数作为待控场景参数存储至参数库。S208: Store the associated scene parameters in the parameter library as the scene parameters to be controlled.
确定出第一反降噪操作的关联场景参数后,电子设备可以直接将该关联场景参数作为待控场景参数进行存储,因为用户最近在关联场景参数所对应的场景中,具有限制耳机声能的需求,因此,用户未来在相应的场景中也极有可能具有限制耳机声能的需求,所以,可以将关联场景参数所对应的场景作为待控场景,在此基础上,关联场景参数也就是待控场景参数。After determining the relevant scene parameters of the first anti-noise reduction operation, the electronic device can directly store the relevant scene parameters as the to-be-controlled scene parameters, because the user has recently been in the scene corresponding to the relevant scene parameters, and has the ability to limit the sound energy of the headphones. Therefore, the user is very likely to have the need to limit the sound energy of headphones in the corresponding scene in the future. Therefore, the scene corresponding to the associated scene parameter can be used as the scene to be controlled. On this basis, the associated scene parameter is the Control scene parameters.
考虑到用户一些第一反降噪操作是偶发性的,不具备产生规律,例如,在一时刻,有陌生人拦住了在人行道上行走的用户问路,为了听见对方的问题,也出于礼貌,用户摘下了耳机。在这种情况下,电子设备可以检测到第一反降噪操作,同时也能基于实时场景参数的检测确定出该第一反降噪操所对应的关联场景参数。但事实上,该关联场景参数并不适宜作为待控场景参数,因为用户并不会每次在通常场景下都被拦下问路,所以,如果电子设备将该关联场景参数作为待控场景参数进行存储之后,就会导致在后续一些场景中原本不存在对用户而言重要的环境声音,但是因为耳机的实时场景参数与存储的待控场景参数匹配,所以对应的场景也会被识别为待控场景。为了避免这种问题的发生,本实施例提供一种学习耳机所处场景的场景参数,得到待控场景参数的流程,如图3所示:Considering that some of the user's first anti-noise reduction operations are occasional and have no regularity, for example, at a moment, a stranger stopped the user walking on the sidewalk to ask for directions, in order to hear the other party's question, also out of courtesy , the user takes off the headset. In this case, the electronic device can detect the first anti-noise reduction operation, and can also determine the associated scene parameter corresponding to the first anti-noise reduction operation based on the detection of the real-time scene parameter. But in fact, the associated scene parameter is not suitable as the scene parameter to be controlled, because the user will not be stopped to ask for directions every time in the usual scene, so if the electronic device regards the associated scene parameter as the scene parameter to be controlled After storage, there will be no ambient sound that is important to the user in subsequent scenes. However, because the real-time scene parameters of the headset match the stored parameters of the scene to be controlled, the corresponding scene will also be identified as the scene to be controlled. control the scene. In order to avoid the occurrence of this problem, this embodiment provides a process of learning the scene parameters of the scene where the headset is located, and obtaining the scene parameters to be controlled, as shown in Figure 3:
S302:在检测到第一反降噪操作时,确定与第一反降噪操作在时间上对应的场景参数作为第一反降噪操作的关联场景参数。S302: When the first anti-noise reduction operation is detected, determine a scene parameter corresponding to the first anti-noise reduction operation in time as the associated scene parameter of the first anti-noise reduction operation.
在学习耳机所处场景的场景参数作为待控场景参数的过程中,如果检测到第一反降噪操作,则电子设备确定与该第一反降噪操作对应的实时场景参数,确定出的实时场景参数就是与第一反降噪操作对应的关联场景参数。In the process of learning the scene parameters of the scene where the headset is located as the scene parameters to be controlled, if the first anti-noise reduction operation is detected, the electronic device determines the real-time scene parameters corresponding to the first anti-noise reduction operation, and the determined real-time scene parameter The scene parameter is the associated scene parameter corresponding to the first anti-noise reduction operation.
S304:继续检测耳机所处场景的实时场景参数,并将检测到的实时场景参数与关联场景参数进行匹配。S304: Continue to detect real-time scene parameters of the scene where the headset is located, and match the detected real-time scene parameters with associated scene parameters.
由于用户在关联场景参数所对应的场景中执行第一反降噪操作是偶发性的,为了避免将这种偶发性第一反降噪操作对应的场景参数作为待控场景参数,本实施例中电子设备获取到关联场景参数后会继续检测耳机所处场景的实时场景参数,从而对关联场景参数进行验证。电子设备对关联场景参数进行验证实际上就是确定当再次出现关联场景参数对应的场景时,用户是否会再次执行第一反降噪操作。如果用户再次执行了第一反降噪操作,则说明用户在该场景下的第一反降噪操作并不是偶然性质的,用户在该场景下确实很大概率有降低耳机声能的需求,因此,可以将对应的关联场景参数作为待控场景参数。反之, 如果用户没有再次执行第一反降噪操作,则说明用户之前的第一反降噪操作是偶然性质的,那么对应的关联场景参数自然也就不应该被作为待控场景参数进行存储。Since the first anti-noise reduction operation performed by the user in the scene corresponding to the associated scene parameter is occasional, in order to avoid using the scene parameter corresponding to the occasional first anti-noise reduction operation as the scene parameter to be controlled, in this embodiment After the electronic device obtains the associated scene parameters, it will continue to detect the real-time scene parameters of the scene where the headset is located, so as to verify the associated scene parameters. The verification of the associated scene parameter by the electronic device is actually to determine whether the user will perform the first anti-noise reduction operation again when the scene corresponding to the associated scene parameter appears again. If the user performs the first anti-noise reduction operation again, it means that the user's first anti-noise reduction operation in this scenario is not accidental, and the user does have a high probability of reducing the sound energy of the earphones in this scenario. Therefore, , the corresponding associated scene parameters can be used as the scene parameters to be controlled. Conversely, if the user does not perform the first anti-noise reduction operation again, it means that the user's previous first anti-noise reduction operation is accidental, and the corresponding associated scene parameters should not be stored as the scene parameters to be controlled.
所以,电子设备会在确定关联场景参数后,获取耳机的实时场景参数,并将实时场景参数与关联场景参数进行匹配,也确定关联场景参数对应的场景是否再现。可选地,因为电子设备在检测到第一反降噪操作,并确定该第一反降噪操作对应的关联场景参数后,不确定何时会再次检测到关联场景参数,因此,电子设备在确定出一个关联场景参数后,可以先将该关联场景参数进行存储,不过该关联场景参数需要与电子设备中的待控场景参数进行分别存储。Therefore, after determining the associated scene parameters, the electronic device obtains the real-time scene parameters of the headset, matches the real-time scene parameters with the associated scene parameters, and also determines whether the scene corresponding to the associated scene parameters is reproduced. Optionally, after the electronic device detects the first anti-noise reduction operation and determines the associated scene parameter corresponding to the first anti-noise reduction operation, it is uncertain when the associated scene parameter will be detected again. After an associated scene parameter is determined, the associated scene parameter may be stored first, but the associated scene parameter needs to be stored separately from the to-be-controlled scene parameter in the electronic device.
S306:当实时场景参数与关联场景参数匹配成功时,在第一预设时长内监测针对耳机的第一反降噪操作。S306: When the real-time scene parameter and the associated scene parameter are successfully matched, monitor the first anti-noise reduction operation for the earphone within the first preset time period.
如果电子设备后续检测到的实时场景参数与关联场景参数匹配成功,则电子设备在第一预设时长内监测针对耳机的第一反降噪操作。电子设备监测针对耳机的第一反降噪操作,实际上就是监测用户在再现的关联场景中是否会再次手动的减小耳机输出到其耳朵的声能或者手动控制耳机输出环境声音信号。第一预设时长可以从电子设备确定实时场景参数与关联场景参数匹配成功起计算。第一预设时长可以由程序人员设置,也可以由用户自定义。If the real-time scene parameter detected by the electronic device subsequently matches the associated scene parameter successfully, the electronic device monitors the first anti-noise reduction operation for the earphone within the first preset time period. The electronic device monitors the first anti-noise reduction operation for the earphone, in fact, it monitors whether the user will manually reduce the sound energy output by the earphone to the ear again or manually control the earphone to output the ambient sound signal in the reproduced associated scene. The first preset duration may be calculated after the electronic device determines that the real-time scene parameter and the associated scene parameter are successfully matched. The first preset duration can be set by the programmer, or can be defined by the user.
S308:在第一预设时长内检测到第一反降噪操作后,将关联场景参数作为待控场景参数存储至参数库。S308: After the first anti-noise reduction operation is detected within the first preset time period, store the associated scene parameters in the parameter library as the scene parameters to be controlled.
如果电子设备在第一预设时长内检测到用户的第一反降噪操作,则说明用户在同样的关联场景下执行第一反降噪操作并不是偶然性质的,因此,该关联场景应该被识别为待控场景,关联场景对应的关联场景参数应该被作为待控场景参数。所以,在这种情况下,电子设备会将关联场景参数作为待控场景参数进行存储。用户首次在关联场景下执行的第一反降噪操作,与其在再现的关联场景下执行的第一反降噪操作可以不同的,例如,用户首次在关联场景下通过摘下处于佩戴状态的耳机实现了第一反降噪操作,但在再现的关联场景中,用户可以通过控制音频播放停止来完成第一反降噪操作。If the electronic device detects the user's first anti-noise reduction operation within the first preset time period, it means that the user performs the first anti-noise reduction operation in the same associated scene is not accidental. Therefore, the associated scene should be If the scene is identified as the scene to be controlled, the associated scene parameter corresponding to the associated scene should be used as the scene parameter to be controlled. Therefore, in this case, the electronic device will store the associated scene parameters as the scene parameters to be controlled. The first anti-noise reduction operation performed by the user in the associated scene for the first time may be different from the first anti-noise reduction operation performed in the reproduced associated scene. For example, the user takes off the wearing headphones in the associated scene for the first time The first anti-noise reduction operation is implemented, but in the associated scene of reproduction, the user can complete the first anti-noise reduction operation by controlling the audio playback to stop.
如果电子设备没能在第一预设时长内检测到用户的第一反降噪操作,则说明用户之前在关联场景下执行第一反降噪操作是偶然性质的,因此,该关联场景不应该被识别为待控场景,电子设备可以丢弃对应的关联场景参数。If the electronic device fails to detect the user's first anti-noise reduction operation within the first preset time period, it means that the user previously performed the first anti-noise reduction operation in the associated scene by accident. Therefore, the associated scene should not If it is identified as a scene to be controlled, the electronic device can discard the corresponding associated scene parameters.
S106:在实时场景参数与参数库中任一待控场景参数匹配成功后,执行第二反降噪操作。S106: After the real-time scene parameters are successfully matched with any to-be-controlled scene parameters in the parameter library, perform a second anti-noise reduction operation.
如果电子设备获取到的实时场景参数与预存的一待控场景参数匹配成功, 则说明对应的待控场景再现了,外界环境中存在对用户而言比较重要的声音,为了避免用户错过该声音,电子设备可以自动执行第二反降噪操作。If the real-time scene parameters obtained by the electronic device are successfully matched with the pre-stored parameters of a to-be-controlled scene, it means that the corresponding to-be-controlled scene is reproduced, and there is a sound that is important to the user in the external environment. In order to prevent the user from missing the sound, The electronic device may automatically perform the second anti-noise reduction operation.
在本实施例的一些示例中,第二反降噪操作可是减小耳机的输出声能,例如降低耳机的输出音量,或者是暂停音频播放。因为耳机自身输出声能的降低,使得用户耳朵接收的耳机输出声能降低,在这种情况下,用户耳朵就能听到更多其他声音,这就包括外界环境中的声音。In some examples of this embodiment, the second anti-noise reduction operation may reduce the output sound energy of the earphone, for example, reduce the output volume of the earphone, or pause audio playback. Because the output sound energy of the earphone itself is reduced, the output sound energy of the earphone received by the user's ear is reduced. In this case, the user's ear can hear more other sounds, including sounds in the external environment.
在本实施例的另一些示例中,第二反降噪操作可以由电子设备采集环境声音信号,然后通过耳机向用户耳朵输出采集到的环境声音信号实现。在这种情况下,耳机本身的输出声能可以不用降低,但因为耳机本身播放的内容就包含环境声音,因此,用户听见环境声音的概率大大提升。在本实施例的一些示例中,耳机在向用户播放环境声音信号时,可以暂停原本在播放的音频,或者也可以将二者一起播放。在一种示例中,耳机将原本在播放的音频与环境声音信号一起叠加播放时,可以适当降低原本音频的音量。In other examples of this embodiment, the second anti-noise reduction operation may be implemented by the electronic device collecting the ambient sound signal, and then outputting the collected ambient sound signal to the user's ear through the earphone. In this case, the output sound energy of the earphone itself does not need to be reduced, but because the content played by the earphone itself contains the ambient sound, the probability of the user hearing the ambient sound is greatly improved. In some examples of this embodiment, when the headset plays the ambient sound signal to the user, the audio that is originally playing can be paused, or the two can be played together. In an example, when the earphone superimposes and plays the audio originally being played together with the ambient sound signal, the volume of the original audio can be appropriately reduced.
本申请实施例提供的耳机播放控制方法,可以在不依赖人为设置场景或音频的情况下,基于用户历史操作自动学习并确定出需要用户关注环境声音的场景,并基于耳机的所处场景的实时场景数据识别出这些场景,然后在这些场景下自动对耳机进行声能限制,避免用户错过环境中对其重要的声音,提升了用户体验。通过预先检测第一反降噪操作,并获取检测到第一反降噪操作时耳机对应的场景参数,从而识别出用户需要提升环境声音被接收到、被听到概率的场景,确定出用户在哪些场景下需要听取环境声音,并将这些场景作为待控场景,将这些场景对应的场景参数作为待控场景参数存储在参数库中。在后续过程中,检测耳机当前所处场景的实时场景参数,并将实时场景参数与参数库中预存的待控场景参数进行匹配,从而确定当前场景是否是需要提升环境声音被接收到的场景,即是否是需要对耳机执行第二反降噪操作的待控场景。如果实时场景参数与参数库中一待控场景参数匹配成功,则自动执行第二反降噪操作,通过该第二反降噪操作来提升用户听到环境声音的概率。用户针对耳机进行第一反降噪操作的场景通常都是用户需要听取环境声音的场景,所以,电子设备基于用户手动的操作结合耳机的实时场景参数可以自动学习并归纳出用户需要听取环境声音的待控场景,以供后续过程中自动准确识别出存在声能限制的待控场景,并自动在这些待控场景下对耳机执行第二反降噪操作,避免用户错过环境中对其重要的声音。待控场景的归纳基于用户的历史操作,符合用户习惯,相当于是针对用户的“个性化待控场景定制”,从而提升了耳机播放控制的智能化程度,使得特定场景下耳机所隔绝的外部环境声音被获知。The headset playback control method provided by the embodiment of the present application can automatically learn and determine the scene that requires the user to pay attention to the ambient sound based on the user's historical operations without relying on artificially setting the scene or audio, and based on the real-time scene of the headset. The scene data identifies these scenes, and then automatically limits the sound energy of the headphones in these scenes, preventing users from missing important sounds in the environment and improving the user experience. By pre-detecting the first anti-noise reduction operation, and obtaining the scene parameters corresponding to the headset when the first anti-noise reduction operation is detected, it can identify the scene where the user needs to improve the probability of the ambient sound being received and heard. In which scenarios you need to listen to the ambient sound, take these scenarios as the scenarios to be controlled, and store the scene parameters corresponding to these scenarios in the parameter library as the parameters of the scenarios to be controlled. In the subsequent process, the real-time scene parameters of the scene where the headset is currently located are detected, and the real-time scene parameters are matched with the parameters of the scene to be controlled pre-stored in the parameter library, so as to determine whether the current scene is a scene that needs to improve the received ambient sound. That is, whether it is the scene to be controlled that needs to perform the second anti-noise reduction operation on the earphone. If the real-time scene parameters are successfully matched with the parameters of a to-be-controlled scene in the parameter library, the second anti-noise reduction operation is automatically performed, and the probability of the user hearing the ambient sound is increased through the second anti-noise reduction operation. The scenarios where the user performs the first anti-noise reduction operation on the headphones are usually scenarios where the user needs to listen to the ambient sound. Therefore, the electronic device can automatically learn and summarize the user needs to listen to the ambient sound based on the user's manual operation combined with the real-time scene parameters of the headphones. Scenarios to be controlled, so as to automatically and accurately identify the to-be-controlled scenarios with sound energy limitations in the subsequent process, and automatically perform the second anti-noise reduction operation on the headphones in these to-be-controlled scenarios to prevent users from missing important sounds in the environment . The induction of the scene to be controlled is based on the user's historical operations, which is in line with the user's habits, which is equivalent to "personalized scene customization" for the user, thus improving the intelligence of the playback control of the headset, making the external environment isolated by the headset in a specific scene. The voice was heard.
实施例二:Embodiment 2:
用户的习惯是会不停变化的,当一个场景的场景参数被电子设备作为待控场景参数存储以后,并不意味着在今后任何时刻只要检测到与该待控场景参数匹配的实时场景参数都代表着环境中一定有用户关注的重要声音。例如在t1-t2时段内,一场景中存在用户关注的声音,因此只要电子设备识别到表征该场景重现的场景参数,就可以确定环境中存在用户关注的声音;但在t2时段以后,用户对该场景中的声音就不关注了,那么电子设备在该场景中自动执行的第二反降噪操作就不是用户所期望的了,用户在电子设备针对耳机进行自动第二反降噪操作后,可能会手动消除该第二反降噪操作带来的影响,例如,如果电子设备执行的第二反降噪操作是限制耳机输出声能的操作,则用户可能会执行第一声能提升操作,控制耳机提升其输出到用户耳朵的声能。这种情况说明用户的习惯可能已经发生了变化,对应的待控场景参数可能已经失效。因此,电子设备需要基于检测判断用户习惯是否发生了变化,是否需要对预存的待控场景参数进行调整。The user's habits will keep changing. When the scene parameters of a scene are stored by the electronic device as the scene parameters to be controlled, it does not mean that any real-time scene parameters matching the scene parameters to be controlled will be detected at any time in the future. Represents an important voice in the environment that must have user attention. For example, during the period of t1-t2, there is a sound of the user's attention in a scene, so as long as the electronic device recognizes the scene parameters that characterize the scene reproduction, it can be determined that the sound of the user's attention exists in the environment; but after the period of t2, the user If you don't pay attention to the sound in this scene, then the second anti-noise reduction operation automatically performed by the electronic device in this scene is not what the user expects. , the influence of the second anti-noise reduction operation may be manually eliminated. For example, if the second anti-noise reduction operation performed by the electronic device is an operation to limit the output sound energy of the headphones, the user may perform the first sound energy boosting operation. , which controls the headset to boost the sound energy it outputs to the user's ears. This situation indicates that the user's habits may have changed, and the corresponding scene parameters to be controlled may have become invalid. Therefore, the electronic device needs to determine whether the user's habits have changed based on the detection, and whether the pre-stored scene parameters to be controlled need to be adjusted.
下面结合图4示出的流程来对电子设备通过减小耳机的输出声能实现第二反降噪操作后的控制流程进行说明:The following describes the control process after the electronic device realizes the second anti-noise reduction operation by reducing the output sound energy of the earphone in conjunction with the process shown in FIG. 4 :
S402:在第二预设时长内监测针对耳机的第一声能提升操作。S402: Monitor the first sound energy boosting operation for the earphone within a second preset time period.
“第一声能提升操作”是通过传感器或者输入单元检测到的提升耳机输出到其耳朵的声能的操作,是用户通过手动方式提升耳机输出到其耳朵的声能的操作,基于对手动声能限制操作的介绍可知,第一声能提升操作可以包括:在耳机播放期间戴上原本被摘下的耳机、手动提升耳机的输出音量、手动控制音频播放开始。The "first sound energy boosting operation" is an operation detected by a sensor or an input unit to boost the sound energy output from the earphone to the ear, and it is an operation for the user to manually boost the sound energy output from the earphone to the ear. As can be seen from the introduction of the ability to limit the operation, the first sound energy boosting operation may include: putting on the earphone that was originally taken off during the earphone playing, manually increasing the output volume of the earphone, and manually controlling the start of audio playback.
这里第二预设时长可以从电子设备自动执行第二反降噪操作起计算。第二预设时长可以由程序人员设置,也可以由用户自定义。Here, the second preset duration may be calculated from the time when the electronic device automatically performs the second anti-noise reduction operation. The second preset duration can be set by the programmer, or can be defined by the user.
S404:判断是否在第二预设时长内检测到第一声能提升操作。S404: Determine whether the first sound energy boosting operation is detected within the second preset time period.
若判断结果为是,则执行S406,若判断结果为否,则执行S412。If the judgment result is yes, execute S406, and if the judgment result is no, execute S412.
S406:记录针对目标待控场景参数执行第一声能提升操作的累计次数。S406: Record the cumulative number of times the first sound energy boosting operation is performed for the target scene parameter to be controlled.
这里所说的“目标待控场景参数”是指之前从预存的待控场景参数中匹配出的待控场景参数,例如,假定电子设备预先存储了待控场景参数a、待控场景参数b以及待控场景参数c,电子设备在一时刻获取到的耳机的实时场景参数与待控场景参数a匹配成功,那么待控场景参数a就是目标待控场景参数,电子设备根据匹配结果自动执行第二反降噪操作后,会判断是否在第二预设时长内检测到第一声能提升操作,若判断结果为是,则电子设备将针对待控场景参数a 执行第一声能提升操作的累计次数增加“1”。The "target scene parameters to be controlled" referred to here refer to the scene parameters to be controlled that are previously matched from the pre-stored scene parameters to be controlled. The scene parameter c to be controlled, the real-time scene parameter of the headset obtained by the electronic device at one moment is successfully matched with the scene parameter a to be controlled, then the scene parameter a to be controlled is the target scene parameter to be controlled, and the electronic device automatically executes the second step according to the matching result. After the anti-noise reduction operation, it will determine whether the first sound energy boosting operation is detected within the second preset time period. If the judgment result is yes, the electronic device will perform the accumulation of the first sound energy boosting operation for the scene parameter a to be controlled. The number of times is incremented by "1".
S408:判断目标待控场景参数对应的累计次数是否已预设次数。S408: Determine whether the accumulated number of times corresponding to the target to-be-controlled scene parameter has been preset.
若判断结果为是,则执行S410,若判断结果为否,则执行S412。If the judgment result is yes, execute S410, and if the judgment result is no, execute S412.
本实施例中,预设次数可以由程序人员设置,也可以由用户自定义设置,预设次数的大小体现了电子设备将一个待控场景参数确定为失效的难度大小:预设次数的值越大,则待控场景参数越难被确定为失效,反之,预设次数的值越小,则待控场景参数越容易被确定为失效。In this embodiment, the preset number of times can be set by the programmer, or can be set by the user. The size of the preset number of times reflects the difficulty of the electronic device in determining a parameter of a scene to be controlled as invalid: the higher the value of the preset number of times If the value of the preset times is larger, it is more difficult for the parameter of the scene to be controlled to be determined to be invalid.
S410:将目标待控场景参数删除。S410: Delete the target scene parameter to be controlled.
如果经过判断确定在目标待控场景参数下,用户在电子设备执行第二反降噪操作后手动进行声能提升的次数已经超过预设次数,则说明目标待控场景参数已经失效,电子设备可以将该目标待控场景参数删除。If it is determined that the number of times the user has manually boosted sound energy after the electronic device performs the second anti-noise reduction operation has exceeded the preset number of times under the parameters of the target scene to be controlled, it means that the parameters of the target scene to be controlled have become invalid, and the electronic device can Delete the target scene parameter to be controlled.
S412:判断耳机的实时场景参数与目标待控场景参数是否匹配。S412: Determine whether the real-time scene parameters of the headset match the target scene parameters to be controlled.
若判断结果为是,则继续执行S412,若判断结果为否,则执行S414。If the judgment result is yes, continue to execute S412, and if the judgment result is no, execute S414.
S414:执行第二声能提升操作,以提升耳机的输出声能。S414: Perform a second sound energy boosting operation to boost the output sound energy of the earphone.
由于耳机的实时场景参数与目标待控场景参数不匹配,则说明耳机所处场景发生了变化,其不再处于目标待控场景参数对应的待控场景中,因此,环境中可能已经不存在用户关注的声音了,因此,电子设备可以自动执行声能提升操作,即执行第二声能提升操作,从而将耳机的输出声能,例如在本实施例的一些示例中,电子设备执行第二声能提升操作时,可以将耳机输出声能恢复到执行第二反降噪操作之前的水平。Since the real-time scene parameters of the headset do not match the parameters of the target scene to be controlled, it means that the scene where the headset is located has changed, and it is no longer in the scene to be controlled corresponding to the parameters of the target scene to be controlled. Therefore, the user may no longer exist in the environment. Therefore, the electronic device can automatically perform the sound energy boosting operation, that is, perform the second sound energy boosting operation, so as to convert the output sound energy of the earphone. For example, in some examples of this embodiment, the electronic device performs the second sound energy boosting operation. When the boost operation is enabled, the headphone output sound energy can be restored to the level before the second anti-noise reduction operation was performed.
例如,假定在t1时刻,用户佩戴着耳机,耳机原本的输出音量为k1,在此情形下,电子设备确定耳机对应的场景参数与待控场景参数b匹配成功,则电子设备将会降低耳机的输出音量,例如降低为k2;则在电子设备确定耳机对应的场景参数与待控场景参数b不再匹配后,电子设备可以再次控制耳机按照k1的输出音量进行音频播放。又例如,假定电子设备确定耳机对应的场景参数与待控场景参数b匹配成功后,其控制音频播放停止,则在确定耳机对应的场景参数与待控场景参数b不再匹配后,电子设备可以控制耳机按照之前的输出音量k1继续音频播放。For example, it is assumed that at time t1, the user is wearing headphones, and the original output volume of the headphones is k1. In this case, the electronic device determines that the scene parameters corresponding to the headphones are successfully matched with the scene parameter b to be controlled, and the electronic device will reduce the volume of the headphones. For example, the output volume is reduced to k2; after the electronic device determines that the scene parameter corresponding to the headset and the scene parameter b to be controlled no longer match, the electronic device can control the headset again to play audio according to the output volume of k1. For another example, if the electronic device determines that the scene parameter corresponding to the headset successfully matches the scene parameter b to be controlled, it controls the audio playback to stop, then after determining that the scene parameter corresponding to the headset and the scene parameter b to be controlled no longer match, the electronic device can Control the headset to continue audio playback at the previous output volume k1.
如果电子设备检测到用户讲话,则外界环境中极有可能存在着用户关注的重要声音,因此,在本实施例的一些示例中,电子设备还可以预先存储用户的声音特征信息,然后通过采集环境声音信号,并基于预先存储的声音特征信息来识别环境声音信号中是否包含用户声音。若识别到用户声音,则电子设备可 以自动执行第二反降噪操作。If the electronic device detects that the user is speaking, it is very likely that there are important sounds that the user is concerned about in the external environment. Therefore, in some examples of this embodiment, the electronic device may also pre-store the user's voice feature information, and then collect the environment sound signal, and based on pre-stored sound feature information to identify whether the ambient sound signal contains the user's voice. If the user's voice is recognized, the electronic device may automatically perform the second anti-noise reduction operation.
本实施例中的电子设备可以是耳机本身,也可以是与耳机连接的终端,甚至还可以是独立于耳机与终端的其他设备,例如,在一种示例中,耳机与手机通信连接,而电子设备则是分别与耳机以及手机连接的穿戴式设备。前述电子设备的功能也可以由两个甚至多个实体设备共同实现,例如,前述耳机播放控制方法的一部分流程可以由耳机实现,另一部分流程则可以由同耳机通信连接的终端实现。如,在本实施例的一些示例中,耳机可以检测耳机当前所处场景的实时场景参数。然后将采集到的实时场景参数传输给终端,终端接收到实时场景参数后,将实时场景参数与预存的待控场景参数进行匹配,若实时场景参数与一待控场景参数匹配成功,则执行第二反降噪操作,提升用户听到环境声音的概率。The electronic device in this embodiment may be the headset itself, a terminal connected to the headset, or even other devices independent of the headset and the terminal. For example, in one example, the headset is connected to the mobile phone for communication, while the electronic device The device is a wearable device that is connected to a headset and a mobile phone, respectively. The functions of the aforementioned electronic devices can also be jointly implemented by two or even more physical devices. For example, part of the process of the aforementioned headset playback control method can be implemented by the headset, and another part of the process can be implemented by a terminal communicatively connected to the headset. For example, in some examples of this embodiment, the headset may detect real-time scene parameters of the scene where the headset is currently located. Then, the collected real-time scene parameters are transmitted to the terminal. After receiving the real-time scene parameters, the terminal matches the real-time scene parameters with the pre-stored parameters of the scene to be controlled. The second anti-noise operation increases the probability of users hearing ambient sounds.
本实施例中,电子设备可以基于用户操作监测预存待控场景参数的有效性,并及时清除已经失效的待控场景参数,避免基于这些待控场景参数对耳机进行错误地声能限制,提升了待控场景识别的准确性,有利于增强用户体验。In this embodiment, the electronic device can monitor the validity of the pre-stored scene parameters to be controlled based on user operations, and promptly clear the parameters of the scene to be controlled that have expired, so as to avoid erroneously restricting the sound energy of the headset based on the scene parameters to be controlled, and improve the The accuracy of scene recognition to be controlled is conducive to enhancing user experience.
实施例三:Embodiment three:
本实施例首先提供一种耳机播放控制装置,请参见图5:耳机播放控制装置50包括检测单元502、匹配单元504以及反降噪单元506,其中,检测单元502设置为检测耳机当前所处场景的实时场景参数;匹配单元504设置为将所述实时场景参数与参数库中的待控场景参数进行匹配,所述参数库中的至少一个待控场景参数为在所述耳机被执行第一反降噪操作时学习到的所述耳机所处场景的场景参数;反降噪单元506设置为在所述实时场景参数与所述参数库中任一待控场景参数匹配成功后,执行第二反降噪操作,所述第一反降噪操作与所述第二反降噪操作均用于提升环境声音被接收到的概率。This embodiment first provides a headphone playback control apparatus, please refer to FIG. 5 : the headphone playback control apparatus 50 includes a detection unit 502, a matching unit 504 and an anti-noise reduction unit 506, wherein the detection unit 502 is configured to detect the current scene where the headphones are located the real-time scene parameters; the matching unit 504 is set to match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, and at least one to-be-controlled scene parameter in the parameter library is the first reverse scene parameter when the headset is executed The scene parameters of the scene where the headset is learned during the noise reduction operation; the anti-noise reduction unit 506 is configured to execute a second anti-noise after the real-time scene parameters are successfully matched with any to-be-controlled scene parameters in the parameter library. In the noise reduction operation, the first anti-noise reduction operation and the second anti-noise reduction operation are both used to increase the probability of ambient sound being received.
耳机播放控制装置50可以实现前述耳机播放控制方法的流程,其执行耳机播放控制方法的细节请参见前述实施例的介绍,这里不再赘述。耳机播放控制装置50可以部署在耳机上,也可以部署在与耳机通信连接,作为耳机音频源的终端上。甚至在其他一些示例中,耳机播放控制装置50还可以部署在独立于耳机与终端以外的设备上,该设备可以与耳机及终端通信连接。The headphone playback control device 50 can implement the flow of the foregoing headphone playback control method, and the details of executing the headphone playback control method may refer to the introduction of the foregoing embodiments, which will not be repeated here. The headset playback control device 50 may be deployed on the headset, or may be deployed on a terminal that is communicatively connected to the headset as an audio source for the headset. Even in some other examples, the headset playback control apparatus 50 may also be deployed on a device independent of the headset and the terminal, and the device may be communicatively connected with the headset and the terminal.
本实施例提供了一种存储介质,该存储介质包括在设置为存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。存储介质包括但不限于随机存取存储器(Random Access Memory,RAM),只读存储器(Read-Only  Memory,ROM),带电可擦可编程只读存储器(Electrically Erasable Programmable read only memory,EEPROM)、闪存或其他存储器技术、光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM),数字多功能盘(Digital Video Disc,DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以设置为存储期望的信息并且可以被计算机访问的任何其他的介质。The present embodiments provide a storage medium including volatile or non-volatile implemented in any method or technology arranged to store information, such as computer readable instructions, data structures, computer program modules or other data volatile, removable or non-removable media. Storage media include but are not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable read only memory, EEPROM), flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Video Disc (DVD) or other optical disk storage, magnetic cartridge, tape, magnetic disk storage or other magnetic storage device , or any other medium that can be configured to store the desired information and that can be accessed by a computer.
该存储介质中可以存储有一个或多个可供一个或多个处理器读取、编译并执行的计算机程序,在本实施例中,该存储介质可以存储有耳机播放控制程序。其中,耳机播放控制程序可供一个或多个处理器执行实现前述实施例介绍的任意一种耳机播放控制的流程。The storage medium may store one or more computer programs that can be read, compiled and executed by one or more processors, and in this embodiment, the storage medium may store a headphone playback control program. The headphone playback control program can be used by one or more processors to execute any flow of headphone playback control described in the foregoing embodiments.
本实施例还提供了一种计算机程序产品,包括计算机可读装置,该计算机可读装置上存储有如上所示的计算机程序。本实施例中该计算机可读装置可包括如上所示的计算机可读存储介质。例如,该计算机程序产品包括电子设备,例如,本实施例提供了一种电子设备,如图6所示:电子设备6包括处理器61、存储器62以及设置为连接处理器61与存储器62的通信总线63,其中存储器62可以为前述存储有耳机播放控制程序的存储介质。在一些示例中,处理器61可以读取耳机播放控制程序,进行编译并执行实现前述实施例中介绍的耳机播放控制方法的流程。This embodiment also provides a computer program product, including a computer-readable device, where the computer program as shown above is stored on the computer-readable device. In this embodiment, the computer-readable device may include the computer-readable storage medium as described above. For example, the computer program product includes an electronic device. For example, this embodiment provides an electronic device, as shown in FIG. 6 : the electronic device 6 includes a processor 61 , a memory 62 , and a communication device configured to connect the processor 61 and the memory 62 The bus 63, wherein the memory 62 may be the aforementioned storage medium storing the earphone playback control program. In some examples, the processor 61 may read the headphone playback control program, compile and execute the process of implementing the headphone playback control method described in the foregoing embodiments.
本实施例还提供一种耳机与一种终端,在一种可选的情况下,耳机和终端相互配合以实现本实施例提供的耳机播放控制方法:This embodiment also provides an earphone and a terminal. In an optional case, the earphone and the terminal cooperate with each other to implement the earphone playback control method provided by this embodiment:
请参见图7,图7示出的耳机70包括检测单元71、音频输出单元72、第一通信单元73以及控制器74,其中,检测单元71、音频输出单元72以及第一通信单元73均与控制器74通信连接。另外,耳机70通过第一通信单元73与终端通信连接。耳机70与终端的通信连接可以是有线连接,也可以是无线连接。Referring to FIG. 7 , the headset 70 shown in FIG. 7 includes a detection unit 71 , an audio output unit 72 , a first communication unit 73 and a controller 74 , wherein the detection unit 71 , the audio output unit 72 and the first communication unit 73 are all connected with The controller 74 is communicatively connected. In addition, the earphone 70 is communicatively connected to the terminal through the first communication unit 73 . The communication connection between the earphone 70 and the terminal may be a wired connection or a wireless connection.
音频输出单元72设置为在控制器74的控制下,输出由第一通信单元73从终端处接收的音频数据,例如播放歌曲或者视频的声音。The audio output unit 72 is configured to, under the control of the controller 74, output the audio data received by the first communication unit 73 from the terminal, such as the sound of playing a song or a video.
检测单元71设置为在控制器74的控制下,检测耳机70当前所处场景的实时场景参数。在本实施例的一些示例中,检测单元71可以包括声音检测单元与状态检测单元中的至少一种,在一些示例中,检测单元71中可以同时包括声音检测单元与状态检测单元,其中声音检测单元设置为采集耳机70所处环境的环境声音信号,例如,声音检测单元可以是部署于耳机70上的麦克风。状态检测单元可以包括部署在耳机上的多类传感器,包括压力传感器、温度传感器、湿度传感器、红外传感器、重力传感器、加速度传感器等几种中的至少一种。The detection unit 71 is configured to detect real-time scene parameters of the scene where the headset 70 is currently located under the control of the controller 74 . In some examples of this embodiment, the detection unit 71 may include at least one of a sound detection unit and a state detection unit, and in some examples, the detection unit 71 may include both a sound detection unit and a state detection unit, wherein the sound detection unit The unit is configured to collect ambient sound signals of the environment where the earphone 70 is located. For example, the sound detection unit may be a microphone deployed on the earphone 70 . The state detection unit may include multiple types of sensors deployed on the headset, including at least one of pressure sensors, temperature sensors, humidity sensors, infrared sensors, gravity sensors, acceleration sensors, and the like.
第一通信单元73除了设置为从终端侧接收音频数据以外,还可以将检测单 元71采集到的实时场景参数传输给终端,以供终端将实时场景参数与预存的待控场景参数进行匹配。In addition to being configured to receive audio data from the terminal side, the first communication unit 73 can also transmit the real-time scene parameters collected by the detection unit 71 to the terminal, so that the terminal can match the real-time scene parameters with the pre-stored scene parameters to be controlled.
请参见图8:终端80包括第二通信单元81、处理器82、存储器83,处理器82分别与第二通信单元81、存储器83通信连接,且终端80通过第二通信单元81与耳机通信连接。Please refer to FIG. 8 : the terminal 80 includes a second communication unit 81 , a processor 82 , and a memory 83 , the processor 82 is communicatively connected to the second communication unit 81 and the memory 83 , and the terminal 80 is communicatively connected to the headset through the second communication unit 81 .
第二通信单元81设置为在处理器82的控制下向耳机传输音频数据,通过耳机实现音频播放;另外,第二通信单元81还设置为接收耳机传输的表征耳机当前所处场景的实时场景参数。The second communication unit 81 is configured to transmit audio data to the earphone under the control of the processor 82, and realize audio playback through the earphone; in addition, the second communication unit 81 is also configured to receive the real-time scene parameter transmitted by the earphone and representing the scene where the earphone is currently located. .
处理器82设置为将实时场景参数与存储器83预存的待控场景参数进行匹配,待控场景参数为此前检测到第一反降噪操作时耳机对应的场景参数,第一反降噪操作为通过手动方式减小耳机输出到用户耳朵的声能的操作;若实时场景参数与一待控场景参数匹配成功,则处理器82自动执行第二反降噪操作,第二反降噪操作能够提升用户听到环境声音的概率。The processor 82 is set to match the real-time scene parameters with the to-be-controlled scene parameters pre-stored in the memory 83. The to-be-controlled scene parameters are the scene parameters corresponding to the earphones when the first anti-noise reduction operation was previously detected, and the first anti-noise reduction operation was passed. The operation of manually reducing the sound energy output by the earphone to the user's ears; if the real-time scene parameters are successfully matched with a to-be-controlled scene parameter, the processor 82 automatically executes the second anti-noise reduction operation, which can improve the user's Probability of hearing ambient sounds.
在一些示例中,处理器82获取到的实时场景参数可以一部分来自于耳机,一部分来自于终端80自身的采集单元,例如终端80上也设置有音频采集单元,如麦克风,设置有多类传感器,处理器82可以将终端80上采集单元采集到的实时场景参数以及从耳机处接收到的实时场景参数结合,得到综合场景参数,该综合场景参数由两种来源不同的实时场景参数结合得到,可更准确地确定出耳机当前所处场景。In some examples, the real-time scene parameters acquired by the processor 82 may be partly from the headset and partly from the acquisition unit of the terminal 80 itself. For example, the terminal 80 is also provided with an audio acquisition unit, such as a microphone, with multiple types of sensors. The processor 82 can combine the real-time scene parameters collected by the acquisition unit on the terminal 80 and the real-time scene parameters received from the headset to obtain comprehensive scene parameters, which are obtained by combining two kinds of real-time scene parameters from different sources. More accurately determine the scene the headset is currently in.
在本实施例的一些示例中,处理器82可以监测针对耳机的第一反降噪操作。在检测到第一反降噪操作时,处理器82确定与第一反降噪操作在时间上对应的场景参数作为第一反降噪操作的关联场景参数,然后将关联场景参数作为待控场景参数存储在存储器83中。In some examples of this embodiment, the processor 82 may monitor the first anti-noise reduction operation for the headset. When the first anti-noise reduction operation is detected, the processor 82 determines the scene parameter corresponding to the first anti-noise reduction operation in time as the relevant scene parameter of the first anti-noise reduction operation, and then uses the relevant scene parameter as the scene to be controlled The parameters are stored in the memory 83 .
可选地,处理器82确定与第一反降噪操作在时间上对应的场景参数作为第一反降噪操作的关联场景参数后,还可以将实时场景参数与关联场景参数进行匹配。若实时场景参数与关联场景参数匹配成功,则处理器82在第一预设时长内监测针对耳机的第一反降噪操作;若在第一预设时长内检测到第一反降噪操作,则处理器82将关联场景参数作为待控场景参数存储在存储器83中。Optionally, after the processor 82 determines the scene parameters corresponding to the first anti-noise reduction operation in time as the associated scene parameters of the first anti-noise reduction operation, the processor 82 may also match the real-time scene parameters with the associated scene parameters. If the real-time scene parameters and the associated scene parameters are successfully matched, the processor 82 monitors the first anti-noise reduction operation for the earphone within the first preset time period; if the first anti-noise reduction operation is detected within the first preset time period, Then, the processor 82 stores the associated scene parameters in the memory 83 as the scene parameters to be controlled.
在本实施例的一些示例中,存储器83中还存储有用户的声音特征信息,处理器82可以通过终端80自身的麦克风,或者是耳机上的麦克风采集环境声音信号,然后根据存储器83中存储的声音特征信息在采集到的环境声音信号中识别用户声音。识别到用户声音后,处理器82自动执行第二反降噪操作。In some examples of this embodiment, the memory 83 also stores the voice feature information of the user, and the processor 82 can collect the ambient sound signal through the microphone of the terminal 80 or the microphone on the earphone, and then according to the sound signal stored in the memory 83 The sound feature information identifies the user's voice in the collected ambient sound signal. After recognizing the user's voice, the processor 82 automatically performs the second anti-noise reduction operation.
在本实施例的一些示例中,处理器82自动执行第二反降噪操作时,可以通 过第二通信单元81向耳机传输控制指令,指示耳机减小其输出声能。例如指示耳机降低其输出音量。或者处理器82可以直接控制音频停止播放,从而使得第二通信单元81暂时停止向耳机传输音频数据。还有一些示例中,处理器82可以通过终端80自身的麦克风,或者是耳机上的麦克风采集环境声音信号,并控制第二通信单元81将采集到的环境声音信号传输给耳机,让耳机输出采集到的环境声音信号。In some examples of this embodiment, when the processor 82 automatically performs the second anti-noise reduction operation, it may transmit a control instruction to the earphone through the second communication unit 81, instructing the earphone to reduce its output sound energy. For example instructing the headset to lower its output volume. Alternatively, the processor 82 may directly control the audio to stop playing, so that the second communication unit 81 temporarily stops transmitting audio data to the earphone. In some other examples, the processor 82 may collect the ambient sound signal through the microphone of the terminal 80 itself or the microphone on the earphone, and control the second communication unit 81 to transmit the collected ambient sound signal to the earphone, so that the earphone outputs the collected ambient sound signal. to the ambient sound signal.
在一些示例中,假定与实时场景参数匹配成功的待控场景参数为目标待控场景参数,则处理器82自动减小耳机的输出声能之后,可以在第二预设时长内监测手动声能提升操作,手动声能提升操作为通过手动方式增大耳机输出到用户耳朵的声能的操作。若处理器82在第二预设时长内检测到手动声能提升操作,则记录针对目标待控场景参数执行手动声能提升操作的累计次数;若该目标待控场景参数对应的累计次数超过预设次数,则处理器82将目标待控场景参数从存储器83中删除。In some examples, assuming that the to-be-controlled scene parameter that successfully matches the real-time scene parameter is the target to-be-controlled scene parameter, after the processor 82 automatically reduces the output sound energy of the earphone, the manual sound energy can be monitored for a second preset time period The lifting operation, the manual sound energy lifting operation is an operation of manually increasing the sound energy output by the earphone to the user's ear. If the processor 82 detects the manual sound energy boosting operation within the second preset time period, it records the cumulative number of times the manual sound energy boosting operation is performed for the target scene parameter to be controlled; if the accumulated number of times corresponding to the target scene parameter to be controlled exceeds the preset number If the number of times is set, the processor 82 deletes the target scene parameter to be controlled from the memory 83 .
若在第二预设时长内未检测到手动声能提升操作,且确定耳机的实时场景参数与目标待控场景参数不匹配时,则处理器82自动将耳机的输出声能恢复到执行第二反降噪操作之前的水平。If the manual sound energy boosting operation is not detected within the second preset time period, and it is determined that the real-time scene parameters of the earphones do not match the target scene parameters to be controlled, the processor 82 automatically restores the output sound energy of the earphones to the second preset time period. The level before the denoising operation.
可见前述耳机70与终端80可以相互配合实现前述实施例中的耳机播放控制方法,至于耳机70与终端80实现耳机播放控制方法的细节,请参见前述实施例的介绍,这里不再赘述。It can be seen that the aforementioned headset 70 and the terminal 80 can cooperate with each other to implement the headset playback control method in the aforementioned embodiment. As for the details of the headset playback control method implemented by the headset 70 and the terminal 80, please refer to the introduction of the aforementioned embodiment, which will not be repeated here.
本实施例还提供一种耳机播放控制系统,请参见图9所示,该耳机播放控制系统9中包括耳机70以及与该耳机70通信连接的终端80,其中耳机70为图7中对应的耳机,终端80为图8中对应的终端。This embodiment also provides an earphone playback control system, as shown in FIG. 9 , the earphone playback control system 9 includes an earphone 70 and a terminal 80 communicatively connected to the earphone 70 , wherein the earphone 70 is the corresponding earphone in FIG. 7 . , the terminal 80 is the corresponding terminal in FIG. 8 .
图9仅用于对耳机70和终端80的连接做出示例说明,耳机70不局限于图9所示的有线耳机,还可以为与终端80通信连接的其他类型耳机。可选地,耳机70可以为无线耳机,如蓝牙耳机。FIG. 9 is only used to illustrate the connection between the earphone 70 and the terminal 80 . The earphone 70 is not limited to the wired earphone shown in FIG. Optionally, the earphone 70 may be a wireless earphone, such as a Bluetooth earphone.
本实施例提供的耳机播放控制系统、耳机、终端、电子设备及存储介质,可以基于用户手动的操作结合耳机的实时场景参数自动归纳出用户需要听取环境声音的待控场景,以供后续过程中自动准确识别出存在声能限制的待控场景,并自动在这些待控场景下对耳机进行声能限制,避免用户错过环境中对其重要的声音。待控场景的归纳基于用户的历史操作,符合用户习惯,相当于是针对用户的“个性化待控场景定制”,从而提升了耳机播放控制的智能化程度,增强了用户体验。The headphone playback control system, headphone, terminal, electronic device, and storage medium provided in this embodiment can automatically summarize the to-be-controlled scene in which the user needs to listen to the ambient sound based on the user's manual operation combined with the real-time scene parameters of the headphone, for use in the subsequent process. Automatically and accurately identify to-be-controlled scenes with sound energy limitations, and automatically limit the sound energy of headphones in these to-be-controlled scenes to prevent users from missing important sounds in the environment. The induction of the scenes to be controlled is based on the user's historical operations, which is in line with the user's habits, which is equivalent to "personalized customization of the scenes to be controlled" for the user, thereby improving the intelligence of the headset playback control and enhancing the user experience.
可见,本领域的技术人员应该明白,上文中所公开方法中的全部或一些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的计算机程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。一些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。It can be seen that those skilled in the art should understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software (which can be implemented by computer program codes executable by a computing device) , firmware, hardware, and their appropriate combination. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、计算机程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本申请不限制于任何特定的硬件和软件结合。In addition, communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery, as is well known to those of ordinary skill in the art medium. Therefore, the present application is not limited to any particular combination of hardware and software.

Claims (10)

  1. 一种耳机播放控制方法,包括:A headphone playback control method, comprising:
    检测耳机当前所处场景的实时场景参数;Detect the real-time scene parameters of the scene where the headset is currently located;
    将所述实时场景参数与参数库中的待控场景参数进行匹配,其中,所述参数库中的至少一个待控场景参数为在所述耳机被执行第一反降噪操作的情况下学习到的所述耳机所处场景的场景参数;Matching the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, wherein at least one to-be-controlled scene parameter in the parameter library is learned when the headset is subjected to the first anti-noise reduction operation The scene parameters of the scene where the headset is located;
    在所述实时场景参数与所述参数库中一待控场景参数匹配成功后,执行第二反降噪操作。After the real-time scene parameters are successfully matched with a to-be-controlled scene parameter in the parameter library, a second anti-noise reduction operation is performed.
  2. 如权利要求1所述的耳机播放控制方法,其中,学习所述耳机所处场景的场景参数得到待控场景参数的过程包括:The headset playback control method according to claim 1, wherein the process of learning the scene parameters of the scene where the headset is located to obtain the scene parameters to be controlled comprises:
    在检测到所述第一反降噪操作的情况下,确定与所述第一反降噪操作在时间上对应的场景参数作为所述第一反降噪操作的关联场景参数;In the case of detecting the first anti-noise reduction operation, determining a scene parameter corresponding to the first anti-noise reduction operation in time as the associated scene parameter of the first anti-noise reduction operation;
    继续检测所述耳机所处场景的实时场景参数,并将检测到的实时场景参数与所述关联场景参数进行匹配;Continue to detect the real-time scene parameters of the scene where the headset is located, and match the detected real-time scene parameters with the associated scene parameters;
    在所述实时场景参数与所述关联场景参数匹配成功的情况下,在第一预设时长内监测针对所述耳机的所述第一反降噪操作;In the case that the real-time scene parameter and the associated scene parameter are successfully matched, monitor the first anti-noise reduction operation for the earphone within a first preset time period;
    在所述第一预设时长内检测到所述第一反降噪操作后,将所述关联场景参数作为所述待控场景参数存储至所述参数库。After the first anti-noise reduction operation is detected within the first preset time period, the associated scene parameter is stored in the parameter library as the to-be-controlled scene parameter.
  3. 如权利要求2所述的耳机播放控制方法,其中,所述第一反降噪操作包括以下几种中的至少一种:控制耳机由佩戴状态变更为非佩戴状态的操作、降低所述耳机的输出音量的操作、控制音频播放停止的操作。The headset playback control method according to claim 2, wherein the first anti-noise reduction operation includes at least one of the following: an operation of controlling the headset to change from a wearing state to a non-wearing state, reducing the The operation of outputting the volume, and the operation of controlling the audio playback stop.
  4. 如权利要求1所述的耳机播放控制方法,其中,所述检测耳机当前所处场景的实时场景参数,包括以下至少之一:The headset playback control method according to claim 1, wherein the detection of real-time scene parameters of the scene where the headset is currently located includes at least one of the following:
    采集所述耳机所处环境的环境声音信号;collecting the ambient sound signal of the environment where the earphone is located;
    检测所述耳机所处的状态信息,其中,所述状态信息包括佩戴状态信息与运动状态信息中的至少一种。The state information in which the earphone is located is detected, wherein the state information includes at least one of wearing state information and motion state information.
  5. 如权利要求4所述的耳机播放控制方法,其中,所述采集所述耳机所处环境的环境声音信号之后,还包括:The headphone playback control method according to claim 4, wherein after collecting the ambient sound signal of the environment where the headphone is located, the method further comprises:
    在采集到的环境声音信号中识别用户特征声音;Identify user characteristic sounds in the collected ambient sound signals;
    在识别到用户特征声音后,执行所述第二反降噪操作。After recognizing the characteristic sound of the user, the second anti-noise reduction operation is performed.
  6. 如权利要求1-5任一项所述的耳机播放控制方法,其中,所述执行第二反 降噪操作,包括以下至少之一:The headphone playback control method according to any one of claims 1-5, wherein the performing the second anti-noise reduction operation comprises at least one of the following:
    减小所述耳机的输出声能,其中,所述减小所述耳机的输出声能的方式包括降低所述耳机的输出音量与控制音频播放停止中的至少一种;reducing the output sound energy of the earphone, wherein the method of reducing the output sound energy of the earphone includes at least one of reducing the output volume of the earphone and controlling audio playback to stop;
    采集实时的环境声音信号,并通过所述耳机输出采集到的所述环境声音信号。A real-time ambient sound signal is collected, and the collected ambient sound signal is output through the earphone.
  7. 如权利要求6所述的耳机播放控制方法,其中,与所述实时场景参数匹配成功的待控场景参数为目标待控场景参数,所述减小所述耳机的输出声能之后,还包括:The headphone playback control method according to claim 6, wherein the to-be-controlled scene parameter that is successfully matched with the real-time scene parameter is the target to-be-controlled scene parameter, and after reducing the output sound energy of the headphone, the method further comprises:
    在第二预设时长内监测第一声能提升操作,其中,所述第一声能提升操作为通过传感器或输入单元检测到的增大所述耳机输出到用户耳朵的声能的操作;monitoring a first sound energy boosting operation within a second preset time period, wherein the first sound energy boosting operation is an operation detected by a sensor or an input unit to increase the sound energy output from the earphone to the user's ear;
    在所述第二预设时长内检测到所述第一声能提升操作的情况下,记录针对所述目标待控场景参数执行所述第一声能提升操作的累计次数,在确定所述目标待控场景参数对应的累计次数超过预设次数后,将所述目标待控场景参数删除;In the case where the first sound energy boosting operation is detected within the second preset time period, record the cumulative number of times the first sound energy boosting operation is performed for the target to-be-controlled scene parameter, and after determining the target After the accumulated number of times corresponding to the parameter of the scene to be controlled exceeds the preset number of times, the parameter of the target scene to be controlled is deleted;
    在所述第二预设时长内未检测到所述第一声能提升操作,且确定出所述耳机的实时场景参数与所述目标待控场景参数不匹配的情况下,执行第二声能提升操作,以提升所述耳机的输出声能。In the case where the first sound energy boosting operation is not detected within the second preset time period, and it is determined that the real-time scene parameters of the headset do not match the target scene parameters to be controlled, execute the second sound energy A lifting operation is performed to boost the output sound energy of the earphone.
  8. 一种耳机播放控制装置,包括:A headphone playback control device, comprising:
    检测单元,设置为检测耳机当前所处场景的实时场景参数;a detection unit, configured to detect real-time scene parameters of the scene where the headset is currently located;
    匹配单元,设置为将所述实时场景参数与参数库中的待控场景参数进行匹配,其中,所述参数库中的至少一个待控场景参数为在所述耳机被执行第一反降噪操作的情况下学习到的所述耳机所处场景的场景参数;a matching unit, configured to match the real-time scene parameters with the to-be-controlled scene parameters in the parameter library, wherein at least one to-be-controlled scene parameter in the parameter library is the first anti-noise reduction operation performed on the earphone The scene parameters of the scene where the headset is learned in the case of ;
    反降噪单元,设置为在所述实时场景参数与所述参数库中一待控场景参数匹配成功后,执行第二反降噪操作。The anti-noise reduction unit is configured to perform a second anti-noise reduction operation after the real-time scene parameters are successfully matched with the parameters of a scene to be controlled in the parameter library.
  9. 一种电子设备,包括处理器、存储器及通信总线;An electronic device, including a processor, a memory and a communication bus;
    所述通信总线设置为实现所述处理器和所述存储器之间的连接通信;The communication bus is configured to implement connection communication between the processor and the memory;
    所述处理器设置为执行所述存储器中存储的至少一个计算机程序,以实现如权利要求1至7中任一项所述的耳机播放控制方法。The processor is configured to execute at least one computer program stored in the memory to implement the headphone playback control method according to any one of claims 1 to 7.
  10. 一种存储介质,存储有至少一个计算机程序,所述至少一个计算机程序可被至少一个处理器执行,以实现如权利要求1至7中任一项所述的耳机播放控制方法。A storage medium storing at least one computer program, the at least one computer program being executable by at least one processor to implement the headphone playback control method according to any one of claims 1 to 7.
PCT/CN2021/134003 2020-12-21 2021-11-29 Earphone playback control method and apparatus, and electronic device and storage medium WO2022135071A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011515433.2A CN114647397A (en) 2020-12-21 2020-12-21 Earphone play control method and device, electronic equipment and storage medium
CN202011515433.2 2020-12-21

Publications (1)

Publication Number Publication Date
WO2022135071A1 true WO2022135071A1 (en) 2022-06-30

Family

ID=81991552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134003 WO2022135071A1 (en) 2020-12-21 2021-11-29 Earphone playback control method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114647397A (en)
WO (1) WO2022135071A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041803B (en) * 2023-08-30 2024-03-22 江西瑞声电子有限公司 Earphone playing control method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796125A (en) * 2013-11-21 2014-05-14 广州视源电子科技股份有限公司 Earphone playing-based sound adjustment method
US20160192073A1 (en) * 2014-12-27 2016-06-30 Intel Corporation Binaural recording for processing audio signals to enable alerts
CN108429955A (en) * 2018-04-19 2018-08-21 南京拙达科创加速器有限公司 Release ambient sound enters the intelligent apparatus and method of earphone
CN110708625A (en) * 2019-09-25 2020-01-17 华东师范大学 Intelligent terminal-based environment sound suppression and enhancement adjustable earphone system and method
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796125A (en) * 2013-11-21 2014-05-14 广州视源电子科技股份有限公司 Earphone playing-based sound adjustment method
US20160192073A1 (en) * 2014-12-27 2016-06-30 Intel Corporation Binaural recording for processing audio signals to enable alerts
CN108429955A (en) * 2018-04-19 2018-08-21 南京拙达科创加速器有限公司 Release ambient sound enters the intelligent apparatus and method of earphone
CN110708625A (en) * 2019-09-25 2020-01-17 华东师范大学 Intelligent terminal-based environment sound suppression and enhancement adjustable earphone system and method
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

Also Published As

Publication number Publication date
CN114647397A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
US11705878B2 (en) Intelligent audio output devices
JP6811758B2 (en) Voice interaction methods, devices, devices and storage media
WO2020228815A1 (en) Voice-based wakeup method and device
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
US9479883B2 (en) Audio signal processing apparatus, audio signal processing method, and program
JP2020031444A (en) Operational change of companion communication device on the basis of state of wearable device
US8909537B2 (en) Device capable of playing music and method for controlling music playing in electronic device
EP3001422A1 (en) Media player automated control based on detected physiological parameters of a user
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN105451111A (en) Earphone play control method and apparatus and terminal
CN107493500A (en) Multimedia resource player method and device
CN109067965B (en) Translation method, translation device, wearable device and storage medium
JP2023542968A (en) Hearing enhancement and wearable systems with localized feedback
WO2022227655A1 (en) Sound playing method and apparatus, and electronic device and readable storage medium
WO2019013820A1 (en) Alerting users to events
WO2022135071A1 (en) Earphone playback control method and apparatus, and electronic device and storage medium
CN113038337A (en) Audio playing method, wireless earphone and computer readable storage medium
WO2021043414A1 (en) Microphone blocking detection control
CN111988704A (en) Sound signal processing method, device and storage medium
CN113473304A (en) Howling suppression method, howling suppression device, earphone and storage medium
CN109151195B (en) Earphone control method and control system during running exercise
WO2018227560A1 (en) Method and system for controlling earphone
CN106856537B (en) Volume adjustment method and device
WO2023063407A1 (en) Information processing system, information processing device and method, accommodation case, information processing method, and program
WO2023159717A1 (en) Earbud operation control method, ring earbuds, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21909070

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.11.2023)