CN112272342B - Automatic volume adjusting method and device, bluetooth headset and storage medium - Google Patents

Automatic volume adjusting method and device, bluetooth headset and storage medium Download PDF

Info

Publication number
CN112272342B
CN112272342B CN202011173265.3A CN202011173265A CN112272342B CN 112272342 B CN112272342 B CN 112272342B CN 202011173265 A CN202011173265 A CN 202011173265A CN 112272342 B CN112272342 B CN 112272342B
Authority
CN
China
Prior art keywords
preset
distance
volume
value
bluetooth headset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011173265.3A
Other languages
Chinese (zh)
Other versions
CN112272342A (en
Inventor
李重
王福强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wingtech Information Technology Co Ltd
Original Assignee
Shanghai Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Information Technology Co Ltd filed Critical Shanghai Wingtech Information Technology Co Ltd
Priority to CN202011173265.3A priority Critical patent/CN112272342B/en
Publication of CN112272342A publication Critical patent/CN112272342A/en
Application granted granted Critical
Publication of CN112272342B publication Critical patent/CN112272342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention relates to the technical field of Bluetooth headphones, and provides a method and a device for automatically adjusting volume, a Bluetooth headphone and a storage medium, wherein the method is applied to the Bluetooth headphone, and a distance sensor and a loudspeaker are arranged in the Bluetooth headphone, and the method comprises the following steps: acquiring the distance between the Bluetooth headset and the ear, which is detected by a distance sensor; if the distance is smaller than or equal to the preset value, determining a target volume value according to the distance; the volume output to the speaker is adjusted to a target volume value. According to the invention, the volume of the loudspeaker in the Bluetooth headset can be automatically adjusted according to the detected distance between the Bluetooth headset and the ear, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved.

Description

Automatic volume adjusting method and device, bluetooth headset and storage medium
Technical Field
The invention relates to the technical field of Bluetooth headphones, in particular to a method and a device for automatically adjusting volume, a Bluetooth headphone and a storage medium.
Background
The bluetooth headset has the advantages of no data line, easy carrying and the like, so that the popularity is higher, the requirements of users on various performances and use comfort of the bluetooth headset are higher, and the bluetooth headset plugged into the ear can move outwards in the ear due to the pressure and movement or various accidental touches of the ear, so that a semi-plugged state without dropping is formed, and the volume fed into the ear can be influenced.
In order to ensure that the volume of the sound sent to the ear is not affected, the existing solution is to press the Bluetooth headset to be plugged or manually adjust the volume of the Bluetooth headset when the Bluetooth headset is in a semi-plugged state.
The existing solutions require manual intervention by a user, which reduces the comfort of use and affects the user experience.
Disclosure of Invention
The embodiment of the invention aims to provide a volume automatic adjusting method, a device, a Bluetooth headset and a storage medium, which can automatically adjust the volume of a loudspeaker in the Bluetooth headset according to the detected distance between the Bluetooth headset and the ear, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved.
In order to achieve the above object, the technical scheme adopted by the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a method for automatically adjusting a volume, which is applied to a bluetooth headset, where a distance sensor and a speaker are disposed in the bluetooth headset, and the method includes:
acquiring the distance between the Bluetooth headset and the ear detected by the distance sensor;
if the distance is smaller than or equal to a preset value, determining a target volume value according to the distance;
and adjusting the volume output to the loudspeaker to the target volume value.
In one embodiment, the bluetooth headset stores a first preset range and a corresponding first preset volume value, and a second preset range and a corresponding second preset volume value in advance, wherein a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the step of determining the target volume value according to the distance includes:
if the distance is within the first preset range, the first preset volume value is used as the target volume value;
and if the distance is within the second preset range, taking the second preset volume value as the target volume value.
In one embodiment, the method further comprises:
and if the distance is larger than the preset value, closing the automatic volume adjusting function.
In one embodiment, the bluetooth headset is communicatively connected to a terminal, where the terminal stores a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value in advance, where a maximum value of the first preset range is smaller than a minimum value of the second preset range, and the first preset volume value is smaller than the second preset volume value, and the method further includes:
transmitting the distance to the terminal;
when the terminal judges that the distance is smaller than or equal to the preset value and is within the first preset range, receiving the first preset volume sent by the terminal;
and taking the first preset volume value as the target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, when the terminal is determining that the distance is less than or equal to the preset value and within the second preset range, receiving the second preset volume sent by the terminal;
and taking the second preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, the bluetooth headset is in communication connection with a terminal, and the bluetooth headset turns on the automatic volume adjustment function in advance, and the method further includes:
transmitting the distance to the terminal so that the terminal transmits a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is larger than the preset value;
and receiving the closing command and closing the automatic volume adjusting function.
In a second aspect, an embodiment of the present invention provides an automatic volume adjustment device, which is applied to a bluetooth headset, wherein a distance sensor and a speaker are disposed in the bluetooth headset, and the device includes:
the acquisition module is used for acquiring the distance between the Bluetooth headset and the ear, which is detected by the distance sensor;
the determining module is used for determining a target volume value according to the distance if the distance is smaller than or equal to a preset value;
and the adjusting module is used for adjusting the volume output to the loudspeaker to the target volume value.
In one embodiment, the bluetooth headset stores a first preset range and a corresponding first preset volume value, and a second preset range and a corresponding second preset volume value in advance, where a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the determining module is specifically configured to:
if the distance is within the first preset range, the first preset volume value is used as the target volume value;
and if the distance is within the second preset range, taking the second preset volume value as the target volume value.
In a third aspect, an embodiment of the present invention provides a bluetooth headset, in which a distance sensor and a speaker are disposed, the bluetooth headset includes:
one or more processors;
and a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the automatic volume adjustment method as described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the above-described automatic volume adjustment method.
Compared with the prior art, the embodiment of the invention provides a method and a device for automatically adjusting the volume, a Bluetooth headset and a storage medium, wherein the Bluetooth headset acquires the distance between the Bluetooth headset and an ear detected by a distance sensor, if the distance is smaller than or equal to a preset value, a target volume value is determined according to the distance, and the volume output to a loudspeaker is adjusted to the target volume value, so that the automatic adjustment of the volume of the loudspeaker is realized when the distance between the Bluetooth headset and the ear is changed, a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a diagram illustrating an example of a relative position between a bluetooth headset and an ear according to an embodiment of the present invention.
Fig. 2 shows an application scenario diagram provided by an embodiment of the present invention.
Fig. 3 is a schematic block diagram of a bluetooth headset according to an embodiment of the present invention.
Fig. 4 shows a flowchart of a method for automatically adjusting volume according to an embodiment of the present invention.
Fig. 5 shows a flowchart of another automatic volume adjustment method according to an embodiment of the present invention.
Fig. 6 shows a flowchart of another automatic volume adjustment method according to an embodiment of the present invention.
Fig. 7 is a flowchart of another automatic volume adjustment method according to an embodiment of the present invention.
Fig. 8 is a flowchart of another automatic volume adjustment method according to an embodiment of the present invention.
Fig. 9 is a block diagram of an automatic volume adjustment device according to an embodiment of the present invention.
Icon: 10-Bluetooth headset; 11-a processor; 12-memory; 13-a peripheral interface; 14-a communication interface; 15-a distance sensor; 16-a speaker; 20-terminal; 100-automatic volume adjusting device; 110-an acquisition module; 120-determining a module; 130-an adjustment module; 140-shut down module.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present invention, it should be noted that, if the terms "upper", "lower", "inner", "outer", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present invention and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus it should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
When in use, the Bluetooth headset is usually placed at the entrance of the external auditory canal of a user and is closely attached to the skin at the entrance of the external auditory canal, please refer to fig. 1, fig. 1 (a) shows an exemplary diagram of the placement position of the Bluetooth headset during normal use, when the user moves or touches various accidents, the Bluetooth headset is separated from the skin at the entrance of the external auditory canal, the Bluetooth headset is in a non-falling half-plugged state, and fig. 1 (b) shows an exemplary diagram of the Bluetooth headset in the non-falling half-plugged state. As can be seen from fig. 1, when the bluetooth headset is separated from the skin at the entrance of the external auditory canal by a certain distance, the volume heard by the user tends to be reduced without changing the volume, thereby affecting the effect of hearing the sound by the user.
In view of the above problems, embodiments of the present invention provide a method and an apparatus for automatically adjusting the volume of a speaker in a bluetooth headset, and a storage medium, which can automatically adjust the volume of the speaker in the bluetooth headset according to the distance between the bluetooth headset and the ear, without requiring a user to manually adjust the volume, thereby improving the comfort level of use and improving the user experience, and will be described in detail below.
Referring to fig. 2, fig. 2 shows an application scenario provided by an embodiment of the present invention, in fig. 2, a bluetooth headset 10 is in communication connection with a terminal 20 through a bluetooth network, a user may perform an operation of turning on or off a volume automatic adjustment function through software on the terminal 20, the terminal 20 generates an on or off command based on the operation, and sends the on or off command to the bluetooth headset 10 through the bluetooth network, so that the bluetooth headset 10 turns on or off the volume automatic adjustment function.
As a specific embodiment, the bluetooth headset 10 may also send the detected distance between the bluetooth headset and the ear to the terminal 20, so that the terminal 20 determines a target volume value to be adjusted according to the distance, and returns the target volume value to the bluetooth headset 10, and the bluetooth headset 10 adjusts the volume of the speaker according to the target volume value.
As another specific embodiment, the bluetooth headset 10 may also determine the target volume value to be adjusted according to the detected distance between the bluetooth headset and the ear, and then adjust the volume of the speaker according to the target volume value.
The terminal 20 may be a mobile terminal such as a smart phone, a tablet computer, or a smart bracelet, or may be an non-mobile terminal such as a host computer.
On the basis of fig. 2, the embodiment of the present invention further provides a block schematic diagram of the bluetooth headset 10 in fig. 2, referring to fig. 3, fig. 3 shows a block schematic diagram of the bluetooth headset provided in the embodiment of the present invention, the bluetooth headset 10 includes a processor 11, a memory 12, a peripheral interface 13 and a communication interface 14, the processor 11 and the memory 12 interact data with a distance sensor 15 and a speaker 16 through the peripheral interface 13, and the processor 11 communicates with a terminal 20 through the communication interface 14.
The processor 11 may be an integrated circuit chip with signal processing capabilities. In an implementation, the steps of the automatic volume adjustment method may be performed by an integrated logic circuit based on hardware in the processor 11 or by instructions in the form of software. The processor 11 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), and the like; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The memory 12 is used for storing programs such as the automatic volume adjustment device described above. The automatic volume adjustment means comprises at least one software function which may be stored in the memory 12 in the form of software or firmware (firmware) or which is solidified in the control system of the bluetooth headset 10. After receiving the execution instruction, the processor 11 executes the above-described program to implement the automatic volume adjustment method disclosed in the following embodiment.
The distance sensor 15 is a sensor for measuring the distance of an object using ultrasonic waves or laser light, and is mainly used to measure the law of the position change of a moving object with time, and the distance sensor 15 may be, but is not limited to, a laser distance sensor, an ultrasonic distance sensor, and the like.
The speaker 16 is also called a "horn" and is an electroacoustic transducer device capable of converting an electrical signal into an acoustic signal, and the speaker 16 includes, but is not limited to, an electrodynamic speaker, an electrostatic speaker, an electromagnetic speaker, a piezoelectric speaker, and the like.
On the basis of fig. 2 and 3, the embodiment of the present invention provides a method for automatically adjusting the volume of the bluetooth headset 10 in fig. 2 and 3, please refer to fig. 4, fig. 4 shows a flowchart of a method for automatically adjusting the volume provided by the embodiment of the present invention, the method includes the following steps:
step S100, the distance between the Bluetooth headset and the ear detected by the distance sensor is obtained.
In this embodiment, the distance sensor may detect the distance between the bluetooth headset 10 and the ear according to a preset frequency, and send the detected distance to the bluetooth headset 10, and the bluetooth headset 10 may also acquire the detected distance between the bluetooth headset 10 and the ear from the distance sensor according to a preset period.
In this embodiment, in order to be more suitable for the use habit of the user and improve the user experience, the embodiment of the invention sets the on and off functions of the automatic volume adjusting function for the bluetooth headset 10, so that the user can pre-start or close the automatic volume adjusting function according to the needs of the user, when the automatic volume adjusting function is closed, the distance between the bluetooth headset 10 and the ear is not detected by the distance sensor, and the volume is not automatically adjusted along with the change of the distance, thereby reducing the power consumption generated when the distance sensor 15 is opened. When the automatic volume adjusting function is turned on, the distance sensor 15 detects the distance between the bluetooth headset 10 and the ear, and the bluetooth headset 10 adjusts the output to the speaker 16 according to the distance.
Step S110, if the distance is smaller than or equal to the preset value, determining the target volume value according to the distance.
In this embodiment, the preset value is used to indicate that the distance between the bluetooth headset 10 and the ear exceeds the normal listening distance, which means that the bluetooth headset 10 is removed from the ear with a high probability, and the user no longer needs to acquire the sound through the bluetooth headset.
In this embodiment, the larger the distance, the larger the volume value to which the speaker needs to be adjusted in order not to affect the user's listening effect, and conversely, the smaller the volume value to which the speaker needs to be adjusted. If the distance is greater than the preset value, it is considered that the user has removed the bluetooth headset 10, and the automatic volume adjusting function may be turned off at this time so as not to increase power consumption.
Step S120, the volume output to the speaker is adjusted to the target volume value.
In this embodiment, the bluetooth headset 10 can control the intensity of the electrical signal output to the speaker 16, so as to realize automatic adjustment of the volume output to the speaker 16.
According to the method provided by the embodiment of the invention, the volume of the loudspeaker in the Bluetooth headset can be automatically adjusted according to the detected distance between the Bluetooth headset and the ear, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved.
On the basis of fig. 4, the present invention provides an implementation manner of determining the target volume value, referring to fig. 5, step S110 further includes the following sub-steps:
in sub-step S110-10, if the distance is within the first preset range, the first preset volume value is used as the target volume value.
In this embodiment, the first preset range and the second preset range are different ranges of the preset distance between the bluetooth headset 10 and the ear, wherein the maximum value of the first preset range is smaller than the minimum value of the second preset range, for example, the first preset range is [1, 10], the second preset range is [20, 40], the first preset volume value is a volume value corresponding to the first preset range, that is, when the distance between the bluetooth headset 10 and the ear is within the first preset range, in order not to affect the listening effect, the volume value of the volume adjustment is needed, and the second preset volume value is similar to the volume value corresponding to the second preset range. Obviously, the larger the distance, the larger the volume value that needs to be adjusted to, and therefore, the first preset volume value is smaller than the second preset volume value.
And step S110-11, if the distance is within the second preset range, the second preset volume value is taken as the target volume value.
According to the method provided by the embodiment of the invention, according to the difference of the preset range of the distance between the Bluetooth headset 10 and the ear, different target volume values to be adjusted can be automatically determined, and as the distance is in the same preset range and corresponds to the same target volume value, the power consumption increased by repeatedly adjusting the volume can be avoided, meanwhile, the listening effect of a user is relatively stable, and the user experience is improved.
In this embodiment, in some situations, when the user removes the bluetooth headset 10 without using the bluetooth headset 10, in order to avoid unnecessary automatic adjustment of the volume to increase power consumption, the embodiment of the present invention further provides an implementation manner for avoiding unnecessary automatic adjustment of the volume, please refer to fig. 6, which shows a flowchart of another automatic volume adjustment method provided by the embodiment of the present invention, the method further includes:
step S130, if the distance is larger than the preset value, the automatic volume adjusting function is turned off.
In this embodiment, if the distance is greater than the preset value, the meaning of automatic volume adjustment is lost at this time, in order to avoid unnecessary automatic volume adjustment and increase power consumption, the automatic volume adjustment function may be turned off at this time, after the automatic volume adjustment function is turned off, the bluetooth headset 10 may not acquire the distance between the bluetooth headset 10 and the ear detected by the distance sensor 15, or discard the distance transmitted by the distance sensor 15, and may also notify the distance sensor 15 that the distance between the bluetooth headset 10 and the ear is not detected any more, thereby reducing power consumption generated by the operation of the distance sensor.
If the distance is greater than the preset value, the power consumption may be reduced by other means, for example, the volume may be adjusted to a minimum value, or the volume may be directly turned off.
It should be further noted that, as a possible implementation manner, if the distance is greater than the preset value, the implementation manner of the automatic volume adjustment function is turned off, when the distance between the bluetooth headset 10 and the ear is restored to the normal listening distance again, the automatic volume adjustment function may be automatically restored, if the distance is greater than the preset value, the volume may be automatically adjusted to the minimum value, when the distance between the bluetooth headset 10 and the ear is restored to the normal listening distance again, the volume may be automatically adjusted to the target volume value suitable for the current distance, and if the distance is greater than the preset value, the volume may be directly turned off, and when the distance between the bluetooth headset 10 and the ear is restored to the normal listening distance again, the volume may be automatically turned on and adjusted to the target volume value suitable for the current distance.
According to the method provided by the embodiment of the invention, when a user does not need to use the Bluetooth headset 10 any more and takes down the Bluetooth headset 10, the automatic volume adjusting function can be turned off when the distance is larger than the preset value by judging whether the distance is larger than the preset value, so that unnecessary automatic volume adjusting and increasing power consumption can be avoided.
On the basis of fig. 4, the present invention provides another implementation manner of determining a target volume value, referring to fig. 7, fig. 7 shows a flowchart of another automatic volume adjustment method according to an embodiment of the present invention, where the method includes the following steps:
step S200, the distance is sent to the terminal;
in step S210, when the terminal is within the first preset range and the determined distance is less than or equal to the preset value, the first preset volume sent by the terminal is received.
Step S220, the first preset volume is used as a target volume value, and the volume of the loudspeaker is adjusted to the target volume value.
In this embodiment, the terminal 20 transmits the target volume value to the bluetooth headset 10, and the bluetooth headset 10 adjusts the volume of the speaker according to the received target volume value.
In step S230, when the terminal is within the second preset range and the determined distance is less than or equal to the preset value, the second preset volume sent by the terminal is received.
Step S240, the second preset volume is used as a target volume value, and the volume of the loudspeaker is adjusted to the target volume value.
In this embodiment, the manner of determining the target volume value by the terminal 20 is similar to that of determining the target volume value by the bluetooth headset 10 in the step S110 and the sub-steps S110-10 and S110-11, and will not be repeated here.
In order to avoid unnecessary automatic adjustment of the volume to increase the power consumption on the basis of fig. 4, another implementation manner for avoiding unnecessary automatic adjustment of the volume is provided in an embodiment of the present invention, please refer to fig. 8, fig. 8 shows a flowchart of another automatic volume adjustment method provided in an embodiment of the present invention, the method includes the following steps:
step S300, the distance is sent to the terminal, so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when the distance is judged to be larger than a preset value.
Step S310, receiving a closing command and closing the automatic volume adjustment function.
In this embodiment, the implementation process of determining that the distance is greater than the preset value in step S220 is similar to step S130 executed by the bluetooth headset 10, and will not be repeated here.
The above method provided by the embodiment of the present invention is performed by placing the processing step of determining the target volume value and the step of determining whether the distance is greater than the preset value on the terminal 20, thereby simplifying the implementation complexity of the bluetooth headset.
The step of determining the target volume value and determining whether the distance is greater than the preset value by the bluetooth headset 10 is similar to the step of determining the target volume value and determining whether the distance is greater than the preset value by the terminal 20, except that the former reduces communication interaction between the bluetooth headset 10 and the terminal 20, so that the whole process is not easily affected by network communication quality, and the latter simplifies implementation complexity of the bluetooth headset 10.
In order to perform the respective steps of the above embodiments and the various possible embodiments, an implementation of the automatic volume adjustment device 100 is given below. Referring to fig. 9, fig. 9 is a block diagram illustrating an automatic volume adjustment device 100 according to an embodiment of the invention. It should be noted that, the basic principle and the technical effects of the automatic volume adjustment device 100 provided in this embodiment are the same as those of the foregoing embodiments, and for brevity, this embodiment is not mentioned in the section.
The automatic volume adjustment device 100 includes at least one software function module which may be stored in the memory 12 of fig. 3 in the form of software or firmware (firmware), and the processor 11 reads the software function module from the memory 12 and executes it after receiving an execution instruction, so as to implement the automatic volume adjustment method disclosed in the above embodiment. The automatic volume adjusting device 100 includes an acquisition module 110, a determination module 120, an adjustment module 130, and a closing module 140.
The acquisition module 110 is configured to acquire a distance between the bluetooth headset and the ear, which is detected by the distance sensor.
The determining module 120 is configured to determine the target volume value according to the distance if the distance is less than or equal to the preset value.
In one embodiment, the bluetooth headset stores a first preset range and a corresponding first preset volume value, and a second preset range and a corresponding second preset volume value in advance, where a maximum value of the first preset range is smaller than a minimum value of the second preset range, and the determining module 120 is specifically configured to: if the distance is within the first preset range, taking the first preset volume value as a target volume value; and if the distance is in the second preset range, taking the second preset volume value as a target volume value.
In one embodiment, the bluetooth headset is communicatively connected to a terminal, where the terminal stores a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value in advance, where a maximum value of the first preset range is smaller than a minimum value of the second preset range, and the first preset volume value is smaller than the second preset volume value, and the determining module 120 is specifically further configured to: transmitting the distance to the terminal; when the terminal is in the judging distance smaller than or equal to the preset value and in a first preset range, receiving a first preset volume sent by the terminal; and taking the first preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, when the terminal is within a second preset range and the determined distance is less than or equal to the preset value, receiving a second preset volume sent by the terminal; and taking the second preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
The adjusting module 130 is configured to adjust the volume output to the speaker to a target volume value.
And a closing module 140, configured to close the automatic volume adjustment function if the distance is greater than a preset value.
In one embodiment, the bluetooth headset is in communication connection with the terminal, and the bluetooth headset turns on the automatic volume adjustment function in advance, and the shutdown module 140 is further configured to: the distance is sent to the terminal, so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when the distance is judged to be larger than a preset value; and receiving a closing command and closing the automatic volume adjusting function.
In one embodiment, a bluetooth headset is provided, in which a distance sensor and a speaker are arranged, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring the distance between the Bluetooth headset and the ear, which is detected by a distance sensor; if the distance is smaller than or equal to the preset value, determining a target volume value according to the distance; the volume output to the speaker is adjusted to a target volume value.
In one embodiment, the bluetooth headset stores a first preset range and a corresponding first preset volume value, and a second preset range and a corresponding second preset volume value in advance, wherein a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the processor further implements the following steps when executing the computer program: if the distance is within the first preset range, taking the first preset volume value as a target volume value; and if the distance is in the second preset range, taking the second preset volume value as a target volume value.
In one embodiment, the processor when executing the computer program further performs the steps of: if the distance is larger than the preset value, the automatic volume adjusting function is turned off.
In one embodiment, the bluetooth headset is communicatively connected to a terminal, the terminal stores in advance a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value, wherein a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the processor further implements the following steps when executing the computer program: transmitting the distance to the terminal; when the terminal is in the judging distance smaller than or equal to the preset value and in a first preset range, receiving a first preset volume sent by the terminal; and taking the first preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, when the terminal is within a second preset range and the determined distance is less than or equal to the preset value, receiving a second preset volume sent by the terminal; and taking the second preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, the bluetooth headset is in communication connection with the terminal, and the bluetooth headset turns on the automatic volume adjustment function in advance, and the following steps are further implemented when the processor executes the computer program: the distance is sent to the terminal, so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when the distance is judged to be larger than a preset value; and receiving a closing command and closing the automatic volume adjusting function.
The Bluetooth headset provided by the embodiment of the invention can execute the automatic volume adjusting method, and has the following beneficial effects: firstly, according to the detected distance between the Bluetooth headset and the ears, the volume of a loudspeaker in the Bluetooth headset is automatically adjusted, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved; secondly, according to the difference of the preset range where the distance between the Bluetooth earphone 10 and the ear is located, different target volume values to be adjusted can be automatically determined, and as the distance is within the same preset range and corresponds to the same target volume value, the power consumption increased by repeatedly adjusting the volume can be avoided, meanwhile, the listening effect of a user is relatively stable, and the user experience is improved; third, when the user removes the bluetooth headset 10 without using the bluetooth headset 10, the automatic volume adjusting function can be turned off by judging whether the distance is greater than a preset value, and unnecessary automatic volume adjustment is avoided; fourth, the processing operation of determining the target volume value and judging whether the distance is greater than the preset value is performed on the terminal 20, simplifying the implementation complexity of the bluetooth headset 10.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring the distance between the Bluetooth headset and the ear, which is detected by a distance sensor; if the distance is smaller than or equal to the preset value, determining a target volume value according to the distance; the volume output to the speaker is adjusted to a target volume value.
In one embodiment, the bluetooth headset pre-stores a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value, wherein a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the computer program when executed by the processor implements the steps of: if the distance is within the first preset range, taking the first preset volume value as a target volume value; and if the distance is in the second preset range, taking the second preset volume value as a target volume value.
In one embodiment, the computer program when executed by a processor performs the steps of: if the distance is larger than the preset value, the automatic volume adjusting function is turned off.
In one embodiment, the bluetooth headset is communicatively connected to a terminal, the terminal pre-storing a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value, wherein a maximum value of the first preset range is smaller than a minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the computer program when executed by the processor implements the steps of: transmitting the distance to the terminal; when the terminal is in the judging distance smaller than or equal to the preset value and in a first preset range, receiving a first preset volume sent by the terminal; and taking the first preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, when the terminal is within a second preset range and the determined distance is less than or equal to the preset value, receiving a second preset volume sent by the terminal; and taking the second preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
In one embodiment, the bluetooth headset is in communication connection with the terminal, and the bluetooth headset turns on the automatic volume adjustment function in advance, and the computer program when executed by the processor implements the steps of: the distance is sent to the terminal, so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when the distance is judged to be larger than a preset value; and receiving a closing command and closing the automatic volume adjusting function.
The computer readable storage medium provided by the embodiment of the invention can execute the automatic volume adjustment method, and has the following beneficial effects: firstly, according to the detected distance between the Bluetooth headset and the ears, the volume of a loudspeaker in the Bluetooth headset is automatically adjusted, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved; secondly, according to the difference of the preset range where the distance between the Bluetooth earphone 10 and the ear is located, different target volume values to be adjusted can be automatically determined, and as the distance is within the same preset range and corresponds to the same target volume value, the power consumption increased by repeatedly adjusting the volume can be avoided, meanwhile, the listening effect of a user is relatively stable, and the user experience is improved; third, when the user removes the bluetooth headset 10 without using the bluetooth headset 10, the automatic volume adjusting function can be turned off by judging whether the distance is greater than a preset value, and unnecessary automatic volume adjustment is avoided; fourth, the processing operation of determining the target volume value and judging whether the distance is greater than the preset value is performed on the terminal 20, simplifying the implementation complexity of the bluetooth headset 10.
In summary, the embodiments of the present invention provide a method and apparatus for automatically adjusting volume, a bluetooth headset and a storage medium, which are applied to the bluetooth headset, wherein a distance sensor and a speaker are disposed in the bluetooth headset, and the method includes: acquiring the distance between the Bluetooth headset and the ear, which is detected by a distance sensor; if the distance is smaller than or equal to the preset value, determining a target volume value according to the distance; the volume output to the speaker is adjusted to a target volume value. Compared with the prior art, the embodiment of the invention can automatically adjust the volume of the loudspeaker in the Bluetooth headset according to the detected distance between the Bluetooth headset and the ear, so that a user can acquire proper volume in real time, the use comfort is improved while the hands of the user are liberated, and the user experience is improved.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. The automatic volume adjusting method is characterized by being applied to a Bluetooth headset, wherein a distance sensor and a loudspeaker are arranged in the Bluetooth headset, and the method comprises the following steps:
acquiring the distance between the Bluetooth headset and the ear detected by the distance sensor according to a preset period;
if the distance is smaller than or equal to a preset value, determining a target volume value according to the distance, wherein the preset value is used for representing that the distance between the Bluetooth headset and the ear exceeds the normal listening distance;
adjusting the volume output to the speaker to the target volume value;
the Bluetooth headset is provided with a first preset range and a corresponding first preset volume value, a second preset range and a corresponding second preset volume value, wherein the first preset range and the second preset range are different preset ranges in which preset distances between the Bluetooth headset and ears are located, the distances correspond to the same target volume value when the distances are in the same preset range, the maximum value of the first preset range is smaller than the minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the step of determining the target volume value according to the distances comprises the following steps:
if the distance is within the first preset range, the first preset volume value is used as the target volume value;
if the distance is within the second preset range, the second preset volume value is used as the target volume value;
the Bluetooth headset pre-opens the automatic volume adjusting function, and the method further comprises the steps of:
if the distance is larger than the preset value, closing the automatic volume adjusting function;
and if the distance is restored to the normal hearing distance again, automatically restoring the automatic volume adjusting function and adjusting the volume to a target volume value suitable for the distance.
2. The automatic volume adjustment method according to claim 1, wherein the bluetooth headset is communicatively connected to a terminal, the terminal storing a first preset range and a corresponding first preset volume value and a second preset range and a corresponding second preset volume value in advance, the method further comprising:
transmitting the distance to the terminal;
when the terminal judges that the distance is smaller than or equal to the preset value and is within the first preset range, receiving the first preset volume sent by the terminal;
and taking the first preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
3. The automatic volume adjustment method according to claim 2, characterized in that the method further comprises:
when the terminal judges that the distance is smaller than or equal to the preset value and is within the second preset range, receiving the second preset volume sent by the terminal;
and taking the second preset volume as a target volume value, and adjusting the volume of the loudspeaker to the target volume value.
4. The automatic volume adjustment method according to claim 1, wherein the bluetooth headset is in communication connection with a terminal, the bluetooth headset previously having an automatic volume adjustment function, the method further comprising:
transmitting the distance to the terminal so that the terminal transmits a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is larger than the preset value;
and receiving the closing command and closing the automatic volume adjusting function.
5. The utility model provides a volume automatic regulating apparatus, its characterized in that is applied to bluetooth headset, be provided with distance sensor and speaker in the bluetooth headset, the device includes:
the acquisition module is used for acquiring the distance between the Bluetooth headset and the ear, which is detected by the distance sensor, according to a preset period;
the determining module is used for determining a target volume value according to the distance if the distance is smaller than or equal to a preset value, wherein the preset value is used for representing that the distance between the Bluetooth headset and the ear exceeds the distance of normal listening;
an adjusting module for adjusting the volume output to the speaker to the target volume value;
the Bluetooth headset is provided with a first preset range and a corresponding first preset volume value, a second preset range and a corresponding second preset volume value, wherein the first preset range and the second preset range are different preset ranges in which preset distances between the Bluetooth headset and ears are located, the distances correspond to the same target volume value when the distances are in the same preset range, the maximum value of the first preset range is smaller than the minimum value of the second preset range, the first preset volume value is smaller than the second preset volume value, and the determining module is specifically configured to:
if the distance is within the first preset range, the first preset volume value is used as the target volume value;
if the distance is within the second preset range, the second preset volume value is used as the target volume value;
the closing module is used for closing the automatic volume adjusting function if the distance is larger than the preset value;
and if the distance is restored to the normal hearing distance again, automatically restoring the automatic volume adjusting function and adjusting the volume to a target volume value suitable for the distance.
6. A bluetooth headset, its characterized in that is provided with distance sensor and speaker in the bluetooth headset, bluetooth headset includes:
one or more processors;
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the automatic volume adjustment method of any of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the automatic volume adjustment method according to any one of claims 1 to 4.
CN202011173265.3A 2020-10-28 2020-10-28 Automatic volume adjusting method and device, bluetooth headset and storage medium Active CN112272342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011173265.3A CN112272342B (en) 2020-10-28 2020-10-28 Automatic volume adjusting method and device, bluetooth headset and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011173265.3A CN112272342B (en) 2020-10-28 2020-10-28 Automatic volume adjusting method and device, bluetooth headset and storage medium

Publications (2)

Publication Number Publication Date
CN112272342A CN112272342A (en) 2021-01-26
CN112272342B true CN112272342B (en) 2023-07-28

Family

ID=74344439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011173265.3A Active CN112272342B (en) 2020-10-28 2020-10-28 Automatic volume adjusting method and device, bluetooth headset and storage medium

Country Status (1)

Country Link
CN (1) CN112272342B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113207052A (en) * 2021-01-28 2021-08-03 珠海市杰理科技股份有限公司 Communication connection method and device, Bluetooth headset, communication system and storage medium
CN113115179B (en) * 2021-03-24 2023-03-24 维沃移动通信有限公司 Working state adjusting method and device
CN113810817B (en) * 2021-09-23 2023-11-24 科大讯飞股份有限公司 Volume control method and device of wireless earphone and wireless earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394260A (en) * 2014-12-02 2015-03-04 上海斐讯数据通信技术有限公司 Handheld call receiver volume adjusting method and device
CN105049977A (en) * 2015-07-30 2015-11-11 努比亚技术有限公司 Automatic earphone volume adjusting method and device
CN107995552A (en) * 2018-01-23 2018-05-04 深圳市沃特沃德股份有限公司 The control method and device of bluetooth headset
CN108737619A (en) * 2018-07-03 2018-11-02 佛山市影腾科技有限公司 A kind of call control method of terminal, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873974A (en) * 2014-03-05 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Method for protecting hearing of human ears, earphone and mobile terminal
CN108834015B (en) * 2018-06-07 2021-07-13 Oppo广东移动通信有限公司 Earphone and volume adjusting method and device thereof
CN108540906B (en) * 2018-06-15 2020-11-24 歌尔股份有限公司 Volume adjusting method, earphone and computer readable storage medium
CN111131957A (en) * 2019-12-26 2020-05-08 上海传英信息技术有限公司 Volume control method, terminal and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394260A (en) * 2014-12-02 2015-03-04 上海斐讯数据通信技术有限公司 Handheld call receiver volume adjusting method and device
CN105049977A (en) * 2015-07-30 2015-11-11 努比亚技术有限公司 Automatic earphone volume adjusting method and device
CN107995552A (en) * 2018-01-23 2018-05-04 深圳市沃特沃德股份有限公司 The control method and device of bluetooth headset
CN108737619A (en) * 2018-07-03 2018-11-02 佛山市影腾科技有限公司 A kind of call control method of terminal, device and terminal

Also Published As

Publication number Publication date
CN112272342A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN112272342B (en) Automatic volume adjusting method and device, bluetooth headset and storage medium
US10609483B2 (en) Method for sound effect compensation, non-transitory computer-readable storage medium, and terminal device
CN106656354B (en) Play mode control method of wearable device and wearable device
US20220335924A1 (en) Method for reducing occlusion effect of earphone, and related apparatus
WO2020019820A1 (en) Microphone hole blockage detection method and related product
CN109547897B (en) Wireless earphone connection method, device and system and wireless earphone box
CN109067965B (en) Translation method, translation device, wearable device and storage medium
CN114071308B (en) Headset self-adaptive tuning method and device, headset and readable storage medium
WO2020007173A1 (en) Communication connection establishing method and relevant device
EP4319116A1 (en) Volume adjustment method and terminal device
TW202021378A (en) Controlling headset method and headset
WO2020007172A1 (en) Communicational connection establishment method and related device
US11487497B2 (en) Audio output device and method for controlling output speed of audio data thereof
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
US20230164473A1 (en) Electronic device and method for operating electronic device
CN109361987B (en) Sports earphone and control method, device and equipment thereof
CN108810787B (en) Foreign matter detection method and device based on audio equipment and terminal
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
CN114040300B (en) Earphone active noise reduction method and device, earphone and computer readable storage medium
US11562763B2 (en) Method for improving sound quality and electronic device using same
CN114567849A (en) Detection method and device, wireless earphone and storage medium
KR20220103543A (en) Wearable device and method performing automatic sound control
WO2020019822A1 (en) Microphone hole blockage detecting method and related product
US20230412978A1 (en) Electronic device for listening to external sound and operating method of electronic device
US20230188885A1 (en) Acoustic device and electronic device including the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant