Headphone volume adjustment method, device, electronic device and readable storage medium

By using a photosensitive sensor in the headset to detect the intensity of light and adjust the volume, the problem in the existing technology that headphone volume adjustment requires a terminal device is solved, achieving higher convenience and user experience.

CN114827810BActive Publication Date: 2025-01-21GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210439595.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-01-21
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

In the prior art, the volume adjustment of Bluetooth headsets needs to be operated on the terminal device, and when the terminal device is not around the user, the user needs to find the device to adjust the volume, resulting in cumbersome operation and low convenience.

Method used

A photosensitive sensor is installed in the earphones to generate a level signal by detecting the intensity of the irradiated light, and adjust the volume based on the amplitude information of the signal, realizing the function of adjusting the volume without the need for a terminal device.

Benefits of technology

It improves the convenience of headphone volume adjustment. Users can adjust the volume directly on the headphone body by artificially changing the light intensity sensed by the photosensitive sensor, avoiding dependence on terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827810B_ABST
    Figure CN114827810B_ABST
Patent Text Reader

Abstract

The present application discloses a headphone volume adjustment method, device, electronic device and readable storage medium, wherein the headphone is provided with at least one photosensor, and the headphone volume adjustment method comprises: after detecting that the headphone is in a volume adjustment mode, detecting a first level signal output by the photosensor, wherein the photosensor is used to generate a level signal of corresponding amplitude according to the intensity of the irradiated light; and adjusting the volume of the headphone according to the amplitude information corresponding to the first level signal. The present application solves the technical problem of low convenience in adjusting the headphone volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone technology, and in particular to an earphone volume adjustment method, device, electronic device and readable storage medium. Background Art

[0002] With the development of mobile Internet, smart wearable devices have gradually penetrated into all aspects of life. For example, Bluetooth headsets are one of the most common smart wearable devices. At present, Bluetooth headsets establish a connection with terminal devices wirelessly to obtain and play audio. When users need to adjust the volume of Bluetooth headsets, they can increase or decrease the volume on the terminal device. However, when the terminal device is not with the user, the user usually needs to find the terminal device to adjust the volume of the Bluetooth headset, so the volume adjustment operation process is cumbersome and less convenient for users. Summary of the invention

[0003] The main purpose of the present application is to provide a headphone volume adjustment method, device, electronic device and readable storage medium, aiming to solve the technical problem of low convenience of headphone volume adjustment in the prior art.

[0004] To achieve the above object, the present application provides a headphone volume adjustment method, which is applied to a headphone, wherein the headphone is provided with at least one photosensor, and the headphone volume adjustment method comprises:

[0005] When it is detected that the headset is in volume adjustment mode, a first level signal output by the light sensor is detected, wherein the light sensor is used to generate a level signal of corresponding amplitude according to the intensity of the irradiated light;

[0006] The volume of the earphone is adjusted according to the amplitude information corresponding to the first level signal.

[0007] Optionally, the photosensor includes a first photosensor and a second photosensor disposed in different position areas of the earphone, and the step of adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal includes:

[0008] Determine a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor;

[0009] If the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, the volume of the earphone starts to be adjusted according to the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume.

[0010] Optionally, the step of starting to adjust the volume of the earphone according to the first signal amplitude difference until detecting that the volume of the earphone reaches a target volume adjustment includes:

[0011] If the first signal amplitude difference is negative, start to reduce the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume;

[0012] If the first signal amplitude difference is positive, the volume of the earphone starts to be increased until it is detected that the volume of the earphone reaches the target adjustment volume.

[0013] Optionally, the headphone volume adjustment method further includes:

[0014] Detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor;

[0015] If the second signal amplitude difference is not greater than the preset first difference threshold, it is determined that the volume of the earphone reaches the target adjustment volume.

[0016] Optionally, the photosensor includes a first photosensor and a second photosensor disposed in different position areas of the earphone, and after detecting that the earphone is in volume adjustment mode, detecting a first level signal output by the photosensor, wherein the photosensor is used to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light before the step, the earphone volume adjustment method further includes:

[0017] Detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor;

[0018] If the third signal amplitude difference is greater than a preset second difference threshold, the volume adjustment mode of the earphone is turned on.

[0019] Optionally, after the step of adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal, the earphone volume adjustment method further includes:

[0020] Detecting the number of times the signal amplitude of the fourth level signal output by the photosensor changes;

[0021] If the number of changes in the signal amplitude reaches a preset change number threshold, the volume adjustment mode of the headset is turned off.

[0022] Optionally, the headphone volume adjustment method further includes:

[0023] If the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on;

[0024] If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

[0025] To achieve the above object, the present application further provides an earphone volume adjustment device, which is applied to an earphone, wherein the earphone is provided with at least one photosensor, and the earphone volume adjustment device comprises:

[0026] A signal detection module, configured to detect a first level signal output by the light sensor when detecting that the headset is in a volume adjustment mode, wherein the light sensor is configured to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light;

[0027] The volume adjustment module is used to adjust the volume of the earphone according to the amplitude information corresponding to the first level signal.

[0028] Optionally, the photosensor includes a first photosensor and a second photosensor disposed in different position areas of the earphone, and the volume adjustment module is further used for:

[0029] Determine a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor;

[0030] If the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, the volume of the earphone starts to be adjusted according to the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume.

[0031] Optionally, the volume adjustment module is further used for:

[0032] If the first signal amplitude difference is negative, start to reduce the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume;

[0033] If the first signal amplitude difference is positive, the volume of the earphone starts to be increased until it is detected that the volume of the earphone reaches the target adjustment volume.

[0034] Optionally, the headphone volume adjustment device is further used for:

[0035] Detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor;

[0036] If the second signal amplitude difference is not greater than the preset first difference threshold, it is determined that the volume of the earphone reaches the target adjustment volume.

[0037] Optionally, the photosensitive sensor includes a first photosensitive sensor and a second photosensitive sensor disposed in different position areas of the earphone, and the earphone volume adjustment device is further used for:

[0038] Detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor;

[0039] If the third signal amplitude difference is greater than a preset second difference threshold, the volume adjustment mode of the earphone is turned on.

[0040] Optionally, the headphone volume adjustment device is further used for:

[0041] Detecting the number of times the signal amplitude of the fourth level signal output by the photosensor changes;

[0042] If the number of changes in the signal amplitude reaches a preset change number threshold, the volume adjustment mode of the headset is turned off.

[0043] Optionally, the headphone volume adjustment device is further used for:

[0044] If the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on;

[0045] If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

[0046] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a program of the headphone volume adjustment method stored in the memory and executable on the processor, and when the program of the headphone volume adjustment method is executed by the processor, the steps of the headphone volume adjustment method as described above can be implemented.

[0047] The present application also provides a computer-readable storage medium, on which is stored a program for implementing the headphone volume adjustment method. When the program for the headphone volume adjustment method is executed by a processor, the steps of the headphone volume adjustment method as described above are implemented.

[0048] The present application also provides a computer program product, including a computer program, which implements the steps of the headphone volume adjustment method as described above when the computer program is executed by a processor.

[0049] The present application provides a headphone volume adjustment method, device, electronic device and readable storage medium. Compared with the technical means used in the prior art to increase or decrease the volume on the terminal device when the user needs to adjust the volume of the Bluetooth headset, the present application detects the first level signal output by each photosensitive sensor on the headset after detecting that the headset turns on the volume adjustment mode, wherein the photosensitive sensor is used to generate a level signal corresponding to different amplitudes according to the intensity of the light irradiated on the headset; thereby adjusting the volume of the headset according to the amplitude information of the first level signal. The present application realizes the control of the volume adjustment of the headset by outputting a level signal of different amplitudes according to the intensity of the external light felt by the photosensitive sensor, so that the user can adjust the volume of the headset by artificially changing the intensity of the external light felt by the photosensitive sensor, so the user can adjust the volume of the headset by operating on the headset body, without having to adjust the volume of the headset by operating on the terminal device, so as to overcome the technical defects that when the terminal device is not with the user in the prior art, the user usually needs to find the terminal device to adjust the volume of the Bluetooth headset, so the volume adjustment operation process is cumbersome and the convenience is low for the user, and the convenience of the headset volume adjustment is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 This is a flow chart of a first embodiment of the headphone volume adjustment method of the present application;

[0053] Figure 2 This is a flow chart of a second embodiment of the headphone volume adjustment method of the present application;

[0054] Figure 3 Schematic diagram of the device structure of the hardware operating environment involved in the headphone volume adjustment method in the embodiment of the present application.

[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0056] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.

[0057] Embodiment 1

[0058] The present application provides a headphone volume adjustment method, which is applied to a headphone, wherein the headphone is provided with at least one light-sensitive sensor. Figure 1 In the first embodiment of the headphone volume adjustment method of the present application, the headphone volume adjustment method includes:

[0059] Step S10, when it is detected that the earphone is in volume adjustment mode, detecting a first level signal output by the photosensor, wherein the photosensor is used to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light;

[0060] Step S20: adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal.

[0061] In this embodiment, it should be noted that the headset is provided with a volume adjustment mode, and the user can control the volume adjustment mode to be turned on by a preset mode opening method, for example, the volume adjustment mode can be controlled to be turned on by tapping a preset area of ​​the headset, or the volume adjustment mode can be controlled to be turned on by blocking the light sensor for a preset time. For example, it can be set that when it is detected that the light sensor is continuously blocked for 2s, the volume adjustment mode can be triggered to be turned on. When the headset is in the volume adjustment mode, the user can control the headset volume adjustment by manually blocking the light sensor. The amplitude information can be the amplitude distribution information of the level signal output by each light sensor, or it can be the amplitude difference of the level signal output by each light sensor.

[0062] As an example, the headset is provided with a first photosensor and a second photosensor at different position areas, and steps S10 to S20 include:

[0063] When it is detected that the volume adjustment mode of the earphone is turned on, the first level signal output by the first photosensor and the first level signal output by the second photosensor are detected, wherein the photosensors are used to generate level signals of corresponding amplitudes according to the intensity of the irradiated light; the signal amplitude difference between the first level signal output by the first photosensor and the first level signal output by the second photosensor is calculated; and the earphone is controlled to adjust the volume according to the positive and negative sign and the absolute value of the signal amplitude difference.

[0064] As an example, the headset is provided with a photosensor, and the photosensor is provided with a first sensing position area and a second sensing position area. The photosensor will output a level signal of a corresponding amplitude according to the intensity of light irradiated on the first sensing position area, and will also output a level signal of a corresponding amplitude according to the intensity of light irradiated on the second sensing position area. Steps S10 to S20 include: when it is detected that the headset is turned on in a volume adjustment mode, detecting a first level signal corresponding to the first sensing position area output by the photosensor and a first level signal corresponding to the second sensing position area output by the second photosensor, wherein the photosensor is used to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light; calculating a first signal amplitude difference between the first level signal corresponding to the first sensing position area and the first level signal corresponding to the first sensing position area; and controlling the headset to adjust the volume according to the positive and negative and absolute value of the first signal amplitude difference.

[0065] As an example, the step of controlling the earphone to adjust the volume according to the positive or negative sign and the absolute value of the amplitude difference of the first signal includes:

[0066] If the absolute value of the first signal amplitude difference is greater than the preset first difference threshold, the volume of the earphone is controlled to decrease or increase according to the positive or negative of the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume, wherein the target adjustment volume is the target volume required by the wearer of the earphone, and whether the volume of the earphone reaches the target adjustment volume can be determined by detecting whether the earphone obtains the volume adjustment stop instruction, that is, when the earphone obtains the volume adjustment stop instruction, it is determined that the volume of the earphone reaches the target adjustment volume; otherwise, it is determined that the volume of the earphone does not reach the target adjustment volume. The volume adjustment stop instruction can be triggered by the wearer of the earphone performing a corresponding earphone operation, and the earphone operation can be tapping a preset area of ​​the earphone, or blocking the light sensor in a preset blocking manner. For example, in the volume adjustment mode, when it is detected that the wearer blocks the light sensor twice in a preset time period, the volume adjustment stop instruction is triggered.

[0067] The photosensitive sensor includes a first photosensitive sensor and a second photosensitive sensor disposed in different positions of the earphone. After detecting that the earphone is in volume adjustment mode, detecting a first level signal output by the photosensitive sensor. Before the step of generating a level signal of a corresponding amplitude according to the intensity of the irradiated light, the earphone volume adjustment method further includes:

[0068] Step A10, detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor;

[0069] Step A20: If the third signal amplitude difference is greater than a preset second difference threshold, the volume adjustment mode of the earphone is turned on.

[0070] In this embodiment, it should be noted that the preset second difference threshold may be set to be consistent with the preset first difference threshold, or may be set to be inconsistent with the preset first difference threshold, which is not limited here.

[0071] As an example, step A10 to step A20 include: detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor; if the third signal amplitude difference is greater than a preset second difference threshold, it is determined that the user wearing the headset has artificially blocked the photosensor, proving that the user wearing the headset wants to turn on the volume adjustment mode, and therefore the volume adjustment mode of the headset is turned on; otherwise, the volume adjustment mode of the headset is not turned on.

[0072] As an example, the headphone volume adjustment method further includes: detecting the third level signal output by the photosensitive sensor; determining the number of amplitude changes of the third level signal within a preset time period, and if the number of amplitude changes reaches the preset number of amplitude changes, it is determined that the wearer of the headphone is artificially blocking the photosensitive sensor on the headphone, thereby determining that the wearer has the intention to turn on the volume adjustment mode, and thus turning on the volume adjustment mode of the headphone, otherwise, not turning on the volume adjustment mode of the headphone. Wherein, assuming that the amplitude of the third level signal output by the photosensitive sensor under ambient light is A, and the amplitude of the third level signal output after the photosensitive sensor is blocked is B, if the amplitude of the third level signal output by the photosensitive sensor within 2s first increases from A to B, then resets to A, then increases from A to B, and then resets to A, and the number of amplitude changes is 2 at this time, it proves that the wearer of the headphone has continuously blocked the photosensitive sensor 2 times within 2s, and then determines that the wearer has the intention to turn on the volume adjustment mode.

[0073] Wherein, after the step of adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal, the earphone volume adjustment method further includes:

[0074] Step B10, detecting the number of times the signal amplitude of the fourth level signal output by the photosensor changes;

[0075] Step B20: If the number of changes in the signal amplitude reaches a preset change number threshold, the volume adjustment mode of the headset is turned off.

[0076] As an example, step B10 to step B20 include: detecting a fourth level signal output by the photosensor; determining, based on the amplitude change information of the fourth level signal, the number of times the amplitude of the fourth level signal changes compared to the standard amplitude, to obtain the number of signal amplitude changes, wherein the standard amplitude is the amplitude output by the photosensor when ambient light is irradiated on the photosensor; if the number of signal amplitude changes reaches a preset change number threshold, it is determined that the user wearing the headset has a need to turn off the volume adjustment mode of the headset, thereby turning off the volume adjustment mode of the headset.

[0077] As an example, at least two photosensors may be provided on the headset. When one of the photosensors is blocked artificially, the photosensor will output a level signal generated due to the blockage, such as the fourth level signal. The other photosensor, since it is not blocked artificially, can output a level signal generated under the irradiation of ambient light, that is, a level signal with a standard amplitude.

[0078] As an example, the earphone includes a first-side earphone and a second-side earphone. For example, the first-side earphone may be a left-side earphone, and the second-side earphone may be a right-side earphone. Two light sensors may be respectively arranged on the first-side earphone and the second-side earphone.

[0079] As an example, it should be noted that if two photosensors are respectively arranged on the first earphone and the second earphone, when in a point light source environment, if the head of the user wearing the earphone is facing the point light source, the difference in the intensity of the light irradiated on the two photosensors is large, so the accuracy of volume adjustment based on the difference in signal amplitude between the level signals output by the two photosensors is not high. Therefore, the two photosensors can be arranged in different position areas of the first earphone, or in different position areas of the second earphone. At this time, even in a point light source environment, the intensity of the light irradiated on the two light source sensors will not differ too much, so that the accuracy of volume adjustment based on the difference in signal amplitude between the level signals output by the two photosensors can be guaranteed.

[0080] Wherein, the headphone volume adjustment method further includes:

[0081] Step C10, if the signal amplitude of the level signal output by the photosensitive sensor is greater than a preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on;

[0082] Step C20: If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

[0083] In this embodiment, it should be noted that when the external ambient light is weak, even if the wearer manually blocks the photosensor, the change in the light intensity sensed by the photosensor is not obvious, and therefore the signal amplitude change of the level signal output by the photosensor is not obvious. Therefore, it is difficult to use the signal amplitude difference of the level signals output by multiple photosensors to accurately determine whether to turn on the volume adjustment mode of the headphones.

[0084] As an example, steps C10 to C20 include: if the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, it proves that the intensity of the external ambient light is high, and it can be ensured that the signal amplitude difference of the level signals output by multiple photosensitive sensors can be used to accurately determine whether to turn on the volume adjustment mode of the earphone, and therefore the volume adjustment mode is allowed to be turned on; if the signal amplitude of the level signal output by the photosensitive sensor is not greater than the preset signal amplitude threshold, it proves that the intensity of the external ambient light is low, and it cannot be ensured that the signal amplitude difference of the level signals output by multiple photosensitive sensors can be used to accurately determine whether to turn on the volume adjustment mode of the earphone, and therefore the volume adjustment mode is allowed to be turned on, and therefore the volume adjustment mode is prohibited from being turned on to prevent accidental touch.

[0085] The embodiment of the present application provides a method for adjusting the volume of a headset. Compared with the technical means used in the prior art to increase or decrease the volume on the terminal device when the user needs to adjust the volume of the Bluetooth headset, the embodiment of the present application detects the first level signal output by each photosensitive sensor on the headset after detecting that the headset turns on the volume adjustment mode, wherein the photosensitive sensor is used to generate a level signal corresponding to different amplitudes according to the intensity of the light irradiated on the headset; thereby adjusting the volume of the headset according to the amplitude information of the first level signal. The embodiment of the present application realizes the control of the volume adjustment of the headset by outputting a level signal of different amplitudes according to the intensity of the external light felt by the photosensitive sensor, so that the user can adjust the volume of the headset by artificially changing the intensity of the external light felt by the photosensitive sensor, so the user can adjust the volume of the headset by operating on the headset body, without having to adjust the volume of the headset by operating on the terminal device, so as to overcome the technical defects that when the terminal device is not with the user in the prior art, the user usually needs to find the terminal device to adjust the volume of the Bluetooth headset, so the volume adjustment operation process is cumbersome and the convenience is low for the user, and the convenience of headset volume adjustment is improved.

[0086] Embodiment 2

[0087] Reference Figure 2 Based on the first embodiment of the headphone volume adjustment method of the present application, in another embodiment of the present application, the photosensor includes a first photosensor and a second photosensor disposed in different position areas of the headphone, and the step of adjusting the volume of the headphone according to the amplitude information corresponding to the first level signal includes:

[0088] Step S21, determining a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor;

[0089] Step S22: If the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, start adjusting the volume of the earphone according to the first signal amplitude difference until it is detected that the volume of the earphone reaches a target adjustment volume.

[0090] The step of starting to adjust the volume of the earphone according to the first signal amplitude difference until detecting that the volume of the earphone reaches a target volume adjustment includes:

[0091] Step S221, if the first signal amplitude difference is negative, start to reduce the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume;

[0092] Step S222: If the first signal amplitude difference is positive, start to increase the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume.

[0093] As an example, step S221 to step S222 include: if the first signal amplitude difference is negative, it proves that the amplitude of the level signal output by the first photosensor is less than the amplitude of the level signal output by the second photosensor, thereby determining that the first photosensor is artificially blocked by the user wearing the headset, and then starting to increase the volume of the headset in stages at a preset volume adjustment rate until it is detected that the volume of the headset reaches the target adjustment volume. For example, assuming that the preset volume adjustment rate is 10%, and the initial volume before the volume adjustment starts is 10, then every 1s, the initial volume is increased by 10% based on the initial volume. volume, that is, the volume increased by 1 per second; if the first signal amplitude difference is positive, it proves that the amplitude of the level signal output by the first photosensor is greater than the amplitude of the level signal output by the second photosensor, thereby determining that the first photosensor is artificially blocked by the user wearing the headset, and then starting to reduce the volume of the headset until it is detected that the volume of the headset reaches the target adjustment volume. For example, assuming that the preset volume adjustment rate is 10%, and the initial volume before the volume adjustment starts is 10, then every 1s, the volume is reduced by 10% based on the initial volume, that is, the volume is reduced by 1 per second.

[0094] Wherein, the headphone volume adjustment method further includes:

[0095] Step D10, detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor;

[0096] Step D20: If the second signal amplitude difference is not greater than the preset first difference threshold, it is determined that the volume of the earphone reaches the target adjustment volume.

[0097] In this embodiment, it should be noted that the second level signal is a level signal detected when the volume of the earphone is adjusted.

[0098] As an example, step D10 to step D20 include: detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor; if the second signal amplitude difference is not greater than the preset first difference threshold, it proves that neither the first photosensor nor the second photosensor is artificially blocked, and the first photosensor or the second photosensor changes from a state of being artificially blocked by the wearer to a state of not being artificially blocked by the wearer, thereby determining that the wearer of the headset has the intention to stop adjusting the volume, and further determining that the volume of the headset reaches the target adjustment volume.

[0099] An embodiment of the present application provides a volume adjustment method, namely, determining a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor; if the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, then adjusting the volume of the earphone according to the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume. Among them, it can be judged whether the first photosensor or the second photosensor is artificially blocked by the wearer according to the positive or negative value of the difference in the amplitude of the first signal. If the first photosensor is artificially blocked, the volume of the earphone is lowered until it is detected that the volume of the earphone reaches the target adjustment volume; if the second photosensor is artificially blocked, the volume of the earphone is raised until it is detected that the volume of the earphone reaches the target adjustment volume. Therefore, the user can increase or decrease the volume of the earphone by artificially changing the intensity of external light sensed by different photosensors. Therefore, the user can adjust the volume of the earphone by operating on the earphone body, and there is no need to adjust the volume of the earphone by operating on the terminal device. Therefore, it overcomes the technical defect that when the terminal device is not with the user in the prior art, the user usually needs to find the terminal device to adjust the volume of the Bluetooth headset, so the volume adjustment operation process is cumbersome and the convenience is low for the user, thereby improving the convenience of earphone volume adjustment.

[0100] Embodiment 3

[0101] The present application also provides an earphone volume adjustment device, which is applied to an earphone, wherein the earphone is provided with at least one photosensor, and the earphone volume adjustment device comprises:

[0102] A signal detection module, configured to detect a first level signal output by the light sensor when detecting that the headset is in a volume adjustment mode, wherein the light sensor is configured to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light;

[0103] The volume adjustment module is used to adjust the volume of the earphone according to the amplitude information corresponding to the first level signal.

[0104] Optionally, the photosensor includes a first photosensor and a second photosensor disposed in different position areas of the earphone, and the volume adjustment module is further used for:

[0105] Determine a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor;

[0106] If the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, the volume of the earphone starts to be adjusted according to the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume.

[0107] Optionally, the volume adjustment module is further used for:

[0108] If the first signal amplitude difference is negative, start to reduce the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume;

[0109] If the first signal amplitude difference is positive, the volume of the earphone starts to be increased until it is detected that the volume of the earphone reaches the target adjustment volume.

[0110] Optionally, the headphone volume adjustment device is further used for:

[0111] Detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor;

[0112] If the second signal amplitude difference is not greater than the preset first difference threshold, it is determined that the volume of the earphone reaches the target adjustment volume.

[0113] Optionally, the photosensitive sensor includes a first photosensitive sensor and a second photosensitive sensor disposed in different position areas of the earphone, and the earphone volume adjustment device is further used for:

[0114] Detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor;

[0115] If the third signal amplitude difference is greater than a preset second difference threshold, the volume adjustment mode of the earphone is turned on.

[0116] Optionally, the headphone volume adjustment device is further used for:

[0117] Detecting the number of times the signal amplitude of the fourth level signal output by the photosensor changes;

[0118] If the number of changes in the signal amplitude reaches a preset change number threshold, the volume adjustment mode of the headset is turned off.

[0119] Optionally, the headphone volume adjustment device is further used for:

[0120] If the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on;

[0121] If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

[0122] The headphone volume adjustment device provided by the present application adopts the headphone volume adjustment method in the above embodiment to solve the technical problem of low convenience of headphone volume adjustment. Compared with the prior art, the beneficial effects of the headphone volume adjustment device provided by the embodiment of the present application are the same as the beneficial effects of the headphone volume adjustment method provided by the above embodiment, and other technical features in the headphone volume adjustment device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0123] Embodiment 4

[0124] An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the headphone volume adjustment method in the above-mentioned embodiment 1.

[0125] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0126] like Figure 3As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0127] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0129] The electronic device provided by the present application adopts the headphone volume adjustment method in the above embodiment to solve the technical problem of low convenience of headphone volume adjustment. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the headphone volume adjustment method provided by the above embodiment 1, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0130] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0132] Embodiment 5

[0133] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the headphone volume adjustment method in the above-mentioned embodiment 1.

[0134] The computer-readable storage medium provided in the embodiment of the present application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a system or a device or used in combination with it. The program code contained on the computer-readable storage medium can be transmitted with any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0135] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0136] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: when detecting that the volume adjustment mode of the earphone is turned on, detects the first level signal output by the photosensor, wherein the photosensor is used to generate a level signal of corresponding amplitude according to the intensity of the irradiated light; and adjusts the volume of the earphone according to the amplitude information corresponding to the first level signal.

[0137] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0138] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0140] The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above-mentioned headphone volume adjustment method, which solves the technical problem of low convenience in adjusting the headphone volume. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the headphone volume adjustment method provided in the above-mentioned embodiment, and will not be described in detail here.

[0141] Embodiment 6

[0142] The present application also provides a computer program product, including a computer program, which implements the steps of the headphone volume adjustment method as described above when the computer program is executed by a processor.

[0143] The computer program product provided by the present application solves the technical problem of low convenience in adjusting the volume of headphones. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the headphone volume adjustment method provided by the above embodiment, which will not be repeated here.

[0144] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A method for adjusting the volume of an earphone, characterized in that: Applied to earphones, the earphones are provided with at least one photosensor, the photosensors include a first photosensor and a second photosensor provided at different positions of the earphones, the earphones include a first-side earphone and a second-side earphone, the first photosensor and the second photosensor are both provided at different positions of the first-side earphones, or the first photosensor and the second photosensor are both provided at different positions of the second-side earphones, and the earphone volume adjustment method includes: When it is detected that the headset is in volume adjustment mode, a first level signal output by the light sensor is detected, wherein the light sensor is used to generate a level signal of corresponding amplitude according to the intensity of the irradiated light; adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal; Before the step of detecting the first level signal output by the photosensor after detecting that the headset is in volume adjustment mode, wherein the photosensor is used to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light, the headset volume adjustment method further includes: Turning on the volume adjustment mode by tapping the preset zone control of the headset; The headphone volume adjustment method further includes: If the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on; If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

2. The headphone volume adjustment method according to claim 1, characterized in that: The step of adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal comprises: Determine a first signal amplitude difference between a first level signal output by the first photosensor and a first level signal output by the second photosensor; If the absolute value of the first signal amplitude difference is greater than a preset first difference threshold, the volume of the earphone starts to be adjusted according to the first signal amplitude difference until it is detected that the volume of the earphone reaches the target adjustment volume.

3. The headphone volume adjustment method according to claim 2, characterized in that: The step of starting to adjust the volume of the earphone according to the first signal amplitude difference until detecting that the volume of the earphone reaches a target volume adjustment includes: If the first signal amplitude difference is negative, start to reduce the volume of the earphone until it is detected that the volume of the earphone reaches the target adjustment volume; If the first signal amplitude difference is positive, the volume of the earphone starts to be increased until it is detected that the volume of the earphone reaches the target adjustment volume.

4. The headphone volume adjustment method according to any one of claims 2 or 3, characterized in that: The headphone volume adjustment method further includes: Detecting a second signal amplitude difference between a second level signal output by the first photosensor and a second level signal output by the second photosensor; If the second signal amplitude difference is not greater than the preset first difference threshold, it is determined that the volume of the earphone reaches the target adjustment volume.

5. The headphone volume adjustment method according to claim 1, wherein: Before the step of detecting the first level signal output by the photosensor after detecting that the headset is in volume adjustment mode, wherein the photosensor is used to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light, the headset volume adjustment method further includes: Detecting a third signal amplitude difference between a third level signal output by the first photosensor and a third level signal output by the second photosensor; If the third signal amplitude difference is greater than a preset second difference threshold, the volume adjustment mode of the earphone is turned on.

6. The headphone volume adjustment method according to claim 1, characterized in that: After the step of adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal, the earphone volume adjustment method further includes: Detecting the number of times the signal amplitude of the fourth level signal output by the photosensor changes; If the number of changes in the signal amplitude reaches a preset change number threshold, the volume adjustment mode of the headset is turned off.

7. A headphone volume adjustment device, characterized in that: Applied to earphones, the earphones are provided with at least one photosensor, the photosensors include a first photosensor and a second photosensor provided at different positions of the earphones, the earphones include a first-side earphone and a second-side earphone, the first photosensor and the second photosensor are both provided at different positions of the first-side earphones, or the first photosensor and the second photosensor are both provided at different positions of the second-side earphones, and the earphone volume adjustment device includes: A signal detection module, configured to detect a first level signal output by the light sensor when detecting that the headset is in a volume adjustment mode, wherein the light sensor is configured to generate a level signal of a corresponding amplitude according to the intensity of the irradiated light; A volume adjustment module, used for adjusting the volume of the earphone according to the amplitude information corresponding to the first level signal; The headphone volume adjustment device is also used for: Turning on the volume adjustment mode by tapping the preset zone control of the headset; The headphone volume adjustment device is also used for: If the signal amplitude of the level signal output by the photosensitive sensor is greater than the preset signal amplitude threshold, the volume adjustment mode is allowed to be turned on; If the signal amplitude of the level signal output by the light sensor is not greater than the preset signal amplitude threshold, the volume adjustment mode is prohibited from being turned on.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the headphone volume adjustment method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for implementing the headphone volume adjustment method, and the program for implementing the headphone volume adjustment method is executed by a processor to implement the steps of the headphone volume adjustment method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Earphone control method and device, electronic equipment and storage medium

    CN113490090A

  • Headphone volume control device

    CN205812336U