Headphone control method, device and electronic device
By integrating sensors on the earphones to automatically determine and adjust the audio processing mode, it solves the problem of audio control incompatibility of existing earphones in different environments and usage states, and improves the comfort and convenience of using the earphones.
Patent Information
- Application Number
- CN202111017576.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-08-31
AI Technical Summary
Existing earphones often cause accidents due to wearing them in daily life, such as missing important calls. They lack adaptive audio control methods, which affects the comfort and convenience of use.
By integrating the acceleration sensor, microphone and heart rate sensor on the headset, it collects motion status information and environmental sound information, automatically determines the headset mode and performs audio processing, including transparency mode, noise reduction mode and sleep mode, to adapt to different usage scenarios.
It improves the accuracy of headphone mode judgment and the comfort and convenience of use, ensuring the most suitable audio processing in different environments and usage conditions, and reducing the risk of missing important sounds.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of earphone technology, and in particular to an earphone control method, device and electronic device. Background Art
[0002] In the prior art, listening to audio through headphones has become one of the ways for more and more people to learn and entertain. However, in daily life, accidents caused by wearing headphones and missing important calls often occur.
[0003] It can be seen that how to adaptively control the headphones to adopt the audio control method that is most suitable for the current environment according to the user's current specific environment, thereby improving the comfort, convenience and flexibility of headphone use, is a technical issue worthy of attention. Summary of the invention
[0004] In view of this, in order to solve the above technical problems or part of the technical problems, the embodiments of the present disclosure provide an earphone control method, device and electronic device.
[0005] In a first aspect, an embodiment of the present disclosure provides a headset control method, the method comprising:
[0006] Acquire first information collected by a first sensor disposed on the headset, and second information collected by a second sensor disposed on the headset; wherein the first sensor comprises an acceleration sensor, and the first information comprises motion state information of a user of the headset;
[0007] Determining a headset mode of the headset based on the first information and the second information;
[0008] Control the headphones to process audio according to the control method indicated by the headphone mode.
[0009] Optionally, in the method of any embodiment of the present disclosure, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0010] Determining a headset mode of the headset based on the first information and the second information includes:
[0011] When the motion state information indicates that the user is in motion, and the ambient sound information indicates that wind noise exists in the environment where the earphone is located, it is determined that the earphone mode of the earphone is a transparent mode.
[0012] Optionally, in the method of any embodiment of the present disclosure, controlling the headset to perform audio processing according to the control method indicated by the headset mode includes:
[0013] The ambient sound corresponding to the ambient sound information is amplified.
[0014] Optionally, in the method of any embodiment of the present disclosure, the method further includes:
[0015] When the motion state information indicates that the user is in motion, and the ambient sound information indicates that wind noise exists in the environment where the earphone is located, it is determined that the user is outdoors.
[0016] Optionally, in the method of any embodiment of the present disclosure, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0017] Determining a headset mode of the headset based on the first information and the second information includes:
[0018] When the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that there is noise in the environment where the earphone is located, it is determined that the earphone mode of the earphone is a noise reduction mode.
[0019] Optionally, in the method of any embodiment of the present disclosure, controlling the headset to perform audio processing according to the control method indicated by the headset mode includes:
[0020] Generating an inverted audio frequency of the noise, wherein the sound wave amplitude of the inverted audio frequency is the same as the sound wave amplitude of the noise and the phase is opposite;
[0021] The above-mentioned inverted audio frequency is used to interfere with the above-mentioned noise.
[0022] Optionally, in the method of any embodiment of the present disclosure, the method further includes:
[0023] When the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that there is no noise in the environment where the earphone is located, or the ambient sound information indicates that the noise in the environment where the earphone is located is not wind noise, it is determined that the user is indoors.
[0024] Optionally, in the method of any embodiment of the present disclosure, whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located is determined in the following manner:
[0025] Based on the similarity between the waveform parameters of the sound in the environment where the earphone is located collected by the microphone and the preset wind noise model parameters, it is determined whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
[0026] Optionally, in the method of any embodiment of the present disclosure, the second sensor includes a heart rate sensor, and the second information includes heart rate information of the user; and
[0027] The determining the headphone mode of the headphone based on the first information and the second information includes:
[0028] When the motion state information indicates that the user is in a lying state, and the heart rate information indicates that the heart rate of the user is less than or equal to a preset threshold, it is determined that the headphone mode of the headphone is a sleep mode.
[0029] Optionally, in the method of any embodiment of the present disclosure, controlling the headset to perform audio processing according to the control method indicated by the headset mode includes:
[0030] The audio played by the headphones is processed using an audio equalizer corresponding to the sleep mode.
[0031] In a second aspect, an embodiment of the present disclosure provides an earphone control device, the device comprising:
[0032] an acquisition unit, configured to acquire first information collected by a first sensor disposed on the earphone and second information collected by a second sensor disposed on the earphone; wherein the first sensor comprises an acceleration sensor, and the first information comprises motion state information of a user of the earphone;
[0033] A first determining unit is configured to determine a headphone mode of the headphone based on the first information and the second information;
[0034] The control unit is configured to control the earphone to perform audio processing according to the control method indicated by the earphone mode.
[0035] Optionally, in the device of any embodiment of the present disclosure, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0036] The first determining unit includes:
[0037] The first determination subunit is configured to determine that the headphone mode of the headphone is a transparent mode when the motion state information indicates that the user is in motion and the ambient sound information indicates that there is wind noise in the environment where the headphone is located.
[0038] Optionally, in the device of any embodiment of the present disclosure, the control unit is further configured to:
[0039] The ambient sound corresponding to the ambient sound information is amplified.
[0040] Optionally, in the device of any embodiment of the present disclosure, the device further includes:
[0041] The second determination unit is configured to determine that the user is outdoors when the motion state information indicates that the user is in motion and the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
[0042] Optionally, in the device of any embodiment of the present disclosure, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0043] The first determining unit includes:
[0044] The second determination subunit is configured to determine that the headphone mode of the headphone is a noise reduction mode when the motion state information indicates that the user is in a non-motion state and the ambient sound information indicates that there is noise in the environment where the headphone is located.
[0045] Optionally, in the device of any embodiment of the present disclosure, the control unit is further configured to:
[0046] Generating an inverted audio frequency of the noise, wherein the sound wave amplitude of the inverted audio frequency is the same as the sound wave amplitude of the noise and the phase is opposite;
[0047] The above-mentioned inverted audio frequency is used to interfere with the above-mentioned noise.
[0048] Optionally, in the device of any embodiment of the present disclosure, the device further includes:
[0049] The third determination unit is configured to determine that the user is indoors when the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that there is no noise in the environment where the earphone is located, or the ambient sound information indicates that the noise in the environment where the earphone is located is not wind noise.
[0050] Optionally, in the device of any embodiment of the present disclosure, whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located is determined in the following manner:
[0051] Based on the similarity between the waveform parameters of the sound in the environment where the earphone is located collected by the microphone and the preset wind noise model parameters, it is determined whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
[0052] Optionally, in the device of any embodiment of the present disclosure, the second sensor includes a heart rate sensor, and the second information includes heart rate information of the user; and
[0053] The first determining unit includes:
[0054] The third determining subunit is configured to determine that the headphone mode of the headphone is the sleep mode when the motion state information indicates that the user is in a lying state and the heart rate information indicates that the heart rate of the user is less than or equal to a preset threshold.
[0055] Optionally, in the device of any embodiment of the present disclosure, the control unit is further configured to:
[0056] The audio played by the headphones is processed using an audio equalizer corresponding to the sleep mode.
[0057] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0058] Memory for storing computer programs;
[0059] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the headphone control method of the first aspect of the present disclosure is implemented.
[0060] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium, and when the computer program is executed by a processor, the method of any embodiment of the headphone control method of the first aspect is implemented.
[0061] In a fifth aspect, an embodiment of the present disclosure provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device executes instructions for implementing each step in a method of any embodiment of the headphone control method of the first aspect above.
[0062] In the headphone control method provided by the above embodiment of the present disclosure, the first information collected by the first sensor disposed on the headphone and the second information collected by the second sensor disposed on the headphone can be firstly obtained, wherein the first sensor includes an acceleration sensor, and the first information includes the motion state information of the user of the headphone. Then, based on the first information and the second information, the headphone mode of the headphone is determined. Finally, according to the control method indicated by the headphone mode, the headphone is controlled to perform audio processing. In this way, the embodiment of the present disclosure can determine the headphone mode based on the first information and the second information respectively collected by the first sensor and the second sensor disposed on the headphone, and then control the headphone to perform audio processing, so as to comprehensively judge the headphone mode by fusing the information collected by at least two sensors, and automatically control the headphone, thereby improving the accuracy of headphone mode judgment and improving the comfort, convenience and flexibility of headphone use.
[0063] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0065] Figure 1 is an exemplary system architecture diagram of an earphone control method or an earphone control device provided by an embodiment of the present disclosure;
[0066] Figure 2 is a flow chart of a headset control method provided by an embodiment of the present disclosure;
[0067] Figure 3 It is for Figure 2 A schematic diagram of an application scenario of an embodiment of the present invention;
[0068] Figure 4A is a flow chart of another earphone control method provided by an embodiment of the present disclosure;
[0069] Figure 4B is a structural schematic diagram of an earphone provided by an embodiment of the present disclosure;
[0070] Figure 5 is a structural schematic diagram of an earphone control device provided by an embodiment of the present disclosure;
[0071] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0072] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0073] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish objects such as different steps, devices or modules, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0074] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0075] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0076] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0077] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0078] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0079] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0080] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0081] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0082] Figure 1 It is an exemplary system architecture diagram of an earphone control method or an earphone control device provided in an embodiment of the present disclosure.
[0083] like Figure 1 As shown, the system architecture 100 may include a headset 101. Optionally, the system architecture 100 may also include a network 103 and an electronic device 102 (such as a terminal or a server), and the network 103 may provide a medium for a communication link between the headset 101 and the electronic device 102. The network 103 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0084] The headset 101 and the electronic device 102 can interact through the network 103 to receive or send data, etc. Here, at least one of the headset 101 and the electronic device 102 can be used as the execution subject of each step in the headset control method described in the embodiment of the present disclosure. For example, the headset control method described in the embodiment of the present disclosure can be executed by the headset 101, or by the electronic device 102, or by the headset 101 and the electronic device 102 cooperating with each other.
[0085] It should be noted that the execution body of the earphone control method provided in the embodiments of the present disclosure may be hardware or software, which is not specifically limited herein.
[0086] It should be understood that Figure 1 The number of earphones 101, electronic devices 102, and networks 103 is merely illustrative. Depending on the implementation requirements, there may be any number of earphones 101, electronic devices 102, and networks 103. In addition, when the execution subject of the earphone control method provided in the embodiment of the present disclosure does not need to interact with other electronic devices, the above-mentioned architecture 100 may only include the execution subject of the earphone control method, and does not include other electronic devices and networks. For example, the above-mentioned architecture 100 may only include earphones 101.
[0087] Figure 2 A process 200 of an earphone control method provided by an embodiment of the present disclosure is shown. The earphone control method comprises the following steps:
[0088] Step 201: Acquire first information collected by a first sensor disposed on the earphone and second information collected by a second sensor disposed on the earphone.
[0089] In this embodiment, the execution subject of the headset control method (for example Figure 1 The headset or electronic device shown in the figure can obtain first information collected by a first sensor provided on the headset from other electronic devices or locally, and obtain second information collected by a second sensor provided on the headset. The first sensor includes an acceleration sensor, and the first information includes motion state information of the user of the headset.
[0090] The first sensor and the second sensor may be any sensors provided in the earphones. The two may be sensors of the same type. For example, the first sensor and the second sensor may both be acceleration sensors. In addition, the two may also be sensors of different types. For example, the first sensor may be an acceleration sensor and the second sensor may be a heart rate sensor. However, it should be noted that the first sensor and the second sensor are two sensors provided in the earphones.
[0091] The first information is information collected by the first sensor. The second information is information collected by the second sensor. If the first sensor and the second sensor are sensors of the same type, the first information and the second information may represent two pieces of information with the same parameters but different parameter values. For example, the first information and the second information may both include heart rate information, but the heart rate values included in the first information and the second information may be different. If the first sensor and the second sensor are sensors of different types, the first information and the second information may represent two pieces of information with different parameters. For example, the first information may include acceleration information, and the second information may include heart rate information.
[0092] Optionally, the second information may include at least one of the following: ambient sound information of the environment in which the headset is located, heart rate information, motion status information, etc. The ambient sound indicated by the ambient sound information is the sound collected by the microphone of the headset. As an example, the ambient sound may include voice, noise, etc.
[0093] In practice, the ambient sound information of the environment in which the headset is located can be obtained via a recording device (such as a microphone) provided on the headset. The ambient sound information can be an audio signal of the environment in which the headset is located, or data obtained by performing signal processing (such as analog-to-digital conversion, sampling, etc.) on the audio signal of the environment in which the headset is located.
[0094] The user's motion state information can represent the user's behavior, for example, it can indicate whether the user is in a static state (such as lying down) or in motion.
[0095] Step 202: Determine the headphone mode of the headphone based on the first information and the second information.
[0096] In this embodiment, the execution entity may determine the headphone mode of the headphone based on the first information and the second information.
[0097] The headphone mode may represent the way in which the headphone is controlled to process audio. For example, the headphone mode may include at least one of the following: noise reduction mode, transparency mode, and sleep mode. Optionally, the headphone mode may also be a mode set by the user, owner, or technician of the headphone. Each headphone mode may include one or more processing operations required for the headphone, such as timed shutdown, volume adjustment, ambient noise reduction, etc.
[0098] In some optional implementations of this embodiment, the second sensor includes a microphone, and the second information includes ambient sound information of the environment in which the headset is located. On this basis, the execution subject may perform step 202 in the following manner:
[0099] When the motion state information indicates that the user is in motion, and the ambient sound information indicates that wind noise exists in the environment where the earphone is located, it is determined that the earphone mode of the earphone is a transparent mode.
[0100] It can be understood that in the above-mentioned optional implementation method, when the above-mentioned motion state information indicates that the user of the above-mentioned headphones is in motion, and the above-mentioned ambient sound information indicates that there is wind noise in the environment where the above-mentioned headphones are located, it can be determined that the headphone mode of the above-mentioned headphones is a transparent mode, and then through subsequent steps, the ambient sound of the headphones is transparently processed. In this way, through transparent processing, the situation of missing information conveyed by the ambient sound can be reduced or even avoided.
[0101] In some application scenarios of the above optional method, when the above motion state information indicates that the above user is in motion, and the above ambient sound information indicates that there is wind noise in the environment where the earphone is located, the above execution entity may also determine that the above user is outdoors.
[0102] It can be understood that in the above application scenario, when the above motion state information indicates that the user of the above headset is in motion, and the above ambient sound information indicates that there is wind noise in the environment where the above headset is located, it can be determined that the above user is outdoors. In this way, the application scenario of the headset can be judged more accurately, which is helpful to adopt corresponding control methods to control the headset. For example, when it is detected that the user is on a road with many obstacles, the user can be prompted to concentrate and pay attention to pedestrians and vehicles.
[0103] In some optional implementations of this embodiment, the second sensor includes a microphone, and the second information includes ambient sound information of the environment in which the headset is located. On this basis, the execution subject may perform step 202 in the following manner:
[0104] When the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that noise exists in the environment where the earphone is located, it is determined that the earphone mode of the earphone is a noise reduction mode.
[0105] Here, the execution subject or the electronic device connected to the execution subject in communication may determine whether the user of the headset is in a non-moving state in a variety of ways. For example, image recognition or determination of the user's acceleration may be used to determine whether the user of the headset is in a non-moving state.
[0106] In addition, the execution subject or the electronic device connected to the execution subject for communication may also use a variety of methods to determine whether the ambient sound information indicates that the environment in which the earphone is located has noise.
[0107] As an example, whether the ambient sound information indicates that there is noise in the environment where the headset is located may be determined based on the similarity between the waveform parameters of the sound in the environment where the headset is located collected by the microphone and the preset wind noise model parameters.
[0108] Specifically, the sound waveform of the noise may be collected in advance, and if the similarity between the parameters of the waveform of the sound in the environment where the headset is located and the parameters of the sound waveform of the pre-collected noise is greater than or equal to a preset similarity threshold, it may be determined that the above-mentioned environmental sound information indicates that the environment where the headset is located has noise. The above-mentioned waveform parameters (parameters of the waveform) may include but are not limited to: wavelength, amplitude, sharpness, roughness, etc.
[0109] As another example, whether the ambient sound information indicates that there is noise in the environment where the headset is located may also be determined based on the decibel of the sound in the environment where the headset is located and the duration of the sound.
[0110] It can be understood that in the above optional implementation method, when the above motion state information indicates that the above user is in a non-motion state, and the above ambient sound information indicates that there is noise in the environment where the above earphone is located, the headphone mode of the above earphone can be determined to be the noise reduction mode, and then based on subsequent steps, the earphone can be controlled to reduce the noise of its ambient sound, thereby achieving noise reduction processing of the ambient sound of the earphone.
[0111] In some application scenarios of the above-mentioned optional method, when the above-mentioned motion status information indicates that the above-mentioned user is in a non-motion state, and the above-mentioned ambient sound information indicates that there is no noise in the environment where the above-mentioned earphone is located, or the above-mentioned ambient sound information indicates that the noise in the environment where the above-mentioned earphone is located is not wind noise, it is determined that the above-mentioned user is indoors.
[0112] It can be understood that in the above application scenario, it is possible to more accurately determine whether the earphone is indoors.
[0113] In some application scenarios of the above optional implementation manner, the above execution subject may adopt the following method to determine whether the above ambient sound information indicates that there is wind noise in the environment where the above earphone is located:
[0114] Based on the similarity between the waveform parameters of the sound in the environment where the earphone is located collected by the microphone and the preset wind noise model parameters, it is determined whether the environmental sound information indicates that there is wind noise in the environment where the earphone is located. The wind noise represents the noise generated by wind.
[0115] Specifically, the sound waveform of wind noise can be collected in advance. If the similarity between the waveform of the sound in the environment where the headset is located and the sound waveform of the pre-collected wind noise is greater than or equal to a preset similarity threshold, it can be determined that the above-mentioned ambient sound information indicates that the above-mentioned headset is located in the environment where wind noise exists.
[0116] Optionally, it is also possible to further detect whether the noise is wind noise only in a scenario where noise is detected and the frequency of the noise is between 400 Hz and 1000 Hz. The difference between wind noise and ordinary noise is distinguished by the correlation coefficient of the algorithm. Here, a feedforward microphone can be used to collect environmental noise data, and a mathematical model can be determined based on a large amount of collected wind noise data to calculate the correlation coefficient. If the noise to be detected is brought into the determined mathematical model, and the calculated correlation coefficient is within a preset range, it can be determined that the noise to be detected is wind noise.
[0117] It can be understood that the above optional implementation method determines whether the above ambient sound information indicates that there is wind noise in the environment where the above earphone is located through the waveform of the sound in the environment where the machine is located, thereby improving the accuracy of judging whether there is wind noise in the environment where the earphone is located.
[0118] Optionally, it may also be determined whether the ambient sound information indicates that there is wind noise in the environment where the earphone is located based on the decibel of the sound in the environment where the earphone is located, the duration of the sound, the frequency, etc.
[0119] In some optional implementations of this embodiment, the second sensor includes a heart rate sensor, and the second information includes the heart rate information of the user. On this basis, the execution subject may perform step 202 in the following manner:
[0120] When the motion state information indicates that the user is in a lying state, and the heart rate information indicates that the heart rate of the user is less than or equal to a preset threshold, it is determined that the headphone mode of the headphone is a sleep mode.
[0121] It can be understood that in the above optional implementation, it is possible to more accurately determine whether the user of the headset is about to fall asleep, so that the mode of the headset is adapted to its application scenario.
[0122] Step 203: Control the earphone to perform audio processing according to the control method indicated by the earphone mode.
[0123] In this embodiment, the execution subject may control the earphone to perform audio processing according to the control method indicated by the earphone mode.
[0124] As an example, when the headset mode is the sleep mode, the headset may be controlled to perform at least one of the following operations:
[0125] The first item is to generate ambient sound processing method information for instructing the above-mentioned earphone to perform noise reduction processing on the ambient sound of the above-mentioned earphone.
[0126] The second item is to control the above-mentioned earphones to start the timed shutdown function.
[0127] As another example, when the headset mode is the noise reduction mode, the headset may be controlled to perform at least one of the following operations:
[0128] The first item is to reduce the noise of the ambient sound.
[0129] The second item is to amplify the sound played by the headphone speakers.
[0130] As another example, when the headset mode is the transparency mode, the headset may be controlled to perform at least one of the following operations:
[0131] The first is to increase the decibel level of ambient sound.
[0132] The second item is to reduce the decibel level of the sound played by the headphone speakers.
[0133] Here, in the above example, the ambient sound can be treated as a whole and processed uniformly; the ambient sound can also be subjected to audio extraction (for example, speech and non-speech are extracted), and each extracted audio is processed differently.
[0134] In some cases, after processing the ambient sound of the earphone, when the processed audio is played through the left and right channels of the earphone, the audio to be played in the two channels can be processed differently. For example, the ambient sound can be played through one channel, and the non-ambient sound (such as music played by a mobile phone player) can be played through the other channel.
[0135] In some application scenarios of the above optional manner, when it is determined that the headphone mode of the above headphone is the transparent mode, the above execution subject may perform the above step 203 in the following manner:
[0136] The ambient sound corresponding to the ambient sound information is amplified.
[0137] It can be understood that in the above application scenario, the ambient sound can be amplified to achieve transparent transmission, so that the user of the headset can hear the ambient sound more clearly, and then process and judge the ambient sound accordingly. In this way, adaptive transparent processing of audio is achieved.
[0138] In some application scenarios of the above optional manner, when it is determined that the headphone mode of the above headphone is the noise reduction mode, the above execution subject may perform the above step 203 in the following manner:
[0139] First, an inverted audio frequency of the noise is generated, wherein the sound wave amplitude of the inverted audio frequency is the same as the sound wave amplitude of the noise, and the phase is opposite.
[0140] Then, the above-mentioned anti-phase audio frequency is used to interfere with the above-mentioned noise.
[0141] It can be understood that in the above application scenario, the noise is offset by generating an inverted audio of the noise, thereby achieving noise reduction, thereby achieving adaptive noise reduction processing of the audio.
[0142] In some application scenarios of the optional manner, when it is determined that the headset mode of the headset is the sleep mode, the execution subject may perform step 203 in the following manner:
[0143] The audio played by the earphone is processed by using an audio equalizer corresponding to the sleep mode, wherein the audio equalizer corresponding to the sleep mode can be set by the user of the earphone or uniformly set by the manufacturer of the earphone.
[0144] It can be understood that in the above application scenario, when it is determined that the user of the earphones is about to fall asleep, the audio can be adaptively processed using a corresponding sound effect processor.
[0145] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the headphone control method according to this embodiment. Figure 3 In the embodiment, the earphone 310 first obtains the first information 301 collected by the first sensor disposed therein, and the second information 302 collected by the second sensor disposed therein; then, the earphone 310 determines its own earphone mode 303 based on the above-mentioned first information 301 and the above-mentioned second information 302; finally, the earphone 310 controls itself according to the control method indicated by the above-mentioned earphone mode 303.
[0146] In the headphone control method provided by the above-mentioned embodiment of the present disclosure, the first information collected by the first sensor disposed on the above-mentioned headphone and the second information collected by the second sensor disposed on the above-mentioned headphone can be obtained, wherein the above-mentioned first sensor includes an acceleration sensor, and the above-mentioned first information includes the motion state information of the user of the above-mentioned headphone. Then, based on the above-mentioned first information and the above-mentioned second information, the headphone mode of the above-mentioned headphone is determined, and finally, according to the control method indicated by the above-mentioned headphone mode, the above-mentioned headphone is controlled to perform audio processing. In this way, the embodiment of the present disclosure can determine the headphone mode based on the first information and the second information respectively collected by the first sensor and the second sensor disposed on the headphone, and then control the headphone to perform audio processing, so as to comprehensively judge the headphone mode by fusing the information collected by at least two sensors, and automatically control the headphone, thereby improving the accuracy of headphone mode judgment and improving the comfort, convenience and flexibility of headphone use.
[0147] Further references Figure 4A , Figure 4A The flow chart of another embodiment of the headphone control method is shown. The flow chart of the headphone control method includes the following steps:
[0148] Step 401, obtaining the motion state information of the user of the headset collected by the acceleration sensor arranged on the headset. Then, step 402 is executed.
[0149] Step 402, determining whether the motion state information indicates that the user is in motion. If so, then executing step 403; if not, then executing steps 406 and 409.
[0150] Step 403, obtaining ambient sound information of the environment in which the earphone is located collected by a microphone arranged on the earphone. Thereafter, step 404 is executed.
[0151] Step 404: whether the ambient sound information indicates that there is wind noise in the environment where the earphone is located. If yes, then execute step 405.
[0152] Step 405, the headset enters the transparency mode.
[0153] Step 406, obtaining ambient sound information of the environment in which the earphone is located collected by a microphone disposed on the earphone. Thereafter, step 407 is executed.
[0154] Step 407 , determining whether the ambient sound information indicates that there is noise in the environment where the earphone is located. If yes, then executing step 408 .
[0155] Step 408: the headset enters a noise reduction mode.
[0156] Step 409 , determining whether the motion state information indicates that the user of the headset is in a lying state. If so, executing step 410 .
[0157] Step 410, obtaining the user's heart rate information collected by the heart rate sensor disposed on the earphone. Then, step 411 is executed.
[0158] Step 411, determining whether the user's heart rate is less than or equal to a preset threshold. If so, then executing step 412.
[0159] Step 412, the headset enters sleep mode.
[0160] Specifically, when the subject of executing the headset control method is a headset, and the headset includes a heart rate sensor, a microphone (for example, one or more feedforward microphones and / or one or more feedback microphones), and an acceleration sensor, the headset control method can be implemented in the following manner:
[0161] The schematic diagram of the structure of the earphone provided in the embodiment of the present disclosure can be referred to as Figure 4B .exist Figure 4B In the embodiment, the execution body of the earphone control method can be a Bluetooth chip in the earphone.
[0162] First, the acceleration sensor is used to obtain the acceleration (i.e., motion status information) of the user of the headset once every predetermined time interval (for example, 3 seconds) to determine the current motion status; if the user is in motion, the microphone is used to detect wind noise. If there is wind noise, it is determined that the user is in an outdoor sports scene. At this time, the headset can be switched to transparent mode. If the user is not in motion, the microphone is used to detect the noise level to determine whether to switch the noise reduction function and automatically switch the noise reduction level. If the acceleration sensor detects that the user is lying down, the heart rate sensor is used to determine the user's sleeping state to switch the sound equalizer and start the timer shutdown function.
[0163] Here, the following scenario can be used to describe the above embodiment:
[0164] Scenario 1: In an office, a user is working. Suddenly, the next door is being renovated, so the user puts on headphones to listen to music. The headphones detect non-movement and continuous noise, and automatically switch to noise reduction mode, allowing the user to continue working. After a while, the noise disappears, and the headphones switch back to normal mode. At this time, a colleague calls the user, and because the headphones are not in noise reduction mode, the colleague's call can be heard.
[0165] Scenario 2: On a non-motorized vehicle lane in the city, the user is wearing headphones for navigation. The headphones detect wind noise and the user is in motion, so the headphones switch to transparent mode. Suddenly, an electric vehicle honks from behind. While listening to the navigation, the user can hear the horn very clearly, so he moves to the side, avoids danger, and continues riding.
[0166] Scenario 3: In a residential area, the user is wearing headphones and listening to music. He is lying on the bed and preparing to go to sleep. The headphones detect that the user is lying down, but it is still early and the commercial area downstairs is still very noisy. The headphones automatically switch to noise reduction mode and switch to the indoor sound equalizer. It is quiet late at night, and the noise reduction mode is exited. The heart rate gradually slows down, and the headphones switch to the sleep-specific sound equalizer and automatically set the timer shutdown function.
[0167] It can be understood that the detection technologies used in the above three scenarios are: using the stationary state detection algorithm and microphone noise detection of the accelerometer to determine the level of noise reduction processing that needs to be adjusted for the user's indoor scene headphones, using the accelerometer's user behavior detection algorithm and microphone wind noise detection to determine whether the user's outdoor sports scene should switch to the transparency mode, and using the accelerometer's user behavior detection algorithm and microphone noise detection to determine the user's sleeping mode.
[0168] In addition, the implementation of the above steps 401 to 412 can refer to Figure 2 The relevant description will not be repeated here.
[0169] The above embodiments can free the user's hands, intelligently distinguish different scenes, and switch different headphone modes, making it more convenient, flexible, and safer for users to use. A microphone, an acceleration sensor, and a heart rate sensor can be used in combination to determine the states of indoor, outdoor sports, and sleeping scenes, and perform adaptive switching of the headphone.
[0170] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a headset control device. The device embodiment corresponds to the above method embodiment. In addition to the features described below, the device embodiment may also include the same or corresponding features as the above method embodiment, and produce the same or corresponding effects as the above method embodiment. The device can be specifically applied to various electronic devices.
[0171] like Figure 5 As shown, the headset control device 500 of this embodiment includes: an acquisition unit 501, a first determination unit 502 and a control unit 503. The acquisition unit 501 is configured to acquire first information collected by a first sensor disposed on the headset and second information collected by a second sensor disposed on the headset; the first sensor includes an acceleration sensor, and the first information includes motion state information of the user of the headset; the first determination unit 502 is configured to determine the headset mode of the headset based on the first information and the second information; the control unit 503 is configured to control the headset to perform audio processing according to the control method indicated by the headset mode.
[0172] In this embodiment, the acquisition unit 501 of the earphone control device 500 may acquire first information collected by a first sensor disposed on the earphone and second information collected by a second sensor disposed on the earphone.
[0173] In this embodiment, the first determining unit 502 may determine the headphone mode of the headphone based on the first information and the second information.
[0174] In this embodiment, the control unit 503 may control the earphone to perform audio processing according to the control method indicated by the earphone mode.
[0175] In some optional implementations of this embodiment, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0176] The first determining unit 502 includes:
[0177] The first determination subunit (not shown in the figure) is configured to determine that the headphone mode of the headphone is a transparent mode when the motion state information indicates that the user is in motion and the ambient sound information indicates that there is wind noise in the environment where the headphone is located.
[0178] In some optional implementations of this embodiment, the control unit 503 is further configured to:
[0179] The ambient sound corresponding to the ambient sound information is amplified.
[0180] In some optional implementations of this embodiment, the apparatus 500 further includes:
[0181] The second determination unit (not shown in the figure) is configured to determine that the user is outdoors when the motion state information indicates that the user is in motion and the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
[0182] In some optional implementations of this embodiment, the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the earphone is located; and
[0183] The first determining unit 502 includes:
[0184] The second determination subunit (not shown in the figure) is configured to determine that the headphone mode of the headphone is a noise reduction mode when the motion state information indicates that the user is in a non-motion state and the ambient sound information indicates that there is noise in the environment where the headphone is located.
[0185] In some optional implementations of this embodiment, the control unit 503 is further configured to:
[0186] Generating an inverted audio frequency of the noise, wherein the sound wave amplitude of the inverted audio frequency is the same as the sound wave amplitude of the noise and the phase is opposite;
[0187] The above-mentioned inverted audio frequency is used to interfere with the above-mentioned noise.
[0188] In some optional implementations of this embodiment, the apparatus 500 further includes:
[0189] A third determination unit (not shown in the figure) is configured to determine that the user is indoors when the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that there is no noise in the environment where the earphone is located, or the ambient sound information indicates that the noise in the environment where the earphone is located is not wind noise.
[0190] In some optional implementations of this embodiment, whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located is determined in the following manner:
[0191] Based on the similarity between the waveform parameters of the sound in the environment where the earphone is located collected by the microphone and the preset wind noise model parameters, it is determined whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
[0192] In some optional implementations of this embodiment, the second sensor includes a heart rate sensor, and the second information includes heart rate information of the user; and
[0193] The first determining unit 502 includes:
[0194] The third determination subunit (not shown in the figure) is configured to determine that the headphone mode of the headphone is the sleep mode when the above-mentioned motion state information indicates that the above-mentioned user is in a lying state and the above-mentioned heart rate information indicates that the heart rate of the above-mentioned user is less than or equal to a preset threshold.
[0195] In some optional implementations of this embodiment, the control unit 503 is further configured to:
[0196] The audio played by the headphones is processed using an audio equalizer corresponding to the sleep mode.
[0197] In the device 500 provided by the above embodiment of the present disclosure, the acquisition unit 501 can acquire the first information collected by the first sensor provided on the above earphone and the second information collected by the second sensor provided on the above earphone, wherein the above first sensor includes an acceleration sensor, and the above first information includes the motion state information of the user of the above earphone. Afterwards, the first determination unit 502 can determine the earphone mode of the above earphone based on the above first information and the above second information. Finally, the control unit 503 can control the above earphone to perform audio processing according to the control method indicated by the above earphone mode. In this way, the embodiment of the present disclosure can determine the earphone mode based on the first information and the second information respectively collected by the first sensor and the second sensor provided on the earphone, and then control the earphone to perform audio processing, so as to comprehensively judge the earphone mode by fusing the information collected by at least two sensors, and automatically control the earphone, thereby improving the accuracy of the earphone mode judgment and improving the comfort, convenience and flexibility of the earphone use.
[0198] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure is provided. Figure 6 The electronic device 600 shown includes: at least one processor 601, a memory 602, and at least one network interface 604 and other user interfaces 603. The various components in the electronic device 600 are coupled together via a bus system 605. It is understood that the bus system 605 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 605 is not shown in FIG. Figure 6 Various buses are labeled as bus system 605 .
[0199] The user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0200] It can be understood that the memory 602 in the embodiment of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 602 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0201] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 6021 and an application 6022 .
[0202] The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present disclosure can be included in the application 6022.
[0203] In the embodiment of the present disclosure, by calling the program or instructions stored in the memory 602, specifically, the program or instructions stored in the application 6022, the processor 601 is used to execute the method steps provided by each method embodiment, for example including: obtaining first information collected by a first sensor provided on the above-mentioned earphone, and second information collected by a second sensor provided on the above-mentioned earphone; wherein the above-mentioned first sensor includes an acceleration sensor, and the above-mentioned first information includes the motion state information of the user of the above-mentioned earphone; based on the above-mentioned first information and the above-mentioned second information, determining the earphone mode of the above-mentioned earphone; and controlling the above-mentioned earphone to perform audio processing according to the control method indicated by the above-mentioned earphone mode.
[0204] The method disclosed in the above embodiment of the present disclosure can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.
[0205] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0206] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0207] The electronic device provided in this embodiment may be Figure 6 The electronic device shown in FIG. 1 may perform the following steps: Figure 2 All steps of the headphone control method in the Figure 2 For details, please refer to the technical effect of the headphone control method shown in Figure 2 For the sake of brevity, the relevant description is not repeated here.
[0208] The embodiments of the present disclosure also provide a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0209] When one or more programs in the storage medium can be executed by one or more processors, the earphone control method executed on the electronic device side can be implemented.
[0210] The processor is used to execute the communication program stored in the memory to implement the following steps of the earphone control method executed on the electronic device side: obtaining first information collected by a first sensor arranged on the above-mentioned earphone, and second information collected by a second sensor arranged on the above-mentioned earphone; wherein the above-mentioned first sensor includes an acceleration sensor, and the above-mentioned first information includes the motion state information of the user of the above-mentioned earphone; based on the above-mentioned first information and the above-mentioned second information, determining the earphone mode of the above-mentioned earphone; and controlling the above-mentioned earphone to perform audio processing according to the control method indicated by the above-mentioned earphone mode.
[0211] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0212] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0213] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present disclosure in detail. It should be understood that the above description is only the specific implementation methods of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A method for controlling a headset, characterized in that: The method comprises: Acquire first information collected by a first sensor disposed on the headset, and second information collected by a second sensor disposed on the headset; wherein the first sensor includes an acceleration sensor, and the first information includes motion state information of a user of the headset, wherein the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the headset is located; When the ambient sound information indicates that there is noise in the environment where the headset is located and the frequency of the noise is between 400 Hz and 1000 Hz, detecting whether there is wind noise in the environment where the headset is located; When the motion state information indicates that the user is in motion, and the ambient sound information indicates that wind noise exists in the environment where the earphone is located, determining that the earphone mode of the earphone is a transparent mode, wherein the wind noise represents noise generated by wind; When the motion state information indicates that the user is in a non-motion state, and the ambient sound information indicates that there is noise in the environment where the earphone is located, determining that the earphone mode of the earphone is a noise reduction mode; The headset is controlled to perform audio processing according to the control method indicated by the headset mode.
2. The method according to claim 1, characterized in that When it is determined that the headphone mode of the headphone is the transparent mode, controlling the headphone to perform audio processing according to the control method indicated by the headphone mode includes: The ambient sound corresponding to the ambient sound information is amplified.
3. The method according to claim 1, characterized in that When it is determined that the headphone mode of the headphone is a noise reduction mode, controlling the headphone to perform audio processing according to the control method indicated by the headphone mode includes: generating an inverted audio frequency of the noise, wherein the sound wave amplitude of the inverted audio frequency is the same as the sound wave amplitude of the noise and the phase is opposite; The anti-phase audio frequency is used to interfere with the noise.
4. The method according to any one of claims 1 to 3, characterized in that: Determining whether the ambient sound information indicates that wind noise exists in the environment where the headset is located is done in the following manner: Based on the similarity between the waveform parameters of the sound in the environment where the earphone is located collected by the microphone and the preset wind noise model parameters, it is determined whether the ambient sound information indicates that wind noise exists in the environment where the earphone is located.
5. The method according to claim 1, characterized in that: The second sensor includes a heart rate sensor, and the second information includes heart rate information of the user; as well as The method further comprises: When the motion state information indicates that the user is in a lying state, and the heart rate information indicates that the heart rate of the user is less than or equal to a preset threshold, it is determined that the headphone mode of the headphone is a sleep mode.
6. The method according to claim 5, characterized in that The controlling the headset to perform audio processing according to the control mode indicated by the headset mode includes: The audio played by the earphone is processed using an audio equalizer corresponding to the sleep mode.
7. An earphone control device, characterized in that: The device comprises: an acquisition unit, configured to acquire first information collected by a first sensor disposed on the headset, and second information collected by a second sensor disposed on the headset; wherein the first sensor includes an acceleration sensor, and the first information includes motion state information of a user of the headset, wherein the second sensor includes a microphone, and the second information includes ambient sound information of an environment in which the headset is located; The first determination unit is configured to detect whether there is wind noise in the environment where the headset is located when the ambient sound information indicates that there is noise in the environment where the headset is located and the frequency of the noise is between 400 Hz and 1000 Hz; determine that the headset mode of the headset is a transparent mode when the motion state information indicates that the user is in motion and the ambient sound information indicates that there is wind noise in the environment where the headset is located, wherein the wind noise represents the noise generated by wind; and determine that the headset mode of the headset is a noise reduction mode when the motion state information indicates that the user is in a non-motion state and the ambient sound information indicates that there is noise in the environment where the headset is located; The control unit is configured to control the headset to perform audio processing according to the control method indicated by the headset mode.
8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method for switching working mode of earphone and earphone
CN107105359A
Headset mode control method, device and computer readable storage medium
CN107613113A
Sound signal processing method, terminal, and headphones
CN108605073A
TWS earphone and control method, apparatus and device thereof
CN109451390A
Earphone and earphone control method and control device thereof, and readable storage medium
CN111698602A
