Nothing Special   »   [go: up one dir, main page]

CN112272342A - Volume automatic adjusting method and device, Bluetooth headset and storage medium - Google Patents

Volume automatic adjusting method and device, Bluetooth headset and storage medium Download PDF

Info

Publication number
CN112272342A
CN112272342A CN202011173265.3A CN202011173265A CN112272342A CN 112272342 A CN112272342 A CN 112272342A CN 202011173265 A CN202011173265 A CN 202011173265A CN 112272342 A CN112272342 A CN 112272342A
Authority
CN
China
Prior art keywords
volume
preset
distance
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.)
Granted
Application number
CN202011173265.3A
Other languages
Chinese (zh)
Other versions
CN112272342B (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 Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wentai 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 Wentai Information Technology Co Ltd filed Critical Shanghai Wentai 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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • 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 earphones, and provides a method and a device for automatically adjusting volume, a Bluetooth earphone and a storage medium, which are applied to the Bluetooth earphone, wherein a distance sensor and a loudspeaker are arranged in the Bluetooth earphone, and the method comprises the following steps: 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; 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 obtain the proper volume in real time, the use comfort is improved while hands of the user are liberated, and the user experience is improved.

Description

Volume automatic adjusting method and device, Bluetooth headset and storage medium
Technical Field
The invention relates to the technical field of Bluetooth earphones, in particular to a method and a device for automatically adjusting volume, a Bluetooth earphone and a storage medium.
Background
The bluetooth headset has many advantages such as it does not have the data line and easily carries, therefore the prevalence is higher and higher, and the user also has higher and higher to each item performance and the comfort level requirement of bluetooth headset, and the bluetooth headset of packing into the ear can lead to bluetooth headset outwards to remove in the ear because of contacting with ear pressure and motion or various contingencies, forms a half jam state that does not drop, can influence the volume of sending into the ear from this.
In order to ensure that the volume delivered to the ear is not affected, the existing solution is to require external force to press the bluetooth headset to be plugged or manually adjust the volume of the bluetooth headset when the bluetooth headset becomes a half-plugged state.
The existing solution requires manual intervention by the user, which reduces the comfort of use and affects the user experience.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for automatically adjusting volume, a bluetooth headset, and a storage medium, which can automatically adjust the volume of a speaker in the bluetooth headset according to a detected distance between the bluetooth headset and an ear, so that a user can obtain an appropriate volume in real time, thereby freeing both hands of the user, improving comfort level, and improving user experience.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for automatically adjusting a volume, where the method 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;
adjusting the volume output to the speaker 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, taking the first preset volume value 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 greater than the preset value, closing the automatic volume adjusting function.
In one embodiment, the bluetooth headset is in communication connection with a terminal, and 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, the method further includes:
sending the distance to the terminal;
when the terminal judges that the distance is smaller than or equal to the preset value and 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 determines that the distance is smaller 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, the bluetooth headset pre-turns on an automatic volume adjustment function, and the method further includes:
sending the distance to the terminal so that the terminal sends 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 adjusting device, which is applied to a bluetooth headset, where 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 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;
an adjusting module for adjusting the volume output to the speaker 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 determining module is specifically configured to:
if the distance is within the first preset range, taking the first preset volume value 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, where a distance sensor and a speaker are disposed in the bluetooth headset, and the 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 a volume autotuning method as described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the above-mentioned volume automatic adjustment method.
Compared with the prior art, the embodiment of the invention provides a method and a device for automatically adjusting 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 level is improved while 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 needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a diagram illustrating an example of the relative position of a bluetooth headset and an ear according to an embodiment of the present invention.
Fig. 2 shows an application scenario diagram provided in the embodiment of the present invention.
Fig. 3 shows a block diagram of a bluetooth headset according to an embodiment of the present invention.
Fig. 4 shows a flowchart of an automatic volume adjustment method according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating another volume automatic adjustment method according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating another volume automatic adjustment method according to an embodiment of the present invention.
Fig. 7 is a flowchart illustrating another volume automatic adjustment method according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating another volume automatic adjustment method according to an embodiment of the present invention.
Fig. 9 is a block diagram illustrating an automatic volume adjusting apparatus according to an embodiment of the present invention.
Icon: 10-a bluetooth headset; 11-a processor; 12-a memory; 13-peripheral interfaces; 14-a communication interface; 15-a distance sensor; 16-a loudspeaker; 20-a terminal; 100-automatic volume adjusting device; 110-an obtaining module; 120-a determination module; 130-a regulation module; 140-shutdown module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of 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 present invention, 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
The bluetooth headset is usually placed at the entrance of the external auditory canal of a user and closely attached to the skin at the entrance of the external auditory canal when in use, please refer to fig. 1, fig. 1(a) shows an exemplary diagram of the position where the bluetooth headset is placed in normal use, and when the user moves or accidentally touches, the bluetooth headset is separated from the skin at the entrance of the external auditory canal, where the bluetooth headset is in a half-plugged state without dropping, please refer to fig. 1(b), fig. 1(b) shows an exemplary diagram of the half-plugged state without dropping. As can be known from fig. 1, after 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 will be decreased without changing the volume, thereby affecting the sound listening effect of the user.
In view of the above problems, embodiments of the present invention provide a method and an apparatus for automatically adjusting volume, a bluetooth headset, and a storage medium, which can automatically adjust the volume of a speaker in the bluetooth headset according to a distance between the bluetooth headset and an ear, and do not require a user to manually adjust the volume, thereby improving comfort in use and user experience, which will be described in detail below.
Referring to fig. 2, fig. 2 shows an application scenario diagram 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 an automatic volume 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 automatic volume 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 a 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, and an intelligent bracelet, or may be a non-mobile terminal such as a host.
On the basis of fig. 2, an embodiment of the present invention further provides a block schematic diagram of the bluetooth headset 10 in fig. 2, please refer to fig. 3, which illustrates 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 perform data interaction with the distance sensor 15 and the speaker 16 through the peripheral interface 13, and the processor 11 performs communication with the terminal 20 through the communication interface 14.
The processor 11 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the volume-based automatic adjustment method may be implemented by integrated logic circuits of hardware in the processor 11 or instructions in the form of software. The Processor 11 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The memory 12 is used to store a program such as the above-described volume automatic adjusting apparatus. The volume automatic adjustment means comprises at least one software function module which can be stored in the memory 12 in the form of software or firmware or solidified in the control system of the bluetooth headset 10. The processor 11, after receiving the execution instruction, executes the above program to implement the volume automatic adjustment method disclosed in the following embodiment.
The distance sensor 15 is a sensor for measuring the distance between objects by using ultrasonic waves or laser, and is mainly used for measuring the change rule of the position of a moving object along with time, and the distance sensor 15 can 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 that can convert 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, an embodiment of the present invention provides a volume automatic adjustment method applied to the bluetooth headset 10 in fig. 2 and 3, please refer to fig. 4, and fig. 4 shows a flowchart of a volume automatic adjustment method provided by an embodiment of the present invention, where the method includes the following steps:
and step S100, acquiring the distance between the Bluetooth headset and the ear detected by the distance sensor.
In this embodiment, the distance sensor may detect the distance between the bluetooth headset 10 and the ear according to a preset frequency, and transmit the detected distance to the bluetooth headset 10, and the bluetooth headset 10 may also obtain 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, in the embodiment of the present invention, the bluetooth headset 10 is provided with the on and off functions of the automatic volume adjustment function, the user can turn on or turn off the automatic volume adjustment function in advance according to the needs of the user, when the automatic volume adjustment function is turned off, the distance sensor does not detect the distance between the bluetooth headset 10 and the ear, and the volume is not automatically adjusted along with the change of the distance, so that the power consumption generated when the distance sensor 15 is turned on can be reduced. When the automatic volume adjustment 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.
In step S110, if the distance is less than or equal to the preset value, the target volume value is determined 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 is beyond 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 obtain sound through the bluetooth headset.
In this embodiment, the larger the distance is, the larger the volume value to which the speaker needs to be adjusted is so as not to affect the listening effect of the user, and conversely, the smaller the volume value to which the speaker needs to be adjusted is. If the distance is greater than the preset value, it can be considered that the user has taken the bluetooth headset 10 off, and at this time, the automatic volume adjustment function can be turned off, so as to avoid increasing power consumption.
Step S120, adjusting the volume output to the speaker to the target volume value.
In the present embodiment, the bluetooth headset 10 can control the strength of the electrical signal output to the speaker 16, so as to automatically adjust the volume output to the speaker 16.
The method provided by 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 obtain the proper volume in real time, the use comfort is improved while 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 a target volume value, please refer to fig. 5, and step S110 further includes the following sub-steps:
in the substep S110-10, if the distance is within the first preset range, the first preset volume value is taken as the target volume value.
In this embodiment, the first preset range and the second preset range both refer to different ranges in which the preset distance between the bluetooth headset 10 and the ear is located, 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 that needs to be adjusted is needed, and the second preset volume value is similar to the first preset volume value, and is a volume value corresponding to the second preset range. Obviously, the larger the distance, the larger the volume value to be adjusted, and therefore, the first preset volume value is smaller than the second preset volume value.
In the substep 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, different target volume values to be adjusted can be automatically determined according to different preset ranges of the distance between the Bluetooth headset 10 and the ear, and the distance corresponds to the same target volume value in the same preset range, so that the power consumption increased by repeatedly adjusting the volume can be avoided, the listening effect of a user is relatively stable, and the user experience is improved.
In this embodiment, in some scenarios, when the user does not need to use the bluetooth headset 10 any more and takes the bluetooth headset 10 off, in order to avoid power consumption increased by unnecessary volume automatic adjustment, an embodiment of the present invention further provides an implementation manner for avoiding unnecessary volume automatic adjustment, please refer to fig. 6, which shows a flowchart of another volume automatic adjustment method provided by the embodiment of the present invention, and the method further includes:
in step S130, if the distance is greater than the preset value, the automatic volume adjustment function is turned off.
In this embodiment, if the distance is greater than the preset value, the meaning of the automatic volume adjustment has been lost at this time, in order to avoid unnecessary increase of power consumption of the automatic volume adjustment, 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 no longer obtain the distance between the bluetooth headset 10 and the ear detected by the bluetooth headset 10 from the distance sensor 15, the distance sent by the distance sensor 15 may also be discarded, the distance sensor 15 may also be notified that the distance between the bluetooth headset 10 and the ear is no longer detected, and thus, the power consumption generated by the work of the distance sensor may be reduced.
It should be noted that, if the distance is greater than the preset value, the power consumption may be reduced in other manners, for example, the volume may be adjusted to the 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, 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 the user does not need to use the Bluetooth headset 10 any more and takes the Bluetooth headset 10 down, the automatic volume adjusting function can be turned off when the distance is greater than the preset value by judging whether the distance is greater than the preset value, so that the power consumption increased by unnecessary automatic volume adjustment is avoided.
On the basis of fig. 4, another implementation manner for determining a target volume value is provided in the present invention, please refer to fig. 7, and fig. 7 shows a flowchart of another volume automatic adjustment method provided in the embodiment of the present invention, where the method includes the following steps:
step S200, the distance is sent to a terminal;
step S210, when the terminal determines that the distance is smaller than or equal to the preset value and within the first preset range, receiving a first preset volume sent by the terminal.
Step S220 is performed to set the first preset volume as a target volume value and adjust the volume of the speaker to the target volume value.
In this embodiment, the terminal 20 sends 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 determines that the distance is smaller than or equal to the preset value and within the second preset range, a second preset volume sent by the terminal is received.
In step S240, the second preset volume is used as the target volume value, and the volume of the speaker is adjusted to the target volume value.
In this embodiment, the terminal 20 determines the target volume value in a manner similar to the manner of determining the target volume value by the bluetooth headset 10 in the aforementioned step S110 and the sub-steps S110-10 and S110-11 thereof, and will not be described herein again.
On the basis of fig. 4, to avoid power consumption increased by unnecessary volume automatic adjustment, another implementation manner for avoiding unnecessary volume automatic adjustment is further provided in the embodiment of the present invention, please refer to fig. 8, where fig. 8 shows a flowchart of another volume automatic adjustment method provided in the embodiment of the present invention, the method includes the following steps:
and step S300, sending the distance to the terminal so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is larger than a preset value.
Step S310, receiving a closing command and closing the automatic volume adjusting function.
In this embodiment, the implementation process of the terminal 20 determining that the distance is greater than the preset value in step S220 is similar to the step S130 executed by the bluetooth headset 10, and is not described herein again.
The method provided by the embodiment of the invention simplifies the implementation complexity of the Bluetooth headset by executing the processing step of determining the target volume value and the step of judging whether the distance is greater than the preset value on the terminal 20.
The steps of determining the target volume value and judging whether the distance is greater than the preset value by the bluetooth headset 10 are similar to the steps of determining the target volume value and judging whether the distance is greater than the preset value by the terminal 20, except that the former reduces the communication interaction between the bluetooth headset 10 and the terminal 20, so that the whole process is not easily affected by the network communication quality, and the latter simplifies the implementation complexity of the bluetooth headset 10.
In order to perform the corresponding steps in the above embodiments and various possible embodiments, an implementation of the automatic volume adjusting device 100 is given below. Referring to fig. 9, fig. 9 is a block diagram illustrating an automatic volume adjusting device 100 according to an embodiment of the present invention. It should be noted that the basic principle and the technical effects of the automatic volume adjusting device 100 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no reference is made to this embodiment.
The volume automatic adjusting device 100 comprises at least one software functional module which can be stored in the memory 12 of fig. 3 in the form of software or firmware (firmware), and the processor 11 reads the software functional module from the memory 12 and executes the software functional module after receiving an execution instruction, so as to implement the volume automatic adjusting method disclosed in the above embodiment. The volume automatic adjusting apparatus 100 includes an obtaining module 110, a determining module 120, an adjusting module 130, and a closing module 140.
And an obtaining module 110, configured to obtain a distance between the bluetooth headset and an 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 an 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 a first preset range, taking a first preset volume value as a target volume value; and if the distance is within a second preset range, taking the second preset volume value as the target volume value.
In an embodiment, the bluetooth headset is in communication connection with a terminal, 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 further configured to: sending the distance to a terminal; when the terminal judges that the distance is smaller than or equal to the preset value and within 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 judges that the distance is smaller than or equal to the preset value and within a second preset range, 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.
And an adjusting module 130, 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 the preset value.
In one embodiment, the bluetooth headset is communicatively connected to the terminal, the bluetooth headset pre-turns on the volume automatic adjustment function, and the turning-off module 140 is further configured to: sending the distance to a terminal so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is 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 disposed, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: 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; 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, and the first preset volume value is smaller than the second preset volume value, and the following steps are further implemented when the processor executes the computer program: if the distance is within a first preset range, taking a first preset volume value as a target volume value; and if the distance is within a second preset range, taking the second preset volume value as the target volume value.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the distance is greater than the preset value, the automatic volume adjusting function is closed.
In one embodiment, the bluetooth headset is in communication connection with a terminal, 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, wherein 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 processor further implements the following steps when executing the computer program: sending the distance to a terminal; when the terminal judges that the distance is smaller than or equal to the preset value and within 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 judges that the distance is smaller than or equal to the preset value and within a second preset range, 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, the bluetooth headset pre-activates the volume automatic adjustment function, and the processor executes the computer program to further implement the following steps: sending the distance to a terminal so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is 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, the volume of a loudspeaker in the Bluetooth headset is automatically adjusted according to the detected distance between the Bluetooth headset and an ear, so that a user can obtain the proper volume in real time, the use comfort is improved while hands of the user are liberated, and the user experience is improved; secondly, different target volume values to be adjusted can be automatically determined according to different preset ranges of the distance between the Bluetooth headset 10 and the ears, and the distance corresponds to the same target volume value when being in the same preset range, so that the power consumption increased by repeatedly adjusting the volume can be avoided, the audition effect of a user can be relatively stable, and the user experience is improved; thirdly, when the user does not need to use the bluetooth headset 10 any more and takes the bluetooth headset 10 off, the automatic volume adjusting function can be turned off when the distance is greater than the preset value by judging whether the distance is greater than the preset value, so that the power consumption increased by unnecessary automatic volume adjustment is avoided; fourthly, the processing operations of determining the target volume value and judging whether the distance is greater than the preset value are performed on the terminal 20, which simplifies 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 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; 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, and the first preset volume value is smaller than the second preset volume value, and when executed by the processor, the computer program implements the following steps: if the distance is within a first preset range, taking a first preset volume value as a target volume value; and if the distance is within a second preset range, taking the second preset volume value as the target volume value.
In one embodiment, the computer program when executed by the processor implements the steps of: and if the distance is greater than the preset value, the automatic volume adjusting function is closed.
In one embodiment, the bluetooth headset is in communication connection with a terminal, 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, wherein 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 when executed by the processor, the computer program implements the following steps: sending the distance to a terminal; when the terminal judges that the distance is smaller than or equal to the preset value and within 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 judges that the distance is smaller than or equal to the preset value and within a second preset range, 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 with the terminal, the bluetooth headset pre-activates the volume auto-adjustment function, and the computer program when executed by the processor performs the steps of: sending the distance to a terminal so that the terminal sends a closing command for closing the automatic volume adjusting function to the Bluetooth headset when judging that the distance is 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 adjusting method, and has the following beneficial effects: firstly, the volume of a loudspeaker in the Bluetooth headset is automatically adjusted according to the detected distance between the Bluetooth headset and an ear, so that a user can obtain the proper volume in real time, the use comfort is improved while hands of the user are liberated, and the user experience is improved; secondly, different target volume values to be adjusted can be automatically determined according to different preset ranges of the distance between the Bluetooth headset 10 and the ears, and the distance corresponds to the same target volume value when being in the same preset range, so that the power consumption increased by repeatedly adjusting the volume can be avoided, the audition effect of a user can be relatively stable, and the user experience is improved; thirdly, when the user does not need to use the bluetooth headset 10 any more and takes the bluetooth headset 10 off, the automatic volume adjusting function can be turned off when the distance is greater than the preset value by judging whether the distance is greater than the preset value, so that the power consumption increased by unnecessary automatic volume adjustment is avoided; fourthly, the processing operations of determining the target volume value and judging whether the distance is greater than the preset value are performed on the terminal 20, which simplifies the implementation complexity of the bluetooth headset 10.
In summary, embodiments of the present invention provide a method and an apparatus for automatically adjusting a volume, a bluetooth headset, and a storage medium, which are 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; 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 obtain the proper volume in real time, the use comfort is improved while hands of the user are liberated, and the user experience is improved.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A volume automatic regulation method is applied to a Bluetooth headset, 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;
if the distance is smaller than or equal to a preset value, determining a target volume value according to the distance;
adjusting the volume output to the speaker to the target volume value.
2. The method for automatically adjusting volume according to claim 1, wherein 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 comprises:
if the distance is within the first preset range, taking the first preset volume value 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.
3. The volume auto-adjustment method of claim 1, wherein the bluetooth headset previously turns on a volume auto-adjustment function, the method further comprising:
and if the distance is greater than the preset value, closing the automatic volume adjusting function.
4. The method for automatically adjusting volume according to claim 1, wherein the bluetooth headset is in communication with a terminal, 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, wherein 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, the method further comprising:
sending the distance to the terminal;
when the terminal judges that the distance is smaller than or equal to the preset value and 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.
5. The automatic volume adjustment method as claimed in claim 4, wherein the method further comprises:
when the terminal judges that the distance is smaller 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.
6. The volume automatic adjustment method according to claim 1, wherein the bluetooth headset is in communication connection with a terminal, the bluetooth headset turns on a volume automatic adjustment function in advance, the method further comprising:
sending the distance to the terminal so that the terminal sends 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.
7. The utility model provides a volume automatic regulating apparatus which 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 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;
an adjusting module for adjusting the volume output to the speaker to the target volume value.
8. The automatic volume adjusting device according to claim 7, wherein 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 determining module is specifically configured to:
if the distance is within the first preset range, taking the first preset volume value 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.
9. The utility model provides a bluetooth headset, its characterized in that, be 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 volume autotuning method of any one of claims 1-6.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the automatic volume adjustment method according to any one of claims 1 to 6.
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 true CN112272342A (en) 2021-01-26
CN112272342B 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)

Cited By (3)

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

Citations (8)

* 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
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
CN108540906A (en) * 2018-06-15 2018-09-14 歌尔股份有限公司 Volume adjusting method, earphone and computer readable storage medium
CN108737619A (en) * 2018-07-03 2018-11-02 佛山市影腾科技有限公司 A kind of call control method of terminal, device and terminal
CN108834015A (en) * 2018-06-07 2018-11-16 Oppo广东移动通信有限公司 Earphone and its volume adjusting method and device
CN111131957A (en) * 2019-12-26 2020-05-08 上海传英信息技术有限公司 Volume control method, terminal and readable storage medium

Patent Citations (8)

* 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
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
CN108834015A (en) * 2018-06-07 2018-11-16 Oppo广东移动通信有限公司 Earphone and its volume adjusting method and device
CN108540906A (en) * 2018-06-15 2018-09-14 歌尔股份有限公司 Volume adjusting method, earphone and computer readable storage medium
CN108737619A (en) * 2018-07-03 2018-11-02 佛山市影腾科技有限公司 A kind of call control method of terminal, device and terminal
CN111131957A (en) * 2019-12-26 2020-05-08 上海传英信息技术有限公司 Volume control method, terminal and readable storage medium

Cited By (4)

* 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
CN113115179A (en) * 2021-03-24 2021-07-13 维沃移动通信有限公司 Working state adjusting method and device
CN113810817A (en) * 2021-09-23 2021-12-17 科大讯飞股份有限公司 Volume control method and device of wireless earphone and wireless earphone
CN113810817B (en) * 2021-09-23 2023-11-24 科大讯飞股份有限公司 Volume control method and device of wireless earphone and wireless earphone

Also Published As

Publication number Publication date
CN112272342B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
WO2020007221A1 (en) Method for controlling earphone switching, earphone, and earphone system
CN110972014B (en) Parameter adjustment method and device for active noise reduction earphone and wireless earphone
CN112272342A (en) Volume automatic adjusting method and device, Bluetooth headset and storage medium
EP3547716A1 (en) Method for sound effect compensation, non-transitory computer-readable storage medium, and terminal device
CN112584293B (en) Microphone hole blockage detection method and related product
EP2997740B1 (en) A method of remotely fitting a hearing aid system, a remote hearing aid fitting system and a hearing aid
CN109688498B (en) Volume adjusting method, earphone and storage medium
CN108540900B (en) Volume adjusting method and related product
WO2020019820A1 (en) Microphone hole blockage detection method and related product
WO2022227793A1 (en) Loudspeaker parameter configuration method and related apparatus
US11487497B2 (en) Audio output device and method for controlling output speed of audio data thereof
WO2020118496A1 (en) Audio path switching method and device, readable storage medium and electronic equipment
EP4270987A1 (en) Audio signal processing method and system for suppressing echo
KR20170029624A (en) Acoustical signal processing method and device of communication device
EP4319116A1 (en) Volume adjustment method and terminal device
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
WO2020007172A1 (en) Communicational connection establishment method and related device
CN108668018B (en) Mobile terminal, volume control method and related product
CN113038317A (en) Earphone control method and device, Bluetooth earphone and storage medium
CN111787479B (en) Method and system for correcting listening sensation of TWS earphone
CN114040300B (en) Earphone active noise reduction method and device, earphone and computer readable storage medium
CN105472128A (en) Call control method and call control device
CN114567849B (en) Detection method and device, wireless earphone and storage medium
CN114095825B (en) Mode switching method, device, audio playing equipment and computer readable medium
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system

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